nibbo Active Member Licensed User Longtime User Jul 19, 2018 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Jul 20, 2018 #2 A simpler solution will be to store the user state in the "external" storage and then access it from all apps. Upvote 0
A simpler solution will be to store the user state in the "external" storage and then access it from all apps.
nibbo Active Member Licensed User Longtime User Jul 23, 2018 #3 Erel said: A simpler solution will be to store the user state in the "external" storage and then access it from all apps. Click to expand... 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: Code: Copy Dim myIntent As Intent myIntent.Initialize(myIntent.ACTION_MAIN,"") myIntent.SetComponent("package.name/.activity") StartActivity(myIntent) Many thanks Upvote 0
Erel said: A simpler solution will be to store the user state in the "external" storage and then access it from all apps. Click to expand... 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: Code: Copy Dim myIntent As Intent myIntent.Initialize(myIntent.ACTION_MAIN,"") myIntent.SetComponent("package.name/.activity") StartActivity(myIntent) Many thanks
Erel B4X founder Staff member Licensed User Longtime User Jul 23, 2018 #4 nibbo said: How do I launch an activity? Click to expand... You should start a new thread for a new question. Upvote 0
nibbo said: How do I launch an activity? Click to expand... You should start a new thread for a new question.
nibbo Active Member Licensed User Longtime User Jul 23, 2018 #5 Erel said: You should start a new thread for a new question. Click to expand... Will do, thanks. Upvote 0