Intro to Android in Eclipse

Download Report

Transcript Intro to Android in Eclipse

Introduction to Android
Practical 1
Changing the Eclipse Workspace
Importing Existing Projects into Eclipse
Updating the Android SDK
Practical Exercises
E.R.Edwards 11/04/2016
11/04/2016
Staffordshire University
School of Computing
Importing an Existing Project into Eclipse





File
Import
Existing Project into
workspace
Find project required and
click Ok
Click Finish and project
should be imported
E.R.Edwards 11/04/2016
11/04/2016
Staffordshire University
School of Computing
Importing Existing Project (cont)
E.R.Edwards 11/04/2016
11/04/2016
Staffordshire University
School of Computing
Changing the Workspace
File
 Switch Workspace
 Other....
 Browse
 Find workspace
directory
 Ok
 OK

E.R.Edwards 11/04/2016
11/04/2016
Staffordshire University
School of Computing
Updating Android SDK








Ensure Eclipse is closed.
Find Android-sdk-windows
directory
Click on SDK Manager.exe
Select Available packages
Tick box for all required
updates
Click install selected button
If necessary accept licence
agreement
If it fails to access the download
site correctly at the university
check the proxy settings (in
settings) and tick force HTTPs
box
HTTP proxy server - Cruscashe-int.staffs.ac.uk
HTTP proxy Port 3128
E.R.Edwards 11/04/2016
11/04/2016
Staffordshire University
School of Computing
Take a look at the Samples


Each platform comes with a set of example apps to
demonstrate the code needed.
The samples are found in the Android SDK folder under
samples /Platform
– List of sample programs
• http://developer.android.com/resources/samples/index.html
– How to access samples
• http://developer.android.com/resources/samples/get.html

Samples are added to Eclipse by
– Create a new project
– Tick create from existing project
– Navigate to saved sample
E.R.Edwards 11/04/2016
11/04/2016
Staffordshire University
School of Computing
Practical Exercise

Read the following sections of Android developers site
– What is Android
– http://developer.android.com/guide/basics/what-is-android.html
– Application Fundamentals
– http://Developer.android.com/guide/topics/fundamentals.html
– User Interface
– http://developer.android.com/guide/topics/ui/index.html
– Application Resources
– http://developer.android.com/guide/topics/resources/index.html

Check out the tutorials in the resources section
– http://developer.android.com/resources/tutorials/views/index.html

Start on Notepad tutorial
– http://developer.android.com/resources/tutorials/notepad/index.html

Take a look at AppInventor on Google.
– http://appinventor.googlelabs.com/
E.R.Edwards 11/04/2016
11/04/2016
Staffordshire University
School of Computing