[Android]: Dismiss dialog when error occur
[Android]: Merge endpoint constants
[Android]: Remove wrong import