Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android2-田慧娟-1507094204 #42

Open
tianhuijuann opened this issue Jan 3, 2016 · 0 comments
Open

Android2-田慧娟-1507094204 #42

tianhuijuann opened this issue Jan 3, 2016 · 0 comments

Comments

@tianhuijuann
Copy link

public class SecondActivity extends Activity{
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_second);
        Button button2=(Button)findViewById(R.id.button_2);
        button2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(Intent.ACTION_VIEW);
                intent.setData(Uri.parse("Http://www.baidu.com"));
                startActivity(intent);

            }
        });

    }
}
@tianhuijuann tianhuijuann changed the title an Android2-田慧娟-1507094204 Jan 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant