I want to develop a custom keyboard for android (that can be set on Settings > language and input).
I want the keyboard app to run several services that will be active all the time.
Is it possible? Can a keyboard app run services like any other app?
So, The answer is yes. From what I have seen, a custom keyboard app can run multiple services and broadcast receivers.
I hope my question\answer will help somebody in the future.
Related
I've searched about launching my app with voice. And what I got is using Ok Google. However, I don't want this feature but start my app right a way without calling Ok Google. Instead, Hey, XXX Then, launch my app.
Maybe I can accomplish this feature by getting a permission of using microphone and using service of my app. In this way, At least my app will launch, if the user once launched my app during the device is on. Maybe using startActivity()?
Is it possible or not? If it is yes, What do I need to do to achieve this result?
It is not possible to launch your app using your own customized name like Hey Jarvis , open XYZ app.
You can only use the following commands in your android mobiles to launch your app.
Hey Google, open Facebook
or
Ok Google, open Facebook
The prefix, Ok Google / Hey Google are proprietary to Google's Voice Assistant that comes handy in Android mobiles. So we cannot change them as our wish, may be we can expect the something like you asked in future. But not sure.
You can refer to the google thread related to this here
As mentioned in the comments, you need to design your own voice assistant to do so. Even if you are developing your own voice assistance, not sure you can run them on your mobiles.
Edited
Maybe I can accomplish this feature by getting a permission of using microphone and using service of my app. In this way, At least my app will launch, if the user once launched my app during the device is on. Maybe using startActivity()?
You can use in-app voice features when your app is in foreground. You can give a try to this Google Actions on Android apps. Though this feature is new and limited, you can gain some idea regarding this.
I am developing a lock application as an academic project. I need to detect the launch of an app so that i can launch my lockscreen on top of it and restrict opening the app till the user put correct pin. I have read a few posts and this one has a few answers that look promising.
Android, Detect when other apps are launched
Is this the right way to do it? Or is there a better way around? I have also heard about the Application class. But don't know how to implement it.
EDIT: My app supports API16 to API22.
I would like to add lockscreen controls for my app similar to what netflix or youtube does when casting to a chromecast device.
Do I do this with a lockscreen widget that I add and remove on demand or is there a different method?
Thank you.
The proper way to add a lock screen controller is to use the RemoteControlClient. There are limitations to what you can do there, both in terms of the functionality and availability based on the Android version. If you are running Android version 4.1+, then the required functionality is there (check out the Google Play Music to see how it can look like). Give that a try and if run into issues, come back here and post your issue(s).
I am working on app widget for my app. It is working the way I want, but I don't want that user go to widget picker & drag my app widget to home screen. This is a normal case, here I want to avoid doing this. I want when my app install than my app widget start on device homescreen.
Is it possible to do this? If yes, then please help me - I have already have done R&D but no use.
My app is based on this.
This should not be possible. The user has to actively choose a Widget to prevent Apps from spamming the Desktop.
How to change the lockscreen text ?
Please help me
This is done by the developer of the custom rom that you are using. There isn't an easy way unless you want to change the rom itself.
Another option is to use a third party lockscreen, that you can download from Android Market, but that would change the entire lockscreen not just the text.
This is one of the most popular lockscreen apps.
You can't edit System Apps.
I would suggest you to go for Lock Applications in Android Market. They can't remove the system App. But it will replace the System App as default App.