Questions tagged as 'android'

1
answer

Passing object by parameter causes error - Android Studio

I'm trying to pass an object by parameter, but an error occurs in the line "it.putExtra (" tag ", obj);":   Can not resolve method (java.lang.String, my package.minhaClasse) Follow the code Obj obj = new Obj(); Intent it; it = new Inten...
asked by 20.07.2015 / 15:29
2
answers

Concatenating an array List in a listView?

I wonder if there is a way to add "strings" to display in a listView so that I do not have to impose conditions and conditions again strings already used: package genesysgeneration.list; import android.support.v7.app.AppCompatActivity;...
asked by 16.02.2017 / 00:25
2
answers

How do I search for a string in a table on Android?

I want to search using the "clas" field, which is a String. And listSearch receives a String. public Cursor listPesquisar(String pesquisa) { Cursor cursor; String[] fields = new String[]{"_id", "nome", "peso", "altura", "ce...
asked by 13.06.2017 / 21:16
1
answer

How to upload multiple files via mobile?

I'm trying to upload an IMG to my application in php, on the pc I can select multiple files, but on the phone I can only select one. * I use android     
asked by 19.01.2017 / 23:29
1
answer

how to hide a progressBar after a certain time

I'm using the following code new Thread(new Runnable() { public void run() { while (cont < 100) { cont += 1; try { Thread.sleep(20); } catch (Interr...
asked by 11.06.2017 / 22:44
1
answer

Android does not find the local variable, but does not exist

Hello, I am running a debug in this code and at the end it gives this message in debug. Can not find local variable 'Local_Name' But I have searched all my code and I do not think this variable does not know what to do, thinking of redoing...
asked by 04.10.2017 / 19:50
2
answers

How to control the lighting (brightness) of Android via code for all activities?

I'm using the following code: //brilho try { //sets manual mode and brightnes 255 Settings.System.putInt(act.getContentResolver(), Settings.System.SCREEN_BRIGHTNESS_MODE, Settings.System.SCREEN_BRIGHTNESS_MODE_M...
asked by 10.11.2016 / 17:51
3
answers

Textview when clicking, increase certain value that is in edit text

I'm doing a test application that has 1 edit and a textview, the edit text will have a value inside initial 0, when I click on the textview, I want it to increase to 10.00, and if I click again increase to 20, and so on teste = findVie...
asked by 22.01.2018 / 03:03
1
answer

Show a string in an AlertDialog

Well, I'm learning android, I do not know much. In this application, so far I just want to display the value of "name" in the .setMessage of AlertDialog, and I'm not sure how I do it, grateful now! NOTE: When I run the app on my device, "Your...
asked by 08.07.2017 / 17:24
2
answers

How to put an imageView in Circular format inside an Android fragment?

I found several English tutorials on the net with examples of methods for rounding a bitmap image. But I could not implement them within a fragment. How to proceed in this case?     
asked by 27.06.2016 / 21:34