Remotely Control Apps Via App Tethering Or REST In #Delphi XE8 Firemonkey On #Android And #IOS

Delphi XE8 Firemonkey Remote Control App Tethering Android IOSIf you are building enterprise applications with Delphi XE8 Firemonkey you may run into the situation where you need to remotely control your app on a user’s device without being in front of the device. Firemonkey makes it easy to remotely control an app on Android, IOS, OSX, and Windows. I have created some sample source code which will take a screenshot of the current application and send it to a second application via the app tethering components. The second application will allow you to click on the screenshot and execute the click on the first application. Basically it works very similarly to how Remote Desktop works in windows. Obviously this is a very rudimentary version as it sends the entire screen each time and is not optimized to only send only the parts of the screen that have changed. You could also deploy this same type of system using the TRESTClient instead of the app tethering components as the idea is the same. Basically you could have a support section in your app where the user would click a Start Remote Session or Sync button. Your app would begin sending screenshots to the remote server via app tethering or REST. Each time the app sends a screenshot it could also listen for a click. Once a click is received it could execute the click in the local app which would complete the remote control loop. This same type of functionality can be used to build a Firemonkey test harness. The magic happens in the custom FindControlAtPoint function which was developed for the TImageCacheLayout component. This same idea and code should also work in Appmethod and maybe C++Builder. Here is a code snippet of that function:

Download the sample source code for remotely controlling an app in Delphi XE8 Firemonkey on Android and IOS.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Remotely Control Apps Via App Tethering Or REST In #Delphi XE8 Firemonkey On #Android And #IOS 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.

Leave a Reply

Show Buttons
Hide Buttons
Read previous post:
Delphi XE8 Firemonkey Test Harness Android IOS
Build Your Own Test Harness For #Delphi XE8 Firemonkey Apps On #Android And #IOS

If you are building complex enterprise applications with Delphi XE8 Firemonkey you may want to look into building a test...

Close