Ok, I worked it out!
@klaus I loaded your code into a small demo project and it also logged ** tablet ** 2 times as well. (I think I know why)
I now have the code in Activity_Create.
In my app (not the demo project but my real app) I noticed for some reason I had Activity.Finish in the Activity_Pause sub.
So what was happening was the page was loading but since it was rotating the screen it was running the code in Activity_Pause since the activity paused while it rotates the screen then it runs the code again.
I had in my Activity_Pause sub Activity.Finish which means while the screen rotates it would end the Activity and then will never show the layout since the activity had ended.
Now I removed the Activity.Finish from Activity_Pause and now it works just like it should.
I think it's also logging the ** tablet ** 2 times since it's running the code when the app first opens and then runs the code again after the screen rotates.
Thanks heaps for all that helped.