Re: [android-developers] SecurityException in RemoteViewsService?

2012-08-06 Thread Kang Lu
This works for me. Thanks! On Saturday, August 4, 2012 11:20:51 PM UTC+8, Kostya Vasilyev wrote: I've run into this exact issue before. My fix was to add Binder.clearCallingIdentity() in my RemoteViewsService callbacks where I needed to access my non-exported provider. Now we're back from

Re: [android-developers] SecurityException in RemoteViewsService?

2012-08-06 Thread Kang Lu
a database column. On Saturday, August 4, 2012 10:56:29 PM UTC+8, Mark Murphy (a Commons Guy) wrote: On Sat, Aug 4, 2012 at 10:35 AM, NickL nicklongi...@gmail.com wrote: Error accessing content provider in RemoteViewService Hi, I'm trying to build a home screen widget for my app

[android-developers] SecurityException in RemoteViewsService?

2012-08-04 Thread NickL
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

Re: [android-developers] SecurityException in RemoteViewsService?

2012-08-04 Thread Mark Murphy
On Sat, Aug 4, 2012 at 10:35 AM, NickL nicklongi...@gmail.com 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

Re: [android-developers] SecurityException in RemoteViewsService?

2012-08-04 Thread Kostya Vasilyev
I've run into this exact issue before. My fix was to add Binder.clearCallingIdentity() in my RemoteViewsService callbacks where I needed to access my non-exported provider. Now we're back from the launcher's identity to the identity of the app's process, where access is allowed. It fit into the

Re: [android-developers] SecurityException in RemoteViewsService?

2012-08-04 Thread NickL
The error happened when I call mResolver.query(Abc.CONTENT_URI, null, null, null, null); in onDataSetChanged(). Does that help? On Saturday, August 4, 2012 11:20:51 AM UTC-4, Kostya Vasilyev wrote: I've run into this exact issue before. My fix was to add Binder.clearCallingIdentity()

Re: [android-developers] SecurityException in RemoteViewsService?

2012-08-04 Thread Mark Murphy
On Sat, Aug 4, 2012 at 11:47 AM, NickL nicklongi...@gmail.com wrote: The error happened when I call mResolver.query(Abc.CONTENT_URI, null, null, null, null); in onDataSetChanged(). Does that help? This suggests that, for some reason, your app widget is in a different application than is your

Re: [android-developers] SecurityException in RemoteViewsService?

2012-08-04 Thread Kostya Vasilyev
04.08.2012 19:54 пользователь Mark Murphy mmur...@commonsware.com написал: On Sat, Aug 4, 2012 at 11:47 AM, NickL nicklongi...@gmail.com wrote: The error happened when I call mResolver.query(Abc.CONTENT_URI, null, null, null, null); in onDataSetChanged(). Does that help? This suggests

Re: [android-developers] SecurityException in RemoteViewsService?

2012-08-04 Thread Kostya Vasilyev
Does it help who? The snippet I posted above -- with a fix for this issue I'm using in my app -- shows an extract from my onDataSetChanged, exactly. 04.08.2012 19:48 пользователь NickL nicklongi...@gmail.com написал: The error happened when I call mResolver.query(Abc.CONTENT_URI, null, null,