-
andbook
This document was written for developers who have worked with Java™ before and want to start developing for the Android Platform. I tried to make this as much “hands on” as possible, placing example codes everywhere it fit. Also I tried to insert as many picture as possible, because they liven up the learning process and relax the reader’s eyes.
- 2011-12-01 15:09:27下载
- 积分:1
-
中国象棋-Cocos2d-x版本-带图
应用背景
中国象棋-Cocos2d-x版本-带图
一款简易的中国象棋,自己收集的代码,稍加配置就可以跑起来的。
代码是Cocos2d开发的,可以用来入门学习,
上边是资源图,
关键技术
采用,Cocos2d,c++
开发,的,功能比较完整的。可以用学习。
- 2022-03-11 04:00:59下载
- 积分:1
-
Android ListView自动检索
Android ListView自动检索
- 2014-10-31下载
- 积分:1
-
chatSample
using android in java eclipse.
- 2012-06-24 00:45:20下载
- 积分:1
-
GPS获取信息
这是一个获取GPS信息的例子,里面是可以把GPS的的信息,包括搜星的个数,以及信号的强度,等等有用的信息,可以读取出来,该代码跟你的下载的GPS TEST.apk的实现原理是一样的,非常简洁。
- 2023-01-22 20:25:04下载
- 积分: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
-
android dialog
android 多種dialog
/**確定取消資訊框 **/
/**多個按鈕資訊框 **/
/**列表框 **/
/**進度條框 **/
/**單項選擇列表框 **/
/**多項選擇列表框 **/
/**自定義佈局 **/
/**讀取進度框 **/
- 2022-03-17 08:25:23下载
- 积分:1
-
Android FTP 源码
Android FTP 源码, 用于android上FTP客户端开发, 支持上传和下载
- 2023-04-15 12:40:04下载
- 积分:1
-
android 3D轮播实例源码下载
android 3D轮播实例源码下载
- 2014-05-12下载
- 积分:1
-
AndBase开发各种功能
AndBase开发各种功能
- 2015-06-02下载
- 积分:1