openmrs-android-sdk/src/main/java/com/openmrs/android_sdk/library/OpenmrsAndroid.java
/**
     * Initialize sdk.
     *
     * @param applicationContext the application context
     */
Initialize sdk.
@param applicationContext the application context
Initialize sdk . @param applicationContext the application context
public static void initializeSdk(Context applicationContext) {
        if (instance == null) {
            synchronized (OpenmrsAndroid.class) {
                if (instance == null) {
                    instance = applicationContext;
                    if (externalDirectoryPath == null) {
                        externalDirectoryPath = applicationContext.getExternalFilesDir(null).toString();
                    }
                    System.out.println(instance.toString());
                }
            }
        }
    }
public static void initializeSdk ( Context applicationContext ) { if ( instance == null ) { synchronized ( OpenmrsAndroid . class ) { if ( instance == null ) { instance = applicationContext ; if ( externalDirectoryPath == null ) { externalDirectoryPath = applicationContext . getExternalFilesDir ( null ) . toString ( ) ; } System . out . println ( instance . toString ( ) ) ; } } } }
Initialize sdk.
Initialize sdk .