Re: [android-developers] override earphone click button

2014-05-12 Thread Sadhna Upadhyay
i mean when i single click on headphone then its start play music and when
triple click then its start calling last call(whether dialled or receive)
and i want to do my task on click and want to stop calling and music
playing functionality,


On Fri, May 9, 2014 at 9:52 PM, TreKing  wrote:

>
> On Fri, May 9, 2014 at 2:32 AM, Sadhna Upadhyay  > wrote:
>
>> can some one tell me that,can we override headphone functionality in
>> android 4+ version please let me know if any one have idea
>
>
> You may want to explain what "headphone functionality" you're looking to
> override.
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] override earphone click button

2014-05-09 Thread TreKing
On Fri, May 9, 2014 at 2:32 AM, Sadhna Upadhyay
wrote:

> can some one tell me that,can we override headphone functionality in
> android 4+ version please let me know if any one have idea


You may want to explain what "headphone functionality" you're looking to
override.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] override home key

2012-01-21 Thread Dhaval Varia
mark...
thanx for reply...
:)
On Jan 21, 2012 5:42 PM, "Mark Murphy"  wrote:

> On Fri, Jan 20, 2012 at 11:04 PM, Dhaval Varia 
> wrote:
> > As we know we dont have time to open app in emergency.
>
> One could argue that you don't have time to reach for a phone in an
> emergency, or you might not have a phone in an emergency, or your
> phone might have a dead battery, or your phone does not have a mobile
> data or WiFi signal, etc.
>
> Conversely, not all emergencies are necessarily that time-critical for
> the person with the phone.
>
> Hence, the net value of being able to trigger your app via an external
> mechanical means versus, say, a home screen app widget, is not that
> great, IMHO.
>
> > so it should fire on some hard key.
> > so plz suggeat alternet solution
>
> You can build your own phone, with your own dedicated hardware button
> for emergencies, that will launch your own application via hooks from
> your own firmware.
>
> Or, take another approach that does not require the app to be manually
> triggered in the emergency situation:
>
> http://commonsware.com/blog/2010/05/24/application-concept-resqr.html
>
> Or, focus on creating a home screen app widget as your trigger, with
> something to ensure that it is not accidentally invoked by the user.
>
> Or, write another app.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.3
> Available!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] override home key

2012-01-21 Thread Kumar Bibek
@Mark: Thanks for correcting me. :)

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Sat, Jan 21, 2012 at 5:42 PM, Mark Murphy wrote:

> On Fri, Jan 20, 2012 at 11:04 PM, Dhaval Varia 
> wrote:
> > As we know we dont have time to open app in emergency.
>
> One could argue that you don't have time to reach for a phone in an
> emergency, or you might not have a phone in an emergency, or your
> phone might have a dead battery, or your phone does not have a mobile
> data or WiFi signal, etc.
>
> Conversely, not all emergencies are necessarily that time-critical for
> the person with the phone.
>
> Hence, the net value of being able to trigger your app via an external
> mechanical means versus, say, a home screen app widget, is not that
> great, IMHO.
>
> > so it should fire on some hard key.
> > so plz suggeat alternet solution
>
> You can build your own phone, with your own dedicated hardware button
> for emergencies, that will launch your own application via hooks from
> your own firmware.
>
> Or, take another approach that does not require the app to be manually
> triggered in the emergency situation:
>
> http://commonsware.com/blog/2010/05/24/application-concept-resqr.html
>
> Or, focus on creating a home screen app widget as your trigger, with
> something to ensure that it is not accidentally invoked by the user.
>
> Or, write another app.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.3
> Available!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] override home key

2012-01-21 Thread skink


Dhaval Varia wrote:
> thanx for reply?
> would u plz eleborate??









pskink

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] override home key

2012-01-21 Thread Mark Murphy
On Fri, Jan 20, 2012 at 11:04 PM, Dhaval Varia  wrote:
> As we know we dont have time to open app in emergency.

One could argue that you don't have time to reach for a phone in an
emergency, or you might not have a phone in an emergency, or your
phone might have a dead battery, or your phone does not have a mobile
data or WiFi signal, etc.

