65502

android google plush intregation in my android app gives android.content.ActivityNotFoundException

Question:

Hello friends i want to share text and images on google plush like facebook and twitter but when i intregate google plush in my android app and run it it gives android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.SEND typ=text/plain pkg=com.google.android.apps.plus exception . I follow the <a href="https://developers.google.com/+/mobile/android/getting-started" rel="nofollow">https://developers.google.com/+/mobile/android/getting-started</a> guide lines.

Answer1:

You need to Add that Activity to AndroidManifiest.xml file... If this doesn't solve your problem update the question with stacktrace and AndroidManifiest.xml file

Answer2:

To share on Google+, you have two options:

<ol><li>

Programmatic sharing through App Activities. This is limited, though, as you cannot share text and images, but only a URL and action. The steps for this can be found at <a href="https://developers.google.com/+/mobile/android/app-activities" rel="nofollow">https://developers.google.com/+/mobile/android/app-activities</a>.

</li> <li>

You can enable a user-initiated share with an Interactive Post. For these, you can prefill the text of the post by setting the setText parameter. You cannot share a photo directly, but you can set an image in the schema markup of the page so that it is included in the snippet of the share. You can learn about adding the share button at <a href="https://developers.google.com/+/mobile/android/share#adding_interactive_posts" rel="nofollow">https://developers.google.com/+/mobile/android/share#adding_interactive_posts</a>. And for information on the setText parameter, check out <a href="https://developer.android.com/reference/com/google/android/gms/plus/PlusShare.Builder.html#setText(java.lang.CharSequence)" rel="nofollow">https://developer.android.com/reference/com/google/android/gms/plus/PlusShare.Builder.html#setText(java.lang.CharSequence)</a>

</li> </ol>

Recommend

  • Searching IMAP inbox for messages from a specefic sender and use of wild cards?
  • jQuery on select show div
  • Does Go allow specification of an interface for a map with particular key type?
  • XML file with DTD displays fine in web browser after invalid change
  • Why does Python (with twill) not want to log me in to a Yahoo mail box here?
  • dbus - how to set include paths
  • How to get hex-encoded md5 hash in Go
  • How to apply async task into this
  • Google Places API - Get more than 10 photos from Details Response?
  • Android Oreo JobIntentService Keep running in background for Android 7 &below and crashing often
  • cordova build android throws error on Ubuntu 12.04
  • GRPC and types import error in App Engine Datastore
  • How to use SBT with multiple sub project web applications?
  • Connecting Google Cloud SQL with Wordpress on Google Compute Engine
  • Unique SMS sender id?
  • How to make SASS put relative paths in its output
  • jQueryMobile, Ajax Navigation, and MVC
  • Which browser have this strange user agent? (IOS device)
  • Zend Framework bassed projects
  • How can I let users share their location in Bot Framework webchat channel?
  • C++ Single function pointer for all template instances
  • Can I have a variable number of URI parameters or key-value pairs in Laravel 4?
  • HttpURLConnection Closing IO Streams
  • How to 'create temp table as select' in Slick?
  • How can I replace the server in Web Component Tester
  • Clear activity stack before launching another activity
  • Jenkins: FATAL: Could not initialize class hudson.util.ProcessTree$UnixReflection
  • Parsing a CSV string while ignoring commas inside the individual columns
  • Test if a set exists before trying to drop it
  • Record samples being played with OpenAL
  • Django: Count of Group Elements
  • RectangularRangeIndicator format like triangular using dojo
  • Cross-Platform Protobuf Serialization
  • javascript inside java/jsp code
  • Android Studio and gradle
  • Revoking OAuth Access Token Results in 404 Not Found
  • IndexOutOfRangeException on multidimensional array despite using GetLength check
  • How can I remove ASP.NET Designer.cs files?
  • XCode 8, some methods disappeared ? ex: layoutAttributesClass() -> AnyClass
  • How can i traverse a binary tree from right to left in java?