Android Question how to see the log why the app sttoped runing

tufanv

Expert
Licensed User
Longtime User
Hello,

In my app i did something but i dont know what i did, the app closes and android systems says : app stopped working. I cant see any info why the app terminated in logs of b4a how can i see detailed info about that?

ty
 

lemonisdead

Well-Known Member
Licensed User
Longtime User
Hello,
You could use the LastException keyword and store the Message for example using a TextWriter.

Or, put your IDE in DEBUG mode. You should see some information when the app closes
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
no debugger shows whem there is an error in code. my app is closing suddenly and says it sttopped working. nothing in debugger
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
there are many subs in my app for 4000 lines i dont think i can use try catch to find the error. And it is not an error to be caught by lastexception i think. As i said it is not n error you can see in debug mode or similar. it just closes and say unfortunatly "app name" has stopped.
 
Upvote 0

lemonisdead

Well-Known Member
Licensed User
Longtime User
So the last idea I have is to connect your device via USB, activate the Developper USB Debug mode and look at the Unfiltered logs to find the Java error you produce. I can't help more
 
Upvote 0
Top