With the addition of fragments into JellyBean how do you go about designing for all platforms? Do you make two different versions of the same app? One with fragments one without? I find fragments extremely useful but I know I and a lot of other people still run android 2.3. What is your opinion on this matter?
How to design for all platforms (discussion)
Page 1 of 14 Replies - 346 Views - Last Post: 29 September 2012 - 11:15 AM
Replies To: How to design for all platforms (discussion)
#2
Re: How to design for all platforms (discussion)
Posted 29 September 2012 - 10:23 AM
Fragments were added in android 3.0. There is no need to make two different versions of the same app because google has released a support library that allows you to use fragments on android 1.6+ along with all the following:
• Fragment
• FragmentManager
• FragmentTransaction
• ListFragment
• DialogFragment
• LoaderManager
• Loader
• AsyncTaskLoader
• CursorLoader
Here is a link to it: http://developer.and...rt-library.html
• Fragment
• FragmentManager
• FragmentTransaction
• ListFragment
• DialogFragment
• LoaderManager
• Loader
• AsyncTaskLoader
• CursorLoader
Here is a link to it: http://developer.and...rt-library.html
#3
Re: How to design for all platforms (discussion)
Posted 29 September 2012 - 10:34 AM
I clearly missed something but I have all the support libraries installed and in my build path but I still cant run my app on my 2.3 device but it works fine on the 4.1 emulator
#4
Re: How to design for all platforms (discussion)
Posted 29 September 2012 - 10:39 AM
you must not be using the support libraries in your imports then.You should be using import android.support.v4.app.* for your imports for fragments where * is fragment, fragment manager, etc...
This link will show you how to use the support library: http://mobile.tutspl...with-fragments/
This link will show you how to use the support library: http://mobile.tutspl...with-fragments/
#5
Re: How to design for all platforms (discussion)
Posted 29 September 2012 - 11:15 AM
Thanks you just blew my mind with that lol. Worked perfect after a little trial and error. Thanks for all your help.
Page 1 of 1
|
|

New Topic/Question
Reply


MultiQuote




|