Tuesday, 17 September 2013

Can't intslall phonegap with ADT

Can't intslall phonegap with ADT

I just checked here
PhoneGap not running in Android
What I did are as follows
I copied cordova-2.9.0.jar file from phonegap inside libs folder though it
dont show there! dont know why
Then made www folder under assets and added cordova-2.9.0.js file there
Then I replaced mainactivity.java with this code
package com.cordovatest;
import org.apache.cordova.DroidGap;
import android.os.Bundle;
public class MainActivity extends DroidGap {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.setIntegerProperty("loadUrlTimeoutValue", 60000);
super.loadUrl("file:///android_asset/www/index.html",1000);
}
}
But I see so many errors see screenshot
http://gyazo.com/4e1fa15d0f5926d7a6ff6524645b0952
Then I added this code to my androidmanifest.xml

No comments:

Post a Comment