Conversely, not all emergencies are necessarily that time-critical for
the person with the phone.

Hence, the net value of being able to trigger your app via an external
mechanical means versus, say, a home screen app widget, is not that
great, IMHO.

> so it should fire on some hard key.
> so plz suggeat alternet solution

You can build your own phone, with your own dedicated hardware button
for emergencies, that will launch your own application via hooks from
your own firmware.

Or, take another approach that does not require the app to be manually
triggered in the emergency situation:

http://commonsware.com/blog/2010/05/24/application-concept-resqr.html

Or, focus on creating a home screen app widget as your trigger, with
something to ensure that it is not accidentally invoked by the user.

Or, write another app.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.3
Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] override home key

2012-01-21 Thread Dhaval Varia
thanx for reply?
would u plz eleborate??
will it be useful in my case?
On Jan 21, 2012 5:32 PM, "Mark Murphy"  wrote:

> On Fri, Jan 20, 2012 at 11:20 PM, Kumar Bibek 
> wrote:
> > I am not sure about this, but I think it would work for you.
> >
> > When you press the Home button, there would be an Intent fired
> system-wide.
> > So, you could write a receiver that tracks these particular kind of
> intent.
>
> There is no broadcast Intent for HOME. HOME is used with startActivity().
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.3
> Available!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] override home key

2012-01-21 Thread Mark Murphy
On Fri, Jan 20, 2012 at 11:20 PM, Kumar Bibek  wrote:
> I am not sure about this, but I think it would work for you.
>
> When you press the Home button, there would be an Intent fired system-wide.
> So, you could write a receiver that tracks these particular kind of intent.

There is no broadcast Intent for HOME. HOME is used with startActivity().

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.3
Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] override home key

2012-01-20 Thread Kristopher Micinski
That doesn't make sense...

Every time the the user presses the home key you want to think you're
in "emergency mode?"

(By the way, you know that phones, at least in the US, do this already
when you dial 911, I believe..)

kris

On Fri, Jan 20, 2012 at 11:04 PM, Dhaval Varia  wrote:
> i am going to make one emeergency alert app
> As we know we dont have time to open app in emergency.
> so it should fire on some hard key.
> so plz suggeat alternet solution
> thanx.
>
> On Jan 21, 2012 9:25 AM, "Kumar Bibek"  wrote:
>>
>> There would always be a few things which you cannot do.
>>
>> I don't understand how does this "No" affect the popularity of Android.
>>
>> Their could be other ways to solve your problem, that is, if you could
>> mention exactly what you are trying to do.
>>
>> Thanks and Regards,
>> Kumar Bibek
>>
>> http://techdroid.kbeanie.com
>> http://www.kbeanie.com
>>
>>
>>
>> On Sat, Jan 21, 2012 at 9:21 AM, Dhaval Varia 
>> wrote:
>>>
>>> i m getting all the times answer no..
>>> then why android is this mch popular?
>>>
>>> On Jan 21, 2012 8:56 AM, "Kristopher Micinski" 
>>> wrote:

 Basically, no.

 To explain the basically: you can't do it.

 kris

 On Fri, Jan 20, 2012 at 10:19 PM, Dhaval Varia 
 wrote:
 > dear,
 >
 > is there any way to override home key?
 >
 > i want to start my app,by pressing home key for few times.
 > thanx
 >
 > --
 > You received this message because you are subscribed to the Google
 > Groups "Android Developers" group.
 > To post to this group, send email to
 > android-developers@googlegroups.com
 > To unsubscribe from this group, send email to
 > android-developers+unsubscr...@googlegroups.com
 > For more options, visit this group at
 > http://groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups "Android Developers" group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] override home key

2012-01-20 Thread Rocky
check www.alltechsolution.wordpres.com

On Fri, Jan 20, 2012 at 8:30 PM, Dhaval Varia wrote:

