title: Where do I put the image resource file? BitmapFactory.decodeFile()
body: <p>I am trying to use this:</p>
  
  <blockquote>
    <p>BitmapFactory.decodeFile("logo.jpg")</p>
  </blockquote>
  
  <p>and I don't seem to have the file: logo.jpg in the right place in comparison to my apk. where should it go?</p>
  
  <p>P.S. the error I get is:<img src="https://i.stack.imgur.com/PKaKV.png" alt="enter image description here"></p>
  
  <p><strong>Edit</strong></p>
  
  <p>I now am using this: >BitmapFactory.decodeResource(getActivity().getResources(),"logo.jpg")</p>
  
  <p>and am now getting a compiler error that says:</p>
  
  <blockquote>
    <p>The method getActivity() is undefined for the type Brick
    (Brick is the name of the class)</p>
  </blockquote>
  
  <p>I don't care which solution works as long as one of them does</p>