I followed all the steps in the main Phonegap tutorial (Eclipse, Android SDK, ADT Phonegap), I created the index.html
page (code from the phone mail site) and cordova-2.2.0.js
in the assets/www
and cordova-2.2.0.jar
folder cordova-2.2.0.jar
, when I ran it, it displayed this message on the console screen:
[2013-09-05 12:44:14 - phonegape-test] ------------------------------ [2013-09-05 12:44:14 - phonegape-test] Android Launch! [2013-09-05 12:44:14 - phonegape-test] adb is running normally. [2013-09-05 12:44:14 - phonegape-test] No Launcher activity found! [2013-09-05 12:44:14 - phonegape-test] The launch will only sync the application package on the device! [2013-09-05 12:44:14 - phonegape-test] Performing sync [2013-09-05 12:44:14 - phonegape-test] Automatic Target Mode: launching new emulator with compatible AVD 'STest' [2013-09-05 12:44:14 - phonegape-test] Launching a new emulator with Virtual Device 'STest' [2013-09-05 12:44:27 - phonegape-test] New emulator found: emulator-5554 [2013-09-05 12:44:27 - phonegape-test] Waiting for HOME ('android.process.acore') to be launched... [2013-09-05 12:46:25 - phonegape-test] HOME is up on device 'emulator-5554' [2013-09-05 12:46:25 - phonegape-test] Uploading phonegape-test.apk onto device 'emulator-5554' [2013-09-05 12:46:26 - phonegape-test] Installing phonegape-test.apk... [2013-09-05 12:47:35 - phonegape-test] Success! [2013-09-05 12:47:35 - phonegape-test] \phonegape-test\bin\phonegape-test.apk installed on device [2013-09-05 12:47:35 - phonegape-test] Done!
but the application dose is not working, and I did not find the lancher application icon! You can help me!
EDIT : MainActivity.java:
package com.example.phonegape; import android.os.Bundle; import android.view.Menu; import org.apache.cordova.*; //import com.phonegap.DroidGap; public class MainActivity extends DroidGap { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.init(); super.loadUrl("file:///assets/www/index.html"); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } }
source share