Mobile Development for Web, IOS, Android Native Apps using PhoneGap/HTML5
-
Upload
jgarifuna -
Category
Technology
-
view
2.146 -
download
0
description
Transcript of Mobile Development for Web, IOS, Android Native Apps using PhoneGap/HTML5
ByJorge Garifuna
Professional Web [email protected]
213-915-4402
JGari.com/resume
Twitter: @jgarifuna
idabiña?
JGari.com/resume
maga-dien-tina!
JGari.com/resume
idabiña?How are you?
maga-dien-tina!
I am fine!JGari.com/resume
NOW: Show you how easy it is to start native mobile development and illustrate how to test on different phones.
SOON: Show you how to package your app to distribute to the different App stores. Interested?
SMS your name and email to:213-985-4413
JGari.com/resume
• Very Expensive
• Time Consuming
• Maintenance Nightmare
JGari.com/resumeSMS your name & email to: 213-985-4413
• Leverage Existing Skills
• Get to Market Sooner
• Reach More Users
JGari.com/resume
Join LA PhoneGap at: http://www.meetup.com/laphonegap/
Web Mobile
Presentation HTML HTML5
Styling CSS CSS3
Logic PHP, Perl, Python, Ruby, Java, C, C++, Javascript
PHP, Objective-C, Java, Javascript
Database MySQL, PostgreSQL SQLite
IDE NetBeans, Eclipse, DreamWeaver
Xcode, Eclipse, DreamWeaver CS5.5
Frameworks CakePHP, Symphony, ATK, Jquery, Sencha EXT JS
Jquery Mobile, Sencha Touch, Jo, PhoneGap
Distribution Web Hosting Web Hosting, App Store, Market
JGari.com/resumeSMS your name & email to: 213-985-4413
1. Build Mobile App2. Test App on Browser3. Test App on IOS Simulator4. Test App on IOS Devices5. Test App on Android Emulator6. Test App on Android Phone7. Access Devices APIs
JGari.com/resumeSMS your name & email to: 213-985-4413
1. SketchyPad/iMockups for wireframing
2. DreamWeaver CS5.53. Jquery Mobile 1.0a34. PhoneGap5. Xcode 4 & Eclipse6. IOS Simulator & Real iPhone7. Android Emulator & Real Phone
JGari.com/resumeSMS your name & email to: 213-985-4413
JGari.com/resumeSMS your name & email to: 213-985-4413
JGari.com/resumeSMS your name & email to: 213-985-4413
JGari.com/resumeSMS your name & email to: 213-985-4413
JGari.com/resumeSMS your name & email to: 213-985-4413
JGari.com/resume
JGari.com/resumeSMS your name & email to: 213-985-4413
JGari.com/resumeSMS your name & email to: 213-985-4413
Create New Site Site -> New Site
Configure Application Frameworks (IOS, Android) Site -> Mobile Applications -> Configure
Application Framework▪ “Easy Install” for Android SDK Installation▪ IOS Developer Tools Path: /Developer
JGari.com/resumeSMS your name & email to: 213-985-4413
Create New Mobile Project in DreamWeaver File -> New -> Page from Sample ->
Mobile Starters -> Jquery Mobile (phonegap)
DocType: HTML 5
JGari.com/resumeSMS your name & email to: 213-985-4413
File -> Save
JGari.com/resumeSMS your name & email to: 213-985-4413
Activate LiveView in DreamWeaverClick on buttons of Mobile AppOptionally Transfer to Server For
More Testing
JGari.com/resumeSMS your name & email to: 213-985-4413
From DreamWeaver Menu Site -> Mobile Applications ->
Application Settings▪ VERY IMPORTANT: Make sure the Bundle ID
does not contain any underscores(_) and no spaces▪ Fill out Information▪ Optionally add Application Icon and Startup
Screen▪ Images must be PNG 8
▪ SaveJGari.com/resumeSMS your name & email to: 213-985-4413
From DreamWeaver Menu For iPhone▪ Site -> Mobile Applications -> Build and
Emulate -> iPhone For iPad▪ Site -> Mobile Applications -> Build and
Emulate -> iPad
JGari.com/resumeSMS your name & email to: 213-985-4413
Start Android Emulator▪ From command line:▪ /Applications/Android/tools/emulator -avd DW_AVD
NOTE: Substitute “/Applications/Android” with your Android installation path
Site -> Mobile Applications -> Build and Emulate -> Android On failure, simply build app and
manually install▪ adb install AppFile.apk
JGari.com/resumeSMS your name & email to: 213-985-4413
1. From Android Market install AppInstaller or Quick App Install
2. Insert Micro SD Card on Android Phone3. Connect Android Phone to Computer Via USB4. Mount Phone to Computer
1. Slide down from top bar2. Select USB Connected3. Click mount button
5. Check mounted card under Devices on Mac OS Finder6. Copy Newly created .apk files from computer to Phone Card
1. Located in APP_NAME_Android/bin7. Unmount card from computer8. Turn off USB on Phone
1. Slide down from top bar2. Click “Turn off USB storage”3. Click on “turn off” button
9. Install App either with AppInstaller or Quick App Install10. Open App
JGari.com/resumeSMS your name & email to: 213-985-4413
1. You need to be a paid IOS Developer1. Your IOS Device must be registered at:
1. http://developer.apple.com/ios/manage/overview/index.action2. Connect IOS Device to computer via USB3. Navigate to newly built IOS Project
Located at APP_NAME_IOS4. Double click on APP_NAME.xcodeproj to open in Xcode5. Click on the project name in Xcode
1. Set deployment target to the same version as your IOS device in IOS Application Target
2. Set the appropriate target device(iPhone, iPad, Universal)3. Make your preferences in iPhone/iPod Deployment Info
6. Select your IOS Device from drop down list of devices next to the run button
7. Click the Run button
JGari.com/resumeSMS your name & email to: 213-985-4413
Add better navigation provided by Jquery Mobile http://jquerymobile.com/demos/1.0a4.1/
Tap into the device’s APIs (camera, GPS) with PhoneGap http://docs.phonegap.com
JGari.com/resumeSMS your name & email to: 213-985-4413
1. Jquery Mobile (v1.0a3) does not re-style dynamic list views (yet)
1. Need to upgrade to JQM v1.0a4.12. Refresh list with: jQuery('#link_list').listview();
2. Navigation bar transition in Jquery Mobile is not very smooth (yet)
DAVID FELDMAN recommends ▪ Sencha Touch: ▪ http://www.sencha.com/products/touch/
▪ Read David’s review: “Comparing Mobile Web (HTML5) Frameworks: Sencha Touch, jQuery Mobile, jQTouch, Titanium” at: ▪ http://interfacethis.com/2011/adventures-in-html5-part-one/
3. To access devices’ APIs you need to either add or update PhoneGap path in index.html to:
<script src="phonegap.js" type="text/javascript"></script>
JGari.com/resumeSMS your name & email to: 213-985-4413
While you think… Sign up to LAMPsig’s mailing list at:▪ http://lampsig.org
Join LAMPsig on Meetup at:▪ http://www.meetup.com/LAMPsig
Jorge Garifuna▪ [email protected]▪ @jgarifuna
JGari.com/resumeSMS your name & email to: 213-985-4413
1. http://tv.adobe.com/watch/cs-55-web-premium-feature-tour-
2. http://jquerymobile.com3. http://www.phonegap.com4. http://html5doctor.com5. http://www.sencha.com/products/touch6. http://joapp.com7. http://dhtmlx.com/touch8. http://developer.apple.com9. http://lampsig.org10.http://www.meetup.com/LAMPsig
JGari.com/resumeSMS your name & email to: 213-985-4413