Related with Android compatibility issues.
Questions tagged [android-compatibility]
147 questions
148
votes
4 answers
Difference between android-support-v7-appcompat and android-support-v4
I wanted to know the difference between android-support-v4.jar
and android-support-v7-appcompat.jar. If I want to add appcompat Action Bar in my application do I need to add both android-support-v7-appcompat.jar and android-support-v4.jar or only…

Tarun
- 13,727
- 8
- 42
- 57
96
votes
17 answers
Using android vector Drawables on pre Lollipop crash
I'm using vector drawables in android prior to Lollipop and these are of some of my libraries and tool versions:
Android Studio : 2.0
Android Gradle Plugin : 2.0.0
Build Tools : 23.0.2
Android Support Library : 23.3.0
I added this property in…

Behzad Bahmanyar
- 6,195
- 4
- 35
- 41
70
votes
6 answers
reusing fragments in a fragmentpageradapter
I have a viewpager that pages through fragments. My FragmentPagerAdapter subclass creates a new fragment in the getItem method which seems wasteful. Is there a FragmentPagerAdapter equivalent to the convertView in the listAdapter that will enable me…

jwanga
- 4,166
- 4
- 26
- 27
65
votes
6 answers
How to determine fragment restored from backstack
Been searching for this issue for a while to no avail now:
How to determine fragment is being restored from backstack?
I'm using the compatibility library and a ListFragment inside a FragmentActivity. When an item inside ListFragment is selected, a…

dvd
- 1,470
- 1
- 16
- 24
44
votes
1 answer
What is LinearLayoutCompat in appCompat v7?
In the support library appCompat v7 of the Android platform, there is a android.support.v7.widget.LinearLayoutCompat class.
Does someone know why this class exist? The original LinearLayout class exist since API level 1 so I don't understand why…

ol_v_er
- 27,094
- 6
- 48
- 61
31
votes
6 answers
Android Support Package / Compatibility Library - use v4 or v13?
I've just read this description of the Android Support Package / Compatibility Library...
http://developer.android.com/sdk/compatibility-library.html
... and it's left me a little confused! It says that the v13 library is a superset of v4 but I…

Adil Hussain
- 30,049
- 21
- 112
- 147
28
votes
2 answers
ObjectAnimator in API Level < 11
So I'm getting really frustrated with android and the fact half the stuff doesn't work when you roll back the API Level past 11. Why isn't it easy and well done like iOS?!
The Problem
I am using ObjectAnimators to animate the transitioning between…

StuStirling
- 15,601
- 23
- 93
- 150
20
votes
1 answer
Android, what is equivalent class of DrawerLayout when not using support library?
Since my minimum SDK version is 14, I don't want to add support library to my application.
Based on what Android says on DrawerLayout page, this view group is defined in support library (android.support.v4.widget).
Is there any equivalent class of…

Hesam
- 52,260
- 74
- 224
- 365
17
votes
3 answers
Turn on hardware acceleration if available (such Android 3+) with Android APK 2.2
I developed a application for Android 3.0, and it's runs perfectly well, but the client insist on compatibility with 2.2 devices.
Disabling hardware acceleration, using Android Compatibility Package, a NIO-backport support (For tasks and executors)…

Marcos Vasconcelos
- 18,136
- 30
- 106
- 167
15
votes
4 answers
Detecting thumb position in SeekBar prior to API version 16
Basically, I need to detect when the progress changes in the SeekBar and draw a text view on top of the thumb indicating the progress value.
I do this by implementing a OnSeekBarChangeListener
and on the public void onProgressChanged(SeekBar…

Henrique
- 4,921
- 6
- 36
- 61
14
votes
3 answers
Usage of ?android:attr/ in backwards compatible apps
I'm trying to make my ICS (API level 15) app compatible with Gingerbread (API level 10), and I'm getting InflateException Error inflating class for any layout XML that has an ?android:attr/ attribute. If I comment out these attributes I…

dsample
- 444
- 1
- 4
- 14
13
votes
1 answer
Optimizing Android manifest file for largest number of supported devices
I am having issues getting my Manifest file to be compatible with a lot of the newer phones when I upload a new APK file and I don't understand why. I am testing it on a brand new HTC Evo V, but for whatever reason, that device won't show up in the…

iwasrobbed
- 46,496
- 21
- 150
- 195
12
votes
2 answers
StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation: Lcom/android/org/conscrypt/ConscryptEngineSocket;->setHostname(
I have following Error in Google Play before app publish. It is not a warning but an error. I can see warnings with similar stack trace. I am not sure if the app will be rejected because of these because the summary of the Pre-launch report is…

Manish Haldankar
- 121
- 1
- 3
10
votes
1 answer
Can I use a actionLayout on the overflow menu of android.support.v7.widget.Toolbar?
I'm trying to use a SwitchCompat widget on the overflow menu of android.support.v7.widget.Toolbar but I just can't get it to work, it always appears blank.
Here is my menu definition:
10
votes
3 answers
How to make my website mobile and tablet compatible?
I want to make my existing website automatically adjust itself when viewed either on mobiles, tablets, or even when you adjust your screen on a desktop.
Failing that, if it's too difficult, what suggestions do you have?? I basically want an ipad…

Darron Donaldson
- 291
- 1
- 2
- 15