How to use fragments backport?

Can someone explain how I can use the reverse fragment port? I downloaded the compatibility package with the manager, but I cannot find the library that I have to link to my project in order to use fragments.

thanks

+4
source share
2 answers

In your SDK installation directory you will find extras/android/compatibility/v4/android-support-v4.jar . Add this to your libs/ project, and if you are an Eclipse user, add it to your build path.

+9
source

One thing. There is an error in the android bank "Stock v4", which is quite annoying - you cannot get the result of any activity launched from fragments, which makes it quite unsuitable for many problems. There is, however, a fixed version of the jar that solves the problem (as long as I think v5 is in place):

http://dev.polidea.pl/ext/android-support-v4-with-onActivityResult-fix.jar

And the problem is described here:

http://code.google.com/p/android/issues/detail?id=15394

+4
source

Source: https://habr.com/ru/post/1343443/


All Articles