aqui esta meu código
package br.com.k19.android.cap04_02;
import android.app.Activity;
import android.view.Menu;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.action1);
Button viewSiteButton = (Button)findViewById(R.id.view_site_button);
Button sendEmailButton = (Button)findViewById(R.id.send_email_button);
Button makecCallButton = (Button)findViewById(R.id.make_call_button);
viewSiteButton.setOnClickListener(new OnClickListener(){
@Override
public void onClick(View v){
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://k19.com.br"));
startActivity(intent);
}
}); >>>>> ESTA GERANDO ERRO NESSA LINHA. EU NÃO ENTENDO POR ESTA GERANDO ERRO NESSA LINHA. NOME DO ERRO syntax, erro, insert "}" to complete
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.activity_main, menu);
return true;
}
}
o xml chamado action1
<?xml version="1.0" encoding="utf-8"?><Button
android:id="@+id/view_site_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/view_site_label"/>
<Button
android:id="@+id/send_email_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/send_email_label"/>
<Button
android:id="@+id/make_call_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/make_call_label"/>
alguem pode me ajudar
