4 Replies - 411 Views - Last Post: 29 September 2012 - 11:15 AM

#1 blankwall  Icon User is offline

  • D.I.C Head

Reputation: 5
  • View blog
  • Posts: 65
  • Joined: 12-July 12

How to design for all platforms (discussion)

Posted 29 September 2012 - 09:46 AM

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?
Is This A Good Question/Topic? 0
  • +

Replies To: How to design for all platforms (discussion)

#2 H3R3T1C  Icon User is offline

  • Android Expert
  • member icon

Reputation: 276
  • View blog
  • Posts: 757
  • Joined: 30-March 07

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
Was This Post Helpful? 1
  • +
  • -

#3 blankwall  Icon User is offline

  • D.I.C Head

Reputation: 5
  • View blog
  • Posts: 65
  • Joined: 12-July 12

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
Was This Post Helpful? 0
  • +
  • -

#4 H3R3T1C  Icon User is offline

  • Android Expert
  • member icon

Reputation: 276
  • View blog
  • Posts: 757
  • Joined: 30-March 07

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/
Was This Post Helpful? 1
  • +
  • -

#5 blankwall  Icon User is offline

  • D.I.C Head

Reputation: 5
  • View blog
  • Posts: 65
  • Joined: 12-July 12

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.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1