自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 资源 (1)
  • 收藏
  • 关注

原创 Android Studio 实用快捷键

一、断点1.F7 --> 跳入2.Ctrl+Shift+F7 -->强制跳入3.F8 -->单步调试4.Ctrl+Shift+F8 -->跳出5.F9 -->跳转到下一个断点处6.Ctrl+Alt+F8 -->查看当前选择的(变量、表达式、函数)值二、操作1.Ctrl+D -->复制当前行2.Ctrl+Y --> 删除当前行3.A...

2019-09-30 16:07:25 135

原创 获取蓝牙地址的工具类,包括wifi,Android6.0以上

import android.content.Context;import android.content.pm.PackageManager;import android.net.wifi.WifiInfo;import android.net.wifi.WifiManager;import android.os.Build;import android.text.TextUtils;...

2019-09-29 11:33:32 411

原创 Android RecyclerView 网格显示正方形

使用recyclerView显示纵向滑动的网格列表,只需要设置mListView.setLayoutManager(new GridLayoutManager(context,4));public class MyLayout extends RelativeLayout {public MyLayout (Context context, AttributeSet attrs, ...

2019-09-26 11:33:25 894

原创 Android 6.0以上的APK安装

关于 android 7.0 之前的 apk安装,需要注意设置 Intent.FLAG_ACTIVITY_NEW_TASK 就好Intent intent = new Intent(Intent.ACTION_VIEW);Uri apkUri = Uri.fromFile(file);intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);intent...

2019-09-25 14:53:33 948

原创 BluetoothUtil

import android.app.Activity;import android.bluetooth.BluetoothAdapter;import android.bluetooth.BluetoothClass;import android.bluetooth.BluetoothDevice;import android.bluetooth.BluetoothSocket;imp...

2019-09-17 16:03:28 460

原创 简单的MD5

import java.security.MessageDigest;public class MD5 {private MD5() {}public final static String getMessageDigest(byte[] buffer) { char hexDigits[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8',...

2019-09-17 16:01:45 156

原创 java.lang.RuntimeException: Parcel: unable to marshal value

在两个Activity中进行数据传送,需要读或者写其他的bean数据的话这些bean需要实现Serializable序列化接口,不然会出现Java.lang.RuntimeException: Parcel: unable to marshal value 最后记得bean里面那个集合也需要实现序列化不然还是报这个错误...

2019-09-17 11:25:34 569 1

MyCamera.zip

最近遇到一个需求,需要app在某个界面进行自动拍照的功能。然后我在百度找了一大堆资料发现大部分都是调用系统的相机搞个定时器然后在去点击拍照的,明显不符合我的需求,然后我通过对比人脸识别有个抓拍功能然后我提取了一部分源码自己修改实现了自动对焦 自动拍照的功能

2020-04-16

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除