0

I'm using the following code to post in Google+:

Intent shareIntent = ShareCompat.IntentBuilder.from(MainActivity.this)
      .setText("This is a sample test"
      .setSubject("This is my subject")
      .setType("text/plain")
      .getIntent()
      .setPackage("com.google.android.apps.plus");

startActivity(shareIntent);

It works. But it shows in a dialog. I remembered it was showing in full screen yesterday. Can I show it in full screen? (Because if I show it in dialog, my background is blinking for some reasons.)

Can anybody help? Thanks

Bagusflyer
  • 12,675
  • 21
  • 96
  • 179

1 Answers1

1

Try using the PlusShare.Builder instead. Your share intent will look something like:

Intent shareIntent = new PlusShare.Builder(MainActivity.this)
.setType("text/plain")
.setText("Your Text")
.setTitle("title")
.getIntent();
staryActivityForResult(shareIntent, requestCode); 
abraham
  • 46,583
  • 10
  • 100
  • 152