> thanx sir
> On Jan 21, 2012 9:51 AM, "Kumar Bibek"  wrote:
>
>> I am not sure about this, but I think it would work for you.
>>
>> When you press the Home button, there would be an Intent fired
>> system-wide. So, you could write a receiver that tracks these particular
>> kind of intent.
>>
>> Now, in the receiver, you could monitor the frequency of these intents.
>> IF you could detect that the frequency is the same as you would want your
>> app to be triggered, you can very well start a service or activity, or
>> whatever.
>>
>>
>> *Thanks and Regards,
>> Kumar Bibek*
>> *
>> http://techdroid.kbeanie.com
>> http://www.kbeanie.com*
>>
>>
>>
>> On Sat, Jan 21, 2012 at 9:34 AM, Dhaval Varia wrote:
>>
>>> i am going to make one emeergency alert app
>>> As we know we dont have time to open app in emergency.
>>> so it should fire on some hard key.
>>> so plz suggeat alternet solution
>>> thanx.
>>> On Jan 21, 2012 9:25 AM, "Kumar Bibek"  wrote:
>>>
 There would always be a few things which you cannot do.

 I don't understand how does this "No" affect the popularity of Android.

 Their could be other ways to solve your problem, that is, if you could
 mention exactly what you are trying to do.

 *Thanks and Regards,
 Kumar Bibek*
 *
 http://techdroid.kbeanie.com
 http://www.kbeanie.com*



 On Sat, Jan 21, 2012 at 9:21 AM, Dhaval Varia 
 wrote:

> i m getting all the times answer no..
> then why android is this mch popular?
> On Jan 21, 2012 8:56 AM, "Kristopher Micinski" 
> wrote:
>
>> Basically, no.
>>
>> To explain the basically: you can't do it.
>>
>> kris
>>
>> On Fri, Jan 20, 2012 at 10:19 PM, Dhaval Varia <
>> dhavalkva...@gmail.com> wrote:
>> > dear,
>> >
>> > is there any way to override home key?
>> >
>> > i want to start my app,by pressing home key for few times.
>> > thanx
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to
>> android-developers@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > android-developers+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/android-developers?hl=en
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to
>> android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to
> android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups "Android Developers" group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Thanks & Reg

Re: [android-developers] override home key

2012-01-20 Thread Dhaval Varia
thanx sir
On Jan 21, 2012 9:51 AM, "Kumar Bibek"  wrote:

> I am not sure about this, but I think it would work for you.
>
> When you press the Home button, there would be an Intent fired
> system-wide. So, you could write a receiver that tracks these particular
> kind of intent.
>
> Now, in the receiver, you could monitor the frequency of these intents. IF
> you could detect that the frequency is the same as you would want your app
> to be triggered, you can very well start a service or activity, or whatever.
>
>
> *Thanks and Regards,
> Kumar Bibek*
> *
> http://techdroid.kbeanie.com
> http://www.kbeanie.com*
>
>
>
> On Sat, Jan 21, 2012 at 9:34 AM, Dhaval Varia wrote:
>
>> i am going to make one emeergency alert app
>> As we know we dont have time to open app in emergency.
>> so it should fire on some hard key.
>> so plz suggeat alternet solution
>> thanx.
>> On Jan 21, 2012 9:25 AM, "Kumar Bibek"  wrote:
>>
>>> There would always be a few things which you cannot do.
>>>
>>> I don't understand how does this "No" affect the popularity of Android.
>>>
>>> Their could be other ways to solve your problem, that is, if you could
>>> mention exactly what you are trying to do.
>>>
>>> *Thanks and Regards,
>>> Kumar Bibek*
>>> *
>>> http://techdroid.kbeanie.com
>>> http://www.kbeanie.com*
>>>
>>>
>>>
>>> On Sat, Jan 21, 2012 at 9:21 AM, Dhaval Varia wrote:
>>>
 i m getting all the times answer no..
 then why android is this mch popular?
 On Jan 21, 2012 8:56 AM, "Kristopher Micinski" 
 wrote:

