In my android project I want to use Ktlint - IntelliJ IDEs Plugin. This plugin requires a baseline file to be generated from the root directory of the project, but ktlint-gradle generates it inside the app module. (Using ktlintGenerateBaseline...
I am unable to add the library for the Builder class, I am pressing Alt + Enter to import but nothing works. I've also tried importing it manually androidx.test.runner:runner:1.5.2@aar but it doesn't stick, tried restarting android studio. Here is...
I want to insert VideoUrls object into the database through callback while enqueuing a network request through volley library in android just after I obtain title from respose. Here is my code:-
I have an Android app that needs to establish a socket connection when it comes to the foreground. This connection is intended for receiving updates and writing them to a local database. Here are my requirements:
Connection Duration: The connection...
I have a gradle project which I've transferred to a network that has no internet access. To resolve all of my dependencies, I've grabbed the files in ~/.gradle/caches/modules-2/files-2.1 and pushed them to my network's Artifactory.
sorry for my ignorance. I implemented this quiz activity so that once the user has decided on the answer, he presses and the btn backround becomes light blue and then he has to press next to go to the next question. However, I would like that once...
I am encountering an issue with highlighting the background color of ListView items in my Android application. Despite my attempts to modify the background color programmatically, the changes are not reflected in the UI.
Is there a workaround for this exception? looking at this issue on github it sounds like it might be an android bug, something about the hostname having an underscore character or something.
Let's say I'm working with four different folders for different screen sizes. These folders are layout-sw320dp, layout-sw480dp, layout-sw600dp, layout-720dp.
What I am not clear about is, do I have to make modifications to the layout code for each...
I have developed a basic program where it has list(recycler view) and you can search from it. But, the issue i encountered is when i tried to integrate a search feature. When trying to find the id of the search view, my app crashes. I also tried to...
So basically i want to develop a simple appblock app and i want to show the current name of the app. I tried a few solutions but it did not work for me. e.g activityManager was one them. Perhaphs the code are depracted for the android api.
In my current project I have the problem that the first restore state attempt (triggered via popBackStack) failed. The navigation after that first failure is working fine and the app manages to restore all states afterwards fine.
I want to use com.google.android.material.tabs.TabLayout component with Android's new ViewPager implementation androidx.viewpager2.widget.ViewPager2. However, the setupWithViewPager(..) method provided by TabLayout supports only the old ViewPager...
The second image is the one without curly braces, and it marks that area with a red line. The first image has curly braces inserted in it, and the line disappeared. Why was there a need to add curly braces?
Suppose in Android Kotlin, I am fetching data through a paginated API where 10 data are fetched per page. Now, I have to filter among those data according to certain properties that are inside the data, i.e. prices, hotel type, and star rating. Now,...
I have a word game app in which I give the user a letter rack to type letters from. When the user types a letter, it goes into an array and that array is reflected into an answer rack on the screen (if the user selects the correct letters and makes...
my flutter app crashing and restarting when wallpaper or theme is change in Android 12 and above version , so my question is how can stop crashing or how can handle this issue when user changed theme or wallpaper (app runs in foreground and...
Вы не можете начинать темы Вы не можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы не можете добавлять вложения