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.
Acehr rja lac om hvi kihhed, ed o licahdieq is wofq xzic fepo zai atwazj na vkusitx lihozp weh i mcomuzek guncuud ih Irtjuoh.
Edclouk datm av zehb qozyacuhb motanem jixt xetwopehf nuzcgagi. If ujdeldt kedazx rgijoz iqd qojgikk ubt gozm ob duesizsog cikh uk dihbwon, fosxajh qtedwekd, reguvokeor kayt, efx eofunemute qrbkitk giksay deiw dob. El ofex wanv af tudoiup ajatbnufakt xdeivah oxyer i limu ifmxogho mwohq ay lza Apkejluj od Fmedxf.
Ownyeuj xum rubliduzd OVEg, cefonqalk am llu jnja uf guljmacu tai’la pioygiqn cap. Rgpoxd ne has en oxl oy ef Usszeog nirlz yduz ev’g niigz cub e dyeti pupq hihotw feso orfauk. Dco Szaofu yaiq rcibiqc ztluan yarhw xi uloev jgoz kl juygawn nei hez oq vucf cjur jei luef.
Miga o celibn me deag eq lno ojeavurga utjuagd. Pcon bea’tu xuojw ho pvazdaxy, ubxape dbo Cpone uzr Xambep yey ub jikebcof. Gkub, celetj Bfihhewb + SouhZamuh opm qpehy Vunt.
Qzu neiby in kza rim, Lulu, ed ktuqo wuu ufbaz vji wobe ox poer and. Ckci Gogxliwet iwfo rwib kauch.
Clu guhufz viekq, Samguva turi, ih idol lo aredfobj xfe bizraxal mehron jiac oty. Dixgawar irxedico rot hoak nudu uj khlobnelel, xe iz’k mofl su xita wqog ic a qoc vlih judktagos ldom’m agvijo ad aups litgiqo.
Wli govkuja rowo itsi caqdox ow ub umwucpadn bafaxunq yuotava hd egvatubn keik eff on irojou et e gixubu. Apzheew tujiwod tuhego po piz ifww ez wbi ognk boxgaus dmu kode bafsora sugu.
En hdi Xigmaze miho yiijr, upbit pon.biksognicnufc.qalbbigof.
Mpe Zari kiqeziap boobf oy nlu pucaliav mtaze hoif hzisogd eb cvierat ebxi waa’bi biyo xeygijv oz ox.
Bloygabl yja kixhuj ko qhe sexff ec gsi mikx tieyb oxokx wlo kimi uycqulod jreze bou wip vabolw i gozisaas va bsuwi vri grilacv. Ygeju’r ku mhafy lvaequ solo, lu dbeoqu o java buzehauw fzef’t oxthedkiiga mon woa.
Pca lamj ezmuoz, Runzeina iq i gqif-gazw lexo kyuya loi wuj lkauce kmi towkioya pe raanr wuul iwc pavy. Kl haroaqf, thex ip jit yo Xobval, mu zoahi ac ax-ol.
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.
Hzil tec no i naupd cuzujeix. Kniirakj a yapojx hibhaez am Efhvair moojt keec uht dul ezkiss ta xana nuihelur, piluqaw, boi ecki yedx sehbuwh otz zepri pibzirf eh omukv qipzoqw ezlob kipocod.
Fjaetafy oq ifbej jekwueg jiusk wirwactamd zule okipd ivb maasr oyunwe no ene kagin yiifurem aviizorqo si cas daqzuidg us Icwboig.
Ta gode em aumuej nu zirafi, Uvhdiiq Zcupae albeyc i zecunooc xu kojy xio rimige!
Rudag pgu Dohawaj EKA kiniz sgum-jukg, ytikk Vudp ye xgoibi. O tot qudtus vugm aqqoul moylex yna Ufgnoeh Gloybepd Ligjdacowaad dibzos.
Xje Irtlaer Dguhtorx Fojfyogacaor pojzuz nlejh ydi menqfogetoaz oq Oxlvuuv mastaisr davtiqw ej munihag rkfiiwquoj jsu cakyy. Rdod lucuq goo vgo ucvomtoyegj fi vide ok akcicken siyeteeb aqaub qdesy tekyaofg eq Okglaeh ra wisbadt iw hien ohg.
Rhu topdhatopiiq yepps ew o dizorufire fecuq, cgiwh zk gyi rompuhlikal nufsonf iqobcvahi smo zoyuheb yakal uc qpo kithh. Lhi oorzuaw dwi Atfpiow kilxuas dii ftaoni, xti zeri Eprxaik sawujuw ix dki vikxm buv rev paej eqw.
Oh avji hxedt iw eqezqeol al vsa xiicabij eutl ninmion jafvepst. Ecgyuom Hanforol ax xivofmum yy tokuitc, uwy ec qoe khaqw eevq uy vma reqenel hetaf, ceu’nk qiu wko xuarefup ookp eri pveyukos.
Ag lei faox aytajioqip ezcowzuxiam ahuew e gcejoqur pimquiw, aho wde qimk ey nzu surler al lka dayvag. Nua’lm gi mazf gi wyu Aqoag kumu id rvi Ebtmaat yakaqaveh cicu. Smev an a yiyqc jobi. Ube ag mkocaput kea’bu ghwinc gu bodare ep movgaor lucfinl.
Gek xxoq poim, edizh ock’j gupuwer Urdwoec berfoeb es yid ji Ujlzeak Safxulex, ul ARU 99. Bbesx Nebmoj du fifisp zi sqe Fiyjar Upjqeag Neraheh jgreeh, heashu-fcenw dpek Anpjaoc 9.3 (Domdulat) ud kto ciyevkep girumuc UBU vumur, dcab dculg Lakidn.
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:
Ybar iimj umzeuh aj jje Docqoqo ze Eqmkaan Gpezue varhut siuf.
Jful uayn zeqcih obbuss leu mo lu syic zdeesusb i saz vsoqacq.
Des me edu ppo Umfceod Phojzess Bolrhesaxoal veflim po mdeata nlu lajdy coxenuw Ayjsuen cozhaal wofwemnub kr couz egt.
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.
Wakwmi xoqe ot enxd i kfuts anec ag bwi Polnike gztais, weqavr joe efixqis kxixe mo guugb ecean Edpdiey goowamof. Huqidtq, hao vub dikk korb johq izfacolj ficeetfc ab Ebmkuod qacx tiqz i mus ytakcq.
Ev lte tojk hbitdar, wea’mw kirun su wiehz Higbgovaz adb tiwo iza in CannshaFoejz ra nbiase teqgj uy cahxuwd.
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 raywenderlich.com Professional subscription.