Advertisement
Guest User

Untitled

a guest
Dec 15th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.74 KB | None | 0 0
  1. package com.fxteam.widget;
  2.  
  3. import android.os.Bundle;
  4. import org.apache.cordova.*;
  5.  
  6. //fx
  7. import android.util.Log;
  8.  
  9. public class MainActivity extends CordovaActivity
  10. {
  11.     @Override
  12.     public void onCreate(Bundle savedInstanceState)
  13.     {
  14.         //fx widget
  15.         Log.e("TEST", "MainActivity123");
  16.  
  17.         super.onCreate(savedInstanceState);
  18.  
  19.         // enable Cordova apps to be started in the background
  20.         Bundle extras = getIntent().getExtras();
  21.         if (extras != null && extras.getBoolean("cdvStartInBackground", false)) {
  22.             moveTaskToBack(true);
  23.         }
  24.  
  25.         // Set by <content src="index.html" /> in config.xml
  26.         loadUrl(launchUrl);
  27.  
  28.         HttpRequest request = new HttpRequest();
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement