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.
Related
I am stuck with one of my client requirement , it seems not be feasible to me as i am not able to find anything related to this particular requirement.I am goggling but does not came up with proper clue.I though studied the below mentioned link which states that it is not supportive . Here is the link :-
How to force a widget to appear on lock screen programmatically (Android)
i just want to confirm that is it feasible ? Or this can be achieved by making custom lock screen for application.
Here is what my client requirement is :-
I need your suggestion here , please let me know .
Thanks
i just want to confirm that is it feasible ?
As I wrote in the answer to the question that you linked to, the standard Android lockscreen framework only supports app widgets from Android 4.1 through 4.4, which is a steadily shrinking portion of the Android device ecosystem.
Or this can be achieved by making custom lock screen for application.
Android does not support the creation of custom lockscreens, other than by building your own modified version of Android, poured into your own custom ROM, installed onto whatever hardware your custom ROM supports.
There are plenty of developers who claim to create custom lockscreens. Those actually require you to disable the device lockscreen, then their apps attempt to interpose themselves between the user and ordinary apps. At the best of times, this offers weaker security.
I've read elsewhere that
“Developers cant customize the in-call screen because of security concerns”
So, I am trying to understand the functionality of the in-call screen at the source level.
Can any Android devs, especially those that have created their own custom ROMs, tell me which specific classes in the AOSP are responsible for both display and functionality of this screen?
Take a look at the source:(from the horse's mouth):
https://code.google.com/p/incomingcallplus/source/checkout
Esp. the BETA Version 0.8.0
By the way, if you are interested in some R&D, I have worked towards this so i know we can access PhoneStateListener and get the status of a call for off the hook, idle and ringing.
http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html
Also,
Android: How to customize income call screen
This may be a bit late but right now Android support for custom in-call screen by implementing InCallService. The application needs to be set as the default dialer to make it work. For more info https://developer.android.com/reference/android/telecom/InCallService.html
Alright so I have an app that I would like to have utilize other apps. For example I have an app that does quite a number of things except for a directory look up since there is already an app that does that for my school. I know I can launch the application with intents, but that also brings them away from the navigation menu for my application. Is there anyway that I could run an app inside a view layout. I am not hopeful for this but I figured I would chance asking it anyway.
This is technically possible by using widgets. You can implement an AppWidgetHost, and other applications can create App Widgets to use inside your own app. This is how the launcher screen in Android works.
This, of course, will only work if other applications in question implement widgets. So, the general answer to your question would be no, it is not possible to host arbitrary applications or Views/Activities from other applications inside your own.
This not the Android design philosophy. You should send an Intent to the directory app, which I hope is designed to look up a result and then return it to you. The mechanism is startActivityForResult() in your app, and setResult() in the directory app.
I want to develop an android application that will be an alternative lockscreen.
I searched a lot and i couldn't found an explanation about how to make an app to work like a lockscreen. I understand that there is no official android API for lockscreens, but there must be way, because there are a lot of alternative lockscreens applications in the market.
Does someone know how could i make my app work like a lockscreen? Or if there is a basic code out there of lockscreen app that i can learn from it how to do it?
Thanks a lot (:
The way this is usually accomplished is creating an app that becomes the home application and then when the screen is turned on display your custom lockscreen and hide it when the user successfully unlocks it so they can use the device.
Make sure to take a look at the numerous questions on SO that are very similar to this.
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.