prashant
prashant

Reputation: 3608

Tracking sharing on Android

I'm working on an app which has a share button. On click of share i'll show the standard share screen like below,

enter image description here

I want to know, if it is possible to track if user click on this screen. For example, if user clicks on facebook, i want to know that user selected facebook for sharing.

Upvotes: 1

Views: 535

Answers (2)

Janusz
Janusz

Reputation: 189464

From this dialog this is not possible. It is possible to put this sharing into the actionbar with a ShareActionProvider.

With ActionBarSherlock this will work on all devices down to Android 2.2. Now you can check wich app was chosen for tracking. Have a look at the ShareActionProviderSample from Actionbarsherlock

Upvotes: 0

CommonsWare
CommonsWare

Reputation: 1006654

I want to know, if it is possible to track if user click on this screen

No, unless you create your own chooser activity.

For example, if user clicks on facebook, i want to know that user selected facebook for sharing.

That is only possible if you create your own chooser activity, rather than use the system-supplied one. You can create such an activity using PackageManager and queryIntentActivities().

Upvotes: 1

Related Questions