BigMac1771
8 months agoHonored Guest
[Spatial SDK] Virtual keyboard is not shown.
Im executing the StarterSample on Quest3 v76.1024. I just add a EditText widget into ui_example.xml as below. When I clicked the EditText, the virtual keyborad was not shown but sometime it was show...
- 7 months ago
We are working on a framework-level fix for this. However in the meantime we have a solution that should unblock you.
In your main VR activity (inherits from AppSystemActivity) add this line into your onCreate:getWindow().addFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM)
So this would look like:import android.view.WindowManager ... class MyVRActivity : AppSystemActivity() { ... override fun onCreate(savedInstanceState: Bundle?) { ... getWindow().addFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM) } }