Questions tagged as 'android'

2
answers

How can I compare two positions in onLocationChanged? [closed]

I want to obtain the coordinates of the method onLocationChanged can compare if the distance to the previous one is greater than 2 meters, and so not register it in database.     
asked by 05.10.2016 / 21:06
3
answers

Screenshot on android

Does anyone know how you can take a screenshot just by pressing the screen? In the layout I only have a VideoView and I want to capture what it captures at that moment     
asked by 12.10.2016 / 22:22
1
answer

Download PDF on Android [closed]

I have a button and I want to make that when I press it, a .PDF that is saved on the server is downloaded to the phone. How can I do it?     
asked by 27.03.2017 / 09:15
2
answers

Concatenate log.i with a textview [closed]

Is it possible to concatenate a textview with a log so that it shows me the value of this in the log? That is, if a variable can be created and it is sent to the log to show the value of the textview it is receiving.     
asked by 22.03.2017 / 08:50
2
answers

Convert dp to reverse pixels on Android

I need to convert dp to pixeles and pixeles to dp in Android Java. I get the width of the screen of the device, I return a value float that is in dp public static float getWidthDeviceDP(Context cont...
asked by 08.07.2016 / 18:31
1
answer

Migrate Android to Phonegap [closed]

Boys, I have a question that I hope you will help me resolve. The question is that if you can migrate an Android Studio application to PhoneGap? I await your answers, greetings.     
asked by 26.05.2016 / 09:44
1
answer

Realm Error io.realm.exceptions.RealmMigrationNeededException on Android

I am starting to use database style Realm after adding a new field Age to class Person import io.realm.RealmObject; import io.realm.annotations.Index; import io.realm.annotations.PrimaryKey; public class Person extends RealmOb...
asked by 01.06.2016 / 07:23
1
answer

Pass a value from one tab to another

I have two tabs in an Android application. One of them loads a list and the other positions me the items in this list. From tab2 I want to access the list of tab1. How can I do it? Definition of tabs: tabHost.addTab(tabHost.newTabSpec("tab1...
asked by 26.04.2016 / 19:48
4
answers

Binary XML file line # 16: Error inflating class android.support.design.widget.NavigationView

Good morning. I just finished developing an app, and I've been testing it all the time on the same device, the Samsung glaxy S6. In the samung everything is correct, without any problem ... I have tried it on another motorcycle and it is also...
asked by 22.07.2016 / 10:21
1
answer

SharedPreferences push [closed]

I would like to save my push messages in SharedPreferences and then teach them in a layout as it could be. I use firebase cloud messaging to send push messages.     
asked by 31.08.2016 / 01:57