According to this page:
http://developer.android.com/guide/topics/manifest/manifest-intro.html,
provider can have meta-data.
however, when I check providerInfo.metaData in attachInfo() function
of a derived provider class, it is always null?

is this a bug is android SDK 7?

public class MyProvider extends ContentProvider {
..

public void attachInfo(Context context, ProviderInfo info) {
           super.attachInfo(context, info);

           Bundle bundle2 = info.metaData;      

         However,  bundle2 is always null here.


here is my manifest xml file:

<provider android:name="MyProvider"  android:authorities="com.xxxx..MyProvider">
  <meta-data android:name="varNme" android:value="xyzzxzxz" />
</provider>

thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to