android intro

Post on 19-May-2015

111 Views

Category:

Technology

2 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Android overview

Alternatives

Apple iOS (unix based)Microsoft Windows Phone 7

Nokia Meego, Maemo, SymbianRIM BlackBerry OSHP (Palm) WebOS

Samsung BadaUbuntu mobile

ArchitectureLinux + Custom Java VM

IDE & Installation

1

2

3

4

5

Application — Permissions

Application — View

Application — View / source@+id/some_field_id@drawable/icon@string/some_translation

dip unitslayouts

LinearLayoutRelativeLayoutFrameLayoutTableLayoutAbsoluteLayout

Application — Activity

Application — Activity lifecycle

Application — Adapters

UI Receivers:• ListActivity• Gallery• GridView• Spinner

setListAdapter(new ArrayAdapter(this,                  android.R.layout.simple_list_item_1, //template                new String[]{"item 1", "item 2"}  //data

));

Application — AdaptersImageAndTextListAdapter notes = new

ImageAndTextListAdapter(MessagesActivity.this,aCalls);setListAdapter(notes);

Application - IntentstartActivity(new Intent(MyKillerActivity.this,

MyWeakMinionActivity.class));

startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://opus.ee")));

Intent search = new Intent(Intent.ACTION_WEB_SEARCH);search.putExtra(SearchManager.QUERY, "куплю снег");startActivity(search);

Application - Menu

Application — AsyncTask

Docs

Stackoverflow

top related