I want to run an Android application by using phonegap. I want to just run a simple demo application which has been given on this link.
I have put the phonegap-1.4.1.jar inside the libs folder and www inside the asset folder.
But I am getting a compile time error on the following lines of code:
import android.app.Activity;
import android.os.Bundle;
import com.phonegap.*;
public class PhonegapActivity extends DroidGap
{
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
super.loadUrl("file:///android_asset/www/index.html");
}
}
I am getting a run time error inside the manifest file also on the following code:
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:xlargeScreens="true"
android:resizeable="true"
android:anyDensity="true"
/>
Error is : error: No resource identifier found for attribute ‘xlargeScreens’ in package ‘android
The android enviroment is installed properly on my system. Normal android applications are running properly but when I try to run the phone gap application above, this error is coming. For phonegap is there any other plugins required to Install so that my application will run properly?
xlargeScreens has been introduced in API Level 9.
http://developer.android.com/guide/topics/manifest/supports-screens-element.html#xlarge
For that you need to use at least android API Level 9 for android:xlargeScreens to be recognized in you AndroidManifest.xml.
Please make sure that you are building your project on atleast android 2.3.3 Sdk.