This document provides tutorials and hands-on labs for developing mobile apps using Appspresso. It begins with tutorials for creating new Appspresso projects and explaining the project structure. It then covers topics like the HTML structure for Appspresso apps, using jQuery Mobile widgets like headers, lists and events, and accessing device capabilities like the accelerometer and gallery. The document concludes with instructions for exporting and uploading an app to app stores.
29. !doctype html
html
head
meta name=apple-mobile-web-app-capable content=yes
meta name=apple-mobile-web-app-status-bar-style content=black
link rel=stylesheet href=css/jquery.mobile-1.0a4.1.css /
script src=js/jquery-1.5.js/script
script src=js/jquery.mobile-1.0a4.1.js/script
script src=/appspresso/appspresso.js/script
/head
body
div data-role=”page” id=”home”
div data-role=”header”
/div
div data-role=”content”
/div
div data-role=”footer”
/div
/div
/body
30. !doctype html
html
head
meta name=apple-mobile-web-app-capable content=yes
meta name=apple-mobile-web-app-status-bar-style content=black
link rel=stylesheet href=css/jquery.mobile-1.0a4.1.css /
script src=js/jquery-1.5.js/script
script src=js/jquery.mobile-1.0a4.1.js/script
script src=/appspresso/appspresso.js/script
/head
body
div data-role=”page” id=”home”
div data-role=”header”
/div
div data-role=”content”
/div
div data-role=”footer”
/div
/div
/body
31. !doctype html
html
head
meta name=apple-mobile-web-app-capable content=yes
meta name=apple-mobile-web-app-status-bar-style content=black
link rel=stylesheet href=css/jquery.mobile-1.0a4.1.css /
script src=js/jquery-1.5.js/script
script src=js/jquery.mobile-1.0a4.1.js/script
script src=/appspresso/appspresso.js/script
/head
body
div data-role=”page” id=”home”
div data-role=”header”
/div
div data-role=”content”
/div
div data-role=”footer”
/div
/div
/body
32. !doctype html
html
head
meta name=apple-mobile-web-app-capable content=yes
meta name=apple-mobile-web-app-status-bar-style content=black
link rel=stylesheet href=css/jquery.mobile-1.0a4.1.css /
script src=js/jquery-1.5.js/script
script src=js/jquery.mobile-1.0a4.1.js/script
script src=/appspresso/appspresso.js/script
/head
body
div data-role=”page” id=”home”
div data-role=”header”
/div
div data-role=”content”
/div
div data-role=”footer”
/div
/div
/body
33. !doctype html
html
head
meta name=apple-mobile-web-app-capable content=yes
meta name=apple-mobile-web-app-status-bar-style content=black
link rel=stylesheet href=css/jquery.mobile-1.0a4.1.css /
script src=js/jquery-1.5.js/script
script src=js/jquery.mobile-1.0a4.1.js/script
script src=/appspresso/appspresso.js/script
/head
body
div data-role=”page” id=”home”
div data-role=”header”
/div
div data-role=”content”
/div
div data-role=”footer”
/div
/div
/body
37. div data-role=”header”
h1KichenSink/h1
a href=”#about” data-role=”button”About/a
div data-role=navbar
ul
lia href=#Flickr/a/li
lia href=#Yahoo/a/li
lia href=#Twitter/a/li
/ul
/div
/div
45. ul data-role=”listview”
li
a href=”#”
h1Device/h1
pDevice status, .../p
/a
/li
li
a href=”#”
h1PIM/h1
pContacts, Calendar, Task/p
/a
/li
/ul
46. ul data-role=”listview”
li
a href=”#”
h1Device/h1
pDevice status, .../p
/a
/li
li
a href=”#”
h1PIM/h1
pContacts, Calendar, Task/p
span class=ui-li-count3/span
/a
/li
/ul
47. ul data-role=”listview”
li
a href=”#”
img src=”my_image.jpg”
h1Device/h1
pDevice status, .../p
/a
/li
li
a href=”#”
h1PIM/h1
pContacts, Calendar, Task/p
span class=ui-li-count3/span
/a
/li
/ul