Questions tagged as 'android'

1
answer

Get data in JSON

[ { "ID": 1, "ano": 5 } ] I do not know how I get in JSON the value of each of the fields, in this case "1" and "5", as I present above. In getting the data in JSON I tried to follow some tips that I have been looking for but in vain. I pre...
asked by 14.08.2017 / 13:02
1
answer

Framework to read json google maps api

I would like to know if there is any framework to read the data that comes in json from google maps directions? type, get the data and put in variables that I can pick up and use in the rest of the application     
asked by 10.11.2017 / 15:14
1
answer

How to change icon color in drawable layout on android

Hello, I need to change the icon color that triggers the DrawableLayout menu, but I am not finding the property or where I can customize this icon. How do I change the color of this icon? Where do I put his color? Which element? What file nam...
asked by 30.08.2018 / 19:51
3
answers

Send e-mail with STARTTLS port 587

I need to send an email using the client settings. Host access uses STARTTLS security using port 587. For testing I put the following code (I changed the client data for security): try { String host = "200.201.202.203";...
asked by 22.07.2014 / 22:32
1
answer

Button that sends email to contact the developer

How do I create a button that the user clicks it sends an email to another pre-defined email?     
asked by 24.03.2017 / 01:37
1
answer

How to implement Navigation Drawer with Map in a Fragment

I've created a Navigation Drawer project in Android Studio that is ready to go. Now in one of fragments , I need a map with a location. How to implement?     
asked by 05.08.2015 / 18:41
1
answer

Distancing image from text in Button

I have this Buttoncom image and text xml<Buttonandroid:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/notificacao" android:drawableLeft="@drawable/alarm" android:background="@null"...
asked by 31.07.2015 / 19:36
1
answer

Android - What is the difference between getReadableDatabase () and getWritableDatabase ()?

I was able to enter information into the database by using the getReadableDatabase() method. Should not that be a mistake then? Should not be the getWritableDatabase() method? private void savePet() { petDbHelper = new P...
asked by 24.02.2018 / 20:43
1
answer

MainActivity does not find activity_main

I try to call the components of my activity_main and it does not think, what could be wrong?     
asked by 09.12.2016 / 18:27
1
answer

Methods isUserAMonkey () and isUserAGoat ()

What is the real function of isUserAMonkey() and isUserAGoat() on Android SDK ? In what situation should they be used?     
asked by 22.12.2016 / 14:56