I am totally new to UWP and building an application that needs to take input from a barcode scanner using the UWP Point-of-Service API. I also have a legacy application that needs to take input from the scanner as key presses. My scanner (a Zebra 2208) doesn't seem to support switching between HID POS and HID keyboard mode automatically when it is claimed/unclaimed.
Is it possible to have my UWP app receive data from the scanner while running in the background and use the InputInjector API to send keys to the legacy application? If so, how?
#David Brown,
Background support for scanning barcodes was introduced in Windows 10 version 1903 (build 18362). This capability was also added to 1809 (build 17763) with the servicing update released in April 2019 (KB4490481). Please update your Windows installation to one of the above and give it a try.
Terry Warwick, Microsoft
Related
I have seen this excellent post SO.
As most do, I began a new simple project that has no UI requirement. I noticed the Blank App ( Universal Windows ) option. What is the difference between that and a Console app?
I need an executable that will do some coverting of tiff to pdf type work on a every so often basis. ( every 30 minutes )
I also do not want a service, as in this case there is no need for it to constantly run
Universal Windows Blank app refers to Universal Windows Platform (UWP).
It uses a subset of .Net Framework, also has some parts that aren't in .Net Framework (thanks to #DavidJ comment) and has some other app behaviour limitations. It's used for apps running on wide range of devices like Windows PC, Windows phones, Xbox and other Microsoft products.
Look at particular quote:
Windows 10 makes it easier to develop apps for the UWP with just one API set, one app package, and one store to reach all Windows 10 devices – PC, tablet, phone, Xbox, HoloLens, Surface Hub and more.
So there's no need to use it just for Windows_PC_only console application.
More links:
https://en.wikipedia.org/wiki/Universal_Windows_Platform
https://msdn.microsoft.com/en-us/windows/uwp/get-started/whats-a-uwp
A customer needs an application running on an industry handheld device with barcode scanner.
Unfortunately, Windows 8.1 Embedded Handheld devices are rare, and Windows 10 Embedded devices are non-existent. Almost all devices currently available use Windows CE 6 or Windows Mobile 6.5.
As far as I know, (.NET) applications for Windows Mobile 6.5 are exclusively based on Compact Framework and WinForms, whereas Windows 8.1 Embedded software is (exclusively?) based on WinRT and XAML.
Is that correct? Is there no way to write a (.NET) application which
runs on current (Windows Mobile 6.5) devices and
will run Windows 8.1/10 Embedded devices?
You are right, there is no way to do that. The UI is based on winforms for 6.5 and XAML for 8/10.
The only thing you can try to do is to try to keep UI and business logic cleanly separated to simplify the migration.
Consider also that some features you had on 6.5 (ex: sql compact) have been dropped in 8/10 and the "replacement" may not be code-compatible and may lack some features.
You may try to build and test your non-UI code already on 8/10, so you can check that you are not using features that may impact your migration.
If you don't have to write native .NET-code, you should be able to use Rho Elements. Possibly there are other cross platform solutions that work as well.
Possibly you can go with Windows.Forms on Windows Mobile 6.5 and Xamarin on Windows Phone. You need to use a compatibilty layer for the Form code of Compact Framework and the one supported by Xamarin.
But I would recommend to go with HTML5 (use ZetaKey browser on Windows Mobile). Even RhoElements is based on HTML5 but with properietary extensions.
Yes, it is possible. You will have to implement all GUI logic platform dependent. And can share code using MVVM pattern. You may also need to switch to a database, that is available on both platforms like SQLite.
iOS8 requires the info.plist to have this set NSLocationWhenInUseUsageDescription, and the following code to enable iBeacons:
// NEW REQUIRED IN iOS 8x
locationMgr = new CLLocationManager ();
locationMgr.RequestWhenInUseAuthorization ();
Question 1
Although the Apple web site says iBeacons are supported, it's not uncommon for certain features to disappear in more modern versions of the OS. (it already happened with an update to OSX preventing iBeacons)
Can anyone tell me if iBeacons (both broadcasting and receiving) is supported on the following devices:
iPad Model A1455 8.x and newer
iPad Model A1458 8.x and newer
Question 2
Can anyone tell me if the following code (C#, or Xamarin compiled output) is correct:
The following Xamarin C# code is supposed to broadcast an iBeacon on an iPad running 8.x, and I deployed the app, as-is to one iPad (model A1455)
https://github.com/mikebluestein/FindTheMonkey
What I've done
I've attempted many iBeacon demos and have no idea why the broadcast of the iBeacon seems to fail. I've created support tickets with Apple, Xamarin and am unable to locate the bug in either C# code, Xamarin to Objective C output, or the target iOS/Hardware support.
Instead of using an iPhone, I then inverted the iPad/iPhone logic (so I can detect nearby monkeys using an iPad) and deployed it to model (A1458) iPad.
I got the prompt to use iBeacons on the second iPad (as requested by the first), however it doesn't seem to detect the iBeacon from the other device. Any assistance is appreciated, as none of the samples I've attempted, work.
They recently changed more about how you must create an iBeacon using core bluetooth. Mike updated his repo and so did I: https://github.com/jamesmontemagno/iBeaconsEverywhere
The change here is that you must:
1.) Create CBPeripheralManager and Delegate in constructor
2.) Your id's and uuid should be scoped to class level
3.) You must create your region and start advertising later on in ViewDidAppear
I need to write VoIP/SIP Soft Phone in C# using WPF interface with Audio support only.
I need to have call transfer, call conference, and recording of conversations in mp3.
I've looked at VoIP SDK from ABTO LLC, but it is slow at application startup (30 seconds to start application, I think it's related to loading activex part of this sdk).
I've also looked at SIP.Net, but it's only for SIP and doesn't contain components for voice data transfer.
I have very limited time only 2 months from zero to fully working app.
What SDK can I use to accomplish this task?
Windows 7 must be supported.
We have done this using SipekSDK. It's written on top of famous pjSIP open source SIPClient project. It does all the operations you have mentioned in the question.
https://sites.google.com/site/sipekvoip/
What is the Sip server you are going to use ? If its not asterisk, you can have a look of microsoft's Lync here.
You can download the Lync SDK and start exploring. Not just the audio call, Microsoft Lync has features like video call, chat, presence, conference etc.... and ofcourse connectivity to landline/pstn through voip providers
Another interesting article explaining the different SDKs for unified communications can be found here
Edit: If its for Asterisk, Sipek is the only available free opensource but we had lot of problems in installing in clients system like
C folder access
Poor device
support
Port conflict- If any
other voip app like qutecom runs on
5060, then Sipek wont run as the
port is being used already.
I struggled with this exact issue and eventually came across ABTO LLC.
They have an SDK available that supports Win 7, Win XP and can be used in WPF.
We did ask them though to build a separate SDK example for us as we are using ClickOnce for our deployments and so registering external libraries is impossible, but they graciously did it and i think have integrated into their SDK, if not then ask them to give it to you.
We are using a FreeSwitch SIP Server combined with ABTO's library and it is working like a dream. We are doing VoIP, Video and Conferencing and have had no issues at all.
The application I added the VoIP functionality to is a WPF 4 app.
We have an HTC handset running Windows Mobile 6.1. Is there a way to increase/decrease screen brightness for this device programmatically?
The application is being developed in C#, so a .NET wrapper would be preferable, but an unmanaged API would also be acceptable.
Also, how can we turn the screen on/off to save battery while a particular application is running?
You would use the power management APIs to change the backlight settings. Also the WinMo 5 SDKs ship with a sample application called Power Manager that demonstrates how to programmatically change the state of the backlight. It's in C, but is pretty straightforward to port.