Android Question Got a Pixel phone + usb connection + Android 16?

Sandman

Expert
Licensed User
Longtime User
There's two of us with that combination here in the forum that started getting "AppName isn't responding" messages.

If you are have the combination above, could you please comment on whether you get these messages now and then?
(Also post if you have the combination and do not get the messages.)


If you want to read more about this issue, here is the thread:
www.b4x.com/android/forum/threads/appname-not-responding.170706/
 

Sandman

Expert
Licensed User
Longtime User
Please post the logs when it happens.
Ok, I got an ANR again.

This is what happened:

1. I connected my phone to USB
2. I compiled as Debug
3. The screen on my phone went white, and nothing happened
4. The IDE informed me that it couldn't connect the debugger

...the steps above are well known to me, they happen often when I connect my phone via USB. The first compile almost always fails with this message. My mental model for explaining this is simply "I disconnected the phone rudely so something was probably still in there, in some half-working state". This is very well known behaviour for me so I simply continue...

5. I compile as Debug again
6. The app launches like it's supposed to
7. I didn't do anything for about 20 seconds
8. "App isn't responding" message on phone

I dumped both the log and the anr file and sent to support@basic4ppc.com.

Update. I disconnected the phone and did something else for a while. Connected it again and did the above steps - with the exact same result, including the ANR. So that could be an indication and perhaps clue to what is happening.

Update 2. I disconnected the phone and did something else for a while. Connected it again and did the above steps. This time I didn't get the white screen and the IDE message about it couldn't connect to the debugger. I also didn't get an ANR message.
 
Last edited:
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Thanks @Sandman.

It is still not clear why it fails to start the service properly. Please make a test and remove the starter service completely and see whether the ANR is solved. There are still some usages for the starter service such as Application_Error, but it looks like it makes sense to provide whatever possible in different modules and remove it by default.
 
Upvote 0

Sandman

Expert
Licensed User
Longtime User
Please make a test and remove the starter service completely and see whether the ANR is solved.
Ok, will do. However, I'll start by keeping a closer eye on when the ANRs happen in the next few days. I just want to check if I ever get an ANR without the IDE failing to connect the debug process just before. After that I'll remove the Starter. I expect to report back here next week.
 
Upvote 0
Top