I’ve following this Phonegap guide. when I run my own android application, it shows nothing, just blank page. why it shows blank page?
I’m using cordova-1.8.1
here is my android activity:
package report.weeklyflash;
import android.os.Bundle;
import org.apache.cordova.*;
public class MenuPhonegap 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");
}
}
here is my index.html:
<!DOCTYPE HTML>
<html>
<head>
<title>PhoneGap</title>
<script type="text/javascript" charset="utf-8" src="cordova-1.8.1.js"></script>
</head>
<body>
<h1>Hello PhoneGap</h1>
</body>
</html>
here is my directory structure and screenshot when I run this project:


UPDATE: when I try to delete index.html file, it still not showing any error message, just blank page. and log stops on DroidGap.onCreate()
I find the solution, I’ve put a wrong name of activity on my android manifest.
so I solve this problem by changing the activity name on android manifest into the correct name. here is my android manifest after I solve it: