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

'setText' is deprecated

Hey guys, So i'm building an app combining Table View and Navigation Controller into my Tab Bar application and while it's compiling, I bumped into an error saying: 'setText' is deprecated This is the section of my code that got this…
PatrickGamboa
  • 672
  • 4
  • 22
  • 43
1
vote
2 answers

iOS: Will deprecated elements continue to work in legacy applications?

I have several iOS enterprise apps that had been developed years ago, and some of the earlier ones contain elements that Apple has deprecated, such as UIWebView. My question is, after Apple has stopped supporting deprecated elements, will these…
Bill Norman
  • 883
  • 11
  • 29
1
vote
1 answer

assembleRelease version of react-native app crashes upon start

The debug version of the app I'm working on works. However, when I build an apk for it, the app crashes immediately after I attempt to start it. Here is the info/messages I receive when I install the debug version: Task…
VK1
  • 1,676
  • 4
  • 28
  • 51
1
vote
1 answer

Where is the deprecated API at my class code ? I can't figure out

It's a simple code, and the error message doesn't say where exactly is the deprecated usage. package com.dev.marcellocamara.pgm.Helper; import android.content.Context; import android.graphics.drawable.Drawable; import…
Marcello Câmara
  • 187
  • 1
  • 13
1
vote
1 answer

Directive 'safe_mode' is no longer available in PHP in Unknown on line 0

I have got this error PHP Fatal error: Directive 'safe_mode' is no longer available in PHP in Unknown on line 0 when I have updated my hosting PHP version from 5.6 to 7.2 how can I solve this problem or I must contact my hosting provider ?! here is…
Reham Fahmy
  • 4,937
  • 15
  • 50
  • 71
1
vote
2 answers

How I can replace deprecated method this.stop() in ThreadGroup

I am working on java version upgrade project and I am on the work where I need to replace deprecated methods. this.stop(); Code USed this method are in :: ThreadedTestGroup.java:: package utmj.threaded; import junit.framework.*; public…
James Bond
  • 51
  • 1
  • 8
1
vote
3 answers

What does it mean an Apple implementation is deprecated while still being able to use it. Reasons not to use it?

I'm using GLKit's GLKView in one of my projects. As per Apple's documentation it is deprecated. I can still use it in my app and it is fully functional (for what I want it to do) with latest iOS versions. I'm using it because of an older SDK that…
SumakuTension
  • 542
  • 1
  • 9
  • 26
1
vote
1 answer

session.getCurrentSession().createCriteria(MyClass.class) deprecated how to use .addOrder() now

I have been developing with: public List getAllDepartmentTypes() { return session.getCurrentSession() .createCriteria(DepartmentType.class) .addOrder(Order.asc("department_type_name")) …
1
vote
1 answer

Google plus deprecation, Does already implemented OAuth 2.0 based sign in flow do required major changes?

Relevant stackoverflow ticket: signin for server-side apps and plus deprecation As mentioned in above stackoverflow question by David, We also have already implemented google sign in with OAuth 2.0 based flow, we are not passing any scope details &…
Jaymit
  • 13
  • 1
  • 4
1
vote
1 answer

Correct way to handle deprecated API

There is an Obj-C file which is included into several projects with different deployment target. This file has following codeline: [[UIApplication sharedApplication] openURL:url]; When I compile project targeting iOS 10, I get a…
Nick
  • 3,205
  • 9
  • 57
  • 108
1
vote
1 answer

Finding alternative to a deprecated method

I'm using the TabLayout in my android app. I need to change the tabIndicatorHeight to a larger one. So far, this is how I'm achieving it: As you can see the method is deprecated and looking over its documentation, both on the Class itself and…
Boron
  • 99
  • 10
  • 34
1
vote
3 answers

Deprecated: Function eregi() is deprecated in C:\wamp\

please when using the eregi() function to validate an email address i got this error: Deprecated: Function eregi() is deprecated in C:\wamp\www\ssiphone\classes\TraitementFormulaireContact.php on line 13 my code which may make problem is : public…
Malloc
  • 15,434
  • 34
  • 105
  • 192
1
vote
1 answer

Recompile with -Xlint : unchecked for details

Hi guys I have this warning on my code. I try to compile using @SuppressWarnings("unchecked") It compile but at the time of the execution the program can't find the main class. How can I solve this problem? Below the code: import…
1
vote
1 answer

PHP Version agnostic way to set default value in input variable that could be an array with missing index

I have a stupid problem because I've got calls to this function all over my code base. Sometimes my code is run on PHP 5, 7 and who knows what else. I need a way to resolve this deprecated code issue, hopefully without rewriting every call to the…
Byron
  • 21
  • 4
1
vote
2 answers

foreground service for persistent notification

I have an app which was built in api level 22, now I had to update it to api level 26 and the persistant notification that was built initially is no longer working. I have tried multiple codes from stackoverflow but with no success for me. My code: …
John Doe
  • 11
  • 1