Android Question App Launcher

nibbo

Active Member
Licensed User
Longtime User
Hi All

We now have several warehouse apps which are currently launched from the standard device homepage.
One of the problems with this is the user has to log in again between tasks.
I could overcome this using statemanager but think it would better to build a launcher app.
Using the launcher they would only log in once and then have access to the various apps from one activity.

What would be the correct way to launch the separately built activities and how do you pass info between each one?

Found a few examples using intents but they may be out of date so would like to know the latest thinking / best practices.

Thanks
Nibbo
 

nibbo

Active Member
Licensed User
Longtime User
A simpler solution will be to store the user state in the "external" storage and then access it from all apps.
Thanks Erel, thought that would be the case.

How do I launch an activity? I found an example but just get the error:
'android.content.ActivityNotFoundException: Unable to find explicit activity class {package.name/package.name.Activity}; have you declared this activity in your AndroidManifest.xml?'

Is there an example of what I need to add to the manifest file for this to work?

The code I am using is:
B4X:
Dim myIntent As Intent
myIntent.Initialize(myIntent.ACTION_MAIN,"")
myIntent.SetComponent("package.name/.activity")
StartActivity(myIntent)

Many thanks
 
Upvote 0
Top