• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What is Support Librarys in Android?

 
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there

I want to know what is support library in android?

I am try to use CalendarView in android app My MinimumSDK version is 8 and it shows a Warning that minimum support level is 11.

What it actually mean that I should change my minimumSDK to 11 or is there any way that CalendarView can run on my current mimimum API level which is 9?


I also want to know what is difference between android-support-api-compact7 and app-compact7?

Thanks
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The support library is a collection of additional classes for the Android API developed by Google; they're all in the "android.support" package hierarchy. You can obtain it through the SDK tool "android", where you also get all your other SDK and tool updates. Initially it was a backport of some newer Android classes to older API levels, but these days it contains all kinds of goodies.

There is no backport of the android.widget.CalendarView class to API levels before 11, though, so you can't use it on Android 2.x. If you search on the net, I'm sure there are 3rd party calendar widgets that do support it, though.
 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ulf

What is difference between "android-support-v7-appcompact" and "appcompact-v7"?
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's probably the same. "appcompat" is one of the 3 parts of the v7 support library. There are 3 support libraries: v4, v7 and v13, with the numbers referring to the minimum API level they support. If you download the support library and look at its directory structure and contents, all this should make sense.
 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One More Question


I am making a Calendar Application which will display some Events on some Specific Dates.I have 2 approach.

1)Using CalendarProvider API for Insert,query,delete on Calendar Events
2)Using GridView Describe in this Thread http://stackoverflow.com/questions/13002009/how-to-add-icon-or-change-calendarviews-day-icon

My Data of Specific Date will come as a Form of JSON which I will display or Parse

Which one is Best in above two

Thanks
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't see how the two are alternatives to one another - to the contrary, they're orthogonal. #1 is about storing data in the calendar DB (not about display), whereas #2 is about displaying data (but not storing it).

Where the data comes from, and in which format, is irrelevant.
 
reply
    Bookmark Topic Watch Topic
  • New Topic