> Basically, no.
>
> To explain the basically: you can't do it.
>
> kris
>
> On Fri, Jan 20, 2012 at 10:19 PM, Dhaval Varia 
> wrote:
> > dear,
> >
> > is there any way to override home key?
> >
> > i want to start my app,by pressing home key for few times.
> > thanx
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to
> android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to
> android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

  --
 You received this message because you are subscribed to the Google
 Groups "Android Developers" group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] override home key

2012-01-20 Thread Kumar Bibek
I am not sure about this, but I think it would work for you.

When you press the Home button, there would be an Intent fired system-wide.
So, you could write a receiver that tracks these particular kind of intent.

Now, in the receiver, you could monitor the frequency of these intents. IF
you could detect that the frequency is the same as you would want your app
to be triggered, you can very well start a service or activity, or whatever.


*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Sat, Jan 21, 2012 at 9:34 AM, Dhaval Varia wrote:

> i am going to make one emeergency alert app
> As we know we dont have time to open app in emergency.
> so it should fire on some hard key.
> so plz suggeat alternet solution
> thanx.
> On Jan 21, 2012 9:25 AM, "Kumar Bibek"  wrote:
>
>> There would always be a few things which you cannot do.
>>
>> I don't understand how does this "No" affect the popularity of Android.
>>
>> Their could be other ways to solve your problem, that is, if you could
>> mention exactly what you are trying to do.
>>
>> *Thanks and Regards,
>> Kumar Bibek*
>> *
>> http://techdroid.kbeanie.com
>> http://www.kbeanie.com*
>>
>>
>>
>> On Sat, Jan 21, 2012 at 9:21 AM, Dhaval Varia wrote:
>>
>>> i m getting all the times answer no..
>>> then why android is this mch popular?
>>> On Jan 21, 2012 8:56 AM, "Kristopher Micinski" 
>>> wrote:
>>>
 Basically, no.

 To explain the basically: you can't do it.

 kris

 On Fri, Jan 20, 2012 at 10:19 PM, Dhaval Varia 
 wrote:
 > dear,
 >
 > is there any way to override home key?
 >
 > i want to start my app,by pressing home key for few times.
 > thanx
 >
 > --
 > You received this message because you are subscribed to the Google
 > Groups "Android Developers" group.
 > To post to this group, send email to
 android-developers@googlegroups.com
 > To unsubscribe from this group, send email to
 > android-developers+unsubscr...@googlegroups.com
 > For more options, visit this group at
 > http://groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups "Android Developers" group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] override home key

2012-01-20 Thread Dhaval Varia
i am going to make one emeergency alert app
As we know we dont have time to open app in emergency.
so it should fire on some hard key.
so plz suggeat alternet solution
thanx.
On Jan 21, 2012 9:25 AM, "Kumar Bibek"  wrote:

> There would always be a few things which you cannot do.
>
> I don't understand how does this "No" affect the popularity of Android.
>
> Their could be other ways to solve your problem, that is, if you could
> mention exactly what you are trying to do.
>
> *Thanks and Regards,
> Kumar Bibek*
> *
> http://techdroid.kbeanie.com
> http://www.kbeanie.com*
>
>
>
> On Sat, Jan 21, 2012 at 9:21 AM, Dhaval Varia wrote:
>
>> i m getting all the times answer no..
>> then why android is this mch popular?
>> On Jan 21, 2012 8:56 AM, "Kristopher Micinski" 
>> wrote:
>>
>>> Basically, no.
>>>
>>> To explain the basically: you can't do it.
>>>
>>> kris
>>>
>>> On Fri, Jan 20, 2012 at 10:19 PM, Dhaval Varia 
>>> wrote:
>>> > dear,
>>> >
>>> > is there any way to override home key?
>>> >
>>> > i want to start my app,by pressing home key for few times.
>>> > thanx
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> > Groups "Android Developers" group.
>>> > To post to this group, send email to
>>> android-developers@googlegroups.com
>>> > To unsubscribe from this group, send email to
>>> > android-developers+unsubscr...@googlegroups.com
>>> > For more options, visit this group at
>>> > http://groups.google.com/group/android-developers?hl=en
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] override home key

2012-01-20 Thread Kumar Bibek
There would always be a few things which you cannot do.

