sending data from activity to a method implemented in a fragment -
i have read through many posts on here sending data activity fragment or should invoking method in main activity implemented in fragment class whhat have described below. im looking way other implementing interfaces or putting code in oncreate of activity or oncreateview of fragment. have function in fragment class
public void speaker(string msg){ tts.speak(msg, texttospeech.queue_flush, null); }
is possible call function anywhere in main activity pass string value function speaker(text); , how accomplish other interfaces or putting code in oncreate or oncreateview??
Comments
Post a Comment