Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/216.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
修改链接的标题和说明-Google+;在Android上共享API_Android_Google Plus - Fatal编程技术网

修改链接的标题和说明-Google+;在Android上共享API

修改链接的标题和说明-Google+;在Android上共享API,android,google-plus,Android,Google Plus,我正在实现,我想知道是否有可能修改给定链接的标题或描述。这是因为我想共享一个结果,我希望我的消息不能被用户修改。我当前的代码: Button googleShareBtn = (Button) findViewById(R.id.googleShareBtn); googleShareBtn.setOnClickListener(new View.OnClickListener() { @Override publi

我正在实现,我想知道是否有可能修改给定链接的标题或描述。这是因为我想共享一个结果,我希望我的消息不能被用户修改。我当前的代码:

Button googleShareBtn = (Button) findViewById(R.id.googleShareBtn);
        googleShareBtn.setOnClickListener(new View.OnClickListener()
        {
            @Override
            public void onClick(View v)
            {
                // Launch the Google+ share dialog with attribution to your app.
                Intent shareIntent = new PlusShare.Builder(MyActivity.this)
                        .setType("text/plain")
                        .setText("Your results: "+result)
                        .setContentUrl(Uri.parse("https://www.google.com"))
                        .getIntent();
                startActivityForResult(shareIntent, 0);
            }
        });

在这里,用户可以从
setText()
更改传递的消息。请记住,在Facebook4API中我可以使用,因此我正在Google+API中寻找类似的内容。

您正在创建一个看似隐含的意图和/或明确的意图,外部活动允许用户编辑这些字段。不管怎样,你说的都是不可能的。你必须找到一个替代的api(由于Android的开放[非垃圾邮件]特性,它可能不存在),但是facebook api支持完全相同的东西,我并不是要一些编程上不可能的东西,但我同意google+api在当前版本上可能不支持此功能。