I need to call this class from a background thread.
ChartPenData.main(arguments);
How can I do that?
Thread thread = new Thread(); thread = ChartPenData.main(arguments); thread.run();
Instead of creating thread from Class you can do this,
Thread myThread = new Thread() { public void run() { ChartPenData.main(arguments); } }; myThread.start();