Skip to content
Advertisement

Tag: android

How to access json array in url that needs bearer token and display in android studio?

Hello stackoverflow community!! How do I access a JSON array in this URL “https://api.json-generator.com/templates/z0aMAeTBHKq3/data” token is “2oof0bzpgllll2a8k2fmmh6aaykeu8yptztdzke7” but when I display the data in an Activity, it just displays blank and exits the app. But When I change the URL without an auth/bearer token I can see the displayed data in the URL. So my question: is how do I

Controlling Media on phone from WearOS Watch

Is it possible to make an app like the media controller app that WearOS comes with yourself? Im asking because I want to design my own watch face that has media controls on it. There is a surprising lack of online documentation and people with this same question about this, which makes me think this is impossible to do. Ive

AbstractGoogleClientRequest and GoogleClientRequestInitializer class not found in com.google.api-client:google-api-client-android:2.0.0

My Android app with Cloud Endpoints says these classes do not exist when using any version higher than 1.31.0 of the following import The latest version is 2.0.0 but even 1.32.1 has the issue. Anything that is 1.31.0 or lower works. This is what my code looks like (taken from this link): Is there a different way to be doing

Application not compatible with older Android versions

I’m generating an Android application via mvn -Pandroid gluonfx:build gluonfx:package. Here are the versions from the POM: Using graalvm-svm-java17-linux-gluon-22.1.0.1-Final The application works well on Android 8. However, when trying to install it on Android 7.0, a message pops up saying that the application is not compatible with the device. I’m not sure where the default version is specified, but following

Creating Constraint layout uisng java file

I am trying to create constraint layout using Mainactivity.java but I am facing some problems. I’m getting the below output. The constraint layout isn’t matching the size of parent. I have created 2 classes 1 is MainActivity.java and another is MyConstraintLayout.Java MyconstraintLayout.java MainActivity.java Don’t have any XML file. Thank you in advance Answer You are calling setLayoutParams() on the ConstraintLayout

How can I create a button for clickable many times on android?

I triying make a android app for learning but my buttons clickable only once. I can’t click second time. Here is my codes for button. There is the xml codes: And there is java codes: There is generate method: There is variables: Answer After calling generate() the first time password.length() < 16 will always be false. Put String password inside

Advertisement