Custom screen for confirm credentials on android - android

I've been adding support to authenticate user using device lock in my app, using the using createConfirmDeviceCredentialIntent api.
I am able to successfully achieve this and when I launch the intent returned by the above api, it shows the default android lock screen.
The question that I had is, can I modify the UI of the default lock screen that android shows? The api takes a parameter for setting title and description but can I modify other parameters, let's say background color of that screen?
I didn't found anything documented about this anywhere except the api docs, that's why posting here.
Please help.

can I modify the UI of the default lock screen that android shows?
No, sorry.
can I modify other parameters, let's say background color of that screen?
No, sorry.

Related

Android - how can i make a minimizable app?

So , i want to make an app that can i can minimize and move over other apps.
I saw this feature on the twitch app and did some research but didn't find how they did it.here is an example of this feature.
Thank you for your answers in advance.
The example you showed is Android's Picture-in-Picture feature: https://developer.android.com/guide/topics/ui/picture-in-picture
However, it's not exactly a minimized app. Picture-In-Picture mode is simply a way for your content to be shown when users switch to other apps.
Due to this, there's a number of restrictions and guidelines, such as you're encouraged to hide all UI elements when in PIP mode besides the content that is displayed.
You're allowed to provide a list of Actions for the user to interact with, such as media controls. But note that there's a limit to how many actions that can be provided.
So it's not exactly a minimized app in the sense that its a smaller version of your app. Instead, it's more like the main viewing content of your app has been plucked out of your app and it's displaying over other apps.
If that's all your app needs, then Picture-In-Picture mode will work well.
But if you want a real mini-version of your app, you're going to have to consider Floating Windows instead. Floating Apps create a UI through a Service instead of an Activity.

How to display a text in the lock screen?

It seem that is now possible to write some text inside the lockscreen in the place where the alarm is usually written.
Please have a look red area in the below image.
This is supported on android 4.2 and up.
You need to implement it via an App Widget. You can checkout the documentation here: http://developer.android.com/guide/topics/appwidgets/index.html#lockscreen
Depending on your requirements, you could possibly use Notifications, which appear on the lockscreen.
http://developer.android.com/guide/topics/ui/notifiers/notifications.html

How can i use the lock screen in my app

I need a code to use the lock screen instead of the system so that when i enter a specific password the device make the functionality that i codded it
Are you trying to implement a Lock Screen inside your app?? If so, take a look at the below links.
StackOverflow Discussion
GitHub

how to permanently override android soft keys behaviour and display through

I am relatively new to android and want to create an application that permanently overrides androids basic softkey behaviour and view (for devices with soft keys).
Some functionalities I want to implement are changing the size of the softkeys window at the bottom, change its images, and possibly change its functionality.
For example, the user can set the size to of the softkey to be "large", "medium" or "small". And I can change the functionality of the back button to open say a particular application instead of going "back".
I'm basically looking for a high level answer as to how to do this, a basic direction of what I should read/study in order to be able to accomplish this. I realise this may require root access.
Please note that I want this behaviour to change not only in my application but I want the effect to exist on all applications. If this requires the application to be running atleast at the backend, that is fine.
After doing some decent amount of search, it seems I will have to make changes in the systemUI.apk, or possibly get its source code and modify it. Is this correct?
Thanks in advance.
I don't think even root is going to be enough for the type of changes you are describing. You're going to need to edit the Android source code and build your own system image.
Well you can't override system resources because they are part of the system image.
What you are looking for is called Home Application which can be developed like any other android app no need for root , you can find an example for it in your sdk samples.
Home Sample Application.
your app would be responsible to have UI components to send the user to all of the phone functionalities which includes:
Place for wegits
Place for apps listing (menue)
Access telephony functionality (call, phone history ...)
Access settings.

Use of android lockscreen in an application for security purposes

I am new to android and I am trying to make a security based app in which I want create android lock screen which appears after clicking an item of list view.
Am I suppose to use the same lock screen code as available and make some changes?
I tried to search for my problem but couldn't find anything.
Thanks in advance .
See http://developer.android.com/guide/topics/admin/device-admin.html

Categories

Resources