1 / 19

Cosc 5/4730

Cosc 5/4730. Information and Resources. Java. If you don't already have java SDK installed http://java.sun.com Get the Java SE SDK v7 (not v8 as of July) Install it. Eclipse . http://www.eclipse.org/downloads Download the Eclipse Standard (v4.4 is current)

gyala
Download Presentation

Cosc 5/4730

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Cosc 5/4730 Information and Resources

  2. Java. • If you don't already have java SDK installed • http://java.sun.com • Get the Java SE SDK v7 (not v8 as of July) • Install it.

  3. Eclipse • http://www.eclipse.org/downloads • Download the Eclipse Standard (v4.4 is current) • The labs are using v4.3 Kepler • It's in a zip format. • Open it and extract to somewhere useful • c:\program files\ for example • create the short cuts on the desktop or in the start menu as you feel necessary

  4. Android SDK and plugin • Follow the directions on the page • http://developer.android.com/sdk/index.html • Following the directions for eclipse and installing the ADT plugin. • https://dl-ssl.google.com/android/eclipse/ • notes: • android SDK doesn't have an installer. It's a zip file, that then downloads the packages you need. • the setup for the SDk will download about 1GB+ of data, so it may take a while to complete. • With the setup of android SDK, you may need to go to settings and change it to force https://… before it works. • when installing the plugin for eclipse, https://… may fail. you can use http://… instead.

  5. Signing Keys • Eclipse creates a debug key for you, it is good for 1 year. For this class, that is all you will need. • A note, that is one different key on each machine you use. Which can cause you issues, so you can copy it around all the development environments you use. • C:\users\<username>\.android\debug.keystore and default.keysetfiles • If you plan to release you app to android market then you will need to get a real developer key.

  6. Department machines. • Windows • Eclipse and both SDKs are already installed • c:\phone is the directory where everything is stored, if eclipse does not automatically find it. • Linux • Eclipse 4.2.X is installed (cmd: eclipse) • Eclipse may not find the android sdk. • /usr/local/android-sdk-linux/ is the directory.

  7. Android • Remember, Android is the OS and not the hardware manufacture. • http://developer.samsung.com/develop for Samsung’s developer site. • http://www.motorola.com/ • http://developer.motorola.com/?WT.mc_id=us_mdc developers site. For android tools, click the SDK add-ons link. • http://www.htc.com/ • http://developer.htc.com/ with very limited developers, but you can get the some source code • Others: http://www.andro-phones.com/all-android-phones.php

  8. Android General info • While there are a lot of sites covering android, I’ve found http://www.androidcentral.com/ gives good coverage, forums, a lots of information and tutorials. • Includes information on “rooting” an android phone. • Remember Android is based on the linux kernel. • There seems to be a number of android app stores • Amazon: http://www.amazon.com/mobile-apps/b?node=2350149011 • and http://www.appbrain.com/ but I’ve never used this one.

  9. Android Emulators • Much of the code can be run on the emulators (but not all, we need the actual devices as well). • Read up on how to control the emulators, there is a ton of information. • http://developer.android.com/tools/devices/emulator.html

  10. Desktop software • Motorola and other provide desktop software to sync media files. • I haven’t seen anything that allows you to backup or “sync” with your computer. • The gmail account syncs your contacts and calendar with gmail.com. • There is backup software • JS backup will back the device and store the file local or in the cloud (such as dropbox). • Clockworld Recovery and Titanium can be used, but not free. • Some require that you root your phone.

  11. OTA app install • Using Cosc’s web servers • Howto create web pages: http://www.cs.uwyo.edu/policies/web.html • Create a .htaccess file • Add one or more of the following: • AddType application/vnd.android.package-archive .apk

  12. OTA app install (2) • Create a html file • Copy the apk file to web server and link to it • <a href="app.apk">app</a> • Android phone • Settings->Applications Settings • Check unknown sources • otherwise you can only install from the android market place.

  13. Android APIs • Developer pages have lot of examples and reference guides • api reference guide: http://developer.android.com/reference/android/app/package-summary.html • Resources and tutorials (where the helloworld example came from) • http://developer.android.com/resources/index.html • StackOverflow.com has numerous Q&A and examples as well. • I’ll try and reference the websites I use in the slides and examples.

  14. Android and Versions. https://developer.android.com/about/dashboards/index.html

  15. Android and Version (2) • There are some pretty major differences between 2.3.X (we are skipping 2.2 and 3.X Honeycomb) and 4.X • There are also differences between 4.0 (ics), 4.1, 4.2, 4.3 (jelly Bean), and 4.4 (Kitkat) • And huge difference in Android L (at the time of the preview). • I’m going to teach relatively current material with the support libraries so we use the new APIs (with minor differences) on 2.3.3+ • Not everything will look the same, but it will function similarly.

  16. Android and Version (3) • Lastly, Android is a moving target • You will need to keep in mind what version you are compiling too • The support library is updated (randomly) as well to fix errors and there is not necessary an announcement. • At some point during the semester the final edition of “Android L” will come out (LemonHead, Lemon Drops and Licorice are guesses for the what the L standards for). • Last year, android discounted the map API (and associated necessary keys) during the semester.

  17. My First Android Project • In Eclipse, Select Android > Android Application Project, and click Next. • Enter the settings for your application, including Application Name, Project Name, Package Name, API level settings and presentation Theme, and click Next. • Enter the project configuration options, and click Next. • Optionally enter launcher icon settings, and click Next. • In the Create Activity page, select an application template to use. • What are the templates you ask? • https://developer.android.com/tools/projects/templates.html

  18. My First Android Project (2) • Depending on the selected template a lot of code maybe written for you, Now: • Edit the res/layout/activity_main.xml and add Widgets as needed. • You may want to change the layout from a Relative to LinearLayout (Vertical) • In the activity/fragment add java code to control you widgets.

  19. Q A &

More Related