android program learning 1.1_20170414

1. install

? ? ? stp1: download JDK、 SDK 、 AndroidStudio

? ?JDK= java development kit ?( AS base on java environment)

? ?SDK=xxxx kit ( use for android program kit)

? ?AndroidStudio

? ? ?stp2: first install JDK

? ? ? ? ? ? ? ?second install AS

? ? ? ? ? ? ? ?Third with AS , SDK manager , choose SDK with option

? ? ? stp3: run!!

2. learn

? ? ? 2.1. create project : ( android system construction the same as iOS , ?present layer, ?application layer, resource layer ( with media, pics, content), basic layer ( with driver and sth.)

? ? ? 2.2. activity : ?every thing you view in android program is a activity.

? ? ? 2.3. create and use view/ editText / ?step: create layout file, ?inside create main_activity.xml ( all the?

position and character can be put into here ) => create activity.java ( you can edit your java program to give some fuction or method to make the unit in xml to be “ fun!” => register all your add, especially the?

activity in your manifest.xml with “<xx> </> “ ( some thing like that ) , after that you can running your program in simulator.

3.intent

? ? ? ? ? ?intent is a kind of method help you to transfer, shift between 2 or several activity.

? ? ? ? ? ?For example: If you want to make a register page.?

? ? ? ? ? ?U entered the username and the password. U push the button, and shift to the 2nd page.

? ? ? ? ? ?you want to keep the username & password from 1st page to 2nd page. you use intent.

4. About Java & class.

Java alway use “.xxx” (class) to act an action to an object.?

for example. ? ? ? ? ?button.onClickListener() ? ?=> we give button object on action, to listen it if it is clicked.

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容