SlideShare a Scribd company logo
1 of 18
Download to read offline
By: www.emcu.it Enrico Marinoni
________________________________________________________________________________
How to use Android Studio
• Introduction
• Install Java
◦ Test your Java installation
◦ Configure the System Environment Variable for Android
Studio
• Install the USB drive for your smartphone or tablet for using it
in debug with Android Studio
• Install Android Studio
◦ Do a simple APP for test your Android Studio installation
◦ Select a smartphone or tablet to use in debug
◦ Build the project
◦ Debug project using your smartphone or tablet
◦ End debug
------------------------------------------------------------------------------------------------------------------------
Index
By: www.emcu.it Enrico Marinoni
________________________________________________________________________________
Introduction
This tutorial was tested on Win7 64bit Pro.
The PC that I used is HP with processor i5 vPro and 4G of RAM.
Pay attention that when you choose some options (Build, Debug) you must
waiting some seconds before to see the execution of your selection.
For using Android Studio must be present on your PC the Java JDK.
The JDK is a development environment for building applications, applets, and
components using the Java programming language.
The JDK is also called: Java SE Development Kit
------------------------------------------------------------------------------------------------------------------------
Index
By: www.emcu.it Enrico Marinoni
________________________________________________________________________________
Install Java JDK
If you don't know if there is a JDK (also called: Java SE Development Kit), on your PC do
this steps.
Select START (1) and next Control Panel (2), see below.
------------------------------------------------------------------------------------------------------------------------
Index
By: www.emcu.it Enrico Marinoni
________________________________________________________________________________
From the window that appears select:
Programs and Features
see below.
From the new window that appears you must see something like below, see the red box.
In my case I have installed the:
------------------------------------------------------------------------------------------------------------------------
Index
By: www.emcu.it Enrico Marinoni
________________________________________________________________________________
If you don't see Java JDK (JSE), please install it.
You must choose the right JDK (32bit or 64bit).
See here.
------------------------------------------------------------------------------------------------------------------------
Index
By: www.emcu.it Enrico Marinoni
________________________________________________________________________________
Test your Java installation using this link, see below.
------------------------------------------------------------------------------------------------------------------------
Index
By: www.emcu.it Enrico Marinoni
________________________________________________________________________________
Configure the Java System Environment Variable for Android Studio
For using Android Studio is necessary configure an environment variable
called JAVA_HOME, for do this follow the instructions below.
Start → System..... (see below)
It is very important to add this variable:
JAVA_HOME
for do this select NEW and configure the new window that appears, see
below.
------------------------------------------------------------------------------------------------------------------------
Index
By: www.emcu.it Enrico Marinoni
________________________________________________________________________________
C:Program FilesJavajdk1.8.0_25
is the directory where there is JDK on my PC.
Install the USB drive for your smartphone or tablet for using it in debug
with Android Studio
For use your smartphone or your tablet for debug your APP you must install
the appropriate USB driver.
I have an LG-E610, for find the USB driver I did a search using google and
this phrase:
Android Studio LG-E610
and I found this page, see below, that contain the right driver.
Do the same search for your smartphone or tablet.
------------------------------------------------------------------------------------------------------------------------
Index
By: www.emcu.it Enrico Marinoni
________________________________________________________________________________
Install Android Studio
Download end install the Android Studio from here.
Do a simple APP for test your Android Studio installation
Run the Android Studio
------------------------------------------------------------------------------------------------------------------------
Index
By: www.emcu.it Enrico Marinoni
________________________________________________________________________________
Select New Project and configure the windows that appears, see below.
From the new window that appears you must choose the version of Android
for which you want develop the APP and press NEXT, see below.
------------------------------------------------------------------------------------------------------------------------
Index
By: www.emcu.it Enrico Marinoni
________________________________________________________________________________
From the new window that appears select: Blank Activity
and press NEXT, see below.
Configure the last window as show below and press FINISH.
After you have pressed FINISH the Android Studio configure the environment
------------------------------------------------------------------------------------------------------------------------
Index
By: www.emcu.it Enrico Marinoni
________________________________________________________________________________
(must be necessary a Internet connections and be patient).
At the end you must see something like below.
------------------------------------------------------------------------------------------------------------------------
Index
By: www.emcu.it Enrico Marinoni
________________________________________________________________________________
Select a smatphone or tablet to use in debug
At this point you must choose the right screen resolution for your smartphone
for use it in debug.
In my case, I have an LG-E610 (4”, 320x480pixel, HVGA) and I choose:
HVGA slider (ADP1)(320x480; mdpi) – see below.
------------------------------------------------------------------------------------------------------------------------
Index
By: www.emcu.it Enrico Marinoni
________________________________________________________________________________
Build the project
For build the project select:
Build → Rebuild Project
see below
At the end of the build you must see something like below.
------------------------------------------------------------------------------------------------------------------------
Index
By: www.emcu.it Enrico Marinoni
________________________________________________________________________________
Debug project using your smartphone or tablet
Now for enter in debug, using your smartphone or tablet, do this:
• On your smartphone or tablet select:
Settings (Impostazioni (IT))
Select Developer options (Opzioni dello sviluppatore (IT))
Check off the USB debugging option (Debug USB (IT))
Check Stay awake (Rimani attivo (IT))
see below
------------------------------------------------------------------------------------------------------------------------
Index
By: www.emcu.it Enrico Marinoni
________________________________________________________________________________
• In Android Studio select: Run → Debug 'app'
after some second, appears a window where you have the possibility to
select your smartphone for do the debug of your fist APP, see below.
In my case I chose my LGE LG-E610... and I press OK.
After some seconds on your phone, must appear the result of your APP, see
below.
------------------------------------------------------------------------------------------------------------------------
Index
By: www.emcu.it Enrico Marinoni
________________________________________________________________________________
------------------------------------------------------------------------------------------------------------------------
Index
By: www.emcu.it Enrico Marinoni
________________________________________________________________________________
End debug
For stop the debug select: Debug and after press the red button
see below.
Congratulations, you have managed to create and debug your first APP.
Now I recommend you thoroughly study Android Studio.
------------------------------------------------------------------------------------------------------------------------
Index

More Related Content

What's hot

PT - Siemens WinCC Flexible Security Hardening Guide
PT - Siemens WinCC Flexible Security Hardening GuidePT - Siemens WinCC Flexible Security Hardening Guide
PT - Siemens WinCC Flexible Security Hardening Guideqqlan
 
Motherboard manual ga-ma790x-ds4_e
Motherboard manual ga-ma790x-ds4_eMotherboard manual ga-ma790x-ds4_e
Motherboard manual ga-ma790x-ds4_eCord_Dj
 
Computer repair
Computer repairComputer repair
Computer repairKosal Dean
 
Acer Aspire E 15 Laptop (E5-575-51GG) User manual PDF download / User Guide
  Acer Aspire E 15 Laptop (E5-575-51GG) User manual PDF download  / User Guide  Acer Aspire E 15 Laptop (E5-575-51GG) User manual PDF download  / User Guide
Acer Aspire E 15 Laptop (E5-575-51GG) User manual PDF download / User Guidemanualsheet
 
Acer c300 tmc300sg
Acer c300 tmc300sgAcer c300 tmc300sg
Acer c300 tmc300sglukatak
 
Epo 450 product_guide_en-us
Epo 450 product_guide_en-usEpo 450 product_guide_en-us
Epo 450 product_guide_en-uslvaloto
 
Win plc engine-en
Win plc engine-enWin plc engine-en
Win plc engine-endreamtech2
 

What's hot (9)

E1968 p5ad2 e-deluxe
E1968 p5ad2 e-deluxeE1968 p5ad2 e-deluxe
E1968 p5ad2 e-deluxe
 
PT - Siemens WinCC Flexible Security Hardening Guide
PT - Siemens WinCC Flexible Security Hardening GuidePT - Siemens WinCC Flexible Security Hardening Guide
PT - Siemens WinCC Flexible Security Hardening Guide
 
Motherboard manual ga-ma790x-ds4_e
Motherboard manual ga-ma790x-ds4_eMotherboard manual ga-ma790x-ds4_e
Motherboard manual ga-ma790x-ds4_e
 
Computer repair
Computer repairComputer repair
Computer repair
 
Acer Aspire E 15 Laptop (E5-575-51GG) User manual PDF download / User Guide
  Acer Aspire E 15 Laptop (E5-575-51GG) User manual PDF download  / User Guide  Acer Aspire E 15 Laptop (E5-575-51GG) User manual PDF download  / User Guide
