Johan Schoeman Expert Licensed User Longtime User Mar 21, 2019 #1 I am trying to (for now) kick start the MainActivity of a Github project from within B4A as what I have done numerous times before. The sample project has a MainActivity.java and a class that extends Application. Can I somehow "kill off" the extended Application class and incorporate the code into onCreate of the MainActivity? Seems like the class extending Application is just calling another class in the same project.
I am trying to (for now) kick start the MainActivity of a Github project from within B4A as what I have done numerous times before. The sample project has a MainActivity.java and a class that extends Application. Can I somehow "kill off" the extended Application class and incorporate the code into onCreate of the MainActivity? Seems like the class extending Application is just calling another class in the same project.
Erel B4X founder Staff member Licensed User Longtime User Mar 21, 2019 #2 Try to avoid wrapping activities. It will make things more complicated and less flexible. The fact that the class extends Application shouldn't matter too much. You can call it yourself. You can also configure the project to use the custom application object though it is not recommended.
Try to avoid wrapping activities. It will make things more complicated and less flexible. The fact that the class extends Application shouldn't matter too much. You can call it yourself. You can also configure the project to use the custom application object though it is not recommended.