Unfortunately, <app> has stopped

Rusty

Well-Known Member
Licensed User
Longtime User
I have an app that starts several services and when I exit the application, I use stopservice for each service and exitapplication.
After the application exits, I receive the message:
"Unfortunately, <app> has stopped"

Is there anything I can do to stop this phenomenon? I must be missing a "proper" shutdown of services or application.
Thanks in advance.
Rusty
 

Rusty

Well-Known Member
Licensed User
Longtime User
Thanks NJDude,
It says FAILED BINDER TRANSACTION, but I have no idea what this might mean. It indicates it is scheduling the TCPService even though I've issued a "stopservice"

When I terminate the app, I'm exiting like:
B4X:
StopService(TTSService)
        MediaServiceIsRunning = False
        StopService(TCPservice)
        CancelScheduledService(Boot)
        StopService(Boot)
        Activity.Finish
        ExitApplication
Is this appropriate?
Thanks for the help.


Nevermind...I see the problem in my post. I'm failing to cancelscheduled service for ALL services...thanks!
 
Last edited:
Upvote 0

Cüneyt Gargin

Member
Licensed User
Longtime User
Check the unfiltered logs, you will see what is causing it.
What does it mean "Check the unfiltered logs"... Is there any log file for that ?
In the entrance to my Main Activity.. I have a message box.. and event that does not show ?
 
Upvote 0

strat

Active Member
Licensed User
Longtime User
What does it mean "Check the unfiltered logs"... Is there any log file for that ?
In the entrance to my Main Activity.. I have a message box.. and event that does not show ?


There is "Log" Section on the right in B4A. You will see "Filter" checked below. If you uncheck it, lots of log messages appear after compiling. Those are unfiltered logs.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…