Questions tagged as 'android'

1
answer

InitializeComponent does not exist in the current context

I have this code, where I have the error [XamlCompilation(XamlCompilationOptions.Compile)] public partial class AprovarPopup : PopupPage { public AprovarPopup() { InitializeComponent(); } pr...
asked by 31.10.2017 / 09:55
0
answers

Screen updates only once when using multiple socket connections

I'm creating an android application in which I exchange data with a java socket server on the pc. And in the same application I will open some threads that run servers for a direct connection to the android, receiving intermittent data. The p...
asked by 03.10.2017 / 02:35
0
answers

lottie - toggle switch

I'm trying to set up a toggle switch in the android studio using the lottie documentation. I have, but this is giving a mistake, I need a little help guys. final boolean[] oontrole = {false}; final LottieAnimationView animationView =...
asked by 09.11.2017 / 02:30
2
answers

Webview updating URL page when I turn the screen

I'm doing a test in webview and it's ok. But when I turn the smartphone it updates the url of my page. I would like to keep the rotation without this update, keeping it on the screen that is in the url. Any tips?     
asked by 22.07.2017 / 14:27
1
answer

How to do date validation? [closed]

How do I validate the date as the date of birth? Not being able to put the date in the future. data.addTextChangedListener(DateUtils.insert("##/##/####", data)); mData = data.getText().toString();     
asked by 17.07.2017 / 23:08
4
answers

How to get the current location of the android device?

I'm developing an android application that needs to get the current location of the device (Latitude, Longitude) and use this data in google maps ... how can I do this? If you help me get only the latitude and longitude coordinates, it will be a...
asked by 21.04.2016 / 15:58
2
answers

Android application permission [duplicate]

I created an application in eclipse for android, when I install it on mobile phone it does not give permission, in case it was an APK for web radio streaming, on Samsung devices it works 100%, but in motorola they do not work. When you inst...
asked by 19.07.2017 / 09:34
4
answers

Problems using string for resources

I'm creating a quiz app, the link is link . I'm trying to use getString(R.string.nome) to migrate the strings of the java class and then I can use 2 languages. In other places I was able to pull the strings and it works by showing...
asked by 16.07.2017 / 19:19
1
answer

WebView opens browser

I made an application via WebView on AndroidStudio, everything is quiet without errors but when I put the information to log in my webview opens the default browser, I would like it to open in WebView itself: package com.sirseni.simpleandroidw...
asked by 05.06.2017 / 14:13
2
answers

Background function with React Native

I have two functions, one that takes the current position of the geolocation and another that performs this function in a certain period of time. I have a button that I use to initialize and pause this function, but I would like to run this func...
asked by 30.06.2017 / 22:17