Your SlideShare is downloading. ×
  • Like
Upcoming SlideShare
Loading in...5

Thanks for flagging this SlideShare!

Oops! An error has occurred.


Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply



Basic tutorial on Android for techSoc.

Basic tutorial on Android for techSoc.

Published in Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    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

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

    No notes for slide


  • 1. Welcome!
  • 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: (sudo apt-get install openjdk-7-jre for Linux)
  • 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. 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): 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. 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. Press Add. Give the following name and Location inside the Add Repository window:
  • 11. Select All and Next
  • 12. Continue installation and restart EclipseIf you have any security warnings, click OK.
  • 13. Using SDK Manager
  • 14. Update SDK Tools download any SDK version depending on your device.
  • 15. You can check Android version in your settings, for better deployment.
  • 16. Now you can try to create your first android project.
  • 17. If you are asked to set up preference, skip it. Next configure SDK. Click to Install Android 2.2
  • 18. You could have this bitch. Install it.
  • 19. Congrats if you are getting something like this.
  • 20. Run your App
  • 21. Enable USB debugging on your device to run your apps on it. Connect your phone through USB.
  • 22. You prob are getting this alert on your phone. Guess what? Accept it.
  • 23. However if you don't have Android phone or you are working with geo locations, you can use Virtual Device.
  • 24. Press Android Virtual Device Manager button next to SDK Manager. Press New.
  • 25. Pick name, Target and Device you wish Click on device you created and press Start.
  • 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. You prob going to get something like this on your phone. Accept it.
  • 28. Now run app we created recently.
  • 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. Contact me if you have any problems or edits you want to make with this presentation.