What abilities does being the default "Assist" app give to an app? - java

I need to know what can I do with my app if the user changes my app to default assist app.
I'd like to know what abilities this role grants, preferably with the source of the information.

I know that this will make your application start when 3 things happen:
When the user long-clicks the home button in the navigation bar
When the user presses the assistant button on their Device ( if their device has it )
when an another application starts the assist app ( your app ) using this code: startActivity(new Intent("android.intent.action.VOICE_COMMAND"));

Related

Android dialog in another application

My use case is very specific so I will explain it as detailed as I can.
I am developing an android application. I call this application A. Then there is an pre-existing application B. B is a navigation app that I cannot alter.
I want to show a dialog or pop-up whenever something special occurs in application B. for example app A receives a message through a broadcast that a dialog should be shown. then code in App A should be able to show a dialog in app B.
Is this possible to do in android? can I show a dialog outside of an application? if it is not then is it possible to show a dialog on the OS itself perhaps? I would like to ask if you can answer in a simple manner as I am not that experienced with android to begin with.
Thank you for reading.

How do I give a user an option to use my app as default with android

I am making an app that is filtering videos through ID when a link is clicked through deep links. It works but the user has to set the app to open as default. How do I make the little window asking if they would always want to open YouTube links with my app within an activity?

Clear other apps data programmatically?

I am developing an android application and i need clear the data of another application upon clicking an button.
i.e.: if i click button name "gmail" in my app,the data should be cleared of that "gmail" app
doubt:
1.Is it possible?
2.Do we need to be rooted our android device in order to do this?
° because greenify works with root access to force stop the other app flexibly.
I know that greenify works without root but pop that "force stop" ui screen of each single app to do that action.
MY APP FUNCTIONALITY:
I just wanted to develop an android apllication named "anti-theft cloud apps"
simply if an thief stols our mobile then my app detects when he changes the sim or an unique code send by mobile owner through sms from other mobile and logouts all the cloud based applications like gmail,google photos etc to protect our data to be stolen ,so in order to do that i thought of clearing other apps data(like gmail) PROGTAMITICALLY to logout. Is it possible
This is not possible with stock Android. You can do it with superuser, access root/data/data/PACKAGE and clear its content. But as seen in comment, this seems like evil thing.

How to launch my app programmatically, if an another app opens?

I want my app automatically open when user click (for example) chrome or any other apps.
How to do this?
My app is for preventing people use cell phone all the time.
Explicitly, there is a mission in my app. when user starts this mission, user cannot use other app until they give up the mission.
User can minimize my app, but when user click another app, my app will prompt programmatically to tell user not to use the cell phone.
Instead of preventing user to launch other apps, I think you should use activities' life cycle. You can add code in onPause() and detect user press home button or back button. And when your activity is not on foreground, you can pop a dialog or something to remind your user focus on his work not his phone. BTW I do see the positive side of your app.

Android Dialer & Phonebook interception of intents

I have two simple questions:
is it possible in the Android Dialer application to intercept the ACTION_CALL Intent and offer the user the number to be dialed with another application (that is when the user clicks 'Dial' button). I know Dialer is custom app on every ROM so I suppose this is impossible?
is it possible when the user selects a contact from the Phonebook/Contacts and presses Dial for particular number (maybe predefined with some prefix or suffix), the app to recognize and to complete the dialing with third party app and not the default Dialer?
Thanks
Yes it is possible to intercept the intent and let your app show in the dialog prompting the user to continue the call with the default dialer or your own. This might be of help :
Android dialer application

Categories

Resources