摘要: Unity端就不仔细说了,下面主要讲Unity打包出来在Android studio后的操作. DEMO地址:Stringf/UnityAndroid3DModel (github.com) Unity打包Android项目: unityLibrary包build.gradle里dependenci 阅读全文
posted @ 2022-10-28 14:25 Stringf 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 往安卓设备端push时显示没权限,应执行以下指令:adb rootadb remount如果还提示read-only的话,就:adb rootadb disable-verityadb reboot重启后再adb remount即可当你想push进某一具体路径下的文件夹时可以用:adb shell 阅读全文
posted @ 2022-09-21 13:57 Stringf 阅读(344) 评论(0) 推荐(0) 编辑
摘要: equals // 区分大小写,判断内容是否相等 equalslgnoreCase // 忽略大小写的判断内容是否相等 length // 获取字符的个数, 字符串的长度 indexOf // 获取字符在字符串中第一次出现的索引,索引从0开始 , 如果找不到 , 返回-1 lastIndexOf / 阅读全文
posted @ 2022-09-09 11:50 Stringf 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 点击软键盘以外部分关闭软键盘 //Activity中的方法,重写就行@Overridepublic boolean dispatchTouchEvent(MotionEvent ev) { if (ev.getAction() == MotionEvent.ACTION_DOWN) { View v 阅读全文
posted @ 2022-06-29 14:24 Stringf 阅读(432) 评论(0) 推荐(0) 编辑
摘要: 主活动布局 主界面注册一个ViewPager,通过滑动转换拍照和录像界面. 拍照界面布局 1.整体的预览控件TextureView 2.左下角的缩略图ImageView 3.中间的拍照按钮ImageButton 4.切换摄像头的ImageButton 5.通过ViewPage 左右滑动切换拍照模式跟 阅读全文
posted @ 2022-06-29 14:14 Stringf 阅读(1825) 评论(0) 推荐(0) 编辑
摘要: //拉取远程代码到本地,更新本地分支的代码 //每次提交代码前,一定确认本地代码是最新代码 git pull //查看git工作区的文件详情 git status //把要提交的代码文件添加到工作区,文件路径可通过 “git status”查看 git add . 或者 git add <文件路径> 阅读全文
posted @ 2022-06-21 15:37 Stringf 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 1. 常用命令: adb devices #查看连接设备​adb -s cf27456f shell # 指定连接设备使用命令​adb install test.apk # 安装应用​adb install -r demo.apk #安装apk 到sd 卡:​adb uninstall cn.com 阅读全文
posted @ 2022-06-21 15:34 Stringf 阅读(200) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示