0
、私は、Webクライアントを使用してAndroidのAppでファイルをダウンロードしてください。ローカルフォルダに保存されます。 私は通知からダウンロードしたファイルを開きたいコード?私Xamarinフォームで
webClient.DownloadFile(filePath, localPath);
Notification.Builder builder = new Notification.Builder(Android.App.Application.Context)
.SetContentTitle("Download Successfully")
.SetContentText("Click here to open")
.SetSmallIcon(Resource.Drawable.abc_btn_colored_material);
Notification notification = builder.Build();
NotificationManager notificationManager =
Android.App.Application.Context.GetSystemService(Context.NotificationService) as NotificationManager;
const int notificationId = 0;
notificationManager.Notify(notificationId, notification);
以下のように、これはAndroidの通知を使用して言及されます。どのように私はそれを行うことができます。私はXamarinが初めてです。解決策を提案してください。
新しいAndroid.Net.Uri(filePathに)ショーがインタフェースウリ –
申し訳ありませんの抽象クラスのインスタンスを作成することはできません、それは '' Uri.Parse(filePathに)する必要があります。 – Cheesebaron