Description: 本範例將運用BroadcastReceiver 的特性,來實作取得手機電池計量的程式;程式中將藉由註冊BroadcastReceiver 時設定的IntentFilter(android.content.IntentFilter),來捕捉系統發出的 Intent.ACTION_BATTERY_CHANGED 這個Action,再藉此取得手機電池的計量結果。-This example will use BroadcastReceiver features, to implement a program to obtain cell phone battery meter program will set the time by up BroadcastReceiver IntentFilter (android.content.IntentFilter), to capture the system sends the Intent.ACTION_BATTERY_CHANGED this Action, and then by This made the measurement results of cell phone batteries. Platform: |
Size: 33792 |
Author:lai |
Hits:
Description: Acitivty的子类 基础该类的子类必须实现onCreate 方法
* 在该类中注册了一个BroadcastReceiver 用于接收退出消息
* 在接收到消息之后结束自身-Acitivty basis of a subclass of a subclass must implement the class method* onCreate registered in the class to receive a BroadcastReceiver quit message* the message is received after the end of their Platform: |
Size: 1024 |
Author:许葵 |
Hits:
Description: android入门学习之二广播学习BroadcastReceiver-Introduction to study of the two radio android learning Platform: |
Size: 48128 |
Author:Brain.Peng |
Hits:
Description: android 广播接受者示例程序 简单说明的demo-the android broadcast recipient sample program is a brief description of the demo Platform: |
Size: 344064 |
Author:gunlay |
Hits:
Description: 基于android的提醒功能,利用了AlarmManager实现定时提醒,同时,利用BroadcastReceiver组件解决了重启之后AlarmManager失效的功能,这中间还借用了SharedPreferences作为数据存储的地方。-Android based reminders, use AlarmManager achieve timing reminder, same time, using BroadcastReceiver component solved after restarting AlarmManager failure function, which also borrows from the middle SharedPreferences as the data is stored. Platform: |
Size: 1040384 |
Author:lck |
Hits:
Description: android音乐播放器源码重力感应甩歌代码,自定义绘画歌词,产生滚动效果,在服务中控制播放音乐,通过BroadcastReceiver传递一些数据,并且实现了在电话打过来时,停止播放音乐,打完电话继续播放。当然还有上一个版本的甩歌功能,用的是加速度传感器,控制音乐的播放暂停。最突出的功能算是加入了歌词同步的功能,真正实现了音乐歌词的同步播放。每200毫秒检测一次,检测到摇晃后执行的代码。-android music player source code gravity sensing rejection songs, custom painting lyrics, produces rolling effect, in the service control playback music through BroadcastReceiver pass some data, and the realization of the phone call came, stop playing music, making phone calls continue playback. Of course, there is a version of rejection songs on function, using an acceleration sensor, control music playback pause. The most prominent feature be added lyrics synchronization function, the real music lyrics synchronized playback. Tested once every 200 ms, the detected code executed after shaking. Platform: |
Size: 1361920 |
Author:方周 |
Hits:
Description: 这个例子主要研究Android broadcast广播机制的实现,以一个电池监测及广播通知为例,介绍了实现broadcast的过程:大致的思路是:注册一个系统 BroadcastReceiver,作为访问电池计量之用,如果捕捉到的action是ACTION_BATTERY_CHANGED, 就运行onBatteryInfoReceiver(),捕捉到ACTION_BATTERY_CHANGED时要运行的method,创建一个背景模糊的Window,且将对话窗口放在前景,将取得的电池计量显示于Dialog中,设置返回主画面的按钮-Este ejemplo principal mecanismo para lograr la emisión de radio Android para difundir una supervisión de la batería y la notificación, por ejemplo, describe el proceso de emisión de realización: la idea general es la siguiente: para registrar un BroadcastReceiver sistema, medida en términos de acceso al uso de la batería, si la acción capturado se ACTION_BATTERY_CHANGED, corre onBatteryInfoReceiver (), método de captura a ACTION_BATTERY_CHANGED cuando correr, crear un fondo de ventana de desenfoque, y sobre las perspectivas de la ventana de diálogo, se hará el medidor de batería que aparece en el cuadro de diálogo, defina el botón para volver a la pantalla principal Platform: |
Size: 47104 |
Author:rpudn42 |
Hits: