Hello everyone!.... I have found it causing the problem! but I dont know how to solve it...
This part of code in the manifest file cause the problem.
AddActivityText(main, <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" />)
When I put the code the program
start automatically ( with #StartAtBoot: False )
shows: (Aplication stoped)
and crash after every startup or reboot .
If I comment this piece code the program start up ok
At first time at running the program the system shows the permission of the usb device.
I select and accept but the serial port don't work.
I close the program and run it newly and now the serial port works but if I restart the system... I need accept the USB permision each time.
Any suggestion please!.... Thank's a Lot