Posts by Eduarda • 91 points
6 posts
-
0
votes2
answers307
viewsA: Listview does not appear in the emulator
So that the ListView appear when you run the project, it must be "loaded" with the items that will be displayed. If the list is empty, it will not show on the device screen. Example implementing a…
-
3
votes2
answers602
viewsA: Delete Sharedpreferences created dynamically
Hello, to delete Shared preferences just use the following code snippet : SharedPreferences save = contexto.getSharedPreferences(key, Context.MODE_PRIVATE); SharedPreferences.Editor saveEdit =…
-
1
votes1
answer876
viewsA: Checking of special characteristics
I don’t know how you intend to implement, but I’ll show you two ways. If you want to check character by character while the user is typing, you can use the Character.isLetterOrDigit(char). Another…
-
0
votes1
answer47
views -
1
votes1
answer144
viewsA: Insert data into the database by Alertdialog
You must change the caixa = (EditText) caixa.findViewById(R.id.caixa_dialog_1); For View view = LayoutInflater.from(getContext()).inflate(R.layout.caixa_jogador_dialog, null); caixa = (EditText)…
-
1
votes2
answers222
viewsA: Place an Edittext in Dialogfragment
As a suggestion, you could use a Dialog and set Edittext in XML. public class MyCaixa extends Dialog { public MyCaixa(Context context) { super(context); this.context = context; } @Override protected…