CQ Beacon Android SDK V2.0.1

Similar documents
Ultigesture UG Wristband User Manual

Link-OS SDK for Xamarin README

ANDROID APPS (NOW WITH JELLY BEANS!) Jordan Jozwiak November 11, 2012

32. And this is an example on how to retrieve the messages received through NFC.

UM2290. BlueNRG Mesh Android API guide for Mesh over Bluetooth low energy. User manual. Introduction

Instructions on Yealink s SDK for Yealink T5 Smart Media Phone Series. Instructions on Yealink s SDK for Yealink T5 Smart Media Phone Series

ACR3901U-S1. Secure Bluetooth Contact Card Reader. User Manual V1.01. Subject to change without prior notice.

ART Demo Application for Mobile Phones

Internet of Things Bill Siever. New Applications. Needs. Wearables. Embedded Smarts. Simple to Setup. Networking w/ Long Battery Life (Low Power)

Release Notes Cordova Plugin for Samsung Developers

UM2290. BlueNRG Mesh Android API guide for Mesh over Bluetooth low energy. User manual. Introduction

Quick Reference Guide

ACR1255U-J1. Secure Bluetooth NFC Reader. User Manual V1.02. Subject to change without prior notice.

Wahoo Android API Users Manual

TH100A User Manual 1 Updated April 30, 2018

ESP32 BT&BLE Dual-mode Bluetooth. Version 1.0 Copyright 2018

Tap BLE API Documentation

register/unregister for Intent to be activated if device is within a specific distance of of given lat/long

Assignment 1: Port & Starboard

BLUETOOTH. AMPRO 2000 / OPTIMA 7 Using Bluetooth with the MRU4u app

Android System Architecture. Android Application Fundamentals. Applications in Android. Apps in the Android OS. Program Model 8/31/2015

LMU Bluetooth Chipset Application Note

TROUBLESHOOTING : 1. Set up your wireless router via wired connection. 2. Please make sure your adapter is set to obtain IP automatically

Connected Mobile Experiences (CMX) Aligning Use Cases and Technology

Developer s overview of the Android platform

Product Introduction. Install APP on Smart Phone

Silicon Valley LAB Intern Report. Hyunjung KIM Youngsong KIM

An Introduction to Android. Jason Chen Developer Advocate Google I/O 2008

Software Development Kit for ios and Android

AN4869 Application note

RUNTIME PERMISSIONS IN ANDROID 6.0 Lecture 10a

Introduction To Android

BlackBerry Developer Summit. A02: Rapid Development Leveraging BEMS Services and the AppKinetics Framework

The BlueNRG-1, BlueNRG-2 BLE OTA (over-the-air) firmware upgrade

Computational Photography HelloCamera

Content. 1. Overview Setup Demonstration Linux Application Project on DE10-Nano Android Application Project...

Android App Development

OneDrive for Business

Language-Based Security on Android (call for participation) Avik Chaudhuri

SAMSUNG ELECTRONICS RESERVES THE RIGHT TO CHANGE PRODUCTS, INFORMATION AND SPECIFICATIONS WITHOUT NOTICE. Products and specifications discussed

Indoor Positioning System using Bluetooth

OFFLINE MODE OF ANDROID

Preface...3 Acknowledgments...4. Contents...5. List of Figures...17

ISEC7 Mobile Exchange Delegate

TH100A User Manual 1 Updated October 12, 2018

Android Application Development using Kotlin

Overview. Android Apps (Partner s App) Other Partner s App Platform. Samsung Health. Server SDK. Samsung Health. Samsung Health Server

1. Implementation of Inheritance with objects, methods. 2. Implementing Interface in a simple java class. 3. To create java class with polymorphism

BITalino Java Application Programming Interface. Documentation Android API

Mobile App Development. ios Platform

CS378 -Mobile Computing. What's Next?

Android Connectivity & Google APIs

uclbrt-api-sdk - Android user manual uclbrt

Smart Lock Solution User Manual APP