I don't understand how does this "No" affect the popularity of Android.

Their could be other ways to solve your problem, that is, if you could
mention exactly what you are trying to do.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Sat, Jan 21, 2012 at 9:21 AM, Dhaval Varia wrote:

> i m getting all the times answer no..
> then why android is this mch popular?
> On Jan 21, 2012 8:56 AM, "Kristopher Micinski" 
> wrote:
>
>> Basically, no.
>>
>> To explain the basically: you can't do it.
>>
>> kris
>>
>> On Fri, Jan 20, 2012 at 10:19 PM, Dhaval Varia 
>> wrote:
>> > dear,
>> >
>> > is there any way to override home key?
>> >
>> > i want to start my app,by pressing home key for few times.
>> > thanx
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to
>> android-developers@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > android-developers+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/android-developers?hl=en
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] override home key

2012-01-20 Thread Kristopher Micinski
On Fri, Jan 20, 2012 at 10:51 PM, Dhaval Varia  wrote:
> i m getting all the times answer no..
> then why android is this mch popular?
>

In general, you should pretend like the "home" key doesn't exist.
Think of it as being a meta key, you don't use it to interact with
your app, the user uses it with their phone, and the platform dictates
how it behaves.

Typically people who want to do things they shouldn't lack a
fundamental understanding of the android way of doing things.  The
model is heavily sandboxed, you don't get full access to the entire
platform as you can on a windows machine, it just doesn't work like
that.  The *default* is to give you a restricted set of options, and
then you can request access to more options..

But in this case, you just shouldn't act like the home key is there..
In general being able to mess around with the home key would be
considered a violation.

kris

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] override home key

2012-01-20 Thread Dhaval Varia
i m getting all the times answer no..
then why android is this mch popular?
On Jan 21, 2012 8:56 AM, "Kristopher Micinski" 
wrote:

> Basically, no.
>
> To explain the basically: you can't do it.
>
> kris
>
> On Fri, Jan 20, 2012 at 10:19 PM, Dhaval Varia 
> wrote:
> > dear,
> >
> > is there any way to override home key?
> >
> > i want to start my app,by pressing home key for few times.
> > thanx
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] override home key

2012-01-20 Thread Kristopher Micinski
Basically, no.

To explain the basically: you can't do it.

kris

On Fri, Jan 20, 2012 at 10:19 PM, Dhaval Varia  wrote:
> dear,
>
> is there any way to override home key?
>
> i want to start my app,by pressing home key for few times.
> thanx
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] override home key

2012-01-20 Thread Kumar Bibek
You cannot override, but you can make your app as one of the home
applications. In that case, whenever you press the home key, you will get
an option to choose one of the many home applications, one of which could
be yours.

Few times ? No.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Sat, Jan 21, 2012 at 8:49 AM, Dhaval Varia wrote:

> dear,
>
> is there any way to override home key?
>
> i want to start my app,by pressing home key for few times.
> thanx
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Override default textselection

2011-12-18 Thread Mark Murphy
On Sun, Dec 18, 2011 at 9:19 AM, AlexanderL  wrote:
> is there a wat to intercept and override the menu opened in gmail or
> webbrowser or is it not possible?

Only if you write your own "gmail" or "webbrowser" app.

> Android seems to be proud saying almost every aspect of it can be
> overriden so why can i not do what i want.

Because you did not write "gmail" or "webbrowser". You are attempting
to hack into third-party applications.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Override Hint when EditText is fullscreen

2011-08-04 Thread Nick Risaro
You can try with one layout for each mode, in one you have the "Enter User
Name" text and in the other don't.

On Wed, Aug 3, 2011 at 9:12 PM, Karthz  wrote:

> Can I override the hint of an EditText when it is in landscape mode
> and the ime is fullscreen?
>
> For example, in a login screen, I have a TextView labeled "User Name:
> " with an EditText with no hint (or say, a different hint) - on both
> portrait and landscape modes.
>
> However, since the TextView wouldn't appear when the ime is
> fullscreen, I need a hint that says something like "Enter User Name".
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Override android.location.Geocoder on a per-app basis?

