Questions tagged [android-compatibility]

Related with Android compatibility issues.

147 questions
1
vote
2 answers

Xamarin Forms Android Autosize Label TextCompat pre android 8 doesn't autosize text

I want to utilise the auto-sizing feature of android textviews in my xamarin forms solution so that as the text length grows, the font sizes shrinks to never overflow the bounds of the label, and doesn't get truncated. I've created a custom Label…
1
vote
0 answers

How do you get compile time SDK compatibility warnings from Gradle?

Was recently doing a project and mid-way we had to lower the minimum supported SDK supported in the Android manifest. Some Android API's we use are not compatible the new lower minimum SDK. We only discovered these as run time crashes. Why wouldn't…
1
vote
1 answer

Using the Android TV platform on a device that is not an "Android TV device"

I am developing an app for an Android device running Android L 5.1.1 that will be hooked on TVs. The device however is not an "Android TV" device. My question is: can I still leverage the "Android TV" platform, for example to handle TV hardware…
1
vote
2 answers

Error inflating class ImageView caused by NumberFormatException

I recently got this weird error from a Android 4.2 device when inflating a Spinner item in the getView() method of its ArrayAdapter: 07-27 10:44:18.120 23988-23988/? E/AndroidRuntime: FATAL EXCEPTION: main …
josemigallas
  • 3,761
  • 1
  • 29
  • 68
1
vote
1 answer

Minimum requirements for a phone for android support

Can someone tell me what is the minimum requirement a phone should obey so that an android OS can be installed over it. thank you
Shrewdroid
  • 800
  • 1
  • 10
  • 31
1
vote
1 answer

Can I maintain a single apk to handle fingerprint scanning on Android?

While going through the Android Compatibility Definition for Android 6.0 I see the line: Device implementations with a secure lock screen SHOULD include a fingerprint sensor. Does this mean I can't have a single version of my app which at runtime…
1
vote
1 answer

VectorDrawableCompat.create cannot create image from vector.xml on old devices

I used this code to support vector images on old devices: VectorDrawableCompat.create(context.getResources(), resId, context.getTheme()); But it doesn't work at this moment (I installed few updates for Android Studio 2.1.1) My gradle: apply plugin:…
Denis Sologub
  • 7,277
  • 11
  • 56
  • 123
1
vote
1 answer

What is compatibility behaviours in android?

While I was reading documentation of targetSDKVersion, I have come through a term i.e. "Compatibility behaviours". An integer designating the API Level that the application targets. If not set, the default value equals that given to…
Bharat Dodeja
  • 1,137
  • 16
  • 22
1
vote
0 answers

Floating Action Button from support library custom animation (pre lollipop)

I add rotate animation to simulate circular progress bar for time consuming operations started by FAB. It working nicely on Lollipop, but animation does not start on KitKat. Any glue? Thanks. compileSdkVersion 23 buildToolsVersion '23.0.2'…
1
vote
2 answers

Android resource not found on some devices

Have an issue when running an app built with android studio (2.0 p4) on a Note 5. To clarify this works perfectly on emulator and other devices. The app in the example is just the default "empty" app, having the exact same error as the app we are…
Okku
  • 1,167
  • 1
  • 13
  • 23
1
vote
1 answer

Android M CDD - runtime permissions requirements

Can someone please help me understand the following CDD requirement: MUST NOT grant any runtime permissions to preinstalled apps unless: the user's consent can be obtained before the application uses it the runtime permissions are associated with…
Sai
  • 2,089
  • 3
  • 19
  • 30
1
vote
1 answer

Does DefaultHttpClient still work running on Android 6?

Leaving target on API22 and running the app on Android 6 platform device, I see that DefaultHttpClient is still working, even though it isnt supported by the new platform. How is it possible, does it work in a compatibility mode?
1
vote
0 answers

How to resolve android.view.InflateException ? Works fine on Lollipop but not on other versions

I made my First App and during the process I tested the app only on a lollipop API23 device. Now I'm trying to run the same app on jellybean but it crashes there with 09-28 16:46:44.507 9517-9517/? E/AndroidRuntime﹕ FATAL EXCEPTION:…
Zeeshan
  • 11
  • 2
1
vote
0 answers

Android material bottomsheet example

I would like to implement a bottom sheet layout in my android app as per the new design guidelines, however I cant find any info anywhere to do this natively, has anyone done this in their app using android studio that could point me in the right…
1
vote
0 answers

Material theme backwards compatibility

From the official doc I learned that it's not yet possible to create Material design apps for older APIs. Does anyone know whether it will ever be possible to have the same Material look on all devices? Links would be great. Thanks.