[android-developers] Problem Adding configuration to Lunar Lander sample

2010-09-16 Thread KrcK ---
Hi all, I have a problem with the Lunar lander sample. I am trying to add a configuration part to this game using a PreferenceActivity. So to do this, I have created a LunarPreferenceActivity and I have added it to AndroidManifest.xml. On the other hand I have added a new menu item to call this

[android-developers] Re: Problem Adding configuration to Lunar Lander sample

2010-09-16 Thread KrcK ---
#19fe74830f2ac97a http://groups.google.es/group/android-developers/browse_thread/thread/f7f2917df6742447/19fe74830f2ac97a?lnk=gstq=lunar+lander#19fe74830f2ac97a 2010/9/16 KrcK --- krc...@gmail.com Hi all, I have a problem with the Lunar lander sample. I am trying to add a configuration part

Re: [android-developers] Re: TelephonyManager PhoneStateListener

2010-09-08 Thread KrcK ---
in your example. On Sep 7, 1:09 am, KrcK --- krc...@gmail.com wrote: Hi all, I would like to know what are the main differences between TelephonyManager and PhoneStateListener, because you can do (more or less) the same things with both. For example, you could create an incoming calls

Re: [android-developers] Re: TelephonyManager PhoneStateListener

2010-09-08 Thread KrcK ---
need through the Intent (that I get in onReceive method) or through the TelephonyManager, but I do not know if it is possible. Any suggestion to do something like that? Thanks. 2010/9/8 Mark Murphy mmur...@commonsware.com On Wed, Sep 8, 2010 at 5:55 AM, KrcK --- krc...@gmail.com wrote: So

Re: [android-developers] Re: TelephonyManager PhoneStateListener

2010-09-08 Thread KrcK ---
through that intent? Thanks for your help! 2010/9/8 Mark Murphy mmur...@commonsware.com On Wed, Sep 8, 2010 at 7:12 AM, KrcK --- krc...@gmail.com wrote: The general idea is to create an app like incoming call log. So I have to create a new register in my database when a new call is answered

Re: [android-developers] Re: TelephonyManager PhoneStateListener

2010-09-08 Thread KrcK ---
at 7:36 AM, KrcK --- krc...@gmail.com wrote: There is also an Intent extra. Which information could I get through that intent? The EXTRA_STATE extra indicates the new call state. If the new state is RINGING, a second extra EXTRA_INCOMING_NUMBER provides the incoming phone number as a String

Re: [android-developers] Re: TelephonyManager PhoneStateListener

2010-09-08 Thread KrcK ---
Ok, I think that now I know a way to do it! Thanks Mark, your help and explanations were very helpful! 2010/9/8 Mark Murphy mmur...@commonsware.com On Wed, Sep 8, 2010 at 8:18 AM, KrcK --- krc...@gmail.com wrote: Ok but how could I identify that I answered a call or is lost

[android-developers] TelephonyManager PhoneStateListener

2010-09-07 Thread KrcK ---
Hi all, I would like to know what are the main differences between TelephonyManager and PhoneStateListener, because you can do (more or less) the same things with both. For example, you could create an incoming calls register implementing a broadcastreceiver and using TelephonyManger API or

[android-developers] TelephonyManager PhoneStateListener

2010-09-07 Thread KrcK ---
Hi all, I would like to know what are the main differences between TelephonyManager and PhoneStateListener, because you can do (more or less) the same things with both. For example, you could create an incoming calls register implementing a broadcastreceiver and using TelephonyManger API or