DESCRIPTION:
This app will connect to an external device through bluetooth and send ASCII serial commands.
The links below show code examples of the features I am looking for.
DELIVERABLES:
Android 2.2 application (compatible up to 4.1)
Source code
FUNCTIONS:
• Main activity UI will have 2 buttons, 3 horizontal seek bars and 2 vertical seek bars,
and 7 TextView elements.
• Buttons and seekbars must be 'multi-touch' capable,
for example you must be able to slide two seekbars at the same time
• Button1 - 'CONNECT TO BLUETOOTH DEVICE' button. When button is pressed:
-if bluetooth is not enabled, enable it
-if bluetooth is enabled, display a list of available devices in the area
-connect to one of the devices in the list
-change TextView1 to 'CONNECTED'
(similar functionality to the SDK example code BLUETOOTH CHAT)
(also see code in link below to BLUETOOTH CONNECTION EXAMPLE)
• TextView1 - Shows text 'CONNECTED' or 'NOT CONNECTED' from button1 status.
• Button2 - When button is pressed:
-open a toast message that says "RESERVED FOR FUTURE DEVELOPMENT"
• TextView2 - Shows text 'BLANK'
• SeekBar1-3 (Horizontal) - When progress changed:
-Update values in TextView 3-5
-Write an ASCII serial STRING to connected Bluetooth device
-STRING is "RGB seekbar1value, seekbar2value, seekbar3value"
• SeekBar4 (Vertical) - When progress changed:
-Update values in TextView 6
-Write an ASCII serial STRING to connected Bluetooth device
-STRING is "ML seekbar4value"
• SeekBar5 (Vertical) - When progress changed:
-Update values in TextView 7
-Write an ASCII serial STRING to connected Bluetooth device
-STRING is "MR seekbar5value"
• TextView3-7 - Shows values from seekbars 1-5
MULTITOUCH EXAMPLE
[login to view URL]
VERTICAL SEEKBAR EXAMPLE
[login to view URL]
BLUETOOTH CONNECTION EXAMPLE
[login to view URL]
UNFINISHED CODING ATTEMPT (this project could be completed by simply correcting the multitouch features of this code)
[login to view URL]