Let’s share some useful information… Today I wasted more than an hour trying to get my phone to scale my Android application as expected. The cause of the problem was a line in the AndroidManifest.xml file.
To enable correct scaling the manifest file must contain the targeted version of the SDK.
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="7"></uses-sdk>
If the <uses-sdk> element [...]
Posts from ‘February, 2011’
Android and screen resolutions
Using the ToneGenerator on Android
Creating a simple beep on Android is pretty easy. Once you know how…
Add the following code to the onCreate method:
android.media.ToneGenerator tg=new ToneGenerator(AudioManager.STREAM_ALARM, 100);
tg.startTone(ToneGenerator.TONE_CDMA_ABBR_ALERT);
You can choose another stream, depending on your needs. Use auto completion to see the choices. The second int value of the ToneGenerator constructor is the volume in percent (0-100). With 0 being [...]
Debugging Android applications on Samsung Galaxy
After running the Hello World Android application I wanted to go real. Using the virtual device is fun, but seeing my first application run on my Smart Phone would be so much nicer. The driver to connect my Samsung Galaxy to the computer comes with the Samsung Kies software. No need to install extra drivers [...]
Developping Android applications
The time that smart phones were for the rich only is over. That’s why I bought one. Being the proud owner of an Android phone and a nerd, developing my own applications is an obvious need.
So I have a Android based phone and a computer. What’s next?
Install Java SDK
Install the Android SDK
Install Eclipse
That’s easy. If [...]


