Android :: Programmatically Detect Presence Of Hardware Call / Hang Up Keys

Jun 2, 2010

One of my clients wants a code method that returns a boolean. True if the Android phone has hardware red/green call/hang up keys and false if it does not.But not in a key press event as in the code snippet above. He needs to determine this up front if a phone has physical red/green keys or virtual ones.Is it possible and if yes can someone provide a code sample to achieve this?

Android :: Programmatically detect presence of hardware call / hang up keys


Android :: Onscreen Keyboard Too Big - Anyway To Detect Its Presence

Aug 14, 2010

In one of my custom views, I have an EditText. When the onscreen keyboard appears, it takes up too much space for my custom view. I would like to turn off visibility of a few of my components whenever the onscreen keyboard is present. Then turn them back on when it goes away. Anyway I can add a listener of some kind to detect the opening/ closing of the onscreen keyboard?

View 3 Replies View Related

Android :: How To Detect Hardware Keyboard Presence

Mar 10, 2010

Is there a way to detect if the device I'm currently running on has a hardware keyboard installed? How do I query device capabilities anyway?

View 1 Replies View Related

Android : Way To Detect Presence Of Camera On Droid Device?

Jun 24, 2010

How can I detect the presence of camera on an Android device?

View 11 Replies View Related

Motorola Droid X :: Hang Up Icon Unresponsive - Hang Up Call Quickly

Jul 19, 2010

This has happened to me several times in slightly different cases. Several times I've mistakenly placed calls to the wrong people (due to just messing around with the phone).

In a panic, I pressed the "back" button thinking that it will cancel the call. It didn't. I also tried the "home" button. Also no good.

I had to drag down the notifications bar to see the phone call in progress and finally access the red Hang Up button. That worked. The problem is that is is SLOW. And worse, one time the phone would not respond to the button press until after several tries (maybe the CPU was busy on something).

Anycase, that would appear to be a major problem with all these touchscreen-only smartphones - lack of a physical Hangup button.

Is there any workarounds to this? Perhaps some sequence or combo of the existing physical buttons to forcefully hangup an errant call?

View 1 Replies View Related

Android :: How To Detect Front Camera Programmatically

Oct 13, 2010

How to check if the android phone has a front camera too? I'd tried to use some help form https://docs.google.com/View?id=dhtsnvs6_57d2hpqtgr but Camera camera = FrontFacingCamera.getFrontFacingCamera(); sometimes works sometimes not.

View 1 Replies View Related

Android :: Programmatically Detect When Ics File Clicked?

May 27, 2010

How to find when user clicks the ics file ? In android programmatically

View 1 Replies View Related

Android :: Can I Programmatically Detect White Noise

Oct 7, 2010

The Dell Streak has been discovered to have an FM radio which has very crude controls. 'Scanning' is unavailable by default, so my question is does anyone know how, using Java on Android, one might 'listen' to the FM radio as we iterate up through the frequency range detecting white noise (or a good signal) so as to act much like a normal radio's seek function?

View 9 Replies View Related

Android :: Way To Hang Up Phone Call Via Api?

Feb 23, 2010

I've spend the last couple days looking for a way to hang up a phone cal via the API. I'm guessing for some "security" reason that Google does not allow this. Not being one to give up yet...is there any undocumented way to hang up a phone call? Of course the real solution would be for Google to add a HANG_UP_CALL permission and expose the hangup() method to the public API, but it doesn't appear that will happen.

View 2 Replies View Related

Android :: How To Hang Up Outgoing Call?

Feb 2, 2009

We are new to Android and creating an application where one of the things we need is to control the outgoing call, at least to be able to stop it from our application. For now we tried using Intent.ACTION_CALL to use existing activity:

Intent callIntent = new Intent(Intent.ACTION_CALL, Uri.parse ("tel:" + phoneNumber)); startActivity(callIntent);

But we can't figure out whether it's possible to stop launched by this default Call activity. Is it possible? If yes, how? If not, what should we use to write our own Call activity to make a very simple call? We would want this activity only to be used by our application, not for all outgoing calls.

View 3 Replies View Related

Android :: Programmatically Detect Phone In Silent Mode Or Not?

Jan 12, 2010

