# Revision history [back]

### Android: Object detection - accessing cascade.xml

Hi!! I've finished my object detection android app and i want to run it on a real device. My problem is: the access to the cascade.xml file has been done through a virtual sdcard, i mean, i created a virtual sd card and pushed the xml file into it so the access to it was a simple line on the native code part:

 std::string cascade_name= "sdcard/cascade.xml";


On a real device i don't want to copy the file into the sdcard, i want it to be included on the apk. To do that, i've copied the file into the assets folder. The question is, how do i access it from the native code?

std::string cascade_name= "assets/cascade.xml";


I tried this but nothing happened which makes me think it's not the right path to assets folder.

Any help would be appreciated, Thanks!

### Android: Android App: Object detection - accessing cascade.xml

Hi!! I've finished my object detection android app and i want to run it on a real device. My problem is: the access to the cascade.xml file has been done through a virtual sdcard, i mean, i created a virtual sd card and pushed the xml file into it so the access to it was a simple line on the native code part:

 std::string cascade_name= "sdcard/cascade.xml";


On a real device i don't want to copy the file into the sdcard, i want it to be included on the apk. To do that, i've copied the file into the assets folder. The question is, how do i access it from the native code?

std::string cascade_name= "assets/cascade.xml";


I tried this but nothing happened which makes me think it's not the right path to assets folder.

Any help would be appreciated, Thanks!

### Android App: Object detection - accessing cascade.xml

Hi!! I've finished my object detection android app and i want to run it on a real device. My problem is: the access to the cascade.xml file has been done through a virtual sdcard, i mean, i created a virtual sd card and pushed the xml file into it so the access to it was a simple line on the native code part:

 std::string cascade_name= "sdcard/cascade.xml";


On a real device i don't want to copy the file into the sdcard, i want it to be included on the apk. To do that, i've copied the file into the assets folder. The question is, how do i access it from the native code?

std::string cascade_name= "assets/cascade.xml";


I tried this but nothing happened which makes me think it's not the right path to assets folder.folder. SO where's the right folder in which i should put cascade.xml ?

Any help would be appreciated, Thanks!

 4 retagged Andrey Pavlenko 1808 ●3 ●18 ●39

### Android App: Object detection - accessing cascade.xml

Hi!! I've finished my object detection android app and i want to run it on a real device. My problem is: the access to the cascade.xml file has been done through a virtual sdcard, i mean, i created a virtual sd card and pushed the xml file into it so the access to it was a simple line on the native code part:

 std::string cascade_name= "sdcard/cascade.xml";


On a real device i don't want to copy the file into the sdcard, i want it to be included on the apk. To do that, i've copied the file into the assets folder. The question is, how do i access it from the native code?

std::string cascade_name= "assets/cascade.xml";


I tried this but nothing happened which makes me think it's not the right path to assets folder. SO where's the right folder in which i should put cascade.xml ?

Any help would be appreciated, Thanks!

 5 No.5 Revision Andrey Pavlenko 1808 ●3 ●18 ●39

Hi!! I've finished my object detection android app and i want to run it on a real device. My problem is: the access to the cascade.xml file has been done through a virtual sdcard, i mean, i created a virtual sd card and pushed the xml file into it so the access to it was a simple line on the native code part:

 std::string cascade_name= "sdcard/cascade.xml";


On a real device i don't want to copy the file into the sdcard, i want it to be included on the apk. To do that, i've copied the file into the assets folder. The question is, how do i access it from the native code?

std::string cascade_name= "assets/cascade.xml";


I tried this but nothing happened which makes me think it's not the right path to assets folder. SO where's the right folder in which i should put cascade.xml ?

Any help would be appreciated, Thanks!