I am currently working on an Android-phonegap project.
Before the application loads index.html, there is native code that does the work. This is detailed in AsyncTask, which knocks on an SD card (if any).
I managed to show a progress bar when A.Task is running, but I would like to add a splash screen in the background. I mainly worked with Phonegap and just started with my own code. Therefore, I am confused by all these layouts, themes, and what else can be defined in XML files. I'm sure this is also a good idea for large user interface designs, but for the simple Splash screen that I want right now, it feels like a complete kink.
This is a fragment from the source. Just straight. onCreate () calls AsyncTask, which does some work and launches PhoneGap in it using the PostExecute method. I want the screen to display either in the onCreate method or onPreExecute. After the task is completed, I will turn off the screen in onPostExecute (). I also added comments to illustrate my idea.
public class myAct extends DroidGap { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
Thanks for reading and your help :)
source share