Latest Questions tagged Android

Browse all latest questions tagged Android

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?

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...

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...

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....

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...

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...

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....

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...

50
Votes
Published 14 Sep, 2022
Java - Android Calendar: Changing the start day of week

i have a little problem, i'm developing an application, and i need to change the start day of the week from monday to another one (thursday, of saturday). is this possible in android, i need to calcu...

62
Votes
Published 14 Sep, 2022
Java - Retrofit enqueue doesn't work but execute work

I'm using com.squareup.retrofit2:retrofit:2.2.0 HttpLoggingInterceptor logging = new HttpLoggingInterceptor(); logging.setLevel(HttpLoggingInterceptor.Level.BODY); OkHttpClient.Builder h...

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...

89
Votes
Published 07 Sep, 2022
Java - java.lang.NoClassDefFoundError: Failed resolution of: Ljava/time/LocalDate; error

I tried everything, but the error not getting solved Here is my code: public String[] getWeekDays() { LocalDate today = LocalDate.now(); LocalDate monday = today; LocalDate tue = today;...

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...