samedi 31 janvier 2015

how to detect if code is running on android or java se?


Vote count:

0




I have a library that will be run on either Android or Java SE. The library has different behaviour depending on the runtime, for example:



boolean runningOnJavaSE = isRunningOnJavaSE();
if (runningOnJavaSE)
{
doJavaSESetup();
}
else
{
doAndroidSetup();
}


How can this be done?


Many thanks.



asked 1 min ago







how to detect if code is running on android or java se?

Aucun commentaire:

Enregistrer un commentaire