Posts by M.Sulista • 36 points
4 posts
-
0
votes1
answer53
viewsA: Create Android Studio Unique Field
There is a nice example on this Link: Difference in Use Index Unique and Unique Constraint in Mysql? In your create table follow this example: CREATE TABLE `phone` ( `id` MEDIUMINT(8) UNSIGNED NOT…
-
0
votes1
answer656
viewsA: Town Spinner connected with the State Spinner
Reinaldo the list of cities must be populated only after a state has been selected. Using your code I exemplified inside the state onItemSelected, but can extract to a global variable the list of…
-
1
votes1
answer69
viewsA: Pass data from a spinner to mysql
I think I’d better take the object and then cast it Object objeto = parent.getItemAtPosition(posicao); String nome = ((String) objeto).getNome(); Here Voce already has the name, now just use its…
-
1
votes2
answers3630
viewsA: How to center a Textview?
To set in time to popular the field: campo.setGravity(Gravity.CENTER_HORIZONTAL); To return to initial state campo.setGravity(Gravity.NO_GRAVITY); To set the left: campo.setGravity(Gravity.LEFT); To…