This repository has been archived by the owner. It is now read-only.
A simple MQTT Service that will keep running for the duration of your Android application using the Paho Java MQTT Client.
Clone or download
JesseFarebro Fix indentation on MQTT constants
Signed-off-by: Jesse Farebrother <jessefarebro@gmail.com>
Latest commit 2d18d58 May 14, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib Initial Commit of Service Apr 10, 2013
src/com/jessefarebro/mqtt Fix indentation on MQTT constants May 14, 2016
.gitignore Initial commit Apr 10, 2013
LICENSE License Update Apr 10, 2013
README.md Deprecation notice Sep 19, 2014

README.md

DEPRECATED

I would strongly recommend using the official Paho Android client.

Setup

  • Make sure to add the service to your AndroidManifest.xml
  • Edit the appropriate fields in the class with the information required

Simple Example

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
         android:versionCode="1"
         android:versionName="1.0">

         <receiver android:name=".MyReceiver" android:enabled="true" android:exported="false">
             <intent-filter>
                 <action android:name="android.intent.action.BOOT_COMPLETED" />
             </intent-filter>
         </receiver>

         <service android:name="com.jessefarebro.mqtt.MqttService" android:exported="false" />

         <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
</manifest>

License

Copyright 2013 Jesse Farebrother

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.