Android ja PhoneGap ohjelmointi

crickettachyphagiaΚινητά – Ασύρματες Τεχνολογίες

10 Δεκ 2013 (πριν από 3 χρόνια και 7 μήνες)

71 εμφανίσεις



Android ja PhoneGap ohjelmointi
Mobiilikehitysseminaari
Kimmo Kinnunen
14.12.2011


US smartphone market


Native vs. WEB
Service idea
Technology
Native
WEB
Web based
phone app.
http://www.tbray.org/ongoing/When/201x/2011/06/14/Native-vs-Web
http://www.mobiledia.com/news/91330.html
http://www.technologyreview.com/blog/mimssbits/26778/
http://blogs.forrester.com/thomas_husson/11-05-03-why_the_web_versus_application_debate_is_irrelevant
Game sets (Tim Bray):

Games 0-0

Code Sharing 0-1

Low-grade Problems 1-1

Tooling and culture 2-1

Cross platform 2-2

Consumers want apps. 3-2

Indi
vidual
Mas
s
Mobile
Client
Three application build setups
OS
Dalvik
VM
NDK
SDK
Native application
Java (C, C++)
OS
Dalvik
VM
NDK

SDK
PhoneGap
Mobile jQuery
Application
HTML/CCS/Javascript/jQuery
OS
Browser
Application
HTML/CSS/Javascript/jQuery
Web server
Web based
application
Framework
web application
Native mobile
application
(case Android)
Web
View
Can these applications
build from same codespace?


Native Android

Setup

Ubuntu 11.10

Eclipse 3.7.0

Android SDK rev 16

OpenJDK ver. 1.6.0_23


Support


http://developer.android.com/index.html
OS
Dalvik VM
NDK
SDK
Native application
Java (C, C++)


PhoneGap

Setup

Ubuntu 11.10

Eclipse 3.7.0

Android SDK rev 16

OpenJDK ver. 1.6.0_23

Phonegap

PhoneGap 1.0 (1.2 exists)

Mobile Jquery 1.0

Support

http://phonegap.com/

http://jquerymobile.com/


(http://developer.android.com/index.html)
OS
Dalvik
VM
NDK

SDK
PhoneGap
Mobile jQuery
Application
HTML/CCS/Javascript/jQuery
Web
View
Android stack
Alternatives:
Jo, Glowebox,
XUI, Sencha Touch,
JQTouch, iScroll,
NS Basic ...
Alternatives for PhoneGap:
Appcelerator, Java ME, RhoMobile,
QT SDK, Unity, Flash Lite, ...


Kuntovalmentaja 1/2
Kuntoilusuoritusten nopea kirjaussovellus + tietojen tilastollinen tarkastelu
Kuntovalmentaja 2/2
Android native SDK
Mobile jQuery


Using PhoneGap

Download PhoneGap (1.2) and install

Download MjQuery (1.0) and install

Develop working version locally

Register to PhoneGap

Give Git repository of your code to Phonegap

Go to PhoneGap service and start Phonegap build

Install software (.apk in Android) to phone
PhoneGap
MjQuery
package com.phonegap.kuntovalmentaja;
import com.phonegap.*;
public class App extends DroidGap {
    
@Override
    
public void onCreate(Bundle savedInstanceState) {
        
super.onCreate(savedInstanceState);
        
super.loadUrl("
file:///android_asset/www/index.html
");
    
}
}


PhoneGap build
New application:
Debugging over internet:
(Do no tag if you do not really use it!
Application does not work if you
do not have the connection)
Basic Apps view + Application view
https://build.phonegap.com/apps


PhoneGap – Adobe

September 2011 Abobe aquired Nitobi - > PhoneGap will be Adobe's
portfolio and propably majar contributor in their HTML5 roadmap

However, PhoneGap development focus is somewhat stalled and Nitobi
team is propably learning new big company approach...
Quete:
"It is not a JavaScript array the object is an instance of the native Storage class which doesn't have constructor access
to from inside the browser environment but it has array-like features, such as a length property."


Conclusion

'
Everything
' goes to cloud

'Everything' needs to be accessed '
everywhere
'. Mobile is the
'everywhere'.

The battle between OSs will
continue
, the battle between application
frameworks will continue

In order to have everything everywhere we continue looking the one
tool and find just everywhere nothing.

Oh wait, Antti-Jussi will tell about HTML5...