Questions tagged as 'android'

1
answer

AlertDialog with background

I created this alertDialog but I would like to know if instead of having an icon when it appears, if it is possible it has another color or even use an image as its (Background). And Assign the buttons a background. public void icon (View View...
asked by 09.12.2016 / 15:15
1
answer

ListView does not load all items

I'm using ListView in my project, it was doubling the values, until I put the ELSE of that condition: if(convertView == null)... else... After this it stopped duplicating, but also stopped showing all 12 items, now showing only the first 2....
asked by 05.02.2017 / 00:13
1
answer

Best way to access activity components - MVP

I'm using the MVP standard in my Android project. In my MainActivity I have the following components: private Paciente paciente; private EditText nome, cpf, cpfTutor, telefone; private CheckBox checkbox; Soon after, I have this method th...
asked by 02.02.2017 / 00:49
1
answer

Receive parameters of different activity and add

Hello, I need to pass the two-screen parameters to the home screen , or the "BALANCE" parameters of the balance screen where it will be passed to an EditText (lblStandard) start screen and then take a value set to "EXTRA" on the addarsal...
asked by 25.10.2016 / 21:42
2
answers

Code to capture signature [closed]

I need to know how I capture a person's signature on an Android screen to put in a document (practically a digital signature).     
asked by 27.10.2016 / 04:35
2
answers

Put an EditText in the DialogFragment

I need to put an EditText to fill in the name ... that is when the user clicks the button will appear an AlertDialog, which should put the name of the player, I made a step, here in SOpt has a question of this type only unable to resolve. Cou...
asked by 02.11.2016 / 02:06
2
answers

Change language in the app and stay changed

I have an app and would like the user to change it if he / she wants to Following this link worked fine, however if I clean the cache of the phone (I think that's it) or clean all the screens open and try to open again, it does not stay wit...
asked by 25.11.2016 / 12:52
1
answer

Error displaying information in the Android + FireBase listView

I have two problems with this program ... the first is that when registering it does not enter the first loop of msm being td right ... it jumps and displays the message "no data", the second problem is that dps of clicking the register button i...
asked by 25.10.2016 / 02:46
2
answers

How to delete all records from the database

Good afternoon, in my application has a database that shows the results of the game, I put a button that the function of it will delete all the data from the bank ... how do I do this part? in blogs I did not quite understand ... My get and s...
asked by 25.10.2016 / 18:35
2
answers

How do I maintain the ImageView aspect ratio in Android Studio?

I had a problem creating a SplashScreen. The image, 512x512, imported into the drawable directory does not maintain the same ratio after the code is executed. The height is larger than the width, and adjusting manually works on one device, but o...
asked by 24.10.2016 / 04:56