added permission support for USB & established a connection using service
This commit is contained in:
@@ -17,34 +17,39 @@
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/Theme.RefactoredApp"
|
||||
tools:targetApi="31">
|
||||
|
||||
<service
|
||||
android:name=".UsbService"
|
||||
android:name=".presentation.testRight.UsbService"
|
||||
android:enabled="true"
|
||||
android:exported="true"></service>
|
||||
android:exported="false" />
|
||||
|
||||
<activity
|
||||
android:name=".presentation.SplashActivity"
|
||||
android:exported="true">
|
||||
android:exported="true"
|
||||
android:theme="@style/AppTheme.NoActionBar"
|
||||
android:noHistory="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<activity
|
||||
android:name=".presentation.TestRight.TestRightActivity"
|
||||
android:exported="false" />
|
||||
<activity
|
||||
android:name=".presentation.MainActivity"
|
||||
android:exported="true">
|
||||
android:name=".presentation.testRight.TestRightActivity"
|
||||
android:exported="false">
|
||||
<intent-filter>
|
||||
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
|
||||
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
|
||||
<meta-data
|
||||
android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
|
||||
android:resource="@xml/device_filter" />
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".presentation.MainActivity"
|
||||
android:exported="true">
|
||||
|
||||
</activity>
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
Reference in New Issue
Block a user