| | |
| | | } |
| | | } |
| | | |
| | | ///// <summary> |
| | | ///// 发送广播,通知刷新图库的显示 |
| | | ///// </summary> |
| | | ///// <param name="path"></param> |
| | | //void SendBroadcastScanFile(Context context, string path) |
| | | //{ |
| | | // // 发送广播,通知刷新图库的显示 |
| | | // Intent scanIntent = new Intent(Intent.ActionMediaScannerScanFile); |
| | | // scanIntent.SetData(Android.Net.Uri.FromFile(new File(path))); |
| | | // context.SendBroadcast(scanIntent); |
| | | //} |
| | | |
| | | /// <summary> |
| | | /// 截图 |
| | | /// </summary> |
| | |
| | | int code = mPlayWindow.SnapShot(path); |
| | | if (code == 0) |
| | | { |
| | | //2021-09-01 增加发送广播,通知刷新图库的显示 |
| | | HDLONUtils.SendBroadcastScanFile(this, path); |
| | | |
| | | //Android.Provider.MediaStore.Images.Media.InsertImage(this.getContentResolver(), path, "ss", "ss"); |
| | | Toast.MakeText(this, Resources.GetString(Resource.String.screenshot_success), ToastLength.Short).Show(); |
| | | } |