Posts by Rodrigo Cecilio • 25 points
5 posts
-
0
votes0
answers30
viewsQ: use Asynctask to fetch data but my Activity is slow to appear
I have a class RepositorioCidades searching data from cities using AsyncTask and returns a ArrayAdapter to the MainActivity, but when I call the MainActivity is a black screen until the data of the…
-
0
votes1
answer57
viewsQ: Compare android time slot
I have a register where the establishment puts its opening hours in variables String, Ex: horario_abertura and horario_fechamento format: 00:00 24hrs. I need the application to compare the current…
-
1
votes2
answers151
viewsA: How to read sdcard CSV file?
It worked perfectly, my csv that was corrupted. Thank you! File path = Environment.getExternalStorageDirectory(); File file = new File(path, "/produtos.csv"); FileInputStream fileInputStream = new…
-
0
votes2
answers151
viewsQ: How to read sdcard CSV file?
Currently I read a file csv of the briefcase assets with the following code: String arquivoCSV = "clientes.csv"; AssetManager manager = context.getAssets(); InputStream inputStream = null; try{…
-
1
votes0
answers100
viewsQ: How to maintain the position of a Listview when an item is changed?
How to maintain my position ListView, containing a EditText, when the value of this EditText is amended? Call from the class that fetches the data in the database: /* Instancia da classe…