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
Related
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.
I want to develop search bar like bellow image just like showing in Google search bar. How to achieve this. Please some can provide sample code or related links to achieve it.
I assume the actual question here is not how to create a widget (if it is, check the official Android documentation on widgets), but how you can enable a widget to receive text input, which, as far as i am aware, is not possible using standard widget elements.
You will probably have to try the way discussed over here - creating a transparent activity when your widget is tapped.
I am very new to android development. I wanna create a app thats like a ticker on android tablet. But when the user clicks on any other application, i still want my ticker to be visible and the other app to resize and occupy rest of the screen only.
Somebody told me that this is not possible. Is it the case ? Anyone know of any similar app ? or somehow plz get me started with this ?
Thanks for your help.
Cheers
It is not a good idea steal screen space from other applications. If your ticker is floating above like modal window, it would probably block some views for the user.
If your app is competing for the screen space, the other app would probably look ugly.
My suggestion is that you rethink your application, and follow the user interface guidelines.
Good luck!
I believe this isn't possible. Even if, it isn't a good idea. If you want something like that consider creating a widget or some kind of notification. That would be the best and a lot of applications use notifications like that.
what you want to do is creating a system type of window,such as PHONE_WINDOW,make your app flowing on the up-layer of other normal window.
You may read this post
http://www.apkbus.com/android-77789-1-1.html
I know that there is already some apps can do this, such as:
WidgetLocker Lockscreen
Flyscreen
I want to know how to do this in my app? What classes I can use? Or what articles I should read? I don't want to change the Android's source code.
And I wonder if it will be different to deal with when the screen is locked by draw pattern?
Have a look at this answer. You need to write your own home screen app which will implement the lockscreen behaviour that you require. There is sample code for writing your own home screen app in the Android SDK.
I want do an app,i want it look the same as this one:
I don't know how to write the word "writing" as the red mark ,and how to add the app icon on
the screen.
The answer is simple and yet annoying: It is not possible using the standard lock screen. Source of Android's lock screen describes where to find the source code of the default lock screen, and if you look into the source code of LockScreen.java you will find out that this information is hard coded. So basically you will have to wait for a new Android version to support this feature or program your own lock screen, which kind of misses the point. :-/
I only found a comment in the docu here that it could be possible to add a widget to the lock screen sometime. Any than this I found some apps that deliver a complete alternative lock screen.
So my guess it, that the clock on your screen is only able to show the info on the lock screen due to an extra (HTC?)-API that is not available for third party developer as suggested here: https://stackoverflow.com/questions/3556430 too.