Ib qho ntawm qhov tseem ceeb ntawm lub hauv kev ua haujlwm qhib yog qhov. Qhov no ua rau nws yooj yim dua los tsim cov ntawv thov. Txhua tus tuaj yeem sau cov program rau lawv lub smartphone lossis lwm cov khoom siv ua haujlwm ntawm lub operating system no.
Hauv lub platform
Muaj ob txoj hauv kev uas koj tuaj yeem siv los tsim cov Android apps siv koj lub khoos phis tawm. Thawj zaug xav tias kev siv ntawm Android Software Development Kit (SDK). Txoj kev no ua kom yooj yim los piav qhia txog qhov chaws thiab tau siv los ua haujlwm hauv Android programming ib puag ncig. Qhov thib ob txoj kev siv App Inventor, yog Google Labs cov cuab yeej uas tseem nyob hauv beta.
Txhim kho qhov software uas yuav tsum tau muaj
Tom qab koj xam tau tawm ntawm lub chaw ib puag ncig thiab xaiv qhov twg txoj kev siv yuav tsim, koj yuav tsum rub tawm tsawg kawg ib qho ntawm cov qauv ntawm Android operating system. Koj tuaj yeem ua qhov no siv Android SDK thiab AVD Tus Thawj Tswj. Tom qab ntawd koj tuaj yeem khiav cov kab ntsig downloaded ntawm Android hauv dab noj hnub. Yog tias txhua yam ua tiav qhov tseeb, lub pob qhov rai yuav tshwm ntawm qhov screen. Thaum muaj kev ua txhaum, xa mus rau cov neeg siv phau ntawv.
Xaiv cov ntawv qhia zaub mov saum toj kawg nkaus "Qhov rai". Tom qab ntawd mus rau "Android SDK" thiab "AVD Manager" tab los qhib ib puag ncig lub cajmeem thiab tom qab ntawd xaiv cov "Muaj pob" xaiv thiab xaiv qhov chaw nyob "https://dl-ssl.google.com/android/repository/repository.xml ".
Tom qab tsim kev ceev nrawm ntawm lub chaw cia khoom, koj yuav pom cov cheebtsam muaj. Kos rau qhov koj xav tau los nruab, tsis xyuas txhua lwm yam. Lub pob tseem ceeb tshaj plaws rau kev txhim kho yog qhov tseeb ntawm lub platform hauv. Koj yuav xav tau cov qauv qub yog tias koj npaj yuav tso koj daim ntawv thov rau cov neeg siv ntau. Txij ntawm no mus, koj kuj tuaj yeem tshem Google API thiab USB tsav lub hauv paus. Yog tias koj xav tau ib qho ntawm cov tom qab no, koj tuaj yeem ib txwm rov mus thiab nruab lawv.
Nyem Rau Lub Pob Xaiv Xaiv thiab tos rau lub Cheebtsam rub tawm. Tshawb xyuas thiab ntxiv cov khoom siv tshiab raws li xav tau. Lawv yuav muab ntxiv rau hauv cov ntawv uas twb muaj lawm hauv thiab SDK.
Lub tsev thiab ua raws koj lub Android app
Tam sim no koj muaj tag nrho cov software thiab koj tau tsim lub virtual ntaus ntawv hauv Android SDK thiab AVD tus thawj tswj hwm. Tam sim no koj yuav tsum tsim qhov project tshiab. Hauv dab noj hnub IDE, xaiv ua ntaub ntawv> Tshiab> Qhov project. Hauv Tus Neeg Tshaj Lij Tshiab Project, xaiv "Android" nplaub tshev thiab xaiv qhov "Android Project" kev xaiv. Nyem Next. Tam sim no koj muaj qhov rais tshiab rau koj qhov kev zov me nyuam.
Tom qab ntawv los tsim cov ntawv thov code. Khaws koj cov kev hloov pauv. Tam sim no koj tuaj yeem sim coj nws nws rau Android. Hauv dab noj hnub, xaiv Khiav, ces Android Daim Ntawv Thov. Nws yuav siv ob peb feeb los pib. Tom qab rub tawm, koj daim ntawv thov yuav tsum pib cia thiab koj yuav pom grey header nrog lub npe ntawm daim ntawv thov hauv nws. Hauv qab no, koj cov ntawv xaiv raug tso tawm kom pom.
Nias lub khawm Tsev hauv lub emulator rov qab mus rau lub hauv tsev screen. Nyem lub pob ntawv thov kom pom cov npe ntawm cov ntawv thov. Ntawm lawv koj yuav pom koj cov kev pab cuam. Txo rau lub npe mus pib koj daim ntawv thov.