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

Does anyone has the example of Content Provider

 
Ranch Hand
Posts: 643
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Does anyone have the simple code for content provider to use with database.
Code snippets with Manifest are welcome.


[AG: The problem boils down to Storing images in DB, another topic on same problem, closing this one]
 
Ranch Hand
Posts: 633
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
search in google you will get many examples like this
 
Sheriff
Posts: 9707
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
If you have android installed on your system, go to {installation_dir}\platforms\android-x.x\sample\SearchableDictionary application, this is a sample application which uses a Content Provider and database.

[Edit] The dictionary project is also available online here or you can see the Notepad Sample App...
 
chetan deol
Ranch Hand
Posts: 643
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Actually I wanted how to store the image using content provider I have tried the example they gave on developer.android.com
But there you have to use Media class.
I want to store in my own database which I have created and has the fields like string , integer.

Not able to understand the issue on androids official portal.
Here's the link.
Android issue

Thanks in advance.
    Bookmark Topic Watch Topic
  • New Topic