Latest Questions tagged Android

Browse all latest questions tagged Android

100
Votes
Published 30 Oct, 2022
Java - How to extract timed ID3 metadata from HLS stream in ExoPlayer?

I have an M3U8 file located here: https://vcloud.blueframetech.com/file/hls/13836.m3u8 This video contains timed metadata every single second. My goal is to read this metadata from ExoPlayer. I curre...

64
Votes
Published 19 Sep, 2022
Java - java.lang.IndexOutOfBoundsException: setSpan (N ... N) ends beyond length 10500

I get this exception when I call EditText.setSelection() java.lang.IndexOutOfBoundsException: setSpan (N ... N) ends beyond length 10500 N can be any number. For example if I call setSelection(1047...

95
Votes
Published 19 Sep, 2022
Java - Datagram Transport Layer Security (DTLS) on Android/Java

Has anyone used DTLS on Android or is there an open source Java implementation that supports DTLS? What are my other options for securing UDP traffic on Android?

53
Votes
Published 25 Oct, 2022
Java - Static interface methods are only supported starting with Android N (--min-api 24): void butterknife.Unbinder.lambda$static$0()

I was trying to debug an app when I encountered this error Static interface methods are only supported starting with Android N (--min-api 24): void butterknife.Unbinder.lambda$static$0() Here is...

68
Votes
Published 19 Sep, 2022
Java - Meaning of android.content.UriMatcher

What is Uri Matcher in android.content.UriMatcher How to use it? Can someone please explain meaning of following three line of code? uriMatcher = new UriMatcher(UriMatcher.NO_MATCH); uriMatcher....

2
Votes
Published 16 Apr, 2022
Javascript - How to get the value of all p and h tags in a html page excluding all other tags

I am trying to load a HTML page into my app. I want to show only the content of the HTML page. please help me with a javascript function where I can loop through all the p tags and get the content of...

54
Votes
Published 29 Aug, 2022
Python - Google Drive API vs Dropbox API Android/Desktop

I got here a simple question for people that used to work with cloud storage API's. I want to set up a client/server model where the client is Android and it uploads files periodically to the cloud....

100
Votes
Published 16 Sep, 2022
Java - Permission Denial: opening provider that is not exported from UID 1000

I have built a signed application (system application) with a shared user id android.uid.system. It contains a FileProvider, which I need for a package install intent. When I try to install the appli...

43
Votes
Published 07 Sep, 2022
Java - Cannot resolve method updateUI()

I'm trying to add a google login with firebase to my project, following the offical documentation for google sign-in. https://developers.google.com/identity/sign-in/android/sign-in I already seen othe...

28
Votes
Published 16 Sep, 2022
Java - what is the use of @StringRes in javadoc?

I wonder for a method like MyDialog(Context context, @StringRes int message), what does @StringRes exactly do? My impression is that if it is not there, the programmer might think message is a number...

46
Votes
Published 16 Sep, 2022
Java - How can I debug an Android application using ADB/AM?

I am using AIDE as an Android IDE. This application built my project successfully and produced the corresponding APK file. I would like to debug my project. Currently I: open a terminal emulator mo...

107
Votes
Published 07 Sep, 2022
Java - How to increase and decrease the volume programmatically in Android

I created a music player app and I want to set the volume up/down programmatically. I want to implement two Buttons to increase/decrease the volume and set to the media player. Activity: control = (Im...

66
Votes
Published 23 Jun, 2022
Reactjs - Keyboard white flickering with React Native

When showing and hiding the keyboard in my React Native app there is a white flickering where the keyboard goes, see this: https://photos.app.goo.gl/Bwmin9T1R4OAO9tB3 I'm making my first app using R...

90
Votes
Published 30 Sep, 2022
Java - SSLHandshakeException: Certificate Unknown (Java Spring Boot & Android)

I have a Spring Boot API that runs locally, with a self-signed certificate, using the HTTPS protocol. Obviously, when I send GET Requests from the browser, I receive the io.netty.handler.codec.Decode...

164
Votes
Published 14 Sep, 2022
Java - getHeight returns 0 for all Android UI objects

I'm building a UI, and it's all static defined in the XML. All of it has weights all over the place, and while it looks right, I wanted to see that things actually have the right height and all. The p...