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...
end; Head over and check out the full blog post about app tethering and bar code scanning with Delphi XE6. David Intersimone also has a blog post up about it.
FMXExpress.com has over 700 tips and tricks for building cross platform apps on Android, IOS, OSX, Windows, and Linux with a single codebase and single UI using the FireMonkey framework found in Delphi and C++Builder.
FMXExpress covers top cross platform secrets for FireMonkey in C++Builder and Delphi XE5, XE6, XE7, XE8, Seattle, Berlin, Tokyo, Rio, and Sydney.