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.co...
Problems?
Java JRE or JDK: check this out
http://docs.oracle.com/javase/7/docs/webnotes/install/
for Linux try something l...
IDEs: Android Studio or Eclipse
(Android Development Tools plugin)
Eclipse – less bugs, but a bit tricky to install.(can
a...
Eclipse ADT (for guys new to Eclipse):
http://developer.android.com/sdk/installing/installing-
adt.html#Download
Android S...
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
windo...
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
...
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) → ...
Contact me if you have any
problems or edits you want to make
with this presentation.
www.facebook.com/vlad.kolesnyk
techSocAndroid1
techSocAndroid1
techSocAndroid1
Upcoming SlideShare
Loading in...5
×

techSocAndroid1

89

Published on

Basic tutorial on Android for techSoc.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
89
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

techSocAndroid1

  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: http://docs.oracle.com/javase/7/docs/webnotes/install/index.html (sudo apt-get install openjdk-7-jre for Linux)
  4. 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. 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): 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. 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. https://dl-ssl.google.com/android/eclipse/ 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. www.facebook.com/vlad.kolesnyk
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×