I’ve written an App that uses NSURLSessionUploadTask to upload data to a web service. This is first written to the file system and then handed off to iOS so that the upload will happen in the background.
I need to do something similar with Android, however I’m not sure what the best solution is. I’ve come across android-upload-service on github (https://github.com/gotev/android-upload-service), however I can’t find an example for Xamarin Forms -has anyone used this? I’ve also seen FileUploaderPlugin on github (https://github.com/CrossGeeks/FileUploaderPlugin), however this doesn’t seem to support background processing?
Related
Im trying to create an UWP App that allows the users to scan documents with TWAIN. I tried a few nugets such as Atalasoft DotTwain, NTwain, TwainDotNet and Saraff.Twain. All of them have samples made in WPF, Winforms... except the Saraff.Twain nuget that have a sample made in UWP.
The problem here is that when I run the WPF and Winforms samples all of them works pretty nice, basically is what I need to do but in UWP and when I try to use the code of the samples on my own App it doesn't build because it doesn't recognize a lot of classes even with the Using sentences at the start of my class.
The Saraff.Twain UWP sample doesn't build and i can't find another Twain UWP Sample on google.
Im not putting code because there is no particular problem but if you want it just leave a comment and I'll upload some.
Does anyone have used TWAIN in an UWP APP successfully? I'm very lost with it... Hope any of you have the key to the gate. Thanks.
UWP has its own document scanner API. In addition, it is possible to use Dynamic Web TWAIN in a UWP app. Check this blog: https://www.dynamsoft.com/codepool/uwp-document-scanning-web-twain.html
My question. I have a basic HID that does not define any Usage Page and I need to communicate with it from a UWP application. Something really simple: I just need to write/read few bytes from an eeprom integrated in the HID. Can it be done?
What I have done so far. I looked for the following solutions:
Plan A. Write a UWP code to access the device. The Windows.Devices.HumanInterfaceDevice namespace allows UWP applications to access HIDs. However there are limitations... among these, the device is required to define a Usage Page within the vendor range 0xFF00-0xFFFF. So I soon realized this probably cannot work and I expect to run in to a HID_USAGE_PAGE_UNDEFINED problem.
https://learn.microsoft.com/en-us/previous-versions/windows/apps/dn263140(v=win.10)
Plan B. I already have some code that works with this device on Windows 10, but it comes from a WPF application and it is based on hid.dll. It looks like I cannot just integrate this kind of code in a UWP application:
Can I Use Windows Hid API Calls in UWP (HidD_GetPreparsedData)?
Any workaround? suggestion?... is it just plain impossible? I am bound to using UWP.
I ran across this before with UWP. If you are using UWP for an IOT device, this may not work you would need an enterprise version of the IOT device, reason being is you could integrate your HUB dll with a .netframework service running in the background and use signal R to relay your package from your service running in the background to your UWP project.
I thought up an idea for a website that would involve some video editing happening on the web server. Microsoft UWP has a library that does the video editing functions I'm looking to perform... Amazing!!
My problem is I don't know if it's possible to get my website to run UWP code on Azure. Web Jobs seem like what I'd prefer to use to kick off this code, but web jobs don't appear to be able to run UWP code and without UWP code I don't see a library that can perform the video editing I'd like to do. Does anybody know if it's possible to run UWP code on Azure? If so, how?
I don't think WebJobs are especially suited for this scenario. They are part of the WebApp platform as a service offering that abstracts the underlying operating system for you to be able to focus on building the code itself and deploy as easily as possible.
UWP on the other hand is a Windows-specific app platform which has many requirements including running on Windows 10. Because you don't know which concrete operating system the web app will run on, it is not easy to say if the APIs would work.
That said, you could theoretically use UWP APIs in a web app as well, because there is a UwpDesktop NuGet package that allows it mainly targeted for desktop apps. It is a long shot but you can certainly try it.
As a preferable solution, I would still look to find another library that suits your needs, as the choice on NuGet is pretty broad and one of those should be sufficient.
I would suggest taking a look at azure functions
These have about the same working as webjobs, however expand beyond the limitations of webjobs. These are also more versatile in what they can do and how they can be created.
webjobs vs functions
I recently made a program in Windows Forms using Visual Studio but my friends asked me to make an app for it. I then noticed that Visual Studio has made it possible to make apps directly in C#. But when I opened a new project it was different from what I'm used to (obviously).
What I'm looking for is an easy way to convert my old windows forms code into the Android format but since I'm generally new to programming I don't know how myself. Do any of you have any tips or good tutorials that can help me? I have been googling around but didn't find anything that helped me.
You can't automatically. With Xamarin you can write your app in c# but you must rewrite a lot code, specially ui interface. Maybe you can reuse some functions and logic
I honestly don't think it is possible.
Windows forms is Windows Forms and Android is Android, these are two separate things that could be joined using Mono (Xamarin) for example.
The code will not transform on it's own, and magically follow Android logic. To create Android apps, you must learn Android.
I have a question about Xamarin Studio. I am building a application that connects with a server to get data from the server. I've made a function for the connection.
Also i've made a second view that opens when the user presses a button. When the view loads i would like to call my connect function to get all the data.
So i would like to know if there is a Load event in Xamarin studio.
This is the function i am looking for:
http://msdn.microsoft.com/en-us/library/system.windows.forms.form.load(v=vs.110).aspx
Thanks in advance
There are several. One of them is ViewDidLoad, which runs after a View has loaded. Xamarin is not a direct port of Windows Forms, which means MSDN will be of little help - you need to learn how iOS works.
However, there is Xamarin Forms, which is a cross-platform UI toolkit that may be the right choice for you. It abstracts away the need for knowing iOS or Android UI details. You may think of it as "Windows Forms for iOS/Android/Phone". Even if you're only ever targetting iOS, Xamarin Forms can help you build an UI.
In this specific case, the "Hello, iOS" Xamarin quickstart tutorial has a good example of responding to events such as a view loading.