Well, I created an Android 4.03 WSVGA emulator and modified the program with designer for the larger screen the program runs every other time -runs once, fails once, etc.
When it does run it turns the ENTIRE DEVICE upside down! That is the graphic is upside down, but so is the Android menu. It goes from the bottom to the top with all icons inverted. When the program is closed the menu returns to the bottom. I had the same results with other emulators and unmodified code.
Using the debugger I have Stopped the program on the first line of Activity_Create. The screen has already been turned upside down. I have several other programs. None of them do this.
Also, the actual pointer on the thermometer is never displayed.
Here is the log when it runs:
START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.ab.abmeter/.main} from pid 176
Failure taking screenshot for (374x230) to layer 21005
Start proc com.ab.abmeter for activity com.ab.abmeter/.main: pid=748 uid=10040 gids={}
Turning on JNI app bug workarounds for target SDK version 4...
Reconfiguring input devices. changes=0x00000004
Device reconfigured: id=0, name='qwerty2', surface size is now 1024x600, mode is 1
createScreenshotSurface failed (Function not implemented)
setKernelCountSet(10040, 1) failed with errno -2
setLightsOn(true)
** Activity (main) Create, isFirst = true **
GC_FOR_ALLOC freed 106K, 4% free 6537K/6787K, paused 50ms
Grow heap (frag case) to 8.735MB for 2394016-byte allocation
GC_CONCURRENT freed 6K, 4% free 8869K/9159K, paused 4ms+4ms
GC_FOR_ALLOC freed 4K, 4% free 9236K/9543K, paused 173ms
Grow heap (frag case) to 11.322MB for 2342416-byte allocation
GC_CONCURRENT freed <1K, 3% free 11523K/11847K, paused 5ms+3ms
** Activity (main) Resume **
Starting input on non-focused client
com.android.internal.view.IInputMethodClient$Stub$Proxy@411ab438 (uid=10009 pid=176)
Emulator without GPU emulation detected.
Displayed com.ab.abmeter/.main: +2s477ms
setKernelCountSet(10009, 0) failed with errno -2
GC_EXPLICIT freed 60K, 12% free 8624K/9735K, paused 5ms+10ms
Here is the log when it fails:
START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.ab.abmeter/.main} from pid 176
Failure taking screenshot for (374x230) to layer 21005
Reconfiguring input devices. changes=0x00000004
Device reconfigured: id=0, name='qwerty2', surface size is now 1024x600, mode is 1
createScreenshotSurface failed (Function not implemented)
setKernelCountSet(10040, 1) failed with errno -2
unable to find stats for iface rmnet0
** Activity (main) Create, isFirst = false **
setLightsOn(true)
GC_FOR_ALLOC freed 12K, 3% free 11914K/12231K, paused 141ms
Grow heap (frag case) to 13.937MB for 2342416-byte allocation
GC_CONCURRENT freed 1K, 3% free 14201K/14535K, paused 5ms+5ms
main_drawbackground (java line: 334)
java.lang.NullPointerException
at com.AB.ABExtDrawing.ABExtDrawing.drawBitmap2(ABExtDrawing.java:232)
at com.ab.abmeter.main._drawbackground(main.java:334)
at com.ab.abmeter.main._drawme(main.java:407)
at com.ab.abmeter.main._activity_create(main.java:293)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at com.ab.abmeter.main.afterFirstLayout(main.java:89)
at com.ab.abmeter.main.access$100(main.java:16)
at com.ab.abmeter.main$WaitForLayout.run(main.java:74)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
java.lang.NullPointerException
Starting input on non-focused client
com.android.internal.view.IInputMethodClient$Stub$Proxy@411ab438 (uid=10009 pid=176)
Displayed com.ab.abmeter/.main: +2s969ms
setKernelCountSet(10009, 0) failed with errno -2
GC_EXPLICIT freed 95K, 12% free 8631K/9735K, paused 5ms+10ms