Questions tagged as 'android-studio'

1
answer

error when calling build.create

I have customized a dialog, but since the AlertDialog.Builder does not have dismiss () I removed the builder and now it does not accept the create call due to a vesrion error. public AlertDialog DespachoAct() { final AlertDialog buil...
asked by 13.07.2016 / 19:16
0
answers

Doubts with the remote control in the Android notification bar

Good, first I want to make a brief summary to put in situation. My app loads a Fragment , I instantiate an object from a clase that I created. This clase contains the attributes and methods necessary to play a radio in Stream...
asked by 14.11.2016 / 11:21
1
answer

I need the variable xCount not reset to 0, eg when I rotate the screen

public class MainActivity extends AppCompatActivity { // defino variables de botones y texto ImageButton imgButtonUp; ImageButton imgButtonDw; ImageButton imgButtonRes; ImageButton imgButtonInfo; T...
asked by 21.07.2016 / 01:14
2
answers

HttpsUrlConnection returns Bad Request response

In an Android application, I have to connect to a web using basic authentication and https. HttpsURLconexion = (HttpsURLConnection) new URL(url).openConnection(); conexion.setSSLSocketFactory((SSLSocketFactory) SSLSocketFactory...
asked by 21.11.2018 / 19:10
1
answer

Error in Registration Android String can not be converted to JSONObject

I have a record in Android but when I hit the "Register Incidence" button, it generates the following error in the logcat: This is my RegisterIncidences: btnRegistrar.setOnClickListener(new View.OnClickListener() { @Ov...
asked by 22.11.2018 / 19:01
1
answer

How to identify the values that Log.e brings on Android with Firebase

I have this structure in Firebase And I'm calling the last three data with the name "dose" with this structure my.child("usuario").orderByKey().limitToLast(3).addValueEventListener(new ValueEventListener() { @Override...
asked by 05.10.2018 / 02:29
2
answers

Send data from one Activity to another in Android Studio [duplicated]

I have a layout that contains a gridview and another in which it contains a textview and a imageview , in one it captures images and another text, by clicking on the image what I want the text to travel to another layout....
asked by 21.09.2018 / 18:24
1
answer

Export table from BD to .txt file in Android Studio

I need to export a database to a .txt file delimited by commas, I have researched but I can not find the way, I need the files to be shown in this way:    Data, Data, Data   Data, Data, Data How can I do it?     
asked by 14.10.2018 / 23:46
1
answer

method or code in android to know if the call went to voicemail

I'm looking through Android programming to know when a call is rejected or when a call is sent to voicemail. I am also looking for how I can know when the call is connected to the telephone service provider     
asked by 11.07.2018 / 00:23
1
answer

How to pass a String variable from a popup to the class who called it?

I need to know how to pass a variable String from a popup (it's an activity class) that was called from another activity, the idea when I click on a button to accept it in the popup returns me to the activity class without restarting it, if not...
asked by 23.07.2018 / 01:13