Questions tagged [deprecated]

Deprecation is a status applied to software features or language terms to indicate that they should be avoided, typically because they have been superseded. Use this tag for questions about deprecated features or how to deprecate features yourself (e.g. using annotations).

In the process of authoring computer software, its standards or documentation, deprecation is a status applied to software features to indicate that they should be avoided, typically because they have been superseded. Although deprecated features remain in the software, their use may raise warning messages recommending alternative practices, and deprecation may indicate that the feature will be removed in the future.

Features are deprecated—rather than immediately removed—in order to provide backward compatibility and give programmers who have used the feature time to bring their code into compliance with the new standard.

2508 questions
1
vote
1 answer

ABAddressBook in Swift 2 fails

In Xcode7/Swift 2, the call ABAddressBookCopyArrayOfAllPeople(addressBook)?.takeRetainedValue() returns a non-null CFArrayRef, but when I cast it "as? NSArray" or "as? [ABRecordRef]" (which used to work) I now get nil. I understand that we should…
Andrew Duncan
  • 3,553
  • 4
  • 28
  • 55
1
vote
0 answers

How to "un-deprecate" an installation in Eclipse Mars?

I want to use RSE Terminals UI - but it is being deprecated and shows the following message: Note: This feature is deprecated. Use the "Remote System Explorer Terminals View add-in" feature from the "Mobile and Device Development" category…
Kalinka
  • 205
  • 1
  • 9
1
vote
1 answer

Is there a deprecated flag in clearcase?

Is there any way in Clearcase to set a file as deprecated? My(Use)-case: I have a project (a simulation environment) which has some (old) version. I realized that my directory structure is bad during the developing. I want to put some files to…
betontalpfa
  • 3,454
  • 1
  • 33
  • 65
1
vote
3 answers

Android target sdk vs deprecated methods

This code is some basic code to set up tabs in Android. final ActionBar actionBar = getActionBar(); actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); If you write this code in a project where targetSDK < 20 or compileSDK < 20 (I don't…
luky
  • 2,263
  • 3
  • 22
  • 40
1
vote
1 answer

How to get packagename of runningtask on Android M5.1.1

I'm new to Android and i'm trying to make a project that allows user to see which applications are running. I used this code to get the packagename of the running task on top: if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { …
sophie281988
  • 131
  • 9
1
vote
1 answer

What to do for C++ code with the AudioSession API being completely deprecated?

So the AudioSession API is completely deprecated in iOS 7.0. The Audio Session Services Reference refers to the AVAudioSession Class Reference for the Objective-C implementation of these functions. Well my code is using the C AudioSession API and is…
Jan Deinhard
  • 19,645
  • 24
  • 81
  • 137
1
vote
2 answers

Conflicting information in the MSDN and compiler warnings

I am trying to use FtpWebRequest.Proxy and have it set to GlobalProxySelection.GetEmptyWebProxy() however i get a compliler warning Warning 1 'System.Net.GlobalProxySelection' is obsolete: '"This class has been deprecated. Please use…
Scott Chamberlain
  • 124,994
  • 33
  • 282
  • 431
1
vote
1 answer

Express Deprecated

I have a photo app that uploads photos to AWS. When testing the uploading photos feature on my localhost, my terminal throws the following error: express deprecated res.send(status, body): Use res.status(status).send(body) instead…
Jason Brewer
  • 203
  • 1
  • 2
  • 8
1
vote
1 answer

Function of libwayland is deprecated – alternative?

I'm playing around with Wayland. Currently I'm trying to write a small compositor. The compiler keeps telling me that "wl_client_add_resource" is deprecated. What is the alternative to it?
MasterCrumble
  • 111
  • 1
  • 5
1
vote
2 answers

Deprecated methods in JasperReport

I am using a jasperreports-6.1.0.jar, and there are some deprecated methods in class JRPrintServiceExporterParameter. How do I find out what method or class am I supposed to use? How do I find out if it's safe to just use deprecated…
PRO_gramista
  • 922
  • 1
  • 9
  • 26
1
vote
1 answer

MPMoviePlayercontroller not working in iphone SDK 4 ? - Help Needed

Till yesterday My MPMovieController was wokring fine in iPhone SDK 3 . But yesterday when I upgraded the SDK ti iphone SDK 4 my movieplayer stops working it is giving me a deprecation warning on the following line (They have deprecated lots of…
harshalb
  • 6,012
  • 13
  • 56
  • 92
1
vote
3 answers

Remove "heightForRowAtIndexPath" for iOS8

I'm trying to solve this problem for two days before finding the solution. Here it is. ====== Hi everyone, I actually manage the height of my tableViewCell in iOS7 with the delegate method heightForRowAtIndexPath: Now, in iOS8 I use the property…
WMZ
  • 73
  • 8
1
vote
2 answers

Support deprecated and new API

Is there any way I can support both deprecated and new API in the same method call for Android? I'm using the camera API which seems to be deprecated for the Lollipop version, so I tried to handle it like this: if…
Araw
  • 2,410
  • 3
  • 29
  • 57
1
vote
1 answer

Use Toolbar.OnClickListener instead of ActionBar.TabListener?

I am new to android and recently used a android template (Tabbed activity - with ViewPager and fragments) and noticed that the ActionBar and ActionBar.TabListener are deprecated. So I replaced the ActionBar with AppCompatActivity as it is…
Georgi Koemdzhiev
  • 11,421
  • 18
  • 62
  • 126
1
vote
2 answers

Android Studio: ActionBarActivity becomes deprecated when adding a dependency?

I'm somewhat of a newbie so do excuse me if this is really basic. Anyway, in an attempt to add a Floating Action Button (FAB) to my layout, I decided to add a dependency to a library, like this: dependencies { compile fileTree(dir: 'libs',…
1 2 3
99
100