https://github.com/heysupratim/userdictionary
Hands on with the content provider of user Dictionary and getting the list of user saved words with their frequency
https://github.com/heysupratim/userdictionary
Last synced: about 2 months ago
JSON representation
Hands on with the content provider of user Dictionary and getting the list of user saved words with their frequency
- Host: GitHub
- URL: https://github.com/heysupratim/userdictionary
- Owner: heysupratim
- Created: 2015-03-01T08:10:54.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-01T09:53:37.000Z (about 10 years ago)
- Last Synced: 2025-02-09T18:18:06.012Z (4 months ago)
- Language: Java
- Size: 270 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# User-Dictionary
Hands on with the content provider of user Dictionary and getting the list of user saved words with their frequencyThings learnt
1. Content Providers - standard android content providers
2. Content URIS -content://Content_Authority/data - eg content://user_dictionary/words here the user_dictionary is the content authrority and words is the data source
3. Getting a content Resolver - using getContentResolver
4. Doing a query on the resolver- using resolver.query(CONTENT_URI,null,null,null,null) - this resolver talks to the content provider and talks to the database/data source
5. Simple Cursor Adapter to be initialized with the context of the app , layout of the textview of each listview item and the cursor to be used , the string array from which we get the columns to be mapped , to the int array of values to be assigned )