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"));
}