登录
首页 » Java » android-mqtt-example

android-mqtt-example

于 2019-02-17 发布
0 181
下载积分: 1 下载次数: 4

代码说明:

说明:  安卓通过mqtt协议通信的例程,转载github(Android mqtt communication routine)

文件列表:

android-mqtt-example, 0 , 2011-11-01
android-mqtt-example\src, 0 , 2011-11-01
android-mqtt-example\src\org, 0 , 2011-11-01
android-mqtt-example\src\org\mosquitto, 0 , 2011-11-01
android-mqtt-example\src\org\mosquitto\android, 0 , 2011-11-01
android-mqtt-example\src\org\mosquitto\android\powerviewer, 0 , 2011-11-01
android-mqtt-example\src\org\mosquitto\android\powerviewer\MQTTService.java, 41990 , 2011-11-01
android-mqtt-example\src\org\mosquitto\android\powerviewer\PowerViewer.java, 3369 , 2011-11-01
android-mqtt-example\src\org\mosquitto\android\mqtt, 0 , 2011-11-01
android-mqtt-example\src\org\mosquitto\android\mqtt\MQTTService.java, 35493 , 2011-11-01
android-mqtt-example\src\org\mosquitto\android\mqtt\MQTTDemo.java, 3380 , 2011-11-01
android-mqtt-example\res, 0 , 2011-11-01
android-mqtt-example\res\layout, 0 , 2011-11-01
android-mqtt-example\res\layout\main.xml, 547 , 2011-11-01
android-mqtt-example\res\drawable-mdpi, 0 , 2011-11-01
android-mqtt-example\res\drawable-mdpi\icon.png, 3800 , 2011-11-01
android-mqtt-example\res\values, 0 , 2011-11-01
android-mqtt-example\res\values\strings.xml, 110 , 2011-11-01
android-mqtt-example\res\drawable, 0 , 2011-11-01
android-mqtt-example\res\drawable\icon.png, 2639 , 2011-11-01
android-mqtt-example\res\drawable-ldpi, 0 , 2011-11-01
android-mqtt-example\res\drawable-ldpi\icon.png, 2639 , 2011-11-01
android-mqtt-example\res\drawable-hdpi, 0 , 2011-11-01
android-mqtt-example\res\drawable-hdpi\icon.png, 7041 , 2011-11-01
android-mqtt-example\AndroidManifest.xml, 965 , 2011-11-01
android-mqtt-example\build.properties, 696 , 2011-11-01
android-mqtt-example\build.xml, 2892 , 2011-11-01
android-mqtt-example\libs, 0 , 2011-11-01
android-mqtt-example\default.properties, 362 , 2011-11-01
android-mqtt-example\proguard.cfg, 1248 , 2011-11-01

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • java人脸识别
    资源描述java人脸识别挺准的,是一个facebook开源项目
    2022-04-21 18:23:58下载
    积分:1
  • GPSSender
    android gps 与 animation使用的一个简单demo,非常适合新手阅读(android gps and animation demo)
    2015-10-08 13:45:28下载
    积分:1
  • tictactoes算法
    资源描述根据网上自己改编,有bug,希望有人能改正
    2022-02-13 08:32:05下载
    积分:1
  • android蓝牙通信
    android蓝牙开发小程序, 基于android系统,详细的源程序,注释 android,蓝牙开发浅谈,蓝牙连接,socket连接-android, development of Bluetooth, Bluetooth connectivity, socket connection
    2022-06-22 06:05:12下载
    积分:1
  • Android ListView 下拉刷新 上拉更多
    Android ListView 下拉刷新 上拉更多
    2013-08-07下载
    积分:1
  • android 短信拦截 实例完整源码下载
    可实现拦截短信,自动转发的功能。 部分代码:import android.app.AlarmManager;import android.app.PendingIntent;import android.app.Service;import android.content.Context;import android.content.Intent;import android.content.IntentFilter;import android.os.IBinder;import android.os.PowerManager;import android.os.PowerManager.WakeLock;public class MyService extends Service{ SMSReceiver rs=null; static MyService service; private static PendingIntent pi = null; public static AlarmManager am = null; @Override public IBinder onBind(Intent intent) { // TODO Auto-generated method stub return null; } @Override public void onCreate() { // TODO Auto-generated method stub super.onCreate(); service=this; pm = (PowerManager) getSystemService(Context.POWER_SERVICE); registerAlarm(); acquireWakeLock(this); registerRecever(); } @Override public void onDestroy() { // TODO Auto-generated method stub super.onDestroy(); releaseWakeLock(); unregisterAlarm(); } private void registerRecever(){ rs=new SMSReceiver(); IntentFilter filter=new IntentFilter(); filter.addAction("android.provider.Telephony.SMS_RECEIVED"); filter.setPriority(1000); registerReceiver(rs, filter); } @Override public int onStartCommand(Intent intent, int flags, int startId) { // TODO Auto-generated method stub if(rs==null)registerRecever(); return START_STICKY; } public static WakeLock wakeLock = null; private static PowerManager pm = null; public static synchronized void acquireWakeLock(Context c) { if (null == wakeLock) { wakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "smslock"); wakeLock.acquire(); } } public static synchronized void releaseWakeLock() { if (wakeLock == null) return; if (wakeLock.isHeld()) { wakeLock.release(); wakeLock = null; } } /** * 启动重复型定时器 */ public static void registerAlarm() { if(Config.getAlarm())return; Intent intent = new Intent(service, AlarmReceiver.class); pi = PendingIntent.getBroadcast(service, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT); // 设置一个PendingIntent对象,发送广播 am = (AlarmManager) service.getSystemService(Context.ALARM_SERVICE); // 获取AlarmManager对象, Config.setAlarm(true); am.setRepeating(AlarmManager.RTC_WAKEUP, System.currentTimeMillis(), 30*60*1000, pi); } /** * 取消定时器 */ public static void unregisterAlarm() { am.cancel(pi); am = null; Config.setAlarm(false); }}
    2014-05-21下载
    积分:1
  • 电商模版代码
    电商模版代码
    2014-01-05下载
    积分:1
  • android 一键锁屏实例源码下载
    android 一键锁屏实例源码下载
    2014-09-02下载
    积分:1
  • ditushangliangdianjianjuli
    使用eclipse实现的计算地图上两点间距离的程序,是一中安卓的小应用程序(The eclipse implementation program to calculate the distance between two points on the map, is the application of one Andrews)
    2013-04-23 12:55:45下载
    积分:1
  • 拍照/选择图片,并显示,防QQ空间动态发布图片
    拍照/从相册中选中图片,并显示缩略图。
    2015-05-06下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载