Questions tagged as 'android-studio'

1
answer

Android Studio Emulator 2.3.1 does not start

I had Android Studio 2.2 and the emulator worked fine, but I upgraded to version 2.3.1 and now the emulator does not work or does not start. I test with a real device and the application if it is compiled and executed normally.     
asked by 17.04.2017 / 04:48
2
answers

Store data in list and make accounts with them without database

I have a Recyclerview that shows a list of foods, each row of the recyclerview has 2 buttons, one for quantity of the food and the other to decrease the quantity of the food, graphically there is something like this: Coca-Cola Price: 10.00 -...
asked by 21.04.2017 / 15:48
1
answer

Android Studio Modify graphic part of the xml, from java code [closed]

I hope to explain well what I want to achieve: I'm from java code, defining buttons, TextView etc. but I'm having problems defining its properties, specifically for example: to a button, give property of padding, margin etc. I would like to a...
asked by 09.03.2017 / 20:14
1
answer

Error after "run app" in android studio [duplicated]

I get this error in android studio when I try to launch the app (run app) to the mobile connected by usb to the pc to test it:    Error: Execution failed for task ': app: transformClassesWithDexForDebug'.    com.android.build.api.transform....
asked by 22.02.2017 / 12:32
1
answer

Compare JSONArray and the current server time

Cordial greeting, I have a Mysql database and I pass the value of a column called hour to a JSONArray, my problem is that I do not know how to compare if the time in database is greater than the time in the database server. JSONArray ja = n...
asked by 20.02.2017 / 17:52
1
answer

Perform a second URL query at the end of the first URL query

Cordial greeting, I have the following code: public class LoginActivity extends AppCompatActivity { GlobalVariables globalVariables; EditText miUser; EditText miPass; Boolean UsrOk; @Override protected void o...
asked by 20.02.2017 / 06:00
1
answer

update data in a remote database android studio

I'm trying to insert data into a remote mysql database .. I'm stuck .. I've looked for examples but nothing like that This is my java code import android.app.ProgressDialog; import android.content.Context; import android.content.Intent;...
asked by 14.03.2017 / 20:57
1
answer

custom views

I need to dynamically add to my main activity (a number) a view that I have defined in an xml file in the layouts folder. I have defined the custom view as a RelativeLayout where I have different types of views. The problem I have is that after...
asked by 18.03.2017 / 14:02
1
answer

Consume local web service from my android device

I am working with a Web Service made in ASP.NET, the problem is that I can not run the url localhost from my android device, I used the IP address of my computer in this way in the mobile browser: link or link but do not there's an answer, I...
asked by 29.04.2017 / 10:29
2
answers

How to generate a datepicker from a fragment?

I need to create a date picker from a fragment, the problem is that the datepicker that I have seen (examples) are generated from an Activity, and it turns out that for the fragment is not iggual, I need to store a period of time and in the frag...
asked by 21.01.2017 / 20:11