|
|
(7 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
| [[Category:Language]]
| | #REDIRECT [[Language_-_Java_Android_Studio_Android]] |
| {{OSLang|[[File:Icon-Android.png|64x64px|left|link=|alt=]]|Android Java is the main language used to program for the [[OS - Android|Android OS]].}}
| |
| __TOC__
| |
| | |
| Android Java is currently not supported in Phidget22. Support is planned to be added in a future update.
| |
| | |
| <!--
| |
| == Introduction ==
| |
| | |
| If this is your first time working with a Phidget, we suggest starting with the Getting Started page for your specific device. This can be found in the user guide for your device. That page will walk you through installing drivers and libraries for your operating system, and will then bring you back here to use Android specifically.
| |
| Android is capable of using the complete Phidget API, including events. We also provide example code in Android for all Phidget devices.
| |
| | |
| '''<span style="color:#FF0000">List all frameworks or IDEs supported in this version</span>'''
| |
| | |
| == Quick Downloads ==
| |
| | |
| '''<span style="color:#FF0000">List of download links, to be added once files are available</span>'''
| |
| | |
| === Documentation ===
| |
| === Example Code ===
| |
| === Libraries and Drivers ===
| |
| | |
| == Getting Started with Android Java ==
| |
| | |
| If you are new to writing code for Phidgets, we recommend starting by running, then modifying existing examples. This will allow you to:
| |
| {{ExampleCodeReasons}}
| |
| | |
| == Android ==
| |
| | |
| '''<span style="color:#FF0000">Describe Phidget library includes, and detail a step-by-step guide to get examples running in each supported IDE</span>'''
| |
| | |
| * Eclipse (3.1+)
| |
| * Eclipse (Older than 3.1)
| |
| * Android Studio
| |
| | |
| == Edit the Examples ==
| |
| | |
| By following the instructions for your operating system and compiler above, you probably now have a working example and want to understand it better so you can change it to do what you want. This teaching section has resources for you to learn from the examples and write your own.
| |
| Your main reference for writing Android code will be the Phidget22 API Manual:
| |
| | |
| '''<span style="color:#FF0000">Link to API manual</span>'''
| |
| | |
| === Example Flow ===
| |
| | |
| '''<span style="color:#FF0000">Walk through "Hello world" example for this language</span>'''
| |
| | |
| === Code Snippets ===
| |
| | |
| | |
| '''<span style="color:#FF0000">Write blocks of code for each simple concept, using interfaceKit objects as example</span>'''
| |
| | |
| ==== Step One: Initialize and Open ====
| |
| ==== Step Two: Wait for Attachment (plugging in) of the Phidget ====
| |
| ==== Step Three: Do Things with the Phidget ====
| |
| ==== Step Four: Close and Delete ====
| |
| | |
| == Further Reading ==
| |
| | |
| [[Phidget Programming Basics]] - Here you can find the basic concepts to help you get started with making your own programs that use Phidgets. | |
| | |
| [[Data Interval/Change Trigger]] - Learn about these two properties that control how much data comes in from your sensors.
| |
| | |
| [[Using Multiple Phidgets]] - It can be difficult to figure out how to use more than one Phidget in your program. This page will guide you through the steps.
| |
| | |
| [[Polling vs. Events]] - Your program can gather data in either a polling-driven or event-driven manner. Learn the difference to determine which is best for your application.
| |
| | |
| [[Logging, Exceptions, and Errors]] - Learn about all the tools you can use to debug your program.
| |
| | |
| [[Phidget Network Server]] - Phidgets can be controlled and communicated with over your network- either wirelessly or over ethernet.
| |
| | |
| == Common Problems and Solutions/Workarounds ==
| |
| | |
| '''<span style="color:#FF0000">If you know of common problems using this lanaguage (for example, having to create sub-VIs when using multiple phidgets in labview) put them here. </span>'''
| |
| | |
| -->
| |