Android :: Intercept A Hard Key Pressed In Service / Handle KeyEvents In It?

Jul 28, 2010

Is there anyway to intercept that a hard key was pressed by using a service in order to launch an activity?

In other words : Is it possible to handle the KeyEvents in the Service?

Android :: Intercept a hard key pressed in service / handle KeyEvents in it?


Android :: Intercept Home Button - How To Detect User Pressed?

Jul 30, 2009

In an activity, how do detect the fact that the user pressed the home button?

View 6 Replies View Related

Android :: Way To Send KeyEvents Through An Input Method Service To A Dialog?

Apr 12, 2010

I'm trying to implement an input method service that receives intents sent by a remote client, and in response to those sends an appropriate KeyEvent. Is there any way to send keys and control the device like using the hardware keys from an input method?

View 2 Replies View Related

Android :: Why Droid ListView Clears When Hard BACK Key Is Pressed

Apr 16, 2010

In my android app I have a Tabhost with a ListView as one of the tabs. By clicking on an item in the ListView (an address) I start an Intent to Google Maps for directions and the choice dialog pops up for google maps, web browser etc. Problem is if I press the hard back button then the launch dialog goes away but also the ListView is cleared. Any idea why?

View 1 Replies View Related

Android :: Any Way To Intercept Power Button Presses When Running Service?

Feb 11, 2010

I am creating an Android service which constantly runs in the background. I'd like to be able to intercept calls to the power button to:
a) prevent the screen coming on

b) handle the power button press in a different manner.This is to enable the user to have a very simple interface to my application and prevent wasting battery powering up the screen when it is not required.

I will probably need an alternative mechanism to actually bring the screen back up (such as an extended key press or similar), but this only becomes relevant if what I'm after is possible.

View 2 Replies View Related

Motorola Droid X :: Physical Buttons / Hard To Handle?

Jul 23, 2010

How do you guys like the physical buttons vs. the soft buttons (glass) on other phones? I've got an Incredible that I really like, but I'm having two issues that I'm not liking. Call quality and battery life. I looked at the Droid X and really didn't like the physical buttons. How many of you were disappointed by the physical buttons but have found them to be OK after using them?

View 35 Replies View Related

Android :: Tips On Making An Android Service / Which Polls Web Service Handle Bad Connectivity

Jul 16, 2010

I am developing an Android app which needs to poll a specific webpage in time intervals. I've got it to the point where it does indeed poll the page on a specific interval, and that interval is specified in a SharedPreference which can be changed by the user in the settings page of the app. But complications arise when network connectivity is flaky.For example, how do I ensure that the Service "wakes up" the network adapter and gives it ample time to connect before polling the page, in the case that the phone was sleeping to save power? This polling action can happen as little as once every 24 hours, so I don't want to miss one action just because the network was out (but turned on a few seconds, minutes, or even hours later).

Or there are times when the web service doesn't respond, or DNS doesn't respond, or what have you, and for any reason it doesn't get a response even though the phone is technically connected. What sort of rule do I put in place to make this retry later, so that I'm not retrying repeatedly when the user specifically turned off their internet but I'm retrying soon enough that if it was just a hiccup, the data can be received soon after the first try?Are there any examples for this type of situation? What is the logic to best handle this?

View 1 Replies View Related

Android :: Stop Following Activity If Home Key Or Pressed Back Pressed

Jul 8, 2010

I have a problem and that is my SplashScreen I have. It is built as an intro and after 3 seconds it shows the main menu of the program. Anyway, if I press down Back or Home button during the time the SplashScreen shows, it closes, but the activity I have chosen to follow after the SplashScreen will still run after the three seconds.

My code: **UPDATED CODE**

