I’ve got a project written for API 11 and up, no I need it available for 2.3.3 OS devices either, so need to use Support Library. What is the easiest way to go with it? I know some methods have different names for Fragments, for instance. Can it be possible to use “Find and Replace All”?
I’ve got a project written for API 11 and up, no I need it
Share
For the most part, yes it will be possible. You’ll also have to change less than you think, for example the
Fragmentclass is fine.You will have to change
getFragmentManagertogetSupportFragmentManager, as well as changing your baseActivityto aFragmentActivity. Those are the most common two off the top of my head.The easiest way is to change the target to 2.2, add the support-package as a library, and see what breaks and then fix it– and once you have a replacement fix you can use find and replace all to fix all instances of the issue.