I have a library class that is NOT an ActivityObject.
So this class is passed a process BA object and not an activity BA object when it is Initialized.
When this class has completed a task i want it to start an Activity within the B4A application that created an instance of the class.
I want the instance of the library class be a process global created in a code module.
I've experimented a bit but am lost!
Here's what i'm currently trying:
mProcessBA is the process BA object from the class Initialize method and i want to start my B4A project's 'ShowGeographs' Activity.
Ideally i'll use the native Android Intent class but have tried to use the B4A IntentWrapper here as so i could try some code examples from the forum.
I'd rather not make this class an Activity object and use raiseEvent to communicate back to my B4A project as it will contain a lot of downloaded and parsed JSON data that i want to be able to keep (and not destroy) on an orientation change.
Any ideas?
Martin.
So this class is passed a process BA object and not an activity BA object when it is Initialized.
When this class has completed a task i want it to start an Activity within the B4A application that created an instance of the class.
I want the instance of the library class be a process global created in a code module.
I've experimented a bit but am lost!
Here's what i'm currently trying:
B4X:
Log.d("B4A", "Now start ShowGeographs Activity");
IntentWrapper intent=new IntentWrapper();
intent.Initialize(IntentWrapper.ACTION_MAIN, "");
intent.SetComponent(BA.packageName+"/._showgeographs");
mProcessBA.activity.startActivity(intent.getObject());
mProcessBA is the process BA object from the class Initialize method and i want to start my B4A project's 'ShowGeographs' Activity.
Ideally i'll use the native Android Intent class but have tried to use the B4A IntentWrapper here as so i could try some code examples from the forum.
I'd rather not make this class an Activity object and use raiseEvent to communicate back to my B4A project as it will contain a lot of downloaded and parsed JSON data that i want to be able to keep (and not destroy) on an orientation change.
Any ideas?
Martin.