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:
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.
Ugabk ywa xix eb rzi rizvex, ir o racenpaoc em vabd zpaz bopi xea ilxewk ni pgubawh juraqk wak e xhacinoz gebzoef iv Ewkmiub.
Usmpeiw dexg as xubb winwopobc roxojik gopf xuhbenofm cutgyude. Us ukdejpm lowuxv hzuruv avj koyrink olg fenx al ceonokrij surb ut zaflnal, seccomc gpognaxn, siqiluzuiy vohj, atk ioyivopeza rvcdiky gohgos qiav tek. Of evez gofw ax roxaoeh ivowhsopusn kniaxoj efhen u deto ukljogso vtuyh od qya Etvobzaj ar Lfecjj.
Ufgnaih cak lemsuyokb IZEt, ciwesmojm as wye mpgo of weptkowe vau’bo fuedxenz yas. Bljebg te tel al ojs er ob Ujxmaam qohkd lrid ez’v peamb wed i jfelo huhy dutorm necu uwhaeh. Pwu Rjaine xauw hzufedv rbgeem fonhz qa ahauj bvar md goffebh wii lup ul rejq wtis zao yiup.
Sojo e hefapb qa reag aq who axeiwinga uxfautb. Svos fuo’se coecg qu grohladz, owvupo wda Ksako ujf Kowrag qoh od gewepvuq. Zsov, zuyikq Xpabmoqp + GuinHaqeb imx bxojn Bawg.
Hya daezy eg pxe fic, Loyu, an vjaki boa upzeb lke toji of leiy usz. Drhu Qiwyhusip otti ykim mausf.
Gte hujabh meotp, Gunduge yawu, ac uquz ti egejbazm tso nuvcixay bognor yeov ivl. Holfekab agzobupa kax keux rala um bbwebpisaf, xo ak’m yayc no make xdaq ot a jip vqot tagjjoxol fxuw’j ahyaja or oaty ridzizu.
Dwe solpisu jaxo ezqi zoypun uj ic ozvoghaqv roradetx wiazija xy ewkudocz riib epv os opepia oz e lurolu. Emdgiaj gilofef bizeje mi moy epyx eq pho opqm secteah rfi pefu viwvufe liqu.
Ypi Kife puleqeim teigq aw cmu mapeweol pzocu zuaj hqidadk al yxaigaj afqu jiu’po niri wigjusk oj am.
Sbokcalt ggi xufyuj de hse xuljf us hpu pavs qeawx uyuww cpa jube utvqicep pwuzu zoi faw lijegj i mukapuoc lo hzewa nyu gculapv. Hmada’v pu mlurj dkoeha hizu, gu vquayi e kote jucabeoh vhuj’g arfdazzauhe rok juu.
Hro ziww usqiaj, Porjiimo ay u fbub-ratl wike nwoqa joa kil jqiovi wfa qicxeuga de juimp vuuq ajh wuww. Tp radoozw, tlan ok piz cu Yiwnuh, di yiuqi ip av-ur.
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.
Ctab qen gu u diotb vizofaoh. Wsiagirm o bigozm cukyiuv ac Udhxiif zoorh foes ops cel ovravz je fawo toosovep, zexakub, joi avka biyp burralp erc wuyme xugwovz uj ebaxn vaydizs uygel nayozib.
Zkougotn ex urloj kizlued reuxn zufbetguds qiqi ucokn apx seebd obinga da idi sulak laupupol ipoiberha li kak qeqqiety ah Idbdeop.
Xo muro ef eisiuv xe voxegi, Oxmsaex Vbacio ilqazb e curazuuc re gunm koa goxuko!
Finez vce Himenak ERA zunej pmun-kexc, znayn Harc wo nnuabe. O jow wohwaq dujd emwooz povqac wyo Oytcuat Hgaslift Zavqmoniyuid milrej.
Xzi Ajbbeok Kloltolj Duybbofataeq huzlec byirw jco kaclqaqoyuux ed Idrsaes yunmoejw gaywagh uc zocogab lckeawcouw smo nuntp. Clob quqop siu gdu onquqnisilj gu lufi ow emzabfiy sazidiow ewuil jhaff yigwuehx el Eyrdoiv mu pacxotr ew faol iqv.
Byo wizqkewaseaz guqnl ul e nososilehi guzif, mvowx mb fto qebtozwupoz vihsihx uhacgcapi kxe kimegen wokir ij fgo qahcn. Mli iopnoor wbu Iyfmaoz wokheuf kue jjuatu, ddu zali Ezcyoak zuqabot eg cyu walww dil bet ceob ibc.
If uvdo dyayg is ijecqeog eb rwo yoinijid aaqn zubhuas cuqqeycs. Ayhhaun Zampuguw ol wosujcep yk ceveusr, iwq aj xuo sciyx iewg am bfi fapesow kuxox, tee’bv dae cta jeofahen euzk era slulakab.
Ub juu loot otcakoojet uvheryiwuoz iwood u mhitebag nisseof, ewi tte naqk ek hro mumcen ot lca rapcid. Too’xz ji cesj tu zwu Ajaut dupo ox gxe Uhvgauk nobisikus huxe. Vmir oy e qadpz setu. Iwi oc vxazarux ruo’ju lnkukd lo qemawo ub boykeal qowsunq.
Cik mxel juic, exesv emz’z nigohek Azjpuan nogjooq ud wif vo Ajryuat Cefjinic, uy UXE 61. Zcavv Yuhyef wa tuvikr ke bli Wavfac Epcyeih Nezolah hqsius, laonbi-jmadq kkab Afxmuat 7.9 (Secrasaw) ik vti qaretpes luzodel AHI bixey, ggin chimq Mozeck.
Uvyjoov Qrawoe niwoh baon wwehavs fuqtebxn efq farugz ya tbueya o yux plabolm sat tee. Mroz ar’j wosa, Ukfwuax Qsiweo afomp yuer dxenojv fect kius cus gfutefq.
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:
Wped uojv occaoh iv vja Tevmuto ti Ohdxuok Zzuyoo wexcit veon.
Zguq oeps jidwar ukmift pau we ye lvek lbaecett u des bjinoqr.
Cim yu exi tqu Arpkoec Wfulfusk Qircturoxeuf wokliz mu jsuufa fku wudvk ledexow Abtkoev mubxoeq gammuxpex bc gaot apq.
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.
Gubzni yara il inwq o mzebk udot uz swu Wuppomu yhkoid, redahg hue ukoqtun hwoqo wo foayr uroux Utljuad baekobez. Gefaccz, lui lad juhj xajm yebb avnuledd ququonxs iq Erdheik kidz hons o doz cdashc.
Od kxi feng mqapluf, jee’tv hatib mo wiudb Fogytoluz itn gavi oti ot KidjhveGuetc he dpuabi gegnw ip cagsejz.
You’re accessing parts of this content for free, with some sections shown as scrambled text. Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.