Google place picker closes immediately - android

I've setup all the things that are needed, but still whenever I open the google place picker it closes immediately after get loaded. I also tried by restricting api with my project package and SHA-1 key.
I added this dependency
implementation 'com.google.android.gms:play-services-places:17.0.0'
In Manifest it has meta-data tag like
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="#string/google_maps_key" />
And permissions
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
In activity
if (hasPermissions()) {
PlacePicker.IntentBuilder builder = new PlacePicker.IntentBuilder();
try {
startActivityForResult(builder.build(this), PLACE_PICKER_REQUEST);
} catch (Exception e) {
Log.e("112233", e.getStackTrace().toString());
}
}
Log is printing.
2019-11-03 17:07:31.625 20912-20912/com.kashif.locationsample D/ViewRootImpl#57f08c4[MainActivity]: ViewPostIme pointer 0
2019-11-03 17:07:31.721 20912-20912/com.kashif.locationsample D/ViewRootImpl#57f08c4[MainActivity]: ViewPostIme pointer 1
2019-11-03 17:07:31.837 20912-20912/com.kashif.locationsample D/ViewRootImpl#57f08c4[MainActivity]: MSG_WINDOW_FOCUS_CHANGED 0 1
2019-11-03 17:07:31.837 20912-20912/com.kashif.locationsample D/InputMethodManager: prepareNavigationBarInfo() DecorView#d20f601[MainActivity]
2019-11-03 17:07:31.837 20912-20912/com.kashif.locationsample D/InputMethodManager: getNavigationBarColor() -855310
2019-11-03 17:07:32.519 20912-20912/com.kashif.locationsample D/InputTransport: Input channel destroyed: fd=87
2019-11-03 17:07:33.149 20912-20912/com.kashif.locationsample D/ViewRootImpl#57f08c4[MainActivity]: MSG_WINDOW_FOCUS_CHANGED 1 1
2019-11-03 17:07:33.150 20912-20912/com.kashif.locationsample D/InputMethodManager: prepareNavigationBarInfo() DecorView#d20f601[MainActivity]
2019-11-03 17:07:33.150 20912-20912/com.kashif.locationsample D/InputMethodManager: getNavigationBarColor() -855310
2019-11-03 17:07:33.151 20912-20912/com.kashif.locationsample D/InputMethodManager: prepareNavigationBarInfo() DecorView#d20f601[MainActivity]
2019-11-03 17:07:33.151 20912-20912/com.kashif.locationsample D/InputMethodManager: getNavigationBarColor() -855310
2019-11-03 17:07:33.151 20912-20912/com.kashif.locationsample V/InputMethodManager: Starting input: tba=com.kashif.locationsample ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
2019-11-03 17:07:33.151 20912-20912/com.kashif.locationsample D/InputMethodManager: startInputInner - Id : 0
2019-11-03 17:07:33.152 20912-20912/com.kashif.locationsample I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
2019-11-03 17:07:33.154 20912-20912/com.kashif.locationsample D/InputTransport: Input channel constructed: fd=87
2019-11-03 17:07:33.155 20912-20912/com.kashif.locationsample D/ViewRootImpl#57f08c4[MainActivity]: setWindowStopped(false) old=false

Place picker is turned off by google on July 29, 2019.
Place Picker is no longer available

Related

App showing white blank screen when quitting app with back button after open push notification

