How to finish() Activity if one uses Car Home if Exit Button is pushed?

I had a similar problem with a crash in a BroadcastReceiver Turned out that startActivity requires you to add the FLAG_ACTIVITY_NEW_TASK flag when called from a non-Activity context (see the well hidden note in the Docs ).

I had a similar problem with a crash in a BroadcastReceiver. Turned out that startActivity requires you to add the FLAG_ACTIVITY_NEW_TASK flag when called from a non-Activity context (see the well hidden note in the Docs).

I am trying to create an app for a driving application that can be activated via a Driving button or B) Automatically using a car dock. I have no problem finishing with the manual method of pushing the exit button on my app, however, if the car home is activated then My application is running in the background. Which is what I need.

However, once I use the Car Home's Exit Button on the Emulation mode, I get the Android home screen and my app is running in the background. E: There is no way to shut the app down except going back into the app and shutting it down. If I finish my app after starting the Car Home UI then I have lost my app.

Once I receive the broadcast receiver, I cannot go back to my main Activity. I have tried to use intent but have had no luck in calling my main Activity. I tried to use a broadcast receive method in my main Activity class but the app crashes on run time once the Exit button of the car mode is pushed.

I appreciate any help, and look forward to any hints please. I have been going in circles with this for the last two days, and believe me it is no fun when you miss the hockey game :(.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions