SlideShare une entreprise Scribd logo
1  sur  33
Welcome!
For next few classes we are
going to learn basics to build
and Android App.
You need java platform to build Android
App with any IDE.
So if you don't have one:
Java JRE or JDK:
http://docs.oracle.com/javase/7/docs/webnotes/install/index.html
(sudo apt-get install openjdk-7-jre for Linux)
Problems?
Java JRE or JDK: check this out
http://docs.oracle.com/javase/7/docs/webnotes/install/
for Linux try something like:
tar xzvf ~/Downloads/jdk-7u<your version>-linux-x64.tar.gz
sudo mv jdk1.7.0_21/ /usr/lib/jvm/
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_<your
version>/bin/java 1
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0_<your
version>/bin/javac 1
sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.7.0_<your
version>/bin/javaws 1
sudo update-alternatives --config java
sudo update-alternatives --config javaws
IDEs: Android Studio or Eclipse
(Android Development Tools plugin)
Eclipse – less bugs, but a bit tricky to install.(can
also be used for java development)
For new guys in Eclipse, better to install ADT
plugin which comes with eclipse and all settings
Android Studio – a lot bugs(yet), very easy to set
up, better app design tools, worse geo coordinates
tracking on virual device.
Eclipse ADT (for guys new to Eclipse):
http://developer.android.com/sdk/installing/installing-
adt.html#Download
Android Studio:
http://developer.android.com/sdk/installing/studio.html#Updating
Eclipse (and want to follow few steps of upgrading it on
slides below):
http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-
developers/indigosr2
would recommend Classic:
(http://www.eclipse.org/downloads/packages/eclipse-classic-
422/junosr2)
Don't forget on Linux you need to
install IA32 library as well.
(sudo apt-get install ia32-libs).
Next few slides are for guys who
have Eclipse on their computer or are
not going to set up Eclipse ADT for
some reason.
<Help> → <Install New
Software>
https://dl-ssl.google.com/android/eclipse/
Press Add.
Give the following
name and Location
inside the Add
Repository
window:
Select All
and Next
Continue
installation
and
restart EclipseIf you have any security
warnings, click OK.
Using SDK Manager
Update SDK
Tools
download any
SDK version
depending on
your device.
You can check Android
version in your settings,
for better deployment.
Now you can try to create your first
android project.
If you are asked
to set up
preference, skip
it.
Next configure
SDK.
Click to Install
Android 2.2
You could
have this
bitch.
Install it.
Congrats if you are getting
something like this.
Run your App
Enable USB debugging
on your device to run
your apps on it.
Connect your phone
through USB.
You prob are getting
this alert on your
phone.
Guess what? Accept
it.
However if you don't have
Android phone or you are
working with geo locations,
you can use Virtual Device.
Press Android Virtual Device Manager
button next to SDK Manager.
Press New.
Pick name,
Target and
Device you wish
Click on device
you created and
press Start.
As noted earlier, if
you are working
with geo locations,
I would
recommend to use
Eclipse IDE, as
you can put
coordinates
directly on VD.
You prob going to get
something like this
on your phone.
Accept it.
Now run app we
created recently.
Hopefully you are getting something like this.
Otherwise next to the Run button, press arrow,
then (Run Configurations) → (Target) → and
choose device you want to run.
Contact me if you have any
problems or edits you want to make
with this presentation.
www.facebook.com/vlad.kolesnyk

Contenu connexe

Tendances

Ayw app inventor
Ayw app inventorAyw app inventor
Ayw app inventor
pbeerak
 
Applico Android Info Session at Columbia University
Applico Android Info Session at Columbia UniversityApplico Android Info Session at Columbia University
Applico Android Info Session at Columbia University
Applico
 

Tendances (20)

Anveshan android
Anveshan androidAnveshan android
Anveshan android
 
Android Wear Code Lab
Android Wear Code LabAndroid Wear Code Lab
Android Wear Code Lab
 
Development environment
Development environmentDevelopment environment
Development environment
 
Instrumentation 101
Instrumentation 101Instrumentation 101
Instrumentation 101
 
Ppt of tutorial android app
Ppt of tutorial android appPpt of tutorial android app
Ppt of tutorial android app
 
How to record screen activity
How to record screen activityHow to record screen activity
How to record screen activity
 
Testing Sucks, But It Doesn't Have To
Testing Sucks, But It Doesn't Have ToTesting Sucks, But It Doesn't Have To
Testing Sucks, But It Doesn't Have To
 
Starting Native Development on Google Glass
Starting Native Development on Google GlassStarting Native Development on Google Glass
Starting Native Development on Google Glass
 
