nicolas2k / google-glass-api

Automatically exported from code.google.com/p/google-glass-api
1 stars 0 forks source link

Requesting Native Share API from Immersion #331

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Requesting to have access to the native sharing API for a photo or video from a 
immersion.

I have tried to reverse engineer code based on log and have been able to 
reproduce intent using:

       Intent intent = new Intent();
       intent.setComponent(new ComponentName("com.google.glass.home","com.google.glass.share.ShareActivity"));
       intent.putExtra("type", "SHARE");
       intent.putExtra(Intent.EXTRA_STREAM, currentPicture.getSrc());
       intent.setType("image/*");
       intent.setAction(Intent.ACTION_EDIT);
       intent.setData(Uri.fromFile(new File(currentPicture.getSrc())));
       startActivity(intent);

However I am missing the extras to allow the share activity to load correctly.

I am currently working on a gallery application for videos and pictures that is 
just missing the share procedures.

Thanks

Original issue reported on code.google.com by dfranc3373 on 31 Dec 2013 at 10:46

GoogleCodeExporter commented 8 years ago

Original comment by allev...@google.com on 2 Jan 2014 at 6:18

GoogleCodeExporter commented 8 years ago
As the ShareActivity does not have the exported parameter in the GlassHomme 
AndroidManifest, it's not possible to share something using this activity. We 
have to wait... :)

Original comment by ju.ver...@gmail.com on 3 Feb 2014 at 5:16

GoogleCodeExporter commented 8 years ago
Any news on the ShareActivity for Glass?

Original comment by dfranc3373 on 31 Oct 2014 at 9:50