【Programming】Android Development vol.4 / AVDの作成と初期設定
promari·@promari·
0.000 HBD【Programming】Android Development vol.4 / AVDの作成と初期設定
[前回](https://steemit.com/promari/@promari/programming-android-development-vol-3-ide-android)は[Android Studio](https://ja.wikipedia.org/wiki/Android_Studio)でプロジェクトの作成方法を紹介致しました。今回はAndroid StudioでAndroidアプリを実行するためにAVD(Android Virtual Device)と呼ばれるエミュレータの準備の方法をご紹介致します。 Androidアプリの開発の醍醐味は、AVDと呼ばれるエミュレータで作り出したAndroidのスマホを動かしながら開発できること。Androidのスマホを持っていない場合、エミュレータでいくらでも疑似端末を作り出すことができます。逆にそれだけ端末の数が増えると言う事は、テストの工数も膨大な数に上ります。まさにトレードオフの関係性です。 Android Studioのツールバーから「AVD Manager」ボタンをクリックし、AVD Managerを起動します。「Tools」→「AVD Manager」でも起動可能です。  Android Virtual Device Managerが起動しますので、「+ Create Virtual Device」をクリックします。  Select Hardware画面で端末の種類を指定します。  必要に応じてエミュレートしたい端末を選択します。ここでは端末の種類は5インチ画面のNexus 5Xを選択します。「Next」をクリックします。  System Image画面で、システムイメージを選択します。「x86 Images」タブを選択し、Pieを選択します。選択後「Next」をクリックします。API Levelは28です。尚、システムイメージとは、AVDの動作に必要なファイルをまとめたものと捉えてください。  Android Virtual Device画面が表示されます。  Enable Devide Frameのチェックを外し、「Finish」をクリックします。尚、「Show Advance Settings」ボタンをクリックするとさらに詳細設定が可能です。 作成したAVD(Nexus 5X API 28)が表示されていましたらAVDの作成は完了です。他の端末もエミュレータとして作成したい場合は同様の手順で作することができます。  次に、AVDを起動して初期設定を行います。「▶」ボタンをクリックします。  するとNexus 5Xエミュレータが立ち上がりました。  このようにAndroid Studioでは簡単に端末を作成し、まるで実機を動かしているような動作検証を行うことができます。エミュレータが起動しましたらさきほどのYour Virtual Devices画面が閉じてかまいません。 尚、以下のような画面が表示されましたら「既にエミュレータは起動しています」とうエラーメッセージが表示されてますので、背後にエミュレータが起動しているか確認しましょう。  AVD作成直後はOSの言語設定が英語になっていますので、言語設定を行います。画面の「■」ボタンをクリックします。  アプリの一覧が表示されますので歯車のアイコンをクリックし設定アプリを起動します。  下にスクロールしていき「System」の項目をタップします。  「Languages & input」をタップします。  Languagesをクリックし、「Add a language」をタップします。  一番下のほうにスクロールすると表示される「日本語」をタップします。  Language preferences画面で日本語(日本)がリストに追加されています。  さらに下図のアイコンを上にドラッグアンドドロップします。  すると順序が入れ替わり、端末の言語表記が日本語に切り替わります。 切り替わりましたら左上の「←」アイコンをクリックし、Language & input画面に戻ります。  次に時刻の修正を行います。システムの設定画面に戻り、「日付と時刻」をクリックします。  「タイムゾーンの自動設定」のスイッチをOFFにし、タイムゾーンの選択をタップします。  「タイムゾーン」をクリックします。  東京 日本時間(GMT +09:00)を選択します。  時刻が正しい表示になりました。  尚、AVGで複数端末のエミュレータを作成する場合は、AVG毎にこの設定を行う必要があります。 以上でAVDの作成と初期設定は終わりです。次はAndroidアプリの起動方法を説明します。  written by [tamito0201](https://steemit.com/@tamito0201/) プログラミングとのご縁結びなら[プロマリ](https://www.programming-mariage.jp/)へ。 オンラインプログラミング学習スクールの[プロマリ](https://www.programming-mariage.jp/)は、プログラミングの初学者の皆様を応援しています。プログラミング講師と一緒に面白いアプリを作りませんか。 <a href="https://www.programming-mariage.jp"></a> The programming school "[Promari](https://www.programming-mariage.jp/)" will help you learn programming. "[Promari](https://www.programming-mariage.jp/)" is supporting the first scholars of programming. Let's develop an application with our programming instructor.
👍 tamito0201, tyramisoux, flowbot, byresteem, susuzyaz, shockingmushroom, art-is, erringag, valenesiana, pickaxesgorbelli, ax3, andrew-ki, blue-k, tupleapplied, bokerstuffle, jeffrhodes2000, officebastard, cokbise, dar-k, dede2, dura, dittony, ophiuchusd, snowflakebew, gonelie, hanarape, harmon-y, holy-k, chloe.burton, yeomanross, promotedpost, jack-karen, johannestreb, gangresteem, k100, allmore, keenx, allmy, kk20, ama-c, superpromoter, beverleyer, querulousfeedbag, love-m, birle, golzar, m25, but-2, me-and, cemse, mm22, chris-sek, amicomber, pentagonyummy, comp1, mx2, companys, mynumberone, davs, myrep, dedli, fueprojacan1988, hottopic, oksen, diren, quaintshingles, stressfootprints, plugs, dtus, post.melon, ego2, freetime, nadinka, raise-me-up, rise-e, obaku, bliki, ellie-g, mazdaes, seat.leon, s2-k, eskle, kanmaz, humberg, shape-of, evet, soduye, formex, taylor.mien, getx, toorise, gonna, lydelandet, sleightholmer, abbeye, uas, hastesxse, upse, howx, vivald-i, jack20, traveled, voicle, jack-x, scotchells, wannebe, jenner20, welcce, jenr, white-1, johnsens, mrswhale, wi-ki, johnson2, venfordef, x9x, kel-20, xec.sek, kenmiyon, xekn, kex3, leaveall, xken, emraleg, keasdenx, flaghamas, hindwellag, letgos, xoe, youcanreachme, lilse, youv, livem, cryptoocurrency, newsbitcoin, yuj7, mex1, barneysi, m-m-s, mynem, poopsen, poorx, yewdaleu, muddilakes, transitabscisic, pressurexx, quickstarts, respte, rewa, skirdene, s5e, shawnmende, sky-up, dawnasheelagh, steem-seo, sezercik, tik20, veye, billbutler, tincho, rhanna10km, kostronor, mygod, malekalmsaddi, dacx, robmolecule, denise.moreno, cheepingteammate, ethanoatestress, badseyse, booleansport, nearwhimsical, budajored, suzannn, crudepaltry, nejdat, buttera, tarretef, billinghame, arklee, maglina, oakumdumplings, sebebim, fiveheade, roydestory, mukhtar.juned, neversaynever, not-a-monster, saifursujan, hloody, csalupado, oughtershawuas5, festivalsymbolic, techshop, teneresa, dcreason, handee, christopheres77, cowfoldu, permitborrowing, blockchainfo, ahley, janic, cernunnos, baimatjeh81, churchx, marthagomez, starlord6414, nayif, justsomekid, mrlazy, luckys, mariano35, hetherg, kingsesra, carnivorefeed, justace, raynizm, grimmyx, soulpyx, mahmutah, a-0-labon, wisex, efongym, crysports, ziguaraya, madscientistx13, a-0-mita, mulleredclash, levitated-mind, nichisan, zeeshanrafique, racdaolato1976, pasags06, jynx, shuhaib123, logicalfatloss, cryptoroast, elohibaluk, zkan, toni2oni, linkerstinker, cryptoskate, klaratoth, zemex, warn-a-brutha, pinsleye, naturecenter, thejbullfrog, davidpleasing, idr, smooms, rukkanovax, motorboatperegri, sohbet, scandaled, gasbagphenol, anbessa, sabisworld, kalbretti, monisteemit, ohadiyorum, daniel-irala, stonegaterr, sharepheasant, rhinoceroses, jo3potato, cocacola40, janan, witnesess.doo, everdayfood, peuhaba2020, crippsu, harshhijack, strugglingdiy, steembluepages, schneckchen, naf, paulaharvey, pepe7777, langworthyx, hrishikesh, speedgonzales, milalvis, hospitablegorill, satrun, ericrnydegger, seldos, gustrading, simba20, toastymagoo, meecese, jamesanity06, bowlingvitamin, keket, onno, starsima, dihan, somuncubaba, tante.emmas.weed, agathaa, gypsyfortune, jamesmadrid, waltliquor, s2thak, taco-monster, psicologo, rativiv, beneklikopek, paganlumber, coral-reef, nojobtv, edenci, sun-tzu, u25b2x, cmtzco, neru, sylinda, skeltone, cryptohustlin, tarikhakan55, olegn, eileenbeach, arjoena20, sammyb, woodrow, morice, konyali, andrecarothers, chyandourere, trevillety, notibroma, saucesparliament, sriz, voter000, wowmiko, tofazzal, reported, mukta9988, cnmtz, aneesh23, centroidmango, bofadeez, ozgurinsan, tugofwarambivale, blackfield, bitkmbr, dmcclccam, drguru, thevark, fosterswisdom, unholyleaf, chrstnv, harmonicliving, steeemium, spongestriped, sanja-cash, thedrayness, kaplan513, spacersmoussier, schulbz, steemegg, zaggysteem, blockchaindaily, drguy, corncuboid, legendaryjone, zip512, xplay, rafiputra, the-mayor, placespotters, wickedexponent, orl4ndo, papertradez, sidneychildsh, garage22, jekfer, rakibul098, mrcheezle, savickg, po27, bahcesaray, plaguefacts, iloveghee, thecottage.che, johndc13, keyprado, martinshkreli, minnowpond1, bilgi, jasen.g1311, brislingtone, barbones, g00by, ering, desmonid, hookersandblow, bierbeach, quartilevariscan, bensucani, buyerbury, tugboatjoe89, ceotechnician, chako5555, shamrock017, mindcombustion, yazarimsi, bearleya, thewindowflower, seatong, mitralancestor, paredros, bojacktenenbaum, drstrangelove, hammondo, growconstruction, bitcoindon23, microphonefish, pulworthye, spoonwine, soundtacos, pumpenthusiasm, byronberry85, marskef, patspicy, aurore, obeypicky, boklassen, maniacdinosaur, liesmetro, joystickwind, dufferpastebin, grillingpurring, googlemetro, lateenburger, colgatetreasure, brownboorish, solarempirepc, waltrichards, jubileerr, biker, lovetosteemit, salihbag, theperfect2, steemithelper1, broncohorseshoes, whatyouganjado, doryaeriell, temizyurek, scotthelms89, sleepcult, gazelleplug, krushing, southbaybits, btctoken, hurdlecranky, ozioziozio, medha, mrainp420, powerlessurinal, peacewarriorette, kubi, sxlingsxlang, pazulang, weightscrucible, biancawhite, steemitla, umerjaved, eksisozluk, thebrightness, codon, stonethwaitet, postsspeaking, colleenc, magikos, masonbeck, fizzytrophic, rngdz, minnowpond, tovaceline, drdeepdick, ilginc, mikobites, axiomatic, kerimcaglar, tacosmexico, sonuncukus, valueboo, sonbaharr, cakir994, eggthorny, firsthandtokens, womse, usagi-alis, discontentbimbo, follye, titteringgorilla, valleyes, frapnitrate, cheatones, hoaryheap, healthyfoods, sacvar, biggestitalic, blackhazelse, wycollerk, baileyy, slugarse, popcorntrumpet, livinggraves, stadiumadorable, milldc, goldmirerr, kingstone, livertonses, easingtoneg, tekinomer, pilleri, juninalethia, gairt, scalyfunds, mereman, lamtrs, untimelyweenie, alkaliscancer, artledr, interestinginfo, chamoisbind, toesoverripe, ecocoin, halleyovenbird, balaseer, carwinleys, eyesi, earbye, mariginal, crystallineslove, cynonw, wheeldaleas, bedburnk, wellhamsr, forestsuranus, politedeleted, odl, egfordr, nazann, capitalistcities, simay, amkol, busrae, pedlarbaked, hodgees, pridefulquantum, harleyses90, carrockr, powas, wanservices, heachamo, pilesr, cardinhamo, avone, memobi, chippingkernel, reticuluminspire, ensignpancakes, washforde, cryptogangz, onedio, robibm, artworld, doughycommittee, osmanboz, scopeg, andy.aldwell, roeyue, borrowe, sahinmahmut, elbrusgases, desirednumberles, cubandesign, risedaleo, newlyn, coledaletu, musakul, bitcoinfast, orhun, bottomses, leylakk, cabotmurder, eleanorastro, osmanli, umborneo, delightedcrude, cottonshope, hazinson, hoaroaks, funnytime, todde, greasbyas, mehmetellibes, dowlessr, sleightholmes, suggestflowery, lifernesec1973, respirationgrist, covenflick, blackbridgeas, masallar, elladinenolana, wildfowlpampers, royalstrict, uswayet, montecarlo35, stennackeg, tamer5461, beldondf, lillyet, bursa, wellowe2, physicianisraeli, hindwelleg, langdens, luptoneg, elleres, remorsefulart, snarlinghawking, kerimkan, birkiner, kaanyilmaz, trentr, sabri99, franchescasacco, smartsteem, vietnameselength, hollocombes, lalesu, eolandananni, buttersailboat, unicron, houxtyer, foodstall, hoveramphora, yuzuklerim, deex.exchange, lamornas, ursaprune, bowg, agnessejanot, bottomse1, peaseyo, teddieelga, whickhopez, muddypops, backk, colnet, kaanight, blackwaterses90, tunalink, sebastiangrant91, artdirector, handshakecheese, healthylifes, ridleesy, yuneitsy, smartdeveloper, lihaile, rajusinh, jagusinh1, mcoinz79, dcgangster, jerge, jesusalejandro, meedo, mesohappybastos, perkyyoung, chippies, kinaki, sibbir007, argon, victorhernandez, josecito, jose15, success7,