I am going to create call record application, There I need to play minute and recording notification sound. It should here to caller and receiver two parties. Is there any good example for such application?
Thank You.
I am going to create call record application
That is not possible on Android. Android SDK applications do not have access to the in-call audio.
Related
I'm an iOS app developer and not familiar with Android. I'd like to implement the feature that playbacks audio over the internet when the mobile receives a push notification.
I've investigated it for iOS and concluded that it is impossible in iOS because Apple prohibits downloading data over the internet in background from being developed.
I'd like to know if this feature is feasible or not in Android. Could you give me any advises ?
You need to implement PendingIntent to get you notification and start ForgroundService or this or this to play your audio and close it when the user leaves your app or while they are using your app depending your particular needs.
I'm writing an Android application with DJI-SDK to monitor when a video is recording. My drone uses its control application, but I need to spy on the drone's camera activity to send a notification when a new video has started recording, but I can't to have two Android applications use the DJI SDK at the same time.
Can I listen a "message or intent" sent by DJI-SDK service which will allow me to send a notification of a new recording video?
You cannot listen in on the DJI app but if you write your own app you could broadcast camera activity that can na picked up by another app.
Look away broadcasters in android, there are ways to publicly broadcast between apps or services.
If we create a custom receiver app using HTML5/Javascript to play music, is it possible that the state of a com.google.android.gms.cast.framework.media.RemoteMediaClient will be updated ?
The purpose is to send custom message (as play/pause) with specific data to this receiver and is to have all related states always in the instance of RemoteMediaClient.
If it is possible, how to attach the Media Player to the Receiver API ?
My sender app is an android application using the CAF SDK.
You can load media from a custom receiver: https://developers.google.com/cast/docs/caf_receiver/advanced#tip-loading-media-using-contentid-contenturl-and-entity
This will ensure that both the receiver and the sender app will stay in sync with regards to the media state of the current track and any media in a queue.
I am building an alarm ionic app that load custom sounds according to my preference and using the NativeAudio component.
The alarm is intended to just give me a buzz on specific times playing some voice recorded reminders. So when I listen to spotify and the alarm fires, it should put spotify music on hold and plays it back after the alarm.
I know we cannot control the spotify app from an outside app. However, I noticed that when I video in facebook, spotify stops, and after the video, spotify resumes.
Any guide on how to do an ionic app with this behavior would be appreciated.
Thanks!
Early versions of spotify broadcasted metadatachanged event everytime a track was started to play as it is discussed here.
However, since one of the last updates it does not send metadatachanged broadcast for each track. Instead, it broadcasts metadatachanged for a playlist or when queue is changed.
What is correct way to detect a song currently played by Spotify on Android device?
I know that this answer is quite late, but I just wanted to note that current versions of the Spotify Android client should broadcast metadatachanged at the expected time.