Remove screen lock like the MENU key do?

by andrew » Wed, 27 May 2009 15:05:53 GMT

Sponsored Links
 The lock screen is also a java class called this
class,it captures the event of  MENU key, so if the screen is
locked,we can click the MENU key to remove the lock.
The qustion of mine is that How Can I remove the lock like MENU key
do??Is that possible?
(I know KeyguardManager and KeyguardManager.KeyguardLock,but this is
not the right way,I want to remove,not to hide!).

Remove screen lock like the MENU key do?

by andrew » Thu, 28 May 2009 00:42:55 GMT

 Oh,my God,nobody give me a help.
Maybe it is not possible to do this??

Sponsored Links

Remove screen lock like the MENU key do?

by Walter » Fri, 29 May 2009 02:30:30 GMT

 I'v been looking for this too, seems no way to do it for now


Remove screen lock like the MENU key do?

by Walter » Fri, 29 May 2009 02:33:42 GMT

 I've been looking for this, as my research, no way to do it for now.


Remove screen lock like the MENU key do?

by andrew » Fri, 29 May 2009 23:47:58 GMT


Thanks for Walter !
I have been looking into the source code,and did'nt find there has a
way to do this too!
Maybe it is true that we can't remove the lock in our application as
now as we know.

Other Threads

1. list items and context menus

I'm new to Android. I'm trying to create a list where a specific
context menu is associated to each specific list item. I.e, you click
on list item "Campo1" (see below) and open the context menu specific
for Campo1; click on list item "Campo2" and open the context menu
specific for Campo2. And so on. I've been browsing for ages but
coudn't find a solution.

So far, i've only managed to attach the same context menu to all list
items (by registering registerForContextMenu(getListView()); ).
Any help? Example? Thanks a lot.

This is my code.
package com.androgambo;

import android.os.Bundle;
import android.view.ContextMenu;
import android.view.View;
import android.view.ContextMenu.ContextMenuInfo;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;

public class ListAndContext extends ListActivity {

   /** Called when the activity is first created. */
       public void onCreate(Bundle icicle) {
       String[] mStrings = new String[]{"Campo1",

       this.setListAdapter(new ArrayAdapter<String>(this,
           android.R.layout.simple_list_item_1, mStrings));

       protected void onListItemClick(ListView l, View v, int
position, long id) {
               super.onListItemClick(l, v, position, id);

               // Get the item that was clicked
            Object o = this.getListAdapter().getItem(position);
            String keyword = o.toString();
            Toast.makeText(this, keyword,Toast.LENGTH_SHORT).show();

            try {
                       if(keyword.equals("Campo1")) {
                        // Context Menu for Campo 1 should appear
                        // Context menu created with
     //public void onCreateContextMenu(Menu menuCampo1, View v,
MenuInfo Campo1) {
               // menuCampo1.setHeaderTitle("Scheda Campo1");
               // menuCampo1.add(0, 1, 0, "Asti");
               //menuCampo1.add(0, 2, 1, "Asti Call");
               // }

                else if(keyword.equals("Campo2")) {
                        // Context Menu for Campo 2 should appear
                catch (Exception e) {


2. Java J2EE Online Training

Learn Online From Anywhere..
Participate In Quality Online Projects
Get Training + Project Experience  Certificate
Learn From Expert J2EE  Trainers Personally
Learn Through Live Video Chat, Virtual Classroom
Duration: 100 Hrs.

Please visit:


3. PHP MySQL Online Training

4. how to send message to a speceific port

5. My Creation

6. mkyaffs execution for emulator

7. button padding