To calculate the factorial of a number in an Android application, you can create a simple Java function. Here's an example of how to do it. Make sure to define the UI elements in your XML layout file (activity_main.xml) and set their IDs accordingly.
That's it! You now have a basic Android application to calculate the factorial of a number.