Questions tagged as 'android'

2
answers

Java (Android) - Mathematical Equations

I need a little help. To get straight to the point, I was trying to create a small set of equations that would allow me to get a set of numbers with a few peculiarities. Basically what I wanted, after pressing a button, was to create four random...
asked by 11.07.2017 / 23:35
2
answers

Error in SQLite class

What am I doing wrong in this SQLite class? I'm getting this error: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.sqllitetest/com.example.sqllitetest.MainActivity}: android.database.sqlite.SQLiteException: n...
asked by 09.07.2017 / 16:23
1
answer

Which type to use to store values that are in an ArrayList in an SQLite table?

I have the following table in SQLite: db.execSQL("create table amc(_id integer primary key autoincrement, nome text not null, contratada text not null, tipo text not null, data text not null, respostas integer not null, resultado float);");...
asked by 21.07.2017 / 19:35
1
answer

AlertDialog deformed

Well, could anyone tell me why my AlertDialog gets deformed, with that white piece on top of the text? Here is the code where I created it: AlertDialog.Builder builder = new AlertDialog.Builder(ChoseSecundarioDisciplinas.this,android....
asked by 25.07.2017 / 19:30
1
answer

Programming with sounds for android

I want to program sounds on Android but I can not. I tried the java sound API but Android studio does not recognize it. I want to use MIDI too. I know it has the android.media.midi package but it only works for android versions above 23. I want...
asked by 06.06.2017 / 05:35
1
answer

How can I separate the items of a sharedPreferences into an Array?

I'm having a question, I've made a checkbox on items in a listview that when marked are stored as SharedPreferences. Then I created a button (Favorites) to access the items marked by the checkbox, but the checked items go to Favorites I re-creat...
asked by 02.06.2017 / 21:52
2
answers

How to store and use a vector in Firebase on Android?

I'm having a development problem with my app that I can not resolve and can not find something to help me. Such an app was running smoothly with data stored in variables, but by including Firebase I had some problems storing an array. I made...
asked by 07.08.2017 / 18:58
1
answer

How to change StatusBar color

I'm trying to change the colors of my StatusBar, but when I try to change the colorPrimaryDark (first bar, where the battery is, time, etc ...) the color does not change. I created an xml with the values of the colors used colors.xml <...
asked by 18.10.2017 / 02:03
1
answer

How do I make a Button visible only after an animated TextView has been completely typed?

Protected void onCreate (Bundle savedInstanceState) from MainActivity I set the button so that it is invisible and also does not occupy space with the following code: button.setVisibility(View.GONE); MainActivity : package genes...
asked by 15.05.2017 / 21:01
1
answer

How to make a query in SQLite?

In my project the user must make a registration to enter, when putting the data name, email and password and when clicking on the register I would like to check if the email already exists, how to do it? I have a search method in a dao class,...
asked by 06.04.2017 / 20:41