Eclipse android emulator debugging - javascript

I am working on android application using J-Query Mobile, JavaScript, Phone-Gap
and tools that i use is Eclipse IDE.
Now I need to know how I'll debug the android app when it runs on emulator. I want to check some java-script code.

Take a look at Link 1 and Link 2

Related

How to build an app with a CERTAIN version of webview?

I need to create an app that will open my URL in a certain (not the latest) version of WebView and Chrome. Certain version is the most important part of my question.
Let's say Android Browser 4.0 (like Chrome 74.0.3729.186).
I also will need similar apps for testing other WebView versions. Not only for Android but for apple devices as well.
Is it possible? And if yes, what is the fastest way to create that testing app?
I googled some tutorials on how to basically integrate a WebView in a Native app, Flutter project or Cordova, but I can't find a way how to use an exact version of a WebView.
In Flutter, pubspec.yaml file contains dependencies E.g. WebView.
dependencies:
url_launcher: ^5.4.0 # any 5.4.x version where x >= 0 works.
image_picker: '5.4.3' # only version 5.4.3 works.
More details are at here

Cordova plugin ListPicker error on Ripple emulator

I'm using Cordova within Visual Studio and added the ListView plugin. The plugin was added successfully via the config.xml editor screen
When I call window.plugins.listpicker.showPicker I can trace all the way to cordova.exec(_callback, _error_callback, 'ListPicker', 'showPicker', [config]) then Ripple displays the "I Haz Cheeseburger" error on ListPicker.showPicker We seem to be missing some stuff :(
I have verified that the plugin is listed in the plugins folder with other plugins that I am using
Short Version: You did not do anything wrong, test your app on a actual device or an emulator and it should work fine.
Long Version:
Caution: Ripple doesn’t provide a complete simulation of Cordova APIs or native device capabilities... You can achieve this by testing on actual devices or emulators.
Taken from here
Ripple is just a simulator: It simulates some of the capabilities of a real device, not all of them. It seems you can test the Cordova core plugins in Ripple, but there is pretty much no support for custom plugins.
I created an empty project Cordova app and just pasted the sample code from the link you provided: In Ripple I get the error you described, while everything works fine, if I run the app on my android device.

How to debug phonegap javascript application on visual studio 2012 emulator

I am trying to run my application on windows 8 phone visual studio emulator but seems like some error in my code. But i am not able to debug the java script code.
Is there any way to debug the code through emulator?
Thanks in advance
You can use JSConsole or weinre (which is BTW also a part of Cordova). You inject a line of code into your JavaScript, which connects to a console on another computer.
Actually, seems someone already made it easy: http://debug.phonegap.com/ (using weinre)

How to manually install Phonegap libraries without Xcode?

Do I need to install Phonegap libraries or is it enough to copy them to a place where the app scripts stay?
I am developing an app in javascript,html,jquery,css php ect using Dreamweaver on Windows. I want to use cordova-2.0.0 which is the last version of Phonegap for uploading pictures from an album or from capturing them. I have grabbed the full example from http://docs.phonegap.com/en/2.0.0/cordova_camera_camera.md.html#Camera This code requires src="cordova-2.0.0.js" and the problem is I do not know if I should install Phonegap or copy its libraries to a place that the sample script can see them.
I haven't done it without xcode so maybe not the best answer however you could try IBM Worklight which is an eclipse based IDE that has PhoneGap or alternatively would be to look at something like Sencha Touch which has native development capabilities in HTML5 as well.
You copy the PhoneGap libraries to a suitable location and then you import the files into your application project. PhoneGap homepage provide details on how to do this.
Since you don't want to use Xcode, I'm assuming it is because you are using Windows. Have you seen this guide about creating Phonegap iOS apps?
Detailed Guide for setting up building iOS apps without a Mac
EDIT: If you are trying to create a web app that is accessed from Safari, and you are trying to upload photos, then you should probably read this question

Javascript debugger for PhoneGap

Though PhoneGap is very quick way of making applications, debugging becomes difficult.
Is there any good debugging/testing tool for javascript written for PhoneGap such as IE developer tools?
Thank you.
There's a way to go for mobile debugging to get as good as desktop, but weinre and ripple come the closest that I've seen.
Weinre does web inspection to a remote device (no breakpoints). Ripple is a Chrome plug-in that uses simulation to run and debug mobile apps in the Chrome browser.
Yes! Today there are some new tools.
Right now I am debugging a cordova application programmed for android.
My suggestion is to use GapDebug for Debugging. This is a real debugger where you have:
a full JavaScript Debugger (setting breakpoints works great)
CSS and DOM inspector as good as in "chrome developer tools"
in GapDebug GUI you can deploy your .apk files directly to the smartphone
the process between the cmd-command "cordova build" and the "starting of the app on the smartphone" is even quicker than starting it in the cordova-emulator
Have fun:
https://www.genuitec.com/intro_gapdebug/

Categories