Last active
May 6, 2024 10:02
-
-
Save tommie/568d11fecc3ab5b8fd20de39d4407389 to your computer and use it in GitHub Desktop.
Example usb_serial intent configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | |
<application | |
android:label="example" | |
android:name="${applicationName}" | |
android:icon="@mipmap/ic_launcher"> | |
<activity | |
android:name=".MainActivity" | |
android:exported="true" | |
android:launchMode="singleTop" | |
android:theme="@style/LaunchTheme" | |
android:directBootAware="true" | |
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" | |
android:hardwareAccelerated="true" | |
android:windowSoftInputMode="adjustResize"> | |
<!-- Specifies an Android theme to apply to this Activity as soon as | |
the Android process has started. This theme is visible to the user | |
while the Flutter UI initializes. After that, this theme continues | |
to determine the Window background behind the Flutter UI. --> | |
<meta-data | |
android:name="io.flutter.embedding.android.NormalTheme" | |
android:resource="@style/NormalTheme" | |
/> | |
<intent-filter> | |
<action android:name="android.intent.action.MAIN"/> | |
<category android:name="android.intent.category.LAUNCHER"/> | |
</intent-filter> | |
<intent-filter> | |
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" /> | |
</intent-filter> | |
<meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" android:resource="@xml/device_filter" /> | |
</activity> | |
<!-- Don't delete the meta-data below. | |
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java --> | |
<meta-data | |
android:name="flutterEmbedding" | |
android:value="2" /> | |
</application> | |
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<!-- RaspberryPi RP2040 - 0x2E8A 0x000A --> | |
<usb-device vendor-id="11914" product-id="10" /> | |
</resources> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment