- 博客(12)
- 收藏
- 关注
原创 12.PackageManager&&Popwindow必须设置背景
Popwindow mLvApp.setOnItemClickListener(new OnItemClickListener() { @ViewInject(R.id.tv_uninstall) TextView tvUnInstall; @ViewInject(R.id.tv_open) TextView tvOpen; @ViewInject(R.id.tv_
2017-02-19 23:11:31 413
原创 11.ExpandableListView
1 布局 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" >
2017-02-19 10:35:55 263
原创 10.自定义Dialog--dialog的动画
1 点击弹出dialog @OnClick(R.id.siv_style_address) public void setStyleAddress(View view) { final AddressDialog addressDialog = new AddressDialog(this); mAddressAdapter = new AddressAdapter(); addr
2017-02-18 17:49:07 348
原创 9.来电显示归属地--自定义Toast
1 点击按钮开启归属地显示服务 @OnClick(R.id.siv_address) public void setAddress(View view) { Intent service = new Intent(this, AddressService.class); if (ServiceStatusUtils.isServiceRunning(this, AddressServi
2017-02-18 14:15:58 752
原创 8.给TextView及其子类设置图片
1 private void initState() { if (mDpm.isAdminActive(mWho)) { ImageTextViewUtils.setTextViewImage(this, btnAdmin, R.drawable.admin_activated, ImageTextViewUtils.RIGHT); } else { ImageTe
2017-02-18 11:58:13 229
原创 7.自定义Toast
1 布局文件 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="m
2017-02-18 00:12:01 257
原创 6.拷贝数据库--SQLiteDatabase.openDatabase()
1 package org.heima.mobilesafe01.utils; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; impor
2017-02-16 22:15:17 3905
原创 5.短信和电话拦截的服务--判断服务是否在运行(开关服务)
1 判断服务是否在运行 package org.heima.mobilesafe01.utils; import java.util.List; import android.app.ActivityManager; import android.app.Service; import android.app.ActivityManager.RunningServiceInfo; impor
2017-02-16 21:57:30 571
原创 4.数据库的创建(黑名单)--另 单元测试
1数据库的bean package org.heima.mobilesafe01.bean; public class BlackInfo { public int _id;// public String phone; public int _type; @Override public String toString() { return "BlackInfo [_id="
2017-02-05 23:32:23 1855
原创 3.drawable下创建ProgressBar的可做动画的图片
<translate xmlns:android="http://schemas.android.com/apk/res/android" android:fromXDelta="100%" android:toXDelta="0%" android:duration="200" > 1 布局中的ProgressBar <ProgressBar
2017-02-05 23:25:31 269
原创 2.定位、擦除数据、锁屏、激活设备管理员(LocationManager、DevicePolicyManager)
1 一个短信广播接收者,用于安全号码控制丢失手机播放报警音乐、锁屏等 package org.heima.mobilesafe01.receiver; import org.heima.mobilesafe01.R; import org.heima.mobilesafe01.constants.Constants; import org.heima.mobilesafe01.service.
2017-02-04 22:24:12 1015
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人