Posts

Showing posts from September, 2012

A note on ADK 2012

Summary on Accessory Development Kit The Accessory Development Kit (ADK) for 2012 is the latest reference implementation of an Android Open Accessory device. It is designed to help Android hardware accessory builders and software developers create accessories for Android. One of the new features in this ADK is to play music over USB connection. The ADK 2012 is based on Arduino open source electronic prototyping platform, with some hardware and software extensions that allow it to communicate with Android devices. Main Accessories available with ADK 2012 Clock- We can set or reset the timings Alarm Speaker- To play audio. Audio can be played using Bluetooth as well as with USB connection. Playing audio will work only on Android 4.1(API Level 16) and above. Color, Brightness, Display adjuster. Lock Connecting an Android Device with ADK 2012 Android ADK 2012 app is available only in devices supporting Android 3.1 (API Level 12) or in an NFC enabled andro

Messaging between two android devices

For messaging between two devices, a client and server thread was created. The application acts both as a server and a client. It does both opening a server socket and listening on it and opening a client socket and connecting to other device. The server class initializes the server socket and starts accepting the connection. It also reads the message from the client side. The client thread creates a socket connection to a remote server. After the connection is made, it starts writing to the other side.  The application starts with both emulators asking for the client port. When user enters the port number and presses the connect button, it assigns the port number to the instance. Similar way the second emulator asks for the port number to get connected. After the two emulators are connected, the messages can be interchanged. Please comment below if you have any questions.