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?

  1. install java (set path in environmental variables)
  2. download adt bundle , extract , set path in environmental variables.
  3. download , install node.js http://nodejs.org/ link. (set path in environmental variables if not set automatically)
  4. 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..

  1. install npm https://nodejs.org/en/

  2. install phonegap cli below command

    $ npm install -g phonegap

  3. instal git if not installed on desktop fro site or using below command.

    npm install -g git

  4. 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

  5. open project again in phonegap desktop app or use phonegap serve command test directly on mobile app.

no need of eclipse, ant, java....


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -