-
A lightweight, well designed metronome app for Android
Metronome is a lightweight, well designed metronome app for Android focused on offering a consistent and usable design without limiting functionality.
- 2018-01-01下载
- 积分: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
-
multisim函数信号发生器
基于Multisim10的函数信号发生器 1. 信号频率范围 1Hz~100kHz; 2. 输出波形应有: 方波、三角波、正弦波
- 2019-04-16下载
- 积分:1
-
基于安卓的校园二手交易
基于安卓的校园二手交易平台,客户端为安卓,后台为javaWeb ,服务器为Apache,实现校园二手物品交易,分为管理后台和管理端
- 2023-02-06 16:55:04下载
- 积分:1
-
android ymodem简单测试程序
android ymodem简单测试程序,通过上位机Android开发平台的ttyS3串口3和下位机MCU的串口相连,即可通过串口更新下位机固件
- 2023-01-26 04:35:04下载
- 积分:1
-
pinyin4jandroid-
pinyin4j Android拼音处理工具类,带文档,用于Android通讯录排序处理,实现按字母排序的功能,在通讯录中,要实现查找联系人按26个英文字母排序的功能,使用pinyin4j就可以很方便的实现此功能。(pinyin4j Android phonetic processing tools with documentation for Android address book sorting processing, sorting alphabetically functions in the address book, find the contact you want to achieve the sort function by 26 letters of the alphabet, you can easily use pinyin4j to achieve this functionality.)
- 2014-04-21 09:35:10下载
- 积分:1
-
rEGISTRANT
notify Registrant Source Code for Andriod.
- 2013-12-30 19:26:28下载
- 积分:1
-
android 底部弹出类似ios菜单
仿ios的弹出菜单,从底部弹出附件中代码PS:还是要多看看android官方的设计指引,不盲目模仿IOS的UI风格!
- 2022-06-28 02:40:49下载
- 积分:1
-
时时获取android 手机陀螺仪数据,并保存数据。
时时获取android 手机陀螺仪数据 ,并保存数据。
- 2022-03-11 06:54:43下载
- 积分:1
-
AndroidMap
一个很强大的地图软件big plant源码,用Eclipse导入工程即可使用(a great map called big plant.You can just import it to Eclipse to use it)
- 2012-03-19 21:16:35下载
- 积分:1