Handler ur = new Handler();
myRun = new Runnable() {
public void run() {
mainIntent = new Intent(SplashScreen.this,MyApp.class);
SplashScreen.this.startActivity(mainIntent);
SplashScreen.this.finish();..........................

View 1 Replies View Related

Android :: Prevent GLSurfaceView From Swallowing All KeyEvents?

Nov 27, 2009

as there's a GLSurfaceView in use, no other views receive any KeyEvents. MotionEvents however, are still working as expected. Is there a way to prevent GLSurfaceView from swallowing all KeyEvents?

View 4 Replies View Related

Android :: Passing Keyevents To The Next Activity In The Stack

Apr 4, 2009

I'm trying to create an activity which would be on top of other activities (a small dialog themed activity) and I want to get ALL key events to be ignored by my activity and handled normally by the activity beneath it. When I say all I mean the send, end and back keys too. Is this possible?I've tried setFocusable(false), setting the flag FLAG_NOT_FOCUSABLE, and adding a dummy onKeyListener but nothing doesn't seem to do the trick.

View 4 Replies View Related

Android :: Safe To Queue KeyEvents And MotionEvents For Deferred Processing?

Sep 11, 2009

I decided to start pipelining input to increase responsiveness in my games. Basically what I do is when the activity receives a Key or Motion event, it sends it to a feed method in the game, which encapsulates it with a time and whatever else I need and puts it in a queue then immediately returns so the UI loop is never held up waiting for long. The main loop later processes the queue, applying the events in it at the appropriate times.

This works great and makes the games snappy, although now I'm starting to miss touch events intermittently. I realized that the events could be recycled objects and that could make them not safe to queue. Is this the case or is it safe to queue them for deferred processing like I'm doing?

View 5 Replies View Related

Android :: App To Intercept SMS Without Loading It To UI?

Mar 11, 2009

Requirement: 1. The program must be on top of SDK only, no hacking! 2. When a TEXT SMS is arriving to Android mobile, the program must intercept the TEXT SMS to analyze the SMS content (access the whole SMS data) 3. In terms of the SMS content, the program determines if the SMS is erased as it doesn't exist. No notification, no update to Inbox UI. 4. Power cycle the Android phone, the SMS is not seen at Notification or message Inbox

Can any one help with the solution? Or which API shall we look into?

View 3 Replies View Related

Android :: Possible To Intercept Open Application?

Oct 7, 2010

I am wondering if it is possible to intercept an open application call, for any (most of the) installed application. Or at least for opening the Activity having the intent-filter's action set to Main (if it exists for an app).

View 1 Replies View Related

Android :: Possible To Intercept Incoming SMS To Application?

Mar 24, 2009

Does anyone known if its possible to intercept incoming SMS to my app? Similar to PushRegister in JME. I try to BroadcastReceiver - works fine but the SMS also goes to Native Inbox app.

View 3 Replies View Related

Android :: Detect / Intercept Screen Turning Off

Nov 27, 2009

Is there any way where I can detect that the screen is about to turn off, so I can do some work *before* it happens?I need this to work around bug 3755: OpenGL apps sometimes crash when the screen gets turned off because they don't get surfaceDestroyed /surfaceCreated() events. Simply put, I need to shut down OpenGL before the phone has a chance to detach the GPU. The only events I seems to be getting when the screen turns off are onPause() and onWindowFocusChanged both of which turn up *after* the GPU detaches, by which time it's too late.

View 7 Replies View Related

Android :: How To Intercept Voice Data During Call?

Nov 15, 2010

I plan to develop Android application which will encrypt/decrypt voice data such that parties can communicate using secure channel. So the question is: how to intercept voice/audio data during GSM call? Is it possible or not? Should I use Android NDK or something else?

View 3 Replies View Related

Android :: Intercept Audio Stream On Device?

Jul 8, 2010

Let's suppose that we have the following scenario: something is playing on an android device (an mp3 par example, but it could be anything that use the audio part of an android device). From an application (android application :) ), I would like to intercept the audio stream to analyze it, to record it, etc. From this application (let's say "the analyzer") I don't want to start an mp3 or something, all I want is to have access to the audio stream of android. Any advice is appreciated, it could a Java or C++ solution.

View 1 Replies View Related

Android :: Intercept AJAX Call From WebView

Oct 15, 2010

I want a HTML/javascript application, running in a WebView, to make AJAX calls that are handled by the Java code. Ideal would be to just intercept the call (easy, just use shouldOverrideUrlLoading()) and 'return' some data. However, I don't find a way to 'return' a response to the WebView, other than calling a javascript function using loadUrl(). This will not work for me, as the HTML/js app is a drop-in application which I don't control. As far as the HTML/js app concerns, it just does an AJAX call and receives some data back.

View 1 Replies View Related

Android :: Intercept MyTouch 4g Genius Button?

Nov 7, 2010

Does anyone know how to intercept the genius button on the new MyTouch 4g by HTC? Is it somehow hard wired to the kernel?

I looked at logCat, and I see that if uses the following intent:

INFO/ActivityManager(1309): Starting activity: Intent { flg=0x10000000 cmp=com.nuance.android.vsuite.vsuiteapp/.VSuiteStartSession }

View 1 Replies View Related

Android :: App Can Intercept Bluetooth Device Buttons?

Jul 2, 2009

Could someone point me to the documentation or example on how my application can intercept button pushes on an already paired and connected bluetooth device?

View 5 Replies View Related

Android :: Can't Intercept The OnTouch Event Of PopupWindow

May 26, 2009

I want to intercept the OnTouch event in a PopupWindow, but it failes everytime. Here is the code snip:

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

When the activity started, I can click the button to show the popup window correctly. But after that, nothing happens when I touch the popup window's view. But if I touch any where outside the popup window, the log Log.d("Demo", "layout::onTouch >>> view: " + v + ", event: " + event); will work.

It looks like when I touch the view of the popup window, the touch event has been consumed somewhere?

View 2 Replies View Related

Android : Installing App Inventor Onto Samsung Intercept?

Nov 16, 2010

I am trying to install app inventor on my Samsung intercept.I have gone through the steps in the set up computer and phone.When it was time to plug in the USB connection the two notifications did not display.Please, if anyone knows of any additional steps I need to take I would appreciate some advise.

View 1 Replies View Related

Android : Favorite SMS Client On Samsung Intercept?

Oct 5, 2010

I have would like to change the default SMS client on my Samsung Intercept. Curious what free SMS clients do you use?

View 27 Replies View Related

Android :: How To Intercept Javascript On Click Window.close

Oct 3, 2010

I am displaying web content in a WebView but I am having issues to identify when the user presses a cancel button which should close the current window. The cancel button is defined as follows in the page source code: <input value="Cancel" name="cancel" type="button" onclick="window.close();There are other buttons which I am able to handle using shouldOverrideUrlLoading() but since this cancel buttons does not attempt to open a new page, this is not working. Does anyone know if there is a way to intercept this cancel? By the way, when cancel button is pressed nothing happens.

View 4 Replies View Related

Android :: Intercept Incomming Calls / Sms To Block Or Unblock

Mar 9, 2010

Is there any way to intercept incomming calls/sms (to block or unblock it) on the basis of mobile numbers which are added to screening list.

View 1 Replies View Related

Android :: SMS Intercept Without Notification Icon Or WAP-PUSH Messages

Nov 13, 2009

Is there a way to intercept an SMS with BroadcastReceiver as for example here but without showing any notifications to the user and immediately deleting the message that contains for example some keyword

What I need is to have some communication between android phones, one to one, and I thought that sending SMS messages would solve the problem, but the SMS notification are not needed for that, maybe the WAP PUSH messages would better for that but I have no idea how to send them from android phone.

View 3 Replies View Related

Android :: Intercept Links From Browser To Open Droid App?

Oct 22, 2009

I'd like to be able prompt my app to open link (instead of the browser) when the user clicks on a URL of a given pattern. This could be when the user is on a web page in the browser, or in an email client, or a WebView in a freshly minted app.

For example, click on a YouTube link from anywhere in the phone and you'll be given the chance to open the YouTube app.

How do I achieve this for my own app.

View 2 Replies View Related

Android :: Intercept Back Button From Soft Keyboard

Oct 15, 2010

I have the activity with several input fields. When activity started soft keyboard is showed. When back button pressed soft keyboard closes and to close activity need to press back button one more time.

So the question: is it possible intercept back button to close soft keyboard and finish activity in one press of back button without creating custom InputMethodService?

I know how intercept back button in other cases - onKeyDown() or onBackPressed() but in this case it's not works: only second press of back button is intercepted.

View 3 Replies View Related

Android : How To Intercept A Form POST In Droid WebViewClient?

Sep 8, 2010

I have a WebViewClient attached to my WebView like so..

View 1 Replies View Related

Android : Can I Intercept MMS - SMS Message And Extract Image On Droid?

Apr 29, 2010

I want to basically intercept a text message that has an image attached, and save that somewhere automatically. Can this work on Android?

View 1 Replies View Related







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