Application calculates value of Ackermann function using AsyncTask. Common problem of AsyncTask such as view leaking, configuration change handling are solved via retain fragment, design principles (SOLID).
Ackermann function values is calculated recursively:
Action | Screenshot |
---|---|
Start application | |
Calculation process | |
Calculation result | |
Stack overflow error result | |
Wrong arguments error result |
Android developers documentation:
- AsyncTask - https://developer.android.com/reference/kotlin/android/os/AsyncTask
- Handling configuration changes with fragments - https://www.androiddesignpatterns.com/2013/04/retaining-objects-across-config-changes.html
Java documentation:
Ackermann function description: