If you ever wonder why eclispe doesn’t generate a source file for your AIDL file, try installing the latest Eclispe version (currently Helios)! It might be a bit time consuming, since you also have to install the Android Development Tools (ADT) again, but it’s worth it… as it then magically works!
Archive for the ‘Misc’ category
AIDL Files: Eclipse Not Generating Source Code?
March 14th, 2011Visual Update
February 2nd, 2011I’m currently redesigning the blog. I put a first version of the new theme live, but things will still change… I’ll also register a new domain and – tada! It’s now AD-FREE!
Update Feb 10th: I’m doing some tests with the new domain. Currently it’s running, but not as intended to (still got some frame-issues which I don’t want). So in case you see some missing GFX or so, it’s me testing
Drag and drop install APK script
September 30th, 2010Update April 5th 2011: since the latest Android SDK, the adb tool has been moved to the platform-tools folder. I updated the script to point to the correct directory.
If you want to be able to just drag and drop your APK file onto a CMD file, and let it be installed on the connected device automatically, use something like this (simply copy this to your *.cmd file):
New:
:: Just some debug output: echo Attempting to install file: %1 :: Enter drive letter: d: :: Enter path to adb here: cd D:\android_sdk on 10.17.1.205\platform-tools :: Install file: adb install -r %1 PAUSE |
Old:
:: Just some debug output: echo Attempting to install file: %1 :: Enter drive letter: d: :: Enter path to adb here: cd D:\androidsdk\tools :: Install file: adb install -r %1 PAUSE |
PS: Of course one could use set varNAme=__PATH__ instead of the cd-ing, but my path has some spaces and that leads to troubles.
Simulate incoming call with Android emulator
September 14th, 2010First be sure that an emulator is running.
Then open up the console with Start >> Run (or press Windows + ‘r’) and type in ‘cmd‘.
This will bring you to something like:

Like shown above, type in ‘telnet‘ and press enter. The result will look like:

Here type in ‘o localhost 5554‘ as shown here:

This will establish a connection to the emulator.
You can see the port number to be entered in the title bar of the emulator window.
If this succeeds, it will open the Android Console:

Here you can use all kinds of commands.
To simulate a call, type ‘gsm call 066712345‘:

The result is an incoming call at the emulator:

To cancel the call, type ‘gsm cancel 066712345‘.
See http://developer.android.com/guide/developing/tools/emulator.html#telephony for more information about gsm operations.
Use ‘exit‘ to exit the Android Console and ‘quit‘ to quit telnet.
Hope that helps!
Android & Eclipse “Could not find *.apk”
August 21st, 2010If you’re using Eclipse to develop Android applications and get the error:
[2010-08-16 19:56:41 - xxx] ------------------------------ [2010-08-16 19:56:41 - xxx] Android Launch! [2010-08-16 19:56:41 - xxx] adb is running normally. [2010-08-16 19:56:41 - xxx] Could not find xxx.apk! [2010-08-16 19:58:04 - xxx] ------------------------------
after importing a project (maybe doing some reconfiguring), just remove the project (only the project from Eclipse, not from disk!).
Then simply re-import it and it should work again!
Update March 14th: according to Sean, you can get this error also by having the emulator already running and changing the project SDK. The solution then is to close the emulator and run it again from eclipse. Thanks for the info!