Changed plain packagename to context.getPackageName()
Using the activity indicator inside a thread