Hi I'm trying to develop an app that detect app launch, many app like app lock, smart app lock e.g
1-user clicks on "contact" app (for example)
2-my app detects launch of an app
3-my app confirms it is the "contact" app
4- my app opens a view over the top, asking for a password
5-user enters a password, if correct, my app disappears, leaving the "contact" app on top
i am see lot of answers that advise to read log but READ_LOGS permission is not work with jelly bean.
Can any body help me? i don't understand how it possible?
Any pointers would help. thanks for any help
Related
I'm going to user can't uninstall app. My app is service app so there is no icon in screen.
User can only uninstall in settings/appinfo page.
So I'm going to redirect to home screen when user get into app's info page.
I need to get event that user get into app's info page.
I tried to like this
enter image description here
enter code here
then this not working.
How can I do to solve this?
Please help me.
You can't do this. It would be horribly insecure if you could- tailor made for malware. The way you can prevent uninstallation is using device owner policies, but that's not available for a normal app.
I have developed an android Contact application (To view, edit, delete and call contacts)
How can I set an app as default in android programmatically ?
please help me,
Thanks in Advance.
There's no notion of a "default contacts app", if your app can handle certain intents (for example adding a new contact) Android will show an app selector dialog to the user asking which app they choose to complete the action, the user can also select that app to be used automatically in the future.
If your app is also a Phone app, then there is a way to ask the user to make it the default Phone app, see: Replace default phone APP
If you're referring to the "Contacts" app launcher on the user's homescreen, there's no way to make it launch your own app, you need the user to manually remove the existing launcher and drag your app to their homescreen in its place.
I'm created and setting up my new android application and i don't know how to attach/lock my application on my device
Well by mean attach/lock for example, the app i want is Facebook application to be in my screen and device, if user using my device and logout from Facebook, it can't back into android home, and it just show login form,
so my device only have Facebook app and cannot open another app or install anything, so user in my device can only access Facebook app.
is there a possibly way or documentation so i can archive this?
Unfortunately, it is impossible unless your device has been rooted. Because of every apps on android devices are running in their sandboxes by default.
I try to explain what I mean: as asked and replyied here you can launch an application from your own.
The problem is the following: I don't need only to run an application from mine, but I also need to run it with different credentials from the same application installed in my phone, so I need to run it with a different account.
For example:
With my application I want to run Facebook. Fine, I run my code by starting an intent with fb package name.
My problem is that I don't want to run facebook and find myself logged with my profile(the one logged in my phone) but I want facebook to be run as if it was a new and clear installation (it must prompt me for login with my credentials) and this must not remove my credential from my application in my home screen.
It's like creating another user on your phone and using an app on both users. The difference is that I want to do it with my app instead of with another user.
Probably my explaination is not perfect, I tried my best but it's hard to explain what I'm looking for. I know it is possible because this application does it, but I can't figure out how.
Thanks all for the help!
I am building an app where I use a WebView to let the user log in into Facebook. The problem occurs, when the user tries to log out. Then I planned to re-open the WebView. Unfortunately I had saved my credentials before, so the WebView starts to auto-log-in.
As I want other users to test this app on the same device, this is not the desired behaviour.
Has anyone got an idea to solve this?
Thanks in advance!