ʻOku mau fakaleleiʻi hoʻomou fakatokangaʻi! ʻOku fakapapauʻi mai ʻa e ngaue lelei mo ONMA Sikauti Android app.
Fetuʻutaki
Kapau ko ha tokotaha faʻu Android koe, mahalo te ke fie kamata ʻaki haʻo ako fekauʻaki mo Kotlin. Ko ha lea fakafonua ʻeni ʻokú ne fakaʻatā koe ke ke langa ha ngaahi polokalama ʻoku ʻi ai ha kouti pē ʻe taha. Ka ʻoku mahuʻinga ke ʻiloʻi ha ngaahi tefitoʻi meʻa mahuʻinga kimuʻa pea ke toki kamata. ʻE fakamatalaʻi ʻe he fakamatala ko ʻení ʻa e ngaahi tefitoʻi meʻa mahuʻinga ʻo Kotlin mo hono ngaahi leleí. Ke kamata ʻaki e, ʻoku mahuʻinga ke ʻiloʻi pe ko e ha ʻa Kotlin mo e ʻuhinga ʻoku fie maʻu ai ki he fakalakalaka ʻa e Android app.
Ko ha lea fakapolokalama fakalūkufua mālohi ʻa Siava, faʻu ʻe he Microsystems ʻo e laʻaá ʻi he 1995, pea ko ʻeni naʻe maʻu ia ʻe Palofita pea. ʻOku ne poupouʻi ʻa e ngaahi polokalama ʻoku fakataumuʻa ki he meʻa mo poupouʻi ʻa e faʻahinga fakamatala motuʻa. ʻIkai hange ko c + +, ʻOku faʻu maʻu pē ʻa e kouti Java ʻi he ngaahi kalasí mo e ngaahi meʻa. Ko e siava ko e lea ia ʻo e fili ki he Android app development, pea ʻoku faingofua ke ako ʻo aʻu pē ki he kau faipolokalamá ʻaki ʻa e puipuituʻa angamahení. Ko ha fakahinohino vave ʻeni ki hono fakaʻaongaʻi ʻo e Siava ʻi he Android app development.
Ko e taha ʻo e ngaahi ʻuhinga ʻoku saiʻia ange ai ʻa e tokolahi developers ʻi siava ki he Android app fakalakalaka ko e kolo lahi taha ia, pea ko e foʻi moʻoni ko ia ʻoku lele lelei ia ʻi ha meimei faʻahinga fakavaʻe. ʻOku ʻi ai ha ngaahi laipeli mo e ngaahi meʻangaue lahi ʻoku lava ke maʻu maʻa e developers Siava. ʻOku tokoni ʻa e ngaahi meʻangaue mo e ngaahi ʻatakai ko ʻeni ke ʻakahi ʻa e founga fakalakalaka pea kamata hono tohi ʻo e kouti ʻoku ʻikai lava ʻo ngaue ʻaki. ʻIkai ngata ai, ʻOku meimei tatau pe ʻa e syntax ʻa Siava mo e lea faka-Pilitania, ʻa ia ʻoku ne ʻai ke faingofua hono lau mo mahino ki he kaunga developers.
Ko e tefitoʻi faikehekehe ʻi he vahaʻa ʻo Siava mo Kotlin ki he fakalakalaka ʻo e Android app ʻoku ʻi he ngaahi lea fakafonua fakapolokalama ʻoku fakaʻaongaʻi ke tohi ʻaki ʻa e apps. Neongo ʻoku fakatou poupouʻi ʻa e ongo lea fakafonua ʻe he Android Studio mo e Google, Kuo taʻu lahi ʻa e hoko ʻa Siava ko e lea manakoa mo poupouʻi taha. Makehe mei heni, Ko Siava ko e taha ia ʻo e ngaahi lea fakafonua fakapolokalama manakoa taha ʻi he funga ʻo e mamani. Kapau ko hoʻo kamata pe hoʻo ngaue maʻuʻanga moʻui ʻi he fakalakalaka, ʻOku ngalingali ko e fili lahi taha ʻa Siava. Ko e lea fakafonua tukufakaholo mo poupouʻi lelei taha ia ki he Android app development, ʻOku maʻu ʻe Siava ʻa e taukei mo e poupou lahi taha.
Naʻe fakafeʻiloaki ʻa Kotlin ki he mamani fakatupulaki ʻe he timi JetBrains. Naʻe ʻuluaki, Naʻe fakataumuʻa ʻa Kotlin ke tokoni kia Siava developers tohi ha ngaahi polokalama lelei mo lelei ange. Neongo ʻene foʻou, ʻOku toe poupouʻi foki ʻe Kotlin ʻa e polokalama tuʻufonua pea ʻe lava ke fakatahatahaʻi ia ʻi JavaScript. Kotlin ko ha fili maʻongoʻonga ia ki he fakalakalaka ʻa e Android app, ka ʻoku mahuʻinga ke fakatokangaʻi ʻoku kehe ʻa e Pikoʻanga ʻo e ako ʻa Kotlin meia Siava.
Fakaʻosi, ʻOku ʻi ai ha ʻatakai lahi ʻo Siava, ʻa ia naʻe ohi ʻe he Google. ʻOku faʻa mamafa mo tuai ʻa e polokalama Kotlin ʻi he ngaahi meʻangaue ʻoku maʻulalo ange. ʻIkai ngata ai, ʻOku toe fakahehema foki ʻa e apps Siava ke toe faingataʻa ange, ʻa ia ʻe lava ke fakaiku ki ha ngaahi fehalaaki mo ha fanga kiʻi ʻinisekite lahi ange. Kapau ko ha kau kamata foʻou koe ʻi he Android app development, Ko e fili lelei taha ʻa Siava. ʻOku maʻu ʻe he lea fakafonua ʻa e fakavaʻe oo lelei taha, pea ʻe ongoʻi ʻe Kotlin ʻokú ke hoko ko ha natula fika ua kiate koe hili ha ngaahi taʻu siʻi.
Kapau kuó ke ʻosi ʻiloʻi lelei ʻa e Java, mahalo te ke fie ako C# ki he fakalakalaka ʻa e Android app. Neongo ko ha lea manakoa ʻa Siava, C # ʻoku siʻisiʻi ange hono totongi ke ako pea ʻoku ʻi ai ha ngaahi laipeli tatau kia Siava. Ko hono faikehekehé he ko e C# ʻoku siʻisiʻi ange ʻa e taimi ke ako aí, ʻa ia ko hono ʻuhinga te ke lava ʻo tuʻu vave hake ʻo vave. Kapau ʻokú ke fakakaukau ke liliu ki he C #, ʻoku lahi ha ngaahi meʻa ʻoku totonu ke ke ʻuluaki ʻilo. ʻOku hiki atu ʻi lalo ʻa e ngaahi lelei ʻo e ongo lea fakafonuá fakatouʻosi.
ʻUluaki, ako ki he tefitoʻi faʻunga ʻo e C #. Hangē ko ʻení, ʻoku totonu ke mahino kiate koe ʻa e fakakaukau ʻo e “Taumuʻá” – ngaahi meʻa ʻokú ne fakafofongaʻi ha ngaahi ngāue pau. Hangē ko ʻení, ʻi he taimi ʻoku lomiʻi ai ʻe ha tokotaha ngāue ʻi ha tuʻuaki, ʻe faʻu ʻe he app ha taumuʻa ʻoku ne fakafofongaʻi ʻa e ngaue ko ia. Hokó, ako ki he langa ʻo e lea fakafonua Makehé, ʻa ia ko ha ngaahi meʻa ʻoku ʻi ai hono ngaahi kií mo e ngaahi tuʻunga ʻulungāanga mahuʻ. ʻOku fakaʻatā koe ʻe he ngaahi constructs ko ʻení ke ke seivi ʻa e fakamatalá pea fakafaingofuaʻi hono kumi ʻe hoʻo kau fakaʻaongaʻí mei he sitepu ʻe taha ki he sitepu hono hokó.
ʻI he taimi ʻoku faʻu ai ʻa e Android apps, kuo pau ke ke ʻiloʻi ʻa e ngaahi tefitoʻi meʻa mahuʻinga ʻo e IDE. ʻOku ʻomi ʻe he IDE ha faingamalie ki he ngaahi maʻuʻanga tokoni mo e ngaahi meʻangaue kotoa pe te ke fie maʻu ke faʻu ʻaki ha tohi kole ʻoku ola lelei. ʻOku kau ai ʻa e pule ʻo e failé, ko e dialer, ko e tokotaha ʻoku sio ki ai e ʻīmi, ʻa e falekoloa vaʻinga, ngaahi fakaʻilonga tohí, loka, pule ʻekitivitií, mo ha ngaahi meʻa lahi ange. ʻOku ʻikai fie maʻu ia ke ke fakamoleki ha taimi lahi ke ako e FAKAKAUKAU. Ko hoʻo ako pe ia, te ke ʻi ho hala ki hono tohi ʻo e ngaahi polokalama ʻoku lele ʻi he meʻangaue.
Kapau ʻoku ke palani ke hiki ha tokotaha tuʻufonua ʻo e Android app, C# ko e hala ia ke fou aí. ʻOku hanga ʻe he lea fakafonua C # ʻo ʻai ke faingofua ange hono tohi ʻo e kouti pea ʻoku fenapasi ia mo e faʻunga ʻo e Microsoft.NET. Ko e Xamarin ko ha fakavaʻe fakaonopooni ia ʻoku ne ʻomi developers ʻa e faingamalie ke vakaiʻi kakato ʻa e Android SDK. ʻOku toe fakaʻaongaʻi foki ʻa e lea fakafonua ko ʻení ki he ngaahi vaʻinga desktop, apps ki he desktop, polokalama fakakomipiuta ʻa e kautaha, mo hono fakaʻaongaʻi ʻo e akó.
Neongo ʻoku lahi e ngaahi fotunga mo e ngaahi meʻa ke fili mei ai ʻa e Android, ʻoku mahuʻinga ke fakapapauʻi ʻoku fenapasi hoʻo app mo e ngaahi motolo kautaha fotunga kehekehe mo e founga ngaue. ʻI he fakalakalaka ʻa e Android app, te ke lava ʻo faʻu ha mobile applications ʻoku fenāpasi mo e ngaahi nāunau ʻoku manakoa tahá. Samsung, HTC, pea ʻoku ʻomi kotoa ʻe LG ha polokalama fakakomipiuta makehe, ʻai ke fenapasi hoʻo app mo e ngaahi founga ngaue kehekehe ko ʻeni. Pea koeʻuhi ʻoku fakautuutu e fakasosiale ʻa e kau fakaʻaongaʻi ʻo e Android, ʻoku hanga ʻe he founga ko ʻení ʻo ʻai ke faingofua ange hono vahevahe e meʻa ʻoku mahuʻinga kiate kinautolú.
Kapau ʻokú ke fie hiki ha Android app, te ke lava ʻo taʻofi ʻa e lea fakapolokalama Python. ʻOku fakapapauʻi hono faingofua mo e brevity ke tohoakiʻi mai developers. Makehe mei he faingofua ke ako, ʻOku fakaʻaongaʻi lahi ʻa e Python ʻi ha domains kehekehe. Makehe mei heni, ko ha fili lelei foki ia ki he fakalakalaka ʻa e Android app ʻi heʻene haʻu mo ha ngaahi laipeli lahi ʻoku ʻaonga ki hono fakatupulaki ʻo e mobile Apps. Tau ako lahi ange fekauʻaki mo e ngaahi lelei ʻo e Python ki he Android app development.
Ko e ʻuluaki faingamalie mo muʻomuʻa taha ʻo e Python ki he fakalakalaka ʻo e Android app ko ʻene malava ko ia ke faʻu ha ngaahi polokalama multipurpose. ʻOku hanga ʻe heʻene malava ko ia ke matuʻuaki ha fakamatala lahi ʻo ʻai ke hoko ia ko ha fili lelei ki he ngaue ni. ʻIkai ngata ai, ʻe lava ke fakaʻaongaʻi fakataha ia mo e ngaahi lea fakafonua ke faʻu ha ngaahi polokalama fakalakalaka ange. Naʻe fokotuʻu ʻa Python ʻi he taʻu ʻe tolungofulu kuo hili ʻe Guido Van Rossum. Talu mei ai, kuo tupulaki ia ʻi he manakoá. Te ke lava ʻo maʻu ha ngaahi maʻuʻanga tokoni lahi mo ha ngaahi fakahinohino ʻi he Python ki he Android app development.
Makehe mei hono versatility, ʻOku faingofua ange hono fakaʻaongaʻi ʻo e Python ʻi he ngaahi lea fakafonua kehe. Te ne lava ʻo lele ʻi ha ngaahi platforms kehekehe, ʻo hoko ia ko e fili lelei taha ki he fakalakalaka ʻo e polokalama toʻotoʻo. Ko ha lelei ʻe taha ʻo hono fakaʻaongaʻi ʻo e Python ki he fakalakalaka ʻo e app toʻotoʻo ko hono fuʻu kolo lahi. ʻOku tauʻataina ke fakaʻaongaʻi ki he ngaahi taumuʻa ʻo e pisinisi. Ko ha meʻangaue lelei ia ki hono tokangaʻi ʻo e fakamatala mo hono fakatupulaki ʻo e ngaahi polokalama fakapisinisi. Ko ia, laka atu ʻo vakaiʻi ʻa e Python ki he Android app development. Te ke fiefia naʻa ke fai ia!
Ko ha toe lelei ʻe taha ʻo hono fakaʻaongaʻi ʻo e Python ki he Android app fakalakalaka ko ʻene fakaʻata developers ke faʻu ha ngaahi polokalama lahi ange ʻoku siʻisiʻi ange ai ʻa e fanga kiʻi ʻinisekite. ʻE lava foki ke Developers ʻamanaki ke sio vave ange ki hono liliu koeʻuhi he ʻoku faingofua ange ke ako mo fakaʻaongaʻi. ʻIkai ngata ai, ʻe lava foki ʻe he developers ʻo fakahoko ʻa e ngaahi fakakaukau ki hono fokotuʻutuʻu ʻaki ha ngaahi laine siʻisiʻi ange ʻo e kouti. ʻOku ʻikai fie maʻu ʻe he Python ha ngaahi fakamatala kehekehe, ʻo hoko ia ko ha fili fakaʻofoʻofa ki he fakalakalaka ʻa e iOS mo e Android app. Te ke ʻi ho hala ke ikunaʻi ha ngaahi feituʻu foʻou ʻi he mamani fakaʻilekitulonika mo e tokoni ʻa Python ki he Android app fakalakalaka.
Neongo ʻa e ngaahi lelei lahi ʻo e Python ki he fakalakalaka ʻa e Android app, ʻoku ʻi ai ha fanga kiʻi drawbacks. Firstly, ʻe lava pe ke faingataʻa ke fakatupulaki mo Python, pea mo e Smart IDEs ʻoku haʻu fakataha mo ia he ʻikai ke ne lava ʻo matuʻuaki e faingataʻa ʻa Python. ʻOku toe faingataʻa ange foki ke debug ʻa e Python pea ʻoku fie maʻu ha sivi lahi ange ʻi he ngaahi lea fakafonua fakapolokalama kehe. Pea ʻoku ʻikai ko developers pe ʻoku totonu ke ne fakaʻaongaʻi ʻa e Python ki he Android app development. ʻOku ne toe fakaʻata foki developers ke langa ha ngaahi polokalama ʻoku ne fakaʻaongaʻi ʻa hono ʻanalaiso ʻo e fakamatala fakalakalaka.
Mahalo ʻe fie maʻu ʻe Programmers kumi ha lea fakafonua foʻou ki he fakalakalaka ʻa e Android app ke ʻahiʻahi Kotlin. Ko ha lea fakafonua ia ʻoku ava ʻoku ne ʻomi ha ngaahi fotunga lahi pea ʻoku fenapasi mo Siava. ʻOku fenāpasi foki ia mo e desktop mo e server applications. ʻOku vave hono maʻu ʻe Kotlin ʻa e manakoa. Kuo fai ʻe JetStream ha ngaue lahi ki heʻene fakalakalaka pea kuo ne faʻu ha ngaahi meʻangaue ki he iOS developers ke fakaului Kotlin kouti ki he kouti anga fakakaumeʻa ʻa e Apple. ʻOku fakaofo hono ola. ʻE hokohoko atu e tupulaki ʻa Kotlin ʻi he malohi mo e manakoa, ʻi he kamata fakaʻaongaʻi ia ʻe ha kakai tokolahi ange ki he Android app Development.
Ko e taha ʻo e ngaahi fotunga manakoa taha ʻo Kotlin ko ʻene malava ko ia ke faʻu ha ngaahi meʻa. ʻI hono fakaha kinautolu ʻi he kouti, ʻe lava ke fakaʻehiʻehi ʻa e kau faʻu kakaá mei hono hiki tatau ʻo e kouti. ʻOku toe fakaʻofoʻofa foki ʻa e lea fakafonua ko ʻeni ki hono faʻu reusable ʻo e ʻuhinga mo fakalahi ʻa e NGAAHI APIs lolotonga. ʻOku ʻi ai foki mo ha ngaahi fotunga ʻaonga lahi ki he developers ke takiekina ʻaki ʻenau ola mo e tuʻunga lelei ʻo e kouti. Ko ha niʻihi ʻeni ʻo e ngaahi lelei ʻo hono fakaʻaongaʻi ʻo e Kotlin ki he Android app development.
ʻUluaki, ʻOku ʻi Kotlin ha fakamatala ʻoku fufuuʻi ai e tefitoʻi moʻoni ʻoku ne fakaʻata developers ke fakaʻaongaʻi ha syntax nounou ange ʻi he taimi ʻoku faʻu ai ha ngaahi meʻa kehekehe. ʻOku fakaʻata koe ʻe Kotlin ke ke fakaha ʻa e ngaahi koloa mutable mo filelevel. ʻIkai hangē ko Siava, ʻOku fakaʻata koe ʻe Kotlin ke ke fakaʻaongaʻi ha modifiers ʻe tolu: fakafoʻituitui, maluʻi, pea kuo ʻosi seti. ʻOku ʻikai ʻuhingamālie ʻa e maluʻí ki he ngaahi fakamatala ki he plevel, koeʻuhí ke ke lava ʻo ngāueʻaki ʻa e tuʻunga ne ʻuluaki seti ki he polokalamá. ʻOku ʻuhinga lelei hono fakaʻaongaʻi fakafoʻituituí ʻi ha ngaahi tūkunga pau, ka ko ha tōʻonga kovi ia ʻi he ngaahi meʻa lahi.
Makehe mei hono faʻahinga polokalamá, ʻOku toe poupouʻi foki ʻe Kotlin ʻa e faʻahinga fakamatala algebraic. Te ke lava ʻo fakahaaʻi ha ngaahi meʻa ʻoku covariant pe ʻikai tuʻu maʻu. ʻOku tatau ʻa e noa pe taha mo e meʻa ʻoku ʻikai ʻaonga. Kapau ʻoku ʻi ai haʻo mahuʻinga ʻoku ʻikai tuʻu maʻu, ko ha fili lelei ʻa hono fakaʻaongaʻi ʻo e faikehekehe. Ko ha fili lelei foki ia ki he faʻahinga ʻoku ʻikai ko e kau pule pe consumers. Ko ha niʻihi pe ʻeni ʻo e ngaahi lelei ʻo e Kotlin ki he Android app development.
Makehe mei he ngaahi meʻa naʻe fakatonuʻi, Kotlin ki he fakalakalaka ʻo e Android app ʻoku ne fakaʻata koe ke ke fakaʻaongaʻi ʻa e tokotaha ʻoku ʻaʻana ʻa e taiamoni mo e ngaahi fakangatangata ʻo e mapuleʻi. ʻE lava heni ke ke fakaʻaongaʻi ʻa e kapau mo e taimi ke puleʻi ʻaki e ngaahi fakamatala ke mapuleʻi ʻa e fehufaki. Te ke lava ʻo fakaʻaongaʻi ha lea ke fakafōtunga ʻaki, fakatahaʻi ʻo e ngaahi sieké ʻi loto ʻi ha taimi ʻoku ʻi ai ha tuʻunga. Kotlin fakaʻata ha ngaahi pelu fakafuopotopoto lahi ʻi ha ngaue pe ʻe taha. Ko ia, kapau ʻoku kiʻi faingataʻa hoʻo app ki ha kau kamata foʻou, ʻoku totonu ke ke fakakaukau ke ako ʻa e Kotlin kimuʻa pea ke toki fakaʻaongaʻi ia ʻi hoʻo polokalama Android.
Kātaki ʻo fakatokangaʻi ange, ʻoku mau fakaʻaongaʻi ʻa e cookies, ke fakaleleiʻi hono fakaʻaongaʻi ʻo e uepisaiti ko ʻení. ʻI hono fakaʻaongaʻi ʻo e uepisaití
hokohoko atu hono fakaʻaongaʻí, tali ʻa e cookies ko ʻení
ʻE lava ke maʻu ha fakamatala lahi ange ki he cookies ʻi heʻetau tuʻutuʻuni totonu fakafoʻituituí