|
|
|
@ -582,8 +582,19 @@ public class NoteEditActivity extends Activity implements OnClickListener,
|
|
|
|
|
* Share note to apps that support {@link Intent#ACTION_SEND} action
|
|
|
|
|
* and {@text/plain} type
|
|
|
|
|
*/
|
|
|
|
|
/**
|
|
|
|
|
* @method sendTo
|
|
|
|
|
* @description 该方法用于共享便签
|
|
|
|
|
* @date: 2023-12-18 0:57
|
|
|
|
|
* @author: 郑鲲鹏
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
private void sendTo(Context context, String info) {
|
|
|
|
|
// 新建intent消息
|
|
|
|
|
// 2023-12-18 1:00
|
|
|
|
|
Intent intent = new Intent(Intent.ACTION_SEND);
|
|
|
|
|
// 将要分享的便签内容放入intent中
|
|
|
|
|
// 2023-12-18 1:01
|
|
|
|
|
intent.putExtra(Intent.EXTRA_TEXT, info);
|
|
|
|
|
intent.setType("text/plain");
|
|
|
|
|
context.startActivity(intent);
|
|
|
|
|