I want I’m noob for android. My app displays heads up notification. Now, my app always ringing when it listen notification regardless silent mode ON/OFF. I want to do next things. Disable notification sound with keeping heads up notification in silent mode. Thanks for your help. Problem My app ringing w…
Tag: android
How does a thread work with Handler in Android?
In the code section given below, I have run a thread on a button click. At first, the thread will set text to the textView, then it will sleep for 6 seconds. But, in reality on the button click, at first, the thread is sleeping for 6 seconds and then it is setting text to the textView. Now, why is
Problem with positioning FloatingActionButton in Fragment
I have problem with positioning FAB inside Fragment. FAB is on the top left, but I need it on the bottom right. What I have wrong? Answer as I have read , FAB doesn’t work with relative layout very well and you should use Coordinator Layout instead. first include its dependency in build.gradle(Module:ap…
Fix app keeps stopping made with android studio [closed]
Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed last year. Improve this question I’…
Android device can’t connect to mysql in localhost [closed]
Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 1 year ago. Improve this question I̵…
How to move a VideoView to a specified duration?
I am trying to set a video playing in a VideoView to a specified position, but there’s no method like setCurrentPosition. What should I use? Answer Try using seekTo
Android NowPlaying MediaSession Lock Screen (Samsung)
I’m working on a Audio app based on ExoPlayer, I have implemented the MediaSession controls for a NowPlaying bar in Notification Center and Lock Screen. The NowPlaying bar in the Notification Center is working on every phone, but on some Samsung phones (Android 11) the NowPlaying bar is not visible on t…
Different number of bytes when storing images to Android Q vs previous versions
we have a situation that we don’t entirely understand. In our app, the user selects images, which are saved to disc and mapped to their pictures folder. Then when the user is ready to upload the selected images, we use ByteArrayOutputStream to turn them each into a byte array, which is then turned into …
Is the Kotlin term “mutable” wrong?
The way I understood things is that the word “variable” referred to the capability of a reference to be reassigned. “constant” meant a reference cannot be reassigned. Essentially the difference between final or not in Java. To me “mutability” meant the ability to modify the…
Spannabe String text from Bundle getExtras
In my notification listener, I m not able to get value for keyvalue [android.text] when the notifications are received from gmail. It is working fine for most of notifications, but for gmail, it throws exception as below. Below is how i m fetching value of text since we do not have any method for extracting S…