今天完成了程序,源代码做备份在这里,以备以后使用

今天完成了,可以扫描条码后显示出设备信息

项目名称qrscan,目录D:\android_projects\scan

做了rar打包,发送到邮箱里了

两个主程序,一个是MainActivity.java,还有一个Device.java

MainActivity.java如下

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.strongdady.qrscan">

<uses-permission android:name="android.permission.CAMERA" />


<uses-permission android:name="android.permission.VIBRATE" />

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />

<uses-feature android:name="android.hardware.camera" android:required="true"/>
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>


<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"



android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>

+++++++++++++++++++++++++++++++++++++++

Device.java

package com.strongdady.qrscan;

/**
* Created by strongdady on 2018/5/21.
*/

public class Device {
public String no, Owner,Name,RegisterDate;

}
posted @ 2018-05-21 15:27  strongdady  阅读(821)  评论(0编辑  收藏  举报