2011-08-04 Thread Mark Murphy
On Thu, Aug 4, 2011 at 9:31 AM, Chris J. Karr  wrote:
> The simplest solution would be to ignore Geocoder altogether (and just
> use a custom lookup method), but in the spirit of doing things the
> "Android way", I was wondering if it was possible to override the
> system provider Context.LOCATION_SERVICE with one of my own and have
> Geocoder use my implementation (just for my own app).

You are welcome to extend Activity and override getSystemService() to
do whatever you want. Geocoder won't use it, because it does not use a
LocationManager directly. I'm also unclear why you think this is "the
Android way".

If you want to roll your own geocoding logic, ignore Geocoder and
LocationManager and just roll your own geocoding logic.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in NYC: http://marakana.com/training/android/

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Override the Status bar

2011-03-15 Thread Mark Murphy
On Tue, Mar 15, 2011 at 8:54 AM, Rahul Garg  wrote:
> What do you mean by custom firmware, can you please elaborate more. because
> I want to run an service which will
> override the status bar.

You cannot "run a service which will override the status bar".

You can, however, download the source code to Android, make changes to
it, and attempt to get it running on your own hardware. Visit
http://source.android.com for more.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Override the Status bar

2011-03-15 Thread Rahul Garg
What do you mean by custom firmware, can you please elaborate more. because 
I want to run an service which will
override the status bar. 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Override the Status bar

2011-03-15 Thread Mark Murphy
On Tue, Mar 15, 2011 at 6:48 AM, Rahul Garg  wrote:
> Can I override the Status bar ? if yes then how ??

You can suppress the status bar in your own applications for Android
1.x and 2.x with a "Fullscreen" theme. You cannot "override the Status
bar" for the entire system, or for Android 3.0, except via custom
firmware.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] override back button

2011-03-10 Thread Justin Anderson
Starting with Android 2.0 you also need to implement onBackPressed() in
order to achieve this...
http://developer.android.com/reference/android/app/Activity.html#onBackPressed%28%29

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Thu, Mar 10, 2011 at 2:36 PM, TreKing  wrote:

> On Thu, Mar 10, 2011 at 1:54 PM, Colin  wrote:
>
>>  return super.onKeyDown(keyCode, event);
>
>
> The "super" method likely executes the default action for the given key
> press.
> The default action on the back key is to call finish() on the activity.
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] override back button

2011-03-10 Thread TreKing
On Thu, Mar 10, 2011 at 3:36 PM, TreKing  wrote:

> On Thu, Mar 10, 2011 at 1:54 PM, Colin  wrote:
>
>>  return super.onKeyDown(keyCode, event);
>
>
> The "super" method likely executes the default action for the given key
> press.
> The default action on the back key is to call finish() on the activity.
>

And on second review of your code, I see you only do that if the key is not
the back key. Don't mind me.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] override back button

2011-03-10 Thread TreKing
On Thu, Mar 10, 2011 at 1:54 PM, Colin  wrote:

>  return super.onKeyDown(keyCode, event);


The "super" method likely executes the default action for the given key
press.
The default action on the back key is to call finish() on the activity.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] override back button

2011-03-10 Thread Dia
Hello,

Does your Back Button exit the application in both cases? When
animation.state!=1 it should not do anything.  In the other case it should
exit.

>From documentation:

   - "If you handled the event, return true. If you want to allow the event
   to be handled by the next receiver, return false."

Hope this helps.

On Thu, Mar 10, 2011 at 9:54 PM, Colin  wrote:

> Can someone help me understand how to stop the back button from
> exiting out of my program?  I want it to just return to my main menu
> or exit if pressed on the main menu but when I override the method it
> still exits.  Here is what I currently have:
>
>@Override
>public boolean onKeyDown(int keyCode, KeyEvent event)  {
>if (keyCode == KeyEvent.KEYCODE_BACK &&
> event.getRepeatCount()
> == 0) {
>if (animation.state != 1){
>animation.state = 1;
>return true;
>}
>else return false;
>}
>
>return super.onKeyDown(keyCode, event);
>}
>
> I have messed with it a little but my program is always still closes.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] @override question

