Thursday, December 9, 2010

[android-developers] New to Android - sample app doesn't do anything

I'm new to Android, but have done Java, GWT, and App Engine
development in the past. I'm running Eclipse 3.6 on Ubuntu 10.04. I
installed the Eclipse development plugin, created an avd, installed
the android samples, and created an Eclipse project with the NotesList
sample.

When I run the project (ran it in the debugger) everything proceeds
normally -- no errors. (Eclipse console output is listed below). I
placed a breakpoint at the start of the onCreate() method for
NotesList. The breakpoint is hit and when I step through the code, the
method executes without any problems.

The problem I have is that nothing shows up in the emulator. The only
thing I see is an icon with a 36 and 2 arrows, a wifi strength monitor
icon, a battery icon, the time, and then a volume and lock icon. also,
the time, date, and Charging 50% on the left side of the screen.

Shouldn't I see an icon for the NotesList application? Or should the
application display as the top-level activity? I'm a bit confused. Is
there something else I need to do?

I have tried rebooting Eclipse. Tried starting the avm both through
the AVD Manager and "automatically" by running the application.
Nothing. Can someone please tell me what I am missing?

Following is the Eclipse console output:

[2010-12-09 16:47:26 - NotesList] Android Launch!
[2010-12-09 16:47:26 - NotesList] adb is running normally.
[2010-12-09 16:47:26 - NotesList] Performing
com.example.android.notepad.NotesList activity launch
[2010-12-09 16:47:26 - NotesList] Automatic Target Mode: Preferred AVD
'Archos101' is available on emulator 'emulator-5554'
[2010-12-09 16:47:26 - NotesList] Uploading NotesList.apk onto device
'emulator-5554'
[2010-12-09 16:47:26 - NotesList] Installing NotesList.apk...
[2010-12-09 16:47:49 - NotesList] Success!
[2010-12-09 16:47:50 - NotesList] Starting activity
com.example.android.notepad.NotesList on device emulator-5554
[2010-12-09 16:47:52 - NotesList] ActivityManager: Starting: Intent
{ act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER]
cmp=com.example.android.notepad/.NotesList }
[2010-12-09 16:47:55 - NotesList] Attempting to connect debugger to
'com.example.android.notepad' on port 8603

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment