Is it possible to get the current account information (on computer) things like their username and profile picture using Java? any help would be appreciated
thanks,
TC
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
See http://download.oracle.com/javase/tutorial/essential/environment/sysprop.html for a a list of system properties available to the JVM on every OS.
You can then access a property using
String prop = System.getProperty("user.name").There’s no universal access to any profile picture that I know of. There might be OS-specific libraries for that.