2011-02-23 Thread Scott Davies
Hi,

As mentioned by Marcin and Kevin, this is to notify the compiler that you
are over-riding a method from it's base/parent/super class.  The @ syntax
is Java's (5.x and later, if I'm not mistaken), method of denoting meta
data markup attribute, similar to the [ ] syntax in C#.

If you're looking for more Java info, "Java for Android" (see:
http://www.amazon.com/Learn-Java-Android-Development-Friesen/dp/1430231564/
ref=sr_1_1?s=books&ie=UTF8&qid=1298501972&sr=1-1), is quite good.  I have
no ties to the author, but I own a copy and have found it useful for
brushing up on Java language and syntax.  It's well written.

For Android specific stuff, you'll need to read up on the Android
platform.  Manning has some great books available.

- Scott

On 11-02-23 5:45 PM, "Marcin Orlowski"  wrote:

>On 23 February 2011 01:13, Jeraldo  wrote:
>> hi, im just starting to learn android development. i have dont have
>> much background with java. my question is what does the "@override"
>> mean when developing android apps?
>
>http://tinyurl.com/ycq4gy2
>
>-- 
>Regards,
>Marcin
>
>-- 
>You received this message because you are subscribed to the Google
>Groups "Android Developers" group.
>To post to this group, send email to android-developers@googlegroups.com
>To unsubscribe from this group, send email to
>android-developers+unsubscr...@googlegroups.com
>For more options, visit this group at
>http://groups.google.com/group/android-developers?hl=en
>


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] @override question

2011-02-23 Thread Marcin Orlowski
On 23 February 2011 01:13, Jeraldo  wrote:
> hi, im just starting to learn android development. i have dont have
> much background with java. my question is what does the "@override"
> mean when developing android apps?

http://tinyurl.com/ycq4gy2

-- 
Regards,
Marcin

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] @override question

2011-02-23 Thread Kevin Brooks
"@override" tells the compiler that you are overriding a method from the
parent class.  This allows to customize the functionality of that method to
your own needs.  Some methods you are required to override by the design of
the parent class.

On Tue, Feb 22, 2011 at 6:13 PM, Jeraldo  wrote:

> hi, im just starting to learn android development. i have dont have
> much background with java. my question is what does the "@override"
> mean when developing android apps?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Kevin
Proverbs 21:6
I am dreaming of the day when we run our cars off water.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] @override

2010-07-09 Thread TreKing
On Thu, Jul 8, 2010 at 5:49 AM, B Woods  wrote:

> What is the purpose of this?


What is the purpose of THIS ?

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] @override

2010-07-08 Thread zx su
when you extends a class, and want to overwirte its method, may be and this
tag will good.


2010/7/8 B Woods 

> What is the purpose of this?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] @override

2010-07-08 Thread Andrew Brampton
It is a Java annotation:
http://download.oracle.com/docs/cd/E17409_01/javase/tutorial/java/javaOO/annotations.html

Andrew

On 8 July 2010 11:49, B Woods  wrote:
> What is the purpose of this?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Override default icons of BaseExpandableListAdapter

2010-03-12 Thread TreKing
On Fri, Mar 12, 2010 at 5:38 PM, Ali Chousein wrote:

> I'm trying to override the default icons of an
> BaseExpandableListAdapter in a class which inherits from
> BaseExpandableListAdapter.
>

BaseExpandableListAdapter does not have icons - the expandable list view it
provides data for does.


> What would be a decent way of doing this?
>

http://developer.android.com/reference/android/widget/ExpandableListView.html

Look for the child indicator and group indicator functions and XML
properties.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Override enableMyLocation in MyLocationOverlay

2010-03-04 Thread TreKing
On Wed, Mar 3, 2010 at 11:37 PM, gallagth  wrote:

> I figured out how to do that, but now I'm stuck because I dont know
> what Canvas to pass when I call the method drawMyLocation().
>

