This is my first post, as I am new to Android development.  I have
many years with C++/C#/Windows, et al.

I started developing an Android project last week and, considering it
was my first time using Eclipse, Java and Android I am very happy with
the progress and loving all the new tools.  But I finally hit a wall.

*** environment ***
- OS: Windows XP
- Eclipse: Eclipse IDE for Java Developers, Build id: 20090920-1017,
1.2.1.20090918-0703
- Android Toolkit 0.9.5.v200911191123-20404
- Devices are Emulator and Droid

*** app description ***
Basic game that used the Android Lunar Lander example as a starting
point.

*** Problem ***

I noticed odd app behavior so I ran under the debugger and was
surprised with what I saw.  The following method returns false.

                        boolean headingNorth()
                        {
                                int i = 1;

                                if (1 == i)
                                        return true;
                                else
                                        return false;
                        }

I've tried all sorts of variations of the method and nothing changes
the outcome (or if it does, the Good Times only last till the method
exits and the caller then has problems).  The method exists in a
thread that was created exclusively for graphics/UI (just like Lunar
Lander) and synchronizes access points (like Lander).

At this point, my question is very general: What could possibly be
causing this and how do I go about fixing?

(included log dump below.  Is the "Failed to ersist new stats" of
interest?)

Thanks,

Tom

*** Log ***

I02-01 15:14:02.864: INFO/System.out(10130): Sending WAIT chunk
02-01 15:14:02.872: INFO/dalvikvm(10130): Debugger is active
02-01 15:14:03.060: INFO/System.out(10130): Debugger has connected
02-01 15:14:03.067: INFO/System.out(10130): waiting for debugger to
settle...
02-01 15:14:03.263: INFO/System.out(10130): waiting for debugger to
settle...
02-01 15:14:03.466: INFO/System.out(10130): waiting for debugger to
settle...
02-01 15:14:03.669: INFO/System.out(10130): waiting for debugger to
settle...
02-01 15:14:03.872: INFO/System.out(10130): waiting for debugger to
settle...
02-01 15:14:04.067: INFO/System.out(10130): waiting for debugger to
settle...
02-01 15:14:04.275: INFO/System.out(10130): waiting for debugger to
settle...
02-01 15:14:04.476: INFO/System.out(10130): waiting for debugger to
settle...
02-01 15:14:04.677: INFO/System.out(10130): waiting for debugger to
settle...
02-01 15:14:04.879: INFO/System.out(10130): waiting for debugger to
settle...
02-01 15:14:05.079: INFO/System.out(10130): debugger has settled
(1405)
02-01 15:14:05.833: WARN/MediaPlayer(10130): info/warning (1, 44)
02-01 15:14:05.888: WARN/MediaPlayer(10130): info/warning (1, 44)
02-01 15:14:05.958: WARN/MediaPlayer(10130): info/warning (1, 44)
02-01 15:14:05.989: INFO/MediaPlayer(10130): Info (1,44)
02-01 15:14:05.989: INFO/MediaPlayer(10130): Info (1,44)
02-01 15:14:05.997: INFO/MediaPlayer(10130): Info (1,44)
02-01 15:14:06.161: DEBUG/dalvikvm(10130): GC freed 701 objects /
54016 bytes in 52ms
02-01 15:14:06.458: DEBUG/dalvikvm(10130): GC freed 53 objects / 1944
bytes in 60ms
02-01 15:14:07.232: DEBUG/dalvikvm(10130): GC freed 132 objects / 6088
bytes in 45ms
02-01 15:14:07.396: DEBUG/dalvikvm(10130): GC freed 140 objects / 5456
bytes in 46ms
02-01 15:14:07.724: INFO/ActivityManager(1022): Displayed activity
MyCo.MyGame1/.MyGame: 5047 ms (total 5047 ms)
02-01 15:14:07.724: WARN/UsageStats(1022): Failed to persist new stats
02-01 15:14:14.239: DEBUG/dalvikvm(2533): GC freed 921 objects / 57144
bytes in 1460ms

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

Reply via email to