protected void executeNewCmd(String cmd, String args) { Intent i = new Intent(MainService.ACTION_COMMAND); i.putExtra("cmd", cmd); if (args != null) { i.putExtra("args", args); } i.setClassName("com.googlecode.gtalksms", "com.googlecode.gtalksms.MainService"); sMainService.startService(i); }