Java 类org.apache.cordova.test.R 实例源码

项目:xface-android    文件:CordovaResourceApiTest.java   
private Uri createTestImageContentUri() {
    Bitmap imageBitmap = BitmapFactory.decodeResource(activity.getResources(), R.drawable.icon);
    String stored = MediaStore.Images.Media.insertImage(activity.getContentResolver(),
            imageBitmap, "app-icon", "desc");
    return Uri.parse(stored);
}
项目:crosswalk-cordova-android    文件:CordovaWebViewTestActivity.java   
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setContentView(R.layout.main);

    //CB-7238: This has to be added now, because it got removed from somewhere else
    Config.init(this);

    cordovaWebView = (CordovaWebView) findViewById(R.id.cordovaWebView);
    cordovaWebView.init(this, new CordovaWebViewClient(this, cordovaWebView), new CordovaChromeClient(this, cordovaWebView),
            Config.getPluginEntries(), Config.getWhitelist(), Config.getExternalWhitelist(), Config.getPreferences());

    cordovaWebView.loadUrl("file:///android_asset/www/index.html");

}
项目:cordova-amazon-fireos    文件:CordovaWebViewTestActivity.java   
/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

//        AWV Factory should be initialized before setting the layout  
        if (!sFactoryInit) {
           factory = AmazonWebKitFactories.getDefaultFactory();
           if (factory.isRenderProcess(this)) {
               return; // Do nothing if this is on render process
           }
          factory.initialize(this);

           sFactoryInit = true;
       } else {
           factory = AmazonWebKitFactories.getDefaultFactory();
       }

        setContentView(R.layout.main);

        //CB-7238: This has to be added now, because it got removed from somewhere else
        Config.init(this);

        cordovaWebView = (CordovaWebView) findViewById(R.id.cordovaWebView);
        factory.initializeWebView(cordovaWebView, 0xFFFFFF, false, null);
        cordovaWebView.init(this, new CordovaWebViewClient(this, cordovaWebView), new CordovaChromeClient(this, cordovaWebView),
                Config.getPluginEntries(), Config.getWhitelist(), Config.getExternalWhitelist(), Config.getPreferences());

        cordovaWebView.loadUrl("file:///android_asset/www/index.html");

    }
项目:cordova-android-chromeview    文件:splashscreen.java   
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    super.init();

    // Show splashscreen
    this.setIntegerProperty("splashscreen", R.drawable.sandy);

    super.loadUrl("file:///android_asset/www/splashscreen/index.html", 2000);
}
项目:xface-android    文件:MessageTest.java   
protected void setUp() throws Exception {
  super.setUp();
  testActivity = this.getActivity();
  testView = (CordovaWebView) testActivity.findViewById(R.id.cordovaWebView);
  testPlugin = (pluginStub) testView.pluginManager.getPlugin("PluginStub");
  solo = new Solo(getInstrumentation(), getActivity());
}
项目:xface-android    文件:splashscreen.java   
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    super.init();

    // Show splashscreen
    this.setIntegerProperty("splashscreen", R.drawable.sandy);

    super.loadUrl("file:///android_asset/www/splashscreen/index.html", 2000);
}
项目:cordova-amazon-fireos    文件:CordovaResourceApiTest.java   
private Uri createTestImageContentUri() {
    Bitmap imageBitmap = BitmapFactory.decodeResource(activity.getResources(), R.drawable.icon);
    String stored = MediaStore.Images.Media.insertImage(activity.getContentResolver(),
            imageBitmap, "app-icon", "desc");
    return Uri.parse(stored);
}
项目:cordova-amazon-fireos    文件:CordovaTest.java   
protected void setUp() throws Exception {
  super.setUp();
  testActivity = this.getActivity();
  testView = testActivity.findViewById(R.id.cordovaWebView);
}
项目:xface-android    文件:CordovaTest.java   
protected void setUp() throws Exception {
  super.setUp();
  testActivity = this.getActivity();
  testView = testActivity.findViewById(R.id.cordovaWebView);
}
项目:crosswalk-cordova-android    文件:CordovaResourceApiTest.java   
private Uri createTestImageContentUri() {
    Bitmap imageBitmap = BitmapFactory.decodeResource(activity.getResources(), R.drawable.icon);
    String stored = MediaStore.Images.Media.insertImage(activity.getContentResolver(),
            imageBitmap, "app-icon", "desc");
    return Uri.parse(stored);
}
项目:crosswalk-cordova-android    文件:CordovaTest.java   
protected void setUp() throws Exception {
  super.setUp();
  testActivity = this.getActivity();
  testView = testActivity.findViewById(R.id.cordovaWebView);
}
项目:cordova-android-chromeview    文件:CordovaWebViewTestActivity.java   
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setContentView(R.layout.main);

    cordovaWebView = (CordovaWebView) findViewById(R.id.cordovaWebView);

    cordovaWebView.loadUrl("file:///android_asset/www/index.html");

}
项目:xface-android    文件:CordovaWebViewTestActivity.java   
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setContentView(R.layout.main);

    cordovaWebView = (CordovaWebView) findViewById(R.id.cordovaWebView);

    cordovaWebView.loadUrl("file:///android_asset/www/index.html");

}