Resolution
If you notice in lines 2 and 3 (49 and 50 in the original)
I tried to add the tabs to the action bar
and then in lines 5 and 6 (52 and 53 in the original)
I tried to add the listener to the tabs
In this case
it actually matters what order you try and do things in
Before you add a tab to the action bar it MUST have a listener added to it
otherwise you will get an exemption at run time
ALSO I placed the code for the NavTabListener class in a more sensible place
I placed it in the main body of the DynamicFragment class rather than placing it in the middle of
the onCreate() method
The Finished Code