LG QPair SDK Overview
The LG QPair SDK provides open APIs to developers so that their applications can use QPair features. Using these APIs, developers can create applications that communicate with android components installed on the paired device. In addition, it is possible to send data to the paired device.
Components of the LG QPair SDK
The LG QPair SDK consists of the following components:
• Library: Open APIs that provide QPair functions
• Documentation: API reference documentation (javadoc)
• Samples: Sample applications with source codes
Key Features of the LG QPair SDK
LG QPair APIs provide the following key features:
• Starting Android activities on the paired device.
• Starting Android services on the paired device.
• Sending Android broadcasts to the paired device.
• Sending data to the paired device.
Using the QPair Connection Established by LG QPair application
An QPair-enabled application (an application which is developed using LG QPair SDK) can use the QPair connection established by the LG QPair application that is preloaded on LG tablets. The QPair application is responsible for connection between a tablet and a smartphone, so other QPair-enabled applications do not need to deal with connection. In other words, once the QPair application is installed and set up, it will make a QPair connection. QPair-enabled applications can use this connection without the need for any pairing process.
To use the QPair SDK, you need to have the QPair application installed on both target devices: the tablet and the smartphone. Please refer to the LG QPair Application section.
Peer Intent for Communicating with Android Components and Data on the Paired Device
LG QPair provides a way of communicating with android components and data on the paired device, called Peer Intent. It is very similar to Android Intent. Android Intent is a messaging object you can use to request an action such as starting an activity, starting a service or delivering a broadcast from another application component. The main difference between Android Intent and Peer Intent is as follows: Whereas Android Intent can be used to request actions on one device, Peer Intent can be used between paired devices, namely an LG tablet and an Android smartphone. Using Peer Intent, developers can do anything that can be done with Android Intent between two devices. For example, it is possible to run applications, play media, send files or even configure the system settings of the paired device.
Peer Intent is the message provided by the QPair SDK for communicating with android components and data on the paired device. Using this, it is possible to start activities/services and send broadcasts installled on the paired device. It is also possible to send data to the paired device.
LG QPair requires two devices: a tablet and a smartphone. In addition, both devices need to have the LG QPair application in order to run QPair-enabled applications (an application which is developed using LG QPair SDK).
The QPair SDK only supports LG tablets. The supported LG tablets are:
• V500 (LG G Pad 8.3)
• V510 (LG G Pad 8.3 Google Play)
The tablets mentioned above have the QPair application preloaded, so users do not need to install it on tablets.
The QPair SDK supports any other Android smartphone that meets the following requirements. QPair SDK support does not depend on the smartphone manufacturer.
• Android version should be 4.1 or later
• Bluetooth should be available.
• QPair application should be installed. It can be downloaded from Google Play.