Questions tagged as 'android'

1
answer

I need to increase and save a value that I get from an edittext in android studio

Codig (JAVA) to increase the value Existence in my database In this part where I want to increase the value of Existence and save your update is where I have the error. The LogCat shows me the error here.etExistence.setText (count); priv...
asked by 24.01.2018 / 00:11
3
answers

Use directly findViewById ()

Are there performance or other disadvantages when using findViewById() directly without an object? I mean, instead of: Button button1 = findViewById(R.id.button1); button1.setOnClickListener(new View.OnClickListener(){ /*código*/ });...
asked by 01.01.2018 / 22:13
0
answers

It does not write (save) the XML it takes from the server

I have an app that previously read an xml file from a server and saved it in the phone so that the user could see the content without internet connection, I have passed my application to kotlin and I find the error that the file no longer save i...
asked by 12.01.2018 / 05:47
1
answer

Maps are not shown in app [duplicate]

I have a problem. I can not see maps in my App when I publish it. I'm starting on this and when I do it with the Key API generated with Debug without problem, but when I use the SHA1 of my key with which I sign the App they do not look. I have...
asked by 08.01.2018 / 18:18
1
answer

Populate Spinner from SQL

Hello, I need to load a Spinner with the data coming from my Database (SQL). For this I have created a class with an id and a description. The problem is that instead of showing the description, in the Spinner the name of the packa...
asked by 02.03.2018 / 14:43
2
answers

Error using AlarmManager and BroadcastReceiver

The goal is that after x time, in this case 10s, I start to put the call from the number x in vibration mode. When I do not call the initProcess () method, everything works OK. But when I call it, this error appears in the Logcat: 02-22 21:05:...
asked by 23.02.2018 / 03:14
1
answer

autocomplete email

I need some help, I am developing an application that has a form and in the part of choreo, I would like to put a complete car that starts just when the user presses the @ key ... for example widy @ .. ( after the auto complete @ gmail.com, or @...
asked by 14.09.2017 / 22:02
1
answer

Error sending audio saved in an app to whatsapp

The code I am using is: String path= "android.resource://"+Principal.this.getPackageName()+"/raw/a.mp3"; Uri uri = Uri.parse(path); Intent compartiraudio = new Intent(Intent.ACTION_SEND); compartiraudio.setType("audio/*"); compartiraudio.putE...
asked by 14.09.2017 / 18:36
1
answer

Button to go to the top of the RecyclerView screen

I want to have a button so that the user, if he has done Scroll, can press and return to the beginning of the screen, that is, to the first item. Problems: The Button appears below the RecyclerView When you click on the Button, nothing...
asked by 31.08.2018 / 21:22
1
answer

Invalid index 0, size is 0 (Android)

Hi I try to fill an Arraylist in a Fragment with data from a Sqlite table (the table already has data) and it shows me the error of the title in the catch. Class HomeFragment public class InicioFragment extends Fragment { public Recyc...
asked by 04.09.2018 / 02:46