Kupanga nokha mafoni anu a Android payekha si kophweka, ndithudi, ngati simugwiritsa ntchito mautumiki osiyanasiyana pa intaneti omwe amapereka kupanga chinthu china chokonzekera, muyenera kulipira ndalama za "chitonthozo" chotere kapena kulandira pulogalamu yanu. Adzakhala ndi malonda omwe adalowa.
Choncho, ndibwino kuti mukhale ndi nthawi yaying'ono, khama ndikupanga anu Android application pogwiritsira ntchito mapulogalamu apadera. Tiyeni tiyesere kuzichita pang'onopang'ono, pogwiritsira ntchito limodzi la mapulogalamu apamwamba kwambiri omwe alipo panopa polemba zolemba mafoni a Android Studio.
Sakani Android Studio
Kupanga mafoni apulogalamu pogwiritsa ntchito Android Studio
- Koperani malo osungirako mapulogalamu kuchokera pa tsamba lovomerezeka ndikuliyika pa PC yanu. Ngati mulibe JDK yoikidwa, muyenera kuikanso. Sungani makonzedwe apakompyuta
- Yambitsani Android Studio
- Sankhani "Yambani polojekiti yatsopano ya Android Studio" kuti mupange zatsopano.
- Mu "Sintha mawindo anu atsopano", yikani dzina la polojekiti yomwe mukufuna (Dzina la ntchito)
- Dinani "Zotsatira"
- Pawindo "Sankhani zinthu zomwe pulogalamu yanu idzayendetsa" yikani nsanja yomwe mudzalembere. Dinani Phone ndi Tablet. Kenaka sankhani kusintha kwa SDK (izi zikutanthauza kuti pulogalamuyi idzagwira ntchito pafoni monga mafoni ndi mapiritsi, ngati ali ndi ma Android, mofanana ndi Minimun SDK kapena tsamba lotsatira). Mwachitsanzo, sankhani 4.0.3 ya IceCreamSandwich
- Dinani "Zotsatira"
- Mu "Wonjezerani Ntchito ku Mobile" gawo, sankhani Zochita zanuzo, zomwe zikuyimira ndi kalasi ya dzina lomwelo ndi kulumikiza monga fayilo ya XML. Ichi ndi mtundu wa template wokhala ndi zilembo zapamwamba zogwiritsa ntchito zochitika. Sankhani Ntchito Yopanda, ngati ndi yoyenera pa ntchito yoyesera yoyamba.
- Dinani "Zotsatira"
- Ndiyeno batani "Chotsani"
- Yembekezerani ku Android Studio kuti mupange polojekitiyi ndi zomangamanga zake zonse.
Tiyenera kuzindikira kuti choyamba muyenera kudziwa zomwe zili m'zinthu zowonjezera malemba ndi Gradle Scripts, kotero ziri ndi mafayilo ofunikira kwambiri a ntchito yanu (zolemba polojekiti, malemba olembedwa, makonzedwe). Samalani kwambiri pa foda yamapulogalamu. Chinthu chofunika kwambiri chomwe chili ndi fayilo yowonetsera (imatchula ntchito zonse zofunikirako ndi ufulu wopezeka), ndi ma java (mafayilo a m'kalasi), res (mafayilo achinsinsi).
- Gwiritsani ntchito chipangizocho kuti muchotse kapena kuti chikhale choyimira
- Dinani batani "Kuthamanga" kuti muyambe kugwiritsa ntchito. N'zotheka kuchita izi popanda kulemba mzere umodzi wa ndondomeko, chifukwa Ntchito yowonjezera kale ili ndi code kuti iwonetsere uthenga wakuti "Moni, dziko" ku chipangizocho.
Onaninso: mapulogalamu opanga ntchito Android
Umu ndi m'mene mungakhalire mafoni oyambirira a foni. Kuwonjezera apo, pophunzira zosiyana Zochita ndi maselo a zinthu zofunikira mu Android Studio, mukhoza kulemba pulogalamu yamtundu uliwonse.