Code example for LocalActivityManager

Methods: getCurrentActivity

0
		} catch (Exception e) {
			optimum_visible_items_in_portrait_mode = 5;
		} 
 
		int screen_width = getWindowManager().getDefaultDisplay().getWidth();
		int width;
		if (intentList.size() <= optimum_visible_items_in_portrait_mode) {
			width = screen_width / intentList.size();
		} else { 
 
			width = 64;// 320/5;
		} 
		RadioStateDrawable.width = width;
		RadioStateDrawable.screen_width = screen_width;
		buttonLayoutParams = new RadioGroup.LayoutParams(width,
				RadioGroup.LayoutParams.WRAP_CONTENT);
 
		for (int i = 0; i < intentList.size(); i++) {
			TabBarButton tabButton = new TabBarButton(this);
			int[] iconStates = (int[]) states.get(i);
			if (iconStates.length == 1)