Skip to Content
IoT Projects with Bluetooth Low Energy
book

IoT Projects with Bluetooth Low Energy

by Madhur Bhargava
August 2017
Intermediate to advanced
278 pages
6h 1m
English
Packt Publishing
Content preview from IoT Projects with Bluetooth Low Energy

Android

We begin by creating an empty project by the name of AndroidWarehouseMonitor.

  1. We begin by defining the user interface to display the current temperature and humidity values on the screen. To do this, we define our UI by updating the activity_main.xml file. Remove whatever code is present in this file and you can either add the following code directly to the activity_main.xml file or add the UI via the UI editor:
<?xml version="1.0" encoding="utf-8"?><android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="android.packt.com.androidwarehousemonitor.MainActivity"> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Getting Started with Bluetooth Low Energy

Getting Started with Bluetooth Low Energy

Kevin Townsend, Carles Cufí, Akiba, Robert Davidson

Publisher Resources

ISBN: 9781788399449Supplemental Content