So I have created a chat locking application for Whatsapp such that when user clicks on the locked contact, he/she cannot access the chat without the password or fingerprint. But on clicking the notification of that particular contact's chat, they can access the chat. So to block it, I need to know the accessibility events that get triggered on clicking the notification. I tried getting the events using AccessibilityEvent.TYPES_ALL_MASK , but none of those events have a source and and I cannot get the nodes. Do anyone know any approach to solve this problem?
Thank you.
The behavior may differ on different Android versions.
But when I tried clicking on a notification in the notification tray on a Galaxy S7 running Android 7.0 I got either AccessibilityEvent.TYPE_VIEW_CLICKED or AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED, with package name "com.android.systemui". And if I dumped the view hierarchy starting at the event source I got a FrameLayout containing 3 TextViews.
Related
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.
I have Developed a Background Service to show Notifications for my android app. These notifications contain Action Buttons to record the response of the user.
But my main problem is that these action buttons doesn't appear on Samsung S7 device. Any help would be appreciated. I can share my source code or i can add code snippets here if the problem is not related to build.gradle etc.
I really don't know the problem.
I've seen so many problem with Samsung when loading different view elements, Try to add button programmatically when it disappears on XML. Use handlers.
check if notification in device is enabled for your app.
First time posting.
I want to make an alarm app that launches a radio app at the set alarm time.
The app works fine when the phone is awake, the radio app launches and the radio plays at the time specified by the alarm, my issue is when the phone is locked/asleep, the radio app I want to launch will launch but not attempt to connect to the radio stream until I unlock the phone. When I unlock the phone the app is open and starts to buffer then works.
How do I get the app to connect to the radio stream while the phone is asleep?
I have tried WakeLocks (Partial WakeLocks) thinking that keeping the CPU alive would allow the app to connect to its radio stream but this did not work.
Would appreciate any input here.
EDIT: I have downloaded an app that does what i want and it seems the radio plays within the notification.
Would this be the correct direction to investigate?
Well, I figured it out after eventually.
using media player and connecting to the correct steam sorted it for me.
For anyone struggling:
Main activity you want to create all the actions for the button clicks, build an Intent and get the time from the time picker.
Alarm receiver to handle the pending Intent
Radio service class to play radio stream using Media player.
It actually was very simple in the end.
one of the things that was holding me up was the incorrect use of the stream source I was using:
I was trying: http://www.lbc.co.uk/london/radio/player/
I needed: http://www.lbc.co.uk/london/radio/player/
I obtain the correct streaming link from FAQs on the radio website.
I will post a finished sample code once I have done cleaning the app.
I've been trying to implement a service that displays UI similar to how facebook chatheads work. I noticed that I can detect a backpress inside of the View but I am unable to detect home presses.
I played around with the facebook chat head and I noticed that they're able to handle home presses and recent activity button presses seemlessly.
I've read this post: Detect 'home button pressed' event in android service displaying a UI (similar to facebook chatheads)
but it does not seem to help
How do you detect it?
Hi have you tried registering a BroadcastReceiver to listen to this particular intent Intent.ACTION_CLOSE_SYSTEM_DIALOGS. This will be called whenever android needs to remove temporary dialogs from the screen when home or recent apps key is pressed you can register a receiver with this intent to detect Home and Recent Apps key
I want to get a notification if someone has performed an action in an android app from outside of the app. I don't want to make any (android) code changes. To do the actions I use the Chimpchat.jar, the .jar that the monkeyrunner tool uses.
To be clear: Can I get a notification or register listeners on components from outside of the app?
e.g.
Run my android app
My java application links into the device with chimpChat via the adb
The user touches a button
My java application gets a notification what was performed
=> am I able to get that information? If not, am I able to get the information on which position the tab was?
Hopefully it's clear what I want to do.
Thanks, soeren