I\'m following an example in this link and created a class as below
public class aChartExample { public Intent execute(Context context) { int[]
startActivity takes only activities. Not for all classes.
startActivity