How to use the kindle uri scheme in xamarin forms? - xamarin.forms

i want to open the kindle application from my own app and need to open specific file (included in the resources folder), i´ve been looking for the uri scheme in kindle but there is no information, does anyone knows how it works?
In my code i can open the app, but doesn't launch a book,
the need is to open the application and open a specific pdf file found in the folder resources
Xamarin.Forms.Device.OpenUri(new Uri("kindle://book/?action=open&book_id=AMZNID0/0BWUTJQ/0/"));

Related

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.

Is it possible to upload a complete directory structure with Flex?

Is it possible to upload a complete folder with subdirectories and files (in the subdirectories) in Flex?
I am using a Flex / BlazeDS / Spring application. The question is not how to transfer the data to the server. The question is: if it is possible to get access to the files and subfolders (recursive) with Flex?
If you're working with AIR, then yes. Look a the File class. It is a reference to either a file or directory. You can tell if it is a directory using the isDirectory attribute. You can use getDirectoryListing to get a list of all files and subdirectories in a directory.
As far as I know, you'll then have to upload things one by one to the server, though.
If you are using Flex in a web based app, I do not believe what you're trying to accomplish is possible.
No, not if you are talking about a Flex app running in a web browser. In an AIR application it is probably possible, but not in Flash Player in a browser.
The security sandbox doesn't give that kind of file system access, files are only available when selected by a user, via some user action like clicking a button. And then you only get a reference to the file, so it can be read or uploaded, there is no mechanism to for example get the local path to the file as a string or such, and no way to check for subfolders (unless it's an app for the AIR runtime).

AIR - Making use of air.swf file in an internal network

Hello StackOverflow community,
The air.swf file referenced here:
http://livedocs.adobe.com/flex/3/html/help.html?content=distributing_apps_3.html
used to launch AIR applications from Flex applications requires the use of an air.swf file located here:
http://airdownload.adobe.com/air/browserapi/air.swf
We have tried to download this SWF and use it in our internal network, but it is not working, we depend on using the one located in the Adobe site.
Is there anyway to use this air.swf file without having to access the Adobe site?
Thanks!
Mauricio
No, this swf will not work if it's not loaded from adobe.com domain.
You can download the air.swf from the Adobe website (which the docs say you are free to do) and load it locally. Then the first call correctly gives the status of the AIR installation - "installed" or "available". However, if AIR is installed, the next call to getApplicationVersion always fails with "null" no matter the AIR app is installed or not. If I run the Adobe hosted version of air.swf everything works fine.
I am trying with AIR 2.0 and Actionscript 3.0.
i know this is rather a partial answer, but if I figure out more I will edit it!

Resources