Android : Capture - Suppress Home And EndCall Buttons Events?

Jan 4, 2010

If you ever tried to write a locker app on Android sure you meet this problem: Code...

Seems like onKeyDown is filtering out all keys but "Back" and "Menu". Well, it's not true! Home button will still bring you Home screen and End Call button will run native Locker application!

Fellow's out there also claim it as a problem: How to listen from ENDCALL button problem With Home Back screen button Suppressing Key presses in Activity, especially in Options Menu
Issue 4202: Feature Suggestion: permission for intercepting KEYCODE_CALL

Do you know any workaround to block two those buttons? Is the only way (as often) - write in C ?

Android : Capture - suppress Home and EndCall buttons events?


Android :: Capture EndCall Key

Aug 6, 2009

I want to capture when user press the EndCall key in simulator, but i think i'm doing something wrong cause nothing happens!

My code is:

CODE:......................

View 2 Replies View Related

Android :: Capture Key Events While In Background

Dec 2, 2009

I am planning to port an application from Symbian to Android and I'm looking at the possibilities of the Android platform.

My application runs in background and needs to detect when the user presses and holds a button (for 3-4 seconds) on the phone even when the phones key lock is on.

I am in the process of learning Android programming but so far what I understand is that if my application runs as a service it would be able to receive broadcast such as ACTION_MEDIA_BUTTON. Am I looking in the right direction?

I had a quick look at the list of native android broadcast actions and I could only find broadcast actions for Camera, Media and Call buttons. What about the other buttons?

View 6 Replies View Related

Android :: Capture The Events For An Application?

May 19, 2010

I want to capture the events like user clicked on so and so button, or > entered some text in Edit Box and etc...

View 3 Replies View Related

Android :: How To Capture Key Events With Window-less Activity?

Dec 2, 2009

I have an Activity which has no window (but it has a view). I'm using: getWindowManager().addView(view, params);I've attempted to call takeKeyEvents(true), however I see that takeKeyEvents first retrieves the Window and then calls takeKeyEvents on that Window.In my case, the Window is null.What this means is that I never receive onKeyUp and onKeyDown calls, which I need in order to intercept some key presses from external input devices (similar to a handsfree set for example).

View 10 Replies View Related

Android : Way To Capture Soft Keyboard Key Events?

Oct 28, 2009

I am facing a problem any one can help me regarding this. I have an EditText and a list of contacts. I want to search a contacts on matching with characters entered in EditText field.

View 6 Replies View Related

Android : Way To Capture Soft Keyboard's Key Events?

Jul 2, 2009

I am popping an alert box whenever an user exceeds 100 characters in a text-box(EditTextPreference). Now i am able to capture the hard keyboard's, i.e. computers's keyboard, events, but i am not able to capture the sofkeyboard's key events. There are some keys like numbers, enter, delete etc. in the softkeyboard which i am able to capture using onKey, but i am not able to capture the alphabets and other keys. i also tried setOnKeyboardActionListener, but didnt get the desired results,( may be i was not using it correctly). Can any one suggest how to capture the click of alphabets on the sofkeyboard.

View 12 Replies View Related

Android :: How To Capture Key Events From Intent's / Broadcast Receivers?

Oct 29, 2010

Is there a way to capture a key event from the Menu button using an Intent or Broadcast Receiver? Basically I want my app's Service to be activated when the Menu key is pressed.

View 1 Replies View Related

Android :: Application That Has To Capture The Key Events Both In Foreground And In Background

Jul 26, 2010

I am developing an application that has to capture the key events both in foreground and in background. I used the following code. But am unable to capture the keys in background.

CODE:............

I used broadcast reciever..

CODE:.................

View 1 Replies View Related

General :: Capture Stylus Hover Events Before Get To Apps

May 13, 2014

I'm trying to work with a custom build of Android based on KitKat to incorporate a stylus, copying some of the functionality (though not code) from Samsung which sells Android-with-stylus builds for e.g. the Note 3. I'm not including details of the specific device because right now I am working on a custom dev device and my aim is to write code which is generic enough to be usable from any Android (based on KitKat). The build (written by others) already incorporates drivers and sends stylus events correctly as motion events etc. Programming at the app level I can receive onHover, ontouch, onClick etc

The specific functionality I am trying to achieve is to pick up a stylus-button-click while hovering. It's perfectly possible to do this in any app, using an onGenericMotion Listener.

However, I want to make my "stylus-action" have system-wide effect - so that anywhere (in any other app, or in the launcher or whatever) I will pick up the event (prior to any other app) and bring up my custom menu. (just like AirCommand in Samsung Note 3) I guess in my custom Android this would then make that particular action somewhat protected or unusable for other users, but I'm ok with that.

In older Android (prior to ICS) you could try something by putting up a System Overlay (i.e in regular app code, without hacking the ROM at all), but this is no longer possible.

