はじめてのandroid in 高知
TRANSCRIPT
Android
hironemu
WebJava
Ruby
Android
Android
Android
TODO
Android
LinuxlibcSQLiteOpen GL ESetc...
Java SE()J2ME
Dalvik() JVM
Android
BluetoothUSBWiFiSQLiteOpen GL ESFreeTypeWebkitSGLSSLlibcHomeContcts()Phone()
Linux
Android
DalvikAndroid () P.12
200910
3
7
Google Checkout
1.5
1.6 (HT-03A, Xperia)
2.1 (Nexus One)
Android
Xperia (201041 )Version 1.6
HT-03A (20096 )Version 1.5 1.6(2009/10)
Java SDK
Android SDK)
Eclipse
Android Development Tools (ADT) (
(
Dev Phone
Android SDKhttp://developer.android.com/intl/ja/sdk/index.html
android-sdk_r04-windows.zip
ZIP
SDK Setup.exe
https
.androidandroidtool.cfg
SDK Setup.exe
sdkman.force.http=true
http://d.hatena.ne.jp/hiro_nemu/20100107
3SDK Platform Android 1.6 API
Google APIs
Usb Driver package
EclipseADThttps://dl-ssl.google.com/android/eclipse/
ADTWindows > Preferences > AndroidAndroid SDK
Android
Android Dev Phone
Google Checkout
Google Checkout
Android
Linux
VM
LinuxID
Intent
http://developer.android.com/intl/ja/guide/topics/fundamentals.html
Android
D:\users\satake\\ScreenShot\2010y02m18d_131939500.jpghttp://developer.android.com/intl/ja/guide/topics/fundamentals.html
Activity
ActivityTODO
MainActivity
EditActivity
Web
D:\users\satake\\ScreenShot\2010y02m18d_131939500.png
D:\users\satake\\ScreenShot\2010y02m18d_131939500.png
D:\users\satake\\ScreenShot\2010y02m18d_145543062.jpg
D:\users\satake\\ScreenShot\2010y02m18d_153536453.jpg
D:\users\satake\\ScreenShot\2010y02m18d_131939500.png
A
D:\users\satake\\ScreenShot\2010y02m18d_131939500.png
B
1. onCreate()2. onStart()3 onRestoreInstanceState()4. onResume()
1. onSaveInstanceState()2. onPause
onResume
1. onSaveInstanceState()2. onStop()
1. onRestart()2. onStart()3. onResume()
onDestroy()
Android () P.18
Intent
Intent()
startActivity()startActivityForResult()
onActivityResult
http://developer.android.com/intl/ja/guide/topics/fundamentals.html
http://developer.android.com/intl/ja/guide/topics/fundamentals.html
D:\users\satake\\ScreenShot\2010y02m18d_131939500.png
// EditActivityIntent i = new Intent(v.getContext(), EditActivity.class);// EditActivityi.putExtra(EditActivity.EXT_POSITION, t.getId());// IntentstartActivityForResult(i, 0);
// EditActivityIntent i = new Intent(v.getContext(), EditActivity.class);// EditActivityi.putExtra(EditActivity.EXT_POSITION, t.getId());// IntentstartActivityForResult(i, 0);
ActirityActivity)
IntentFilterACTION
CATEGORY
DATA
TYPE
http://developer.android.com/intl/ja/guide/topics/fundamentals.html
http://developer.android.com/intl/ja/guide/topics/fundamentals.html
D:\users\satake\\ScreenShot\2010y02m18d_131939500.png
http://www.saturn.dti.ne.jp/~npaka/android/ActivityEx/index.html
Uri uri=Uri.parse("mailto:[email protected]"); Intent intent=new Intent(Intent.ACTION_SENDTO,uri); intent.putExtra(Intent.EXTRA_SUBJECT, ""); intent.putExtra(Intent.EXTRA_TEXT, ""); intent.setFlags( Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent);
AndroidManifest.xml
http://developer.android.com/intl/ja/guide/topics/fundamentals.html
Todo
TodoTodo
Todo
XML
GUI
ID
XMLR
Todomain.xml
todo_list.xml
edit.xml
XML
LinearLayout
RelativeLayout
ListView
main.xml
todo_list.xml
LinearLayout
CheckBox
LinearLayout
TextView
R
ID
R.{}.{}R.layout.main (XML
R.strings.label_add_button
R.id.add_button
etc..
Button button = (Button) this.findViewById(R.id.add_button);
strings.xml
values/strings.xml
values-ja/strings.xml
Todo Sample
XML@string/label_add_button
TODO
EclipseapkADT
apk
http://itpro.nikkeibp.co.jp/article/COLUMN/20091218/342383/
Android Marketapk
http://www.nttdocomo.co.jp/info/news_release/page/100121_00.html#p02
PlayNow
(30
http://andronavi.com/2010/01/4421
apkWeb
adb
android-sdk-windows\tools
> adb shell
# echo $PATH ()
adb> adb uninstall sample.todo.android
> adb install sample-todo-android.apk
URL
http://developer.android.com/
()http://developer.android.com/intl/ja/guide/topics/fundamentals.html
Intenthttp://d.hatena.ne.jp/minghai/20090316/
()http://developer.android.com/intl/ja/reference/android/content/Intent.html
http://developer.android.com/intl/ja/guide/topics/intents/intents-filters.html
http://www.android.encke.net/android-emulator-tutorial.html
123
hironemuhttp://d.hatena.ne.jp/hiro_nemu@hironemu
123