if(intent.getAction().equals(ACTION_BOOT)){ PackageManager pm = context.getPackageManager(); //包管理者 Intent it = new Intent(); //意图 it = pm.getLaunchIntentForPackage("com.sgmw.screen"); //值为应用的包名 if (null != it) { context.startActivity(it); //启动意图 } }
日志——————
adb logcat -v threadtime > log.txt
./gradlew assembleOfficalDebug
./gradlew assembleOfficalRelease
adb push /Users/xubi/Desktop/android/unisound/wuling.dat /sdcard/unisound/
adb uninstall com.dfzt.voice6
adb install /Users/xubi/Desktop/android/app/device_sample.apk
cd /data && uni_4mic_test -cap cap.pcm -c 2 -t 30
tinyplay /sdcard/unidata/waking_file_out.wav