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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -