Your question is a little too broad. Try asking a question about a specific problem, not "how do I do something general". See the FAQ for more information about how to ask a question.
Here is a vague idea though:
You'll want to have a canvas object that can allow the user to draw to the screen. Here is a link on SO about it. Android drawing a line to follow your finger
Then you'll want to output that bitmap as a file: Save bitmap to location