Steve Nix has a blog post up where he demos how to create a bar code scanner app for Android and IOS that talks to a Windows desktop using the new Delphi XE6 app tethering components. This kind of project is what was talked about as a good example of the app tethering components and now here it is with source code. Basically the new Delphi XE6 has some components that will search your local subnet of your network for another app that is listening for it. The component will automatically connect and allow you to easily send data back and forth between the two devices whether they are a mobile and a desktop or mobile to mobile. The demo source includes a sample desktop app for receiving the bar code and a mobile app for scanning the bar code. The blog post goes into detail on how to set it up all up. Here is a sample of the event that gets fired after the Discover function is called:
for I := 0 to RemoteManagers.Count-1 do
if (RemoteManagers[I].ManagerText = 'BarcodeReceiverManager') then
Break; // Break since we only want the first...
Lastly here is a mirror of the source code for these projects.
Mobile Bar Code Scanner App Tethers To Desktop With Delphi XE6 Firemonkey by Delphi XE5 XE6 XE7 XE8 10 Seattle Berlin Firemonkey, Delphi Android, Delphi IOS is licensed under a Creative Commons Attribution 4.0 International License.