InterviewSolution
Saved Bookmarks
| 1. |
Suppose if I want to change menu Item at runtime what approach I should follow? |
|
Answer» In Android, applications cannot ACCESS the data of other application. For sharing data between two applications, we need to provide PERMISSIONS. Here we have to provide permission on both side:
There are many scenarios where we want other application can read our application data but can not change it. Or sometimes we are providing them access to modify our application data. In your SCENARIO, we can provide read permission “android:readPermission” attribute in the provider so that GOOGLE CALENDAR read data from Gmail application. android:readPermission="com.android.GMAIL.calenderwithcontentpfonrovider.PERMISSION" |
|