Back to project page robotronic.
The source code is released under:
Copyright (C) 2011 by Drew Schrauf Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the So...
If you think the Android project robotronic listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.drewschrauf.example.robotronic; /*from w ww .jav a 2 s .com*/ import android.app.Activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class ExampleHome extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.home); final Context context = this; Button button1 = (Button) findViewById(R.id.Button01); Button button2 = (Button) findViewById(R.id.Button02); button1.setOnClickListener(new OnClickListener() { public void onClick(View v) { context.startActivity(new Intent(context, ExampleSimple.class)); } }); button2.setOnClickListener(new OnClickListener() { public void onClick(View v) { context.startActivity(new Intent(context, ExampleList.class)); } }); } }