這是個簡單的hello world。 但我無法運行它。
當我嘗試運行時,它顯示:
「抱歉!應用程序意外停止!請重試。」
並引發異常。我重視這裏的例外:Android phonegap hello world停止應用程序發射
// ========== ==========代碼
package com.ismail.phonegap;
import android.app.Activity;
import android.os.Bundle;
import org.apache.cordova.*;
public class HomePage 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");
}
}
你是否用合適的用戶權限更改了'android-manifest.xml'文件。如果你已經完成了,那就試試這個。右鍵單擊項目並配置構建路徑並設置jar文件以添加外部jar,並選中複選框以使用庫。如果它不起作用,然後回覆。 – Prateek 2012-07-31 10:35:38
將您的日誌粘貼到這裏.... – 2012-07-31 11:40:37