Android Question Problem for open activity

devmobile

Active Member
Licensed User
I am in activity B and i press home button and go to android home
And when i click app icon,it start from first and was not in activity B
And when app opened and i go to activity B,it is open and not opening again
What is it?
 

DonManfred

Expert
Licensed User
Longtime User
And when i click app icon,it start from first and was not in activity B
that´s the expected behaviour after you clicked on HOME.
Use the BACK key to go back to your app from app b.
 
Upvote 0

Ricky D

Well-Known Member
Licensed User
Longtime User
Without any special code my taxi app I use goes back to the activity I had open when I click my app icon. I'm using b4a 7.30 on a Samsung galaxy s5. I clicked the home button and opened another app then closed it and clicked my app
 
Upvote 0

devmobile

Active Member
Licensed User
Without any special code my taxi app I use goes back to the activity I had open when I click my app icon. I'm using b4a 7.30 on a Samsung galaxy s5. I clicked the home button and opened another app then closed it and clicked my app
But it is bad
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
My app didn't start from last opened activity
if you start the app by clicking on the app´s Icon then you, surely, start your app from the Main Activity. The default starting point from a B4A App.
The user needs to use the backbutton to get back to your app after the 3rd party app is started by your app.

You can not force the launcher to start your app from another Activity.
 
Upvote 0

Ricky D

Well-Known Member
Licensed User
Longtime User
I don't know how my app works then lol but it does. I have my sqlite database and my classes in Starter. I'm manually starting my app again
 
Upvote 0

devmobile

Active Member
Licensed User
if you start the app by clicking on the app´s Icon then you, surely, start your app from the Main Activity. The default starting point from a B4A App.
The user needs to use the backbutton to get back to your app after the 3rd party app is started by your app.

You can not force the launcher to start your app from another Activity.
If android is start app with Main activity after press HOME,i accept it
Thanks
 
Upvote 0
Top