mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 17:32:51 +08:00
parent
f5ab6fc602
commit
a4f6c8bf7b
@ -28,6 +28,13 @@ public class __ACTIVITY__ extends CordovaActivity
|
|||||||
public void onCreate(Bundle savedInstanceState)
|
public void onCreate(Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
|
// enable Cordova apps to be started in the background
|
||||||
|
Bundle extras = getIntent().getExtras();
|
||||||
|
if (extras != null && extras.getBoolean("cdvStartInBackground", false)) {
|
||||||
|
moveTaskToBack(true);
|
||||||
|
}
|
||||||
|
|
||||||
// Set by <content src="index.html" /> in config.xml
|
// Set by <content src="index.html" /> in config.xml
|
||||||
loadUrl(launchUrl);
|
loadUrl(launchUrl);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user