if you are sure to have a file temp.xml
inside /assets
folder, (must be at the same level of /src
and /res
inside your project), just try a refresh, F5.
the way that you are loading the file from assets
is correct:
InputStream is = getApplicationContext().getAssets().open("temp.xml");