Re: [android-developers] override earphone click button

2014-05-13 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

[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

Re: [android-developers] override earphone click button

2014-05-09 Thread TreKing
On Fri, May 9, 2014 at 2:32 AM, Sadhna Upadhyay sadhna.braah...@gmail.comwrote: 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.

[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

[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

Re: [android-developers] override home key

2012-01-21 Thread Mark Murphy
On Fri, Jan 20, 2012 at 11:20 PM, Kumar Bibek coomar@gmail.com 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

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 mmur...@commonsware.com wrote: On Fri, Jan 20, 2012 at 11:20 PM, Kumar Bibek coomar@gmail.com wrote: I am not sure about this, but I think it would work for you. When you press

Re: [android-developers] override home key

2012-01-21 Thread Mark Murphy
On Fri, Jan 20, 2012 at 11:04 PM, Dhaval Varia dhavalkva...@gmail.com 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

Re: [android-developers] override home key

2012-01-21 Thread skink
Dhaval Varia wrote: thanx for reply? would u plz eleborate?? activity android:name=Home intent-filter action android:name= android.intent.action. MAIN / category android:name= android.intent.categor y.HOME / category android:name=

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 mmur...@commonsware.comwrote: On Fri, Jan 20, 2012 at 11:04 PM, Dhaval Varia dhavalkva...@gmail.com wrote: As we know

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 mmur...@commonsware.com wrote: On Fri, Jan 20, 2012 at 11:04 PM, Dhaval Varia dhavalkva...@gmail.com 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

[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

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

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

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 krismicin...@gmail.com 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

Re: [android-developers] override home key

2012-01-20 Thread Kristopher Micinski
On Fri, Jan 20, 2012 at 10:51 PM, Dhaval Varia dhavalkva...@gmail.com 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,

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

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 coomar@gmail.com wrote: There would always be a few things which you cannot do.

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

Re: [android-developers] override home key

2012-01-20 Thread Dhaval Varia
thanx sir On Jan 21, 2012 9:51 AM, Kumar Bibek coomar@gmail.com 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.

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 dhavalkva...@gmail.comwrote: thanx sir On Jan 21, 2012 9:51 AM, Kumar Bibek coomar@gmail.com wrote: I am not sure about this, but I think it would work for you. When you press the Home button, there

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 dhavalkva...@gmail.com

[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

Re: [android-developers] Override default textselection

2011-12-18 Thread Mark Murphy
On Sun, Dec 18, 2011 at 9:19 AM, AlexanderL alexanderlv...@gmail.com 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

[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

[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

[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

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 cjk...@gmail.com 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

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 zkar...@gmail.com 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

[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

Re: [android-developers] Override the Status bar

2011-03-15 Thread Mark Murphy
On Tue, Mar 15, 2011 at 6:48 AM, Rahul Garg rahul.lnm...@gmail.com 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

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

Re: [android-developers] Override the Status bar

2011-03-15 Thread Mark Murphy
On Tue, Mar 15, 2011 at 8:54 AM, Rahul Garg rahul.lnm...@gmail.com 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,

[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

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

Re: [android-developers] override back button

2011-03-10 Thread TreKing
On Thu, Mar 10, 2011 at 1:54 PM, Colin colin...@gmail.com 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.

Re: [android-developers] override back button

2011-03-10 Thread TreKing
On Thu, Mar 10, 2011 at 3:36 PM, TreKing treking...@gmail.com wrote: On Thu, Mar 10, 2011 at 1:54 PM, Colin colin...@gmail.com 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

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

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

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

Re: [android-developers] @override question

2011-02-23 Thread Marcin Orlowski
On 23 February 2011 01:13, Jeraldo thejera...@gmail.com 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

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

Re: [android-developers] @override

2010-07-09 Thread TreKing
On Thu, Jul 8, 2010 at 5:49 AM, B Woods bradleydeanwo...@gmail.com wrote: What is the purpose of this? What is the purpose of THIS http://lmgtfy.com/?q=%40override+java? - TreKing - Chicago transit

[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

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 bradleydeanwo...@gmail.com wrote: What is the purpose of this? -- You received this message because you are subscribed to the Google Groups

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 bradleydeanwo...@gmail.com 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,

[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

[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

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

2010-03-12 Thread TreKing
On Fri, Mar 12, 2010 at 5:38 PM, Ali Chousein ali.chous...@gmail.comwrote: 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

Re: [android-developers] Override enableMyLocation in MyLocationOverlay

2010-03-04 Thread TreKing
On Wed, Mar 3, 2010 at 11:37 PM, gallagth galla...@gmail.com 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,

[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

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

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

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 mar...@gmail.com wrote: Hi, I'm using eclipse 3.4/3.5 to compile a project. On my machine I get compile errors related to the

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

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 mar...@gmail.com wrote: Hi, I'm using eclipse 3.4/3.5 to

[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

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

[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

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

[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