Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
|
app_programmierung [2013/04/28 21:22] admin |
app_programmierung [2014/12/14 10:55] (aktuell) admin |
||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| ====== APP Programmierung ====== | ====== APP Programmierung ====== | ||
| + | |||
| + | ===== Android Studio ===== | ||
| + | |||
| + | http://android-developers.blogspot.de/2014/12/android-studio-10.html | ||
| + | |||
| + | ===== Internet ===== | ||
| + | |||
| + | https://build.phonegap.com/ | ||
| ===== Linux ===== | ===== Linux ===== | ||
| + | |||
| + | ==== Eclipse ==== | ||
| + | |||
| + | File > New > Android Application Project > Application Name: > Finish | ||
| + | Application Name/src/com.example.applicationname/MainActivity.java anpassen | ||
| + | www.zip im Ordner assets entpacken | ||
| + | cordova-2.5.0.jar in den Ordner Application Name/libs | ||
| + | Re. Maus auf den Ordner libs > Build Path > Configue Build Path > Libraries > Add external JARs... > cordova-2.5.0.jar > OK | ||
| + | cordova-2.5.0.jav markieren > Edit > Pfad an Application Name/libs/ anpassen | ||
| + | Application Name/AndroidManifest.xml anpassen | ||
| + | | ||
| + | Vorlagen und Dateien gibt es unter cloud.peer.st/apps/vorlagen | ||
| + | |||
| + | ===== apk auf Handy installieren ===== | ||
| + | |||
| + | 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://www.adobe.com/devnet/html5/articles/getting-started-with-phonegap-in-eclipse-for-android.html|Getting started with PhoneGap in Eclipse for Android]] | ||
| Zeile 36: | Zeile 61: | ||
| -Eclipse starten | -Eclipse starten | ||
| - | -File > New > Project > Android Application Project > Next < Application Name: ErstePhonegapApp > Next > Next > Next > Next > Finish | + | -File > New > Android Application Project > Application Name: ErstePhonegapApp > Next > Next > Next > Next > Finish |
| - | -AndroidManifest.xml vom Verzeichnis vorlage in das Verzeichnis "projektname" kopieren und Projektname anpassen | + | -Dolphin starten > Ordner: casper-rw > workspace > vorlage |
| - | -Verzeichnis assets vom Verzeichnis vorlage in das Verzeichnis "projektname" kopieren | + | -AndroidManifest.xml vom Verzeichnis vorlage in das Verzeichnis "ErstePhonegapApp" kopieren und Application Name in der 3. Zeile anpassen > re. Maustaste > Open with > Text Editor (com.example.erstephonegapapp) > speichern |
| - | -MainActivity.jar vom Verzeichnis vorlage in das Verzeichnis src/com.example.projektname kopieren und Projektname anpassen | + | -Verzeichnis assets vom Verzeichnis vorlage in das Verzeichnis "ErstePhonegapApp" kopieren |
| - | -cordova-2.5.0.jar vom Verzeichnis vorlage in das Verzeichnis libs kopieren | + | -MainActivity.java vom Verzeichnis vorlage in das Verzeichnis src/com.example.erstephonegapapp kopieren und Projektname anpassen > re. Maustaste > Open with > Text Editor > (com.example.erstephonegapapp) > Fehlermeldungen ignorieren |
| - | -ggf re. Maus auf libs > Build Path > Configure Build Path > Libraries > Add external JARS > cordova-2.5.0.jar > OK | + | -cordova-2.5.0.jar vom Verzeichnis vorlage/libs in das Verzeichnis libs kopieren |
| - | -Ordner xml von der Vorlage in das Verzeichnis res/ kopieren | + | -ggf re. Maus auf libs > Build Path > Configure Build Path > Libraries > Add JARS > ErstePhoneGapApp > libs > cordova-2.5.0.jar > OK > OK |
| + | -Ordner xml vom Verzeichnis vorlage in das Verzeichnis res/ kopieren | ||
| - | AndroidManifest.xml | ||
| - | |||
| - | <uses-sdk | ||
| - | android:minSdkVersion="8" | ||
| - | android:targetSdkVersion="16" /> | ||
| - | | ||
| ==== AVD Android Virtual Device ==== | ==== AVD Android Virtual Device ==== | ||
| Zeile 65: | Zeile 85: | ||
| [[Phonegap Beispiele]] | [[Phonegap Beispiele]] | ||
| + | |||
| + | [[http://www.w3schools.com/css/css_image_gallery.asp|Image Gallery]] | ||