Category "android"

Execution failed for task ':app:compileDevDebugAndroidTestJavaWithJavac'

I am trying to run a command ./gradlew app:assembleAndroidTest inside android directory of my app in order to build an app-debug-androidTest.apk under androidTe

Get realtime data change update when data changes on Firebase Realtime Database

I have written this code to fetch the data. But I want to fetch updates without restarting the activity as data changes in real-time in the database. I want to

Material Design 3: How to make Toolbars the same color as primary surface?

I'd like my Android app to have toolbars the same color as the primary surface (and the status bar -- which is already the primary surface color out of the box

How to handle Single<Single<String>> in RX?

I have an api with a method fun getList( @Path("array") array: String ): Single<List<EpisodeRetrofitModel>> I need an argument to u

Untrusted Server Certificate in Intellij

I don't understand why Android Studio behaving weird, sending this Untrusted Server Certificate request again and again. Please suggest how to avoid this?

Call from foreground service stops working when screen is off

I have the following code that makes a phone call: public static void CallPhoneNumber(this Context context, string phoneNumber) { var uri = Android.Net.Uri.

Unknown DataBinding Class

I am newbie to DataBinding in Android and learning it to my own. I have just enabled the DataBinding in my App Gradle File in the Android Tag as: dataBindin

Using Custom Views with Jetpack Compose

Let's suppose I'm using some library that's intended to provide some UI Widgets. Let's say this library provides a Button Widget called FancyButton. In the oth

What is Scaffold? Jetpack compose

I want to know what is Scaffold in jetpack compose with a BottomAppBar example can anyone help me Scaffold

how to set condition in adapter?

I use this to visible some textview public void onBindViewHolder(@NonNull ViewHolder holder, int position) { Post p = posts.get(position); hold

After cleaning gradle, androidx-test.core module throws merged-manifest errors

In a react-native project, ive recently updated to v66.4 from v63.2 after some dependency conflict troubleshooting, i ultimately get a merged manifest error, th

After cleaning gradle, androidx-test.core module throws merged-manifest errors

In a react-native project, ive recently updated to v66.4 from v63.2 after some dependency conflict troubleshooting, i ultimately get a merged manifest error, th

How to make thumb smaller than track in switch button in android studio?

Hy, guys. This tiny problem drives me crazy. I wanted my switch to be like this : , but after a lot of googling, I could not do it. My current button is this

Rename a file/Image in flutter

I am picking a image from gallery/taking a photo using image_picker: ^0.6.2+3 package. File picture = await ImagePicker.pickImage( maxWidth: 800, imageQual

Is there any way to break the limit of openCL memory in android?

I want to allocate 4.5GB to my openCL program in android phone wiht 8GB memory. But I found the memory size from CL_DEVICE_GLOBAL_MEM_SIZE is much lower than th

How to make thumb smaller than track in switch button in android studio?

Hy, guys. This tiny problem drives me crazy. I wanted my switch to be like this : , but after a lot of googling, I could not do it. My current button is this

Is there any way to break the limit of openCL memory in android?

I want to allocate 4.5GB to my openCL program in android phone wiht 8GB memory. But I found the memory size from CL_DEVICE_GLOBAL_MEM_SIZE is much lower than th

what is different between ANDROID_HOME & ANDROID_SDK_HOME

I have 2 directory that look same, ANDROID_HOME=C:\Android\sdk ANDROID_SDK_HOME=C:\Users[user]\AppData\Local\Android\Sdk whats the different? can I set it in

Picasso Fetching Images in Activity, then show them into Fragment's ImageView

I am trying to fetch multiple images in an Activity with FragmentStateAdapter in it. Then I need to show them into some Fragment's ImageView. I want to preload

How to clear navigation Stack after navigating to another fragment in Android

I am using The new Navigation Architecture Component in android and I am stuck in clearing the navigation stack after moving to a new fragment. Example: I am