[android-developers] deprecated method warnings (ConnectivityManager.getBackgroundDataSetting)
I am having the same problem as detailed in this post: http://stackoverflow.com/q/8430253/395195 Except for me, I was expecting a deprecation warning for ConnectivityManager.getBackgroundDataSetting(). I have my Ecilpse settings for Java-Compiler-Error/Warnings- Deprecated and restricted API set to Error and not seeing any mention of this. My project is building with 4.0.3 and if I F3 into the source code, I see the proper @Deprecated annotation. Any ideas on how to fix 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] Re: deprecated method warnings (ConnectivityManager.getBackgroundDataSetting)
I know, but I want to see warnings for other methods that are deprecated so that I am aware of functionality that is broken or discouraged in releases like ICS. It's an intensive process to go thru every API call and find deprecated methods.. My app would have been always sending data in the background regardless of whether it was allowed, apparently. On Jan 20, 7:13 pm, Jonathan S xfsuno...@gmail.com wrote: You can remove that method. -- 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] Re: How does Chronometer work??
before you call chrono.start(), try adding a tick listener: chrono.setOnChronometerTickListener(new OnChronometerTickListener() { @Override public void onChronometerTick(Chronometer chronometer) { long elapsedTime = (System.currentTimeMillis() - chronometer.getBase()) / 1000; String currentTime = Utils.verboseTime(elapsedTime); chronometer.setText(currentTime); } }); On Jan 18, 4:55 am, rachana govilkar rachana.govil...@gmail.com wrote: Hello All, Using MediaRecorder I could capture Video.But I want to show timer to the user exactly same as it shown in built-in Camera app. So i implemented Chronometer logic private Chronometer chrono; chrono = (Chronometer)findViewById(R.id.chronometer1); chrono.setBase(SystemClock.elapsedRealtime()); chrono.start(); but no luck. Can anybody help me on this issue?? -- 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