You shouldn't be drawing when the location changes. Try overriding the
drawMyLocation function, which will be called with a valid Canvas object
when it's time to draw.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] @Override tag error between dev environments

2010-01-13 Thread Jason Proctor

fabulous. always thought that was a bad situation in 1.5.

thanks


@Override can be used on interface methods in Java 1.6 but not in 1.5.
Just set your environment to use Java 1.6.

On Wed, Jan 13, 2010 at 12:06 PM, Mark Wyszomierski  wrote:

 Hi,

 I'm using eclipse 3.4/3.5 to compile a project. On my machine I get
 compile errors related to the @Override tag when used with interfaces:

Button btn = new Button();
btn.setOnClickListener(new OnClickListener() {
@Override // Compile error
public void onClick(View v) {
}
);

 The @Override tag gives a "must override a superclass method" (which
 is ok by me), but how does this compile on other machines? I find
 myself having to always remove these override tags when compiling
 others' projects,

 Thanks

 --
 You received this message because you are subscribed to the Google
 Groups "Android Developers" group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en





--
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en



--
jason.vp.engineering.particle
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] @Override tag error between dev environments

2010-01-13 Thread Jason Proctor
the @Override is optional, it's just a check to see whether you are 
actually overriding something as opposed to just implementing a 
similar method :-)


what happens if you qualify that OnClickListener to 
View.OnClickListener? any difference?


btw fwiw and maybe i am old-fashioned, but i hardly ever use 
anonymous classes. makes it hard to find stuff by functionality, you 
have to find it by use. not very oop, IMHO.





Hi,

I'm using eclipse 3.4/3.5 to compile a project. On my machine I get
compile errors related to the @Override tag when used with interfaces:

Button btn = new Button();
btn.setOnClickListener(new OnClickListener() {
@Override // Compile error
public void onClick(View v) {
}
);

The @Override tag gives a "must override a superclass method" (which
is ok by me), but how does this compile on other machines? I find
myself having to always remove these override tags when compiling
others' projects,

Thanks

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en



--
jason.vp.engineering.particle
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] @Override tag error between dev environments

2010-01-13 Thread Romain Guy
@Override can be used on interface methods in Java 1.6 but not in 1.5.
Just set your environment to use Java 1.6.

On Wed, Jan 13, 2010 at 12:06 PM, Mark Wyszomierski  wrote:
> Hi,
>
> I'm using eclipse 3.4/3.5 to compile a project. On my machine I get
> compile errors related to the @Override tag when used with interfaces:
>
>    Button btn = new Button();
>    btn.setOnClickListener(new OnClickListener() {
>       �...@override // Compile error
>        public void onClick(View v) {
>        }
>    );
>
> The @Override tag gives a "must override a superclass method" (which
> is ok by me), but how does this compile on other machines? I find
> myself having to always remove these override tags when compiling
> others' projects,
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Override in call-screen - Security Bug or Feature?

2009-11-04 Thread Disconnect
Didn't the whitepages app come out in the very very first days of the
market with this capability? (I didn't use it much, at the time there
was no 3g in this area. Plus, submitting incoming phone #s to a 3rd
party service was really skeevy.)

As an aside, Dianne is a girl's name. :)

On Wed, Nov 4, 2009 at 10:47 AM, Jarman  wrote:
> I just had a private mail-discussion with Dianne Hackborn and he asked
> me to put this issue on the Developer forum for further discussion.
>
> I have managed to override the in-call screen from the Java API (i.e.
> not modifying the source).
> (If you want to se it happen, download Jarmans ReverseLookup from the
> Market, it´s free)
>
> Reply from Dianne:
>>> It can't be done in a supportable way without modifying the source.  I 
>>> don't know how you went about your
>>> solution, but there is probably a good chance that it would be broken in a 
>>> future version of the platform.  Actually >> there could even be a chance 
>>> of it bring deliberately broken if security concerns get raised (disrupting 
>>> the
>>> standard in-call information like this without the user approving is 
>>> something that is likely to get filed as a
>>> security bug in the platform).
>
> What do think about this?
>
> Best Regards
> Jarman
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en