Android Convert Activity to Fragment

To convert your activity to a fragment there are a few changed you’ll have to do. First of all you change extends Activity to extends Fragment in those classes.

Before:

public class Main extends Activity {
}

After:

public class Main extends Fragment {
}

Next step

Posted in Android, Tips and Tricks Tagged with: , ,