Android Question D-pads / Remotes / Keyboards HELP!

aidymp

Well-Known Member
Licensed User
Longtime User
Hi,

For the past 2 days I have been going out of my mind with this problem!

Firstly I am making an app that I want to work on EVERYTHING! but it is actually aimed at TV boxes.

I am developing the app using an emulator, and 3 tablets! I have 2 android TV boxes but too lazy to run in the other room to try them!

I have a 9patch button, and i set the state_Focused with an image. The image never shows! After 2 days of trying I went to the other room and run the app on the tv box and I can see the focus indicator (change in button outline). All working fine!! So i have deduced that, the focus indicator is only shown on devices that either have a remote, or dpad or similar! much in the same way the mouse pointer only comes on when you plug a mouse in!

I would have expected the emulator to have picked up my PC keyboard and show focus, but it does not , although it works fine for entering text ect!

or maybe it thinks if its has touchscreen, it will not need to show focus?

The Question is, How can I force it to show the focus? either by making it think it has a d-pad / keyboard / remote or some other way??

Thanks

Aidy

--- EDIT looking here http://developer.android.com/training/tv/start/navigation.html i can see there is a state_hovered but in b4a it seems to fail to recognise it. I would like to try that option how can I do that I have seen states written as numbers so that may be possible?

--- EDIT 2 using my tablet I couldn't get focus working, with my wireless remote / mouse combo installed, I have just turned the mouse off, and can now see the focus item and move it with arrow keys and select with enter!

--- EDIT 3 Looking at this http://stackoverflow.com/questions/8852420/what-is-the-state-focused-state-for-a-button it appears to be a common problem!!

--- EDIT 4 Using Google-FU I found this! http://android-developers.blogspot.co.at/2008/12/touch-mode.html Maybe the answer is here? How do I set the Focusable in touch mode property???
 
Last edited:

aidymp

Well-Known Member
Licensed User
Longtime User
You can call setFocusableInTouchMode with JavaObject:
B4X:
Dim jo As JavaObject = Button1
jo.RunMethod("setFocusableInTouchMode", Array (True))

Thank you so much! that worked, unfortunately there seems to now be another problem! I noticed this last night, so it has nothing to do with the above code.

On a real device with touch (WITHOUT THE CODE ABOVE) the app works perfect!

