Android Bug/Architectural Issue: How do I handle multiple versions of my own Content Provider?

by whitemice » Thu, 08 Jan 2009 23:18:16 GMT


Sponsored Links
 Ie blogged this question with pictures here:
 http://tinyurl.com/9hwdva 

I am writing a component that makes certain functionality available to
any application running on an Android device (e.g. an advertising
service, stock ticker cache, Snowball server, etc).

This functionality is useful for application developers, but not
interesting to actual users i.e. my component should be included as
part of a new application, but not require the end user to explicitly
install the additional component themselves.

I expect that over time multiple applications installed on the phone
will want to communicate with my component.  As each new application
will have a different certificate, I want to communicate between
applications using an Android Content Provider.  To save resources on
the device (networking, caching, etc) only one instance of my
component should be appointed to handle all queries.

This works well as Android only registers the first Content Provider
for a given URI and then ignores the rest (throwing an ARN/
PackageManager: Skipping provider name xxxx name already usederror
each time a new one is installed).

However if the registered Content Provider is uninstalled, it will
immediately break all the other applications that rely on it, even
though other instances of the component still exist.

Questions:
- Does anyone have any suggestions on how to better handle this
situation?
- If I could reregister Content Providers I could handle situations
like this, and upgrade components when newer versions are installed.
Perhaps the Android OS could also handle this situation better, by
tracking Content Provider naming collisions?
- Should I be looking at other communication methods to solve this
issue?


--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. help with MultiAutoCompleteTextView.

hi all,

i have programmed for MultiAutoCompleteTextView. but the only problem i have
is that the constraint in my CursorAdapter is not recognizing single
characters, wen i enter more than 1 character of the word, i get the auto
complete list.

any suggestions.
tell me if i need to elaborate.

thanks in advance.

--~--~---------~--~----~------------~-------~--~----~

2. Animated window transitions in Android 1.5

in android 1.5 release notes I saw Animated window transitions .

What is this all about ?

IN my application i want to show trasitions if i go from one activity
to other.We can set the animation for both activities and call when
one is closing and other is opening.

But problem is when , the current animation will stop when the
onCreate of next activity is called ?

Means , when activity is pushed to stack , ongoing animation is
stopped. Because of this we cannot show a smooth transition effect
between activities

Is it possible in android ?

Thanks
abhijith

--~--~---------~--~----~------------~-------~--~----~

3. Android built in Email application can not send attachment which type is not image/* or video/*?

4. concurrent audio playbacks through MIO

5. How to cancel google account in the device?

6. Need help to know Binder mechanism to use it as a Linux message queue

7. iPod videos streaming