I am using phonegap 3.3.1 CLI to build an app and install it on my Android device (Samsung S3). I have the following elements successful -
- Create project
- Add android platform
- Run the android app on emulator and device.
Steps 1 and 2 are successful but 3 is partially successful. The app installs on the emulator and is visible in its Apps menu (the list of installed apps). But the same app, installed on the device doesn't show-up in the Apps menu.
I checked its existence with the command - adb shell pm list packages
This command lists the packages and my new app package is visible there. The app doesn't appear in the menu. Please help in figuring out what's wrong.
UPDATE: It works only on the emulator. Not on any other device (Checked on a Nexus 4 and my own device S3
UPDATE 2: The app works on the mobile device. I am working to deploy it on the google glass device. Now it gives a new error, the logcat says below-
*02-18 14:49:12.266: D/CordovaActivity(2639): CordovaActivity.onCreate()
02-18 14:49:12.282: I/dalvikvm(2639): Could not find method org.apache.cordova.CordovaWebView.setWebContentsDebuggingEnabled, referenced from method org.apache.cordova.CordovaWebView.setup
02-18 14:49:12.282: W/dalvikvm(2639): VFY: unable to resolve static method 4774: Lorg/apache/cordova/CordovaWebView;.setWebContentsDebuggingEnabled (Z)V
02-18 14:49:12.282: D/dalvikvm(2639): VFY: replacing opcode 0x71 at 0x00ba 02-18 14:49:12.321: D/CordovaWebView(2639): CordovaWebView is running on device made by: Google
02-18 14:49:12.329: D/JsMessageQueue(2639): Set native->JS mode to 2
02-18 14:49:12.329: D/CordovaActivity(2639): CordovaActivity.init()
02-18 14:49:12.337: D/CordovaWebView(2639): >>> loadUrl(file:///android_asset/www/index.html) 02-18 14:49:12.344: D/PluginManager(2639): init()
02-18 14:49:12.368: D/CordovaWebView(2639): >>> loadUrlNow()
02-18 14:49:12.368: I/CordovaLog(2639): Changing log level to DEBUG(3)
02-18 14:49:12.368: I/CordovaLog(2639): Found start page location: index.html
02-18 14:49:12.368: D/Whitelist(2639): Unlimited access to network resources
02-18 14:49:12.368: D/CordovaActivity(2639): Resuming the App
02-18 14:49:12.368: D/CordovaActivity(2639): CB-3064: The errorUrl is null*