Posts by Christian Gomes da Silva • 133 points
12 posts
-
0
votes0
answers30
viewsQ: How to make layouts for different device resolutions?
Good guys, I wonder how I do to create layouts for different screen sizes (small, normal, large or xlarge) in the same project in Android Studio? I do the layouts in the same directory: "layout" or…
-
1
votes1
answer31
viewsQ: Auto-increment in Android components
Good people, I have the following code: if (bolaPreta == 1) { img1.setImageResource(R.drawable.icon_circpreto); } if (bolaPreta == 2) { img1.setImageResource(R.drawable.icon_circpreto);…
-
-2
votes1
answer73
viewsQ: Repetition of Numbers
Good staff I have the following situation: I have an on-screen account like this: x + 1 = 2, the user has to click on the option that completes the account and I tried to use this code of my…
-
2
votes1
answer81
viewsQ: Autoincremet on Sqlite is not working on Android
Autoincrement is not working on my Sqlite tables. Table: db.execSQL("create table usuario(_idUsuario integer primary key autoincrement, nome text not null, email text not null, senha text not…
-
1
votes1
answer96
viewsQ: Random numbers repeating themselves
Well guys, here’s the thing: I have a method that generates random numbers, and in Activity I try not to repeat these numbers, but it happens that they repeat themselves. What I’m doing wrong?…
-
2
votes1
answer400
viewsQ: How to do by clicking the Alert ok, just then go to another page?
Good guys, I’m learning Ionic now in college, and would like to know if it is possible, in an Alert, to make it only after the user click 'ok', in my case 'change', it go to a certain page? Thank…
-
1
votes1
answer136
viewsQ: Is it possible to convert an Arraylist<Double> to Arraylist<Integer>?
So, guys, I’d like to know if there is and how to make the conversion of a ArrayList<Double> in a ArrayList<Integer>?
-
3
votes2
answers2936
viewsQ: How do I search the table with Sqlite?
Good guys, how do I make a select in a table using Sqlite on Android? So far I have the table created and the Insert. For example: search by User login and password, to be able to compare. Follows…
-
2
votes1
answer229
viewsQ: Remove an Imageview
Is there any way to remove an image in a Imageview or leave it empty via code? For example: I "Seto" img1.setImageResource(R.drawable.icon_circpreto); It has how to remove it via code?…
-
1
votes0
answers72
viewsQ: How do you turn a character into a mathematical symbol?
I have a question, can I convert a char or string variable into a mathematical operator? Is it possible? The language I use is Java. For example: int n1 = 1, n2 = 1; char simb = '+'; int resultado =…
-
0
votes1
answer775
viewsQ: How to change the color of the button that is pressed?
I am developing an app that randomly generates an addition account and generates 4 values as possible answers and that are placed in 4 buttons (also in a random way). I would like to know how I do,…
androidasked Christian Gomes da Silva 133 -
0
votes0
answers52
viewsQ: Create Trigger in oracle
I have three tables: Usuario, Lembrete and Lembrete_Usuario on the Oracle. I am trying to create a Rigger that when I insert in the User table and Reminder, take the ids, User and Reminder, and put…