I worked on the application using API 14, but I had to switch to API 10. The application has fragments and activity fragments, I imported libraries and used getFragmentSupportManager because it is v4. However, I have the following error:

I created a dummy application with Drawer layout and fragments with API 10 from the very beginning, it had the same line in the MyActivity file, and that was not an error. Here is my code:
package az.test2; import android.app.Activity; import android.os.Bundle; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.support.v4.widget.DrawerLayout; import android.support.v7.app.ActionBarActivity; import android.support.v7.app.ActionBar; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.view.Gravity; public class MyActivity extends ActionBarActivity implements NavigationDrawerFragment.NavigationDrawerCallbacks { private NavigationDrawerFragment mNavigationDrawerFragment; private CharSequence mTitle; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_my); mNavigationDrawerFragment = (NavigationDrawerFragment) getSupportFragmentManager().findFragmentById(R.id.navigation_drawer); mTitle = getTitle();
I did everything I could, but this error seems very rare. Any help would be greatly appreciated.
source share