How to have the same webOS load behavior on Android

edited January 2012 in Packaging Apps
Hey guys,

perhaps it can be useful for the people that are trying to use Enyo apps on Android.
As you may know Android architecture makes all apps keep running in background even if you close them.
On webOS when you close a card the index.html will be reloaded next time you launch it. On Android it is not true.

In order to have the same behavior on Android you can overwrite the resume method adding the following code to your phonegap main app java file:
protected void onResume()     {
       super.loadUrl("file:///android_asset/www/index.html");
       super.onResume();
    } 

Comments

  • This makes it so that every time you switch back to your app it reloads, which may not be the desired behavior. If you switch b
Sign In or Register to comment.