code snippet to identify whether the phone is in Silent mode or not. I am using Android 1.5. I tried by using "android.provider.Settings.ACTION_SOUND_SETTINGS". It is not working.

View 2 Replies View Related

Android :: Key Event To Hang Up Incoming Call

Jan 14, 2010

I am trying to hang up an incoming call with injecting KeyEvent, however, got error below:

WARN/WindowManager(61): Permission denied: injecting key event from pid 296 uid 10024 to window Window{43d37708 paused=false} owned by uid 1001 java.lang.SecurityException: Injecting to another application requires INJECT_EVENT permission
Though I've added android.permission.INJECT_EVENTS to the project, still the same.

How could I deal with this situation, I just want to stop the call.

View 2 Replies View Related

Android :: How To Stop / Hang Up Outgoing Call?

Jun 22, 2009

I'm just doing an application that controls who to call and how many rings let the call do. For example, to not wake up someone in the morning we only do 3 tones. I'm using the standard BroadcastReceiver method to stop the call from going out. I explain here for the people who want to do it, also.

[ Manifiest ] 1.- You need enough permissions: <uses-permission
android:name="android.permission.PROCESS_OUTGOING_CALLS" />
<uses-permission android:name="android.permission.CALL_PHONE" />
To make calls and process outgoing calls.

2.- You need a broadcast receiver that catches the broadcast intent:
<receiver android:name=".receiver.PhoneOutgoingCallReceiver" android:enabled="true" >
<intent-filter android:priority="0">
<action android:name="android.intent.action.NEW_OUTGOING_CALL" />
</intent-filter> </receiver>
[Code]

3.- You controls who can call in the:
@Override public void onReceive(Context context, Intent intent) { }

View 7 Replies View Related

Android :: How To Hang Up (disconnect / Terminate) Incomings Call?

May 3, 2010

"How do you hang up incoming calls (in Android of course)?"First, I know this question has been asked and answered several times, and the response is always "you can't". But if we look in the market we get a few applications (all private software, no access to the source code that do this action, such as CallFilter, Panda firewall and others.So does somebody know how these apps do the hang up action, (or terminate, or disconnect or whatever you call it)?And other question, if the first don't get a response.. does somebody know how send an incoming call to the voice mail?Of course, all questions are about how to do it programmatically. So with the voicemail question I know there's a flag in contacts that is used for that, but like I said, I'd like to know the programmatical way.

View 2 Replies View Related

Android :: Hang Up Outgoing Call Disallowed By Default API?

Mar 1, 2009

I am developing an application where one of the things we need is to control the outgoing call, at least to be able to stop it from our application.

For now I tried using Intent.ACTION_CALL to use existing activity:
Intent callIntent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + phoneNumber));
startActivity(callIntent);

But stopping the call seems to be disallowed by default API. For example, enabling airplane mode during the call. Just an example, this hack didn't work for me.

View 9 Replies View Related

Android :: How To Use Headset Button To Pick / Hang Up Call?

Apr 14, 2009

When I'm testing the functionality of the headset button in a call, it just muted the mic, didn't hang up the call. And if there is no call, when I press the button, there will be a song playing, so I think the keycode is correctly reported. There maybe some code I need to add?

View 3 Replies View Related

Android :: Use Intent Make Outgoing Call - How To Detect The Call State

Jan 19, 2009

I can use this code make outgoing call.

Intent dial = new Intent(Intent.ACTION_CALL); dial.setData(Uri.parse("tel:5556") );

context.startActivity(dial);

But how to detect call pick up the call or refuses to answer?

I tried PhoneStateListener but not working.

View 2 Replies View Related

Motorola Droid :: Not Able To Hang Up After Call

Nov 11, 2009

Sometimes after I am done with a call the screen is black and I click on the screen to get it to light up so I can end the call with no results. I than push the little top button to turn on the phone by than the call has confused the voicemail I am leaving and I have to redo the message. I am leaving or push 1 or 2 go through all of that. Anyone else with the black screen and having to "unlock" the device issues? I want to never push that button on the top unless I lock it.

View 2 Replies View Related

HTC EVO 4G :: Wired Headset 2.2 / Manually Hang Call Up

