Now Loading. Please Wait ...                              Android        Android                  #yochiand               ...
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
eXtensible   Markup Language                                         Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
<?xml version="1.0" encoding="utf-8"?>  <LinearLayout      xmlns:android="http://schemas.android.com/apk/res/android"     ...
<poem>       <pno>8</pno>       <mkana>                                      </mkana>       <poet>        (          )</po...
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
package jp.co.kayo.android.sample.activity;            import android.app.Activity;            import android.os.Bundle;  ...
<?xml version="1.0" encoding="utf-8"?>                 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/   ...
<?xml version="1.0" encoding="utf-8"?>       <manifest xmlns:android="http://schemas.android.com/apk/res/android"         ...
Re:Kayo-System Co.,Ltd.2011   11   15
Button button = (Button)findViewById(R.id.button1);       button.setOnClickListener(new OnClickListener() {           publ...
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Fragment fr = new MyFragment();                 FragmentTransaction tr =                      getSupportFragmentManager()....
Re:Kayo-System Co.,Ltd.2011   11   15
public Fragment createFragment(int n){                     MyFragment f = new MyFragment();                     Bundle bun...
Re:Kayo-System Co.,Ltd.2011   11   15
Fragment fr = new MyFragment(n++);                 FragmentTransaction tr =                      getSupportFragmentManager...
Fragment f =                    getSupportFragmentManager().                       findFragmentByTag("tag");              ...
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
class MyAsyncTask extends AsyncTask<Void, Void, Void>{                     Handler handler;                     Context co...
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
LoaderCallbacks<T>                 Bundle bundle = new Bundle();                 getSupportLoaderManager().initLoader(    ...
Bundle bundle = new Bundle();                 getSupportLoaderManager().restartLoader(                      R.layout.main,...
@Override                 public void onDestroy() {                     super.onDestroy();                     getLoaderMa...
LoaderCallbacks<T>                 public static class MyLoaderFragment extends Fragment implements                 Loader...
class ValueItem {                     String name;                     int age;                 }                         ...
public static class MyLoaderFragment2 extends Fragment implements                 LoaderCallbacks<List<ValueItem>>{       ...
static class MyAsyncTaskLoader extends AsyncTaskLoader<List<ValueItem>>{                       public MyAsyncTaskLoader(Co...
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Re:Kayo-System Co.,Ltd.2011   11   15
Upcoming SlideShare
Loading in...5
×

夜子まま塾さくら

1,145

Published on

2011年11月19日
夜子まま塾 @東京 (よちよちAndroidの会)
http://atnd.org/events/21273

Published in: Technology, Business
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,145
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
10
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

夜子まま塾さくら

  1. 1. Now Loading. Please Wait ... Android Android #yochiand Re:Kayo-System Co.,Ltd.2011 11 15
  2. 2. Re:Kayo-System Co.,Ltd.2011 11 15
  3. 3. Re:Kayo-System Co.,Ltd.2011 11 15
  4. 4. Re:Kayo-System Co.,Ltd.2011 11 15
  5. 5. Re:Kayo-System Co.,Ltd.2011 11 15
  6. 6. Re:Kayo-System Co.,Ltd.2011 11 15
  7. 7. Re:Kayo-System Co.,Ltd.2011 11 15
  8. 8. Re:Kayo-System Co.,Ltd.2011 11 15
  9. 9. Re:Kayo-System Co.,Ltd.2011 11 15
  10. 10. Re:Kayo-System Co.,Ltd.2011 11 15
  11. 11. Re:Kayo-System Co.,Ltd.2011 11 15
  12. 12. Re:Kayo-System Co.,Ltd.2011 11 15
  13. 13. Re:Kayo-System Co.,Ltd.2011 11 15
  14. 14. Re:Kayo-System Co.,Ltd.2011 11 15
  15. 15. Re:Kayo-System Co.,Ltd.2011 11 15
  16. 16. Re:Kayo-System Co.,Ltd.2011 11 15
  17. 17. Re:Kayo-System Co.,Ltd.2011 11 15
  18. 18. Re:Kayo-System Co.,Ltd.2011 11 15
  19. 19. Re:Kayo-System Co.,Ltd.2011 11 15
  20. 20. Re:Kayo-System Co.,Ltd.2011 11 15
  21. 21. Re:Kayo-System Co.,Ltd.2011 11 15
  22. 22. Re:Kayo-System Co.,Ltd.2011 11 15
  23. 23. Re:Kayo-System Co.,Ltd.2011 11 15
  24. 24. Re:Kayo-System Co.,Ltd.2011 11 15
  25. 25. Re:Kayo-System Co.,Ltd.2011 11 15
  26. 26. Re:Kayo-System Co.,Ltd.2011 11 15
  27. 27. Re:Kayo-System Co.,Ltd.2011 11 15
  28. 28. Re:Kayo-System Co.,Ltd.2011 11 15
  29. 29. Re:Kayo-System Co.,Ltd.2011 11 15
  30. 30. Re:Kayo-System Co.,Ltd.2011 11 15
  31. 31. Re:Kayo-System Co.,Ltd.2011 11 15
  32. 32. Re:Kayo-System Co.,Ltd.2011 11 15
  33. 33. Re:Kayo-System Co.,Ltd.2011 11 15
  34. 34. eXtensible Markup Language Re:Kayo-System Co.,Ltd.2011 11 15
  35. 35. Re:Kayo-System Co.,Ltd.2011 11 15
  36. 36. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /> </LinearLayout> Re:Kayo-System Co.,Ltd.2011 11 15
  37. 37. <poem> <pno>8</pno> <mkana> </mkana> <poet> ( )</poet> <yomi> ( ) ( ) ( ) ( ) </yomi> <image>image/m0008.jpg</image> <mean> ( ) </mean> </poem> Re:Kayo-System Co.,Ltd.2011 11 15
  38. 38. Re:Kayo-System Co.,Ltd.2011 11 15
  39. 39. Re:Kayo-System Co.,Ltd.2011 11 15
  40. 40. package jp.co.kayo.android.sample.activity; import android.app.Activity; import android.os.Bundle; public class MainActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } } Re:Kayo-System Co.,Ltd.2011 11 15
  41. 41. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /> </LinearLayout> Re:Kayo-System Co.,Ltd.2011 11 15
  42. 42. <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="jp.co.kayo.android.sample.activity" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="14" /> <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" > <activity android:label="@string/app_name" android:name=".MainActivity" > <intent-filter > <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest> Re:Kayo-System Co.,Ltd.2011 11 15
  43. 43. Re:Kayo-System Co.,Ltd.2011 11 15
  44. 44. Button button = (Button)findViewById(R.id.button1); button.setOnClickListener(new OnClickListener() { public void onClick(View v) { // } }); Re:Kayo-System Co.,Ltd.2011 11 15
  45. 45. Re:Kayo-System Co.,Ltd.2011 11 15
  46. 46. Re:Kayo-System Co.,Ltd.2011 11 15
  47. 47. Re:Kayo-System Co.,Ltd.2011 11 15
  48. 48. Re:Kayo-System Co.,Ltd.2011 11 15
  49. 49. Re:Kayo-System Co.,Ltd.2011 11 15
  50. 50. Re:Kayo-System Co.,Ltd.2011 11 15
  51. 51. Re:Kayo-System Co.,Ltd.2011 11 15
  52. 52. Re:Kayo-System Co.,Ltd.2011 11 15
  53. 53. Re:Kayo-System Co.,Ltd.2011 11 15
  54. 54. Re:Kayo-System Co.,Ltd.2011 11 15
  55. 55. Re:Kayo-System Co.,Ltd.2011 11 15
  56. 56. Fragment fr = new MyFragment(); FragmentTransaction tr = getSupportFragmentManager().beginTransaction(); tr.add(fr, "MyFragment"); tr.commit(); Re:Kayo-System Co.,Ltd.2011 11 15
  57. 57. Re:Kayo-System Co.,Ltd.2011 11 15
  58. 58. public Fragment createFragment(int n){ MyFragment f = new MyFragment(); Bundle bundle = new Bundle(); bundle.putInt("num", n); f.setArguments(bundle); return f; } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if(savedInstanceState!=null){ n = savedInstanceState.getInt("num"); } else{ Bundle bundle = getArguments(); if(bundle!=null){ n = bundle.getInt("num"); } } } Re:Kayo-System Co.,Ltd.2011 11 15
  59. 59. Re:Kayo-System Co.,Ltd.2011 11 15
  60. 60. Fragment fr = new MyFragment(n++); FragmentTransaction tr = getSupportFragmentManager().beginTransaction(); tr.replace(R.id.frameLayout1, fr); tr.addToBackStack("task"); tr.commit(); Re:Kayo-System Co.,Ltd.2011 11 15
  61. 61. Fragment f = getSupportFragmentManager(). findFragmentByTag("tag"); Re:Kayo-System Co.,Ltd.2011 11 15
  62. 62. Re:Kayo-System Co.,Ltd.2011 11 15
  63. 63. Re:Kayo-System Co.,Ltd.2011 11 15
  64. 64. Re:Kayo-System Co.,Ltd.2011 11 15
  65. 65. Re:Kayo-System Co.,Ltd.2011 11 15
  66. 66. Re:Kayo-System Co.,Ltd.2011 11 15
  67. 67. Re:Kayo-System Co.,Ltd.2011 11 15
  68. 68. class MyAsyncTask extends AsyncTask<Void, Void, Void>{ Handler handler; Context context; @Override protected Void doInBackground(Void... params) { Cursor cur = context.getContentResolver().query( Media.EXTERNAL_CONTENT_URI, null, null, null, null); handler.sendMessage(handler.obtainMessage(0, cur)); return null; } } Re:Kayo-System Co.,Ltd.2011 11 15
  69. 69. Re:Kayo-System Co.,Ltd.2011 11 15
  70. 70. Re:Kayo-System Co.,Ltd.2011 11 15
  71. 71. LoaderCallbacks<T> Bundle bundle = new Bundle(); getSupportLoaderManager().initLoader( R.layout.main, bundle, this); Re:Kayo-System Co.,Ltd.2011 11 15
  72. 72. Bundle bundle = new Bundle(); getSupportLoaderManager().restartLoader( R.layout.main, bundle, this); Re:Kayo-System Co.,Ltd.2011 11 15
  73. 73. @Override public void onDestroy() { super.onDestroy(); getLoaderManager().destroyLoader(R.layout.main); } Re:Kayo-System Co.,Ltd.2011 11 15
  74. 74. LoaderCallbacks<T> public static class MyLoaderFragment extends Fragment implements LoaderCallbacks<Cursor>{ CursorAdapter adapter; public Loader<Cursor> onCreateLoader(int arg0, Bundle arg1) { return new CursorLoader(getActivity(), Media.EXTERNAL_CONTENT_URI, null, null, null, null); } public void onLoadFinished(Loader<Cursor> arg0, Cursor arg1) { Cursor cur = adapter.swapCursor(arg1); } public void onLoaderReset(Loader<Cursor> arg0) { } } Re:Kayo-System Co.,Ltd.2011 11 15
  75. 75. class ValueItem { String name; int age; } Re:Kayo-System Co.,Ltd.2011 11 15
  76. 76. public static class MyLoaderFragment2 extends Fragment implements LoaderCallbacks<List<ValueItem>>{ public Loader<List<ValueItem>> onCreateLoader(int arg0, Bundle arg1) { // TODO Auto-generated method stub return null; } public void onLoadFinished(Loader<List<ValueItem>> arg0, List<ValueItem> arg1) { // TODO Auto-generated method stub } public void onLoaderReset(Loader<List<ValueItem>> arg0) { // TODO Auto-generated method stub } } Re:Kayo-System Co.,Ltd.2011 11 15
  77. 77. static class MyAsyncTaskLoader extends AsyncTaskLoader<List<ValueItem>>{ public MyAsyncTaskLoader(Context context) { super(context); } @Override public List<ValueItem> loadInBackground() { List<ValueItem> list = new ArrayList<ValueItem>(); return list; } } public Loader<List<ValueItem>> onCreateLoader(int arg0, Bundle arg1) { MyAsyncTaskLoader l = new MyAsyncTaskLoader(getActivity()); l.forceLoad(); return l; } Re:Kayo-System Co.,Ltd.2011 11 15
  78. 78. Re:Kayo-System Co.,Ltd.2011 11 15
  79. 79. Re:Kayo-System Co.,Ltd.2011 11 15
  80. 80. Re:Kayo-System Co.,Ltd.2011 11 15
  81. 81. Re:Kayo-System Co.,Ltd.2011 11 15
  82. 82. Re:Kayo-System Co.,Ltd.2011 11 15
  83. 83. Re:Kayo-System Co.,Ltd.2011 11 15
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×