Questions tagged as 'android'

1
answer

Navigate between screens

I'm developing a project in Android Studio , using drawer navigation . And in one of the%% I need to have a 2-screen navigation. How do I navigate between two screens, that is, when I slide on a screen, open another screen and hav...
asked by 07.07.2015 / 15:14
1
answer

how to work with different dimension in android studio?

I would like to tailor my application created for each mobile phone model. As I some it gets with the smaller text on the screen and in others bigger, I would like to create a method where it suits the model of the mobile that the person is .. t...
asked by 02.05.2016 / 13:26
1
answer

Send Arduino data to Android (ultrasonic sensor)

I made this code to receive data from an ultrasonic sensor on a Android cell. After passing the application to the cell phone and the code for the Arduino, it can only connect, but does not show the data of the sensor distance. Could some...
asked by 11.11.2015 / 02:14
1
answer

Errors in ListView Customization

Well, I've been trying to customize a ListView in my project, I've finished and everything was fine. But there was an API error stating that the minimum API I used was too low. I used the eclipse fix option without knowing if it was official, th...
asked by 21.11.2015 / 21:00
1
answer

Set maximum height for Alert Dialog

My dialog has a list, and when this list has many entries, the dialog cuts the buttons in the middle, as in the image: HowdoIsetamaximumheightfornotbeingcutlikethis?DialogCodepublicvoiddeleteCategoria(intdespesa){mAba=despesa;finalCategoriaDA...
asked by 16.06.2015 / 18:41
1
answer

Catch the path of an image in the Gallery

How can I do to get the path of the image I just uploaded and then save to the database with the path? I get the image from the Gallery, then with that image I wanted to take the path and save it to the SQLite database. I'm half-hearted on the s...
asked by 15.06.2015 / 20:17
4
answers

Getting data with JSON on Android

Hello, how do I get the data from a web-service I have? I have the following code in JAVA Android to save the information: wd.setUrl("http://www.cordeiro-it.com.br/SOUPROGRESSO/Ctrl/ServerUsuario.php"); wd.setMethod("new-usu...
asked by 11.06.2015 / 19:56
1
answer

NullPointerException when trying to open database

I'm trying to include an item in the DB that was selected, but when I try to open the database using .open(); I'm getting a NullPointerException error. After the user selects which item to save, I display AlertDialog and r...
asked by 17.06.2015 / 16:06
1
answer

How to do zip validation for Android

I would like to know how do I validate a user-entered zip in an EditText on Android. Do I need any specific APIs? I want to validate if the zip is existing and return to the screen if it is not.     
asked by 15.05.2015 / 16:08
1
answer

Drawable folders for different dpi do not appear in Android Studio

I can not find the drawable folders with the proper resolutions in Android Studio. Just have a drawable call, where should I put the images at different resolutions?     
asked by 21.04.2015 / 01:15