Instructions on Yealink s SDK for Yealink T5 Smart Business Phone Series. Instructions on Yealink s SDK for Yealink T5 Smart Business Phone Series

This user guide describes how to run the Atmel ATWINC3400 Bluetooth Low Energy (BLE) Provisioning demo from out-of-box conditions.

BT-2000 System Software Release Note(Ver.R1.2.1)

Introduction to Android

Multi-factor Authentication Instructions

Consuming Office 365 REST API. Paolo Pialorsi PiaSys.com

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

Android App Development. Muhammad Sharjeel COMSATS Institute of Information Technology, Lahore

EMBEDDED SYSTEMS PROGRAMMING UI and Android

The package of Foxit MobilePDF SDK for ios includes the following files:

PSoC Academy: How to Create a PSoC BLE ios App Lesson 10: BLE Robot App 1. 00:00:08 Hello, I m Alan Hawse. Welcome to Cypress Academy.

PC, Mac, ipad and Android Tablet Bluetooth Instructions. Electronic Cutter PC SETUP. by Sizzix. Make sure the PC has Bluetooth capabilities

Real time Location Services Overview and Use cases

Cassia Software Development Kit (SDK) for S1000, S1100, X1000 and E1000. Table of Contents

Android permissions Defining and using permissions Component permissions and related APIs

Application Note: xpico BLE Application Note Irvine Center Drive Suite 100 Irvine, CA USA

Android Online Training

Roy Lawson. Introduction to Office 365 Development Presented By. SDS pays for referrals!

Syllabus- Java + Android. Java Fundamentals

BT LE RN4020 USB Dongle Datasheet

Tutorial on OpenCV for Android Setup

HP Roam - Business Deployment Guide

Quick Setup Guide. Date: October 27, Document version: v 1.0.1

Wireless Vehicle Bus Adapter (WVA) Android Library Tutorial

Assignment 1. Start: 28 September 2015 End: 9 October Task Points Total 10

Quick Start Guide PC, Mac, ios, and Android

Software Development & Education Center ANDROID. Application Development

Release Notes for RFD8500 V1.8.R03 Released 23 April 2017

Distributed Systems Assignment 1

Mobile Testing. Open Source Solu,ons

What s in Your Dongle and Bank Account? Mandatory and Discretionary Protection of Android External Resources

Faust Android API. Using This Package

Android. Lesson 1. Introduction. Android Developer Fundamentals. Android Developer Fundamentals. to Android 1

Mobile Application Development

1.1 Why Foxit MobilePDF SDK is your choice Foxit MobilePDF SDK Key Features of Foxit PDF SDK for UWP Evaluation...

ADF Mobile Code Corner

ORACLE UNIVERSITY AUTHORISED EDUCATION PARTNER (WDP)

QSG107: SLWSTK6101A/B Quick-Start Guide

Mitel MiVoice 6930 IP Phone Quick Reference Guide

Zephyr Cloud for HipChat

CMSC436: Fall 2013 Week 4 Lab

kcenergy User Guide Introduction Hardware

What s New in Energy Debugging

Android Programmierung leichtgemacht. Lars Vogel

Unit and Functional Testing for the Android Platform. Christopher M. Judd

Brief Specifications of Bluetooth Low Energy Module. Model No.: HM-BT4501

Transcription:

Copyright 2014 ConnectQuest, LLC 1 CQ Beacon Android SDK V2.0.1 Software Requirements: Android 4.3 or greater SDK Support Page: http://www.connectquest.com/app- developers/android- api/ The CQ SDK package ships with the following classes: com.cq.android.sdk.connectquestsdk (CQ SDK main class) com.cq.android.sdk.domain.cqbeacon (CQ Beacon object) com.cq.android.sdk.domain.cqlistener (CQ listener interface) com.cq.android.sdk.service.ble.cqbleservice (CQ BLE scan service) com.cq.android.sdk.util.cqconstants (CQ Constants and Messages) We highly encourage you to try our sample app (available for download from the support page) and explore the source of the app and how the SDK is being utilized to build the app. The sample app (CQ Beacon Explorer, screenshots below) is a simple List- >Detail type Android app, built to support multiple handsets and screen sizes, uses the CQ SDK to scan for BLE devices every 60 seconds. When a BLE device is found, it is then added to the list of found devices and displayed on the screen. The user can then select the device from the list and see more information about the device, such as date & time when it was discovered, RSSI, Mac Address and other values.

