Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - package org.golang.example.bind;
 - import android.app.Activity;
 - import android.os.Bundle;
 - import android.widget.TextView;
 - import go.hello.Hello;
 - public class MainActivity extends Activity {
 - private TextView mTextView;
 - @Override
 - protected void onCreate(Bundle savedInstanceState) {
 - super.onCreate(savedInstanceState);
 - setContentView(R.layout.activity_main);
 - mTextView = (TextView) findViewById(R.id.mytextview);
 - // Call Go function.
 - // String greetings = Hello.Greetings("Android and Gopher");
 - // mTextView.setText(greetings + " - " + Hello.Sum(3, 5));
 - //Hello.main();
 - Hello.main();
 - }
 - }
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment