Questions tagged as 'android-studio'

2
answers

Show image in listview from url with Android Studio

public class MainActivity extends AppCompatActivity { ListView lista; ArrayList imagen=new ArrayList(); ArrayList posicion=new ArrayList(); ArrayList hora=new ArrayList(); @Override protected void onCreate(Bundle savedInstan...
asked by 09.03.2018 / 10:19
2
answers

How can I validate if a file exists or not?

I have a problem when doing a validation to see if a file exists or not, the problem is that in the validation it always shows me that the file does not exist, when I close the application or change of activity and return to my activity where I...
asked by 12.03.2018 / 18:33
2
answers

Image in Drawable Get route URI Android

I would like to be able to put an "x" image by hand in the Drawable folder of android and be able to obtain the Uri route of that image, so that I can then do Img.setImageURI(aca quisiera la Uri de esa imagen que agrege a la carpeta Drwable)...
asked by 26.10.2017 / 15:03
1
answer

Errror when generating apk, with library volley

Hello, I am developing an application in android studio, when I want to generate it with signed apk, it gives me this error, I already have my key generated . I thank you for your help in advance.    Information: Gradle tasks [: app: assembl...
asked by 14.02.2018 / 18:50
1
answer

Problem with FirebaseDatabase apk-release Android

When I do the tests with apk-debug the data is stored with its correct key in FirebaseDatabase, as it was stipulated in the model. But when I generate the apk-release, the data is saved but with different keys. In the attached image frame...
asked by 19.02.2018 / 19:13
2
answers

java.lang.NumberFormatException: Invalid double: ""

I am new to this android studio and I try to make a temperature converter the problem is that no matter how hard I try to get this error it is assumed that the whole program should do object oriented    01-29 07: 44: 26.967 12711-12711 / com....
asked by 29.01.2018 / 14:54
1
answer

Error refreshing project with gradle

I downloaded an open source from a hotel app, I can export the app without any problem to the android studio and be able to visualize it in the emulator, but when I see it in the activity_main.xml the section of DESING I can not and this pops up...
asked by 23.11.2017 / 11:23
2
answers

Edittext's default style

I have a EditText that looks like this: When doing an action in EditText the background is changed with the following code: edtCampo.setBackgroundColor(Color.RED); Then another action is made and the background...
asked by 06.12.2017 / 23:52
3
answers

My class does not find my layouts or activities android

My application is connected to a firebase server, and I have created a class to check if the data has been changed and, if so, go to a specific layout or activity: package com.example.gerard.presentacio; import com.example.gerard.presentacio.R...
asked by 05.12.2017 / 23:22
1
answer

Error Commons-logging defines classes that conflict with classes now provided by Android

By putting an application that uses google maps in release : Use Android studio 3.0.1 app.gradle apply plugin: 'com.android.application' android { compileSdkVersion 26 defaultConfig { applicationId "com.webservei...
asked by 02.12.2017 / 21:27