{"id":6764,"date":"2014-04-23T02:59:58","date_gmt":"2014-04-23T02:59:58","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/23\/google-plusrelated-issues-collection-of-common-programming-errors\/"},"modified":"2014-04-23T02:59:58","modified_gmt":"2014-04-23T02:59:58","slug":"google-plusrelated-issues-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/23\/google-plusrelated-issues-collection-of-common-programming-errors\/","title":{"rendered":"google-plusRelated issues-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/1acfaa54e2b7d6dbb6a1dc792b5863a9?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nDarko Petkovski<br \/>\nandroid google-plus<br \/>\nI&#8217;m trying to create an app where the user tries to Log in using Google plus i get this toast error: an internal error occurred and this from logCat:10-17 11:28:13.456: W\/dalvikvm(18602): threadid=1: thread exiting with uncaught exception (group=0x2b542210) 10-17 11:28:13.486: E\/AndroidRuntime(18602): FATAL EXCEPTION: main 10-17 11:28:13.486: E\/AndroidRuntime(18602): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=9000, result=0, data=null} to activity {com.mya<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/gFj7E.jpg?s=32&amp;g=1\" \/><br \/>\nDeep Rathod<br \/>\njava android google-plus illegalargumentexception google-api-client<br \/>\nI am trying to login via Google plus in my application, however i am getting very strange error and which i have searched almost everywhere and everything regarding the same, but no luck. Below is my Code where the implementation is been done. The logcat is showing the system error of java.lang.IllegalArgumentException: GoogleApiClient parameter is requiredMainActivity.javapublic class MainActivity extends Activity implements com.google.android.gms.common.GooglePlayServicesClient.ConnectionCallb<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/5tPLE.jpg?s=32&amp;g=1\" \/><br \/>\nCropper<br \/>\nandroid google-plus google-play-services<br \/>\nMy Application Want to share Image on Google Plus And I have read About Google Plus And API shows that we can post media File using PlusShare.Builder. And I have Also Searched In stackoverflow but ditn&#8217;t Get any Proper Answer. And I have Tried with These Code is :case R.id.Share:if (mPlusClient.isConnected()) {Intent shareIntent = new PlusShare.Builder(this,mPlusClient).setType(&#8220;image\/*&#8221;).setText(&#8220;Risk Score&#8221;).addStream(Uri.fromFile(new File(Path))).getIntent();startActivityForResult(shareIntent<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/Pg3tn.jpg?s=32&amp;g=1\" \/><br \/>\nBrettJ<br \/>\nios google-plus ipod-touch<br \/>\nIn my application for iOS, I am having Google+ signin which works normally. But it is failing when the native Google+ app is installed in device. If the Google+ application is not installed in the device, the login takes place through web and works fine. If installed, the signin takes place through this installed native app.I am using the GPPSignIn APIs to authenticate. The Google document I referred for implementation is https:\/\/developers.google.com\/+\/mobile\/ios\/sign-inError I am getting is &#8211;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b9cf76ad64b29dc232d8b250428e296c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nTunarock<br \/>\nandroid google-plus google-play-services<br \/>\nI have a problem with eclipse. In my layout when I try to put a PlusOneButton eclipse says:The following classes could not be instantiated:com.google.android.gms.plus.PlusOneButton (Open Class, Show Error Log)See the Error Log (Window &gt; Show View) for more details.java.lang.NullPointerException at com.google.android.gms.plus.PlusOneDummyView$b.isValid(Unknown Source) at com.google.android.gms.plus.PlusOneDummyView.eN(Unknown Source) at com.google.android.gms.plus.PlusOneDummyView.&lt;init&gt;(Un<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/Mf29F.jpg?s=32&amp;g=1\" \/><br \/>\nJohn McCann<br \/>\nandroid google-plus<br \/>\nI&#8217;ve implemented G+ sign-in following the quick start guide (PlusClient). Everything works fine. I can authenticate, get account meta data, disconnect, etc. The problem occurs when I post using the share intent. When I do this, the native G+ UI pops up showing the G+ logged in user and not mine? Is there a way to sync the two apps user sessions?EDIT: Following are relevant snippets of code. In addition, I am using two Google accounts (A &amp; B). My app is authenticating and connecting as accoun<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/de2d75628841b3f0ff18b1bca1a84ee9?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nbobygerm<br \/>\nandroid google-plus<br \/>\nIn order to implement social features in an android app, I try to use the &#8220;writeMoment&#8221; method of the &#8220;PlusClient&#8221; class, but nothing happens. I am able to get a successful connection with &#8220;PlusClient&#8221; and to write deep link posts with my app.Here is my code when I open the Google+ connection :monPlusClient = new PlusClient.Builder(this,new GooglePlayServicesClient.ConnectionCallbacks() {@Overridepublic void onConnected() {plusencours = false;String accountName = monPlusClient.getAccountName();\/<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/3353933eed5d3c282e4dfd2cc47412aa?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nSeeNoWeevil<br \/>\nandroid google-plus<br \/>\nHas anyone worked out what the required values for posting a CheckInActivity to a user&#8217;s Google+ profile are? The documentation here is quite poor. I&#8217;m getting an error writing the following moment;ItemScope address = new ItemScope.Builder().setType(&#8220;http:\/\/schema.org\/PostalAddress&#8221;).setPostalCode(&#8220;xxx xxx&#8221;).build();ItemScope target = new ItemScope.Builder().setType(&#8220;http:\/\/schema.org\/Place&#8221;).setName(&#8220;Test&#8221;).setAddress(address).build();Moment moment = new Moment.Builder().setType(&#8220;http:\/\/schemas<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/29fa0b004700f61aa6cdd8b08402c6fe?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nadneal<br \/>\nandroid google-plus<br \/>\nHi everyone I have a problem when I&#8217;m trying to post some info from my Android app to Google Plus, the code that I have to share is the following:public void shareOnGooglePlus(Activity activity, String caption) {PlusShare.Builder builder = new PlusShare.Builder(activity);\/\/ Set call-to-action metadata.builder.addCallToAction(&#8220;CREATE_ITEM&#8221;, \/** call-to-action button label *\/Uri.parse(&#8220;http:\/\/plus.google.com\/pages\/create&#8221;), \/** call-to-action url (for desktop use) *\/&#8221;\/pages\/create&#8221; \/** call to act<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f19deda65d9c1c9f265c118b9dbff556?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAlanKley<br \/>\nandroid google-plus<br \/>\nMoments appear broken to me. Using the google\/google_play_services\/samples\/plus app I can Sign in, and I can Send an interactive post, but none of the Write Moment examples work. From the sample app I can select &#8220;List &amp; remove moments&#8221; and a list of moments that I assume were created by the sample app, are listed but I don&#8217;t know where they went. They weren&#8217;t posted on my Google+ site unless they go in a specific place I am not checking. Has anyone been able to use writeMoment() successfu<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Darko Petkovski android google-plus I&#8217;m trying to create an app where the user tries to Log in using Google plus i get this toast error: an internal error occurred and this from logCat:10-17 11:28:13.456: W\/dalvikvm(18602): threadid=1: thread exiting with uncaught exception (group=0x2b542210) 10-17 11:28:13.486: E\/AndroidRuntime(18602): FATAL EXCEPTION: main 10-17 11:28:13.486: E\/AndroidRuntime(18602): java.lang.RuntimeException: Failure delivering result [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6764","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6764","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6764"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6764\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6764"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6764"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6764"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}