Phonegap fullscreen Android application

Phonegap fullscreen Android application

If You want to switch Your Android Phonegap application into fullscreen mode use following tutorial:

All you have to do is to edit your main file and do the steps below:

  1.  Open Your main in /src/ directory
  2.  Add “import android.view.WindowManager;
  3.  Add the code below, after “super.onCreate(savedInstanceState);” in the middle of that << and super.loadUrl

Final code of main should be the same as the code on example below:

public class CordovaApp extends CordovaActivity
public void onCreate(Bundle savedInstanceState)
// fullsceen the app requestWindowFeature(Window.FEATURE_NO_TITLE);
// end of fullscreen app super.init();
// Set by <content src="index.html" /> in config.xml
Walid BaniHani


College of Applied Sciences - Al Rustaq

Leave a Reply

Your email address will not be published. Required fields are marked *