Bug 31383 - APP Restarts when Bluetooth HID Device is connected / disconnected
Summary: APP Restarts when Bluetooth HID Device is connected / disconnected
Status: RESOLVED DUPLICATE of bug 25888
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 1.4.2
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Jason Smith [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2015-06-25 15:27 UTC by Brian
Modified: 2017-06-20 18:56 UTC (History)
3 users (show)

Tags: ac android
Is this bug a regression?: ---
Last known good build:


Attachments
Bluetooth App Restart Test (6.61 MB, application/octet-stream)
2015-06-25 15:28 UTC, Brian
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 25888

Description Brian 2015-06-25 15:27:39 UTC
When connecting or disconnecting a bluetooth HID barcode scanner my app will restart.

Tested on Samsung Note2 & Note4 / LG G3
Bluetooth Device: Motoroloa CS3070


I also tested on the latest Forms Pre-Release 3

Attached is a sample application.  The application background will change at launch.  

Simply connect or disconnect a HID bluetooth device and you will see the app changes color.


Output Log:

06-25 15:26:18.618 W/dalvikvm(32172): No implementation found for native Ldalvik/system/VMRuntime;.pauseGc:(Ljava/lang/String;)I
06-25 15:26:18.618 E/ActivityThread(32172): Pause GC
06-25 15:26:18.618 E/ActivityThread(32172): java.lang.reflect.InvocationTargetException
06-25 15:26:18.618 E/ActivityThread(32172): 	at java.lang.reflect.Method.invokeNative(Native Method)
06-25 15:26:18.618 E/ActivityThread(32172): 	at java.lang.reflect.Method.invoke(Method.java:515)
06-25 15:26:18.618 E/ActivityThread(32172): 	at android.app.ActivityThread.pauseGC(ActivityThread.java:5525)
06-25 15:26:18.618 E/ActivityThread(32172): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2324)
06-25 15:26:18.618 E/ActivityThread(32172): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2471)
06-25 15:26:18.618 E/ActivityThread(32172): 	at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4054)
06-25 15:26:18.618 E/ActivityThread(32172): 	at android.app.ActivityThread.access$1000(ActivityThread.java:175)
06-25 15:26:18.618 E/ActivityThread(32172): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1314)
06-25 15:26:18.618 E/ActivityThread(32172): 	at android.os.Handler.dispatchMessage(Handler.java:102)
06-25 15:26:18.618 E/ActivityThread(32172): 	at android.os.Looper.loop(Looper.java:146)
06-25 15:26:18.618 E/ActivityThread(32172): 	at android.app.ActivityThread.main(ActivityThread.java:5602)
06-25 15:26:18.618 E/ActivityThread(32172): 	at java.lang.reflect.Method.invokeNative(Native Method)
06-25 15:26:18.618 E/ActivityThread(32172): 	at java.lang.reflect.Method.invoke(Method.java:515)
06-25 15:26:18.618 E/ActivityThread(32172): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
06-25 15:26:18.618 E/ActivityThread(32172): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
06-25 15:26:18.618 E/ActivityThread(32172): 	at dalvik.system.NativeStart.main(Native Method)
06-25 15:26:18.618 E/ActivityThread(32172): Caused by: java.lang.UnsatisfiedLinkError: Native method not found: dalvik.system.VMRuntime.pauseGc:(Ljava/lang/String;)I
06-25 15:26:18.618 E/ActivityThread(32172): 	at dalvik.system.VMRuntime.pauseGc(Native Method)
06-25 15:26:18.618 E/ActivityThread(32172): 	... 16 more
06-25 15:26:18.648 E/MoreInfoHPW_ViewGroup(32172): Parent view is not a TextView
06-25 15:26:18.678 E/ViewRootImpl(32172): sendUserActionEvent() mView == null
Comment 1 Brian 2015-06-25 15:28:21 UTC
Created attachment 11739 [details]
Bluetooth App Restart Test
Comment 2 Samantha Houts [MSFT] 2017-06-20 18:56:17 UTC

*** This bug has been marked as a duplicate of bug 25888 ***