On a real device with no touch, and a remote again (WITHOUT THE CODE ABOVE) I can navigate, select certain options and pressing select will select them! however selecting the download option, I get a crash (But I don't get a crash if I click it with a mouse!)

on the emulator (WITH THE CODE ABOVE) focus shows and behaves as expected, but once again selecting the download option (WITH THE SELECT / ENTER KEY) crashes! but not with a mouse click?!

Using my new found friend the "Android Device Monitor" - (This should be more widely published - I only found it as someone mentioned it in a post! after about a year of using B4A!!)

The log is quite large! and includes some data I dont want to share, so i will only upload if requested too.

But to cut a long story short, my routine works correctly using touch and mouse, but pressing enter I get a crash!?!!?!

Thanks

Aidy
 
Upvote 0

aidymp

Well-Known Member
Licensed User
Longtime User
Hard to say without the error message and stack trace.

OK i have a good look at the code, because, I have noticed that i have 2 buttons that do a very similar operation, and only 1 of those crashes!!

I will post any findings here, as I have noticed, that the focus problem is something other forum users have experienced!

Thanks

Aidy
 
Upvote 0

aidymp

Well-Known Member
Licensed User
Longtime User
***********************************************************************
SOLVED!!!! Rogue DoEvents, called just after, Works in touch mode, but in NON Touch Mode caused app to crash!
***********************************************************************

I have removed the 9 patch code, so just on standard buttons, I have removed the code
B4X:
Dim jo As JavaObject = Button1
jo.RunMethod("setFocusableInTouchMode", Array (True))
as that was only needed to display the focus halo in touch mode.

Using some of my old apps, I can move the cursor, and select options with the remote, so I can see it is working! however in my new app, that I am really eager to release, (Everything works perfect using touch!!) But using a d-pad / remote, when I press select (enter) on a highlighted object, The process starts and then crashes, with the unfortunately xxxx has stopped message!

Using Androids Monitor program the Logcat is rather large, please can someone with knowledge take a look and see if it reveals anything?

10-30 08:59:06.837: W/AudioTrack(733): AUDIO_OUTPUT_FLAG_FAST denied by client
10-30 08:59:06.866: D/OpenGLRenderer(733): endAllStagingAnimators on 0xa1b67f00 (RippleDrawable) with handle 0xaf21a820
10-30 08:59:06.868: W/InputMethodManagerService(733): Got RemoteException sending setActive(false) notification to pid 2756 uid 10062
10-30 08:59:10.218: W/AudioTrack(733): AUDIO_OUTPUT_FLAG_FAST denied by client
10-30 08:59:10.218: I/ActivityManager(733): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.aidymp.aidymatic/.main bnds=[332,840][648,1050] (has extras)} from uid 10039 on display 0
10-30 08:59:10.219: V/WindowManager(733): addAppToken: AppWindowToken{3c902c6f token=Token{85a134e ActivityRecord{2f17de49 u0 com.aidymp.aidymatic/.main t1159}}} to stack=1 task=1159 at 0
10-30 08:59:10.231: V/WindowManager(733): Adding window Window{1aad7014 u0 Starting com.aidymp.aidymatic} at 3 of 8 (after Window{c135d7d u0 com.android.launcher3/com.android.launcher3.Launcher})
10-30 08:59:10.236: I/ActivityManager(733): Start proc 2866:com.aidymp.aidymatic/u0a62 for activity com.aidymp.aidymatic/.main
10-30 08:59:10.247: I/art(2866): Debugger is no longer active
10-30 08:59:10.275: D/OpenGLRenderer(2866): Use EGL_SWAP_BEHAVIOR_PRESERVED: true
10-30 08:59:10.277: D/(2866): HostConnection::get() New Host Connection established 0xb4274890, tid 2866
10-30 08:59:10.285: D/Atlas(2866): Validating map...
10-30 08:59:10.288: V/WindowManager(733): Adding window Window{917ebb9 u0 com.aidymp.aidymatic/com.aidymp.aidymatic.main} at 3 of 9 (before Window{1aad7014 u0 Starting com.aidymp.aidymatic})
10-30 08:59:10.314: D/libEGL(2866): loaded /system/lib/egl/libEGL_emulation.so
10-30 08:59:10.315: D/libEGL(2866): loaded /system/lib/egl/libGLESv1_CM_emulation.so
10-30 08:59:10.319: D/libEGL(2866): loaded /system/lib/egl/libGLESv2_emulation.so
10-30 08:59:10.323: D/(2866): HostConnection::get() New Host Connection established 0xaf039480, tid 2884
10-30 08:59:10.340: I/OpenGLRenderer(2866): Initialized EGL, version 1.4
10-30 08:59:10.361: D/OpenGLRenderer(2866): Enabling debug mode 0
10-30 08:59:10.384: W/EGL_emulation(2866): eglSurfaceAttrib not implemented
10-30 08:59:10.384: W/OpenGLRenderer(2866): Failed to set EGL_SWAP_BEHAVIOR on surface 0xaf035860, error=EGL_SUCCESS
10-30 08:59:10.415: W/System.err(2866): java.io.FileNotFoundException: error.png
10-30 08:59:10.415: W/System.err(2866): at android.content.res.AssetManager.openAsset(Native Method)
10-30 08:59:10.415: W/System.err(2866): at android.content.res.AssetManager.open(AssetManager.java:313)
10-30 08:59:10.415: W/System.err(2866): at android.content.res.AssetManager.open(AssetManager.java:287)
10-30 08:59:10.415: W/System.err(2866): at anywheresoftware.giuseppe.salvi.toast.ToastMessageShowWrapper.getBitmapFromAsset(ToastMessageShowWrapper.java:927)
10-30 08:59:10.415: W/System.err(2866): at anywheresoftware.giuseppe.salvi.toast.ToastMessageShowWrapper.<clinit>(ToastMessageShowWrapper.java:44)
10-30 08:59:10.415: W/System.err(2866): at com.aidymp.aidymatic.main._globals(main.java:2054)
10-30 08:59:10.415: W/System.err(2866): at java.lang.reflect.Method.invoke(Native Method)
10-30 08:59:10.415: W/System.err(2866): at java.lang.reflect.Method.invoke(Method.java:372)
10-30 08:59:10.415: W/System.err(2866): at anywheresoftware.b4a.BA.raiseEvent2(BA.java:187)
10-30 08:59:10.415: W/System.err(2866): at com.aidymp.aidymatic.main.initializeGlobals(main.java:308)
10-30 08:59:10.416: W/System.err(2866): at com.aidymp.aidymatic.main.afterFirstLayout(main.java:99)
10-30 08:59:10.416: W/System.err(2866): at com.aidymp.aidymatic.main.access$000(main.java:17)
10-30 08:59:10.416: W/System.err(2866): at com.aidymp.aidymatic.main$WaitForLayout.run(main.java:80)
10-30 08:59:10.416: W/System.err(2866): at android.os.Handler.handleCallback(Handler.java:739)
10-30 08:59:10.416: W/System.err(2866): at android.os.Handler.dispatchMessage(Handler.java:95)
10-30 08:59:10.416: W/System.err(2866): at android.os.Looper.loop(Looper.java:135)
10-30 08:59:10.416: W/System.err(2866): at android.app.ActivityThread.main(ActivityThread.java:5254)
10-30 08:59:10.416: W/System.err(2866): at java.lang.reflect.Method.invoke(Native Method)
10-30 08:59:10.416: W/System.err(2866): at java.lang.reflect.Method.invoke(Method.java:372)
10-30 08:59:10.416: W/System.err(2866): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
10-30 08:59:10.416: W/System.err(2866): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
10-30 08:59:10.416: W/System.err(2866): java.io.FileNotFoundException: info.png
10-30 08:59:10.416: W/System.err(2866): at android.content.res.AssetManager.openAsset(Native Method)
10-30 08:59:10.416: W/System.err(2866): at android.content.res.AssetManager.open(AssetManager.java:313)
10-30 08:59:10.416: W/System.err(2866): at android.content.res.AssetManager.open(AssetManager.java:287)
10-30 08:59:10.416: W/System.err(2866): at anywheresoftware.giuseppe.salvi.toast.ToastMessageShowWrapper.getBitmapFromAsset(ToastMessageShowWrapper.java:927)
10-30 08:59:10.416: W/System.err(2866): at anywheresoftware.giuseppe.salvi.toast.ToastMessageShowWrapper.<clinit>(ToastMessageShowWrapper.java:48)
10-30 08:59:10.416: W/System.err(2866): at com.aidymp.aidymatic.main._globals(main.java:2054)
10-30 08:59:10.416: W/System.err(2866): at java.lang.reflect.Method.invoke(Native Method)
10-30 08:59:10.416: W/System.err(2866): at java.lang.reflect.Method.invoke(Method.java:372)
10-30 08:59:10.416: W/System.err(2866): at anywheresoftware.b4a.BA.raiseEvent2(BA.java:187)
10-30 08:59:10.416: W/System.err(2866): at com.aidymp.aidymatic.main.initializeGlobals(main.java:308)
10-30 08:59:10.416: W/System.err(2866): at com.aidymp.aidymatic.main.afterFirstLayout(main.java:99)
10-30 08:59:10.417: W/System.err(2866): at com.aidymp.aidymatic.main.access$000(main.java:17)
10-30 08:59:10.417: W/System.err(2866): at com.aidymp.aidymatic.main$WaitForLayout.run(main.java:80)
10-30 08:59:10.417: W/System.err(2866): at android.os.Handler.handleCallback(Handler.java:739)
10-30 08:59:10.417: W/System.err(2866): at android.os.Handler.dispatchMessage(Handler.java:95)
10-30 08:59:10.417: W/System.err(2866): at android.os.Looper.loop(Looper.java:135)
10-30 08:59:10.417: W/System.err(2866): at android.app.ActivityThread.main(ActivityThread.java:5254)
10-30 08:59:10.417: W/System.err(2866): at java.lang.reflect.Method.invoke(Native Method)
10-30 08:59:10.417: W/System.err(2866): at java.lang.reflect.Method.invoke(Method.java:372)
10-30 08:59:10.417: W/System.err(2866): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
10-30 08:59:10.417: W/System.err(2866): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
10-30 08:59:10.417: W/System.err(2866): java.io.FileNotFoundException: success.png
10-30 08:59:10.417: W/System.err(2866): at android.content.res.AssetManager.openAsset(Native Method)
10-30 08:59:10.417: W/System.err(2866): at android.content.res.AssetManager.open(AssetManager.java:313)
10-30 08:59:10.417: W/System.err(2866): at android.content.res.AssetManager.open(AssetManager.java:287)
10-30 08:59:10.417: W/System.err(2866): at anywheresoftware.giuseppe.salvi.toast.ToastMessageShowWrapper.getBitmapFromAsset(ToastMessageShowWrapper.java:927)
10-30 08:59:10.417: W/System.err(2866): at anywheresoftware.giuseppe.salvi.toast.ToastMessageShowWrapper.<clinit>(ToastMessageShowWrapper.java:52)
10-30 08:59:10.417: W/System.err(2866): at com.aidymp.aidymatic.main._globals(main.java:2054)
10-30 08:59:10.417: W/System.err(2866): at java.lang.reflect.Method.invoke(Native Method)
10-30 08:59:10.417: W/System.err(2866): at java.lang.reflect.Method.invoke(Method.java:372)
10-30 08:59:10.417: W/System.err(2866): at anywheresoftware.b4a.BA.raiseEvent2(BA.java:187)
10-30 08:59:10.417: W/System.err(2866): at com.aidymp.aidymatic.main.initializeGlobals(main.java:308)
10-30 08:59:10.417: W/System.err(2866): at com.aidymp.aidymatic.main.afterFirstLayout(main.java:99)
10-30 08:59:10.417: W/System.err(2866): at com.aidymp.aidymatic.main.access$000(main.java:17)
10-30 08:59:10.417: W/System.err(2866): at com.aidymp.aidymatic.main$WaitForLayout.run(main.java:80)
10-30 08:59:10.417: W/System.err(2866): at android.os.Handler.handleCallback(Handler.java:739)
10-30 08:59:10.417: W/System.err(2866): at android.os.Handler.dispatchMessage(Handler.java:95)
10-30 08:59:10.417: W/System.err(2866): at android.os.Looper.loop(Looper.java:135)
10-30 08:59:10.417: W/System.err(2866): at android.app.ActivityThread.main(ActivityThread.java:5254)
10-30 08:59:10.417: W/System.err(2866): at java.lang.reflect.Method.invoke(Native Method)
10-30 08:59:10.417: W/System.err(2866): at java.lang.reflect.Method.invoke(Method.java:372)
10-30 08:59:10.417: W/System.err(2866): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
10-30 08:59:10.417: W/System.err(2866): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
10-30 08:59:10.417: W/System.err(2866): java.io.FileNotFoundException: warning.png
10-30 08:59:10.417: W/System.err(2866): at android.content.res.AssetManager.openAsset(Native Method)
10-30 08:59:10.417: W/System.err(2866): at android.content.res.AssetManager.open(AssetManager.java:313)
10-30 08:59:10.417: W/System.err(2866): at android.content.res.AssetManager.open(AssetManager.java:287)
10-30 08:59:10.417: W/System.err(2866): at anywheresoftware.giuseppe.salvi.toast.ToastMessageShowWrapper.getBitmapFromAsset(ToastMessageShowWrapper.java:927)
10-30 08:59:10.417: W/System.err(2866): at anywheresoftware.giuseppe.salvi.toast.ToastMessageShowWrapper.<clinit>(ToastMessageShowWrapper.java:56)
10-30 08:59:10.417: W/System.err(2866): at com.aidymp.aidymatic.main._globals(main.java:2054)
10-30 08:59:10.417: W/System.err(2866): at java.lang.reflect.Method.invoke(Native Method)
10-30 08:59:10.417: W/System.err(2866): at java.lang.reflect.Method.invoke(Method.java:372)
10-30 08:59:10.417: W/System.err(2866): at anywheresoftware.b4a.BA.raiseEvent2(BA.java:187)
10-30 08:59:10.417: W/System.err(2866): at com.aidymp.aidymatic.main.initializeGlobals(main.java:308)
10-30 08:59:10.417: W/System.err(2866): at com.aidymp.aidymatic.main.afterFirstLayout(main.java:99)
10-30 08:59:10.417: W/System.err(2866): at com.aidymp.aidymatic.main.access$000(main.java:17)
10-30 08:59:10.417: W/System.err(2866): at com.aidymp.aidymatic.main$WaitForLayout.run(main.java:80)
10-30 08:59:10.417: W/System.err(2866): at android.os.Handler.handleCallback(Handler.java:739)
10-30 08:59:10.417: W/System.err(2866): at android.os.Handler.dispatchMessage(Handler.java:95)
10-30 08:59:10.417: W/System.err(2866): at android.os.Looper.loop(Looper.java:135)
10-30 08:59:10.417: W/System.err(2866): at android.app.ActivityThread.main(ActivityThread.java:5254)
10-30 08:59:10.417: W/System.err(2866): at java.lang.reflect.Method.invoke(Native Method)
10-30 08:59:10.417: W/System.err(2866): at java.lang.reflect.Method.invoke(Method.java:372)
10-30 08:59:10.417: W/System.err(2866): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
10-30 08:59:10.417: W/System.err(2866): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
10-30 08:59:10.419: I/B4A(2866): ~i:** Activity (main) Create, isFirst = true **
10-30 08:59:10.473: I/WebViewFactory(2866): Loading com.android.webview version 39 (eng.buildbot-x86) (code 399997)
10-30 08:59:10.476: I/LibraryLoader(2866): Time to load native libraries: 0 ms (timestamps 6551-6551)
10-30 08:59:10.476: I/LibraryLoader(2866): Expected native library version number "",actual native library version number ""
10-30 08:59:10.478: V/WebViewChromiumFactoryProvider(2866): Binding Chromium to main looper Looper (main, tid 1) {395fe473}
10-30 08:59:10.478: I/LibraryLoader(2866): Expected native library version number "",actual native library version number ""
10-30 08:59:10.479: I/chromium(2866): [INFO:library_loader_hooks.cc(104)] Chromium logging enabled: level = 0, default verbosity = 0
10-30 08:59:10.480: I/BrowserStartupController(2866): Initializing chromium process, singleProcess=true
10-30 08:59:10.481: W/art(2866): Attempt to remove local handle scope entry from IRT, ignoring
10-30 08:59:10.485: W/chromium(2866): [WARNING:resource_bundle.cc(304)] locale_file_path.empty()
10-30 08:59:10.485: I/chromium(2866): [INFO:aw_browser_main_parts.cc(65)] Load from apk succesful, fd=43 off=46184 len=3037
10-30 08:59:10.485: I/chromium(2866): [INFO:aw_browser_main_parts.cc(78)] Loading webviewchromium.pak from, fd:44 off:229484 len:1089587
10-30 08:59:10.485: W/AudioManagerAndroid(2866): Requires BLUETOOTH permission
10-30 08:59:10.518: W/chromium(2866): [WARNING:mailbox_synchronizer.cc(41)] MailboxSync not supported due to missing EGL image/fence support
10-30 08:59:10.525: W/chromium(2866): [WARNING:data_reduction_proxy_settings.cc(331)] SPDY proxy OFF at startup
10-30 08:59:10.527: W/art(2866): Attempt to remove local handle scope entry from IRT, ignoring
10-30 08:59:10.528: W/AwContents(2866): onDetachedFromWindow called when already detached. Ignoring
10-30 08:59:10.541: I/B4A(2866): Tab 10
10-30 08:59:10.541: I/B4A(2866): 10 Inch Tablet - In Theory
10-30 08:59:10.556: I/B4A(2866): 15.1
10-30 08:59:10.561: V/WindowManager(733): Adding window Window{4a042b0 u0 com.aidymp.aidymatic/com.aidymp.aidymatic.main} at 4 of 10 (before Window{1aad7014 u0 Starting com.aidymp.aidymatic})
10-30 08:59:10.563: D/WifiService(733): New client listening to asynchronous messages
10-30 08:59:10.563: I/B4A(2866): mac = 08:00:27:8f:f4:ec
10-30 08:59:10.563: I/B4A(2866): MAC = 08:00:27:8F:F4:EC
10-30 08:59:10.568: I/B4A(2866): ~i:** Activity (main) Resume **
10-30 08:59:10.693: W/EGL_emulation(2866): eglSurfaceAttrib not implemented
10-30 08:59:10.693: W/OpenGLRenderer(2866): Failed to set EGL_SWAP_BEHAVIOR on surface 0xaf0358a0, error=EGL_SUCCESS
10-30 08:59:10.703: I/WindowManager(733): Switching to real app window: Window{917ebb9 u0 com.aidymp.aidymatic/com.aidymp.aidymatic.main}
10-30 08:59:10.821: I/ActivityManager(733): Displayed com.aidymp.aidymatic/.main: +597ms
10-30 08:59:10.822: I/B4A(2866): Current version 3.0
10-30 08:59:10.822: I/B4A(2866): Web Version 0.5
10-30 08:59:10.822: I/B4A(2866): Changelog
10-30 08:59:10.822: I/B4A(2866): 0.5 - Minor interface changes & Video Added
10-30 08:59:10.822: I/B4A(2866): 0.4 - So far So Good!
10-30 08:59:10.822: I/B4A(2866): 0.3 - Interface Adjustments
10-30 08:59:10.822: I/B4A(2866): 0.2 - Bug Fixes
10-30 08:59:10.822: I/B4A(2866): 0.1 - Initial Release
10-30 08:59:10.822: I/B4A(2866): No New Version Found
10-30 08:59:10.823: I/B4A(2866): ~i:** Service (httputils2service) Create **
10-30 08:59:10.824: I/B4A(2866): ~i:** Service (httputils2service) Start **
10-30 08:59:10.824: I/B4A(2866): ~i:** Service (httputils2service) Start **
10-30 08:59:10.825: I/B4A(2866): ~i:** Service (httputils2service) Start **
10-30 08:59:10.825: I/B4A(2866): ~i:** Service (httputils2service) Start **
10-30 08:59:10.898: I/B4A(2866): NewClass - SM2L Downloads =?5569
10-30 08:59:10.898: I/B4A(2866): NewClass - SM2 Downloads =?9606
10-30 08:59:10.899: I/B4A(2866): NewClass - SM2LA Downloads =?5243
10-30 08:59:10.923: I/B4A(2866): Job isvalid
10-30 08:59:10.923: I/B4A(2866): mac = 08:00:27:8f:f4:ec
10-30 08:59:10.923: I/B4A(2866): Success?true
10-30 08:59:10.923: I/B4A(2866): "Yeah What?"
10-30 08:59:10.923: I/B4A(2866): result Yeah What?
10-30 08:59:10.924: I/B4A(2866): INCORRECT
10-30 08:59:10.936: W/InputMethodManagerService(733): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@e5ac786 attribute=null, token = android.os.BinderProxy@1efb7980
10-30 08:59:12.049: I/B4A(2866): 3
10-30 08:59:12.049: I/B4A(2866): fOCUS? true
10-30 08:59:12.437: I/chromium(2866): [INFO:CONSOLE(10)] "The key "shrink-to-fit" is not recognized and ignored.", source: https://selz.com/media/55c73f28b79872132c7f565d?widget=true&bg=10cc23&text=000000 (10)
10-30 08:59:13.232: I/chromium(2866): [INFO:CONSOLE(10)] "The key "shrink-to-fit" is not recognized and ignored.", source: https://selz.com/media/55c73f23b7987209e4cb3cb4?widget=true&bg=10cc23&text=000000 (10)
10-30 08:59:13.279: I/B4A(2866): ZIP WORKING? 1
10-30 08:59:13.280: W/AudioTrack(733): AUDIO_OUTPUT_FLAG_FAST denied by client
10-30 08:59:13.354: I/art(2866): Rejecting re-init on previously-failed class java.lang.Class<com.google.android.gms.common.SupportErrorDialogFragment>
10-30 08:59:13.354: I/art(2866): Rejecting re-init on previously-failed class java.lang.Class<com.google.android.gms.common.SupportErrorDialogFragment>
10-30 08:59:13.355: W/GooglePlayServicesUtil(2866): Google Play services is missing.
10-30 08:59:13.378: I/dex2oat(2957): /system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=x86 --instruction-set-features=default --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --dex-file=/data/data/com.aidymp.aidymatic/cache/ads-2072960674.jar --oat-fd=154 --oat-location=/data/data/com.aidymp.aidymatic/cache/ads-2072960674.dex --runtime-arg -Xms64m --runtime-arg -Xmx512m
10-30 08:59:13.380: W/ActivityManager(733): Unable to start service Intent { act=com.android.vending.billing.InAppBillingService.BIND pkg=com.android.vending } U=0: not found
10-30 08:59:13.382: I/Ads(2866): Starting ad request.
10-30 08:59:13.382: I/Ads(2866): Use AdRequest.Builder.addTestDevice("FADBEB15362AE73EEE988D18723AF1CD") to get test ads on this device.
10-30 08:59:13.384: I/Ads(2866): Please set theme of AdActivity to @android:style/Theme.Translucent to enable transparent background interstitial ad.
10-30 08:59:13.390: I/dex2oat(2957): dex2oat took 11.839ms (threads: 4) arena alloc=90KB java alloc=12KB native alloc=1165KB free=6MB
10-30 08:59:13.446: I/Ads(2866): Not on service, return
10-30 08:59:13.602: W/art(2866): Attempt to remove local handle scope entry from IRT, ignoring
10-30 08:59:13.602: W/AwContents(2866): onDetachedFromWindow called when already detached. Ignoring
10-30 08:59:13.605: W/art(2866): Attempt to remove local handle scope entry from IRT, ignoring
10-30 08:59:13.721: D/TaskPersister(733): removeObsoleteFile: deleting file=1158_task.xml
10-30 08:59:13.721: D/TaskPersister(733): removeObsoleteFile: deleting file=1158_task_thumbnail.png
10-30 08:59:14.407: I/chromium(2866): [INFO:CONSOLE(0)] "Document was loaded from Application Cache with manifest https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.appcache", source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.html (0)
10-30 08:59:14.407: I/chromium(2866): [INFO:CONSOLE(0)] "Application Cache Checking event", source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.html (0)
10-30 08:59:14.634: I/chromium(2866): [INFO:CONSOLE(0)] "Application Cache NoUpdate event", source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.html (0)
10-30 08:59:15.994: W/art(2866): Attempt to remove local handle scope entry from IRT, ignoring
10-30 08:59:15.994: W/AwContents(2866): onDetachedFromWindow called when already detached. Ignoring
10-30 08:59:15.996: W/art(2866): Attempt to remove local handle scope entry from IRT, ignoring
10-30 08:59:16.275: W/ScreenOrientationListener(2866): Removing an inexistent observer!
10-30 08:59:17.261: I/Ads(2866): Scheduling ad refresh 60000 milliseconds from now.
10-30 08:59:17.263: W/art(2866): Attempt to remove local handle scope entry from IRT, ignoring
10-30 08:59:17.263: W/AwContents(2866): onDetachedFromWindow called when already detached. Ignoring
10-30 08:59:17.265: W/art(2866): Attempt to remove local handle scope entry from IRT, ignoring
10-30 08:59:17.267: I/Ads(2866): Ad finished loading.
10-30 08:59:17.267: I/B4A(2866): received
10-30 08:59:17.810: I/chromium(2866): [INFO:CONSOLE(0)] "Document was loaded from Application Cache with manifest https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.appcache", source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.html (0)
10-30 08:59:17.811: I/chromium(2866): [INFO:CONSOLE(0)] "Application Cache Checking event", source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.html (0)
10-30 08:59:17.897: I/chromium(2866): [INFO:CONSOLE(0)] "Application Cache NoUpdate event", source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.html (0)
10-30 08:59:19.215: I/Choreographer(2866): Skipped 34 frames! The application may be doing too much work on its main thread.
10-30 08:59:19.786: I/Choreographer(2866): Skipped 33 frames! The application may be doing too much work on its main thread.
10-30 08:59:19.786: W/AudioTrack(733): AUDIO_OUTPUT_FLAG_FAST denied by client
10-30 08:59:22.116: W/AudioTrack(733): AUDIO_OUTPUT_FLAG_FAST denied by client
10-30 08:59:23.660: W/AudioTrack(733): AUDIO_OUTPUT_FLAG_FAST denied by client
10-30 08:59:26.042: W/AudioTrack(733): AUDIO_OUTPUT_FLAG_FAST denied by client
10-30 08:59:28.861: I/InputDispatcher(733): Window 'Window{917ebb9 u0 com.aidymp.aidymatic/com.aidymp.aidymatic.main}' spent 3020.5ms processing the last input event: KeyEvent(deviceId=1, source=0x00000301, action=1, flags=0x00000008, keyCode=66, scanCode=28, metaState=0x00000000, repeatCount=0), policyFlags=0x62000000
10-30 08:59:33.444: I/Choreographer(2866): Skipped 37 frames! The application may be doing too much work on its main thread.
10-30 08:59:34.514: I/Choreographer(2866): Skipped 36 frames! The application may be doing too much work on its main thread.
10-30 08:59:40.992: W/AudioTrack(733): AUDIO_OUTPUT_FLAG_FAST denied by client
10-30 08:59:42.126: W/AudioTrack(733): AUDIO_OUTPUT_FLAG_FAST denied by client
10-30 08:59:43.819: W/AudioTrack(733): AUDIO_OUTPUT_FLAG_FAST denied by client
10-30 08:59:45.043: W/AudioTrack(733): AUDIO_OUTPUT_FLAG_FAST denied by client
10-30 08:59:47.824: W/AudioTrack(733): AUDIO_OUTPUT_FLAG_FAST denied by client
10-30 08:59:48.068: A/libc(2866): Fatal signal 11 (SIGSEGV), code 1, fault addr 0xc in tid 2866 (idymp.aidymatic)
10-30 08:59:48.170: I/DEBUG(85): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-30 08:59:48.170: I/DEBUG(85): Build fingerprint: 'generic/vbox86tp/vbox86tp:5.1/LMY47D/buildbot06101042:userdebug/test-keys'
10-30 08:59:48.170: I/DEBUG(85): Revision: '0'
10-30 08:59:48.170: I/DEBUG(85): ABI: 'x86'
10-30 08:59:48.170: I/DEBUG(85): pid: 2866, tid: 2866, name: idymp.aidymatic >>> com.aidymp.aidymatic <<<
10-30 08:59:48.170: I/DEBUG(85): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xc
10-30 08:59:48.173: I/DEBUG(85): eax 00000000 ebx b6afb9f8 ecx b405ba60 edx ba14a7c0
10-30 08:59:48.173: I/DEBUG(85): esi bff848d8 edi 00000000
10-30 08:59:48.173: I/DEBUG(85): xcs 00000073 xds 0000007b xes 0000007b xfs 00000007 xss 0000007b
10-30 08:59:48.173: I/DEBUG(85): eip b6aec44d ebp 8b44e770 esp bff84880 flags 00010282
10-30 08:59:48.173: I/DEBUG(85): backtrace:
10-30 08:59:48.173: I/DEBUG(85): #00 pc 0001944d /system/lib/libinput.so (android::InputChannel::receiveMessage(android::InputMessage*)+61)
10-30 08:59:48.173: I/DEBUG(85): #01 pc 000198fc /system/lib/libinput.so (android::InputPublisher::receiveFinishedSignal(unsigned int*, bool*)+44)
10-30 08:59:48.173: I/DEBUG(85): #02 pc 000b7f53 /system/lib/libandroid_runtime.so (android::NativeInputEventSender::receiveFinishedSignals(_JNIEnv*)+99)
10-30 08:59:48.173: I/DEBUG(85): #03 pc 000b81be /system/lib/libandroid_runtime.so (android::NativeInputEventSender::handleEvent(int, int, void*)+62)
10-30 08:59:48.173: I/DEBUG(85): #04 pc 0001b892 /system/lib/libutils.so (android::Looper::pollInner(int)+690)
10-30 08:59:48.173: I/DEBUG(85): #05 pc 0001baa7 /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+55)
10-30 08:59:48.173: I/DEBUG(85): #06 pc 000c8697 /system/lib/libandroid_runtime.so (android::NativeMessageQueue::pollOnce(_JNIEnv*, int)+71)
10-30 08:59:48.173: I/DEBUG(85): #07 pc 000c86fa /system/lib/libandroid_runtime.so
10-30 08:59:48.173: I/DEBUG(85): #08 pc 000db8ae /data/dalvik-cache/x86/system@framework@boot.oat
10-30 08:59:48.279: I/DEBUG(85): Tombstone written to: /data/tombstones/tombstone_03
10-30 08:59:48.279: I/BootReceiver(733): Copying /data/tombstones/tombstone_03 to DropBox (SYSTEM_TOMBSTONE)
10-30 08:59:48.282: W/ActivityManager(733): Force finishing activity 1 com.aidymp.aidymatic/.main
10-30 08:59:48.289: E/EGL_emulation(754): tid 754: eglCreateSyncKHR(1209): error 0x3004 (EGL_BAD_ATTRIBUTE)
10-30 08:59:48.308: W/InputDispatcher(733): channel '917ebb9 com.aidymp.aidymatic/com.aidymp.aidymatic.main (server)' ~ Consumer closed input channel or an error occurred. events=0x9
10-30 08:59:48.308: E/InputDispatcher(733): channel '917ebb9 com.aidymp.aidymatic/com.aidymp.aidymatic.main (server)' ~ Channel is unrecoverably broken and will be disposed!
10-30 08:59:48.309: D/WifiService(733): Client connection lost with reason: 4
10-30 08:59:48.315: I/Zygote(467): Process 2866 exited due to signal (11)
10-30 08:59:48.396: I/WindowState(733): WIN DEATH: Window{917ebb9 u0 com.aidymp.aidymatic/com.aidymp.aidymatic.main}
10-30 08:59:48.396: W/InputDispatcher(733): Attempted to unregister already unregistered input channel '917ebb9 com.aidymp.aidymatic/com.aidymp.aidymatic.main (server)'
10-30 08:59:48.399: W/ActivityManager(733): Exception thrown during pause
10-30 08:59:48.399: W/ActivityManager(733): android.os.DeadObjectException
10-30 08:59:48.399: W/ActivityManager(733): at android.os.BinderProxy.transactNative(Native Method)
10-30 08:59:48.399: W/ActivityManager(733): at android.os.BinderProxy.transact(Binder.java:496)
10-30 08:59:48.399: W/ActivityManager(733): at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:704)
10-30 08:59:48.399: W/ActivityManager(733): at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:825)
10-30 08:59:48.399: W/ActivityManager(733): at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:2726)
10-30 08:59:48.399: W/ActivityManager(733): at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:2583)
10-30 08:59:48.399: W/ActivityManager(733): at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:2497)
10-30 08:59:48.399: W/ActivityManager(733): at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:11500)
10-30 08:59:48.399: W/ActivityManager(733): at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:11397)
10-30 08:59:48.399: W/ActivityManager(733): at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:12081)
10-30 08:59:48.399: W/ActivityManager(733): at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:11592)
10-30 08:59:48.399: W/ActivityManager(733): at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
10-30 08:59:48.400: E/lowmemorykiller(265): Error opening /proc/2866/oom_score_adj; errno=2
10-30 08:59:48.401: W/art(733): Long monitor contention event with owner method=void com.android.server.am.ActivityManagerService.crashApplication(com.android.server.am.ProcessRecord, android.app.ApplicationErrorReport$CrashInfo) from ActivityManagerService.java:12027 waiters=0 for 114ms
10-30 08:59:48.401: I/ActivityManager(733): Process com.aidymp.aidymatic (pid 2866) has died
10-30 08:59:48.401: W/ActivityManager(733): Scheduling restart of crashed service com.aidymp.aidymatic/.httputils2service in 1000ms
10-30 08:59:48.425: I/OpenGLRenderer(733): Initialized EGL, version 1.4
10-30 08:59:48.443: W/EGL_emulation(733): eglSurfaceAttrib not implemented
10-30 08:59:48.443: W/OpenGLRenderer(733): Failed to set EGL_SWAP_BEHAVIOR on surface 0xa18526e0, error=EGL_SUCCESS
10-30 08:59:48.474: W/EGL_emulation(1267): eglSurfaceAttrib not implemented
10-30 08:59:48.474: W/OpenGLRenderer(1267): Failed to set EGL_SWAP_BEHAVIOR on surface 0xa08a2be0, error=EGL_SUCCESS
10-30 08:59:48.490: W/EGL_emulation(733): eglSurfaceAttrib not implemented
10-30 08:59:48.490: W/OpenGLRenderer(733): Failed to set EGL_SWAP_BEHAVIOR on surface 0xa18526e0, error=EGL_SUCCESS
10-30 08:59:49.033: W/OpenGLRenderer(1267): Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...

***********************************************************************
SOLVED!!!! Rogue DoEvents, called just after, Works in touch mode, but in NON Touch Mode caused app to crash!
***********************************************************************

Thanks

Aidy
 
Last edited:
Upvote 0

aidymp

Well-Known Member
Licensed User
Longtime User
There's this error in the log above:
java.io.FileNotFoundException: error.png
when it tries to get the bitmap with:
anywheresoftware.giuseppe.salvi.toast.ToastMessageShowWrapper.getBitmapFromAsset(ToastMessageShowWrapper.java:927)

Yes I saw that too, may have a lib, in my project I dont use as I was tring lots of things but now I dont use toasts!

Thanks

Aidy
 
Upvote 0
Top