Android how to display Icon in Signal icon area? - android

I have following queries.
How can I display icon in Signal Area(what it is called?) ? Like default audio player when playback is on and u press HOME or BACK at last screen of audio player, Play icon is displayed in that areA? Kind of minimize application.
How to display shortcut of media player? the minimal version of media player in that area

They're called notifications, and the documentation has a very detailed guide: http://developer.android.com/guide/topics/ui/notifiers/notifications.html

Look at the source code for ApiDemos. You will find exactly what you are looking for, and more.

Related

Play video sound in Background (in Notification Bar) when App Closes Just Like VLC Player

I have developed a video player application. Now I want to implement Background play functionality. I have checked many video player apps but none of them supports this. However, VLC does support this and when the activity goes in the background or stops then the video continue to play in the background as notification bar i.e. the sound continues to play with a video thumbnail shown in the Notification bar. When tapping on the notification bar it goes to the video page. This is what VLC does.
I am unable to find any tutorial or guide to implementing this. Is it possible to implement something like this?
Show some code what you have tried - that's almost mandatory for questions on SO...
If VLC has this feature then it is possible obviously :) Also YT, if you pay subscription
Also you may check source code of VLC in HERE. For sure it is Service-based implementation, if your app is just simple player then you have probably Activity-based arch and you should migrate to Service

Native Brightcove for Android

I successfully implemented the bright cove in native Android. But Currently am facing some problem as,
When i press the video and Press HOME button, the Video starts from First
When i lock the screen and the unlock the screen, the Video starts from First.
Did any one come through this problem. Can share the knowledge.
THanks.
Are you extending the BrightCovePlayer or BrightCovePlayerFragment in your implementation? It will be nice if you share the code snippet for the player setup.

android -- is there any robust way to use the play/pause controls on lock screen?

The default Android music player displays the current playing album, along with play/pause and next/previous track buttons on the lock screen. Is there any good way to use or replicate this functionality, without going through a lot of pain, or making the app slow or brittle (e.g. not working on all devices)?
Related (getting information from the built-in music player): Can MediaPlaybackservice be used for getting information of currently playing audio file in android?
Thanks in advance!
Try looking at the RemoteControlClient documentation. I think think you can make use of the existing controls in the android os.

Create "sound bars" similar to the bars in windows mediaplayer

I have no idea what these bars represent, but still I want to make them in my app on Android platform.
I want that the bars to change on a sound or in my case a recorded sample play.
For http://www.teamliquid.net/blogs/viewblog.php?topic_id=90197&docid=Cw1ObF4XGZQD4M&imgurl=http://i658.photobucket.com/albums/uu307/StimedFirebat/bars.jpg&w=1024&h=819&ei=0-6jT76WOc_U8QO-psyDCQ&zoom=1&iact=hc&vpx=812&vpy=156&dur=1559&hovh=201&hovw=251&tx=157&ty=133&sig=110361762640680792178&page=1&tbnh=154&tbnw=186&start=0&ndsp=28&ved=1t:429,r:2,s:0,i:72&biw=1680&bih=864">example the bars that windows media player displays while playing music.
take a look at this: https://github.com/felixpalmer/android-visualizer/tree/4054f8b6e2153b07c5af275372b9609d1019727a. this is a project with line, circle, and bar visualizers
and btw google beforehand.
The moving bars are called a graphical equaliser. I think this media API sample uses one.
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/media/AudioFxDemo.html

android embed default audio player in app/activity

I would like to know if it is possible to embed the default audio player into one of my activities. Or at least be able to embed the section that has the play/pause button and the audio track seek bar.
The reason I would like to embed it rather than open it in a new intent (like this:
Intent audioActivity = new Intent(Intent.ACTION_VIEW);
audioActivity.setDataAndType(Uri.parse(getAudioURL()), "audio/*");
startActivity(audioActivity);
)
is that I want the users to be able to read some content within the current activity while listening to the audio. I have been able to use a progress bar which updates based on the progress in the audio track, but this does not look good and i would rather have the look and feel of the default audio player. I know the default video/audio players are not documented very well but if this is at all possible I would like to know. Thanks!
Hi, I would like to know if it is possible to embed the default audio player into one of my activities.
No, sorry.
First, there is no such thing as "the default audio player" as a single entity. Each device has its own "default audio player".
Second, even if there were a single universal "default audio player", there is no way in Android to embed some other application's UI into your own.
Or at least be able to embed the section that has the play/pause button and the audio track seek bar.
No, sorry. See above.
I think what you're looking for is MediaController. This answer has a good example of how to use this, though I'm not sure if it is possible to have the controls displaying all the time (they disappear after 3 seconds in the example):
How can I show a MediaController while playing audio in Android?
There's another discussion of it here:
How to implement an audio player for Android using MediaPlayer And MediaController?

Categories

Resources