Category "android"

android:autoSizeTextType in Jetpack Compose

Is there a way to adjust the text to always resize depending a fixed height ? I have a column that has a fixed height and in which the text inside should always

Error #200 when adding comments on friends post

I get error #200 when trying to add some comments on friends post: { "name": "Comment", "link": "https://www.facebook.com/586953601/posts/10151621828953

Google sign-in fragment returning RESULT_CANCELED

I am trying to integrate Google sign-in into my android app using Firebase, but I am running into issues. I am following the tutorial here, and I believe that

Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6

When trying to run the Example CorDapp (GitHub CorDapp) via IntelliJ, I receive the following error: Cannot inline bytecode built with JVM target 1.8 into byte

How to put ads in Chrome custom tambs

using android Webview i'm able to size the height of a web page in my android app so i can put and ad below the webview and it works well but now i want to use

Android webview with timer

I am implementing a timer on webview activity with 1 second delay like clock. On each event webview is loaded with generated HTML having canvas and 2 tables. Wi

Suspending threads while running multiple AsyncTasks in nested fragments and it makes app slow

Here I'm calling web services in nested Fragments which has TabLayout and ViewPager using AsyncTask. I've tried AsyncTasks by calling them all in onResume metho

Can no longer view Jetpack Compose Previews. Failed to instantiate one or more classes (ComposeViewAdapter)

I've recently got an error preventing any Jetpack Compose previews from being displayed as follows: Failed to instantiate one or more classes The following clas

Back button in action bar opening and closing NavDrawer

I have a nav drawer set up in my main activity. In one of my fragments I want to hide the hamburger icon and show the back arrow (achieved) ActionBar bar =

In Activity.onCreate(), why does Intent.getExtras() sometimes return null?

This was probably a false alarm, see my own answer. Original question below: An activity has a button that takes the user to another activity. To launch the ne

WallpaperManager intent for crop and resize from bitmap

Right now we are setting wallpaper from some loaded images using below code. bitmap = ((BitmapDrawable)imageView.getDrawable()).getBitmap(); WallpaperManager m

How to get the current index in for each Kotlin

How to get the index in a for each loop? I want to print numbers for every second iteration For example for (value in collection) { if (iteration_no % 2) {

Fragment's onOptionsItemSelected doesn't get called

My fragment replaces the parent Activity options with a specific option item but when I click on the item, only activity's onOptionItemSelected gets called even

How to get the current index in for each Kotlin

How to get the index in a for each loop? I want to print numbers for every second iteration For example for (value in collection) { if (iteration_no % 2) {

How to disable certain dates in the Android Date Picker dialog?

I am using default Android DatePickerDialog which contains android.widget.DatePicker. Does anybody know how to disable or make certain dates unselectable? I k

Android set single item background color in listview

I need to change color on selected item in list view, i know how to do that in click method, but the thing is that I want to set it then i load new activity. In

Android set DatePicker to a certain date

I have 3 strings containing day, month and year values. For example: String mday = "02"; String mmonth="07"; String myear="2013"; I need to set the DatePicke

HTML5 datalist tag is not working in android

I am using the datalist tag to provide auto-complete to an input text. The tag is working fine on desktop chrome but it's not working when I test it on my phon

PendingIntent does not send Intent extras

My MainActicity starts RefreshService with a Intent which has a boolean extra called isNextWeek. My RefreshService makes a Notification which starts my MainAc

Compose preview doesn't work at all - project needs to be compiled

I use Android Studio Bumblebee 2021.1.1 Patch 3 built on March 16, 2022 androidx.compose.ui:ui-tooling, androidx.compose.ui:ui-tooling-preview, androidx.compose