Acer Aspire E 15 Laptop (E5-575-51GG) User manual PDF download / User Guide
 
Acer c300 tmc300sg
Acer c300 tmc300sgAcer c300 tmc300sg
Acer c300 tmc300sg
 
Auto cutmanual
Auto cutmanualAuto cutmanual
Auto cutmanual
 
Epo 450 product_guide_en-us
Epo 450 product_guide_en-usEpo 450 product_guide_en-us
Epo 450 product_guide_en-us
 
Win plc engine-en
Win plc engine-enWin plc engine-en
Win plc engine-en
 

Similar to How to use Android Studio in 40 steps

MSI WS72 Workstation (Intel Xeon) Service Manual PDF (English)
  MSI WS72 Workstation (Intel Xeon) Service Manual PDF (English)   MSI WS72 Workstation (Intel Xeon) Service Manual PDF (English)
MSI WS72 Workstation (Intel Xeon) Service Manual PDF (English) manualsheet
 
Ccs tutorial beta
Ccs tutorial betaCcs tutorial beta
Ccs tutorial betaMac Barx
 
Pandora FMS: WMI Basic Monitoring
Pandora FMS: WMI Basic MonitoringPandora FMS: WMI Basic Monitoring
Pandora FMS: WMI Basic MonitoringPandora FMS
 
Device net guide
Device net guideDevice net guide
Device net guideares111
 
Generic User Guide
Generic User GuideGeneric User Guide
Generic User Guidehome
 
Generic user guide
Generic user guideGeneric user guide
Generic user guidehome
 
Generic user guide
Generic user guideGeneric user guide
Generic user guidehome
 
Generic user guide
Generic user guideGeneric user guide
Generic user guidehome
 
Pagelayouts
PagelayoutsPagelayouts
Pagelayoutsmustafa
 
MSI GT62VR DOMINATOR PRO (GEFORCE® GTX 1070) manual PDF / User Guide
   MSI GT62VR DOMINATOR PRO (GEFORCE® GTX 1070) manual PDF / User Guide   MSI GT62VR DOMINATOR PRO (GEFORCE® GTX 1070) manual PDF / User Guide
MSI GT62VR DOMINATOR PRO (GEFORCE® GTX 1070) manual PDF / User Guidemanualsheet
 
Acer Predator 15 Laptop - G9-593-77WF manual PDF download (English) / User ...
  Acer Predator 15 Laptop - G9-593-77WF manual PDF download (English) / User ...  Acer Predator 15 Laptop - G9-593-77WF manual PDF download (English) / User ...
Acer Predator 15 Laptop - G9-593-77WF manual PDF download (English) / User ...manualsheet
 
V231 E1 02 번역
V231 E1 02 번역V231 E1 02 번역
V231 E1 02 번역guestb36f9b
 
V231 E1 02 번역
V231 E1 02 번역V231 E1 02 번역
V231 E1 02 번역guestb36f9b
 
Debugging React Apps - Rendercon (1).pptx
Debugging React Apps - Rendercon (1).pptxDebugging React Apps - Rendercon (1).pptx
Debugging React Apps - Rendercon (1).pptxNjeri Ngigi
 

Similar to How to use Android Studio in 40 steps (20)

Technical solutions
Technical solutionsTechnical solutions
Technical solutions
 
MSI WS72 Workstation (Intel Xeon) Service Manual PDF (English)
  MSI WS72 Workstation (Intel Xeon) Service Manual PDF (English)   MSI WS72 Workstation (Intel Xeon) Service Manual PDF (English)
MSI WS72 Workstation (Intel Xeon) Service Manual PDF (English)
 
MS-07 Jan June 2017
MS-07 Jan June 2017MS-07 Jan June 2017
MS-07 Jan June 2017
 
Baca japanese
Baca japaneseBaca japanese
Baca japanese
 
Ccs tutorial beta
Ccs tutorial betaCcs tutorial beta
Ccs tutorial beta
 
Pandora FMS: WMI Basic Monitoring
Pandora FMS: WMI Basic MonitoringPandora FMS: WMI Basic Monitoring
Pandora FMS: WMI Basic Monitoring
 
