I have been struggling for days now to get local notifications to display on an Android device. Notifications simply do not show up and I’m getting a developer warning: I went through many tutorials and StackOverflow posts to see if there’s anything I missed, but I simply can’t find it. Can …
Tag: android-studio
Java Android ImageView-Image rotation only works for the first time
I have written a code on in java for image view that will rotate and fade away and another image will be visible, I use imageViewer.animate.rotation(3600).alpha(0); now this works fine when I run the code on an emulator, the images fade and re-appear just fine, but the problem is about the rotation after I co…
View binding with include layout not working
I want to use view binding to bind the view in include layout. I had given the included layout with an id ‘topBar’ but still failed to access the views inside of it. And I try to use Android studio auto-fix to create a local variable to see its type. It shows type “android.widget . a” …
Function “onButtonClicked” is never use
I have created a function called “onButtonClicked” and I want the button (bt301_tw) to send me to the activity (MainActivity_04_ReadioGroup). The problem is when I create the function …
CountDownTimer in Android using Java
I am trying to implement a timer in android. I am using the countdowntimer. Here, is the timer code: The timer keeps updating the amount of time left on the user’s screen. The problem is the timer keeps ending at 00:01 (1 second), it never displays 00:00 and the alarm tone rings 2 seconds after the time…
In Android Studio why is there no TextViewPreference?
Ok so I wanted to create a Settings activity. I was told using the Preference layout makes it much easier. I want a TextView that when clicked does a certain action, yet there is no TextViewPreference….
How can I change the font size in Android Studio?
I don’t want to change the font size of Android Studio itself, but rather the font size of the app i’m working on. All the search results I have found talk about the user interface or zooming in. I’m …
How can I change the text color and the tint color of radiobuttons in a Alert?
Right now I have a button and when clicked it pops up with an AlertDialog with 3 radiobuttons. I want to change the text color and the tint color to match what I have on the rest of the app. Besides the call to the method this is all the code I have for the Alert: I have tried to
Android Emulator stays with black screen after trying a lot of things to fix it
My Android emulator starts but do not progress from the black screen, it happened from one day to another a few days after installing Android Studio 4.0. I tried the next things: Reinstall completely from zero Android Studio Installing/Uninstalling Android Emulator, Intel Xahm, Android Platform Tools Creating…
setLocale for change language has no effect in Android
If Generated Signed Bundle – Release, i failed to change the language of an app programmatically on some Android devices..but if Build Apk(s), it’s work on all Android devices.. This is a list of devices that have been tested : ✓ Samsung J7 prime ✓ Samsung A50 ✓ Vivo y81 x Xiaomi Redmi Note 8 This…