Thanks for your reply.
Because i dont have a wifi in our home. so I did, i created a hotspot in my phone in order my pc can connect to that netwok. I dont want that. I like something like eclipse that you connect your pc through USB debugging. Is USB debugging possible to use for the emulator in phone gap.?
Can you show me some tutorial or step to setup Android debug bride and android studio. I already have android studio but i jst dont how to use in for phonegap.
Or which is better between the two to achieve efficiency and speed.?
You can always create an adhoc WiFi connection from your development machine. Your android devices can then join that network. This will likely limit their access to the Internet, so that's something to be aware of.
If you already have Android Studio installed, then you're 90% of the way to using the PhoneGap CLI. That would be my suggestion. It can deploy built apps over USB with no problem. The PhoneGap Desktop app, however, CAN NOT DEPLOY APPS TO DEVICES OR EMULATORS.
In order to do so, you need to properly configure your environment. Not knowing your operating system means that I can't tailor this to your environment, so you'll need to extrapolate as necessary:
1. Obtain the Android SDK path from Android Studio.
2. Edit your environment to export a modified path of the form (If you use Windows, this would be done differently):
3. You should now be able to use Android's command-line tools. To test, try running "android" and see if the SDK manager pops up. You can use "android avd" to manage Android emulators. You should also be able to use "adb".
4. Install the PhoneGap CLI:
a. Install Node.js (I suggest using nvm on *nix systems and using nvm-windows on Windows)
b. Install Phonegap CLI (npm install -g phonegap)
5. Deploy your app to the attached device
phonegap run android
6. Debug using Chrome (chrome://inspect), assuming USB debugging is enabled on your device