Found in plug usb mouse, the Activity will reload, which executes onPause -- & gt; OnStop -- & gt; OnCreate - & gt; OnResume,
Along with the following error message:
[ScreenshotSurface] dequeueBuffer: can 't to dequeue multiple buffers without setting the buffer count
Switch to other usb flash drive, not appear this kind of phenomenon,
The log is as follows:
Unplug the mouse:
2-1.2: usb disconnect usb device number 10
I/EventHub (2510) : o device '/dev/input/mouse0' due to the way the event
I/EventHub (2510) : o device '/dev/input/event0' due to the way the event
I/EventHub (2510) : Removed the device: the path=/dev/input/event0 name=Microsoft Comfort Mouse 3000 id=6 fd=166 classes=0 x80000169
I/InputReader (2510) : Device removed: id=6, name='Microsoft Comfort Mouse 3000', sources=0 x01002713
I/ActivityManager (2510) : the Config changes=1460 {1.0? MCC? Newsun focus zh_CN LDLTR sw1080dp w1920dp h1007dp 160 dpi XLRG long land - touch - keyb/v/h - nav/h s. 17}
E/BufferQueue (2213) : [ScreenshotSurface] dequeueBuffer: can 't to dequeue multiple buffers without setting the buffer count
E/MainActivity (3599) : onPause
E/MainActivity (3599) : onStop
E/MainActivity (3599) : onCreate
D/PhoneStatusBar (2583) : mSettingsPanelGravity=8388661
E/MainActivity (3599) : onResume
E/BufferQueue (2213) : [com. Example. The test/com. Example. The test. The MainActivity] dequeueBuffer: can 't to dequeue multiple buffers without setting the buffer count
I/WindowManager (2510) : Screen frozen for + 335 ms due to Window {41 babda8 u0 com. The example. The test/com. The example. The test. The MainActivity}
D/dalvikvm (2510) : GC_EXPLICIT freed 127 k, 5567 k/6664 k, 17% free paused 4 + 4 ms, ms total 62 ms
Insert the mouse:
Usb 2-1.2: the new low speed usb device number 11 using FSL - ehci
3000 as input: Microsoft Comfort Mouse/devices/platform/FSL - ehci. 1/usb2/2-1/2-1.2/2-1.2:1.0/input/input6
Keychord: using input dev Microsoft Comfort Mouse 3000 for fevent
Generic - usb e: 0003-045, 077 b. 0007: input, hidraw0: usb HID v1.11 Mouse [Microsoft Comfort Mouse 3000] on the usb - FSL - ehci. 1-1.2/input0
E/EventHub (2510) : could not get driver version for/dev/input/mouse0, not a typewriter
D/EventHub (2510) : No input device configuration file found for device 'Microsoft Comfort Mouse 3000'.
W/EventHub (2510) : Unable to disable the kernel key repeat for/dev/input/event0: Function not implemented
I/EventHub (2510) : the New device: id=7, fd=173, path='/dev/input/event0' name='Microsoft Comfort Mouse 3000', classes=0 x80000169, configuration=",
KeyLayout='/system/usr/keyLayout/Generic kl', keyCharacterMap='/system/usr/keychars/Generic. His', builtinKeyboard=false, usingSuspendBlockIoctl=true,
UsingClockIoctl=false
I/InputReader (2510) : Device added: id=7, name='Microsoft Comfort Mouse 3000', sources=0 x01002713
I/ActivityManager (2510) : the Config changes=1460 {1.0? MCC? Newsun focus zh_CN LDLTR sw1080dp w1920dp h1007dp 160 dpi XLRG long land - touch - keyb dpad/v/v/h s. 18}
E/BufferQueue (2213) : [ScreenshotSurface] dequeueBuffer: can 't to dequeue multiple buffers without setting the buffer count
E/MainActivity (3599) : onPause
E/MainActivity (3599) : onStop
E/MainActivity (3599) : onCreate
D/PhoneStatusBar (2583) : mSettingsPanelGravity=8388661
E/MainActivity (3599) : onResume
E/BufferQueue (2213) : [com. Example. The test/com. Example. The test. The MainActivity] dequeueBuffer: can 't to dequeue multiple buffers without setting the buffer count
I/WindowManager (2510) : Screen frozen for + 311 ms due to Window {41 c29860 u0 com. The example. The test/com. The example. The test. The MainActivity}
D/dalvikvm (2510) : GC_EXPLICIT freed 185 k, 5572 k/6664 k, 17% free paused 4 + 4 ms, ms total 69 ms
Some people say that in the manifest to cancel hardware acceleration, I set android: hardwareAccelerated="false", the Activity will still be reloaded,
Don't know if you have encountered this kind of problem,
How to solve?
CodePudding user response:
The original poster behind the problem solved? I also met this problem, this way is inserted into the USB flash drive will reload,CodePudding user response:
Activity in the manifest file and properties: the android: configChanges="fontScale | the rid_device_info_keyboard | keyboardHidden | locale | orientation | screenLayout | uiMode | screenSize | navigation" can solve the @ dxp09104106