When I use my code in one class file, it runs perfectly:
package com.example.downloadfile; import java.io.File; import java.io.FileOutputStream; import java
I know its too late to help you but for others this may help.
Its so simple just Simply build an object of main class and than call the inner class like this
OuterMainClass outer = new OuterMainClass(); outer.new InnerAsyncClass(param) .execute();
Thanks