Essentials of developing_tizen_web_application_en_1.0
Essentials of developing_tizen_web_application_en_1.0Essentials of developing_tizen_web_application_en_1.0
Essentials of developing_tizen_web_application_en_1.0
 
Workshop on Sencha Touch - Part 2 - First application in sencha touch
Workshop on Sencha Touch - Part 2 - First application in sencha touchWorkshop on Sencha Touch - Part 2 - First application in sencha touch
Workshop on Sencha Touch - Part 2 - First application in sencha touch
 
Ayw app inventor
Ayw app inventorAyw app inventor
Ayw app inventor
 
Android development session 5 - Debug android studio
Android development   session 5 - Debug android studioAndroid development   session 5 - Debug android studio
Android development session 5 - Debug android studio
 
Applico Android Info Session at Columbia University
Applico Android Info Session at Columbia UniversityApplico Android Info Session at Columbia University
Applico Android Info Session at Columbia University
 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
 
Week 1 - Android Study Jams
Week 1 - Android Study JamsWeek 1 - Android Study Jams
Week 1 - Android Study Jams
 
Mastering the NDK with Android Studio 2.0 and the gradle-experimental plugin
Mastering the NDK with Android Studio 2.0 and the gradle-experimental pluginMastering the NDK with Android Studio 2.0 and the gradle-experimental plugin
Mastering the NDK with Android Studio 2.0 and the gradle-experimental plugin
 
App inventor
App inventorApp inventor
App inventor
 
Installing android sdk on net beans
Installing android sdk on net beansInstalling android sdk on net beans
Installing android sdk on net beans
 
Build Your First Android App
Build Your First Android AppBuild Your First Android App
Build Your First Android App
 
selenium-2-mobile-web-testing
selenium-2-mobile-web-testingselenium-2-mobile-web-testing
selenium-2-mobile-web-testing
 

En vedette (10)

A Distributed Architecture System for Recognizing Textual Entailment
A Distributed Architecture System for Recognizing Textual EntailmentA Distributed Architecture System for Recognizing Textual Entailment
A Distributed Architecture System for Recognizing Textual Entailment
 
Rain delay - ppt
Rain delay - pptRain delay - ppt
Rain delay - ppt
 
Reconverse Big Data by Innovantage
Reconverse Big Data by InnovantageReconverse Big Data by Innovantage
Reconverse Big Data by Innovantage
 
Carol pdf
Carol pdfCarol pdf
Carol pdf
 
Rus skp brandbook_update2012
Rus skp brandbook_update2012Rus skp brandbook_update2012
Rus skp brandbook_update2012
 
TalentMine_ Know Your Strengths
TalentMine_ Know Your StrengthsTalentMine_ Know Your Strengths
TalentMine_ Know Your Strengths
 
How does Tame work?
How does Tame work?How does Tame work?
How does Tame work?
 
Periodo monarquico
Periodo monarquicoPeriodo monarquico
Periodo monarquico
 
Fuentes formales de derecho
Fuentes formales  de  derechoFuentes formales  de  derecho
Fuentes formales de derecho
 
Deep Reasoning
Deep ReasoningDeep Reasoning
Deep Reasoning
 

Similaire à techSocAndroid1

Eclipse & android setup
Eclipse & android setupEclipse & android setup
Eclipse & android setup
China Bigs
 
03 Beginning Android Application Development
03 Beginning Android Application Development03 Beginning Android Application Development
03 Beginning Android Application Development
Arief Gunawan
 
Ayw android env_setup
Ayw android env_setupAyw android env_setup
Ayw android env_setup
pbeerak
 

Similaire à techSocAndroid1 (20)

Android app upload
Android app uploadAndroid app upload
Android app upload
 
Android training in Noida
Android training in NoidaAndroid training in Noida
Android training in Noida
 
Getting Enter in Android development
Getting Enter in Android developmentGetting Enter in Android development
Getting Enter in Android development
 
Android
AndroidAndroid
Android
 
Final NEWS.pdf
Final NEWS.pdfFinal NEWS.pdf
Final NEWS.pdf
 
Final NewsApp.pdf
Final NewsApp.pdfFinal NewsApp.pdf
Final NewsApp.pdf
 
Eclipse & android setup
Eclipse & android setupEclipse & android setup
Eclipse & android setup
 
Android wear notes
Android wear notesAndroid wear notes
Android wear notes
 
Android wear notes
Android wear notesAndroid wear notes
Android wear notes
 
Bird.pdf
 Bird.pdf Bird.pdf
Bird.pdf
 
Module-I_Introduction-to-Android.pptx
Module-I_Introduction-to-Android.pptxModule-I_Introduction-to-Android.pptx
Module-I_Introduction-to-Android.pptx
 