After launching app from tapping on push notification, app is showing white blank screen when quit app with hardware back button. Logged react navigation stack but showing only 1 route in the stack.
I've tried to override the back function by using BackHandler.exitApp() but getting white screen as well. Same goes to the launchMode in AndroidManifest.xml. Tried all possible types but still getting same behaviour. When launch app normally, this issue doesn't happen. Any idea?
Launch normally:
Launch -> Go to MainScreen -> Press back button -> Quit app
Launch from push notification:
Launch -> Go to MainScreen -> Press back button -> Show white screen -> Press back button -> Quit app
//App.tsx
<SafeAreaProvider>
<AuthContext setLoggedInState={setLoggedIn}>
<NavigationContainer>
<MainBottomTabNav isLoggedIn={isLoggedIn} />
<DropdownAlert />
</NavigationContainer>
</AuthContext>
</SafeAreaProvider>
//AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.myapp">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-feature android:name="android.hardware.camera" android:required="false" />
<uses-feature android:name="android.hardware.camera.front" android:required="false" />
<application
android:name=".MainApplication"
android:label="#string/app_name"
android:icon="#mipmap/ic_launcher"
android:roundIcon="#mipmap/ic_launcher_round"
android:allowBackup="false"
android:theme="#style/AppTheme"
android:networkSecurityConfig="#xml/network_security_config">
<activity
android:name=".MainActivity"
android:label="#string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:launchMode="singleInstance"
android:exported="true"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="myapp" />
</intent-filter>
</activity>
</application>
</manifest>
Update:
So I tried to remove the myapp intent-filter, change to other launchMode but still returned white screen.
Checked out the adb logcat and notice that OpenNotificationActivity is attached before MainActivity. Suspecting this was the cause but still not sure how to disable/bypass the notification activity directly to main
Tried adding android:noHistory="true" to MainActivity and error still persist. Added logcat for reference.
Logcat
//press back once - show empty screen
2023-01-10 16:46:00.312 19681-19681/com.myapp I/ViewRootImpl#2bf2385[MainActivity]: ViewPostIme key 0
2023-01-10 16:46:00.542 19681-19681/com.myapp I/ViewRootImpl#2bf2385[MainActivity]: ViewPostIme key 1
2023-01-10 16:46:00.567 19681-19681/com.myapp D/SensorManager: unregisterListener :: com.facebook.react.common.ShakeDetector#f13d4ca
2023-01-10 16:46:00.568 19681-19681/com.myapp I/PUSHER_WRAPPER: onPause: MainActivity
2023-01-10 16:46:00.581 19681-19681/com.myapp I/ViewRootImpl#e02686c[OpenNotificationActivity]: stopped(false) old=true
2023-01-10 16:46:00.584 19681-19681/com.myapp I/ViewRootImpl#e02686c[OpenNotificationActivity]: stopped(false) old=false
2023-01-10 16:46:00.601 19681-19681/com.myapp I/SurfaceControl: assignNativeObject: nativeObject = 0 Surface(name=null)/#0x7104eed / android.view.SurfaceControl.readFromParcel:1121 android.view.IWindowSession$Stub$Proxy.relayout:1824 android.view.ViewRootImpl.relayoutWindow:9005 android.view.ViewRootImpl.performTraversals:3360 android.view.ViewRootImpl.doTraversal:2618 android.view.ViewRootImpl$TraversalRunnable.run:9971 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995
2023-01-10 16:46:00.603 19681-19681/com.myapp I/ViewRootImpl#e02686c[OpenNotificationActivity]: Relayout returned: old=(0,0,1080,2400) new=(0,0,1080,2400) req=(1080,2400)0 dur=11 res=0x7 s={true -5476376619252260592} ch=true fn=-1
2023-01-10 16:46:00.613 19681-19681/com.myapp I/SurfaceControl: nativeRelease nativeObject s[-5476376623546288864]
2023-01-10 16:46:00.613 19681-19681/com.myapp I/SurfaceControl: nativeRelease nativeObject e[-5476376623546288864]
2023-01-10 16:46:00.613 19681-19681/com.myapp I/SurfaceControl: nativeRelease nativeObject s[-5476376623546335504]
2023-01-10 16:46:00.613 19681-19681/com.myapp I/SurfaceControl: nativeRelease nativeObject e[-5476376623546335504]
2023-01-10 16:46:00.614 19681-19681/com.myapp I/SurfaceControl: nativeRelease nativeObject s[-5476376623546261408]
2023-01-10 16:46:00.614 19681-19681/com.myapp I/SurfaceControl: nativeRelease nativeObject e[-5476376623546261408]
2023-01-10 16:46:00.616 19681-19681/com.myapp I/ViewRootImpl#2bf2385[MainActivity]: MSG_WINDOW_FOCUS_CHANGED 0 1
2023-01-10 16:46:00.641 19681-19681/com.myapp I/ViewRootImpl#e02686c[OpenNotificationActivity]: MSG_WINDOW_FOCUS_CHANGED 1 1
2023-01-10 16:46:00.641 19681-19681/com.myapp D/InputMethodManager: prepareNavigationBarInfo() DecorView#a0792d4[OpenNotificationActivity]
2023-01-10 16:46:00.641 19681-19681/com.myapp D/InputMethodManager: getNavigationBarColor() -16711423
2023-01-10 16:46:00.642 19681-19681/com.myapp D/InputMethodManager: prepareNavigationBarInfo() DecorView#a0792d4[OpenNotificationActivity]
2023-01-10 16:46:00.642 19681-19681/com.myapp D/InputMethodManager: getNavigationBarColor() -16711423
2023-01-10 16:46:00.642 19681-19681/com.myapp V/InputMethodManager: Starting input: tba=com.myapp ic=null mNaviBarColor -16711423 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
2023-01-10 16:46:00.643 19681-19681/com.myapp D/InputMethodManager: startInputInner - Id : 0
2023-01-10 16:46:00.643 19681-19681/com.myapp I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
2023-01-10 16:46:00.647 19681-19681/com.myapp D/InputTransport: Input channel constructed: 'ClientS', fd=171
2023-01-10 16:46:00.647 19681-19681/com.myapp D/InputTransport: Input channel destroyed: 'ClientS', fd=163
2023-01-10 16:46:00.660 19681-19681/com.myapp I/SurfaceControl: nativeRelease nativeObject s[-5476376623546263872]
2023-01-10 16:46:00.660 19681-19681/com.myapp I/SurfaceControl: nativeRelease nativeObject e[-5476376623546263872]
2023-01-10 16:46:00.669 19681-19681/com.myapp I/SurfaceControl: nativeRelease nativeObject s[-5476376623546277072]
2023-01-10 16:46:00.669 19681-19681/com.myapp I/SurfaceControl: nativeRelease nativeObject e[-5476376623546277072]
2023-01-10 16:46:00.669 19681-19681/com.myapp I/SurfaceControl: nativeRelease nativeObject s[-5476376623546240816]
2023-01-10 16:46:00.669 19681-19681/com.myapp I/SurfaceControl: nativeRelease nativeObject e[-5476376623546240816]
2023-01-10 16:46:00.968 19681-19681/com.myapp I/SurfaceControl: nativeRelease nativeObject s[-5476376623546329520]
2023-01-10 16:46:00.968 19681-19681/com.myapp I/SurfaceControl: nativeRelease nativeObject e[-5476376623546329520]
2023-01-10 16:46:00.969 19681-19681/com.myapp I/SurfaceControl: assignNativeObject: nativeObject = 0 Surface(name=null)/#0x4dd8fc / android.view.SurfaceControl.readFromParcel:1121 android.view.IWindowSession$Stub$Proxy.relayout:1814 android.view.ViewRootImpl.relayoutWindow:9005 android.view.ViewRootImpl.performTraversals:3360 android.view.ViewRootImpl.doTraversal:2618 android.view.ViewRootImpl$TraversalRunnable.run:9971 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995
2023-01-10 16:46:00.969 19681-19681/com.myapp I/SurfaceControl: assignNativeObject: nativeObject = 0 Surface(name=null)/#0xc5f1f73 / android.view.SurfaceControl.readFromParcel:1121 android.view.IWindowSession$Stub$Proxy.relayout:1824 android.view.ViewRootImpl.relayoutWindow:9005 android.view.ViewRootImpl.performTraversals:3360 android.view.ViewRootImpl.doTraversal:2618 android.view.ViewRootImpl$TraversalRunnable.run:9971 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995
2023-01-10 16:46:00.970 19681-19681/com.myapp I/ViewRootImpl#2bf2385[MainActivity]: Relayout returned: old=(0,0,1080,2400) new=(0,0,1080,2400) req=(1080,2400)8 dur=9 res=0x5 s={false 0} ch=true fn=103
2023-01-10 16:46:00.972 19681-19681/com.myapp I/ViewRootImpl#2bf2385[MainActivity]: stopped(true) old=false
2023-01-10 16:46:00.984 19681-19681/com.myapp I/PUSHER_WRAPPER: onDestroy: MainActivity
2023-01-10 16:46:00.984 19681-19681/com.myapp E/unknown:ReactNative: Tried to remove non-existent frame callback
2023-01-10 16:46:00.986 19681-19681/com.myapp I/ViewRootImpl#2bf2385[MainActivity]: dispatchDetachedFromWindow
2023-01-10 16:46:00.991 19681-19681/com.myapp D/InputTransport: Input channel destroyed: 'd04450c', fd=168
2023-01-10 16:46:01.028 19681-26631/com.myapp W/unknown:ReactNative: StatusBarModule: Ignored status bar change, current activity is null.
2023-01-10 16:46:01.028 19681-26631/com.myapp W/unknown:ReactNative: StatusBarModule: Ignored status bar change, current activity is null.
2023-01-10 16:46:01.028 19681-26631/com.myapp W/unknown:ReactNative: StatusBarModule: Ignored status bar change, current activity is null.
//press back twice - quit app
2023-01-10 16:46:30.821 19681-19681/com.myapp I/ViewRootImpl#e02686c[OpenNotificationActivity]: ViewPostIme key 0
2023-01-10 16:46:31.018 19681-19681/com.myapp I/ViewRootImpl#e02686c[OpenNotificationActivity]: ViewPostIme key 1
2023-01-10 16:46:31.089 19681-19681/com.myapp I/ViewRootImpl#e02686c[OpenNotificationActivity]: MSG_WINDOW_FOCUS_CHANGED 0 1
2023-01-10 16:46:31.116 19681-26629/com.myapp I/ReactNativeJNI: Memory warning (pressure level: TRIM_MEMORY_UI_HIDDEN) received by JS VM, ignoring because it's non-severe
2023-01-10 16:46:31.129 19681-19681/com.myapp I/SurfaceControl: nativeRelease nativeObject s[-5476376623546259120]
2023-01-10 16:46:31.129 19681-19681/com.myapp I/SurfaceControl: nativeRelease nativeObject e[-5476376623546259120]
2023-01-10 16:46:31.130 19681-19681/com.myapp I/SurfaceControl: nativeRelease nativeObject s[-5476376623546216000]
2023-01-10 16:46:31.130 19681-19681/com.myapp I/SurfaceControl: nativeRelease nativeObject e[-5476376623546216000]
2023-01-10 16:46:31.130 19681-19681/com.myapp I/SurfaceControl: nativeRelease nativeObject s[-5476376623546263872]
2023-01-10 16:46:31.130 19681-19681/com.myapp I/SurfaceControl: nativeRelease nativeObject e[-5476376623546263872]
2023-01-10 16:46:31.187 19681-19681/com.myapp D/InputTransport: Input channel destroyed: 'ClientS', fd=171
2023-01-10 16:46:31.201 19681-19681/com.myapp I/SurfaceControl: nativeRelease nativeObject s[-5476376623546206672]
2023-01-10 16:46:31.201 19681-19681/com.myapp I/SurfaceControl: nativeRelease nativeObject e[-5476376623546206672]
2023-01-10 16:46:31.459 19681-19681/com.myapp I/SurfaceControl: nativeRelease nativeObject s[-5476376623546209664]
2023-01-10 16:46:31.459 19681-19681/com.myapp I/SurfaceControl: nativeRelease nativeObject e[-5476376623546209664]
2023-01-10 16:46:31.460 19681-19681/com.myapp I/SurfaceControl: assignNativeObject: nativeObject = 0 Surface(name=null)/#0xae285e1 / android.view.SurfaceControl.readFromParcel:1121 android.view.IWindowSession$Stub$Proxy.relayout:1814 android.view.ViewRootImpl.relayoutWindow:9005 android.view.ViewRootImpl.performTraversals:3360 android.view.ViewRootImpl.doTraversal:2618 android.view.ViewRootImpl$TraversalRunnable.run:9971 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995
2023-01-10 16:46:31.461 19681-19681/com.myapp I/SurfaceControl: assignNativeObject: nativeObject = 0 Surface(name=null)/#0x7104eed / android.view.SurfaceControl.readFromParcel:1121 android.view.IWindowSession$Stub$Proxy.relayout:1824 android.view.ViewRootImpl.relayoutWindow:9005 android.view.ViewRootImpl.performTraversals:3360 android.view.ViewRootImpl.doTraversal:2618 android.view.ViewRootImpl$TraversalRunnable.run:9971 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995
2023-01-10 16:46:31.463 19681-19681/com.myapp I/ViewRootImpl#e02686c[OpenNotificationActivity]: Relayout returned: old=(0,0,1080,2400) new=(0,0,1080,2400) req=(1080,2400)8 dur=9 res=0x5 s={false 0} ch=true fn=2
2023-01-10 16:46:31.464 19681-19681/com.myapp I/ViewRootImpl#e02686c[OpenNotificationActivity]: stopped(true) old=false
2023-01-10 16:46:31.470 19681-19681/com.myapp I/ViewRootImpl#e02686c[OpenNotificationActivity]: dispatchDetachedFromWindow
2023-01-10 16:46:31.474 19681-19681/com.myapp D/InputTransport: Input channel destroyed: '772477 ', fd=134
I think there are two scenarios in which this can happen
the MainScreen is not defined as lunchable activity in androidManifest file (so check that out)
react native is adding an other activity to open your MainScreen
anyways I think the best way is to close the app yourself when user presses the backButton in android
you can use this:
import React, { BackHandler } from 'react-native';
BackHandler.exitApp();
this is for android only
if this didn't help please share your androidManifest file here because I am sure the problem is there somewhere
EDIT
based on comments I understand this is happening because
it seems to be causing from b8ne/react-native-pusher-push-notifications library. I noticed that OpenNotificationActivity is attached before MainActivity. Hence when first backPress is triggered, it's destroying MainActivity leaving white screen from OpenNotificationActivity
so please add noHistory attribute to your MainActivity in your AndroidManifest file for more information please take a look at the no history flag docs

