Questions tagged as 'android'

3
answers

How do I use replace () for the last occurrence?

The String#replaceFirst() method is used to replace the first occurrence of a substring in a string , but how should I proceed if I want to do this with the last occurrence? The question is how do I make the condition to parse the...
asked by 08.03.2015 / 16:43
1
answer

lock R to resize the window

In% w / o, you can grab and hold a device, draw an image, and flush the graphic render. This is useful for complex screen situations with hundreds of dots and / or color gradients, since without holding it the device would be updated with every...
asked by 27.06.2018 / 15:39
2
answers

GPS remains on after closing Activity

I'm using it in my application, GPS and Google Direction. It's working, but I've noticed the following. After I get back from the activity where the map is, the GPS icon on the smartphone does not come out, it looks like it's still consuming the...
asked by 18.07.2017 / 02:04
1
answer

I can not save the information to a local database!

I'm having trouble saving the information entered by the user in the PostgreSQL database, I've developed an application in Android Studio and I'm using an external local database with PostgreSQL to save the data, however when I run the applicati...
asked by 08.09.2016 / 02:46
1
answer

How to receive external data via XML

I'm creating an android app and I need it to receive and display on-screen information from the tide board of the site below: link     
asked by 15.08.2016 / 16:09
1
answer

Check click position on a ListView

I have a screen that has ListView inside it, I need to identify which line was clicked to point to the correct location. How can I do this?     
asked by 12.09.2016 / 13:47
3
answers

How to control the volume of the app media on Android

I'm having a question about how to control the media volume of the app. I'm using this method: Button button1; MediaPlyer mp; button1 = (Button)findViewById(R.id.button1); button1.setOnClickListener(new View.OnClickListener() { @Override p...
asked by 01.02.2015 / 12:35
2
answers

What is the best way to represent a login table with two types of Facebook and Conventional authentication?

I have an Android app and I have a standard login activity. Currently I want to add login with social networks. What is the best way to store this type of distinct logins in tables. I create a single table or partition them.     
asked by 24.11.2014 / 01:08
1
answer

Touch the photo and open the gallery and camera

I have a sign-up screen where a user's default photo is stored. I would like to put both options. From when the user touches the photo open an option for him to take a photo of the crew and replace the current one and still an option if he wants...
asked by 08.07.2016 / 13:54
3
answers

Error compiling Android Delphi-10 on Windows 10

I have a problem to compile for android in delphi-10, follow the error   The C: \ Program Files \ Java \ jdk1.7.0_79 \ bin \ C: \ Users \ Public \ Documents \ Embarcadero \ Studio.0 \ Bpl; C: \ Users \ Public \ C: \ Program Files \ Java \ jdk...
asked by 11.12.2015 / 11:44