de en es fr
Let the machine help
Light teasing, exhibition, BDSM, sissyfication, watersports... with sounds and pictures


Post new topic Reply to topic  [ 2 posts ] 
Author Message
 OS detection call?
PostPosted: Sat Mar 21, 2020 4:52 pm 
Offline
Addict
Is there a best practice to determine what OS the user of a script is running?

I see there is this:

if (SystemUtils.IS_OS_WINDOWS){
//do windows only stuff
}

if (SystemUtils.IS_OS_LINUX){
//do android only stuff
}

Has anyone used this in their scripts?


Top
 Profile Send private message 
 
 Re: OS detection call?
PostPosted: Fri Mar 27, 2020 4:23 pm 
Offline
Site Admin
User avatar
We have this to test Android vs Desktop :
Code:
if(System.getProperty("java.vm.name").contains("Dalvik"))


I never tried SystemUtils.IS_OS_WINDOWS


Top
 Profile Send private message 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010, 2015
This website uses session cookies only.