My favorites | Sign in
Project Logo
                
Search
for
Updated Feb 28, 2008 by peli0101
CentralShoppingList  
A central shopping list that all applications can access.

For current progress see: CentralShoppingListDetails

CentralShoppingList

We have the shopping list... ...that you can use in your application.
Part of OpenIntents.apk samples/PresentPicker.apk

About the Shopping List

A shopping list for those who want to save money, not spend it.

Android Developer Challenge criteria

Our shopping list application will meet the following criteria of the Android Developer Challenge Terms and Conditions:

  1. Originality of concept: Admittedly, this part of OpenIntents is not very original: Hundreds of millions of people all around the world already use a shopping list.
  2. Effective use of the Android platform: We plan to implement the following functionality:
    • Your shopping list opens automatically when you are in one of your favorite shops (location based service).
    • You can scroll through long shopping lists by tilting your phone; you can remove marked items by shaking your phone (accelerometer).
    • Shopping lists can be synchronized with family members and friends (always-on networking).
  3. Polish and appeal: The shopping list will be skinnable and themeable. There will be a basic interface that grandma can use, and a deluxe interface for cutting-edge functionality that is fully customizable through add-ons.
  4. Indispensability: You will need it every week when you go shopping, and during the week when you notice something you want to add to the shopping list.
Additionally, we have:

  • Humanitarian benefits: Shopping lists reduce unnecessary shopping trips, thereby reducing gas consumption and CO2 emission and can help to slow down global warming.
  • Global economic development: A shopping list may not help the poorest, but it can help many poor families plan their expenses properly and safe money through online comparisons. Buying unnecessary items or items twice within a family can be avoided.
  • Environment: Thousands of trees may be saved from cutting down every year if electronic shopping lists are used instead of paper.

How to use the shopping list as a user

How to access the shopping list as a developer

  1. If you don't have it already, install the latest version of OpenIntents.apk on your mobile phone.
  2. Add the external JAR openintents-lib-n.n.n.jar into your project.
  3. Include the following code:
   // Initialize the convenience functions:
  Shopping.mContentResolver = getContentResolver();

  // create a new item 
  // (or get existing one if it exists already)
  long itemID = Shopping.getItem("apples");

  // get the default shopping list
  long listID = Shopping.getDefaultList();

  // put the item into the list
  Shopping.addItemToList(itemID, listID);

  // show the list
  Intent intent = new Intent(Intent.VIEW_ACTION, Shopping.Lists.CONTENT_URI);
  startActivity(intent);

The member functions defined in the provider class Shopping are convenience functions that communicate to the appropriate ContentProvider. You are free to access the ContentProviders directly as well.

Why should I use your shopping list instead of the one provided by insert vendor here?

Our shopping list is open source and free, and will stay free forever. You don't need to sign up or sign in anywhere, just download and use it.

You will not see any ads that you don't want to see. If you want, you can use the list like any other piece of paper. If you want, you can have your list search for special offers and coupons by your favorite shops on any items you have added.


Comment by andr...@cybohemia.com, Mar 19, 2008

Cool app!

When I click on "View Shopping List", I get an Application Error: org.openintents.samples.presentpicker

An error has occurred in org.openintents.samples.presentpicker. No activity found to handle Intent { action=android.intent.action.VIEW data=content://org.openintents.shopping/lists }.

Is this possibly a bug or did I maybe leave out something in the installation?

Thanks!

Comment by xsuo.endure, Jun 20, 2008

same problem


Sign in to add a comment
Hosted by Google Code