package com.APmarketplace;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class APmarketplace extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        //Button button = (Button)findViewById(R.id.button1);
        //button.setOnClickListener(new Button.OnClickListener(){
         //public void onClick(View v)
         //{
            //startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://naver.com")));
            //}
        //});
        Button button1 = (Button)findViewById(R.id.button1);
        Button button2 = (Button)findViewById(R.id.button2);
        button1.setOnClickListener(mClickListeners);
     button2.setOnClickListener(mClickListeners);
    }
   
        Button.OnClickListener mClickListeners=new View.OnClickListener(){
     public void onClick(View v){
      switch(v.getId()){
      case R.id.button1:
       startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://naver.com"))); 
      break;
      case R.id.button2:
       startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://naver.com"))); 
      break;
      }

     }
        };
       }

 

 

다음과 같이 실행했을 경우 run이 되지 않습니다.

오류는 뜨지 않는데요

완전 초짜 입니다.