InitApp for Android in XE8 Firemonkey


I am trying to get the following code examples to work:  Crossplatform OpenGL XE2/XE5 CubeMan3D Demo;

They work fine in Windows, but fail for the Android because InitApp is not found.

I assume this is because it moved to another unit, but I cannot find it in the document, on the web, or in any units I have looked for.  Does anyone know where it is?
8/2/2015 4:23:52 PM
embarcadero.delphi.firemonkey 4901 articles. 4 followers. Follow

1 Replies

Similar Articles

[PageSpeed] 18
Get it on Google Play
Get it on Apple App Store

From the author of CubeMan:

Well CubeMan3D works under XE8 if you add the unit Androidapi.NativeActivity and replace "InitApp" by "PANativeActivity(System.DelphiActivity)^.instance".

If you create a blank FMX application and replace the DPR by CubeMan3D.dpr you can select any target from the IDE. 

I have not yet been able to test, since my Android device stopped talking to the PC when I went to Windows 10 (another thread).
8/9/2015 11:12:15 PM