I have created a exoplayer audio player with a notification to play pause audio.
Inside notification there is a small dropdown arrow to expand and collapse the notification (As shown in images attached) . Is it possible to remove those small arrows and make notification always expanded?
Regards,
Ali
Based on your description, I think that you can use the media control that is introduced in Android 11, it's easy to set up and full of the features that you want. Find an introduction about it here in this developer blog article.
You can also have a look into the UAMP sample to get more insight into how they handled the player notification using the PlayerNotificationManager.
Related
Is it possible too embedded video and gif player into android rich notification like iOS?
If possible, please give me an example.
Thanks in advance.
Since notification is a RemoteView, where is no way to show GIF animation. Allowed only widgets that describes in official documentation.
I currently use BigPictureStyle in order to add pictures to expanded notifications in Android.
Is it possible to add a gif to an expanded notification preview?
Thank you
As of now, I don't think we can use GIF in push notifications using native functionality. I have been through video that #appukrb posted and along with that I have found out that only QGraph (search for it on play store) provides push notifications with GIF. Otherwise I don't think it is achievable using 'remoteview'.
I have an Android app which plays mp3 files. I have programmed its main functions like play/pause forward, backward buttons, manipulating by SeekBar, getting current position and so on. Now I want to make my app to continue playing even I closed my app. And when I close it, I want to appear thing like widget in status bar with basic actions (displaying app icon, track name, play/pause button). And also, I want to SeekBar work properly when I reopen my app. Can anyone help me. I'm beginner in Android Java, so it would be perfect if your answer contains steps. Thanks beforehand
I think this tutorial perfectly match your query
Android custom notification for music player Example
It think you need to read this articles:
1) https://developer.android.com/guide/components/services.html?hl=ru - this articles can help you to play music on background. It's very important component of youar app;
2) If you want to provide a widget - just see this article https://developer.android.com/guide/topics/appwidgets/index.html?hl=ru
3) If you want to show notification in status bar, see - https://developer.android.com/guide/topics/ui/notifiers/notifications.html
Also, you can find many iteresting solutions and lessons here - http://startandroid.ru/ru/uroki/vse-uroki-spiskom/164-urok-99-service-uvedomlenija-notifications.html
https://developer.android.com/training/managing-audio/index.html?hl=ru - an interesting article about music players by Google Android Developers
Best regards,
Skidan Oleg
In my app i need to implement floating video player ( like youtube player). i gone through the below urls but not able to solve my issue. I don't know where to start and what to use .
Please someone help me
how to create a Floating popup video player in android?
how to create a Floating popup video player in android?
What APIs in Android is Facebook using to create Chat Heads?
Yes, you can achieve this by using service with Window manager, there is an excellent sample application available on github
https://github.com/marshallino16/FloatingView, this will guide you to achieve your requirements which are listed above
To make floating player you need to work on widgets. it is known as picture in picture mode. step is as below
1) add dependency for support media
2) create player layout
3) add player click event (touch & onclick listener)
4) add broadcast receiver to detect event on player view.
5) Start player from activity.
You can find link on github for picture in picture mode android example OR you can get reference here
I am facing a problem with development a application.
I am using a Cloud Push Notification with Titanium Appcelerator.
I have need display push Notification in Group.
How display this is display in single particular particular tab?
I am sharing 2 images
Currently looking like this.
I have need look like this. How do?
You have to use a Big View Notification Style but it is only available in 4.1 or newer
quote from here:
A notification's big view appears only when the notification is expanded, which happens when the notification is at the top of the notification drawer, or when the user expands the notification with a gesture. Expanded notifications are available starting with Android 4.1.
in the same document, you can find a sample how to use this. there are also som tips/hints how to maintain compatibility with older devices (not only regarded to the big view)
you must put the following code in your TiApp.xml
<property name="acs-grouped-notification-message-" type="string">You have $number$ unread messages.</property>