Android - Add volume control to system for my app - java

Good afternoon everyone, It's my first post here so please excuse me if I made some mistakes :)
Here is my problem :
I'm currently developing an app that control all most devices that are in a room. This work fine. I can control the Master Volume of my Amplifier, but now I want to be able to add a system volume seek bar, just like YouTube does for YouTube TV :Screenshot of Android Volume Control (4th seekbar).
I made a lot of research but was not able to find what I wanted. Maybe I don't have the good key word.
Thank for reading me

Refer this
https://inducesmile.com/android/android-audio-manager-and-volume-control-adjustment/
it does exactly what you want

Related

what can be used instead of getMaxAmplitude for a MediaPlayer?

recently, I've been trying to create a visual recorder and player inside my android application, I want it to be like the SoundCloud sound waves.
so far, I've created one for the recorder using a customized view that makes lines after the last one with the height that would be given by mediaRecorder.getMaxAmplitude each 100ms.
the problem is that, unlike MediaRecorder, MediaPlayer doesn't have getMaxAmplitude, so when users play recorded files they won't see sound waves correctly.
However, I tried to search about this but the answer that I found was not the right one, It just gives me the volume level of the user's mobile.
thanks to anyone who could help to solve this problem.

How to store recognized faces so that they can be used when the app is closed and on different devices

Not sure if this is the right spot for this but I haven't been able to find anything useful online so any advice would be appreciated. Basically I'm working on a android facial recognition app that use firebase ml to detect faces and tensorflow to recognize faces. That all works fine but when I register a user I don't know how to store it on a server so that the face can be checked while on other devices or save the face to the original device so it doesn't need to be re-registered when the app is closed.
Ive looked for a while online and surprisingly couldn't find anything related to this. I have an idea in my head about a possible solution of saving a bitmap of the picture and then storing it locally and remotely on a SQL database but ideally if people with experience or a better understanding of this area could point me in the right direction that would be great!
This is my first project in the ML world and I am working off of this repository I found on github repository - https://github.com/estebanuri/face_recognition .
Its late here so I will answer any and all questions in the morning!

Optimal camera focus mode android java

I have android application that use the phone camera.
First the camera opened, I want to try to use "Autofocus" mode and "Macro" mode and choose by code the best focus that I get.
I would like to ask 2 things:
Is there an internal parameter that give the focus score?
Is there a known algorithm that gives the focus score(the algorithm should not be complex, because I do it in real time on 1080p video).
I know a bunch of links is not usually helpful, but I don't have time to go through all the pages. I figure something is better than nothing :)
This is the link for the android.hardware.camera2.params package summary. I wasn't able to find anything like what you are looking for, but that's a good place to start.
Another person had a similar question on the Android Enthusiasts SE site: Can I manually focus the camera on my Android phone?
And last, but not least: There seems to be quite a bit of relevant info at the XDA Developers forum.
Good Luck! I'm a photographer myself, so this seems like an interesting project.

How to call utter from my application or speech recognization offline

I am creating an application which has voice search facility? like in my music player if i want to play some music than i just speak song title than it will play that song. I already try with goggle voice search it works but i want to search off-line.How to do this? So any one please help me. Thanks in advance.
If you are referring to my application utter! I'm working on a developer API that will appear here in a couple of weeks time and allow applications to interact with it, providing the user has it installed of course.
Otherwise, for information on using offline recognition, see my answer on this post
You have to utilize a speech recognition system with a vocabulary embedded.
If you are using a vocabulary you do not need the web. You can process the information offline.
I think you need something like this:
Speech recognition by Microsoft

First Android App - Google and GPS?

I am a .Net developer, wanting to make my first Android app. I have installed Eclipse and am able to make the usual Hello World app. Now, my next step is a useful app (to me) which shows me geographical information based on my position.
I'm hoping it's a simple app to write, and a good primer for a first Andoid app.
I'd like to create a simple screen, which shows the nearest Suburb to my current location. So, a very basic screen, that stays on (Doesn't lock?), and simply shows me "You are in ". I'm not sure if it's possible, but it would be great if I could show, "Your nearest Railway Station is "
I'd like to ask for a tutor, or someone who could guide me, but that's pushing my luck, and am looking for pointers and ideas on how to do this. I'd then like to share it as an example of what a beginner (but experienced developer) can do with Android.
1) This Tutorial will help you to learn Google Maps
2) This Tutorial will help you in how to find current location of device.
3) This Tutorial will help you to find nearest places by using Google Place API
4) This Tutorial will help you in case if you want to show points (Overlays in android terminology) on google map.
Hope this Help.
Vipul
http://android-er.blogspot.in/2009/11/mapview-to-center-on-current-location.html
Sorry, i missed out a 'c'. now its working :D
All the Best Again

Categories