夜子まま塾Ecc

1,096 views

Published on

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

  • Be the first to like this

No Downloads
Views
Total views
1,096
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
12
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

夜子まま塾Ecc

  1. 1. Now Loading. Please Wait ... ECC Re:Kayo-System Co.,Ltd.2011 10 29
  2. 2. Re:Kayo-System Co.,Ltd.2011 10 29
  3. 3. Re:Kayo-System Co.,Ltd.2011 10 29
  4. 4. Re:Kayo-System Co.,Ltd.2011 10 29
  5. 5. Re:Kayo-System Co.,Ltd.2011 10 29
  6. 6. Re:Kayo-System Co.,Ltd.2011 10 29
  7. 7. Re:Kayo-System Co.,Ltd.2011 10 29
  8. 8. Re:Kayo-System Co.,Ltd.2011 10 29
  9. 9. Re:Kayo-System Co.,Ltd.2011 10 29
  10. 10. Re:Kayo-System Co.,Ltd.2011 10 29
  11. 11. Re:Kayo-System Co.,Ltd.2011 10 29
  12. 12. Re:Kayo-System Co.,Ltd.2011 10 29
  13. 13. Re:Kayo-System Co.,Ltd.2011 10 29
  14. 14. Re:Kayo-System Co.,Ltd.2011 10 29
  15. 15. Re:Kayo-System Co.,Ltd.2011 10 29
  16. 16. Re:Kayo-System Co.,Ltd.2011 10 29
  17. 17. Re:Kayo-System Co.,Ltd.2011 10 29
  18. 18. Re:Kayo-System Co.,Ltd.2011 10 29
  19. 19. Re:Kayo-System Co.,Ltd.2011 10 29
  20. 20. Re:Kayo-System Co.,Ltd.2011 10 29
  21. 21. Re:Kayo-System Co.,Ltd.2011 10 29
  22. 22. Re:Kayo-System Co.,Ltd.2011 10 29
  23. 23. Re:Kayo-System Co.,Ltd.2011 10 29
  24. 24. Re:Kayo-System Co.,Ltd.2011 10 29
  25. 25. Re:Kayo-System Co.,Ltd.2011 10 29
  26. 26. Re:Kayo-System Co.,Ltd.2011 10 29
  27. 27. Re:Kayo-System Co.,Ltd.2011 10 29
  28. 28. Re:Kayo-System Co.,Ltd.2011 10 29
  29. 29. Re:Kayo-System Co.,Ltd.2011 10 29
  30. 30. Re:Kayo-System Co.,Ltd.2011 10 29
  31. 31. Re:Kayo-System Co.,Ltd.2011 10 29
  32. 32. Re:Kayo-System Co.,Ltd.2011 10 29
  33. 33. Re:Kayo-System Co.,Ltd.2011 10 29
  34. 34. Re:Kayo-System Co.,Ltd.2011 10 29
  35. 35. Re:Kayo-System Co.,Ltd.2011 10 29
  36. 36. Re:Kayo-System Co.,Ltd.2011 10 29
  37. 37. https://dl-ssl.google.com/android/eclipse/ Re:Kayo-System Co.,Ltd.2011 10 29
  38. 38. Re:Kayo-System Co.,Ltd.2011 10 29
  39. 39. Re:Kayo-System Co.,Ltd.2011 10 29
  40. 40. Re:Kayo-System Co.,Ltd.2011 10 29
  41. 41. Re:Kayo-System Co.,Ltd.2011 10 29
  42. 42. Re:Kayo-System Co.,Ltd.2011 10 29
  43. 43. Re:Kayo-System Co.,Ltd.2011 10 29
  44. 44. Re:Kayo-System Co.,Ltd.2011 10 29
  45. 45. Re:Kayo-System Co.,Ltd.2011 10 29
  46. 46. Re:Kayo-System Co.,Ltd.2011 10 29
  47. 47. Re:Kayo-System Co.,Ltd.2011 10 29
  48. 48. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /> </LinearLayout> Re:Kayo-System Co.,Ltd.2011 10 29
  49. 49. � Re:Kayo-System Co.,Ltd.2011 10 29
  50. 50. <?xml version="1.0" encoding="utf-8"?> <resources> <string name="hello">Hello World, HelloWorldActivity!</string> <string name="app_name">HelloWorld</string> </resources> Re:Kayo-System Co.,Ltd.2011 10 29
  51. 51. package jp.ykmjuku.helloworld; public final class R { public static final class attr { } public static final class drawable { public static final int icon=0x7f020000; } public static final class layout { public static final int main=0x7f030000; } public static final class string { public static final int app_name=0x7f040001; public static final int hello=0x7f040000; } } Re:Kayo-System Co.,Ltd.2011 10 29
  52. 52. Re:Kayo-System Co.,Ltd.2011 10 29
  53. 53. <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="jp.ykmjuku.helloworld" android:versionCode="1" android:versionName="1.0"> <uses-sdk android:minSdkVersion="10" /> <application android:icon="@drawable/icon" android:label="@string/app_name"> <activity android:name=".HelloWorldActivity" android:label="@string/app_name"> <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 10 29
  54. 54. Re:Kayo-System Co.,Ltd.2011 10 29
  55. 55. Re:Kayo-System Co.,Ltd.2011 10 29
  56. 56. Re:Kayo-System Co.,Ltd.2011 10 29
  57. 57. Re:Kayo-System Co.,Ltd.2011 10 29
  58. 58. Re:Kayo-System Co.,Ltd.2011 10 29
  59. 59. Re:Kayo-System Co.,Ltd.2011 10 29
  60. 60. Re:Kayo-System Co.,Ltd.2011 10 29
  61. 61. Re:Kayo-System Co.,Ltd.2011 10 29
  62. 62. Re:Kayo-System Co.,Ltd.2011 10 29
  63. 63. Re:Kayo-System Co.,Ltd.2011 10 29
  64. 64. Re:Kayo-System Co.,Ltd.2011 10 29
  65. 65. Re:Kayo-System Co.,Ltd.2011 10 29
  66. 66. Re:Kayo-System Co.,Ltd.2011 10 29
  67. 67. 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 10 29
  68. 68. <?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 10 29
  69. 69. <?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 10 29
  70. 70. <?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 10 29
  71. 71. Re:Kayo-System Co.,Ltd.2011 10 29
  72. 72. Button button = (Button)findViewById(R.id.button1); button.setOnClickListener(new OnClickListener() { public void onClick(View v) { // } }); Re:Kayo-System Co.,Ltd.2011 10 29
  73. 73. Re:Kayo-System Co.,Ltd.2011 10 29
  74. 74. Re:Kayo-System Co.,Ltd.2011 10 29
  75. 75. Re:Kayo-System Co.,Ltd.2011 10 29
  76. 76. Re:Kayo-System Co.,Ltd.2011 10 29
  77. 77. Re:Kayo-System Co.,Ltd.2011 10 29
  78. 78. Re:Kayo-System Co.,Ltd.2011 10 29
  79. 79. Re:Kayo-System Co.,Ltd.2011 10 29
  80. 80. Re:Kayo-System Co.,Ltd.2011 10 29
  81. 81. Re:Kayo-System Co.,Ltd.2011 10 29
  82. 82. Fragment fr = new MyFragment(); FragmentTransaction tr = getSupportFragmentManager().beginTransaction(); tr.add(fr, "MyFragment"); tr.commit(); Re:Kayo-System Co.,Ltd.2011 10 29
  83. 83. Re:Kayo-System Co.,Ltd.2011 10 29
  84. 84. 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 10 29
  85. 85. Re:Kayo-System Co.,Ltd.2011 10 29
  86. 86. 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 10 29
  87. 87. Fragment f = getSupportFragmentManager(). findFragmentByTag("tag"); Re:Kayo-System Co.,Ltd.2011 10 29
  88. 88. Re:Kayo-System Co.,Ltd.2011 10 29
  89. 89. Re:Kayo-System Co.,Ltd.2011 10 29
  90. 90. Re:Kayo-System Co.,Ltd.2011 10 29
  91. 91. Re:Kayo-System Co.,Ltd.2011 10 29
  92. 92. 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 10 29
  93. 93. Re:Kayo-System Co.,Ltd.2011 10 29
  94. 94. Re:Kayo-System Co.,Ltd.2011 10 29
  95. 95. LoaderCallbacks<T> Bundle bundle = new Bundle(); getSupportLoaderManager().initLoader( R.layout.main, bundle, this); Re:Kayo-System Co.,Ltd.2011 10 29
  96. 96. Bundle bundle = new Bundle(); getSupportLoaderManager().restartLoader( R.layout.main, bundle, this); Re:Kayo-System Co.,Ltd.2011 10 29
  97. 97. @Override public void onDestroy() { super.onDestroy(); getLoaderManager().destroyLoader(R.layout.main); } Re:Kayo-System Co.,Ltd.2011 10 29
  98. 98. 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 10 29
  99. 99. class ValueItem { String name; int age; } Re:Kayo-System Co.,Ltd.2011 10 29
  100. 100. 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 10 29
  101. 101. 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 10 29
  102. 102. Re:Kayo-System Co.,Ltd.2011 10 29
  103. 103. Re:Kayo-System Co.,Ltd.2011 10 29
  104. 104. Re:Kayo-System Co.,Ltd.2011 10 29
  105. 105. Re:Kayo-System Co.,Ltd.2011 10 29
  106. 106. Re:Kayo-System Co.,Ltd.2011 10 29
  107. 107. Re:Kayo-System Co.,Ltd.2011 10 29

×