摘要: 郭的手机出现提示:条码扫描器,抱歉,Android相机出现问题。您可能需要重启设备 ++++++++++++++++++ 原因是系统没有给应用使用摄像头的权限,我到楼下设置对方手机,选择“设置”-》找到应用“devicescan”,授权使用摄像头,恢复正常 阅读全文
posted @ 2018-05-30 08:55 strongdady 阅读(2286) 评论(0) 推荐(0) 编辑
摘要: 设备名称和设备责任人输出写反了,重新写了,重新发送yzx3233@sina.com 阅读全文
posted @ 2018-05-29 17:55 strongdady 阅读(92) 评论(0) 推荐(0) 编辑
摘要: findViewByid一定要放在setContentView(R.layout.a..)之后否则还没布局,根本找不到这些控件setContentView(R.layout.activity_input);editText0 = (EditText) findViewById(R.id.sample 阅读全文
posted @ 2018-05-25 19:07 strongdady 阅读(246) 评论(0) 推荐(0) 编辑
摘要: https://bbs.csdn.net/topics/391985867?page=1 华为P9是android 6.0 的==在API23+以上也就是安卓6.0以上的,进行了权限管理不止要在AndroidManifest.xml里面添加权限<uses-permission android:nam 阅读全文
posted @ 2018-05-25 12:12 strongdady 阅读(2720) 评论(0) 推荐(0) 编辑
摘要: module 的 gradle.build最后三行的compile 是关键dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appco 阅读全文
posted @ 2018-05-25 08:12 strongdady 阅读(378) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/cbc1239a9f6f 阅读全文
posted @ 2018-05-24 09:08 strongdady 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 启动扫描闪退,因为忘了在manifest里申请手机镜头使用许可了。 阅读全文
posted @ 2018-05-24 09:05 strongdady 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 今天上午完成了devicescan,发送了rar包到yzx3233@sina.com 可以正常扫描和输入了。 还有一个最后的问题,就是选择退出后,程序还在后台 阅读全文
posted @ 2018-05-23 13:16 strongdady 阅读(146) 评论(0) 推荐(0) 编辑
摘要: public class App extends Application { private static List<Activity> lists = new ArrayList<>(); public static void addActivity(Activity activity) { li 阅读全文
posted @ 2018-05-23 12:58 strongdady 阅读(516) 评论(0) 推荐(0) 编辑
摘要: 用finish()结束android程序 阅读全文
posted @ 2018-05-23 12:56 strongdady 阅读(172) 评论(0) 推荐(0) 编辑