ERROR: Unknown bits set in runtime_flags: 0x8000

Simple application that scans Wi-Fi networks.
This one for a reference: Get available wi-fi scan result in customized listview
Just put a ListView in a layout and add ACCESS/CHANGE_WIFI_STATE permissions into manifest.
The problem is that it works on my Samsung J3 (2016), but I don't know why it doesn't on my new Samsung M11. Has it something to do with Android versions? I have already returned a Realme C3 that was having same issues because I thought it was due to Mediatek SOC.
SAMSUNG M11 (Android 10) LOG:
03/28 20:09:56: Launching 'app' on Physical Device.
Install successfully finished in 3 s 220 ms.
$ adb shell am start -n "es.josecarlos.myapplication/es.josecarlos.myapplication.SearchWifi" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 29558 on device 'samsung-sm_m115f-R9JR30FM7HJ'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/s.myapplicatio: Late-enabling -Xcheck:jni
E/s.myapplicatio: Unknown bits set in runtime_flags: 0x8000
D/ActivityThread: setConscryptValidator
D/ActivityThread: setConscryptValidator - put
E/ANDR-PERF: IPerf:: Perf HAL Service is not available.
E/ANDR-PERF: IPerf:: Perf HAL Service is not available.
E/ANDR-PERF: IPerf:: Perf HAL Service is not available.
I/Perf: Connecting to perf service.
I/s.myapplicatio: Starting a blocking GC Alloc
Starting a blocking GC Alloc
I/s.myapplicatio: Waiting for a blocking GC Alloc
I/s.myapplicatio: WaitForGcToComplete blocked Alloc on ClassLinker for 20.796ms
Starting a blocking GC Alloc
D/PhoneWindow: forceLight changed to true [] from com.android.internal.policy.PhoneWindow.updateForceLightNavigationBar:4238 com.android.internal.policy.DecorView.updateColorViews:1490 com.android.internal.policy.PhoneWindow.dispatchWindowAttributesChanged:3216 android.view.Window.setFlags:1148 com.android.internal.policy.PhoneWindow.generateLayout:2444
I/MultiWindowDecorSupport: updateCaptionType >> DecorView#9ffef9d[], isFloating: false, isApplication: true, hasWindowDecorCaption: false, hasWindowControllerCallback: true
D/MultiWindowDecorSupport: setCaptionType = 0, DecorView = DecorView#9ffef9d[]
W/s.myapplicatio: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed)
W/s.myapplicatio: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed)
D/ViewRootImpl#73bc89c[SearchWifi]: setView = com.android.internal.policy.DecorView#9ffef9d TM=true MM=false
D/ViewRootImpl#73bc89c[SearchWifi]: Relayout returned: old=(0,0,720,1560) new=(0,0,720,1560) req=(720,1560)0 dur=14 res=0x7 s={true 3550955520} ch=true
D/OpenGLRenderer: createReliableSurface : 0xd3a8e0c0, 0xd3a74800
I/AdrenoGLES: QUALCOMM build : 2ced3f2, Id01cc02572
Build Date : 12/15/19
OpenGL ES Shader Compiler Version: EV031.27.05.02
Local Branch :
Remote Branch : refs/tags/AU_LINUX_ANDROID_LA.UM.8.6.2.R1.10.00.00.537.049
Remote Branch : NONE
Reconstruct Branch : NOTHING
Build Config : S L 8.0.10 AArch32
D/AbsListView: in onLayout changed
I/AdrenoGLES: PFP: 0x005ff112, ME: 0x005ff066
W/Gralloc3: mapper 3.x is not supported
D/ViewRootImpl#73bc89c[SearchWifi]: MSG_WINDOW_FOCUS_CHANGED 1 1
D/InputMethodManager: prepareNavigationBarInfo() DecorView#9ffef9d[SearchWifi]
getNavigationBarColor() -855310
D/InputMethodManager: prepareNavigationBarInfo() DecorView#9ffef9d[SearchWifi]
getNavigationBarColor() -855310
V/InputMethodManager: Starting input: tba=es.josecarlos.myapplication ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
D/InputMethodManager: startInputInner - Id : 0
I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
D/ViewRootImpl#73bc89c[SearchWifi]: MSG_RESIZED: frame=(0,0,720,1560) ci=(0,65,0,84) vi=(0,65,0,84) or=1
D/InputMethodManager: prepareNavigationBarInfo() DecorView#9ffef9d[SearchWifi]
D/InputMethodManager: getNavigationBarColor() -855310
V/InputMethodManager: Starting input: tba=es.josecarlos.myapplication ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
D/InputMethodManager: startInputInner - Id : 0
D/ViewRootImpl#73bc89c[SearchWifi]: ViewPostIme pointer 0
D/ViewRootImpl#73bc89c[SearchWifi]: ViewPostIme pointer 1
D/ViewRootImpl#47f6701[Toast]: setView = android.widget.LinearLayout#76759a6 TM=true MM=false
V/Toast: Text: Fsca in android.widget.Toast$TN#b5efe7
D/ViewRootImpl#47f6701[Toast]: Relayout returned: old=(0,65,720,1476) new=(232,1287,488,1364) req=(256,77)0 dur=12 res=0x7 s={true 3550953472} ch=true
D/OpenGLRenderer: createReliableSurface : 0xb8abc140, 0xd3a74000
D/ViewRootImpl#47f6701[Toast]: MSG_RESIZED: frame=(232,1287,488,1364) ci=(0,0,0,0) vi=(0,0,256,77) or=1
D/ViewRootImpl#47f6701[Toast]: dispatchDetachedFromWindow
D/InputTransport: Input channel destroyed: 'c01175c', fd=75
SAMSUNG J3 (Android 5.1) LOG:
03/28 20:19:39: Launching 'app' on Physical Device.
Install successfully finished in 1 m 15 s 28 ms.
$ adb shell am start -n "es.josecarlos.myapplication/es.josecarlos.myapplication.SearchWifi" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 8248 on device 'samsung-sm_j320fn-42000d659a379400'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
W/ResourcesManager: getTopLevelResources: /data/app/es.josecarlos.myapplication-1/base.apk / 1.0 running in es.josecarlos.myapplication rsrc of package es.josecarlos.myapplication
I/InjectionManager: Inside getClassLibPath + mLibMap{0=, 1=}
D/ResourcesManager: For user 0 new overlays fetched Null
I/InjectionManager: Inside getClassLibPath caller
D/InjectionManager: InjectionManager
fillFeatureStoreMap es.josecarlos.myapplication
I/InjectionManager: Constructor es.josecarlos.myapplication, Feature store :{}
featureStore :{}
W/ResourcesManager: getTopLevelResources: /data/app/es.josecarlos.myapplication-1/base.apk / 1.0 running in es.josecarlos.myapplication rsrc of package es.josecarlos.myapplication
W/ResourcesManager: getTopLevelResources: /data/app/es.josecarlos.myapplication-1/base.apk / 1.0 running in es.josecarlos.myapplication rsrc of package es.josecarlos.myapplication
getTopLevelResources: /data/app/es.josecarlos.myapplication-1/base.apk / 1.0 running in es.josecarlos.myapplication rsrc of package es.josecarlos.myapplication
D/ResourcesManager: For user 0 new overlays fetched Null
W/ResourceType: Failure getting entry for 0x01080946 (t=7 e=2374) (error -75)
W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
D/PhoneWindow: *FMB* installDecor mIsFloating : false
*FMB* installDecor flags : -2139029248
I/art: Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>
Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
W/ResourceType: Failure getting entry for 0x01080946 (t=7 e=2374) (error -75)
Failure getting entry for 0x01080946 (t=7 e=2374) (error -75)
D/AbsListView: Get MotionRecognitionManager
E/MotionRecognitionManager: mSContextService = null
motionService = null
D/Activity: performCreate Call Injection manager
I/InjectionManager: dispatchOnViewCreated > Target : es.josecarlos.myapplication.SearchWifi isFragment :false
D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: false
D/PhoneWindow: *FMB* isFloatingMenuEnabled mFloatingMenuBtn : null
*FMB* isFloatingMenuEnabled return false
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Get maximum texture size. GL_MAX_TEXTURE_SIZE is 4096
Enabling debug mode 0
I/InjectionManager: dispatchCreateOptionsMenu :es.josecarlos.myapplication.SearchWifi
dispatchPrepareOptionsMenu :es.josecarlos.myapplication.SearchWifi
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
setTypeface with style : 0
I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy#117c6e4b time:365818
D/ViewRootImpl: ViewPostImeInputStage ACTION_DOWN
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
setTypeface with style : 0
D/TextView: setTypeface with style : 0
D/InputMethodManager: windowDismissed mLockisused = false
Solved. I had to add FINE_LOCATION to the manifest and:
Manually give location permissions in Settings.
or
Make a popup that asks for location permissions the first time the user launch the app.

