2013-03-05 74 views

回答

0

是否包含cordova-2.9.0.jar(libs文件夾),並設置「添加庫」(右鍵)?

這些教程可以幫助您:

Android, Intellij IDEA and PhoneGap: Getting Started
How to use PhoneGap with IntellijIDEA

你的活動應該是這個樣子:

package com.example.Androide; 

import android.app.Activity; 
import android.os.Bundle; 
import org.apache.cordova.*; 

public class MyActivity extends DroidGap { 
    /** 
    * Called when the activity is first created. 
    */ 
    @Override 
    public void onCreate(Bundle savedInstanceState) { 
     super.onCreate(savedInstanceState); 
     super.loadUrl("file:///android_asset/www/index.html"); 
    } 
} 
相關問題