Code example for LocalActivityManager

Methods: getCurrentActivity

0
	    loginLoop.unregisterIntentReceiver();
	} 
	 
    public void startIntentService() { 
        // creating and starting an android service, which can be used for intents from every activity 
        Application androidApp = activityManager.getCurrentActivity().getApplication();
        //androidApp. 
    } 
	 
	/** 
	 * Opens the shared preference file. If none is found, a new one will be created. 
	 */ 
	public void initializePreferences() { 
	     
	    // open preferences file 
	    preferences = mContext.getSharedPreferences(Const.PREFERENCES, 0);
	    // check for first launch 
	    boolean isFirstLaunch = preferences.getBoolean("firstLaunch", true);
	    isDebugMode = Boolean.parseBoolean(
	            mContext.getResources().getString(R.string.pref_debug_mode));
	    // fetch all prefs from the localconfig.xml (new preferences have to be added here manually)