Back to project page Estimotes-Xamarin.
The source code is released under:
Apache License
If you think the Android project Estimotes-Xamarin 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.estimote.examples.demos; /* ww w . j a v a 2s .com*/ import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; /** * Shows all available demos. * * @author wiktor@estimote.com (Wiktor Gworek) */ public class AllDemosActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.all_demos); findViewById(R.id.distance_demo_button).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(AllDemosActivity.this, ListBeaconsActivity.class); intent.putExtra(ListBeaconsActivity.EXTRAS_TARGET_ACTIVITY, DistanceBeaconActivity.class.getName()); startActivity(intent); } }); findViewById(R.id.notify_demo_button).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(AllDemosActivity.this, ListBeaconsActivity.class); intent.putExtra(ListBeaconsActivity.EXTRAS_TARGET_ACTIVITY, NotifyDemoActivity.class.getName()); startActivity(intent); } }); findViewById(R.id.characteristics_demo_button).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(AllDemosActivity.this, ListBeaconsActivity.class); intent.putExtra(ListBeaconsActivity.EXTRAS_TARGET_ACTIVITY, CharacteristicsDemoActivity.class.getName()); startActivity(intent); } }); } }