So I´m having three Buttons which lead to other Activities with a normal Click. Now i want to name the buttons through a longer Click and User Input. So short click goes forward, long Click ability to rename it. So far i was able to rename the button with a long click, but only to a predetermined String. My c…
Tag: android
Adding a ListView in a Fragment
I want to add a ListView to a Fragment. I created a FrameLayout in my activity_main.xml and then created 3 fragments (Home, Tags, Settings). What I did was create a bottom navigation view and created 3 frame layouts for the mentioned fragments. I searched the whole web on how to add a ListView to a Fragment, …
Ethiopian calendar in Android
I am developing an Android app for an Ethiopian company and have to deal with dates. The calendar used in Ethiopia is similar to the Gregorian one but has two main differences: it’s set approx. 7 years earlier and has 13 months. At the time I post this question the date is 13-09-2021 in the Gregorian ca…
How I can replay to WhatsApp notification from java code in android studio
Hello guys I’m using NotificationListenerService to get WhatsApp messages But now I have a problem that I don’t know how to replay to WhatsApp notifications So here is the code and how I’m getting WhatsApp notifications but my problem is in how actually to replay on them } Answer Did you try…
How to open secific range of pages in pdf instead of whole pdf
How to modify the following code to open specific range of pages within the pdf for example from page 5 to 30 instead of opening the whole pdf. Thanks in advance Answer You can’t modify a third party tool, where the option to change the site range programmatically isn’t given. Thus, you can’…
Issue with Android Studio WebView loading certain elements on a webpage
I am using Androids WebView class to create a native application that emulates a native android application of my website. Our website uses some pretty modern methods within the javascript and in older versions of chrome, the log in Button isnt shown and errors are thrown, even on a desktop. This can be allev…
FirebaseAuth does not print realtime data in the membership creation step
I have created a membership system in my application. I create record with Firebase Auth and store some information in firebase realtime . However, I saw that 1% of the users did not print their data to firebase realtime during record creation. If users’ data is not written to firebase realtime, my appl…
In Android Studio, text does not appear on top of an image
I’m doing a small project on Android Studio, and I’ve put a picture as a dark blue background. I inserted white text on top of this dark blue figure, but the white color in the letters still doesn’t show. The Graphical Interface. See that I put the color white, but it still doesn’t sho…
The minCompileSdk (31) specified
Answer Add this line of code in-app `build.gradle file.
Allow notifications Android webview
Context I’m trying to add push notifications that come from my website. My code: MainActivity.java AndroidManifest.xml activity_main.xml Problem I tried code from this post but it did not help. However, I think that I should allow notifications somewhere. I tried to open my website in a browser and it a…