文件名称:broadcast
介绍说明--下载内容来自于网络,使用问题请自行百度
这个例子主要研究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
(系统自动生成,下载前可以参看下载内容)
下载文件列表
broadcast/.classpath
broadcast/.project
broadcast/AndroidManifest.xml
broadcast/bin/broadcast.apk
broadcast/bin/classes.dex
broadcast/bin/com/test/Broadcast$1.class
broadcast/bin/com/test/Broadcast$2.class
broadcast/bin/com/test/Broadcast$3.class
broadcast/bin/com/test/Broadcast.class
broadcast/bin/com/test/R$attr.class
broadcast/bin/com/test/R$drawable.class
broadcast/bin/com/test/R$id.class
broadcast/bin/com/test/R$layout.class
broadcast/bin/com/test/R$string.class
broadcast/bin/com/test/R.class
broadcast/bin/resources.ap_
broadcast/default.properties
broadcast/gen/com/test/R.java
broadcast/res/drawable-hdpi/icon.png
broadcast/res/drawable-ldpi/icon.png
broadcast/res/drawable-mdpi/icon.png
broadcast/res/layout/main.xml
broadcast/res/layout/mydialog.xml
broadcast/res/values/color.xml
broadcast/res/values/strings.xml
broadcast/src/com/test/Broadcast.java
broadcast/bin/com/test
broadcast/gen/com/test
broadcast/src/com/test
broadcast/bin/com
broadcast/gen/com
broadcast/res/drawable-hdpi
broadcast/res/drawable-ldpi
broadcast/res/drawable-mdpi
broadcast/res/layout
broadcast/res/values
broadcast/src/com
broadcast/assets
broadcast/bin
broadcast/gen
broadcast/res
broadcast/src
broadcast
broadcast/.project
broadcast/AndroidManifest.xml
broadcast/bin/broadcast.apk
broadcast/bin/classes.dex
broadcast/bin/com/test/Broadcast$1.class
broadcast/bin/com/test/Broadcast$2.class
broadcast/bin/com/test/Broadcast$3.class
broadcast/bin/com/test/Broadcast.class
broadcast/bin/com/test/R$attr.class
broadcast/bin/com/test/R$drawable.class
broadcast/bin/com/test/R$id.class
broadcast/bin/com/test/R$layout.class
broadcast/bin/com/test/R$string.class
broadcast/bin/com/test/R.class
broadcast/bin/resources.ap_
broadcast/default.properties
broadcast/gen/com/test/R.java
broadcast/res/drawable-hdpi/icon.png
broadcast/res/drawable-ldpi/icon.png
broadcast/res/drawable-mdpi/icon.png
broadcast/res/layout/main.xml
broadcast/res/layout/mydialog.xml
broadcast/res/values/color.xml
broadcast/res/values/strings.xml
broadcast/src/com/test/Broadcast.java
broadcast/bin/com/test
broadcast/gen/com/test
broadcast/src/com/test
broadcast/bin/com
broadcast/gen/com
broadcast/res/drawable-hdpi
broadcast/res/drawable-ldpi
broadcast/res/drawable-mdpi
broadcast/res/layout
broadcast/res/values
broadcast/src/com
broadcast/assets
broadcast/bin
broadcast/gen
broadcast/res
broadcast/src
broadcast
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.