Archive for 'Web Browser'

Absolute basic skeleton of a Sencha Touch project

Sencha Touch is the latest and most powerful of web app frameworks. Web apps are mobile applications that run on a web browser (just browse the URL) but, with the look, feel and functionality of a native app

There are many examples out there for Sencha Touch but, I couldn’t find one that explains the absolute basic outline of a Sencha Touch project. Here I will explain what the basic outline of a Sencha Touch project looks like:

index.html

It is always recommended not to embedded Javascript inline like this. Preferably, create a file called app.js and put the Javascript code in it. Include the js file in your HTML. So, finally you will end up with 2 files like this:
index.html

app.js

HTML 5 – Audio on browser example

The following code can play an audio on a web browser using HTML 5.

Here mySong is your audio file.

Ogg file will work in Firefox, Opera and Chrome.

MP3 will work in Internet Explorer and Safari

 

Copy the SDK debug certificate located in the default folder of
“C:\Documents and Settings\<username>\.android\debug.keystore” and paste in C:\ drive. Now path of the file will become “C:\debug.keystore”.

We need to extract its MD5 fingerprint using the Keytool.exe application included in JDK. This fingerprint is needed to apply for the free Google Maps key. You can usually find the Keytool.exe from the “C:\Program Files\Java\<JDK_version_number>\bin” directory.

Open Command Prompt, change your current directory using the following commands,

“cd\

“cd C:\Program Files\Java\<JDK_version_number>\bin”

and type the following command in command prompt to extract the MD5 fingerprint.
keytool.exe -list -alias androiddebugkey -keystore “C:\debug.keystore” -storepass android -keypass android

Copy this MD5 certificate fingerprint. Now open the web browser and head to http://code.google.com/android/maps-api-signup.html . Follow the instructions on the page to complete the application and obtain the Google Maps API key.