-
lcIPC_SurfaceView
surface,H264,解码,显示,网络流,播放(surface, H264)
- 2013-08-06 10:18:16下载
- 积分:1
-
android自动启动
这是我们用的一段用来开机启动程序的代码,在街机中如果用android系统比较常用
- 2022-03-25 03:11:46下载
- 积分:1
-
活动服务
活动服务应用程序与绑定服务相关并启动服务和也停止服务应用程序的 android 和服务运行无穷大时的背景。
- 2023-06-04 06:25:03下载
- 积分:1
-
yinyuebofangqi
Android上面的音乐播放器应用,适合4.0的环境(Android above the music player application, suitable for the 4.0 environment)
- 2012-08-16 11:34:10下载
- 积分:1
-
Android手机虚拟GPS定位源码
利用hook实现GPS虚拟定位
- 2018-01-25下载
- 积分:1
-
android图像处理源码,android studio项目
主要功能是程序占用的一些缓存的处理,用到线程池等,适用于android app,
- 2023-05-23 21:15:04下载
- 积分:1
-
WeightTest
android.widget.layout.table.Weight is setup to exercise tables in which cells use a weight.
- 2014-05-28 17:41:00下载
- 积分:1
-
封装MDB纸币硬币器操作(android版)
android 串口通信,封装MDB指令,Android API 19测试通过,售货机上使用,搭配android APP界面
- 2022-03-24 18:23:34下载
- 积分: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
-
AndroidBaseControls
android常用控件的代码实现,非常适合初学者,值得拥有(This demo shows us how to use the basic controls in android, it is really useful for the beginners, it is worthful)
- 2014-08-09 09:09:43下载
- 积分:1