Select a directory in a Codename One desktop app - codenameone

My Codename One desktop app for Windows needs to select a file to read it and select a directory where to save a file.
The first requirement is easily solved by the “File Chooser” cn1lib.
But how can my app allow the user to select a directory to save a file? If a native interface is required, can you please show me an example of code? I never wrote a native interface for Windows. Thank you

A native interface for a desktop app would be implemented in Java. So you can write Swing/AWT FileChooser/JFileChooser code to pick a file.

Related

How to deploy two different react apps with the same link

I have created a code editor using Monaco editor which doesn't support mobile ports. I came across other editor known as Codemirror which supports the mobile port. I have created a code editor specifically for mobile port using Codemirror.
The problem is that these are two separate projects and I want to host them in such a way that when the link is opened in mobile it will show the Codemirror project and the same link will show Monaco editor in other device like laptop or PC.
You don't have to host the different projects in the same link.
Create a root component that will detect the device using something like react-device-detect and branch accordingly.

Are there WebView2 equivalents of the CEF DialogHandler and DownloadHandler?

I'm attempting to convert an app and that uses CEF to use WebView2. The CEF app uses the DialogHandler and the DownloadHandler overrides. I'm trying to find out how to do what these do in WebView2 and I'm not having much luck.
For examples, the app uses the DialogHandler to prepopulate the file selection in a file chooser dialog. The DownloadHandler is more complex. It runs word after the file is downloaded, then uploads the file to another site when the user is done editing and exits word.
Thanks for any help,
Kevin

Show React Native app in "Open in" dialogue of another app

I'm new at creating React Native apps and I would like to know if there is a doc or a package that allow us to open my app from an external one by clicking on the "share" button, that open the "open in... / share" dialogue modal
Thanks by advance
EDIT :
I have read the instructions given in the following link : React Native Share Extension
but the thing is that it asks to edit some Java files for Android, and other ones for iOS. Since I'm working with javascript files, where am I supposed to find the files the documentation tells me to edit ?
There is nothing built-it to do this, but there's also some useful packages for doing that, the catch is that you will need to write some native code to make it work
first there is React-native-share-extension forn handle share intents, and for more advanced stuff there is react-native-deep-link for handling for example an url of a video, or a download url, or a mail intent .
Both packages requires to edit native ;-;

Create link that adds vCard direct to Address book

I'm in the process of building a mobile site (for Iphones and Androids... I think Blackberry is out of it)
Here the problem I'm with. We want to have a link that, when clicked, automatically adds the contact in the .vcf file to the address book of the mobile device (with some confirmation of some sort that the iPhone/Android must already be handling by itself)
The solution I've tried would be to create a link, directly pointing to the .vcf file. It didn't work. My iTouch was even asking what to open that file with... and the Contact app was not even in the list.
I've heard that a Card of that sort would do exactly what we want if it would come from an email... thing is, we are building up a webpage here.
We use HTML5, no PhP (not yet, could be added later for this problem) and there is no CMS involved.
[UPDATED - Sep 2013 - iOS7 now supports direct download of VCARDs from we page and import into native contact application]
Complete solution using VCALENDAR file with emebedded VCARD file is published here
iPhone: how to get safari to recognize a vcard?
which includes link to my blog with full source code on the subject at
http://mobicontact.info/iphone/download-contact-from-web-page/
I hope this is of some help...
Firstly, iPhone doesn't support vCard. There is no way to download a contact file from the web. What you could do is create a simple page which contains links to the phone number, like this:
Call Dave
Secondly, to get an Android (or other device) to recognise the vCard, you need to set the header to the correct MIME type
Content-Type: text/vcard
You should be able to configure your server to send all files of .vcf as text/vcard.

store image in a folder form a list in silverlight

I want to store a image in to a folder which I have selected from a list in silverlight
In Silverlight you have only limited access to the file system for security reason.
So everything what you want to save would end up in IsolatedStorage...
Check out this Quickstart Video and let me know if it helps
http://www.silverlight.net/learn/quickstarts/isolatedstorage/
In Silverlight, You have limited access to the client file system. If you are running Out Of Browser application with elevated permission, you can access User folders (My documents in windows).
But you can try some workarounds like using JavaScript u can try to download file. For reference Download a picture OnClick

Resources