Questions tagged as 'android'

1
answer

Put invisible ListView background color when using the scroll bar

In my application it has a listview and when I roll the scroll bar the background turns white, I wanted to leave it invisible, with no color leaving only the color that is already at the bottom of the application, does anyone know?     
asked by 18.11.2014 / 18:53
1
answer

Problem with android UPDATE

I'm having an issue giving update to a table in Android/SqLite : I tried two ways I found: String query = "UPDATE MY_TABLE SET VALUE1='VALUE1'... WHERE KEY_ID = KEY_ID" SQLiteDatabase db = dbHelper.getWritableDatabase(); db.exe...
asked by 14.09.2016 / 21:48
2
answers

Mascara for money on android

I'm creating a function for when the user types in a EditText , it returns me with a chew in the field, Example: Type 1 returns "$ 0.01" Type 11 returns "$ 0.11" and and so on I tried this way public static String addMask(...
asked by 22.02.2018 / 00:39
1
answer

Button events

How do I put event on buttons to call another screen on Android? I'm using Intent , but I'm not getting it.     
asked by 21.05.2014 / 00:39
2
answers

Is it possible to generate an executable in Android Studio?

Hello, I want to run my Android application on PC (Windows) without emulator, so it is possible to install with .exe, is it possible?     
asked by 26.11.2018 / 11:43
2
answers

How do I know if the user really wants to go back, when I click the back button on my cell phone?

I have a activity that stores certain data, and when the user presses the back button (Avd Hardware Button, for example), the application does not go back to the previous screen, but rather opens a dialog screen questioning whether the us...
asked by 05.02.2014 / 18:07
1
answer

How to get latitude and longitude without internet on Android? [duplicate]

How do I get the latitude and longitude in Java to Android without using the internet, only with GPS. I think there is some way to do it, because the "Maps" application of Android does not use the internet. If anyone knows...
asked by 16.04.2014 / 17:29
1
answer

How to make a ListView responsive?

I wanted the items in ListView to appear with a responsive size at different screen resolution, how do I? Because I set a size of the images and text, which gets big on small devices Listview Items:      android:orientation="vertica...
asked by 12.01.2015 / 13:40
1
answer

Close two activities

I have two activities that are called in the following sequence: The first is inserted a text and once clicked on a button, it leads to a second activity. This second activity, when clicking on a next button, is then taken to a third activity, t...
asked by 14.09.2016 / 22:27
3
answers

I would like a TextView to display the number of CheckBoxes that have been marked

I made several attempts, but I did not succeed, here is the code from MainActivity.java: package genesysgeneration.cbnumber; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import...
asked by 04.01.2017 / 00:00