This is not an attempt to tapjack or whatever, I understand why this functionality has been removed from the domain of the regular programmer, and I don't want to regress my ROM back to pre-ICS behaviour by allowing the System Overlay hack. Now I am programming the system (if my change is good enough I'd like to submit it back to AOSP) so I would like to know the best method to address this. Since Samsung have already done this, it must be legal (using legal in the terms of "Android will allow it"), and I want to do it right.

Is it possible to write something similar to the System Overlay when you are running from a system service? Or is there a good choke-point to capture events before they are broadcast to the current running apps?

I was looking at AndroidXRef /frameworks/base/core/java/android/view/View.java specifically in the function dispatchHoverEvent() which looks like a promising place. My naive idea is that I would place code here checking the MotionEvent to see if the button is pressed and if it is, don't call any listeners and instead call my little menu app (or broadcast a custom message, or something anyway). However, I've never written code on the ROM level before (LOTS of experience writing app code) so I don't know if this is a really bad point or a good point to add in code. Should I be putting things at a higher level or a lower one? Will this capture all events or not? Is it all just trial and error?

View 4 Replies View Related

Motorola Droid :: Non - Rooted / Non - Home ++ To Capture Your Screens

Dec 17, 2009

I found a easy way for you non-rooted/non-Home++ to capture your screens. Download the Steamy Window app. Run it and close it right away. Go to the screen you want to print. Press and hold the Home key. Run Steamy Window. Wipe away all the steam. Hit the menu button and save the image. It seems like a lot of steps, but it is pretty quick and easy. The only thing the pic won't capture is the notification bar.

View 3 Replies View Related

Android :: Handle Key Events For Home -menu - Back

May 9, 2010

How to handle the key events for HOME, MENU, BACK after making these keys as a soft keys?

Requirement: The Device doesn't going to have any hard keys. So we want to bring these keys as a soft key and handle these keys events.

View 5 Replies View Related

Android :: Disable Home And Other Buttons To Persist App?

May 6, 2010

I am building an app which uses a WebView. This app runs at startup. Is there a way to maintain the app running(persists) even if the user presses the 'Home' or 'Back' button? In other words,pressing the 'Home', 'Back' or the other buttons shouldn't close the activity.

View 8 Replies View Related

Android :: Switching Home And Search Buttons?

Jul 6, 2010

Is there any way to switch the Home and Search Buttons? The reason I ask is that I hold my Evo with my left hand and the the Home Button being on the far left isn't ergonomically friendly. (big hands) I would like to remap the Search to the Home.

View 1 Replies View Related

Android :: Touchdown Home Screen - Buttons On Bottom ?

Nov 7, 2010

Most screen shots of Touchdown have the Home Screen Buttons on the left side. My Samsung Vibrant has them across the bottom and I can't figure out how to get them on the left.The Nitro Desk configuration manual shows them on the left, but the installation manual shows them on the bottom.It does not say in any of the manuals how to move them.

View 4 Replies View Related

Android :: 2.0 Suppress Local Search On Key Event

Oct 30, 2009

One of my apps implements a search function which is invoked when the user presses the Search button. In 1.6, Android Quick Search Box can be suppressed by overriding Activity.onKeyDown() and picking out KEY_SEARCH. On Android 2.0, no more... Android's Quick Search pops up no matter whether Activity.onKeyDown(), Activity.onKeyUp() is overridden, or Activity.setDefaultKey(DEFAULT_KEYS_DISABLE) is set. Has anybody had any luck getting rid of the Android Quick Search?

View 2 Replies View Related

Android :: Virtual/soft Buttons For Home - Menu - Back - Search - Always On Top

Jun 9, 2010

How can I make an app or maybe service that looks like (Nexus One touch buttons) for the navigation keys (Home, menu,Back, Search)

The buttons should always be visibly and always stay on top and send the command to the app thats running.

Someone have ideas and sample codes how to do that?

*I see an app with name (Smart Taskmanager) wich always detect when you touch the right side of the screen and then detect when you slide the finger to left.

So I think its possible, with this function I think its possible to implementate the code to simulate the (Home, Meny, Back, Search) buttons.

*I also see and test an app wich show a "cracked display" always ontop so that tecnic maybe shold be useful to always show the buttons/bitmanp on top.

Thoose function, to show the button and catch the "touch event" and send the event to the active program, thats what i dont can figure out how to do.

View 2 Replies View Related

HTC EVO 4G : Way To Lock Home Buttons While Using Game

Oct 9, 2010

My 3 year old loves playing the puzzle game. Great way to entertain her for 20 minutes. But I really gotta watch her. She was just playing and hit the home button was still trying to move a shape but brought up the recent calls list and dialed my boss! She doesn't mean to do it, but her hands are small. So, is there a way to lock those buttons while she's using the game? It would be nice Or would it be more of an individual app feature that I'd need to contact the developers for the feature request?

