1,082
edits
No edit summary |
No edit summary |
||
Line 56: | Line 56: | ||
Run SDK Manager, install Android build tools. | Run SDK Manager, install Android build tools. | ||
=== Install Moodstocks === | |||
* https://moodstocks.com/docs/phonegap/using-the-moodstocks-sdk-in-your-phonegap-application/ | |||
Instructions pas à jour pour cordova 3.6 on dirait, par contre il y a un autre example : | |||
* https://github.com/Moodstocks/moodstocks-phonegap-plugin/blob/master/src/android/Demo.java | |||
<pre> | |||
public class Demo extends CordovaActivity { | |||
private boolean scanActivityStarted = false; | |||
@Override | |||
public void onCreate(Bundle savedInstanceState) { | |||
super.onCreate(savedInstanceState); | |||
this.init(); | |||
// Set by <content src="index.html" /> in config.xml | |||
super.loadUrl(Config.getStartUrl()); | |||
//super.loadUrl("file:///android_asset/www/index.html") | |||
} | |||
</pre> | |||
== Cordova plugins == | == Cordova plugins == | ||
Line 61: | Line 86: | ||
* http://plugins.cordova.io/#/package/com.phonegap.plugins.barcodescanner | * http://plugins.cordova.io/#/package/com.phonegap.plugins.barcodescanner | ||
* https://moodstocks.com/docs/phonegap/using-the-moodstocks-sdk-in-your-phonegap-application/ | * https://moodstocks.com/docs/phonegap/using-the-moodstocks-sdk-in-your-phonegap-application/ | ||
=== Bugs === | |||
2ème scan avec Moodstocks: | |||
java.lang.RuntimeException : Unable to start activity ComponentInfo ... The specified child already has a parent. You must call removeView() on the child's parent first. | |||
== Firefox OS == | == Firefox OS == |