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.


[android-developers] override earphone click button

2014-05-09 Thread Sadhna Upadhyay
Hi Guys,
can some one tell me that,can we override headphone functionality in
android 4+ version please let me know if any one have idea

Thanks:
Sadhna

-- 
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.


[android-developers] Override Activity from Library project in Android project

2012-10-17 Thread mighter
I have the Library project and it contains two Activities. MainActivity 
launches ChildActivity. In the Android project which uses the Library 
project I want to override ChildActivity. Is it even possible? Here's my 
question on SO 
http://stackoverflow.com/questions/11683697/how-do-i-split-my-project-in-two-versions
  

-- 
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

[android-developers] Override OnKeyPreIme of an EditText getted from a View

2012-05-28 Thread tete
Hello people,

I want to override the OnKeyPreIme method of a EditText got from a 
findByView(int id), to make the activitiy finish() when user press back key.

The only way I thought is creating a custom EditText and overriding 
OnKeyPreIme, but when I tried to cast the EditText of my view in my custom 
EditText, it throws a ClassCastException

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

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

[android-developers] override home key

2012-01-20 Thread Dhaval Varia
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

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


[android-developers] Override default textselection

2011-12-18 Thread AlexanderL
Hi,
I am new to android development but i hope anybody can help me with
this android app/widget idea i have.
I want to be able to override the way every text selection in android
is done
and to add yet another menu option there. I was looking a bit into
themes and styles
and also events and actions which gets executed when getting menue for
selecting
text and i just can not see how to achieve what i want. Maybe somebody
cant give me a tip or a clue.

Regarding intercepting events, i wonder why running logcat or Dalvik
Debug Monitor and Event log i dont see any
actions executing, only some events but none that i can use execept
maybe menu_opened which is not much.
When getting the menu to select text, i see this. i am using emulator,
maybe i should use my android phone instead.

2011-12-18 14:53:11 317 menu_opened Menu type where 0 is options 
and 1
is context  1   int, id
2011-12-18 14:53:11 317 binder_sample   descriptor
android.view.IWindowSession string
2011-12-18 14:53:11 317 binder_sample   method_num  8   int, id
2011-12-18 14:53:11 317 binder_sample   time73  int, 
milliseconds
2011-12-18 14:53:11 317 binder_sample   blocking_package
com.android.mms
string
2011-12-18 14:53:11 317 binder_sample   sample_percent  14  int, 
percent

is there a wat to intercept and override the menu opened in gmail or
webbrowser or is it not possible?
Android seems to be proud saying almost every aspect of it can be
overriden so why can i not do what i want.

Thanks for help,
Alex

-- 
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


[android-developers] Override ListView selected item highlighting

2011-10-04 Thread Matt
Hello,

I have a list of items and wish to override Android's (honeycomb)
default behavior of highlighting the selected item. In the theme I am
using "holo dark", a selected ListView item will have bold text
instead of regular text with ListView.CHOICE_MODE_SINGLE set.

My question is, how can I make my own highlighting scheme? I can do
this by extending ListAdapter and overrriding getView to render a
different TextView for when an item is selected. This works fine when
CHOICE_MODE_SINGLE is set, except it also makes my TextView bold,
which I don't want.

So I set CHOICE_MODE_NONE to get around this and this almost works...
except the highlighted item is not redrawn immediately like it is when
CHOICE_MODE_SINGLE is set. My custom TextView is rendered, but only
after I select the item, scroll the item off the visible screen and
then scroll it back on screen.

I'm guessing there is some difference in when the drawable is rendered
depending on if a ListView has CHOICE_MODE_SINGLE set or
CHOICE_MODE_NONE set, but I can't figure out where or how I can
automatically trigger it to be redrawn.

SO! Can I either a) disable the bolding of text with
CHOICE_MODE_SINGLE set or b) change the behavior or redraw an item
with CHOICE_MODE_NONE set or c) something else entirely?

-- 
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


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

2011-08-04 Thread Chris J. Karr
I have an app where I want to implement a function that takes a
latitude & longitude pair and return a "place" associated with those
coordinates. The android.location.Geocoder interface is exactly what I
need, but the documentation includes the following note: "The Geocoder
class requires a backend service that is not included in the core
android framework." I assume in most Android devices, this backend is
powered using the Google Maps infrastructure.

Instead of using Google Maps to determine the relevant places, I'd
rather have a fully-offline implementation that implements a simpler
scheme that I'm using in my app. Basically, all I want to do is map
location coordinates to a handful (< 10) regions in the world that I
can determine from the coordinates themselves without an offline call
to Google's services. (In addition to offline access, I also want to
support non-Google sanctioned devices like the Nook.)

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). Please keep in
mind, I'm a simple app developer using stock devices - not a device
manufacturer. :-)

Thanks in advance,

-Chris Karr

-- 
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


[android-developers] Override Hint when EditText is fullscreen

2011-08-04 Thread Karthz
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


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


[android-developers] Override the Status bar

2011-03-15 Thread Rahul Garg
Hi,
Can I override the Status bar ? if yes then how ??

-- 
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

[android-developers] override back button

2011-03-10 Thread Colin
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


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

[android-developers] @override question

2011-02-23 Thread Jeraldo
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


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


[android-developers] @override

2010-07-08 Thread 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


[android-developers] Override and enhance some features of android phone - especially making and receiving calls. Is it possible?

