Back to project page dandy.
The source code is released under:
GNU General Public License
If you think the Android project dandy 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.workhabit.drupal.publisher.support; /*w w w. ja v a2 s . c o m*/ import android.app.Activity; import android.content.Context; import android.content.Intent; import android.view.View; import com.workhabit.drupal.publisher.DrupalHeadlineNodeListActivity; import com.workhabit.drupal.publisher.DrupalTaxonomyListActivity; import com.workhabit.drupal.publisher.R; /** * Copyright 2009 - WorkHabit, Inc. - acs * Date: 11/12/10, 10:49 AM */ public class BottomNavClickHandler { public static void bottomNavOnClick(View v, Activity a) { Intent intent = null; Context context = a.getApplicationContext(); switch (v.getId()) { case R.id.button_headlines: intent = new Intent(context, DrupalHeadlineNodeListActivity.class); break; case R.id.button_categories: intent = new Intent(context, DrupalTaxonomyListActivity.class); break; case R.id.button_settings: break; } if (intent != null) { a.startActivity(intent); } } }