Sample code to determine what platform an app is running on

My mind is blanking out here?

Does anyone have a snippet of code that allows an app to, at runtime, know what platform (iOS, Android, etc?) it is running on? I just need to do one thing differently, and I can’t for the life of me remember how.

Thanks in advance.

Dave

Disregard… I finally found it (I think):

String platform = System.getProperty ( "mobiledesigner.platform");

Dave

On Jan 21, 2013, at 1:45 PM, “Sutka, David” < David.Sutka@softwareag.com>

wrote:


My mind is blanking out here…

Does anyone have a snippet of code that allows an app to, at runtime, know what platform (iOS, Android, etc…) it is running on? I just need to do one thing differently, and I can’t for the life of me remember how.

Thanks in advance.

Dave