This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public boolean runningOnMainThread() { | |
return Looper.getMainLooper().getThread() == Thread.currentThread(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.myapplication | |
// please note - the below is a pseudo-code and in a "normal" app all the interfaces and classes | |
// would be in different folders and/or packages | |
// also,the menu navigation could be a bit more sophisticated and in a real app I'd also add | |
// password handling logic | |
// interfaces to handle different types of banking operations | |
interface AccountOperationsHandler { |