Knowledge Sharing:
1. In order to install PhoneGap Build applications on Android, you will need to ensure your device will allow applications to be installed outside of the Google Play marketplace. To enable this on most Android devices you just go to the Settings > Security and then check “Allow applications from unknown sources.”
Goals:
1. Set up PhoneGap/Android Development Environment
2. Set up STS
3. Develop a HelloWorld APP
4. Deploy it to Android Emulator and Android Device
5. Work with SVN via STS Subclipse Plugin
Tools:
Spring Tool Suite with ADT Plugin
Android Studio
Tech Stack:
JDK 6/7
Steps to set up Phonegap Development Environment:
1. Install node.js from http://nodejs.org/
2. Install git from http://git-scm.com/download/mac
3. Install ant from http://ant.apache.org/bindownload.cgi
4. Install phonegap from http://phonegap.com/
5. Install Android SDK from http://developer.android.com/sdk/index.html
6. Install Cordova with node.js
http://docs.phonegap.com/en/edge/guide_cli_index.md.html#The%20Command-Line%20Interface
sudo npm install -g cordova
7. Install ADT Plugin into Eclipse
8. Set up classpath:
export PATH=${PATH}:/Development/adt-bundle/sdk/platform-tools:/Development/adt-bundle/sdk/tools
;%JAVA_HOME%\bin;%ANT_HOME%\bin
Samples for Hello World:http://docs.phonegap.com/en/edge/guide_platforms_android_index.md.html#Android%20Platform%20Guide
Work with SVN:
1. Check out the Android application from SVN to STS with Subclipse plugin.
2. Import Android application to STS as Android project.
3. Make changes to Android project and synchroize with SVN.
References:
http://flippinawesome.org/2013/03/29/phonegap-build-part1/
http://code.tutsplus.com/tutorials/phonegap-from-scratch-introduction--mobile-9171
http://stackoverflow.com/questions/16636146/using-android-studio-with-java-1-7
Android + PhoneGap:
http://docs.phonegap.com/en/2.7.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android
http://spring.io/guides/gs/android/
Best Practice:
1. Install Android SDK in a separate location.
2.
Issue List:
Issue 1: Please install Android target 19 (the Android newest SDK).
Solution: http://stackoverflow.com/questions/20010969/phonegap-with-android-sdk-4-4
Issue 2: didn't see android avd in eclipse
Solution: Change the perspective to java perspective
Issue 3: How to use Android Studio with Mac and Java 1.7
Solution: For those wonder how you start the actual program Android Studio with Java 7 edit the plist located in /Applications/Android Studio.app/Contents/info.plist Change the xml key JVMVersion which is 1.6* to 1.7*
Issue 4: Failed to open the HAX device! HAX is not working and emulator runs in emulation mode emulator
https://software.intel.com/en-us/android
Issue 5: Android AVD starts slow
http://stackoverflow.com/questions/1554099/why-is-the-android-emulator-so-slow
http://stackoverflow.com/questions/18011685/cant-connect-nexus-4-to-adb-unauthorized
Issue 7: it works in real device, but failed in the emulator
Some issue happened for AVD.
07-12 14:04:22.270: E/WebViewFactory(836): Chromium WebView does not exist
Real Device: Android 4.4.2
Remove the Android 4.4.W. Make sure that I can choose different target.
Issue 8: Can't see hidden files in Mac
Solution: defaults write com.apple.finder AppleShowAllFiles TRUE
http://osxdaily.com/2009/02/25/show-hidden-files-in-os-x/
Issue 9: Ask Eclipse to prompt for workspace
Issue 10: Eclipse Hangs in DDMS post-create init
http://stackoverflow.com/questions/8677679/eclipse-hangs-in-ddms-post-create-init
Issue 11: What is the best SVN Client tools in MAC
http://svn-ref.assembla.com/mac-svn-client-reviews.html#versions
Versions
No comments:
Post a Comment