Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about android-assetpacks

Read more about android-assetpacks

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - android-assetpacks

Accessing data from asset packs in Espresso tests

I want to run an Espresso test in Android Studio which I recorded before. The test requires access to a file which is part of an asset pack and fails because of a "FileNotFoundException". Th...
test-img

GenError

android

android-espresso

android-assets

android-assetpacks

Votes: 0

Answers: 1

Latest Answer

In my case the solution to the problem was to use getTargetContext(), not getContext(): InstrumentationRegistry.getInstrumentation().getTargetContext(); You can access your assets folder in your test...
test-img

Bratyslav Morhunov

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved