I try to write an Android service, which will use IdHTTP component to send messages to the server. I just put IdHTTP1 on TAndroidServiceDM and try to Run app on Phone (Android 4.2.2) I get error: "Project LocSensDemo.apk raised exception class Exception with message 'Activity not found, maybe you are in a service'" in FMX.Platform.Android line 1792 "Activity := TAndroidHelper.Activity;" and then "Project LocSensDemo.apk raised exception class Segmentation fault (11)". Service crashes.
How to solve this problem?