Questions tagged as 'android'

1
answer

SQlite MAX function - Get the highest value

I have Sqlite a field called date_start , which keeps the date of a walk. This is of type Long and stores the date in milisegundos . I would like, through a query, to return the highest value (the last recorded hi...
asked by 06.06.2016 / 21:19
1
answer

Items being repeated in a RecyclerView

I have a fragment v4 that is managed by a SectionsPagerAdapter . In fragment I have a RecyclerView that has a Adapter custom that receives a ArrayList that contains exactly 96 objects, which represents th...
asked by 05.04.2017 / 02:21
1
answer

How and where to add image by Android Studio?

Which folder put the images I want to add in my application? Na drawable? And how to add via Android Studio ?     
asked by 04.04.2017 / 21:38
1
answer

In an activity, first open method onCreate or class constructor?

In a scenario where you have an activity with a constructor (public, of course) and the onCreate method which is part of its lifecycle. Which of the two will run first?     
asked by 08.09.2016 / 18:45
1
answer

Are you having trouble using 2 handler.postDelay () at the same time?

I would like to know if there is any problem with the App's performance in using 2 handler.postDlay() at the same time, type calling the 2 in functions: inside the OnCreate Td1 (); Td2 (); public void Td1(){ final Handler handler =...
asked by 31.08.2016 / 00:22
2
answers

Calculations using TextChangedListener

I'm developing an app to multiply two EditText (quantity X value) and show the result in another EditText . The problem is that there are several EditText as shown in the following code: <LinearLayout android:orie...
asked by 02.03.2016 / 20:35
1
answer

Error sending PhoneGap pro GooglePlay

When you send the PhoneGap APK to GooglePlay, you have the following error:    SEND NEW APK FOR PRODUCTION       Upload failed You uploaded a debugging APK. For reasons of   debug before you publish it on Google Play.   Learn more about debu...
asked by 29.01.2016 / 02:01
1
answer

Auto zoom

I do not know this function is native to the Google Maps API but I can not start the zoom map in my location, follow my code. public class MainActivity extends FragmentActivity { GoogleMap mGoogleMap; @Override protected void onC...
asked by 21.11.2015 / 20:46
1
answer

Change text color in AlertDialog

I'm creating an Android application and would like to know how do I change the red color of the phrase "SPI Equation" in this AlertDialog? AlertDialog.Builder dlg = new AlertDialog.Builder(this); dlg.setMessage("Equação SPI \n\n"+...
asked by 28.11.2015 / 17:21
1
answer

Qt and Android - Get path of a gallery image

I'm developing a code to get an image of Galeria do Android . I'm using QtAndroid to write a code equivalent to java in Qt. I already opened the gallery, I selected the image and I got the path, but the return is MediaColumn...
asked by 30.11.2015 / 20:37