Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung Nächste Überarbeitung Beide Seiten der Revision | ||
app_programmierung [2013/04/06 17:41] admin [Neue Android App mit PhoneGap erstellen] |
app_programmierung [2014/09/21 21:16] admin [Linux] |
||
---|---|---|---|
Zeile 3: | Zeile 3: | ||
===== Linux ===== | ===== Linux ===== | ||
+ | ==== Eclipse ==== | ||
+ | |||
+ | Neu | ||
+ | MainActivity.java | ||
+ | in www neue Ordner lib/js | ||
+ | cordova.js hineinkopieren | ||
+ | ordner xml in verzeichnis res kopieren | ||
+ | cordova.jar nach libs kopieren | ||
+ | |||
+ | ===== apk auf Handy instalieren ===== | ||
+ | |||
+ | Einstellungen > Sicherheit > Unbekannte Quellen [x] | ||
+ | |||
+ | |||
+ | *[[http://www.adobe.com/devnet/html5/articles/getting-started-with-phonegap-in-eclipse-for-android.html|Getting started with PhoneGap in Eclipse for Android]] | ||
*[[http://docs.phonegap.com/en/2.5.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android|Installation]] | *[[http://docs.phonegap.com/en/2.5.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android|Installation]] | ||
*[[http://docs.phonegap.com/en/2.0.0/guide_getting-started_android_index.md.html|Konfiguration | *[[http://docs.phonegap.com/en/2.0.0/guide_getting-started_android_index.md.html|Konfiguration | ||
Zeile 36: | Zeile 51: | ||
-Eclipse starten | -Eclipse starten | ||
-File > New > Project > Android Application Project > Next < Application Name: ErstePhonegapApp > Next > Next > Next > Next > Finish | -File > New > Project > Android Application Project > Next < Application Name: ErstePhonegapApp > Next > Next > Next > Next > Finish | ||
- | -AndroidManifest.xml vom Verzeichnis vorlage kopieren und Projektname anpassen | + | -AndroidManifest.xml vom Verzeichnis vorlage in das Verzeichnis "projektname" kopieren und Projektname anpassen |
- | -Verzeichnis assets vom Verzeichnis vorlage kopieren | + | -Verzeichnis assets vom Verzeichnis vorlage in das Verzeichnis "projektname" kopieren |
- | -MainActivity.jar vom Verzeichnis vorlage kopieren und Projektname anpassen | + | -MainActivity.jar vom Verzeichnis vorlage in das Verzeichnis src/com.example.projektname kopieren und Projektname anpassen |
-cordova-2.5.0.jar vom Verzeichnis vorlage in das Verzeichnis libs kopieren | -cordova-2.5.0.jar vom Verzeichnis vorlage in das Verzeichnis libs kopieren | ||
-ggf re. Maus auf libs > Build Path > Configure Build Path > Libraries > Add external JARS > cordova-2.5.0.jar > OK | -ggf re. Maus auf libs > Build Path > Configure Build Path > Libraries > Add external JARS > cordova-2.5.0.jar > OK | ||
- | -Ordner xml von der Vorlage nach res/ kopieren | + | -Ordner xml von der Vorlage in das Verzeichnis res/ kopieren |
+ | |||
+ | AndroidManifest.xml | ||
+ | |||
+ | <uses-sdk | ||
+ | android:minSdkVersion="8" | ||
+ | android:targetSdkVersion="16" /> | ||
+ | |||
+ | ==== AVD Android Virtual Device ==== | ||
+ | |||
+ | ~sdk/tools/android avd | ||
+ | |||
+ | Problem: Eclipse Android Unexpected Error While Launching Logcat | ||
+ | |||
+ | In Eclipse starting up the Android emulator the LogCat does not always detect it. In the console you can read the following error: | ||
+ | |||
+ | Unexpected error while launching logcat. Try reselcting the device.] device not found | ||
+ | |||
+ | To solve this. Go to the DDMS perspective | ||
+ | |||
+ | Menu -> Window -> Open Perspective -> DDMS (or find it in “Other…”) | ||
+ | |||
+ | [[Phonegap Beispiele]] | ||
+ | [[http://www.w3schools.com/css/css_image_gallery.asp|Image Gallery]] | ||