-
android menu菜单的 入门实例 附源码 有截图
适合新手学习的 android menu实例 详见截图
- 2013-03-26下载
- 积分:1
-
java多线程
使用java多线程来模拟传统时钟的显示,分别显示时针,分针、秒针,时针为一个线程,分针为一个线程,秒针也为一个线程通过多线程来控制时针、分针、秒针的运行来显示从系统获得的当前时间。
- 2022-02-05 11:45:40下载
- 积分:1
-
压缩德texto新点的哈夫曼编码,编码neetbeans Java
应用背景压缩德texto新点 ;压缩德texto新点 ;压缩德texto新点 ;压缩德texto新点 ;压缩德texto新点 ;压缩德texto新点 ;压缩德texto新点 ;压缩德texto新点 ;压缩德texto新点 ;压缩德texto新位 ;关键技术代码是稀疏的概念和编码;对这篇文章进行可视化仿真实验分析,效果很好,可以直接使用。精度与其他算法相比,空间是非常大的,你可以很快的,希望以后上传帮助。程序中的主程序和调用
- 2022-01-26 04:24:09下载
- 积分:1
-
JSP+JavaBean+MySQL实现登陆及增删改查示例
这是一个使用JSP和JAVA实现用户登陆后进入聊天室交流。用户可以对自己的信息进行修改,管理员可以对用户进行增加、修改、和删除。当用户登陆时,验证是否正确后方可登陆聊天室进行聊天,如果输入的信息错误,登陆失败,重新定位到登陆页面。修改密码时,需要输入原密码正确才能修改为新的密码。用户可以进行简单的搜索。
- 2022-01-31 19:28:19下载
- 积分:1
-
jsp校园网上订餐系统(源码+数据库+文档)
校园网上订餐系统基于DAO设计模式的一个数据库课程设计系统,前端后台jsp实现
- 2020-05-29下载
- 积分:1
-
theone我的第一个设计可以联网的游戏
【实例简介】
- 2021-09-15 00:30:58下载
- 积分:1
-
InterfaceAddress
The IPv4 broadcast address, or null for IPv6.
- 2014-01-06 14:46:23下载
- 积分:1
-
umeng统计代码 实例源码源码下载
各种android app操作的统计,支持fragment
- 2015-04-11下载
- 积分:1
-
listviewItemZoom
android listview中滑动过程中需要某个条目突出显示的实例程序。(android listview sliding process highlighted instances of the program requires an entry.)
- 2012-11-27 09:33:58下载
- 积分: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