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...
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.
Lastly here is a mirror of the source code for these projects.
Any clue as to why this does not work for XE7?
What is the error?
Regard and greeting from Embarcadero Delphi 7..XE8 Programmer!
I installed Xe6 and building that APP, but
I cannot find in Xe6
Who know where these dcu are?
Use a Find In Files.. search (TextPad has a search like this) to search through the RTL directory and find what you are looking for.
Trying to run the application, I got
[Copy Error] Unable to copy file “librarylibarmeabi-v7alibMobileBarcodeKey.so” to “debutlibMobileBarcodeKey.so”. Could not find a part of the path ‘librarylibarmeabi-v7alibMobileBarcodeKey.so’
Where is this library? Where I should find it?
Try creating a new project and adding the forms/units from the old project to your new one.
Now it works.