Changes

Jump to: navigation, search

BTC640/Mobile

333 bytes added, 13:34, 4 April 2013
Lab submission
== Android development environment ==
Unless you already have an Android development environment set up you will need to use the '''Note: Andora 1.2 live CD. This is has not been updated for a modified version of the popular Fedora linux distributionlong time, modified by Raymond Chan to include the Android development tools including Eclipse with all the plugins, the Android SDK, and tools like the Android emulatorthis section will be rewritten once I figure out what works in our labs this semester.'''
The point of a Unless you already have an Android development environment set up you will need to use the Andora 1.2 live CD DVD. This is that you can test a modified version of the operating system on the CD without installing it or making any changes whatsoever popular Fedora linux distribution, modified by Raymond Chan to include the harddrive. That means that Android development tools including Eclipse with all of the changes you make during plugins, the sessionAndroid SDK, including projects and virtual devices you created will be gone as soon as you reboot. Everything is stored in RAMtools like the Android emulator.
If The point of a live DVD is that you're using your own machine - simply put in can test the operating system on the CD, reboot, and tell your machine DVD without installing it or making any changes whatsoever to boot from the CDharddrive. If you're using one That means that all of the lab machines - turn changes you make during the switch to "External", put in the cdsession, including projects and virtual devices you created will be gone as soon as you reboot. You do not need an external harddriveEverything is stored in RAM.
If you're using your own machine - simply put in the DVD, reboot, and tell your machine to boot from the DVD. If you're using one of the lab machines - turn the switch to "External", put in the DVD, and reboot. You do not need an external harddrive. Once it boots - click the login button. Then wait for Eclipse to start, which will happen automaticlly. Note that this environment is a lot slower than it would normally be because everything has to be read from the CDDVD. Eclipse will start automatically, wait for that.
== AVD ==
# Create a new virtual device
# Give it a name (whatever you want), select a target (there's only one choice)
# This is important: '''Do not create a large SD Card'''. Since everything is in RAM you only have a few hundred megs of fake disk space, so even though a 16MB SD card is unrealistic, we won't need more than that for anything we'll be doing. If you create a much larger SD card you will simply run out of virtual disk space and everything will crash.
# Start your device, and wait for it to boot. You can play around in there, this is what an Android phone is like.
# Leave the emulator running, and go back to eclipse. You can close the SDK and AVD Manager now.
# Select your package in the package explorer, and click the green Run button. Run it as an Android application. This will compile your app and run it on your phone (if it's connected) or on the emulator (if it's running).
# Go back to main.xml and make the app a login screen. Change the hello world text (using an existing or new @string resource) to "YourName's fancy app", add username/password textviews and fields, and a button. Make sure your new fields and button text are @string resources.
# Experiment with other widgets and layouts available through the GUI.
# When you app is ready - export it as an unsigned application package.
= Lab submission =
This is a marked lab. Please submit it using Moodle (Lab5Lab8). Submit:
Submit a * A zip file (or another compressed format) of your project and a (this will be under the ~/workspace directory),* The APK file,* A screenshot of the emulator running your code.app

Navigation menu