Device net guide
Device net guideDevice net guide
Device net guide
 
Generic User Guide
Generic User GuideGeneric User Guide
Generic User Guide
 
Generic user guide
Generic user guideGeneric user guide
Generic user guide
 
Generic user guide
Generic user guideGeneric user guide
Generic user guide
 
Generic user guide
Generic user guideGeneric user guide
Generic user guide
 
Pagelayouts
PagelayoutsPagelayouts
Pagelayouts
 
Version 1.7
Version 1.7Version 1.7
Version 1.7
 
MSI GT62VR DOMINATOR PRO (GEFORCE® GTX 1070) manual PDF / User Guide
   MSI GT62VR DOMINATOR PRO (GEFORCE® GTX 1070) manual PDF / User Guide   MSI GT62VR DOMINATOR PRO (GEFORCE® GTX 1070) manual PDF / User Guide
MSI GT62VR DOMINATOR PRO (GEFORCE® GTX 1070) manual PDF / User Guide
 
Acer Predator 15 Laptop - G9-593-77WF manual PDF download (English) / User ...
  Acer Predator 15 Laptop - G9-593-77WF manual PDF download (English) / User ...  Acer Predator 15 Laptop - G9-593-77WF manual PDF download (English) / User ...
Acer Predator 15 Laptop - G9-593-77WF manual PDF download (English) / User ...
 
V231 E1 02
V231 E1 02V231 E1 02
V231 E1 02
 
V231 E1 02 번역
V231 E1 02 번역V231 E1 02 번역
V231 E1 02 번역
 
V231 E1 02 번역
V231 E1 02 번역V231 E1 02 번역
V231 E1 02 번역
 
V231 E1 02
V231 E1 02V231 E1 02
V231 E1 02
 
Debugging React Apps - Rendercon (1).pptx
Debugging React Apps - Rendercon (1).pptxDebugging React Apps - Rendercon (1).pptx
Debugging React Apps - Rendercon (1).pptx
 

Recently uploaded

The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
cybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningcybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningVitsRangannavar
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...aditisharan08
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyFrank van der Linden
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 

Recently uploaded (20)

The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
cybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningcybersecurity notes for mca students for learning
cybersecurity notes for mca students for learning
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The Ugly
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 

