TabActivity and Fragments Combo
===

Im aware that ActivityGroup has been covered here. But i dont see any question about Combination of ActivityGroup  and Fragment. Well i want to i want to go from one form to another using intent without removing my tab even if i go to another form.. I have done this before using  ActivityGroup but not with fragment. But now, i change my mind and decided to have another style and use another component. So i use Jakewharton viewpager. But it seems that fragment and ActivityGroup dont want each other.. T_T.. heres my code.

This is my ActivityGroup 
    public class Group_home_tab extends ActivityGroup {
    
            // Keep this in a static variable to make it accessible for all the nested activities, lets them manipulate the view
    	public static Group_home_tab group;
    
            // Need to keep track of the history if you want the back-button to work properly, don't use this if your activities requires a lot of memory.
    	private ArrayList<View> history;
    
    	@Override
    	protected void onCreate(Bundle savedInstanceState) {
    	      super.onCreate(savedInstanceState);
    	      this.history = new ArrayList<View>();
    	      group = this;
    			CLassess_activity gl = new CLassess_activity();
    
    			int tClass = Main.hClass;
    
    
    	      View view = getLocalActivityManager().startActivity("CitiesActivity", new
    	    	      							Intent(this,PremiumTab.class)
    	    	      							.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP))
    	    	                                .getDecorView();
    
            
    	      	replaceView(view);
    			System.gc();
    		    Runtime.getRuntime().gc();
    	   }
    }


and here is my fragment that will use the Activity group

    public class PremiumTab  extends Fragment{
    	private LayoutInflater  mInflater;
    	 private Intent intent;
    	 View v1;
    	@Override
    	public View onCreateView(LayoutInflater inflater, ViewGroup container,
    			Bundle savedInstanceState) {
    		// TODO Auto-generated method stub
    		mInflater = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    		View view = inflater.inflate(R.layout.sub_home_tab, container, false);
    		((Button)view.findViewById(R.id.cmdemergency)).setOnClickListener(new OnClickListener() {
    			
    			
    			
    			public void onClick(View v) {
    				intent = new Intent(Main.current_act,Emergency_hotline.class);
    					Toast.makeText(Main.current_act, "You Clicked me", Toast.LENGTH_SHORT).show();
    
    				   v1 = Group_home_tab.group.getLocalActivityManager()
    					        .startActivity("show_city",intent 
    					        .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP))
    					        .getDecorView();
    				   Group_home_tab.group.replaceView(v1);
    			}
    		});
    		return view;
    	}
    }

and Here is my error:

    07-31 07:07:45.535: E/AndroidRuntime(7422): FATAL EXCEPTION: main
    07-31 07:07:45.535: E/AndroidRuntime(7422): java.lang.NullPointerException
    07-31 07:07:45.535: E/AndroidRuntime(7422): 	at com.eSubic.premium.PremiumTab$1.onClick(PremiumTab.java:32)
    07-31 07:07:45.535: E/AndroidRuntime(7422): 	at android.view.View.performClick(View.java:2552)
    07-31 07:07:45.535: E/AndroidRuntime(7422): 	at android.view.View$PerformClick.run(View.java:9229)
    07-31 07:07:45.535: E/AndroidRuntime(7422): 	at android.os.Handler.handleCallback(Handler.java:587)
    07-31 07:07:45.535: E/AndroidRuntime(7422): 	at android.os.Handler.dispatchMessage(Handler.java:92)
    07-31 07:07:45.535: E/AndroidRuntime(7422): 	at android.os.Looper.loop(Looper.java:130)
    07-31 07:07:45.535: E/AndroidRuntime(7422): 	at android.app.ActivityThread.main(ActivityThread.java:3701)
    07-31 07:07:45.535: E/AndroidRuntime(7422): 	at java.lang.reflect.Method.invokeNative(Native Method)
    07-31 07:07:45.535: E/AndroidRuntime(7422): 	at java.lang.reflect.Method.invoke(Method.java:507)
    07-31 07:07:45.535: E/AndroidRuntime(7422): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
    07-31 07:07:45.535: E/AndroidRuntime(7422): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:624)
    07-31 07:07:45.535: E/AndroidRuntime(7422): 	at dalvik.system.NativeStart.main(Native Method)


I didnt give much details though.. 
If its not posible to combine Activity group and fragment. Any ideas of what else can i use that will mimic the activity group and be compatible with fragment?