Closing cover produces a Re-layout

I have some problems with this log. When I close the cover of my phone it says this and my activity goes to next one when this should not happen. Is it possible to avoid this happening?? Avoid Relayout or focus changing??
It doesn't happen when in a Second phone with PIN number. (So i need to put the pin to unlock the phone).
With no PIN so, phone is not locked, just closed the cover. When I open again and the activity restart, the activity had finished and went to next one.
With the second phone, with PIN, when I close I have to put the PIN to enter again and in this case, the activity went in the normal way.
D/InputMethodManager: prepareNavigationBarInfo() DecorView#670a516[Fer_Habit]
getNavigationBarColor() -855310
V/InputMethodManager: Starting input: tba=com.example.gms ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : false , NavTrans : false
D/InputMethodManager: startInputInner - Id : 0
I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
D/InputTransport: Input channel destroyed: 'ClientS', fd=129
V/FA: Recording user engagement, ms: 9675
V/FA: Connecting to remote service
V/FA: Activity paused, time: 742123461
I/ViewRootImpl#e954868[Class1]: stopped(true) old=false
D/OpenGLRenderer: makeCurrent EglSurface : 0x72a3179900 -> 0x0
V/FA: Connection attempt already in progress
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 2
D/OpenGLRenderer: destroyEglSurface : 0x72a3179900
I/mali_egl: eglDestroySurface() in
I/mali_winsys: delete_surface() [2960x1440] return
I/mali_egl: eglDestroySurface() out
E/OpenGLRenderer: ReliableSurface: perform returned an error
W/libEGL: EGLNativeWindowType 0x72e1651f50 disconnect failed
D/OpenGLRenderer: ~ReliableSurface : 0x72e1651f40
I/ViewRootImpl#e954868[Class1]: Relayout returned: old=(0,0,2960,1440) new=(0,0,2960,1440) req=(2960,1440)8 dur=4 res=0x5 s={false 0} ch=false
I/ViewRootImpl#e954868[Class1]: MSG_WINDOW_FOCUS_CHANGED 0 1
D/InputMethodManager: prepareNavigationBarInfo() DecorView#670a516[Class1]
getNavigationBarColor() -855310

Android Bluetooth startDiscovery not working

I am trying to learn how to use Bluetooth in android. However, I've already bumped into an issue to which I cannot seem to find the answer. When I am calling .startDiscovery() on the Bluetooth adapter it returns false, meaning that it failed. I am not doing anything strange, I get the bluetoothAdapter using BluetoothAdapter.getDefaultAdapter() and then call .startDiscovery() on it.
I am trying to do this from within a fragment.
ACCESS_FINE_LOCATION, BLUETOOTH_ADMIN & BLUETOOTH are all in the manifest
Please let me know if I need to provide some additional information!
Logcat Output:
2020-02-08 19:24:54.373 16129-16129/? E/Zygote: isWhitelistProcess - Process is Whitelisted
2020-02-08 19:24:54.376 16129-16129/? E/Zygote: accessInfo : 1
2020-02-08 19:24:54.382 16129-16129/? I/.androidairpod: Late-enabling -Xcheck:jni
2020-02-08 19:24:54.404 16129-16129/? E/.androidairpod: Unknown bits set in runtime_flags: 0x8000
2020-02-08 19:24:54.424 16129-16129/? D/ActivityThread: setConscryptValidator
2020-02-08 19:24:54.425 16129-16129/? D/ActivityThread: setConscryptValidator - put
2020-02-08 19:24:54.477 16129-16129/com.lavenderr.bluetoothtest W/ActivityThread: Application com.lavenderr.bluetoothtest is waiting for the debugger on port 8100...
2020-02-08 19:24:54.482 16129-16129/com.lavenderr.bluetoothtest I/System.out: Sending WAIT chunk
2020-02-08 19:24:55.483 16129-16129/com.lavenderr.bluetoothtest I/System.out: Debugger has connected
2020-02-08 19:24:55.484 16129-16129/com.lavenderr.bluetoothtest I/System.out: waiting for debugger to settle...
2020-02-08 19:24:56.085 16129-16129/com.lavenderr.bluetoothtest I/chatty: uid=10416(com.lavenderr.bluetoothtest) identical 3 lines
2020-02-08 19:24:56.286 16129-16129/com.lavenderr.bluetoothtest I/System.out: waiting for debugger to settle...
2020-02-08 19:24:56.486 16129-16129/com.lavenderr.bluetoothtest I/System.out: waiting for debugger to settle...
2020-02-08 19:24:56.687 16129-16129/com.lavenderr.bluetoothtest I/chatty: uid=10416(com.lavenderr.bluetoothtest) identical 1 line
2020-02-08 19:24:56.887 16129-16129/com.lavenderr.bluetoothtest I/System.out: waiting for debugger to settle...
2020-02-08 19:24:57.088 16129-16129/com.lavenderr.bluetoothtest I/System.out: debugger has settled (1305)
2020-02-08 19:24:57.373 16129-16177/com.lavenderr.bluetoothtest D/libEGL: loaded /vendor/lib64/egl/libGLES_mali.so
2020-02-08 19:24:57.485 16129-16129/com.lavenderr.bluetoothtest I/MultiWindowDecorSupport: updateCaptionType >> DecorView#a5bf5f5[], isFloating: false, isApplication: true, hasWindowDecorCaption: false, hasWindowControllerCallback: true
2020-02-08 19:24:57.486 16129-16129/com.lavenderr.bluetoothtest D/MultiWindowDecorSupport: setCaptionType = 0, DecorView = DecorView#a5bf5f5[]
2020-02-08 19:24:57.546 16129-16129/com.lavenderr.bluetoothtest W/.androidairpod: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed)
2020-02-08 19:24:57.549 16129-16129/com.lavenderr.bluetoothtest W/.androidairpod: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed)
2020-02-08 19:24:57.842 16129-16129/com.lavenderr.bluetoothtest W/.androidairpod: Verification of void com.lavenderr.bluetoothtest.ui.HomeFragment.<init>() took 122.221ms
2020-02-08 19:25:07.916 16129-16129/com.lavenderr.bluetoothtest D/BluetoothAdapter: startDiscovery
2020-02-08 19:25:17.880 16129-16129/com.lavenderr.bluetoothtest D/BluetoothAdapter: startDiscovery
2020-02-08 19:25:18.088 16129-16129/com.lavenderr.bluetoothtest D/ViewRootImpl#b75c09d[MainActivity]: setView = com.android.internal.policy.DecorView#a5bf5f5 TM=true MM=false
2020-02-08 19:25:18.235 16129-16129/com.lavenderr.bluetoothtest D/ViewRootImpl#b75c09d[MainActivity]: Relayout returned: old=(0,0,1080,2220) new=(0,0,1080,2220) req=(1080,2220)0 dur=15 res=0x7 s={true 546482515968} ch=true
2020-02-08 19:25:18.237 16129-16175/com.lavenderr.bluetoothtest D/OpenGLRenderer: createReliableSurface : 0x7f3cea3980, 0x7f3ce57000
2020-02-08 19:25:18.253 16129-16175/com.lavenderr.bluetoothtest D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
2020-02-08 19:25:18.313 16129-16175/com.lavenderr.bluetoothtest W/Gralloc3: mapper 3.x is not supported
2020-02-08 19:25:18.317 16129-16175/com.lavenderr.bluetoothtest I/gralloc: Arm Module v1.0
2020-02-08 19:25:18.453 16129-16129/com.lavenderr.bluetoothtest D/ViewRootImpl#b75c09d[MainActivity]: MSG_RESIZED_REPORT: frame=(0,0,1080,2220) ci=(0,72,0,45) vi=(0,72,0,45) or=1
2020-02-08 19:25:18.457 16129-16129/com.lavenderr.bluetoothtest D/ViewRootImpl#b75c09d[MainActivity]: stopped(false) old=false
2020-02-08 19:25:18.468 16129-16129/com.lavenderr.bluetoothtest D/ViewRootImpl#b75c09d[MainActivity]: MSG_WINDOW_FOCUS_CHANGED 1 1
2020-02-08 19:25:18.470 16129-16129/com.lavenderr.bluetoothtest D/InputMethodManager: prepareNavigationBarInfo() DecorView#a5bf5f5[MainActivity]
2020-02-08 19:25:18.470 16129-16129/com.lavenderr.bluetoothtest D/InputMethodManager: getNavigationBarColor() -855310
2020-02-08 19:25:18.479 16129-16129/com.lavenderr.bluetoothtest D/InputMethodManager: prepareNavigationBarInfo() DecorView#a5bf5f5[MainActivity]
2020-02-08 19:25:18.480 16129-16129/com.lavenderr.bluetoothtest D/InputMethodManager: getNavigationBarColor() -855310
2020-02-08 19:25:18.480 16129-16129/com.lavenderr.bluetoothtest V/InputMethodManager: Starting input: tba=com.lavenderr.bluetoothtest ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
2020-02-08 19:25:18.481 16129-16129/com.lavenderr.bluetoothtest D/InputMethodManager: startInputInner - Id : 0
2020-02-08 19:25:18.481 16129-16129/com.lavenderr.bluetoothtest I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
2020-02-08 19:25:18.542 16129-16129/com.lavenderr.bluetoothtest D/InputMethodManager: prepareNavigationBarInfo() DecorView#a5bf5f5[MainActivity]
2020-02-08 19:25:18.543 16129-16129/com.lavenderr.bluetoothtest D/InputMethodManager: getNavigationBarColor() -855310
2020-02-08 19:25:18.543 16129-16129/com.lavenderr.bluetoothtest V/InputMethodManager: Starting input: tba=com.lavenderr.bluetoothtest ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
2020-02-08 19:25:18.544 16129-16129/com.lavenderr.bluetoothtest D/InputMethodManager: startInputInner - Id : 0
After a long search, I finally found the answer. Even though the ACCESS_FINE_LOCATION permission was in my manifest I still needed to 'manually' ask for the permission. Which I did in the following way:
if (ContextCompat.checkSelfPermission(this,
Manifest.permission.ACCESS_FINE_LOCATION)
!= PackageManager.PERMISSION_GRANTED) {
Log.i("info", "No fine location permissions")
ActivityCompat.requestPermissions(this,
arrayOf(Manifest.permission.ACCESS_FINE_LOCATION),
1)
}
after executing this piece of code, and thus getting the right permission to enable discovery my problem was solved!
the same problem happened in the Android part of my Visual Studio 2019 Xamarin Project, and the C# code is a little bit different:
protected override void OnCreate (Bundle bundle)
{
base.OnCreate(bundle);
global::Xamarin.Forms.Forms.Init(this, bundle);
this.ActionBar.SetIcon(Android.Resource.Color.Transparent);
LoadApplication(new App());
GetAccessFineLocationPermission();
}
private void GetAccessFineLocationPermission()
{
if (ContextCompat.CheckSelfPermission(this,Manifest.Permission.AccessFineLocation)!=Permission.Granted)
{
ActivityCompat.RequestPermissions(this, new string[] { Manifest.Permission.AccessFineLocation},1);
}
}

