Published on

Basic tutorial on Android for techSoc.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

No Downloads
Total Views
On Slideshare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide


  1. 1. Welcome!
  2. 2. For next few classes we are going to learn basics to build and Android App.
  3. 3. You need java platform to build Android App with any IDE. So if you don't have one: Java JRE or JDK: (sudo apt-get install openjdk-7-jre for Linux)
  4. 4. Problems? Java JRE or JDK: check this out 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. 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. 6. Eclipse ADT (for guys new to Eclipse): adt.html#Download Android Studio: Eclipse (and want to follow few steps of upgrading it on slides below): developers/indigosr2 would recommend Classic: ( 422/junosr2)
  7. 7. Don't forget on Linux you need to install IA32 library as well. (sudo apt-get install ia32-libs).
  8. 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. 9. <Help> → <Install New Software>
  10. 10. Press Add. Give the following name and Location inside the Add Repository window:
  11. 11. Select All and Next
  12. 12. Continue installation and restart EclipseIf you have any security warnings, click OK.
  13. 13. Using SDK Manager
  14. 14. Update SDK Tools download any SDK version depending on your device.
  15. 15. You can check Android version in your settings, for better deployment.
  16. 16. Now you can try to create your first android project.
  17. 17. If you are asked to set up preference, skip it. Next configure SDK. Click to Install Android 2.2
  18. 18. You could have this bitch. Install it.
  19. 19. Congrats if you are getting something like this.
  20. 20. Run your App
  21. 21. Enable USB debugging on your device to run your apps on it. Connect your phone through USB.
  22. 22. You prob are getting this alert on your phone. Guess what? Accept it.
  23. 23. However if you don't have Android phone or you are working with geo locations, you can use Virtual Device.
  24. 24. Press Android Virtual Device Manager button next to SDK Manager. Press New.
  25. 25. Pick name, Target and Device you wish Click on device you created and press Start.
  26. 26. 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.
  27. 27. You prob going to get something like this on your phone. Accept it.
  28. 28. Now run app we created recently.
  29. 29. 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.
  30. 30. Contact me if you have any problems or edits you want to make with this presentation.