How to use Android Studio in 40 steps

  • 1. By: www.emcu.it Enrico Marinoni ________________________________________________________________________________ How to use Android Studio • Introduction • Install Java ◦ Test your Java installation ◦ Configure the System Environment Variable for Android Studio • Install the USB drive for your smartphone or tablet for using it in debug with Android Studio • Install Android Studio ◦ Do a simple APP for test your Android Studio installation ◦ Select a smartphone or tablet to use in debug ◦ Build the project ◦ Debug project using your smartphone or tablet ◦ End debug ------------------------------------------------------------------------------------------------------------------------ Index
  • 2. By: www.emcu.it Enrico Marinoni ________________________________________________________________________________ Introduction This tutorial was tested on Win7 64bit Pro. The PC that I used is HP with processor i5 vPro and 4G of RAM. Pay attention that when you choose some options (Build, Debug) you must waiting some seconds before to see the execution of your selection. For using Android Studio must be present on your PC the Java JDK. The JDK is a development environment for building applications, applets, and components using the Java programming language. The JDK is also called: Java SE Development Kit ------------------------------------------------------------------------------------------------------------------------ Index
  • 3. By: www.emcu.it Enrico Marinoni ________________________________________________________________________________ Install Java JDK If you don't know if there is a JDK (also called: Java SE Development Kit), on your PC do this steps. Select START (1) and next Control Panel (2), see below. ------------------------------------------------------------------------------------------------------------------------ Index
  • 4. By: www.emcu.it Enrico Marinoni ________________________________________________________________________________ From the window that appears select: Programs and Features see below. From the new window that appears you must see something like below, see the red box. In my case I have installed the: ------------------------------------------------------------------------------------------------------------------------ Index
  • 5. By: www.emcu.it Enrico Marinoni ________________________________________________________________________________ If you don't see Java JDK (JSE), please install it. You must choose the right JDK (32bit or 64bit). See here. ------------------------------------------------------------------------------------------------------------------------ Index
  • 6. By: www.emcu.it Enrico Marinoni ________________________________________________________________________________ Test your Java installation using this link, see below. ------------------------------------------------------------------------------------------------------------------------ Index
  • 7. By: www.emcu.it Enrico Marinoni ________________________________________________________________________________ Configure the Java System Environment Variable for Android Studio For using Android Studio is necessary configure an environment variable called JAVA_HOME, for do this follow the instructions below. Start → System..... (see below) It is very important to add this variable: JAVA_HOME for do this select NEW and configure the new window that appears, see below. ------------------------------------------------------------------------------------------------------------------------ Index
  • 8. By: www.emcu.it Enrico Marinoni ________________________________________________________________________________ C:Program FilesJavajdk1.8.0_25 is the directory where there is JDK on my PC. Install the USB drive for your smartphone or tablet for using it in debug with Android Studio For use your smartphone or your tablet for debug your APP you must install the appropriate USB driver. I have an LG-E610, for find the USB driver I did a search using google and this phrase: Android Studio LG-E610 and I found this page, see below, that contain the right driver. Do the same search for your smartphone or tablet. ------------------------------------------------------------------------------------------------------------------------ Index
  • 9. By: www.emcu.it Enrico Marinoni ________________________________________________________________________________ Install Android Studio Download end install the Android Studio from here. Do a simple APP for test your Android Studio installation Run the Android Studio ------------------------------------------------------------------------------------------------------------------------ Index
  • 10. By: www.emcu.it Enrico Marinoni ________________________________________________________________________________ Select New Project and configure the windows that appears, see below. From the new window that appears you must choose the version of Android for which you want develop the APP and press NEXT, see below. ------------------------------------------------------------------------------------------------------------------------ Index
  • 11. By: www.emcu.it Enrico Marinoni ________________________________________________________________________________ From the new window that appears select: Blank Activity and press NEXT, see below. Configure the last window as show below and press FINISH. After you have pressed FINISH the Android Studio configure the environment ------------------------------------------------------------------------------------------------------------------------ Index
  • 12. By: www.emcu.it Enrico Marinoni ________________________________________________________________________________ (must be necessary a Internet connections and be patient). At the end you must see something like below. ------------------------------------------------------------------------------------------------------------------------ Index
  • 13. By: www.emcu.it Enrico Marinoni ________________________________________________________________________________ Select a smatphone or tablet to use in debug At this point you must choose the right screen resolution for your smartphone for use it in debug. In my case, I have an LG-E610 (4”, 320x480pixel, HVGA) and I choose: HVGA slider (ADP1)(320x480; mdpi) – see below. ------------------------------------------------------------------------------------------------------------------------ Index
  • 14. By: www.emcu.it Enrico Marinoni ________________________________________________________________________________ Build the project For build the project select: Build → Rebuild Project see below At the end of the build you must see something like below. ------------------------------------------------------------------------------------------------------------------------ Index
  • 15. By: www.emcu.it Enrico Marinoni ________________________________________________________________________________ Debug project using your smartphone or tablet Now for enter in debug, using your smartphone or tablet, do this: • On your smartphone or tablet select: Settings (Impostazioni (IT)) Select Developer options (Opzioni dello sviluppatore (IT)) Check off the USB debugging option (Debug USB (IT)) Check Stay awake (Rimani attivo (IT)) see below ------------------------------------------------------------------------------------------------------------------------ Index
  • 16. By: www.emcu.it Enrico Marinoni ________________________________________________________________________________ • In Android Studio select: Run → Debug 'app' after some second, appears a window where you have the possibility to select your smartphone for do the debug of your fist APP, see below. In my case I chose my LGE LG-E610... and I press OK. After some seconds on your phone, must appear the result of your APP, see below. ------------------------------------------------------------------------------------------------------------------------ Index
  • 17. By: www.emcu.it Enrico Marinoni ________________________________________________________________________________ ------------------------------------------------------------------------------------------------------------------------ Index
  • 18. By: www.emcu.it Enrico Marinoni ________________________________________________________________________________ End debug For stop the debug select: Debug and after press the red button see below. Congratulations, you have managed to create and debug your first APP. Now I recommend you thoroughly study Android Studio. ------------------------------------------------------------------------------------------------------------------------ Index