日本androidの会 中国支部資料

93
Re:Kayo-System Co.,Ltd. Twitter @yokmama Now Loading. Please Wait ... 最新Androidアプリ開発の心得 夜子まま 日本Androidの会神戸支部 http://www.slideshare.net/yokmama/android-15186487 尾道にて 121116日金曜日

Upload: masafumi-terazono

Post on 15-Jan-2015

3.072 views

Category:

Technology


1 download

DESCRIPTION

 

TRANSCRIPT

  • 1. Now Loading. Please Wait ... Twitter @yokmama Android Android http://www.slideshare.net/yokmama/android-15186487Re:Kayo-System Co.,Ltd.121116

2. Re:Kayo-System AndroidUnityNFCLab Re:Kayo-System Co.,Ltd.121116 3. 10 Android Android Android SDK 3 HTML5Android 10Android 2 AndroidSDK 4/3/2 Re:Kayo-System Co.,Ltd.121116 4. Re:Kayo-System Co.,Ltd.121116 5. Re:Kayo-System Co.,Ltd.121116 6. Skip Memo Re:Kayo-System Co.,Ltd.121116 7. JUST PLAYER http://justplayer-dev.blogspot.jp/ Re:Kayo-System Co.,Ltd.121116 8. UI UI Re:Kayo-System Co.,Ltd.121116 9. UI Re:Kayo-System Co.,Ltd.121116 10. UI Activity AndroidManifest.xml Re:Kayo-System Co.,Ltd.121116 11. Re:Kayo-System Co.,Ltd.121116 12. Activity Re:Kayo-System Co.,Ltd.121116 13. public class MainActivity extends Activity implements OnClickListener { public static final String CNF_PASS_LOOP = "chkPassLoop"; public static final String CNF_WIFI_ONLY = "chkWIFIOnly"; private final String KEY_CONFIG_HISTORY = "KEY_CONFIG_HISTORY"; private final int MAX_INSTANCE = 5; private private private SharedPreferences mPref; EditText mEditHost; EditText mEditUsername; private EditText mEditPassword; private CheckBox mChkPassLoop; private CheckBox mChkWIFIOnly; private Spinner mSpinner; private Button mBtnConnect; private void btnStateCheck() { mBtnConnect.setText(R.string.txt_connect); Button btnAllSync = (Button) findViewById(R.id.btnAllSync); Button btnMediaSync = (Button) findViewById(R.id.btnMediaSync); Button btnVideosSync = (Button) findViewById(R.id.btnVideosSync); btnMediaSync.setEnabled(false); btnVideosSync.setEnabled(false); btnAllSync.setEnabled(false); } private void btnStateOk() { mBtnConnect.setText(R.string.txt_connected); Button btnAllSync = (Button) findViewById(R.id.btnAllSync); Button btnMediaSync = (Button) findViewById(R.id.btnMediaSync); Button btnVideosSync = (Button) findViewById(R.id.btnVideosSync); btnMediaSync.setEnabled(true); btnVideosSync.setEnabled(true); btnAllSync.setEnabled(true); } }Re:Kayo-System Co.,Ltd.121116 14. AndroidManifest.xml AndroidManifest.xml Re:Kayo-System Co.,Ltd.121116 15. http://developer.android.com/about/dashboards/index.html Re:Kayo-System Co.,Ltd.121116 16. layout-xlargelayout-land layout-hdpi layout-large layout-xlarge layout-v11Re:Kayo-System Co.,Ltd.121116 17. Re:Kayo-System Co.,Ltd.121116 18. UI Re:Kayo-System Co.,Ltd.121116 19. FragmentRe:Kayo-System Co.,Ltd.121116 20. Re:Kayo-System Co.,Ltd.121116 21. Activity Re:Kayo-System Co.,Ltd.121116 22. Activity Re:Kayo-System Co.,Ltd.121116 23. ActivityFragmentManager Fragment FragmentTransactionRe:Kayo-System Co.,Ltd.121116 24. ActivityActivityActivity BackFragmentBackActivity Re:Kayo-System Co.,Ltd.121116 25. addToBackStack FragmentTransaction public abstract FragmentTransaction addToBackStack (String name) name null addToBackStackFragmentFragmentManager Re:Kayo-System Co.,Ltd.121116 26. Fragment FragmentTransaction StackStackStack FragmentManager Re:Kayo-System Co.,Ltd.121116 27. FragmentTransaction t = getFragmentManager().beginTransaction();t.add(R.id.framelayout1, new Fragment1(), null);t.addToBackStack("SUB_VIEW");t.commit(); Fragment Re:Kayo-System Co.,Ltd.121116 28. popBackStack FragmentManager public abstract void popBackStack () FragmentBackpopBackStackRe:Kayo-System Co.,Ltd.121116 29. Stack Stack Stack FragmentManager Re:Kayo-System Co.,Ltd.121116 30. FragmentManager public abstract void popBackStack (String name, int ags) name null POP_BACK_STACK_INCLUSIVE ags 0 POP_BACK_STACK_INCLUSIVE. Fragment popBackStack Re:Kayo-System Co.,Ltd.121116 31. PracticeOK Re:Kayo-System Co.,Ltd.121116 32. Fragment Activity Re:Kayo-System Co.,Ltd.121116 33. FragmentTransaction t = getFragmentManager().beginTransaction(); t.add(R.id.framelayout1, new Fragment1(), null); t.addToBackStack(null); t.commit();Re:Kayo-System Co.,Ltd.121116 34. Re:Kayo-System Co.,Ltd.121116 35. add! replace! remove! Re:Kayo-System Co.,Ltd.121116 36. add addFragment Fragment Fragment Fragment Re:Kayo-System Co.,Ltd.121116 37. FragmentTransaction public abstract FragmentTransaction add (int containerViewId, Fragment fragment, String tag) containerViewId ID ViewGroup fragment tag null FragmentTransaction Re:Kayo-System Co.,Ltd.121116 38. replace replace FragmentFragment Fragment Re:Kayo-System Co.,Ltd.121116 39. FragmentTransaction public abstract FragmentTransaction replace (int containerViewId, Fragment fragment, String tag) containerViewId ID fragment tag null FragmentTransaction Re:Kayo-System Co.,Ltd.121116 40. remove removeFragment Fragment Fragment Re:Kayo-System Co.,Ltd.121116 41. FragmentTransaction public abstract FragmentTransaction remove (Fragment fragment) fragment FragmentTransactionRe:Kayo-System Co.,Ltd.121116 42. addreplacereplace Fragment Fragment Fragment Re:Kayo-System Co.,Ltd.121116 43. Fragment FragmentManager Fragment Re:Kayo-System Co.,Ltd.121116 44. add PAUSE INITIDLE DESTROYreplace Re:Kayo-System Co.,Ltd.121116 45. replace OnCreate addRe:Kayo-System Co.,Ltd.121116 46. Re:Kayo-System Co.,Ltd.121116 47. addreplace Fragment1 Fragment Re:Kayo-System Co.,Ltd.121116 48. replaceRe:Kayo-System Co.,Ltd.121116 49. addRe:Kayo-System Co.,Ltd.121116 50. addRe:Kayo-System Co.,Ltd.121116 51. Re:Kayo-System Co.,Ltd.121116 52. add Re:Kayo-System Co.,Ltd.121116 53. hide Fragment current = getFragmentManager().findFragmentById(R.id.framelayout1); FragmentTransaction t = getFragmentManager().beginTransaction(); t.add(R.id.framelayout1, new Fragment1(), null); t.addToBackStack(null); t.hide(current); t.commit();Re:Kayo-System Co.,Ltd.121116 54. addRe:Kayo-System Co.,Ltd.121116 55. Re:Kayo-System Co.,Ltd.121116 56. Re:Kayo-System Co.,Ltd.121116 57. Re:Kayo-System Co.,Ltd.121116 58. Android Re:Kayo-System Co.,Ltd.121116 59. FragmentManagerFragment Re:Kayo-System Co.,Ltd.121116 60. Re:Kayo-System Co.,Ltd.121116 61. Re:Kayo-System Co.,Ltd.121116 62. @Override public void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);setContentView(R.layout.main); }Re:Kayo-System Co.,Ltd.121116 63. Re:Kayo-System Co.,Ltd.121116 64. Re:Kayo-System Co.,Ltd.121116 65. Re:Kayo-System Co.,Ltd.121116 66. hide@Overridepublic void onActivityCreated(Bundle savedInstanceState) {super.onActivityCreated(savedInstanceState);if (savedInstanceState != null) {boolean isHiddin = savedInstanceState.getBoolean("isHidden");if (isHiddin) {FragmentTransaction t = getFragmentManager().beginTransaction();t.hide(this);t.commit();}}}@Overridepublic void onSaveInstanceState(Bundle outState) {// TODO Auto-generated method stubsuper.onSaveInstanceState(outState);outState.putBoolean("isHidden", isHidden());} Re:Kayo-System Co.,Ltd.121116 67. Re:Kayo-System Co.,Ltd.121116 68. Re:Kayo-System Co.,Ltd.121116 69. JavaActivityActivity Fragment Re:Kayo-System Co.,Ltd.121116 70. AndroidManifest.xmlActivity Re:Kayo-System Co.,Ltd.121116 71. Re:Kayo-System Co.,Ltd.121116 72. values valuesRe:Kayo-System Co.,Ltd.121116 73. normal small android:text="TextView" /> android:text="TextView" /> Re:Kayo-System Co.,Ltd.121116 74. layout-hdpilayout-nger layout-mdpilayout-land layout-ldpilayout-portrait layout-small layout-small layou-largelayou-xhdpi layout-xlargelayout-v11 Re:Kayo-System Co.,Ltd.121116 75. values values-ldpi5px values-mdpi10px values-hdpi12px values-xdpi14px Re:Kayo-System Co.,Ltd.121116 76. layout-hdpi layout-mdpi layout-ldpilayout layout-small layout-land layout-landlayout-xlarge layout-smal-land layout-xlarge-land layou-large layout-xlargeRe:Kayo-System Co.,Ltd.121116 77. values valuesstyle Re:Kayo-System Co.,Ltd.121116 78. style styleView Style Re:Kayo-System Co.,Ltd.121116 79. TextView Re:Kayo-System Co.,Ltd.121116 80. Re:Kayo-System Co.,Ltd.121116 81. attrstyle attr value attr value style attr valueRe:Kayo-System Co.,Ltd.121116 82. attr format: "string", "integer", "float", "boolean", "color","dimension", "reference"Style reference Re:Kayo-System Co.,Ltd.121116 83. stylestyleattr Re:Kayo-System Co.,Ltd.121116 84. Fragmentvaluesstyle Android Re:Kayo-System Co.,Ltd.121116 85. Drawable Drawable Re:Kayo-System Co.,Ltd.121116 86. xhdpi hdpi Re:Kayo-System Co.,Ltd.121116 87. Re:Kayo-System Co.,Ltd.121116 88. FragmentRe:Kayo-System Co.,Ltd.121116 89. values Re:Kayo-System Co.,Ltd.121116 90. StyleRe:Kayo-System Co.,Ltd.121116 91. APK Re:Kayo-System Co.,Ltd.121116 92. Re:Kayo-System Co.,Ltd.121116 93. Android ACE URL https://plus.google.com/ 117636937254190602510/posts Re:Kayo-System Co.,Ltd.121116