Jake Viewpager and Fragment returning null
===

i have a problem on jake's viewpager tab. I have two forms, One for Home View and other for Favorites. Inside the home view has a 3 buttons. when i clicked the 1st button it will on another form using fragment.. i use a dynamic fragment. but when i did this i shows an error saying this:

    07-31 09:48:08.537: E/AndroidRuntime(10912): java.lang.IllegalArgumentException: No view found for id 0x7f050003 for fragment Emergency_hotline{2afc4f38 #2 id=0x7f050003}
    07-31 09:48:08.537: E/AndroidRuntime(10912): 	at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:864)
    07-31 09:48:08.537: E/AndroidRuntime(10912): 	at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1080)
    07-31 09:48:08.537: E/AndroidRuntime(10912): 	at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:622)
    07-31 09:48:08.537: E/AndroidRuntime(10912): 	at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1416)
    07-31 09:48:08.537: E/AndroidRuntime(10912): 	at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:420)
    07-31 09:48:08.537: E/AndroidRuntime(10912): 	at android.os.Handler.handleCallback(Handler.java:587)
    07-31 09:48:08.537: E/AndroidRuntime(10912): 	at android.os.Handler.dispatchMessage(Handler.java:92)
    07-31 09:48:08.537: E/AndroidRuntime(10912): 	at android.os.Looper.loop(Looper.java:130)
    07-31 09:48:08.537: E/AndroidRuntime(10912): 	at android.app.ActivityThread.main(ActivityThread.java:3701)
    07-31 09:48:08.537: E/AndroidRuntime(10912): 	at java.lang.reflect.Method.invokeNative(Native Method)
    07-31 09:48:08.537: E/AndroidRuntime(10912): 	at java.lang.reflect.Method.invoke(Method.java:507)
    07-31 09:48:08.537: E/AndroidRuntime(10912): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
    07-31 09:48:08.537: E/AndroidRuntime(10912): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:624)
    07-31 09:48:08.537: E/AndroidRuntime(10912): 	at dalvik.system.NativeStart.main(Native Method)


here is my code

		@Override
		public View onCreateView(LayoutInflater inflater, ViewGroup container,
				Bundle savedInstanceState) {
			// TODO Auto-generated method stub
			View view = inflater.inflate(R.layout.sub_home_tab, container, false);
			((Button)view.findViewById(R.id.cmdemergency)).setOnClickListener(this);
			return view;
		}


		public void onClick(View v) {
			// TODO Auto-generated method stub
			Toast.makeText(Main.current_act,"Clicked Me",Toast.LENGTH_LONG).show();
			fm = getFragmentManager();
        ft = fm.beginTransaction();
        ft.replace(R.id.fragment_content, new Emergency_hotline());
        
        ft.addToBackStack("tag"); /* this is to enable back button..*/
        ft.commit(); 
		}



this the form i am calling

    public class Emergency_hotline extends Fragment {
    	private static final int ALERT_DIALOG = 1;
    	boolean aw;
    	 boolean call = false;
    	@Override
    	public View onCreateView(LayoutInflater inflater, ViewGroup container,
    			Bundle savedInstanceState) {
    		// TODO Auto-generated method stub
    		View view = inflater.inflate(R.layout.emergency_hotline, container, false);
    
    		return view;
    	}
    }

and my xml

    <FrameLayout
        android:id="@+id/fragment_content"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" />


Ahm i missing something? thanks..

