android input problem
<p>I have an android problem which generates a pie chart. There are two files in my project, mainActivity and drawChart. In mainActivity I put all the variables and the algorithm in. In drawChart I put the onDraw function. 
For now I want to generate some input areas. The problems are,
How should I generate the input? use XML or JAVA?
How should I pass the data we type in to the program?</p>

<p>Because I am a obsolutely beginner, so please teach me a little bit specifically.
Thank you very much.</p>
