java - Android and Google Play: how to get / getting provider tag data? -
http://developer.android.com/guide/topics/manifest/provider-element.html:
<provider android:authorities="list" android:enabled=["true" | "false"] android:exported=["true" | "false"] android:granturipermissions=["true" | "false"] android:icon="drawable resource" android:initorder="integer" android:label="string resource" android:multiprocess=["true" | "false"] android:name="string" android:permission="string" android:process="string" android:readpermission="string" android:syncable=["true" | "false"] android:writepermission="string" > . . . </provider>
how can utilize java android:xyz data?
as far know can't access field, can utilize string resource:
values/strings.xml:
<string name="my_authority">com.example.some_authority</string>
manifest:
<provider android:authorities="@string/my_authority" </provider>
and in code:
getstring(r.string.my_authority)
java android google-play
No comments:
Post a Comment