[android-developers] Re: how to add progress bar with media Player??????

2010-04-27 Thread ulqui
up :p On 23 avr, 13:12, ulqui wrote: > up > > On 22 avr, 13:45, ulqui wrote: > > > > > up please > > i tried > > > public void updateTime(){ > >     int ttld=mMediaPlayer.getDuration(); > >          int nowd=mMediaPlayer.getCurrentPosition(); > >          int tremaning=(ttld-nowd); > >          

[android-developers] Re: how to add progress bar with media Player??????

2010-04-23 Thread ulqui
up On 22 avr, 13:45, ulqui wrote: > up please > i tried > > public void updateTime(){ >     int ttld=mMediaPlayer.getDuration(); >          int nowd=mMediaPlayer.getCurrentPosition(); >          int tremaning=(ttld-nowd); >          String s=getString(tremaning); >          TextView tv=(TextView)

[android-developers] Re: how to add progress bar with media Player??????

2010-04-22 Thread ulqui
up please i tried public void updateTime(){ int ttld=mMediaPlayer.getDuration(); int nowd=mMediaPlayer.getCurrentPosition(); int tremaning=(ttld-nowd); String s=getString(tremaning); TextView tv=(TextView) findViewById(R.id.listMusique); tv.setText(

[android-developers] Re: how to add progress bar with media Player??????

2010-04-22 Thread ulqui
up please i tried public void updateTime(){ int ttld=mMediaPlayer.getDuration(); int nowd=mMediaPlayer.getCurrentPosition(); int tremaning=(ttld-nowd); String s=getString(tremaning); TextView tv=(TextView) findViewById(R.id.listMusique); tv.setText(

[android-developers] Re: how to add progress bar with media Player??????

2010-04-21 Thread ulqui
hello thx a lot for your example it works perfectly ^^ you save me :p Now i will put also the duration of the track with time it s also a progressbar style or other ? thx alot for your help On 20 avr, 13:17, ulqui wrote: > ok > > thx a lot for your help > I will try this > > thx ^^ > > On

[android-developers] Re: how to add progress bar with media Player??????

2010-04-20 Thread ulqui
ok thx a lot for your help I will try this thx ^^ On 19 avr, 16:56, Mark Murphy wrote: > ulqui wrote: > > hi > > > i am currently working in a media player application with a progress > > bar. > > It work well but i am searching for a listener or something that will > > make the progressbar mov

[android-developers] Re: how to add progress bar with media Player??????

2010-04-19 Thread ulqui
hi i am currently working in a media player application with a progress bar. It work well but i am searching for a listener or something that will make the progressbar move each second the track is playing but have found nothing. i had tried private ProgressBar barre; private int du

[android-developers] Re: how to add progress bar with media Player??????

2008-07-02 Thread Fräntz Miccoli
I'm using the last SDK m5-rc15, and getDuration() works fine on mp4 and m4v. I've read that if the mediafile isn't correct, getDuration may crash. Fräntz On 2 juil, 09:45, bins <[EMAIL PROTECTED]> wrote: > hi.. > >   MediaPlayer.isPlaying() is not working in my sdk,and MediaPlayer. > getDuration

[android-developers] Re: how to add progress bar with media Player??????

2008-07-02 Thread bins
hi.. MediaPlayer.isPlaying() is not working in my sdk,and MediaPlayer. getDuration() also not working. is this function working?? bins... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers

[android-developers] Re: how to add progress bar with media Player??????

2008-07-01 Thread David Given
Josh Guilfoyle wrote: > Simply using the activities message loop to schedule an update message > every second. The resolution of this timer will be sufficient to > report seconds of play to the user, however if you feel that it is > necessary to calibrate further you can invoke > MediaPlayer#getC

[android-developers] Re: how to add progress bar with media Player??????

2008-07-01 Thread Josh Guilfoyle
Simply using the activities message loop to schedule an update message every second. The resolution of this timer will be sufficient to report seconds of play to the user, however if you feel that it is necessary to calibrate further you can invoke MediaPlayer#getCurrentPosition inside your messa