NativeScript / NativeScript/plugins

[@nativescript/imagepicker] java.lang.RuntimeException: setDataSource failed: status = 0xFFFFFFFF

Open
#516 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
206
Forks
123
Avg merge
2d 1h
Merged PRs (30d)
1

Description

Hi! I try to get video from a gallery on Android, but getting an error: java.lang.RuntimeException: setDataSource failed: status = 0xFFFFFFFF

https://github.com/NativeScript/plugins/blob/main/packages/imagepicker/index.android.ts#LL259C24-L259C24

  • Android 11
  • target SDK 33
  • @nativescript/core@8.5.3
  • @nativescript/android@8.5.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at packages/imagepicker/index.android.ts around line 259 and reproduce selecting a video from the Android gallery with the reported Android 11 and target SDK 33 setup. Investigate the setDataSource failure and verify that video selection no longer raises the reported RuntimeException.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, typescript
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.