es.prodevelop.gvsig.mobile.common
Class ProcessUtils

java.lang.Object
  extended byes.prodevelop.gvsig.mobile.common.ProcessUtils

public class ProcessUtils
extends java.lang.Object

Utility class with JNI methods used by the PDA only.

Author:
jldominguez

Constructor Summary
ProcessUtils()
           
 
Method Summary
static java.lang.String getSDCardPath()
          Gets PDA's extension card root path.
static boolean startOrForeground(java.lang.String title_part, java.lang.String exec_file_full_path, java.lang.String exec_parameters)
          This method is used to prevent a second instance of the application (it is the common behavior of the pda applications.)
static void touch()
          Utility empty method to force the load of the library.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessUtils

public ProcessUtils()
Method Detail

startOrForeground

public static boolean startOrForeground(java.lang.String title_part,
                                        java.lang.String exec_file_full_path,
                                        java.lang.String exec_parameters)
                                 throws java.lang.UnsatisfiedLinkError
This method is used to prevent a second instance of the application (it is the common behavior of the pda applications.) The exe file provided will only be executed if there is no window currently in the system containing the given string.

Parameters:
title_part - string to be searched
exec_file_full_path - exe file
exec_parameters - exe parameters
Returns:
true if the exe file was started, false otherwise
Throws:
java.lang.UnsatisfiedLinkError

getSDCardPath

public static java.lang.String getSDCardPath()
Gets PDA's extension card root path. If the card has more than one card, only one of them will be returned.

Returns:
PDA's extension card root path or NULL if no card was found

touch

public static void touch()
Utility empty method to force the load of the library.