How do i make my android app accessible from the lockscreen? - java

I'm creating an app to be used during emergencies and it's important that the app can be started from the lockscreen. Is this possible(it seems to be posssible, since i see apps like this on the Google Playstore) and how would i achieve this?

You might be better off replacing the lock screen. You'll have more control and be able to provide a better user experience. Downside is you have a lot of code to write.
See this:
Creating an Android Lock Screen App.

Making a lock screen widget was possible in between android 4.4.2 until android lollipop. All other version do not have this ability. As such the best alternative would be for your app to replace the built in launcher and create its own lockscreen which you would be able to customize yourself.

Related

Block some selected Menu-Points in Android for Parental Control

Is it possible to build a Android-App,
where a User can control or block some selected menu-points in the default Android Settings menu? For example Connections or Display.
Sorry, I am completley new in Android Development. I want to develop an app for Parental Control.
Thank you :-)
Iam learning Kotlin
No there's no way to do this. And remember- there isn't one settings app. Multiple OEMs write their own, or customize the base one. So even if you could do it in the AOSP version, there's no way to be sure that the others would work with it. If you need this for personal use, consider a custom ROM or replacing the settings app yourself. If this is for a store app, its just not going to work, look into device ownership and device profiles as the only real way to prevent (some) settings changes.

how to create a background process , it will disable the physical volume buttons when running

My boss ask me to develop an app which have to be always on the user screen. I have to disable the three Android native buttons (back, home and history buttons).
How can I do that ? Create a custom launcher ?
Thanks.
In general you can't really do the things you mentioned above, at least there are no official supported APIs.
However, there can be legitimate use cases where one would benefit from this kind of applications, and Android provides something for this.
Have a look into Lock Task Mode and ScreenPinning.

how to apply pattern lock on my all apps of my device?

i designed a pattern view using this library
'''implementation 'com.andrognito.patternlockview:patternlockview:1.0.0''''
but how to apply pattern lock on all apps on my android device? how to show my pattern app screen when pattern apply on any app in android device? Thanks in advance.
As I already wrote in my comment. what you want to do is not possible. You can modify the behavior of your own application, but not the one of others.
The main reason is security issues. Imagine you have an app that mimics a log-in screen from BankXY, and displays this screen right before your actual BankXY app log-in screen is displayed. This is called phishing, and is one of the most popular attacking scenarios out there. What you would like to implement would not be a security risk, but the tools to make it possible certainly are.
EDIT:
This was possible before Android 8.0, where the ability of using Services for background executions was significantly limited. It was possible to create a Service that would check the package names of running applications and in case this name is on a black-list, request a pin code for example (See this Question). However, you cannot run background Services for an infinite amount of time anymore.

How do I go about implementing a monitoring app

I am trying to build a monitoring app using LUA in corona labs. I was wondering how I would go about doing that.
Background: the app should notify the user when there is another app or outside third party accessing the camera/microphone.
I'm thinking trying to get access to the devices resource manager and it notify the app when the camera and microphone is being used.
I haven't come across anything like this before. Am I on the right path? Or am I way off? How would you go about doing this?
I'm not expecting a definite answer, just a nudge in the right direction :)
In general this kind of behavior is not what Corona is designed for. You would likely have to use native tools, or Corona native if you want to use corona for your UI, to access this kind of data.
There is an interesting discussion about how it can be done in Android here How to check whether microphone is used by any background app, hope it helps!

Making an Android application that cannot be uninstalled/deleted

I want to make a security app for Android phones. Basically, I don't want anyone to be able to un-install it without having to enter a specific password first.
Also, is there a way to prevent the app from being stopped manually (like being closed via. Taskmanager) etc?
This sounds more akin to Malware-like behaviour than that of a regular Android application, anyway:
For a regular Android application, I'd imagine that making it 'uninstallable' is near enough impossible to achieve - try to contemplate what the state of the Android app market would be like right now if this were possible!
On the other hand, if privileged control (root access) was available then this might be a possibility - an example of that could be like how wireless carriers implement bundled software. However, like I mentioned, there is no regular avenue available for applications released via. the Android market to achieve what you've asked, it should be pretty clear to you why...

Categories