sabato 29 maggio 2010

Problem with HTC Desire and ADB driver? The solution is here.

If you try to connect your HTC Desire to your PC via USB having already installed the ADB driver for Android SDK, you will see that the driver is not working.

To fix the problem you need to install the USB driver coming with the HTC Sync (you can download here).

Thanks to James Giang for the tip.

martedì 25 maggio 2010

Generate a tone with Android

It is pretty easy play a simple tone (a beep) using Android. Two lines of code are enough:

ToneGenerator toneGen = new ToneGenerator(AudioManager.STREAM_SYSTEM, 50);
toneGen.startTone(ToneGenerator.TONE_PROP_BEEP);

Android: when the debug certificate expires

Today morning, big surprise! Trying to build my Android application I get this error:
"Debug Certificate expired on....."
What a f..k? And now? What I'm supposed to do?

No worries....going to the default storage location for AVDs which is in 

- ~/.android/avd on OS X and Linux, 
- in C:Documents and Settings\.android on Windows XP, 
- in C:Users\.android on Windows Vista 

you can delete the file debug.keystore and the next build of the projects will generate again a new valid 
debug certificate