This has been asked before but not answered i think.
I have created an Activity (using java) and it's one class in a library.
I've added it to my manifest:
And can successfully start it from my B4A code using this method in another one of the library classes:
In B4A i use:
How can i create a B4A Intent (IntentWrapper) to start this Activity?
I've tried various syntax but nothing has worked:
Should i stick to creating the Intents i require using library methods or is there a way with B4A?
Martin.
I have created an Activity (using java) and it's one class in a library.
I've added it to my manifest:
B4X:
AddApplicationText(<activity android:name="my.library.package.name.ResumeEditor"/>)
And can successfully start it from my B4A code using this method in another one of the library classes:
B4X:
public Intent GetResumeEditorIntent(){
Intent intent=new Intent(mBA.activity, ResumeEditor.class);
return intent;
}
In B4A i use:
B4X:
StartActivity(MyLibraryClass.GetResumeEditorIntent)
How can i create a B4A Intent (IntentWrapper) to start this Activity?
I've tried various syntax but nothing has worked:
B4X:
' all variations of the first parameter in Initialize cause No Activity found to handle Intent exceptions
Intent1.Initialize(Intent1.ACTION_VIEW, "my.library.package.name.ResumeEditor")
' and this causes an exception
' java.lang.ClassNotFoundException: my.application.package.name.resumeeditor
StartActivity("ResumeEditor")
Should i stick to creating the Intents i require using library methods or is there a way with B4A?
Martin.