So i need to run an exe file in background for my application. i am using
try
{
Runtime r = Runtime.getRuntime();
Process p2 = r.exec("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"); //absolute or relative path
r.exec("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", false);
} catch (IOException e) {
e.printStackTrace();
}
but the application runs in foreground
What should I do to make it run in background.
edit: I would like to run chrome in background (i am a noob) I have no idea how to use a thread)