1. Download our Official Android App: Forums for Android!

Apps How to print the result of a method.

Discussion in 'Android Development' started by DrummerJoe, Apr 26, 2011.

  1. DrummerJoe

    DrummerJoe Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Apr 26, 2011

    Apr 26, 2011
    1
    0
    5
    Hello guys,


    I have a problem.I have textview,a textedit,and a button :

    Code (Text):
    1.  
    2.  public void onCreate(Bundle savedInstanceState) {
    3.         super.onCreate(savedInstanceState);
    4.         setContentView(R.layout.main);
    5.         final EditText TextEdit = (EditText) findViewById(R.id.TextEdit);  
    6.         final TextView mix =(TextView) findViewById(R.id.mix);
    7.         final Button button = (Button) findViewById(R.id.proces);
    8.         button.setOnClickListener(new View.OnClickListener() {
    9.             public void onClick(View v) {
    10.      
    11.              
    12.                 // Perform action when clicking
     

    Advertisement

  2. JordiDroid

    JordiDroid Member
    Rank:
    None
    Points:
    36
    Posts:
    38
    Joined:
    Apr 20, 2011

    Apr 20, 2011
    38
    2
    36
    Software Engineer
    Netherlands
    So, what is your problem?
     

Share This Page

Loading...