android - Call Public void -
i have public void in 1 class , want call in class when creates nothing seems working. here code of firts activity
public class activityone extends activity { public void actionc() { //actions } does know how call on second class?
in general, need have instance of activityone class in order call instance method.
to create instance, use constructor like:
activityone = new activityone(); a.actionc(); i'm not sure want though, because activitys created android system , should handle oncreate method instead.
Comments
Post a Comment