[Android]ShareSheet

This is the forum for miscellaneous technical/programming questions.

Moderator: 2ffat

[Android]ShareSheet

Postby Lena » Fri Aug 19, 2016 7:06 am

Hi.
Open the standard example of the RAD:
C:\Users\Public\Documents\Embarcadero\Studio\18.0\Samples\CPP\Mobile Snippets\ShareSheet
When trying to send photo via Gmail get you do not have permission to attach that file.
How fix it?

P.S.
From the standard android gallery it works...
Lena
BCBJ Master
BCBJ Master
 
Posts: 472
Joined: Sun Feb 06, 2011 1:28 pm

Re: [Android]ShareSheet

Postby rlebeau » Fri Aug 19, 2016 6:45 pm

Not all of us have access to Embarcadero's examples, so it would be helpful if you show the actual code here, and indicate where in the code the error is happening.
Remy Lebeau (TeamB)
Lebeau Software
User avatar
rlebeau
BCBJ Author
BCBJ Author
 
Posts: 1408
Joined: Wed Jun 01, 2005 3:21 am
Location: California, USA

Re: [Android]ShareSheet

Postby Lena » Sat Aug 20, 2016 2:53 am

Code:
Code: Select all
void __fastcall TfrmShareSheet::ShowShareSheetAction1BeforeExecute(TObject *Sender)
{
   // show the share sheet
   ShowShareSheetAction1->Bitmap->Assign(imgCameraPicture->Bitmap);
}
//---------------------------------------------------------------------------
void __fastcall TfrmShareSheet::TakePhotoFromCameraAction1DidFinishTaking(TBitmap *Image)

{
   imgCameraPicture->Bitmap->Assign(Image);
}


Source: http://docwiki.embarcadero.com/CodeExam ... eet_Sample

Compile to device tablet Pipo M7 pro.
1. Press button Share.
2. Choose Gmail.
3. Get you do not have permission to attach that file :(
Attachments
picpic.jpg
picpic.jpg (62.87 KiB) Viewed 3180 times
Lena
BCBJ Master
BCBJ Master
 
Posts: 472
Joined: Sun Feb 06, 2011 1:28 pm


Return to Technical

Who is online

Users browsing this forum: Baidu [Spider] and 2 guests