I can't see an easy way of doing what you want, as the remote view is not 
running in the same process as your content provider.

Maybe you could use aidl but that would still leave you with an "exposed" 
external interface.

On Saturday, August 4, 2012 3:35:26 PM UTC+1, NickL wrote:
>
> Error accessing content provider in RemoteViewService
>
>  Hi,
>
> I'm trying to build a home screen widget for my app and I am using 
> stackview, remoteviewservice. In the RemoteViewsService, I need to query 
> the content provider. My cotent provider is set exported=false. However, 
> when I want to add the widget on screen, I get this error
> java.lang.SecurityException: Permission Denial: reading 
> com.xxx.android.provider.yyyContentProvider uri 
> content://*com.zzz.an*<http://com.zzz.an/>
> *
> *
> If I set the provider to exported=true, it works well. But I don't want 
> this solution. Anyone can helps me? 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