4

I want do an app,i want it look the same as this one:

alt text

I don't know how to write the word "writing" as the red mark ,and how to add the app icon on the screen.

Dirk Vollmar
  • 172,527
  • 53
  • 255
  • 316
pengwang
  • 19,536
  • 34
  • 119
  • 168
  • 1
    Do you mean you want the word "writing" to appear when the user locks the screen and your app is running or? It's really hard to tell what you're trying to do without some code or a better explaination. – Skizit Oct 26 '10 at 14:43
  • 1
    I guess he wants to add an entry to the lock screen like the clock app does. ;-) – mreichelt Oct 26 '10 at 15:21
  • Ulkmun,you are right,i want my app hava a icon and word like the picture when the user locks the screen. – pengwang Oct 27 '10 at 06:32
  • I don't have any clues,so i cannot give some code. – pengwang Oct 27 '10 at 06:33
  • i want to wait some other advice,i can accept one answer,thank you for your answer – pengwang Nov 18 '10 at 07:45

2 Answers2

3

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. :-/

Community
  • 1
  • 1
mreichelt
  • 12,359
  • 6
  • 56
  • 70
  • If you mean reflections: No, that will not work at all. Even for reflections you need methods that do what you desire - if they are not implemented you have no chance. – mreichelt Nov 17 '10 at 08:37
0

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.

Community
  • 1
  • 1
sunadorer
  • 3,855
  • 34
  • 42