Added AndroidHeadlessPlatform.registerApp() method to configure it without requiring an activity.
Also, added setActivity() method to set the currently active activity.