Hopefully this is an easy fix, but for the moment is is boggling me (Actionscript programmer new to Java programming).
I have a string variable coming from getExtra
Strings are Objects, and to do correct Object equality comparisions, you need to use
dir.equals("content");
or better yet (to avoid possible null pointer exceptions)
"content".equals(dir);