Questions tagged as 'android'

1
answer

Android Instant Apps can control deep links?

I need to develop a very simple app prototype. The app must be compatible with Android Instant Apps. The user will open the app without installing it (Instant Apps). You will use Chrome to navigate to link (deep link). The app will display...
asked by 07.01.2018 / 19:34
1
answer

Restore folder excluded from Android Studio

I would like to know if there is any way to restore a deleted folder inside Android Studio, in Eclipse there is the option "Restore from Local History" but I do not know if it is possible to do the same with Android Studio     
asked by 13.12.2017 / 18:42
2
answers

Return DataHora Updated Android

I made a class called DataHoraAtual containing this data: package com.projeto.projetov1.model; import java.text.SimpleDateFormat; public class DataHoraAtual { long date = System.currentTimeMillis(); SimpleDateFormat sdf = new SimpleD...
asked by 16.12.2017 / 23:28
1
answer

Firebase data reading always returns null

I'm trying to read data from users that are stored in Firebase through an Android application. I'm always having null in TextViews, but I see the value in the Logcat of Android Studio. I have already checked my security rules and they...
asked by 24.02.2018 / 22:41
1
answer

Android Studio set a string in several textview

I'm studying Android Studio and I ended up with a problem, and I needed a light. I made several textView on the screen of my application and when I hit a button I would change the contents of all textViews that are on the screen. In case I...
asked by 24.02.2018 / 03:51
2
answers

Working with custom layout of an alertdialog

I created this layout so I could work with this alertdialog. I created it, because I have to save the states after the click and also, when I open the dialog, I can get the value that was previously marked. Search through preferences. But eve...
asked by 22.12.2017 / 13:29
1
answer

How to get the Android version number?

I would like to know how to get the version number of Android in which my application that uses WebView is running, to put in the UserAgent, as in the code below: mWebView.getSettings().setUserAgentString("Mozilla/5.0 (Linux; App Mobile Andro...
asked by 07.11.2016 / 05:35
1
answer

How to use the same onClickListener in more than one View?

I would like to know the following, I have: ImageButton btneditarusuario; and a TextView editarusuario; , clicking on either one starts startActivity . How to group ImageButton with TextView so you do not have...
asked by 06.11.2016 / 17:13
1
answer

I'm wrong with Apostrophe not preceded by

I'm trying to internationalize my app to the English language, but I end up getting this error    Error: (10) Apostrophe not preceded by \ (in Please note, if you're on a device with android 6.0 above, you need the permissions that the follow...
asked by 07.11.2016 / 15:43
1
answer

Access WebService localhost - Android Studio

I have a webservice that was made in ASP.NET in VisualStudio 2013, I'm running it locally (localhost), and I'm not able to access it in the Android Studio Android emulator, nor on my physical device (USB debugging) . I tried to use IP 10.0.2....
asked by 30.11.2017 / 14:03