-2

Possible Duplicate:
The constructor Date(…) is deprecated. What does it mean? (Java)

When I use SMSManager object on Android, Eclipse notice that this class is deprecate and there is a crossline at SMSManager, but everything works normally.

Who can explain for me this, please.

thanks :)

Community
  • 1
  • 1
hqt
  • 29,632
  • 51
  • 171
  • 250
  • Did you try wiki: http://en.wikipedia.org/wiki/Deprecation ? – Ivan Nevostruev Mar 08 '12 at 17:04
  • This is a Java guide about it - basically deprecation means a function/method/class/whatever is not recommended for use, and something else probably replaced it. It might disappear in a future release: http://docs.oracle.com/javase/1.5.0/docs/guide/javadoc/deprecation/deprecation.html – wkl Mar 08 '12 at 17:05
  • a simple google search should yield all the information you're looking for - https://www.google.com/search?q=java+deprecated – csturtz Mar 08 '12 at 17:12

5 Answers5

3

@Deprecated

A program element annotated @Deprecated is one that programmers are discouraged from using, typically because it is dangerous, or because a better alternative exists. Compilers warn when a deprecated program element is used or overridden in non-deprecated code.

bvulaj
  • 5,023
  • 5
  • 31
  • 45
0

Deprecated means it will no longer be supported in the future. See the documentation http://developer.android.com/reference/android/telephony/gsm/SmsManager.html

This class is deprecated.

Replaced by android.telephony.SmsManager that supports both GSM and CDMA.

Community
  • 1
  • 1
Ruan Mendes
  • 90,375
  • 31
  • 153
  • 217
0

This class is deprecated.

Replaced by android.telephony.SmsManager that supports both GSM and CDMA.

See here

Community
  • 1
  • 1
juergen d
  • 201,996
  • 37
  • 293
  • 362
0

Deprecation doesn't mean that the Object isn't working anymore, it means that a new one exists now and that you should be using that new one. In your case, you should use android.telephony.SMSManager and not android.telephony.gsm.SMSManager.

talnicolas
  • 13,885
  • 7
  • 36
  • 56
0

A deprecated class or method is one that programmers are discouraged from using, typically because it is dangerous, or because a better alternative exists. It is so potentially bad/out-dated, in fact, that you should no longer use it, since it has been superseded and may cease to exist in the future.

GeoGriffin
  • 1,065
  • 11
  • 26