I am embarrassed to distinguish between context and activity. what is the context? Does the context have one action? will the context change if the action is changed?
I have a game that has multiple activity. every action for every part, splash screen, menu, game screen, etc. The problem is that I have one single SoundManager that uses soundpool as a sound player. I want to load every sound into a splashscreen. But after I look at it again, what about the context?
public void loadSound(Context context, int resId, String name) { int id = sounds.load(context, resId, priority) }
if I load sounds into Activity SplashScreen, how can I play sound in GameScreen Activity? different context right?
android android-activity
Fugogugo Mar 28 '11 at 3:24 2011-03-28 03:24
source share