The location field no longer appears in the share to G+ dialog on Android. This is the code I'm using:
Intent shareIntent = new PlusShare.Builder(this.getActivity())
.setType("text/plain")
.setText("Test")
.getIntent();
startActivityForResult(shareIntent, 0);
Previously, in the share dialog, you could add the location (similar to the "Write" dialog in the G+ app). With a recent update to play services, that location field is no longer there.
Am I missing something?
This is a screenshot of the current share dialog.
And this is a screenshot of the write dialog in the G+ app.
The sharing actually moved from the Google+ app to Google Play Services, and they are slightly different sharing experiences - for example the new contacts first sharing is only in the Google Play services sharebox. If its a feature you're keen on, probably the best bet is to file a request in the Platform issue tracker: https://code.google.com/p/google-plus-platform/issues/list
Related
At this years Google I/O(2015), google revealed some new kind of intent filters, i don't remember the name i just remember the demo.
A google developer said something like this "Now if a person clicks on twitter link then user will be prompted to choose to open link in browser or in the twitter app but no no, this should not work like this" and he demoed a new method through which if user clicks on twitter link, it will directly open in twitter app.
I know the question is very vague but i just couldn't remember it, googling also didn't help. If anyone knows please help.
It's called "deep linking".
Have a look at this topic:
http://www.androidpolice.com/2015/05/28/io-2015-android-m-will-support-app-deep-linking-without-that-annoying-selector-prompt/
Here is the documentation:
https://developer.android.com/training/app-indexing/deep-linking.html
New to android here but not to stackoverflow, i know this was asked before but hear me out first:
So regular Share through chooser:
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, message);
sendIntent.setType("text/plain");
No longer works!, facebook doesn't allow pre-filled text to be sent(so i understood).
BUT I've seen apps do it anyways, by first presenting a pre-filled dialog they created with the text and then showing a custom chooser for sharing.
I have no idea how they do that, i can't find any answers in the forums for pre-filled text share to facebook.
Worst part is, i want to share text with an image, like in this photo here.
Where can i get a good sample project / Tutorial for:
1. simple facebook share.
twitter and google+ sharing.
custom chooser.
Also, would like to hear your comments and regards on best practices with social media sharing AND using a chooser.
Cause i also want the be able to share to apps like WhatsApp and other of that sorts.
With facebook's new SDK you can no longer use ACTION_SEND to share text information.
You can post on behalf of the user but not pre-fill the text for a status update, at least i did not find a way to do that.
You must also have your app actions checked and accepted by facebooks policy.
The answer: Stop working with facebook untill they remove their app from the ACTION_SEND in the android chooser.
I'm able to create Interactive post by using sample example, as below.
Intent shareIntent = new PlusShare.Builder()
.setType("text/plain")
.setText("Welcome to the G+ platform.")
.getIntent();
startActivityForResult(shareIntent, 0);
when the activity starts it shows up window where user have to press share button manually.
Is there any way to post directly to Google plus stream by adding default recipients(Public/to circle) without asking user to press Share button.
For content that appears in a user's stream, that user must explicitly share it. Put another way, posting to the user's stream is to do something that the platform does not support. This is done by design because users want to be in control of what appears in their stream. Deceiving the user and posting to their stream or sharing without consent puts you in violation of the Google+ developer policy and your API client can be banned until you are compliant should you even find a way to do this.
More information and several related questions are:
Sharing on Google+ Stream covers passively writing to Google with app activities.
How do I post to Google+ from PHP?
How to post to Google wall
Google+ API for posting
Please post the feature request in the Google+ platform issue tracker and let the Google+ platform team know why you feel you should be able to do this.
Need to share our application in all social site like Facebook,Twitter,google+ ..Using Share auth api we can share in Facebook and Twitter.
Share Auth API:
http://code.google.com/p/socialauth-android/wiki/GettingStarted
Not able to share in google+ ,is there any plugin available?
Now am using this sample program,not able to share using this.
https://github.com/imellon/Google-Plus-Android-Sample
Please help..
Google plus does not have a publicly available API yet although there are some options available at https://developers.google.com/+/mobile/android/
I would highly recommend not to use a unique SDK for each social network since they contain a lot of bugs, and are not very reliable.
If you just want to share simple text from your app to Facebook,Twitter,Google+ and so on... I would recommend to create a chooser to let the user pick which app from his phone he wants to user for sharing. It is simple, reliable and this is how it's usually done in android.
Sample code :
Intent shareIntent=new Intent(Intent.ACTION_SEND);
shareIntent.setType("text/plain");
shareIntent.putExtra(Intent.EXTRA_TEXT,"your text here");
shareIntent.putExtra(Intent.EXTRA_SUBJECT, "post title");
startActivity(Intent.createChooser(shareIntent, "Share..."));
This will display to the user, all the apps that are capable of sharing a text post. If the user has facebook, twitter and google+ apps in his/her phone, then it will show all of them and the user can choose which ones to share to.
You might be looking for Google plus sdk for android.
Sign in
Sharing
Write moments to your user's Google+ history
+1 content in your app
We are printing up qr-codes for our android app, and would like to have the phone give the option to the user to either open the Google Play app to our app, or open the website. We can only put in one link, since we are dealing with a qr-code, and we can't control the intents that open the application since the link will be opened with another third party application.
In the past, with the Android market, we accomplished this by using the following link:
https://market.android.com/details?id=com.creative.core
Note that I'm purposing not hiding the package name so you can try it for yourself.
Notice the link is the same as if it was taking you to the market, except the /store/apps part is missing. We tried the same idea for Google Play, ie
https://play.google.com/details?id=com.creative.core
But the option was not given to the user to open the market as the first link did.
Right now, the first link redirects to Google Play, as we would expect. Our concerns are, that this redirection may not take place in the future, if google chooses to stop supporting it. We would like to have a link that goes directly to google play, but gives the user the option to open either the market or the browser.
Again, I know that you can open the market with this method:
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("market://details?id=com.example.android"));
startActivity(intent);
but we need a link that can be scanned with a qr-code, and open either the browser or the market, as the user chooses.
Thanks.
I couldn't find a better solution, so I used:
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("market://details?id=com.example.android"));
startActivity(intent);
It seems that for now, the market prefix will still open the Google Play Store.