Android share intent for Facebook

前端 未结 4 1667
清歌不尽
清歌不尽 2020-12-06 08:37

I have some problem with below code. This code is working for email, message, Twitter (for sending the text) but not for Facebook. Why?

Intent i=new Intent(a         


        
4条回答
  •  青春惊慌失措
    2020-12-06 09:21

                Intent sharing = new Intent(android.content.Intent.ACTION_SEND); 
                sharing.setClassName(,);
                sharing.setType("text/plain");
                sharing.putExtra(android.content.Intent.EXTRA_SUBJECT,"hello");
                sharing.putExtra(android.content.Intent.EXTRA_TEXT, "yahoomail");
    

提交回复
热议问题