Related with Android compatibility issues.
Questions tagged [android-compatibility]
147 questions
5
votes
2 answers
LinearLayout with dividers on pre Honeycomb
From API level 11 setDividerDrawable() and setShowDividers() was introduced on LinearLayout, enabling the linear layout to show dividers between child elements. I would really like to use this feature, but I am also targeting devices before…

foens
- 8,642
- 2
- 36
- 48
4
votes
0 answers
ViewPager's fragments seem to bet detached?
I have 3 fragments in a viewpager (using compatibility library), the first one is shown when the app loads.
the 2nd and 3rd pages are a bit CPU intensive, so I would like to load their content only when user swipes to them first.
for this I have…

materemias
- 131
- 1
- 2
- 7
4
votes
3 answers
Unable to resolve FragmentActivity running on Android 2.3.3 with compatibility package v4
I'm building a simple hello world app to learn about the Android Compatibility Package. I'm able to get the app to run on the 3.2 emulator but when I run it on a 2.3.3 emulator I get
10-12 11:36:14.474: WARN/dalvikvm(469): Unable to resolve…

JJohnson
- 901
- 2
- 9
- 16
4
votes
1 answer
Canvas clipOutRect compatibility in AndroidX
I recently came across the deprecation of clipRect(Rect,Region.Op), which I would like to use with DIFFERENCE. This was replaced with clipOutRect(Rect) and thus I implemented:
@Suppress("DEPRECATION")
fun clipOutRect(canvas: Canvas, rect: Rect) =
…

tynn
- 38,113
- 8
- 108
- 143
4
votes
2 answers
Does every Android device contains all previous SDK versions?
I'm just wondering, if the latest Android SDK installed on a device contains code of all the previous versions as well?
So if I target API level 10 in my app and install it on a device with Lollipop, will it just take and use Gingerbread SDK exactly…

Marcel Bro
- 4,907
- 4
- 43
- 70
4
votes
2 answers
How to clean back stack on Android API 10 (Android 2.3.3)
I would like to know how can I clean all previous activities of the stack (except the new one), but I want that in Android API 10 (Android 2.3.3).
Guided with this answer, I know it is not directly possible because the flag dedicated to do that…

Jorge Gil
- 4,265
- 5
- 38
- 57
4
votes
1 answer
Setting Position of View in API Level 7 Programmatically
At the moment I am trying to set the position of my programmatically created view using the following code:
LayoutParams params = bottomBar.getLayoutParams();
params.height = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,(float) 5,…

StuStirling
- 15,601
- 23
- 93
- 150
3
votes
0 answers
Remove Tab from Fragment Tabs Pager example
I'm trying to use the Fragment Tabs Pager example:
API 4+ Support Demos/Fragment Tabs Pager and add the abillity to delete a tab, because I need to be able to add and remove tabs.
I've tried:
public void removeTab(int position) {
…

user1041215
- 31
- 4
3
votes
2 answers
Adding app feature from Ice Cream Sandwich
I want to add a new feature to my app that was introduced in ICS but I still want people with 2.x,3.x to be able to access the app because if I change the targeted API version phones below the API version wont be able to download it in the market…

tyczj
- 71,600
- 54
- 194
- 296
3
votes
1 answer
This app is not available for any of your devices Playstore App Issue
I have created a barcode reader application with the following Permissions in Android Manifest. When First time my application is live in playstore it showing "This app is not available for any of your devices". But i have used the same device to…

Mithun S
- 408
- 8
- 20
3
votes
0 answers
How do I show a blank screen with a message on my app launch instead of splashscreen on tablets?
I am planning to restrict my app to tablets but in the sense that I don't want to add compatibility screen etc. options in manifest. Currently, on app launch my manifest has a splashscreenactivity which launches for about 3 seconds then moves on to…
user2386226
3
votes
2 answers
where should incompatibilities with different android devices be reported?
i developed a home screen widget. the first release was tested on a nexus one, htc evo 4g and motorola droid. worked fine. after release in the android market, someone reported that it didn't work on a samsung fascinate (galaxy s). it turns out…

jason gilbert
- 163
- 1
- 1
- 7
3
votes
1 answer
StackOverflowError and I can't figure out why
I've had the following crash reported only once by a particular user on Android 4.0.3. I see no references in the stack tract to my code and I'm wondering if anyone has any ideas regarding what could be causing this issue?
Obviously, not the…

NSouth
- 5,067
- 7
- 48
- 83
3
votes
2 answers
AndroidHttpClient and HttpGet API deprecated in Android 6.0 Marshmallow (API 23)
Today I have updated android SDK API 23.
As soon as I have changed my project to target Android SDK API 23, I started to get an error regarding Apache's client and AndroidHttpClient API in eclipse.
Apache library API can no longer be found in API…

Ajit Kumar Dubey
- 1,383
- 1
- 19
- 33