HTML5 – Meter and Progress

This will be plain and simple. There are two new element types called “meter” and “prgoress”. Here are some examples which will hopefully show you everything you need to know to start working with them. Meter <meter min=”0″ value=”15″ max=”100″></meter> See more meters <meter min=”0″ value=”50″ max=”100″></meter> <meter min=”0″ value=”75″ high=”80″ max=”100″></meter> <meter min=”0″ value=”90″ [...]

HTML5 – Upgrading Legacy HTML

HTML5 has offloaded to the browser a lot of work that has historically been done by custom javascript. Using the HTML5 way instead of javascript offers numerous advantages: 1) No waiting for javascript to download and then load into memory 2) No debugging/maintaining custom javascript 3) Unified best practices that future developers will be familiar [...]

Activity.startActivityForResult – not calling onActivityResult

I implemented a quick button to look up an image using the installed Android Gallery app: public void btnPickImage(View v) { Intent intent = new Intent(); intent.setAction(Intent.ACTION_GET_CONTENT); intent.setType("image/*"); startActivityForResult(intent, REQUEST_IMAGE); } And then, to get the Uri of the image selected by the user: protected void onActivityResult(int requestCode, int resultCode, Intent data) { switch (requestCode) [...]

Discovering Android – flash_image not found?!?

If you are needing to use the “flash_image” utility program ( perhaps to get ClockworkMod3 on your system? perhaps because you need want to update to CyanogenMod7? ) and you get a “not found” message when you go to run it like this: $ su # flash_image flash_image: not found Here’s a link where you [...]

Discovering Android – ADB su – Permission Denied

If you are using adb and attempt to get root access by running ‘su’ and instead get the message “Permission Denied”, then there are two things you must make sure you’ve done. 1. Make sure you have rooted your phone. This is complicated and I won’t go into it here – it differs based on [...]

Discovering Android – Embedding Video in an Android Application

I was putting some Video into an Android application for the first time. I was hoping this wouldn’t be too difficult and was delighted to find the VideoView component. It was really simple to add a VideoView to my layout: <VideoView android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/videoView"/> Then I prepared the video and added it to my project [...]