CodenameOne SMB shared folder access - codenameone

I need to build a mobile app for Android and IOS that can read and write to a SMB2/3 network share.
Is this possible in CodenameOne? If so is there an example of how to do this?
If it is not possible in CodenameOne is there another framework that supports this functionality?
Thanks in advance for reviewing this question!

We don't have any support for the SMB protocol. There is support for sockets but I think that would be a challenge to implement.
If the phone has access to the folder you can use the share operation and the user can pick the place where the file should be shared e.g. SMB, dropbox, etc.

Related

Can I run a web app from usb with Bitlocker

As per the title, can I run a web application (AngularJS) from usb with Bitlocker.
I installed xampp portable, git portable and nodejs in usb. But I don't know my application can run normaly. I need distribute my application to many customer and secure my source code. Please let me know what I do is possible or not.
NOTE: my question is not duplicated with question Secure distribution of NODEJS application
Many Thanks

Fingerprint scanner in codename one

Question: 1
I want to use fingerprint scanner in codename one. Can anybody tell me is it available in codename one or not? If yes, how to use and if no, then how can I code it in codename one ?
Question: 2
How to get the maximum device info in codename one like android version, mobile model, or other stuff ?
Thanks,
No. Fingerprint scanning isn't available at this time.
You can use native interfaces to integrate native device functionality check out this quick video and the advanced section in the developer guide.
Device information is available in Display.getProperty() as well as some other methods in that class. Notice that if you get things such as UDID you will get a permission prompt.

Proprietary USB device access via browser... possible? Silverlight maybe? (Java is excluded for now)

Probably there are a lot of similar questions around, but since I know only few solutions to this which I am not sure will work for us, I am looking for something else, maybe new technologies...
What we have is this USB device which is not so fancy (of course, it requires a driver to be loaded), and it has couple of C++ dlls to help getting certain output from it. On top, we made a C# desktop application which makes use of the device in a more attractive way (plenty of interop inside).
So far so good, but to have the application lifted up to the web in order to gain more flexibility... What options are there?
Known solutions are:
1) ActiveX - kinda old technology and not cross-browser;
2) .Net 'applet' - not so common (is this even a solution?)
3) Java applet - well known, but JVM needed (since we went for C++ C#
maybe is out of scope);
4) Web service on the usb device itself - our device is very
light, we cannot have it there.
Are there other ways? Is Silverlight 4, 5 (maybe "out of browser") a feasable solution? What about these new technologies nowadays? Html 5 or something?
EDIT1: In particular I am interested in Silverlight. Is there a way using Silverlight?
EDIT2: I found this question: Can Silverlight access a .Net library that accesses a USB port? . What shall I understand from that? Is really Silverlight not a feasable solution for my scenario?
EDIT 3: VERY IMPORTANT!
These devices need to be used on customer side! People browsing must use them locally on their PCs!
Thanks in advance.
to have the application lifted up to the web [...]
Simple solution: Let the webserver (http server) run on the PC connected to the USB device, and use one of the webserver's interfaces like CGI to talk to your USB device. This way you need to code only a USB-to-CGI wrapper program, which can be C++ or C#.
Another way is to write a browser plugin.
The issue that you're going to face is that content in a browser is often run in a sandbox, in such a way that the web app does not have access to the computer. There are good reasons for this - security, primarily. One way to have some code running in the context of the computer is to have a browser plugin that can access the computer's hardware resources, but that can interact with browser content. Unfortunately, you may end up writing a different plugin for different browsers.
There do exist frameworks out there that make writing browser plugins more manageable. A simple search should turn up some of those candidates.
You can use Silverlight 5, it can give you access to your file system and USB storage device. If you want to get control for other USB device (printer, scanner, etc), you should give a device type. I know, Silverlight 5 works fine with a file system and web-cams...)

Can silverlight queue a list of files and post, when connection available, to a web service / url?

I need to provide a way of users uploading multiple files (can be 10MB each) over Mac, PC and a mobile device (something with an SD slot).
The connection from the mobile device can be poor so I need to enable queuing of the files so they can be delivered when connection becomes available.
I am looking at Silverlight as a potential option using something like this example uses and sending over the files when a connection is available.
http://www.microsoft.com/silverlight/out-of-browser/demo/
I have tried searching for silverlight articles but not found anything appropriate. What I am trying to avoid is writing multiple versions of the software for Mac+PC (browser) and mobile device.
Can silverlight provide this kind of functionality or is something I would have to approach differently?
Silverlight can be used to do that.
You don't need to use the out-of-browser functionality, silverlight gives you low-level control over sockets and threads.
For devices it's a different scenario, as AnthonyWJones points out.
There is a silverlight version for the nokia, but I've know idea if it is actively developed. The is also a c++ version for linux/meego, there is a mono version.
But all those are different versions.

Stream Audio from Linux Server with Silverlight

I have a large catalog of audio on a Linux (CentOS 5) server that I would like to expose to an existing .NET web site. Is there any way to stream the media from the Linux server through my web site using Silverlight? If so, how would a person go about setting it up?
Thanks in advance!
If you don't care about adaptive streaming, this is really easy - just share the audio out over HTTP, then add a MediaElement (or something like http://smf.codeplex.com if you want it to be fancy, see my caveat at http://blog.paulbetts.org/index.php/2009/11/22/patching-silverlight-media-framework-to-work-with-mp4wmv-files/) and point it towards your Linux server running Lighttpd or Apache.
The critical bit though, is that Silverlight will only be allowed to access the hosting site by default, so you'll need to create a clientaccesspolicy.xml file ( http://www.silverlighthack.com/post/2008/11/08/Silverlight-clientaccesspolicyxml-files-for-the-Enterprise-(Part-1-of-2).aspx ) to allow SL access to your Linux server

Resources