View 2 Replies View Related

HTC Incredible : How Do I Darken Home Buttons?

May 25, 2010

This may sound trivial, but when I watch a video at night, the four button lights at the bottom of the phone (home, menu,back and search) are so bright it distracts from the screen. Am I missing a simple solution to fix this? I've tried various brightness apps but none of them control these lights.

View 3 Replies View Related

Android :: Suppress / Mute All Incoming Call Or Sms Notifications

Oct 7, 2009

is it possible to suppress all notification messages e.g. incoming call or sms notification? Actually, I am developing a game and I want to given an option to user to mute all notifications (some thing like do not disturb :)) while playing game.

View 2 Replies View Related

Android :: Suppress Web View Password Manager Notice?

Jul 24, 2009

I have designed an app that logs into a web service by using a WebView instance. Each time the login form is submitted, the WebView asks whether the password should be stored now, later, or never (the typical dialog when logging in with the Android Browser). Is it possible to override this behaviour? I would like to suppress the notice, because the user data is handled by my app.

View 2 Replies View Related

Android :: How To Suppress Spinner Double Clickable Trouble?

Mar 13, 2010

How to suppress Spinner double clickable problem of Android.Try launch any application that having Spinner.Then double tap it.It will show context menu twice.

View 1 Replies View Related

Android :: Pressing Home Or Back Buttons From Main Activity / Causes App To Stop Unexpectedly

Nov 13, 2010

This is difficult for me to diagnose because the Log doesn't provide the offending code line that indicates what caused it.Running the app in the Emulator seems to work OK until I press Home or Back from the Main Activity. Using Back between the activities in the program seems to work OK, it only fails at the Main. I don't have the app finished yet so I haven't loaded it to a device yet.The Log says there was a null pointer exception so I would like to find why.The log points to the android routines (and I don't appear to have the source for those routines in the emulator-most but not all and these are refering to those I can't access). The log gives up at one point and says "11 more".It would be nice to see the remaining 11 in the hopes that one of them points to the line in my code that caused the offense.I'm looking for ideas on ways to find the error and hopefully cure it.

View 2 Replies View Related

Nexus :: Home Buttons Not Working Properly?

Feb 12, 2010

I intend to buy an N1 soon, but I have been reading some reviews and I found many complains about hitting the home buttons by accident when you don't want them to work, and have problems pressing them when you need them. Was that issue already addressed in some previous OTA update? Or is it a hardware flaw? What can I expect about this problem?

View 1 Replies View Related

HTC Eris :: Home Back / Search Buttons Won't Light Up

May 12, 2010

I upgraded to evil Eris and have found two problems: I am missing the market app, the light for the menu home back and search buttons won't light up and does mess me up.

View 6 Replies View Related

HTC Droid Eris :: Disable Home & Back Buttons?

Feb 18, 2010

Is there any way to disable the 4 buttons at the bottom of the screen? I forget if there's a term for them but the Home, Menu, Back & Search buttons? It's almost impossible to play some games because I inevitably hit them for a split second and I lose all my progress.

View 6 Replies View Related

HTC Desire :: Periodically Non Functioning Home & Back Buttons

Jul 23, 2010

For periods of time, my Home & Back buttons doesn't work on my Desire. Sometimes, they work perfectly without any problems. My menu and search buttons always work fine. Is it a loose connection that i can repair somehow?
It has never been dropped or damaged in any way. I've tried to find someone with the same problem as I, but with no luck.

View 3 Replies View Related

Nexus :: Home And Google Search Buttons Not Working

Jul 7, 2010

Just got my 1st problem with my nexus 1, had since january. my home and google search keys has stopped working. also the power button no longer locks the phone. problem started when the wi-fi wouldnt turn on, so i rebooted phone and then lost all these buttons when started up again. not done a factory reset yet as i am still at work and want to make sure ive got everything backed up 1st. also what is the best application for backing up sms?

View 4 Replies View Related

LG Eve :: HOME / RETURN Buttons Can Be Activated In Ringing Mode?

Jan 28, 2010

Does any one have problems answering phone call? When I pull my phone out of my pocket 75% time my hand touches return or home pad and kicks screen out of call display. So I hear my phone ring but can't answer it as I'm in home screen or it just cancels my call. I thought it was something to do with the signal, but I tested it in present of Rogers sale rep and he was surprised that HOME and RETURN buttons can be activated in ringing mode?

View 4 Replies View Related

HTC Desire :: Any Buttons On Home Screen To Turn On / Off Internet?

Nov 2, 2010

Does anyone know of any buttons to use on the home screen for turning the mobile internet on and off? I use the power bar widget for screen brightness, bluetooth, WiFi etc., but it doesn't have mobile Internet!

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved