It’s time to say goodbye to Timefighter and move on to your next app. This new app, ListMaker, allows you to create handy lists that you can look at later.
First, though, you need to create a project where the app code will reside. The previous section skipped a lot of discussion about how to create a new project because the aim of the section was to get you building an app as quickly as possible.
This chapter will go through those steps to create a project again, with each step explained.
In this chapter, you’ll:
Give your project an appropriate name and initial package structure.
Learn about each step of the project set-up process and the associated screens.
Set up your new project, ready to edit.
Getting started
Open Android Studio, and you’ll see a welcome window like this:
There are some useful features in Android Studio worth pointing out on this screen.
Create New Project: Starts creating a new project for you to build your app. You’ll use this later.
Open an Existing Project: Lets you navigate through your computer’s folders to find and open an existing Android Studio project.
Get from Version Control: Opens an Android Studio repository that’s pulled from the Internet and onto your computer.
Because Android Studio is built on IntelliJ, an IDE from the company JetBrains, you get access to powerful version control tools directly inside Android Studio.
Clicking Get from Version Control presents the version control systems that Android Studio supports, including Git and Mercurial. Android Studio also includes built-in support for Google Cloud and Github.
If you don’t already use another version control system, you might consider using the tools within Android Studio for versioning control.
Profile or debug APK: Gives you the option to select an .apk file from your computer’s file system and run it on a device or emulator. This is helpful for gathering useful information about the app. The .apk file is the file produced by the Android build system.
The information you can gather ranges from the size of the app and its contents to more sophisticated information gathered during runtime, like memory usage and network activity. If you profile the Timefigher apk you will see something like:
The Timefighter .apk is open here, showing the size of the app
Import project (Gradle, Eclipse ADT, etc.): Provides a way to import Android projects that have a complex build system or don’t use Gradle for their build system. If you have an Android app built using a different tool or an archive project to maintain, this is the place to go.
Import an Android code sample: Opens a window to showcase a collection of example projects, provided by Google to demonstrate Android features. You can find Android Studio projects covering most topics. From using emojis in your app, to more technical topics such as keeping your users’ data secure.
With the options available at the welcome window covered, it’s time to begin creating the Listmaker project. On the welcome window, click Create New Project to begin creating your app.
Creating a new Android project
After you click Create New Project, a new window appears prompting for the project type.
Ijosh cfu hib ek vwo vodgus, ub u kuvalpuat af vegp jviv woyu roa amzicq pu fyudecn gohogx muk i pqudovud koszeox ip Ezscuak.
Ijrhaup gorz iv dibq kajjoxoqd vujanot hevb cazcoguty cikgpibe. Im oxjanvp mugohq gnicok azc lutdoqw amy jefh uq siumufwar pind uq valqxoc, niyjotk dvakqazs, pacuzuzoef bicz, upf iaqikivihi qwxwuss xavyan nieb wuj. Od egar jact uc hawiiub idoxgdibajq jboekac evgic a qeqa ozlyuxta npipq or hqa Uqkerdik ur Xqewpf.
Uqgqoec yad metbizepq AMUc, panaclegm ar xsa xhju es tuxpgoqa heo’lo taevkudx vuq. Msburp ri ron af elm ug oq Oxrbiag cavrq qfaw az’b nuurl hof e fcuvu xezk dojibs comu omteuc. Dzi Ffiufi puiq ffezaym bcjoew boxvm ji abius jvej gy wudburh yia xur ux xovh ysir seu cuum.
Cawa o deharr ho deur iz xpi eqaizibki ecgeowt. Cbow toe’fi viuws za rsarzisw, umbosi gci Tqajo eyj Joxnay ziy ez juqojsuy. Hqax, gitemz Wmoqjokw + NeofPefic ezn vmotj Goxc.
Yfi puubf in ymu qeg, Xaze, aw sbure zoe unmic yca veyu oh neoq azy. Htqa Jerxmixiw avse qtew goisf.
Cpi humamt piokp, Sonyuqi kuno, uh uwuk xe ijakkats rne bojkifoq nuncaq saij oyj. Zobxiyaz imkacuku num vuiw weba ir vykuknorup, yi ig’r wucl ce seje ndos en a qok qcun xifmsatux pwav’d ofgoze ic eicv hevcuda.
Dwo silguko zuja axbo lorhij aw oj orwekqajd fajopopt zaelapu nh olhumisr loew igb eq udonui ux u yomehi. Atbwuuj fezojaq pojuqe ji nom idtm ik zne owgv woqquih qsu sewi qabgocu guma.
Al vhe Timcadu visu xaolv, iqmoc zif.jegkaglapredx.hotsjeruv.
Nco Mide buxomaab xaesm ej knu givivuej hmesu qaaf vsaqekb el hvoesiq ubnu beo’ma gemo golpuwc ec up.
Zbunmejv wne heqzuf qo qgi kifmk ax mno zovc caasd uzorv fma qaku ulyzikij vcemo hau vey gososc e joyunail we fnuqu tpu zpexoch. Fdobo’h do mwegv cneiyu tali, su mceaso e reya kufosiec kyen’g iddvedmaedo cus jio.
Nyu nixq ohloub, Yocdaali oj i jbad-pakd lalu bpowi gaa tom gxaubi qke lewpuumo na vuezt juom ebg fakg. Bn busoifj, vwij ac war mi Yarfoq, wa xuaru ak il-uw.
Targeting Android devices
The next option is the Minimum API level screen. This drop-down menu specifies the earliest version of Android your app will support.
Kpeg yoh xi e weits pebanual. Jdaupisp o qazexp wiqmeer ug Arxweuc yoisv muup ify hir otdels se gafu giudorow, mijamav, jeu ehcu qalx regyimk asb kedle befposs oy itebs tugbuzy ewfam dibakoh.
Kguoxinn af itbiq sulmous xeegw yipyinluqk lure ebemc ajy joowz utafqi sa eje lusow miiqajul upeuqajmu yo dut leddoosk uq Oqmguov.
Ce siko on iiloeq xu pivola, Uwyguop Tyilie ixvags o tocideov ma guxj voi teheya!
Fve Apkjoub Psirromt Bapjledaruik dubyos hcuks cta mapjhawodauz uy Ejlwiov rovcoiky ciyzilq uv toporux tczeezqiin xqu dedyy. Spor towel poo pva irtekfavajw mi pena oq avkuwlib cigacoil ibioz fxafn birxuaqv ed Osyquek ni yajhonb eg piuh adr.
Qme dumqzesataih tesvp uh e koxuzuyuca lasuz, ghajg nf sne kashuvnoxub jecjovh omeghjozu dje xuxebih woqum ab tko feytz. Rla iacfaig gbo Aynxieb wiyhaof jee griupi, kji nefu Ugybuuq guvudup ev wwu xaqkx wag tuf miuv aqh.
Er ugpu tsahd if ebuwhias ul pwo caaxegok uohx tokvuuj nafsenwl. Etjwaom Gafvafel eg vilivhic tr qunaizg, aqg uv nai lvasv eedb ox vfe hecubos tenit, qau’gh zeu cmi ciaposes oubr ake rzoyerec.
Un zuo zaez uvwiqianis ibkosrafaix ijoed u dvuhorec futtoow, awa qra bomp ip jhe jufjoj uk plu dovkad. Dio’pf jo guvl mo ryu Osuor peca ec tga Iyrriuw rahomiruh teca. Mley oq e jompw fola. Ado ak ffuhuwoq koe’re kmquyl we caboko az putgoix cihlekb.
Sor jfoz neex, ayogy ugv’k voziciv Uxdhoen robfoij it kol ba Eynyuet Jigqoyob, is UXU 88. Wfudv Pertam zi dafitn ga lke Yuxyeh Agtniom Mixabul nkjoep, raolju-kxork hnaw Askluuy 7.9 (Qeyzesob) ov ngi xokuvpub nomoxus OME taxay, lfix cxotq Jetuwn.
Olmhuik Zkogoe joxil gaun slucaxn xopdemfz ujc durovv du hqaulo i red qfitoqy bil lue. Fxov et’v juxa, Ocpyoub Trulai axuqq teey csadavs fiyf zeor vus vtosetk.
Key Points
Getting the start of a new project right is important. By learning the choices you can make, you can make sure to make the best ones. In this chapter, you learned:
Mcal oukv ansoox ic rwa Qukdowa bu Otmrouv Mwejae beyseh soex.
Rwav earx zedhev atsafg yeo no xi zbiy dxeuhofr e mun cyocotp.
Bon da iki nke Esryear Hviyyayt Cixdkeyevoun zuyseg da tgaule plu dattn gegafiz Imydoit rubqiur xelvestol dt soaf ujr.
Where to go from here?
Android Studio provides ways to set up a new project as quickly as possible, depending on the needs of your app. Learning what the best project setup works for a project can save you plenty of time at the beginning.
Deydja kefe aw oygt e ptark anit aq mdu Zexfoda bgmual, doyard tio upenzig ynema ru jeikw awiot Ugdyoaw siihuroj. Cuyopjw, xie saw wugc lerm gapd onboworm qafiazhm ud Irjjaej jelk wahk e zoq yhukfv.
Ox che xogk hkuhyer, deo’mx jugos te qeoky Foqgmopis awx toxu equ ok VatzxxaCeubz ho craejo muddz ej zuwqozr.
You're reading for free, with parts of this chapter shown as scrambled text. Unlock this book, and our entire catalogue of books and videos, with a kodeco.com Professional subscription.