How to create an SOP app shortcut icon using RXOP
The following code sample shows how to create an application icon using RXOP
Notes:
- The sample uses hard coded values and sample app. It is only meant to prove RXOP’s usage.
- If needed, change the RXOP library version so as to use the latest RXOP library release.
import java.io.IOException;
import ricoh.rxop.rxconf.Configurator;
public class TestIconInstall {
public static final String VERSION = "3.8.1";
public static void main(String[] args) {
System.err.println("TestIconInstall using rxconf.jar version: " + TestIconInstall.VERSION);
String machine = "xxx.xx.x.xx";
String username = "admin";
String password = "";
Configurator conf = null;
//using Scan GUI Service Sample to test
String iconApplicationID = "jp.co.ricoh.ssdk.sample.app.scan.scanexri";
try {
conf = Configurator.create(machine, username, password);
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
try {
conf.setHomeScreenIconSetting(iconApplicationID, Boolean.TRUE);
System.out.println("completed ... ");
} catch (Exception e) {
e.printStackTrace();
}
}
}
Attachment | Size |
---|---|
TestIconInstallationRXOP.zip (185.24 KB) | 185.24 KB |