I done a bit on authenticating using Google web toolkit about a year ago, it
might be slightly different when doing it through Android but I'd imagine it
would be fairly similiar

you can read about how I authenticated with GWT on my website here -
http://www.riad-donal-rafferty.com/portfolioGWT.html

Be aware that this isn't the most secure way to authenticate.

Also the code isn't formated on the website, you may want to copy and paste
it into an editor

Hope it helps

On Wed, Jan 6, 2010 at 3:17 PM, manoj <manojkumar.m...@gmail.com> wrote:

> hi can you please suggest me how to authenticate?
>
> it would be helpful.
>
> Thanks,
> Manoj.
>
> On Jan 6, 7:47 pm, Donal Rafferty <draf...@gmail.com> wrote:
> > You appear to be doing something via Googles Gdata with there gmail, how
> are
> > you accessing the video files?
> >
> > When using gdata you are required to authenthicate, are you doing this?
> >
> > On Wed, Jan 6, 2010 at 2:39 PM, manoj <manojkumar.m...@gmail.com> wrote:
> > > Hi all,
> >
> > > I have written a player application which plays video files (links).
> >
> > > I tested the app on G1. It is working fine, but when I tested the app
> > > on Droid, I got the following log messages.
> >
> > > actually I tried to launch my app when i had a video file as a
> > > attachment. My app launched but not played.
> >
> > > here is the log I got:
> >
> > > 1-06 15:13:40.530: ERROR/DatabaseUtils(1229):
> > > java.lang.SecurityException: Permission Denial: reading
> > > com.google.android.providers.gmail.MailProvider uri
> > > content://gmail-ls/messages/pieter.born%
> > > 40gmail.com/275/attachments/0.0/BEST/false
> > > from pid=1512, uid=10049 requires
> > > com.google.android.providers.gmail.permission.READ_GMAIL
> > > 01-06 15:13:40.530: ERROR/DatabaseUtils(1229):     at
> > > android.content.ContentProvider$Transport.enforceReadPermission
> > > (ContentProvider.java:240)
> > > 01-06 15:13:40.530: ERROR/DatabaseUtils(1229):     at
> > > android.content.ContentProvider$Transport.openAssetFile
> > > (ContentProvider.java:193)
> > > 01-06 15:13:40.530: ERROR/DatabaseUtils(1229):     at
> > > android.content.ContentProviderNative.onTransact
> > > (ContentProviderNative.java:228)
> > > 01-06 15:13:40.530: ERROR/DatabaseUtils(1229):     at
> > > android.os.Binder.execTransact(Binder.java:287)
> > > 01-06 15:13:40.530: ERROR/DatabaseUtils(1229):     at
> > > dalvik.system.NativeStart.run(Native Method)
> > > 01-06 15:13:40.553: DEBUG/MediaPlayer(1512): Couldn't open file on
> > > client side, trying server side
> > > 01-06 15:13:40.553: DEBUG/ActivityManager(1165):
> > > checkComponentPermission() adjusting {pid,uid} to {1059,1013}
> > > 01-06 15:13:40.553: ERROR/DatabaseUtils(1229): Writing exception to
> > > parcel
> > > 01-06 15:13:40.553: ERROR/DatabaseUtils(1229):
> > > java.lang.SecurityException: Permission Denial: reading
> > > com.google.android.providers.gmail.MailProvider uri
> > > content://gmail-ls/messages/pieter.born%
> > > 40gmail.com/275/attachments/0.0/BEST/false
> > > from pid=1165, uid=1000 requires
> > > com.google.android.providers.gmail.permission.READ_GMAIL
> > > 01-06 15:13:40.553: ERROR/DatabaseUtils(1229):     at
> > > android.content.ContentProvider$Transport.enforceReadPermission
> > > (ContentProvider.java:240)
> > > 01-06 15:13:40.553: ERROR/DatabaseUtils(1229):     at
> > > android.content.ContentProvider$Transport.openFile
> > > (ContentProvider.java:186)
> > > 01-06 15:13:40.553: ERROR/DatabaseUtils(1229):     at
> > > android.content.ContentProviderNative.onTransact
> > > (ContentProviderNative.java:209)
> > > 01-06 15:13:40.553: ERROR/DatabaseUtils(1229):     at
> > > android.os.Binder.execTransact(Binder.java:287)
> > > 01-06 15:13:40.553: ERROR/DatabaseUtils(1229):     at
> > > dalvik.system.NativeStart.run(Native Method)
> > > 01-06 15:13:40.561: DEBUG/(1059): openContentUri(content://gmail-ls/
> > > messages/pieter.born%40gmail.com/275/attachments/0.0/BEST/false)
> > > caught exception -1
> > > 01-06 15:13:40.561: ERROR/MediaPlayerService(1059): Couldn't open fd
> > > for content://gmail-ls/messages/pieter.born%
> > > 40gmail.com/275/attachments/0.0/BEST/false
> > > 01-06 
> > > <http://40gmail.com/275/attachments/0.0/BEST/false%0A01-06>15:13:40.569:
> ERROR/MediaPlayer(1512): Unable to to create media
> > > player
> > > 01-06 15:13:40.678: WARN/VideoView(1512): Unable to open content:
> > > content://gmail-ls/messages/pieter.born%
> > > 40gmail.com/275/attachments/0.0/BEST/false
> > > 01-06 
> > > <http://40gmail.com/275/attachments/0.0/BEST/false%0A01-06>15:13:40.678:
> WARN/VideoView(1512): java.io.IOException:
> > > setDataSource failed.: status=0x80000000
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at
> > > android.media.MediaPlayer.setDataSource(Native Method)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at
> > > android.media.MediaPlayer.setDataSource(MediaPlayer.java:699)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at
> > > android.widget.VideoView.openVideo(VideoView.java:212)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at
> > > android.widget.VideoView.access$2000(VideoView.java:49)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at
> > > android.widget.VideoView$6.surfaceCreated(VideoView.java:459)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at
> > > android.view.SurfaceView.updateWindow(SurfaceView.java:454)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at
> > > android.view.SurfaceView.dispatchDraw(SurfaceView.java:287)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at android.view.View.draw
> > > (View.java:6539)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at
> > > android.view.SurfaceView.draw(SurfaceView.java:273)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at
> > > android.view.ViewGroup.drawChild(ViewGroup.java:1526)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at
> > > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1256)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at android.view.View.draw
> > > (View.java:6539)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at
> > > android.view.ViewGroup.drawChild(ViewGroup.java:1526)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at
> > > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1256)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at android.view.View.draw
> > > (View.java:6539)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at
> > > android.widget.FrameLayout.draw(FrameLayout.java:352)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at
> > > android.view.ViewGroup.drawChild(ViewGroup.java:1526)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at
> > > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1256)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at android.view.View.draw
> > > (View.java:6539)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at
> > > android.widget.FrameLayout.draw(FrameLayout.java:352)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at
> > > com.android.internal.policy.impl.PhoneWindow$DecorView.draw
> > > (PhoneWindow.java:1830)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at
> > > android.view.ViewRoot.draw(ViewRoot.java:1348)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at
> > > android.view.ViewRoot.performTraversals(ViewRoot.java:1113)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at
> > > android.view.ViewRoot.handleMessage(ViewRoot.java:1632)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at
> > > android.os.Handler.dispatchMessage(Handler.java:99)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at android.os.Looper.loop
> > > (Looper.java:123)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at
> > > android.app.ActivityThread.main(ActivityThread.java:4310)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at
> > > java.lang.reflect.Method.invokeNative(Native Method)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at
> > > java.lang.reflect.Method.invoke(Method.java:521)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at
> > > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
> > > (ZygoteInit.java:860)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at
> > > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
> > > 01-06 15:13:40.678: WARN/VideoView(1512):     at
> > > dalvik.system.NativeStart.main(Native Method)
> > > 01-06 15:13:40.678: DEBUG/VideoView(1512): Error: 1,0
> >
> > > Basically, what I am thinking is to add the new permission:
> > > com.google.android.providers.gmail.permission.READ_GMAIL
> >
> > > but I dont know how. Please any one help me.
> >
> > > Thanks,
> > > Manoj.
> >
> > > --
> > > 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<android-developers%2bunsubscr...@googlegroups.com>
> <android-developers%2bunsubscr...@googlegroups.com<android-developers%252bunsubscr...@googlegroups.com>
> >
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> --
> 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<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
-- 
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