Questions tagged as 'android'

0
answers

Concatenate text in a ProgressDialog

Situation I have a following ProgressDialog defined with STYLE_HORIZONTAL in which it executes after getting the size of a download of a file. This way, I define its size using .setMax(tamanho) . After setting the size,...
asked by 01.09.2016 / 20:36
1
answer

Error setting test environment [closed]

When running a test, simple to check the settings, the following error appears:    Error: Execution failed for task   ': app: transformClassesWithJarMergingForDebugAndroidTest'.   com.android.build.api.transform.TransformException: java.util....
asked by 01.09.2016 / 15:45
1
answer

How to convert the curl request into java (Android)

I hope to convert the below example in CURL to Json in Java / Android. The IUGU API supports JSON or XML. I tried several examples on the internet, but without success. CURL: $ curl https://api.iugu.com/v1/payment_token \ -d "account_id=...
asked by 24.08.2016 / 17:41
1
answer

Method that calls thread to query a web service always returns null

When I call this method in another class it is returning null. But I've debugged the "return listNotes;" line and it's currently being populated. Method code: ArrayList<Nota> listNotas = new ArrayList<>(); public ArrayLis...
asked by 20.09.2016 / 19:55
1
answer

How do I change the activity after logging in with facebook?

After the loginfacebook (fragment) I would like to change the activity, for example to register, how do I? public class LoginFacebook extends Fragment { private LoginButton loginButton; private CallbackManager callbackManager; private Access...
asked by 29.08.2016 / 20:59
0
answers

Button with rounded edge and shadow using 9 patch

Good morning! I would like to put shadow on the images and buttons of my application and I am trying to use the features of the 9 patch. But it's not working very well, the height of the png that I'm using as a shadow always gets bigger: xml...
asked by 30.08.2016 / 17:47
0
answers

setOnItemClickListener not working when clicking on a row in Listview [closed]

I'm a beginner developing android, and I came across a problem I can not solve. Well, I put a listview within a view_pager ( content_main ) that is included in activity_main . When I click on an item in the list, it will cal...
asked by 29.10.2016 / 02:12
0
answers

Error writing to base firebase: Can not pass null for argument 'pathString' in child ()

I'm new to firebase and am making an app where I want to record two entities in a single event. I want to record a user and a bakery, but I can not. The user writes everything right, but at the time of the bakery gives the following error:   ...
asked by 28.10.2016 / 04:13
0
answers

Upload image using Android

I've implemented pisasso to download the images on Android. It's working wonderfully well. But now I need to make a method to upload an image to a php server. I thought of converting to base64 and uploading it using the Volley library, and then...
asked by 28.10.2016 / 19:31
1
answer

ORMLite android

I'm having a problem writing a login to the database, when I call create it it returns me Null, what can I have done wrong? Remembering that when I give a LOG to see the login, it shows me the data that was informed, it just does not write to th...
asked by 28.10.2016 / 21:56