Advertisement
Guest User

Untitled

a guest
Oct 1st, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.68 KB | None | 0 0
  1. package org.golang.example.bind;
  2.  
  3. import android.app.Activity;
  4. import android.os.Bundle;
  5. import android.widget.TextView;
  6.  
  7. import go.hello.Hello;
  8.  
  9.  
  10. public class MainActivity extends Activity {
  11.  
  12.     private TextView mTextView;
  13.  
  14.     @Override
  15.     protected void onCreate(Bundle savedInstanceState) {
  16.         super.onCreate(savedInstanceState);
  17.         setContentView(R.layout.activity_main);
  18.         mTextView = (TextView) findViewById(R.id.mytextview);
  19.  
  20.         // Call Go function.
  21. //        String greetings = Hello.Greetings("Android and Gopher");
  22. //        mTextView.setText(greetings + " - " + Hello.Sum(3, 5));
  23.         //Hello.main();
  24.  
  25.         Hello.main();
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement