Quoting the documentation for OnShareTargetSelectedListener: "Note: Modifying the intent is not permitted and any changes to the latter will be ignored."
On Fri, Oct 19, 2012 at 7:54 AM, Hurelhuyag <[email protected]> wrote: > actionProvider.setOnShareTargetSelectedListener(new > ShareActionProvider.OnShareTargetSelectedListener() { > @Override > public boolean onShareTargetSelected(ShareActionProvider source, > Intent intent) { > intent.setType("text/plain"); > Bundle b = new Bundle(); > b.putString(Intent.EXTRA_TEXT, editor.getText().toString()); > intent.replaceExtras(b); > return true; > } > }); > > This code doesn't working. Please help me > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.2 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

