- 博客(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
2020-04-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人