OS - Android: Difference between revisions

From Phidgets Support
No edit summary
No edit summary
Line 1: Line 1:
[[Category:OS]]
[[Category:OS]]
Android is a mobile OS commonly used on smartphones and tablet computers.


==Getting Started (Libraries and Drivers)==
[[File:Icon-Android.png‎|64x64px|link=]] Android is a mobile OS commonly used on smartphones and tablet computers.


===Installing===
__TOC__


====Android Java Platform====
Tablets with a USB port and Android version 3.1 or greater can control Phidgets directly plugged in to them.  Earlier Android versions (tested down to 2.1) can control Phidgets over a network using the [[#Webservice|Webservice]].


====Phidget Libraries====
==Getting Started (Libraries and Drivers)==


====Permissions====
===Installing===
 
===Checking===
 
====Software====
 
====Hardware====
 
====Troubleshooting====
 
==Programming Languages==
 
Android OS programs are written in [[Language - Android Java|Java]] using the Android SDK and the Phidgets library.
 
Note that Android Java is NOT the same as mainstream Java.  Any Java programs you have will probably need significant modification before they run on Android, including our [[Language - Java|mainstream Java]] Phidget Examples
 
==Webservice==


===Setting Up the Webservice===
====Android Java Development Platform====
 
===Using the Webservice===
 
==Advanced Uses==
 
==Installing Libraries and Drivers==


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 ===


You will need the following:
You will need the following:
Line 50: Line 25:
#*<code>sudo apt-get install eclipse</code> (for Linux)
#*<code>sudo apt-get install eclipse</code> (for Linux)


=== Step One: Install the Android SDK ===
=====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 59: Line 34:
* Installing the SDK and platform emulators  
* Installing the SDK and platform emulators  
* Connecting the SDK into Eclipse, which is useful for following the example descriptions later
* Connecting the SDK into Eclipse, which is useful for following the example descriptions later
=== 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 68: Line 41:
Once you have confirmed that the Android SDK has been correctly installed, you are ready to begin developing applications with the [[Language - Android Java | Android Java]] libraries and language.
Once you have confirmed that the Android SDK has been correctly installed, you are ready to begin developing applications with the [[Language - Android Java | Android Java]] libraries and language.


==Common Problems and Solutions==
====Phidget Libraries====
 
====Permissions====
 
===Checking===
 
====Software====
 
====Hardware====
 
====Troubleshooting====
 
==Programming Languages==
 
Android OS programs are written in [[Language - Android Java|Java]] using the Android SDK and the Phidgets library.
 
Note that Android Java is NOT the same as mainstream Java.  Any Java programs you have will probably need significant modification before they run on Android, including our [[Language - Java|mainstream Java]] Phidget Examples
 
==Webservice==
 
===Setting Up the Webservice===
 
===Using the Webservice===
 
==Advanced Uses==


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


==Limitations==


Android 3.1 and later can run Phidgets directly plugged into a local USB port.
==Common Problems and Solutions==


Other versions of Android can remotely control Phidgets over a network via the [[Phidget Webservice]].  This has been tested down to Android version 2.1.
If you are having trouble, ensure your Phidget libraries are ''up to date''.

Revision as of 18:50, 2 April 2012


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

Tablets with a USB port and Android version 3.1 or greater can control Phidgets directly plugged in to them. Earlier Android versions (tested down to 2.1) can control Phidgets over a network using the Webservice.

Getting Started (Libraries and Drivers)

Installing

Android Java Development Platform

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

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
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 later

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

Once you have confirmed that the Android SDK has been correctly installed, you are ready to begin developing applications with the Android Java libraries and language.

Phidget Libraries

Permissions

Checking

Software

Hardware

Troubleshooting

Programming Languages

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

Note that Android Java is NOT the same as mainstream Java. Any Java programs you have will probably need significant modification before they run on Android, including our mainstream Java Phidget Examples

Webservice

Setting Up the Webservice

Using the Webservice

Advanced Uses

Common Problems and Solutions

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