/** * Get the network ips. */ public List<InetAddress> getNetworkIps() { // The indirection is needed because this Class is loaded even if it's not instanciated on Android. return SNonAndroid.getNetworkIps(); }
/** * Opens a File with the default application. * @param path * @throws IOException */ public IFuture<Void> openFile(String path) throws IOException { // The indirection is needed because this Class is loaded even if it's not instantiated on Android. SNonAndroid.openFile(path); return IFuture.DONE; }
/** * Workaround for AWT/Swing memory leaks. */ public static void clearAWT() { if(SReflect.HAS_GUI) { SNonAndroid.clearAWT(); } }
ResourceBundle cat = SNonAndroid.findResourceBundle(name, currentLocale, cl); if (cat != null) { catalog = cat;
/** * Get the home directory. */ public static File getDefaultDirectory() { // Todo: default directory on android? return SReflect.isAndroid() ? new File(System.getProperty("user.home")) : SNonAndroid.getDefaultDirectory(); }
/** * Get the display name (e.g. of a system drive). * Returns null on android. */ public static String getDisplayName(File file) { return SReflect.isAndroid() ? null : SNonAndroid.getDisplayName(file); }
/** * Get the home directory. */ public static File getHomeDirectory() { return SReflect.isAndroid() ? new File(System.getProperty("user.home")) : SNonAndroid.getHomeDirectory(); }
/** * Get the files of a directory. */ public static File[] getFiles(File file, boolean hiding) { // Todo: hidden files on android? return SReflect.isAndroid() ? file.listFiles() : SNonAndroid.getFiles(file, hiding); }
/** * Get the mac address. * @return The mac address. */ public static String[] getMacAddresses() { if(macs==null) { if(!SReflect.isAndroid() || androidUtils().getAndroidVersion() > 8) { macs = SNonAndroid.getMacAddresses(); } else { macs = new String[0]; } } return macs; }
ResourceBundle cat = SNonAndroid.findResourceBundle(name, currentLocale, cl); if (cat != null) { catalog = cat;
/** * Get the network ips. */ public IFuture<List<InetAddress>> getNetworkIps() { // The indirection is needed because this Class is loaded even if it's not instantiated on Android. return new Future<List<InetAddress>>(SNonAndroid.getNetworkIps()); }
/** * Opens a File with the default application. * @param path * @throws IOException */ public void openFile(String path) throws IOException { // The indirection is needed because this Class is loaded even if it's not instanciated on Android. SNonAndroid.openFile(path); } }
ResourceBundle cat = SNonAndroid.findResourceBundle(name, currentLocale, cl); if (cat != null) { catalog = cat;
/** * Get the network ips. */ public IFuture<List<InetAddress>> getNetworkIps() { // The indirection is needed because this Class is loaded even if it's not instantiated on Android. return new Future<List<InetAddress>>(SNonAndroid.getNetworkIps()); }
/** * Opens a File with the default application. * @param path * @throws IOException */ public IFuture<Void> openFile(String path) throws IOException { // The indirection is needed because this Class is loaded even if it's not instantiated on Android. SNonAndroid.openFile(path); return IFuture.DONE; }