android - phonegap development, What is the easiest way to add plug-in? -
i have started phonegap using below link.
http://docs.phonegap.com/getting-started/1-install-phonegap/desktop/
i have followed steps , able run first phonegap app successfully.
i excited till now, stuck when want add plug-in(speech synthesis) same app. doing google, found that, need install below things. there other easy way this?
- install java (set path in environmental variables)
- download adt bundle , extract , set path in environmental variables.
- download , install node.js http://nodejs.org/ link. (set path in environmental variables if not set automatically)
- download apache ant.
also step step links above steps broken, please suggest correct , easiest way add plug-in phonegap application.
i found myself now..
below steps..
install npm https://nodejs.org/en/
install phonegap cli below command
$ npm install -g phonegap
instal git if not installed on desktop fro site or using below command.
npm install -g git
add plugin using below command @ project directory
phonegap plugin add https://github.com/macdonst/speechrecognitionplugin
phonegap plugin add https://github.com/apache/cordova-plugin-battery-status
open project again in phonegap desktop app or use
phonegap serve command
test directly on mobile app.
no need of eclipse, ant, java....
Comments
Post a Comment