*
The moose likes Android and the fly likes problems with finding avd Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "problems with finding avd " Watch "problems with finding avd " New topic
Author

problems with finding avd

jankko noones
Greenhorn

Joined: May 28, 2011
Posts: 2
Hello everybody,

I am newbie to Android programming. So far I have been able to install all the programs in order to start experiencing Android. I wanted to start with hello world project with some simple texts outputting onto the emulator, but this is something I am not able to get it work properly. Was wondering whether anyone here more experienced developer could help me to get started with the project.

I have configured android2.2 as avd. Here are the steps I take in order to run the hello world application from Eclipse
1. Run HelloWorld
2. Android Device Chooser -dialog pops up
3. I check Launch a new Android Virtual Device -radiobutton and activate and2.2 (as target 2.2, as platform 2.2, as api level 8) -row
4. I click ok
4.1 On my console window I get these outputted
[2011-05-28 15:07:53 - HelloWorld] ------------------------------
[2011-05-28 15:07:53 - HelloWorld]Android Launch!
[2011-05-28 15:07:53 - HelloWorld] adb is running normally.
[2011-05-28 15:07:53 - HelloWorld] Performing com.jankko.helloworld.HelloWorldJanne activity launch
[2011-05-28 15:10:23 - HelloWorld] Launching a new emulator with Virtual Device 'and2.2'
5. Emulator windows pops up but no matter what I try I can't find helloworld application

Have someone else experienced anything like this before? What could be a solution so I would get
my helloworld application running properly?

If you could help, I would appreciate it very much
br Jankko



David Freitag
Greenhorn

Joined: May 28, 2011
Posts: 13

Have you actually created an emulator using the AVD manager?
Try this:


It just sounds like you are telling Eclipse to use an AVD that you don't actually have.

your console output should look more like this:
[2011-05-29 02:11:51 - Environics] Android Launch!
[2011-05-29 02:11:51 - Environics] adb is running normally.
[2011-05-29 02:11:51 - Environics] Performing com.Environics.MainView activity launch
[2011-05-29 02:11:51 - Environics] Automatic Target Mode: Several compatible targets. Please select a target device.
[2011-05-29 02:11:54 - Environics] Uploading Environics.apk onto device 'emulator-5554'
[2011-05-29 02:11:54 - Environics] Installing Environics.apk...
[2011-05-29 02:12:11 - Environics] Success!
[2011-05-29 02:12:11 - Environics] Starting activity com.Environics.MainView on device emulator-5554


And to find installed applications you want to open the Application Drawer,

That will open a window,

that is all of the installed applications, to run one just click one.
Pranav Raulkar
Ranch Hand

Joined: Apr 20, 2011
Posts: 73

jankko noones wrote:
3. I check Launch a new Android Virtual Device -radiobutton and activate and2.2 (as target 2.2, as platform 2.2, as api level 8) -row
Seems that you have configured an avd correctly. jankko instead of looking the logs from console, open DDMS perspective, and switch to LogCat console. Run your app and tell us what logs you see specific to you app (Errors/Exceptions in red color)
jankko noones
Greenhorn

Joined: May 28, 2011
Posts: 2
Hi there,

Thank you for your posts!

When launching the app/emulator, I get this on my console
[2011-05-29 13:24:57 - HelloWorldJanne] Performing com.jankko.helloworld.HelloWorldJanne activity launch
[2011-05-29 13:26:11 - HelloWorldJanne] Launch canceled!

When the emulator starts up, I get a bunch of errors message on a separate window stating like this
01:25:05 E/ddms: shutting down to uncaught exception
01:25:05 E/ddms: Bad version: standalone

java.lang.IllegalArgumentException: Bad version: standalone
at com.android.sdkstats.SdkStatsService.normalizeVersion(....)
at com.android.sdkstats.SdkStatsService.doPing(...)

What could be causing these errors?
br jankko
Pranav Raulkar
Ranch Hand

Joined: Apr 20, 2011
Posts: 73

1. Read this http://programmingbulls.com/e-ddms-illegalargumentexception-bad-version-both-32-and-64-bit-java-jre-installed
2. Modify ddms.bat in android-sdk-windows\tools folder. The last line from
call %java_exe% %java_debug% -Djava.ext.dirs=%javaextdirs% -Dcom.android.ddms.bindir= -jar %jarpath% %*
to:
call %java_exe% %java_debug% -Djava.ext.dirs=%javaextdirs% -Dcom.android.ddms.bindir= -jar %jarpath% ping emulator 0012
 
 
subject: problems with finding avd