Aug 3, 2010

Before I upgraded when I clicked the button on my ear buds with a Mic it would hang up the call I was on. Now when I click it it mutes the call. So I have to take my phone out and manually hang the call up.

View 1 Replies View Related

HTC : Desire HD Freezing On Call / Unable To Hang Up

Oct 18, 2010

Just bought myself the HTC desire HD 2 days ago and couldn't be happier except for one thing. Whenever I make or receive a call everything works but I can't hang up...the phone goes dead but the call is connected until the person calling/being called hangs up, and then I have to take out my battery to be able to use my phone for texting/apps etc, everything else works fine its just the screen refuses to light up again after I take it away from my ear.

If anyone knows what could be causing this or a fix it would be greatly appriciated.

View 1 Replies View Related

HTC Incredible :: Auto End Call Feature When Other Party Hang Up

Nov 8, 2010

Does the Dinc have a way of ending the call automatically when the other party hang up without me having to physically push the end button. I guess this is useful when talking while driving and you know the phone will end the call when you set it aside instead of having to look on the screen. Is there a way to display while calling if the call is connected or the other party still has not picked up the phone.

View 7 Replies View Related

Sony Ericsson Xperia X10 :: Call Not Disconnected / Hang Up?

Sep 4, 2010

My mini is on a call and will not disconnect. I can also not turn the phone off, is there a way I can reset the phone?

View 4 Replies View Related

Motorola Droid X :: Cannot Hang Up Phone Call When Outdoors

Aug 25, 2010

When on a phone call outdoors and I want to hang up, I pull the phone away from my face and the display stays black. The proximity sensor is not sensing that I've moved it away from my face. I can't hang up the call. If I hold the phone above my head with the display facing toward the ground the display comes right back.

It works perfectly indoors. I've compared this to another phone and the other worked perfectly. I've read that the UV rays from the sun can interfere with the proximity sensor. Verizon does not recognize this as a problem but if you Google it you will see this problem goes way back.

View 4 Replies View Related

HTC Droid Eris :: Unable To Answer Or Hang Up Phone After Call?

Sep 12, 2010

Anyone have a problem with not being able to answer the phone or hang it up after a call? Verizon hasn't been able to fix it either.

View 10 Replies View Related

HTC EVO 4G :: Acreen Automatically Comes Back On In Pocket When Hang Up From Bluetooth Call / Why Is So?

Jul 13, 2010

His has been one of my biggest problems with blue tooth. I work in the hvac field and love my blue tooth head set. Here is my problem, When I hang up from a bluetooth call my screen automatically comes back on in my pocket. Then I end up with a pocket dial. I can not tell you how frustrating this is. I can not find a setting to solve this problem. If I answer via blue tooth why is my screen coming on after the call.

View 5 Replies View Related

General :: How To Detect Incoming Call Is Forwarded Call

Nov 26, 2012

i need a way to understand that the incoming call is a forwarded call so i can deny it using tasker or another application.If possible i want to auto decline the call using tasker + secure settings or any other plugin

View 3 Replies View Related

Android :: How Can App Detect A Dropped Call?

Jun 30, 2010

I am writing an app that is meant to be run during a call. After the user makes a call, and starts my app, I want my app to be able to know if the call is dropped from bad connection.

View 3 Replies View Related

Android :: How To Programmatically Answer Call?

Apr 9, 2010

I want to answer a phone call. I found the intent android.intent.action.ANSWER but it seems that the only effect that I obtain is an ActivityNotFoundException. Why? Is it a deprecated intent? How can I achieve answer? I have also heard about the "telnet technique". What is that?

View 2 Replies View Related

Android :: Programmatically Answer A Call

May 4, 2010

I know this has been asked before, but at this time the answer of the post is not true.
http://stackoverflow.com/questions/2610587/how-to-programmatically-answer-a-call

Vringo and other apps does answer the phone by pressing a button on their app, so there must be a way to do it.

Anyone has a suggestion?

View 1 Replies View Related

Android :: Detect A Received Outgoing Call

Oct 14, 2010

I havn´t been able to find out, how to detect the event (if there are any), when an outgoing call is answered - does anybody know how to do this?

View 3 Replies View Related







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