Sign Up

Sign In

Forget Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask question.

Discy Latest Questions

  • 0

I am implementing a SearchView like this: MenuItem search = menu.findItem(R.id.search); SearchView searchView = (SearchView) MenuItemCompat.getActionView(search); But this gives me an inspection report ‘getActionView(android.view.MenuItem)’ is deprecated Now in the docs, it is mentioned: This method was deprecated in API level 26.0.0 Use getActionView() ...

  • 0

Working on android Java, recently updated SDK to API level 29 now there is a warning shown which states that Environment.getExternalStorageDirectory() is deprecated in API level 29 My code is private void saveImage() {if (requestPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE)) {final String folderPath = Environment.getExternalStorageDirectory() ...

  • 0

Switched to AndroidX and received deprecated: import androidx.test.InstrumentationRegistry. If I made next import: import androidx.test.platform.app.InstrumentationRegistry I can’t use getContext(). Ex: val context = InstrumentationRegistry.getContext(). In build.gradle: androidTestImplementation 'androidx.test.ext:junit:1.0.0-beta02' androidTestImplementation 'androidx.test:runner:1.1.0-beta02'

close