android:how to lock the device using voice - android

I am new to android. I am trying to lock the device using voice . I recorded the voice with media recorder but now How I lock the phone with this voice ? plz any idea.

Interesting, but u need to probably do more work that mere speculation here. A quick brainstorm:
your app must be a device admin to be able to lock the device
to lock the device, this device admin could be "told" via a broadcast event routed to it
the "lock device" event can be raised by another / same app if it can capture from the mic,
probably forward this to a server that can do speech-to-text (Google has something), then yo app tries to recognize whether the response text matches the "lock" criteria. If it does, then broadcast the "lock" event.
This heavily depends on how good the speech-to-text part is done, otherwise, explore along those lines.

Related

Starting playback on a remote Android device

Let's assume I have two androide devices. An AndroidTV and a smartphone.
On both devices I have installed my app, that is capable of video playback streamed from a server.
I want, similar to chromecast, to delegate the playback from my smartphone to the AndroidTV via my app.
How would I do that?
My starting point is this: Media Router here I go for Remote Playback.
If I understand this correctly,
the app on my AndroidTV device would be a MediaRoute Provider,
the app on my phone would use a MediaRoute to launch a CATEGORY_REMOTE_PLAYBACK-intent on the MediaRoute Provider?
This also means, that the callbacks handle all communication, so that I could differentiate via callbacks between passing the url and let the receiver app fetch title and images themself or let it be passed from the sender app?
Or am I on the wrong track?
the app on my AndroidTV device would be a MediaRoute Provider
No. MediaRouteProvider goes on the device that is the user's controller, which in this case would be the phone.
the app on my phone would use a MediaRoute to launch a CATEGORY_REMOTE_PLAYBACK-intent on the MediaRoute Provider?
You can do that. The advantage of using MediaRouteProvider is that any app on that phone that supports RemotePlaybackClient can now support your setup. If you only want your app to do this, you could skip MediaRouteProvider.
Then, either your app or your MediaRouteProvider is responsible for getting the request over to the Android TV device, and your app on it, by some means (WiFiDirect, Bluetooth, GCM over the Internet, whatever). There is nothing in the Android SDK that specifically addresses this -- you're on your own for rolling whatever protocol and connectivity you want. On the plus side, there's no built-in assumption in MediaRouteProvider about any particular way to deliver that information, meaning that you could be connecting to something that is not running Android at all.

How does a remote shutter for camera work on Android/iOS?

I've recently ran across a remote shutter for in-built camera app using bluetooth on Android/iOS.
Here's an example link of the product that I found:
Link (Not here to advertise, but to simply understand technology/mechanism behind it)
As far as I know, it is not possible to send remote commands to the in-built camera apps since there is really no way for the in-app camera apps to handle the remote commands.
However, the above video shows that such remote control is achieved using the bluetooth remote shutter.
I noticed no external app needs to be installed to use such a remote shutter device. Is the device simply sending a touch event action to the phone?
I guess my real question is, how would such a remote device send 'take photo' command to the existing in-built camera apps?
Thanks,
The selfie stick remotes are essentially tiny Bluetooth keyboards with just two keys. One is the "Volume Up" key to trigger iOS' native Camera shutter and the other key is "Enter" to trigger Android.
When the camera app is running, both Android and apple utilize the volume up button to signal the shutter event.
With this in mind, all an external device needs to do is trigger the same volume up event which in turn triggers the shutter event.
This then allows for a remote shutter button whether the button is plugged into the audio/mic port, or connected via bluetooth.
The audio mic port may be different between android and iphone. I plugged an external camera button into my android and rather than it triggering the volume up event, it triggered the back button in the mp3 player.
Hope this helps you out.

Is it possible to record video using front camera while calling in android

I'm developing one Android application which would record video during calling when dialing some emergency numbers. Some of my android developer friends told it is not possible. Please help me if there is any way to achieve this
Normally, your app cannot know if some special number has been dialed. We can send a CALL Intent with some special number, and the Dialer system app will allow the end-user place the call. Or edit the number and place the call. It is also possible to write a broadcast handler that can be invoked when the end-user or some other app requested a call to some special number. But your app cannot perform the call itself.
If your app runs with superuser permissions (e.g. if the device is rooted), or if you replace the system Dial app with your custom one, then you certainly can control the camera while in call.
Also, if you forward the call over Internet, you can do what you want.
Finally, please note that even if you record the video during the phone call, you may not be able to live stream this video over the cellular network (some LTE networks do not turn off mobile data channel while in phone call).

Receive DTFM code in android phone?

I want to receive DTFM code in Android which is sent by the caller. Is it possible?
This is not possible through the phone, as you have no access to the underlying telephony hardware. The only way that telephony hardware is accessed in Android is through the Radio Interface Layer (RIL). The frequent trick to play, is to force the user to play their call through the speaker, for which you see some apps exist that will do this.

Android: Automatically Record Video And Send Resulting Movie File To E-Mail Address When Phone Call Recieved

I am trying to determine if it is possible to use an incoming call to trigger an Android enabled phone to record video for a particular number of seconds and then send the resulting video file to an e-mail address. Sort of like having remote control camera functionality that is activated by an incoming call. (No particular model of phone or version of Android. I'm first just trying to determine if this is even possible.)
Here is a scenario to help understand how I am trying to apply this:
Two phones are involved, Phone A & Phone B.
Phone A is secured to pole with the camera viewfinder facing it's subject in New York.
Phone B is 3,000 miles away in Portland, Oregon.
Phone B calls phone A.
On receiving the phone call (or any phone call), Phone A automatically begins recording 10 seconds of video, then sends the resulting video file to an outside e-mail address.
All of this is done using the regular telephone cellular network, not wi-Fi
I hope I am clear eneough. You don't have to answer in great length. At this point I'm mainly interested in simply knowing if this is possible, and if so, what level of difficulty and possible limitations might exist depending on things like type of Android phone.
I really appreciate your feedback.
I don't see why it wouldn't work. I think you can have a broadcast receiver for incoming calls and then it's a matter to start video recording and then send the video to your email.
All this can be done, it's a matter of putting it together ;)

Categories

Resources