Android and android phone

20
Android and Android Phones http://eglobiotraining .com

description

 

Transcript of Android and android phone

Page 1: Android and android phone

Android and Android Phoneshttp://eglobiotraining.com

Page 2: Android and android phone

What is in this presentation?

• Why android?• How to get started?• “Deep” Dive• How to Publish?• Resources Available

http://eglobiotraining.com/

Page 3: Android and android phone

Why Android?

Open Market Place

• Instant publishing and feedback!• You can create “ANYTHING”

http://eglobiotraining.com/

Page 4: Android and android phone

Why Android?

Background Applications

Finally useful apps• fBook notification• Contextual based applications• …yourapp.apk

http://eglobiotraining.com/

Page 5: Android and android phone

Why Android?

Develop on ANY platform

• Windows• Linux• Mac

http://eglobiotraining.com/

Page 6: Android and android phone

Why Android?

Not just on mobile!

• Netbooks• MIDs• Desktop Phone?

http://eglobiotraining.com/

Page 7: Android and android phone

How to get started?

Things to install

• Java Developers Kit(JDK)• Eclipse or any other IDE• Android SDK• Android Developers Tool(ADT)

http://eglobiotraining.com/

Page 8: Android and android phone

“Deep” Dive

Applications in Java

Import Java libraries Import Android libraries• GUI• Widgets• Animation

http://eglobiotraining.com/

Page 9: Android and android phone

“DEEP” Dive

Activity Lifecycle

• Void onCREATE• Void onStart()• Void onRestart()• Void onResume()

http://eglobiotraining.com/

Page 10: Android and android phone

http://eglobiotraining.com/

• Void onPause()• Void onStop()• Void onDestroy()

Page 11: Android and android phone

Application Fundamentals

Activities (Application!= Activity)• What the user see on the screen• 1 app can have multiple activities• Draw using xml and call by Activity.setContentView()

Services• Runs in background indefinitely• E.g. music playback even when activity is stopped

http://eglobiotraining.com/

Page 12: Android and android phone

http://eglobiotraining.com/

Broadcast receivers• Does nothing but receive and react to broadcast

announcements• E.g. SMS receiver

Content providers• Data that can be accessed ny the application• SQlite or any file system

Page 13: Android and android phone

http://eglobiotraining.com/

Intent• Intent object holds the content of the message• E.g. intent is used when you want to start a new

activity and intent will carry the name of the activity and content needed to be pass through

Android Manifest• Declaring the application’s components e.g.

libraries• Identifying any permissions the application

expects to be granted• Mostly auto generated by ADT in Eclipse

Page 14: Android and android phone

http://eglobiotraining.com/

How to Publish?

Export and signing your app• Export your app from Eclipse project• Application will be exported as .apk• Sign myapp.apk with Keytool and Jarsigner

(within JDK)

Page 15: Android and android phone

http://eglobiotraining.com/

Publishing on Android Market• Sign up as an Android Developer at

developer.android.com• USD$25 sign up fee• Upload and monitor

Page 16: Android and android phone

http://eglobiotraining.com/

Market Business Policies

• Payment -70% developer- 30% telco• Currently paid apps in UK and US• No obscene materials (porn etc)• 24 hour return policy• Dispute resolution handled by developer

and user directly• Google has the right to remove

application if found of violation

Page 17: Android and android phone

http://eglobiotraining.com/

Resources

• Android Resources developer.android.com

• Open Source Codes for Android Application Code.google.com/hosting

Page 18: Android and android phone

http://eglobiotraining.com/

• Online tutorials

• Developers Group Google Group(Android Beginner, Developer,

Discuss) Codeandroid.org(Singapore Android Group)

Page 19: Android and android phone

http://eglobiotraining.com/

GUI XML Tool for Android• DroidDraw

Hacking/Flashing Android ROMs• XDA Developers

List of all application on Android Market

• http://www.cyrket.com/

Page 20: Android and android phone

Respectfully submitted to:Prof. Erwin M. Globio, MSIT

http://slideshare.net/daniellejoyce