'How to make let the user select the location of the file which needs to be saved?

How do I make like this

When the user clicks to save the file an intent will get activated and tell the user where he wants to save that file



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source