Android WebView unresponsive after pressing Enter using last visible input

I have simple Android app which is just a WebView running a web application.
If I am using inputs and press enter on the last visible input, the keyboard goes away (which is fine), but I lose all ability to interact with the web application running in the WebView. I can still see the app functioning. Pressing back key instead of enter causes keyboard to go away and I have no problem.
Any idea whats happening and how I can get this to stop?
I have tried intercepting focus changes and requesting focus on the web view, but it seems the web view itself is never losing focus. I've also tried setting an interval to refocus the web apps document.body but it had no effect.
Code:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#000000"
tools:context="com.particlesandbox.Play">
<WebView
android:id="#+id/view"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</FrameLayout>
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_play);
mWebView = (WebView) findViewById(R.id.view);
mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.getSettings().setUseWideViewPort(true);
mWebView.requestFocus(View.FOCUS_DOWN);
mWebView.loadUrl("file:///android_asset/www/index.html");
}
<resources>
<style name="AppTheme" parent="Theme.AppCompat.Light">
<item name="colorPrimary">#color/colorPrimary</item>
<item name="colorPrimaryDark">#color/colorPrimaryDark</item>
<item name="colorAccent">#color/colorAccent</item>
<item name="windowNoTitle">true</item>
<item name="windowActionBar">false</item>
<item name="android:windowFullscreen">true</item>
<item name="android:windowContentOverlay">#null</item>
</style>
</resources>
Logcat:
07-11 23:07:39.739 17899-17899/com.particlesandbox D/ViewRootImpl#db61f74[Play]: ViewPostImeInputStage processPointer 0
07-11 23:07:39.742 17899-17899/com.particlesandbox W/System: ClassLoader referenced unknown path: /system/framework/QPerformance.jar
07-11 23:07:39.752 17899-17899/com.particlesandbox E/BoostFramework: BoostFramework() : Exception_1 = java.lang.ClassNotFoundException: Didn't find class "com.qualcomm.qti.Performance" on path: DexPathList[[],nativeLibraryDirectories=[/system/lib64, /vendor/lib64]]
07-11 23:07:39.752 17899-17899/com.particlesandbox V/BoostFramework: BoostFramework() : mPerf = null
07-11 23:07:39.805 17899-17899/com.particlesandbox D/ViewRootImpl#db61f74[Play]: ViewPostImeInputStage processPointer 1
07-11 23:07:39.908 17899-17899/com.particlesandbox D/InputMethodManager: HSI from window - flag : 0 Pid : 17899
07-11 23:07:40.884 17899-17899/com.particlesandbox D/ViewRootImpl#db61f74[Play]: ViewPostImeInputStage processPointer 0
07-11 23:07:43.086 17899-17899/com.particlesandbox D/ViewRootImpl#db61f74[Play]: ViewPostImeInputStage processPointer 1
07-11 23:07:45.034 17899-17899/com.particlesandbox D/ViewRootImpl#db61f74[Play]: ViewPostImeInputStage processPointer 0
07-11 23:07:45.105 17899-17899/com.particlesandbox D/ViewRootImpl#db61f74[Play]: ViewPostImeInputStage processPointer 1
07-11 23:07:45.240 17899-17899/com.particlesandbox V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo#ab7d50f nm : com.particlesandbox ic=null
07-11 23:07:45.240 17899-17899/com.particlesandbox I/InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus
07-11 23:07:45.245 17899-17899/com.particlesandbox D/InputTransport: Input channel constructed: fd=172
07-11 23:07:45.249 17899-17899/com.particlesandbox D/InputTransport: Input channel destroyed: fd=139
07-11 23:07:45.250 17899-17899/com.particlesandbox D/InputMethodManager: ISS - flag : 0Pid : 17899 view : com.particlesandbox
07-11 23:07:45.347 17899-17899/com.particlesandbox D/InputTransport: Input channel constructed: fd=171
07-11 23:07:45.347 17899-17899/com.particlesandbox D/ViewRootImpl#eb7fa5[PopupWindow:bca799c]: setView = android.widget.PopupWindow$PopupDecorView{3c7cf7a V.E...... ......I. 0,0-0,0} touchMode=true
07-11 23:07:45.413 17899-18132/com.particlesandbox D/mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000, [60x72]-format:1
07-11 23:07:45.429 17899-19297/com.particlesandbox V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo#2d39388 nm : com.particlesandbox ic=org.chromium.content.browser.input.ThreadedInputConnection#e397121
07-11 23:07:45.429 17899-19297/com.particlesandbox I/InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus
07-11 23:07:45.457 17899-19297/com.particlesandbox D/InputTransport: Input channel constructed: fd=175
07-11 23:07:45.486 17899-17899/com.particlesandbox D/ViewRootImpl#eb7fa5[PopupWindow:bca799c]: MSG_RESIZED_REPORT: ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1
07-11 23:07:45.493 17899-19297/com.particlesandbox D/InputTransport: Input channel destroyed: fd=172
07-11 23:07:45.870 17899-17899/com.particlesandbox D/ViewRootImpl#db61f74[Play]: MSG_RESIZED: ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 750) or=1
07-11 23:07:48.698 17899-17899/com.particlesandbox D/ViewRootImpl#eb7fa5[PopupWindow:bca799c]: dispatchDetachedFromWindow
07-11 23:07:48.738 17899-17899/com.particlesandbox D/InputTransport: Input channel destroyed: fd=171
07-11 23:07:48.772 17899-17899/com.particlesandbox D/InputMethodManager: HSI from window - flag : 0 Pid : 17899
07-11 23:07:48.820 17899-19297/com.particlesandbox V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo#9ecd3d2 nm : com.particlesandbox ic=null
07-11 23:07:48.820 17899-19297/com.particlesandbox I/InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus
07-11 23:07:48.825 17899-19297/com.particlesandbox D/InputTransport: Input channel constructed: fd=171
07-11 23:07:48.826 17899-19297/com.particlesandbox D/InputTransport: Input channel destroyed: fd=175
07-11 23:07:48.854 17899-19297/com.particlesandbox W/IInputConnectionWrapper: finishComposingText on inactive InputConnection
07-11 23:07:48.861 17899-19297/com.particlesandbox W/IInputConnectionWrapper: finishComposingText on inactive InputConnection
07-11 23:07:48.951 17899-17899/com.particlesandbox D/ViewRootImpl#db61f74[Play]: MSG_RESIZED: ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1
07-11 23:07:50.895 17899-17899/com.particlesandbox D/ViewRootImpl#db61f74[Play]: ViewPostImeInputStage processPointer 0
07-11 23:07:51.090 17899-17899/com.particlesandbox D/ViewRootImpl#db61f74[Play]: ViewPostImeInputStage processPointer 1
07-11 23:07:51.132 17899-17899/com.particlesandbox D/InputMethodManager: HSI from window - flag : 0 Pid : 17899
07-11 23:07:51.482 17899-17899/com.particlesandbox D/ViewRootImpl#db61f74[Play]: ViewPostImeInputStage processPointer 0
07-11 23:07:51.724 17899-17899/com.particlesandbox D/ViewRootImpl#db61f74[Play]: ViewPostImeInputStage processPointer 1
07-11 23:07:51.783 17899-17899/com.particlesandbox D/InputMethodManager: HSI from window - flag : 0 Pid : 17899
It was the AccessibilityManager in Pixi.js.
As commented, it was creating a div in front of everything.
I destroyed it on my renderer and the problem went away.
renderer.plugins.accessibility.destroy()

Categories

Resources