2010-06-18 Thread Сергей Карпушин
Hi All!

  I wondering on having full control of handling calls.

  I need ability to record conversations and mannualy (I mean from
programm) filter incoming calls based on predefined polices. Of cource
policies will be configured by user.

  Is it possible at all?
  Can anyone help me with links to helpful resources?
  Can be this implemented in java or native programming required?

  Any help is appriciated, I'm new in android developing. So I thought
you can help to save my time if you already now an answere on my
questions.

-- 
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

[android-developers] Override default icons of BaseExpandableListAdapter

2010-03-12 Thread Ali Chousein
Hello,

I'm trying to override the default icons of an
BaseExpandableListAdapter in a class which inherits from
BaseExpandableListAdapter. What would be a decent way of doing this?
Such a basic thing doesn't seem to be straightforward.

Thank you in advance,

-Ali

-- 
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

[android-developers] Override enableMyLocation in MyLocationOverlay

2010-03-03 Thread gallagth
Hi everyone,

I want to override the method enableMyLocation() in MyLocationOverlay
class, in order to implement my own positioning algorithm to get
latitude/longitude, and then plot them onto a MapView.

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().

Here is the MyLocationOverlay class:

public class LocationOverlay extends MyLocationOverlay implements
LocationListener,GpsStatus.Listener{

Bitmap circleIcon;
private MapView mapView;
private OutdoorMap outdoorMap;
private Context context;
private LocationManager locationManager;

public LocationOverlay(Context context, MapView mapView) {
super(context, mapView);
this.mapView = mapView;
this.context = context;
circleIcon =
BitmapFactory.decodeResource(context.getResources(),R.drawable.circle);
}

@Override
public boolean enableMyLocation() {

locationManager = (LocationManager)
context.getSystemService(Context.LOCATION_SERVICE);
start();
return true;
}

@Override
public void onLocationChanged(Location loc) {

// Here want to call drawMyLocation but I dont know
what Canvas to pass to it
this.drawMyLocation(canvas, mapView, loc, new   GeoPoint((int)
(loc.getLatitude()*100)
,(int)(loc.getLongitude()*100)), loc.getTime());

}

public void start() {
// Register for location updates.
LocationProvider prov =
locationManager.getProvider(LocationManager.GPS_PROVIDER);
if (prov != null) {

locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,
0, 0, this);
locationManager.addGpsStatusListener((Listener) this);

Location prime =
locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);

}
}

public void stop() {
LocationProvider prov =
locationManager.getProvider(LocationManager.GPS_PROVIDER);
if (prov != null)
locationManager.removeUpdates(this);
}

@Override
public void onGpsStatusChanged(int event) {

}
}

Thanks very much for your help.

Cheers

-- 
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


[android-developers] Override Network TypeName

2010-02-04 Thread DroidAddict
Hello guys,

Is there a way to override the TypeName in NetworkInfo object.

The TypeName is set to WIFI when the WIFI connection is turned on. I
would like to override this TypeName from WIFI and set it to MOBILE.

I would like to know if this can be done on android with the exposed
set of API's. Any views on this is also appreciated.

Thank you

-- 
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

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

2010-01-13 Thread Mark Wyszomierski
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

[android-developers] Override Dock Launcher

2009-11-07 Thread Daniel
Hi, I'm trying to "override" the action when connecting the Droid to
the multimedia dock, and I'm not being lucky with this.
I'm not being asked to "select the default action", the only way for
me to launch an app when detecting a dock connection is by using the
android.intent.action.DOCK_EVENT and using a broadcastReceiver, then
launching the app from there, obviously not good, did it that way just
for testing purposes.

Here's my manifest, I'm using the intent-filter this way.



 MAIN ACTIVITY..
……..











Thanks in advance,

-- 
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


[android-developers] Override incoming call screen with a webview - Succeded

2009-11-04 Thread Jarman
Hello!

I have developed an app called Jarmans ReverseLookup that opens upp a
webview on incoming calls and makes a reverselookup on the incoming
number.

I think this app is first one that actually manages to open a webview
on incoming calls, and override the in-call screen.  I haven´t seen
any other app doing this. Does anyone have any comments on this, is it
"legal" to override the in-call screen?

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


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


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

2009-11-04 Thread Jarman
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


[android-developers] override AnalogClock

2009-06-18 Thread sunita

I want to make my own Analog class by extending View.but
it is giving

 WARN/AppWidgetHostView(614): Caused by:
java.lang.ClassNotFoundException:
com.back.alarmclock_cs.AnalogClock_new in loader
dalvik.system.pathclassloa...@400190f8

06-18 10:12:25.848: WARN/AppWidgetHostView(614):
android.view.InflateException: Binary XML file line #17: Error
inflating class com.back.alarmclock_cs.AnalogClock_new


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] override errors when migrating development computers

2009-04-04 Thread Bob

Hi,
I am trying to change the computer that I am developing on.  I
installed the Android SDK and imported my existing project with Import-
>Existing Projects Into Workspace.  My project has no errors on the
old computer but on the new one I get a bunch errors for my overrides
of onClick, onFling, onClickListener,  onTouch, onSingleTap,
onShowTap, onScroll, onSensorChanged saying that there is no
superclass method for me to override. Any suggestions on what I am
doing wrong?

Thanks,
Bob
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] override or work around content-disposition to play mp3 rather than download?

2008-11-13 Thread prc

Trying to play MP3 files via links in a webpage.  Most work fine -
launch Music Player and play with progressive download.

Some of the mp3 files have a content-disposition header which causes
the Android browser to download them to storage, rather than pass off
to the Music Player.

Any known ways to pass the URLs to the Music Player or avoid having
the browser act on the Content-Disposition header?

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---