Questions tagged as 'android'

2
answers

How do I prevent an Activity from being re-created? Is it to call it only once?

I am making a form and when I finish filling out the form I need to change the color of the item in a ListView with the name of the form I just filled out and leave the color there independent if I am browsing the application and going through t...
asked by 09.09.2015 / 17:25
1
answer

App runs in the emulator but no icon appears

I'm creating an Android app using Android Studio. The application works normally when I run in the emulator of the android, but neither in the emulator nor when I generate an apk and install in the mobile the icon does not appear, for example, i...
asked by 03.09.2015 / 00:16
1
answer

Visual effect when clicking the add button when assigning a background

I'm trying to make a simple button in an Android application. When you insert the button the effects worked normally, but after changing the background color, the effect of clicking the button disappeared, becoming static. I would like to kno...
asked by 23.06.2015 / 00:05
1
answer

NullPointer Exception Error When Bringing Fragment Data

I'm having a NullPointerException error while trying to return the data from a Fragment. The NPE error is fine in this line: String comentarioFoto = fragment_obj.campoComentarioFoto.getText().toString(); See my activity code: public class...
asked by 23.06.2015 / 16:26
1
answer

ListView of the Android database - Close app with error

I'm implementing a SQLite3 registry on Android and so far so good, the problem is in calling Activity of data listing when the registration is successful, when calling Activity the application is closed with error. Follow the co...
asked by 19.06.2015 / 19:08
1
answer

CPF String Error Android

Does anyone have a CPF code for validation on Android? I have the following code: public static boolean validateNotNull(View pView, String pMessage) { if (pView instanceof EditText) { EditText edText = (EditText) pView; Edi...
asked by 19.06.2015 / 15:32
1
answer

How to release the data that is in the "date" folder of the Android phone?

I am making an app where I create the forms from the database, but nothing is appearing on my phone, I can only see it in AVD, how do I release it?     
asked by 14.07.2015 / 23:43
1
answer

Application returns null when instantiating custom component

Good evening. I need to make a AutoCompleteTextView component search the information directly from the server and for this I am following the following article: link When I run the application it returns an error in this part o...
asked by 14.09.2015 / 01:51
1
answer

How to get data from a form and play in a PHP Array

I have an Android application, which creates a TXT file in PHP, bringing the XML form data from Android itself. Look at the code: $f = fopen('POST_DATA.txt', 'a'); fwrite($f, 'ID: '.$id."\r\n"); $id = uniqid( time() ); fwrite($f, '...
asked by 19.06.2015 / 14:17
1
answer

Notification expanded

I have the following codes (XML and notification respectively) for a notification plus it is small, I would like it to be expanded to suit everything XML <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://...
asked by 16.06.2015 / 18:37