Skip to content

Tag: android

Get imageView resource

i have been searching for hours, and cant seem to find an answer i have a chess board and its made of 64 imageViews (8X8) and i want to move one pawn to another square, and cant seem to find the way to get the image resource (which is a png image) and set it on the empty square. i

Byte array to string conversion

I’m making an Android app that communicates with bluetooth device. I’m writing a specific message to chosen characteristic as follows: My conversion function looks like this: I’m trying to figure out why in this case my conversion output looks like this: D/uploadDataset: Message: �����������…

Create directory without manage all files permission

How can i create directory in ( /storage/emulated/0/ ) without manage all files permission. This is my code : On android 11 its not working because it need manage all files permission. Answer From SDK 30 you can not access all file system without using MANAGE_EXTERNAL_STORAGE. If your app is in following cate…

How to download and save Bitmap of animated webp?

When I am using webp files for animated sticker packs it get rejected but if use same files for static stickers it get excepted. After looking all the codes I came to know that this is the last point where those files becomes problematic. But don not know how to identify if webp files stays as animated webp a…

Android editText remove first line break after onclick button

I’ve been trying to search for solution for this but ain’t lucky enough to find a correct answer. So my problem is.. I want to remove the first Line break in my EditText after clicking a certain button. But this leaves only 1 line each time I click the button. Answer I believe that this will do wh…