Posts by iGoDa • 191 points
2 posts
-
4
votes2
answers681
viewsA: How to display a Toast inside a Thread on Android?
I think what you need is to call Toast.makeTexts from UI Thread, inside your thread you can do so: activity.runOnUiThread(new Runnable() { public void run() { Toast.makeText(activity, "Sou um toast…
-
5
votes1
answer2273
viewsA: How to avoid floating keyboard?
If I understand correctly, you just have to add getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE); Or by xml: android:windowSoftInputMode="adjustResize" This will…