Related with Android compatibility issues.
Questions tagged [android-compatibility]
147 questions
10
votes
8 answers
visual indication of over scroll in android
I am trying to add some visual indication, that there are no more pages in the desired fling direction in the ViewPager. However I am struggling to find a place, where to put relevant code.
I have tried extending ViewPager class with following code,…

ekramus
- 101
- 1
- 4
10
votes
1 answer
GridLayout from support library does not show 2 rows on Android 2, onChildVisibilityChanged Error
Has anybody gotten the support library to render a grid layout correctly in Android 2? Instead of 2 rows and columns I get a single row on the screen and see this error in the logcat output:
Android GridLayout Could not find method…

Beth Mezias
- 270
- 3
- 13
9
votes
2 answers
Accessing NMEA on Android API level < 24 when compiled for target API level 29?
I just tried updating the target and compile API level of our app to 29 (Android 10) and noticed that I cannot compile any more because LocationManager.addNmeaListener only accepts OnNmeaMessageListener (introduced with API level 24) instead of the…

Sebastian Staacks
- 317
- 2
- 10
8
votes
1 answer
Is using ActionBarSherlock still necessary?
Up until earlier today, I was under the impression that if I wanted to use ActionBar on devices lower than SDK version 11, I would need to use ABS. But, after looking at some questions on SO here, I came upon this:…

Davek804
- 2,804
- 4
- 26
- 55
8
votes
2 answers
How to get "?android:attr/actionBarSize" with Compatibility Library
I'm trying to use Fragments and ActionBar in a Android 2.2 project. There is some error when using "?android:attr/actionBarSize", how to get and set that value correctly?
Example:

flapjack
- 704
- 1
- 8
- 13
7
votes
3 answers
Gradle conflict when using admob 15.0.0 with the lastest support library
I am using 'com.google.android.gms:play-services-ads:12.0.1'.
and android support version 27.1.1.
when I try to upgrade my ads library to the latest (15.0.0) I get an error saying that I must use the same version specification. See image…

Angel Koh
- 12,479
- 7
- 64
- 91
7
votes
2 answers
onCreateContextMenu() for EditText doesn't work on real device
Just tried to test my app on real device (HTC Desire Z with Android 2.2). And found that my context menus doesn't work at all on EditTexts. Otherwise context menus works: in ListView, ImageView and so on. On emulator everything works fine...
When I…

Barmaley
- 16,638
- 18
- 73
- 146
7
votes
2 answers
Appcompat, compatibility, and support libraries for Lollipop if minimum SDK = 14
We have an existing Android app that supports API Level 8 up to 18. We used compatibility libraries 19.1.0. Now we are changing/upgrading to:
Minimum SDK = 14
Target = android-22
Now given that there are v4, v7, v13 support, compatibility, and…

Dynameyes
- 435
- 5
- 15
7
votes
3 answers
how to work around change in list item layout behavior change between sdk 17 and 18?
I've created a simple app to illustrate a change in how LinearLayout behaves when wrapped in a RelativeLayout between SDK 17 and SDK 18. First, screenshots:
When targetSdkVersion is "17":
When targetSdkVersion is "18":
The layout for this…

jph
- 2,181
- 3
- 30
- 55
6
votes
4 answers
android-support-v4 error generated with R.java being erased
ok, steps im following.
1-create new project from existing source
2-select Android\android-sdk\extras\android\compatibility\v4\samples\Support4Demos
3-finish
So, my beautiful eclipse creates the project but he erase the R.java class from gen so i…

pata
- 959
- 2
- 18
- 35
6
votes
1 answer
AppCompatActivity vs AppCompatDelegate
Recently I discovered what is AppCompatDelegate so a natural question arises - is it worse than using AppCompatActivity or do they have their differences and what are they?

Necroqubus
- 331
- 2
- 18
6
votes
2 answers
Better to use FragmentActivity (or ActionBarActivity) or system Activity when targeting min API 14 (ICS)?
I'm making my app to have minimum Android version of 4.0 (ICS, API level 14).
First I guessed that I can get rid of using FragmentActivity as the base class for the activities, but it seems that some support library classes like…

Randy Sugianto 'Yuku'
- 71,383
- 57
- 178
- 228
6
votes
10 answers
My App isn't Compatible with Nexus 7 on Google Playstore
Hii i have submitted an app to playstore but it isn't compatible with Nexus here is my Manifest
My App is on List of supported Devices in the Google Play
and when i check the same in the nexus device it is not at all visible on Search
…

Software Sainath
- 1,040
- 2
- 14
- 39
5
votes
2 answers
setRetainInstance not working for ListFragment when using compatibiltiy library
I'm attempting to save a ListFragment subclass across an orientation change so I added setRetainInstance(true) to the end of my onCreate function. I added an onSaveInstanceState method to add all of it's data to a bundle, then added code into…

rofer
- 1,211
- 2
- 12
- 16
5
votes
3 answers
App crashes on changing theme under styles
My Android App :
Target API:22
Min API:15
Device run on :API level 22
I don't understand this whole theme concept ,
In my manifest.xml ,I have set android:theme="@style/AppTheme"
and all activities use this theme
Now my understanding is that they…

Sainath S.R
- 3,074
- 9
- 41
- 72