Questions tagged as 'android'

1
answer

Example of a ViewModel using Google Component on Android

I'm trying to implement a ViewModel following that tutorial but I It seems that Google has renewed the libraries and left half the code obsolete. Someone has a functional example and its installation in the dependencies, I use Android S...
asked by 29.11.2017 / 17:26
1
answer

Spinner Perzonalized Problem wide

I have this spinner with a perzonalized adapter, but the issue is that I'm not getting the expected result, at this moment it looks like this, As you can see I have 2 arrows, one is from my custom layout, and the other one is the one th...
asked by 08.11.2017 / 15:08
1
answer

How to open pdf with the default pdf reader?

I am new to android programming. I already implemented that my app generates a pdf document, and it creates everything well. The problem, I want to send a Snackbar with the action to open it in another app (pdf reader) all right up there, the qu...
asked by 07.11.2017 / 19:41
2
answers

Error in SQLiteDatabase

I'm trying to delete data from a table, but every time I open the application and I give the delete button it stops and I get out of the application I think it's in SQLiteDatabase db= this.getWritableDatabase(); public class DbHelper ex...
asked by 24.11.2017 / 01:08
1
answer

How to use a sharePreferences with a tableLayout

I am creating an application that subtracts two dates from me and shows me the number of days, but the result I want to show it to me in another layout. the sharePrefereneces could show me two results in a linear way, but I want to keep the day,...
asked by 27.11.2017 / 15:28
1
answer

duplicate entry: zzc.class

Good day! I'm using firebase and since I used its dependencies I get the following error. Error:Execution failed for task ':Customer:transformClassesWithJarMergingForRelease'. > com.android.build.api.transform.TransformException: java.util....
asked by 23.11.2017 / 17:48
1
answer

Error when opening an APK on other Android devices [closed]

I build my APK without any problem either debug or release, the two are built without apparent problem. It should be noted that I generated the APK in Build & Generate Signed APK. up there all right, I transfer the application to my device via U...
asked by 22.11.2017 / 06:34
2
answers

why does my toolbar appear below the fragments elements?

Well the problem is the following, I have a toolbar that in lolipop versions onwards is shown correctly, but in kit versions kat below, the toolbar is placed below the elements of my fragments I was already investigating and even I have not reso...
asked by 16.11.2017 / 20:39
1
answer

can not be applied to given types

Good day! I have an error in code in which before I did not mark it. This is my mistake: Error:(1012, 9) error: constructor Crop in class Crop cannot be applied to given types; required: Uri,Uri found: Uri reason: actual and formal argument li...
asked by 20.11.2017 / 19:31
1
answer

Problem with Asyntask-PHP

My PHP <?php require "dbconfig.php"; $con=mysqli_connect($servername,$username,$password,$dbname) or die('Unable to connect'); if(mysqli_connect_error($con)) { echo "Failed to Connect to Database ".mysqli_connect_error(); } $name=$_POS...
asked by 31.10.2017 / 22:27