我通过WhatsApp分享我的图片 - 但我必须选择收件人.这是我的代码:
public static void shareImage(Context context,String path, String text, String otherAppPackage){
Intent share = new Intent(Intent.ACTION_SEND);
share.setType("image/*");
share.setPackage("com.whatsapp");
share.putExtra(android.content.Intent.EXTRA_SUBJECT, getSubject(context));
if (text!=null){
share.putExtra(Intent.EXTRA_TEXT,text);
}
if (path!=null){
share.putExtra(Intent.EXTRA_STREAM,
Uri.fromFile(new File(path)));
}
context.startActivity(Intent.createChooser(share, context.getString(R.string.share_via)));
}
Run Code Online (Sandbox Code Playgroud)
我希望直接与某人分享.你们当中有些人知道我该怎么做.谢谢
我正在使用Twitter登录我的应用程序 - 我按照以下链接的教程:https://dev.twitter.com/twitter-kit/android.它在https://fabric.io/上创建了一个新项目.它工作正常,但当我只需要读取权限时它会询问用户的读/写权限.
我知道我可以在https://apps.twitter.com/(Twitter的应用程序管理)更改提交,我没有在那里看到我的应用程序,但我可以在面料的应用程序管理中看到它.
你们当中有些人知道如何更改权限吗?