Skip to content Skip to sidebar Skip to footer

Android Google Plus Integration In My Android App Gives Android.content.activitynotfoundexception

I want to share text and images on google plus like facebook and twitter but when I integrate google plus in my Android app and run it it gives exception: android.content.Activity

Solution 1:

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

Solution 2:

To share on Google+, you have two options:

  1. 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 https://developers.google.com/+/mobile/android/app-activities.

  2. 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 https://developers.google.com/+/mobile/android/share#adding_interactive_posts. And for information on the setText parameter, check out https://developer.android.com/reference/com/google/android/gms/plus/PlusShare.Builder.html#setText(java.lang.CharSequence)

Post a Comment for "Android Google Plus Integration In My Android App Gives Android.content.activitynotfoundexception"