Copyright 2014 ConnectQuest, LLC 2 CQ Demo App Screeshots: In order to use the API copy the SDK folder (com.cq.android.sdk) to your project and reference the following SDK classes from your activity: import com.cq.android.sdk.connectquestsdk; import com.cq.android.sdk.domain.cqbeacon; import com.cq.android.sdk.domain.cqlistener; import com.cq.android.sdk.util.cqconstants; Make sure the application manifest has the following permissions: <uses-permission android:name="android.permission.bluetooth"></uses-permission> <uses-permission android:name="android.permission.bluetooth_admin"></uses-permission> <uses-feature android:name="android.hardware.bluetooth_le" android:required="false" />

Copyright 2014 ConnectQuest, LLC 3 Your implementation will need to define and implement the following CQ SDK listener methods: public interface CQListener * Called when a non-cq BLE beacon has been discovered * @param beacon CQBeacon void handlegenericbeacondiscovery(cqbeacon beacon); * Called when a CQ BLE beacon has been discovered * @param beacon CQBeacon void handlecqbeacondiscovery(cqbeacon beacon); * Called when the BLE scan has stopped void handlestopbeacondiscovery(); * Called when the BLE scan has started void handlestartbeacondiscovery(); * Called when the BLE scan has stopped. * All found BLE beacons (CQ or generic) are passed.. * @param container Hashmap containing all found BLE void handlereceivefoundbeacons(map<string,cqbeacon> c); * Current activity application context * @return Context getcontext();

Copyright 2014 ConnectQuest, LLC 4 Here s a sample implementation of the listener (from the CQ BLE Demo app). The listener will handle BLE Beacon discovery calls. From the listener you can then call your data services, refresh UI, make database calls, etc * CQ Beacon Listener Implementation private CQListener cqsdklistener = new CQListener() public void handlegenericbeacondiscovery(cqbeacon c).. public void handlecqbeacondiscovery(cqbeacon beacon).. public void handlestopbeacondiscovery().. public void handlestartbeacondiscovery().. public Context getcontext() return getactivity(); Once you have the CQ Listener defined and implemented you can then instantiate the main SDK class and pass the listener to the SDK: //instantiate a new CQ SDK instance and pass the listener ConnectQuestSDK connectquestsdk = new ConnectQuestSDK(cqSDKListener, CQConstants.DISCOVERY_ONLY); and begin Beacon discovery: //start discovery connectquestsdk.startdiscovery();

Copyright 2014 ConnectQuest, LLC 5 Any SDK messages and configuration, such as BLE scan interval settings, can be customized in the com.cq.android.sdk.util.cqconstants class: * BLE Discovery and Data Retrieval public final static int DISCOVERY_AND_DATA_RETRIEVAL = 1; * BLE Discovery Only public final static int DISCOVERY_ONLY = 2; * Perform scan every 60 seconds public static final long BLE_SCAN_INTERVAL = 60000; * Stop scanning after 5 seconds public static final long BLE_SCAN_STOP_AFTER_PERIOD = 5000; * Not supported message public static final String BLE_NOT_SUPPORTED = "BLE is not supported on this device."; * Service not initialized message public static final String BLE_NOT_INITIALIZED = "BLE Scan Service has not been initialized."; * BT not enabled message public static final String BLUETOOTH_NOT_ENABLED = "Bluetooth not enabled. Please enable Bluetooth."; * CQ Beacon identifier (version 2) public static final String CQ_BEACON_IDENTIFIER_V2 = "cq"; * CQ Beacon identifier (version 2) public static final String CQ_BEACON_IDENTIFIER_V1 = "connect quest";