0

I am building on to my App and I am trying to add a "SHARE comments". I have all my comment within a View flipper. I dont know where I am going wrong.

String shareMessage = flipTips.getContext().toString();

public class MainActivity extends Activity implements OnClickListener 
{
    ViewFlipper flipTips;
    Intent mailIntent;
    ImageButton imButNext, imButFav, imButMail, imButGroup, imButPrev;
    String shareMessage = flipTips.getContext().toString();
    //String[]shareMessage =new String[]{flipTips.getContext().toString()};
@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        flipTips = (ViewFlipper)findViewById(R.id.viewFlipper1);
        imButPrev = (ImageButton)findViewById(R.id.imButPrev);
        imButPrev.setOnClickListener(this);
       //imButFav = (ImageButton)findViewById(R.id.imButFav);

private void groupShare(){
        Intent groupShare = new Intent(Intent.ACTION_SEND);
        groupShare.setType("text/plain");
        groupShare.putExtra(android.content.Intent.EXTRA_TEXT, shareMessage);
        groupShare.putExtra(android.content.Intent.EXTRA_SUBJECT, "Subject");
        startActivity(Intent.createChooser(groupShare, "Which Social Network"));
        }
2
Contributors
1
Reply
7
Views
5 Years
Discussion Span
Last Post by peter_budo
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.