Questions tagged as 'android'

1
answer

Make two different classes communicate

I'm making an Android application that uses time and date selectors (DatePicker and TimePicker), which are displayed in the form of fragments. When the user sets the desired time, I need it to be passed from the selector fragment to the main win...
asked by 23.04.2014 / 20:21
2
answers

How to develop a private RESTFull API?

I need to develop a RESTFull HTTP API in PHP to serve as authentication for users of an Android application, the problem is that since it is a public distribution application I can not define any key in the code as for example: basic authenticat...
asked by 21.10.2014 / 20:35
2
answers

How to justify text in a TextView?

Is it possible to justify (align) the text of a TextView ? Besides justifying, I want to apply other types of formatting.     
asked by 21.04.2015 / 04:42
1
answer

Is the "row ID" the same as the primary key?

The insert of Android returns a row ID according to the documentation,    the row ID of the newly inserted row, or -1 if an error occurred The row ID corresponds to the primary key, ID , if it exists?     
asked by 23.11.2017 / 12:40
1
answer

Java Cryptography with AES, how does it work?

I have already found several examples by Google, but none that explain how a java cryptography works with AES ... How does it work? In an example of the net, the guy cites that he has to use a key, but does not explain why or what it is for;...
asked by 06.05.2014 / 21:44
2
answers

How to save / retrieve image in memory on android?

Hello, I have a Bytes Array which is a image from it, how can I save it in external memory and if there is no save in the internal memory of android? and then how can I be recovering that image? I need to save in a place that these im...
asked by 16.12.2014 / 12:54
1
answer

Use the Bundle and / or just putExtra?

To pass data between activity , I have 2 forms: 1. Use Bundle : public void teste(View v) { Intent i = new Intent(this,Teste.class); Bundle bd = new Bundle(); bd.putString("site","google.com");...
asked by 09.11.2017 / 17:11
2
answers

How to detect that the headset has been plugged in?

I've been noticing that every time I "plug in" the headset into my smarphone, a Deezer notification (music stream application) appears. ) already telling you to click and to open the application. According to the documentation that talks abo...
asked by 27.09.2017 / 16:14
1
answer

How to change the shape of the button with an animation

I need to make a login screen and the login button I have to change the format of the image I'd like to know how it's done, thank you in advance.     
asked by 09.06.2016 / 02:15
2
answers

Android: read JSON data

I have a url that gives me the data in this format: {"to": "DKK", "rate": 7.4417, "from": "EUR"} I'm trying to read them as follows: JSONObject obj = new JSONObject(); JSONObject obj2 = obj.getJSONObject(site); String to = (String)obj2....
asked by 22.04.2016 / 23:12