Questions tagged as 'android'

1
answer

Problem with Intent.EXTRA_EMAIL to send an email

I have this code: button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent Mail = new Intent(Intent.ACTION_SEND); Mail.setData(Uri.parse("mailto:"));...
asked by 24.12.2018 / 04:36
1
answer

ProgressDialog help

I'm looking for a way to have a progressBar or launch a progressDialog and it will disappear when all functions are finished. I have the saveItems function in which other functions are executed, I think that's where the problem comes from....
asked by 13.12.2018 / 20:39
1
answer

Google Maps does not show correct coordinates JQueryMobile

I am developing an Android application that uses the Google Maps APIs. The way to invoke and draw the maps is with Jquery mobile. The function is as follows: function mapas(opc) { $(document).on("pageinit", "#map-page", func...
asked by 03.10.2016 / 08:10
2
answers

Know when addChildEventListener has finished

I have an android application in which I have a Fragment that contains a CardView. The CardView data is data of events that I have saved in Firebase. The problem I have is that when loading the Fragment there are times that it shows empty becaus...
asked by 19.12.2018 / 16:16
1
answer

Problem when deploying to Gradle Braintree in Android Studio

I am trying to implement in a Braintree application and the following problem arises. When I try to add the following dependency. implementation 'com.braintreepayments.api:drop-in:3.3.0' Skip the following Error:    Error: Program type a...
asked by 20.12.2018 / 11:17
1
answer

How to define this variable

I am using the code of this SerialPortExample and I want to define a variable (mConfigDataBit) so that I can modify it later but I can not do it correctly . The possible values that this variable mConfigDataBit can take is: DATA_BITS_8, DAT...
asked by 19.12.2018 / 23:40
1
answer

Read MySQL blob field and convert to JSON for android webservice

I am creating a webservice for Android, in which I have to read a blob field from a MySQL database. The problem is that I can not encode that field to JSON, which is the format I will need later to read the Android webservice. Let's see if an...
asked by 10.12.2018 / 16:42
2
answers

Problems with ViewPager

I'm with a problem. I made a ViewPager with 3 screens. Until then everything was fine, the problem came when I wanted to program on one of the screens and I do not understand why I'm throwing an error into something as simple as a button becomes...
asked by 17.10.2016 / 23:52
1
answer

Access an element of an XML that is not the one of the activity_main

I happen to have a ListView in the main, and within that ListView another ListView with its corresponding xml, I would like to apply an event to the internal ListView from the main but I have problems when locating the element, then I show you...
asked by 25.11.2018 / 08:33
1
answer

How to capture the Primary Key Duplicated error in Android (java) with SQLServer?

Is it possible to know that the error that occurs when inserting a record is due to a duplicate key error? I have a user registry in which the user is the primary key and I have it in try catch but when the user already exists it jumps to...
asked by 28.11.2018 / 14:51