Access Image file in java class

  • Gurudath
    Likes 0

    Problem Description

    Hello All,

    I want to Create Bitmap image in AppActivity.java.

    Am trying to access the image which is present on resource folder.

    Let us Say: File filePath = new File("HelloWorld.png");

    But all Time Am getting file not found.

    Any idea?

     

    Thanks in advance

    Gurudath

  • Sonar Systems admin
    Likes 0

    Are you following any particular tutorial?

  • Gurudath
    Likes 0

    No.

     

    Am not using any tutorial. Just i want to acees the Helloworld.png image in AppActivity.java

  • Sonar Systems admin
    Likes 0

    Where is the file stored.

  • Gurudath
    Likes 0

    File stored under resource fiolder. 

  • Gurudath
    Likes 0

    Okay. I will check.

Login to reply