[android-developers] problem with Mediaplayer onBufferingUpdateListener and onPreparedListener.

2011-09-22 Thread Boram Han

I am using MediaPlayer to play music through url. (streaming)
It is playing fine most of deivces.
But for some devices it works strangely.
Here is log.

--
09-22 14:49:39.650: DEBUG/MusicPlayService(2862): onBufferingUpdate,
percent=7
09-22 14:49:39.650: DEBUG/MusicPlayService(2862): false
09-22 14:49:39.650: DEBUG/MusicPlayService(2862): onBufferingUpdate,
percent=100
09-22 14:49:39.660: DEBUG/MusicPlayService(2862): false
09-22 14:49:39.660: DEBUG/MusicPlayService(2862): onPrepared
09-22 14:49:39.680: DEBUG/MusicPlayService(2862): OnInfo :
what=1 ,extra=902
09-22 14:49:40.651: DEBUG/MusicPlayService(2862): onBufferingUpdate,
percent=11
09-22 14:49:40.651: DEBUG/MusicPlayService(2862): true
09-22 14:49:41.662: DEBUG/MusicPlayService(2862): onBufferingUpdate,
percent=13
---
true or false means mediaplay.isPlaying()'s return value.

Thought onPrepared is not called, onBufferingUpdate is called.
When buffering reaches 100%, mediaplayer's state is changed to
prepared state
is it correct?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] why mediaplayer never calls listener method? (onInfo, onError, onPrepared)

2011-08-21 Thread Boram Han

Hi.
I made a mediaplay activitiy streaming mp3 file from URL.

My codes works very well at most cases.

BTW when i play some mp3 files, mediaplay never calls callback method,
[onInfo] [onError], [onPrepared].

The interesting thing is only [onBufferListener] is called.
It become fully buffered but not call any other listeners nor play mp3
file.

I copied that mp3 file and play using default mediaplayer app.
It toasted a message that file is not supported format.

http://sccc.ssu.ac.kr/~mlight3/z.mp3 is my test file.
I tested on Galaxy Tab 2.2

ps. When I tested on Galaxy S 2.3.4. It works;;

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How can I maintain tab navigation when I call intent in tab contents?

2011-05-31 Thread Boram Han

Dear all.

I have a tab acitivity with 4 tabs. They are all defined with intents.
When I call startActivity in one of those activities, then tab
navigation is gone!

I want to maintain tab navigation when i call startactivitiy?

Any help will be highly appreciated
Rgds

Boram.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] how to access progressbar in other activity?

2011-02-24 Thread Boram Han

Hi.

I am trying to creating and updating progressbar in other activity
without switching activity.

Here is my plan.
When I click a download button in activity A, it starts download
background.
A task will add a notification with progress bar1 and add listitem in
listactivity B.
Listitem view consists of textview and progressbar2 and progressbar1
and 2 will work simultaneously.

Please can anyone let me know if they have worked on anything similar
to this.

thanks.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en