Back to project page AndroidWeatherBuoyDemo.
The source code is released under:
Apache License
If you think the Android project AndroidWeatherBuoyDemo 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.kevinrschultz.weatherbuoy.sandbox; //w w w. j a v a2 s. c o m import android.app.Activity; import android.content.Context; import android.content.Intent; /** * @author Kevin Schultz (kschultz@gilt.com) */ public class ActivityLaunchingListItem { private final String displayName; private final Class<? extends Activity> activityClass; public ActivityLaunchingListItem(String displayName, Class<? extends Activity> activityClass) { this.displayName = displayName; this.activityClass = activityClass; } public Intent getIntent(Context context) { return new Intent(context, activityClass); } @Override public String toString() { return displayName; } }