B4J Question Is there a device model?

Sandman

Expert
Licensed User
Longtime User
In Android we can get the Phone.Model, and for iOS we can get the same using something like this.

But there isn't anything equivalent for B4J, right? I mean, what would that even be? What brand of computer it's running on, or something like that? (Surely not something we can get anyway, I imagine.)
 

mcqueccu

Well-Known Member
Licensed User
Longtime User
 
Upvote 0

Sandman

Expert
Licensed User
Longtime User
Yeah, I found that already. I think the answer is 'no'. I was just curious, it's not very important to me. Thanks
 
Upvote 0

cklester

Well-Known Member
Licensed User
There are Windows API calls you can make to get some of that data. Not sure how you'd do it from B4J. It would require interfacing with windows system dlls.
 
Upvote 0

Mark Read

Well-Known Member
Licensed User
Longtime User
It should be possible to use Jshell and execute the command: msinfo32 /report C:\TEMP\TEST.TXT which will give you a text file to read into your app.

Link
 
Upvote 0
Top