Android Convert Intent to Fragment

To use Intent in a Fragment class you can convert it this way. For the fa object see the previous step.

Before

intent = getIntent();

to

fa = super.getActivity();
intent = fa.getIntent();

Previous step.

Next step.

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