|
||||||||
Android and Imaging
Part I: Creating the Software
Development Environment
Assume you have done this already. If you encountered problems, please take a look at the tips on these sites http://developer.android.com/sdk/index.html
http://developer.android.com/sdk/installing.html
http://developer.android.com/sdk/eclipse-adt.html
Linking Your Phone to Your Computer
http://developer.android.com/guide/developing/device.html#setting-up http://developer.android.com/sdk/win-usb.html (Note: You may
need to restart your computer after installing the USB driver in order for the
phone to show up in Eclipse.) Part II: Developing Image Processing Programs
for Android Now
that the Google Android SDK, the Java Runtime, and the Eclipse IDE are all set
up on your computer, we are ready to start writing image processing programs
that can run an Android-compatible mobile device.
Viewfinder Example
Now,
having grasped the fundamentals of building and running an Android application,
we will create a more complicated project involving the onboard camera and
real-time image processing.
Project name: Viewfinder
Check the box
for Android 2.0.1 Application
name: Viewfinder
Package name:
com.example.viewfinder
Check the box
for Create Activity and enter: Viewfinder
Min SDK Version:
6
Figure
1. “Viewfinder” program running on Android-based phone.
Real-time Phone Debugging in Eclipse It
is actually possible to view real-time messages from the phone in Eclipse,
which can be very helpful for debugging and code development.
[1] Parts of this tutorial borrow explanations from the official Android developers’ website (developer.android.com). |
||||||||
© Lynne Grewe |