Thursday 15 July 2010

Playing songs with android fragment -



Playing songs with android fragment -

i'm new fragments , have built simple app can play mp3. have 1 fragmentactivity containing tabfragments. 1 tabfragment listfragment contains list of songs, , other 1 fragment displays music player. can play music when open app, when click song in list, have no thought how open "play music" fragment , play song clicked. help me solve problem.

try this:

int tabindex = 3; actionbar actionbar = getactivity().getactionbar(); actionbar.selecttab(actionbar.gettabat(tabindex));

where tabindex index of music player tab.

android android-fragments fragment music-player android-music-player

No comments:

Post a Comment