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