OS - Android: Difference between revisions

From Phidgets Support
Line 8: Line 8:
Development for your Android OS Phidget application can occur on Linux, Mac OSX, or Windows.
Development for your Android OS Phidget application can occur on Linux, Mac OSX, or Windows.


===== Setup =====
=== Setup ===


You will need the following:
You will need the following:
Line 20: Line 20:
#*<code>sudo apt-get install eclipse</code> for Linux
#*<code>sudo apt-get install eclipse</code> for Linux
# The <span style="color:red;">Phidget Libraries</span> for Android
# The <span style="color:red;">Phidget Libraries</span> for Android
# The <span style="color:red;">Phidget Examples</span> for Android
# For using an Android device for control over the network, the Phidget Webservice should be installed on the host computer
# For using an Android device for control over the network, the Phidget Webservice should be installed on the host computer
#*Click on your host computer language on the [[Software Overview | List of Languages]] for setup information
#*Click on your host computer language on the [[Software Overview | List of Languages]] for setup information


===== Step One: Install the Android SDK =====
=== Step One: Install the Android SDK ===


Google's instructions for installing the Android SDK may be found here:
Google's instructions for installing the Android SDK may be found here:
Line 34: Line 33:
* Connecting the SDK into Eclipse, which is useful for following the example descriptions below
* Connecting the SDK into Eclipse, which is useful for following the example descriptions below


===== Step Two: Run Google's Hello Android Application =====
=== Step Two: Run Google's Hello Android Application ===


To check that the JDK, the Android SDK, and Eclipse have all been configured correctly, use the Google HelloAndroid example:
To check that the JDK, the Android SDK, and Eclipse have all been configured correctly, use the Google HelloAndroid example:
Line 40: Line 39:
[http://developer.android.com/resources/tutorials/hello-world.html http://developer.android.com/resources/tutorials/hello-world.html]
[http://developer.android.com/resources/tutorials/hello-world.html http://developer.android.com/resources/tutorials/hello-world.html]


===== Step Three: Make a Phidget-Based Project =====
=== Step Three: Install the Phidget Library ===
 
 
===== Step Four: Run a Network Phidget Example =====
 
 
 
===== Step Five: Run a Directly Attached Phidget Example =====
 
This section is for Android 3.1 devices and later only.


==Common Problems and Solutions==
==Common Problems and Solutions==

Revision as of 18:53, 31 October 2011

Android is a mobile OS commonly used on smartphones and tablet computers.

Recommended Languages

Android OS programs are written in Java using the Android SDK and the Phidgets library.

Installing Libraries and Drivers

Development for your Android OS Phidget application can occur on Linux, Mac OSX, or Windows.

Setup

You will need the following:

  1. The JDK and Java on your development system
  2. The Android SDK package for your development system
  3. The Eclipse plug-in for Java development
  4. The Phidget Libraries for Android
  5. For using an Android device for control over the network, the Phidget Webservice should be installed on the host computer

Step One: Install the Android SDK

Google's instructions for installing the Android SDK may be found here:

http://developer.android.com/sdk/installing.html

That link contains help and code for:

  • Installing the SDK and platform emulators
  • Connecting the SDK into Eclipse, which is useful for following the example descriptions below

Step Two: Run Google's Hello Android Application

To check that the JDK, the Android SDK, and Eclipse have all been configured correctly, use the Google HelloAndroid example:

http://developer.android.com/resources/tutorials/hello-world.html

Step Three: Install the Phidget Library

Common Problems and Solutions

If you are having trouble, ensure your Phidget libraries are up to date.

  • List relevant problems from "Common Problems and workarounds" doc
  • List common problems for this OS from support forums

Limitations

List any limitations associated with running Phidgets with this OS.