How to import photos from onedrive from xamarin forms app - xamarin.forms

I have a requirement that requires way to import photos from onedrive into xamarin forms application. The ideal way would be to open onedrive on click of a button within the app after which the user can select the photos required and then import the selected ones back to the app.
I understand this is not as straightforward as importing from the phone gallery which can be done using plugins such as crossmedia.
Any leads on how to approach this issue would be appreciated.

Related

Ionic 5, Capacitor 2.4.5 Firebase Dynamic Links

I'm integrating Firebase Dynamic Links in my Ionic 5 and Capacitor project.
I did the configuration on Firebase console but I would like to know how to test my dynamic links without publishing the app.
Is there a way to simulate what the user will get after the installation through the app/play store?
What I mean is that I want, after a new installation, to open the app and get the dynamic link.
On Android I managed to make the flow working but I would like to double check it if possible.
Thanks in advance for your help.

How to submit crash report to Microsoft App Center for Xamarin.Forms?

I want to submit crash report to Microsoft App Center for my project which is created in Xamarin.Forms.
Can anybody please suggest a link or steps where I can follow and integrate required steps in my project? I also want to test.
Please guide.
Whenever you login to the App Center portal all the information you need is right there. Create an app in the portal, one for Android and one for iOS if you have these platforms.
From there, basically you have to install the NuGet packages and add one initialisation line in your code. Note that you will be provided with the ID for this specific app under step 2. If you have multiple platforms, add the line once and replace the different IDs for each platform.
You will then have basic crash reporting and analytics (if you install both packages). You do not need to do anything extra for it, start your app, start using it and watch data come back to the portal.
Since a little while you can now also track handled exceptions and custom events.
For more information, check out the extensive documentation here: https://learn.microsoft.com/en-us/appcenter/
Please refer the detailed information here:
App center for Xamarin
Steps are:
You need to create 3 apps in App Center – one for each OS.You need to select Xamarin as the platform for Android and iOS applications and obtain App secret
Install Microsoft.AppCenter.Analytics and Microsoft.AppCenter.Crashes packages.
Open your App.xaml.cs and write this in OnStart() method:
AppCenter.Start("ios={Your App Secret};android={Your App Secret}", typeof(Analytics), typeof(Crashes));

Store and read files from external storage in Xamarin Forms app

I have a requirement where I want to provide the ability to users to backup their app data and restore it later (e.g. when they want to switch the phone). I want the backup to be done in an external storage (like iCloud on iPhone and SD card on Android). The location and file name should be picked by users. Subsequently, they can pick up this file on another device or same device and restore the data. How do I provide this facility to pick file location in my xamarin forms app?
Thanks
Naweed
You can try below Plugin
Plugin Name :- Xam.Plugin.FilePicker
Nuget Link :- Plugin Nuget
Nuget Library code Link :- FilePicker Plugin Link

How to use open file dialog in xamarin forms

Please help me, I want to pick the pdf file locally in xamarin forms(cross platform). So on a button click i need to open the file dialog to pick pdf file locally.
This is not something that can be done in a true cross-platform way. For example; on iOS you cannot access the filesystem directly, while on Android and UWP you can.
I have created a NuGet Xamarin.Plugin.FilePicker (Github) (original by rafaelrmou), which tries to solve this for you. On iOS you need iCloud Drive to be configured.
If you do not want to use the plugin you could always look into the code and roll your own.

Showing Files on Android

I'm very new to backendless.
And a little bit new to developing an androip app.
I'm trying to show list of files in my Backendless to my Android app.
I'm trying to show my uploaded files in my Backendless to a List View in my Android Studio Project. Wherein the user could see the files(images,documents,pdf) inside the folder and other sub folders inside it.
Backendless cares about you even if you are "very new" to it :)
Just use it`s build-in code generation tool. It already provides you a file manager for you application. You can customize it so that would pass for all your needs.
Well, open console and create your new app. Then go to Code Generation section, select Android tab and check "Simple file manager" option.
As soon as you you download the project open it in your IDE, select SDK and run.
Found it.
https://github.com/Backendless/Android-SDK/blob/master/src/com/backendless/Files.java
This has all the codes you need concerning file management for backendless in your android project.

Resources