Thanks.You received this message because you are subscribed to the Google Groups "android-ndk" group.
--
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
On Fri, May 13, 2011 at 1:56 PM, souissi haythem <hayt...@gmail.com> wrote:Hi,
I need to call my Activity when user press two times on the END_CALL
button (it need to work when the phone is locked).
Is is that possible??
Nope, you can't do that. Too many security issues with allowing something like tha
hi,
thanks for replying. I'm new to this stuff and couldn't fully
andrestand what you meant by "unofficial android", could explain more
please. I just don't know where to begin.
many thanks.
On 13 mai, 19:41, Chris Stratton <cs0...@gmail.com> wrote:
> On Friday, May 13, 2011 12:08:15 PM UTC-4, Digit wrote:
it will be so complicated!!!
So before i try to change "cyanogenmod", i wanna know if it will be
possible to lunch my application by two click on the CALL button or
the BACK button?
Maybe i can use broadcast or a listner on a button?? Please i wanna
know if listner can be lunch when my activity is in stop or
destroyed??
Yes , it 's a good solution, but i have to do this application and i
prefer not to touch or change the android OS.
Because it will not be a
general application, it will be necessary to have the "cyanogenmod" i
change.
cyanogenmod is just another distribution of Android with their own changes to it. I don't think they have the change you are asking for here, so you still need to modify the platform code in cyanogenmod to do what you want and flash it on to your device.--
This is leaving "NDK" territory, so you might have better luck asking
that question on another list. But I wanted to mention, in case you
weren't aware, that some phones don't even have the "END_CALL" button of
which you speak -- your previous messages make it seem like you want to
make a product that will work on end users' phones, but a lot of popular
phones (Droid/Milestone, for instance, and its siblings) don't even have
the button you're trying to detect for.
Tim
It is possible to become the "home key" app (I've seen the game Toddler
Lock do this, so that the toddler playing with it can't get out of the
game by hitting the home button), with the user's permission, but I
don't know that you can get the functionality you want from that. It's
probably your best bet, however.
Tim
This list is for discussing the NDK part, though, not for discussing any
aspect of any application that might use the NDK for some of its
functionality. If you're asking how to call an Android API from the NDK,
that's an NDK question. You're asking about how to do something on
Android at all, which is the topic of other lists and sites.
>> It is possible to become the "home key" app (I've seen the game Toddler
>> Lock do this, so that the toddler playing with it can't get out of the
>> game by hitting the home button), with the user's permission, but I
>> don't know that you can get the functionality you want from that. It's
>> probably your best bet, however.
> public static final int KEYCODE_HOME : Key code constant: Home key.
> This key is handled by the framework and is never delivered to
> applications.
> http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_HOME
Sigh. This STILL not being the right list, you might try asking how to
become the "home" app in the main Android developer list instead, as I
suggested. I never implied you could see the home key at the app level;
re-read what I wrote above about "with the user's permission". How often
do you need the user's permission to compare a key value to a constant?
I also pointed you at an app that does what I'm talking about, if you
don't believe me; a permission dialog comes up when you use it, asking
whether to allow the app to register as the "home" app.
Tim