PhoneGap Application Development - Santhi J Krishnan
PhoneGap Application Development - Santhi J KrishnanPhoneGap Application Development - Santhi J Krishnan
PhoneGap Application Development - Santhi J Krishnan
 
Android Application Development
Android Application DevelopmentAndroid Application Development
Android Application Development
 
03 Beginning Android Application Development
03 Beginning Android Application Development03 Beginning Android Application Development
03 Beginning Android Application Development
 
Bai thuc hanh lap trinh Android so 1
Bai thuc hanh lap trinh Android so 1Bai thuc hanh lap trinh Android so 1
Bai thuc hanh lap trinh Android so 1
 
Android programming-basics
Android programming-basicsAndroid programming-basics
Android programming-basics
 
Homework seriesandroidworkshop JUly 12th
Homework seriesandroidworkshop JUly 12thHomework seriesandroidworkshop JUly 12th
Homework seriesandroidworkshop JUly 12th
 
Ayw android env_setup
Ayw android env_setupAyw android env_setup
Ayw android env_setup
 
Android software development – the first few hours
Android software development – the first few hoursAndroid software development – the first few hours
Android software development – the first few hours
 
androidstudio.pptx
androidstudio.pptxandroidstudio.pptx
androidstudio.pptx
 

Dernier

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Dernier (20)

Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 

techSocAndroid1

  • 2. For next few classes we are going to learn basics to build and Android App.
  • 3. You need java platform to build Android App with any IDE. So if you don't have one: Java JRE or JDK: http://docs.oracle.com/javase/7/docs/webnotes/install/index.html (sudo apt-get install openjdk-7-jre for Linux)
  • 4. Problems? Java JRE or JDK: check this out http://docs.oracle.com/javase/7/docs/webnotes/install/ for Linux try something like: tar xzvf ~/Downloads/jdk-7u<your version>-linux-x64.tar.gz sudo mv jdk1.7.0_21/ /usr/lib/jvm/ sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_<your version>/bin/java 1 sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0_<your version>/bin/javac 1 sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.7.0_<your version>/bin/javaws 1 sudo update-alternatives --config java sudo update-alternatives --config javaws
  • 5. IDEs: Android Studio or Eclipse (Android Development Tools plugin) Eclipse – less bugs, but a bit tricky to install.(can also be used for java development) For new guys in Eclipse, better to install ADT plugin which comes with eclipse and all settings Android Studio – a lot bugs(yet), very easy to set up, better app design tools, worse geo coordinates tracking on virual device.
  • 6. Eclipse ADT (for guys new to Eclipse): http://developer.android.com/sdk/installing/installing- adt.html#Download Android Studio: http://developer.android.com/sdk/installing/studio.html#Updating Eclipse (and want to follow few steps of upgrading it on slides below): http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee- developers/indigosr2 would recommend Classic: (http://www.eclipse.org/downloads/packages/eclipse-classic- 422/junosr2)
  • 7. Don't forget on Linux you need to install IA32 library as well. (sudo apt-get install ia32-libs).
  • 8. Next few slides are for guys who have Eclipse on their computer or are not going to set up Eclipse ADT for some reason.
  • 9. <Help> → <Install New Software>
  • 10. https://dl-ssl.google.com/android/eclipse/ Press Add. Give the following name and Location inside the Add Repository window:
  • 12.
  • 13. Continue installation and restart EclipseIf you have any security warnings, click OK.
  • 15. Update SDK Tools download any SDK version depending on your device.
  • 16. You can check Android version in your settings, for better deployment.
  • 17. Now you can try to create your first android project.
  • 18. If you are asked to set up preference, skip it. Next configure SDK. Click to Install Android 2.2
  • 19.
  • 20.
  • 22. Congrats if you are getting something like this.
  • 24. Enable USB debugging on your device to run your apps on it. Connect your phone through USB.
  • 25. You prob are getting this alert on your phone. Guess what? Accept it.
  • 26. However if you don't have Android phone or you are working with geo locations, you can use Virtual Device.
  • 27. Press Android Virtual Device Manager button next to SDK Manager. Press New.
  • 28. Pick name, Target and Device you wish Click on device you created and press Start.
  • 29. As noted earlier, if you are working with geo locations, I would recommend to use Eclipse IDE, as you can put coordinates directly on VD.
  • 30. You prob going to get something like this on your phone. Accept it.
  • 31. Now run app we created recently.
  • 32. Hopefully you are getting something like this. Otherwise next to the Run button, press arrow, then (Run Configurations) → (Target) → and choose device you want to run.
  • 33. Contact me if you have any problems or edits you want to make with this presentation. www.facebook.com/vlad.kolesnyk