Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26619] Access to android's assets folder

GitHub Issuen/a
TypeNew Feature
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterRainer Schleevoigt
AssigneeEric Merriman
Created2018-11-12T21:59:08.000+0000
Updated2018-11-29T23:48:01.000+0000

Description

A third party SDK reads configuration from a json file from assets folder by AssetsManager. It uses context.getAssets().open("config.json"). This I cannot change (closed source) and there is no other way to import it. I have created in my module a folder assets under platform/android/ with this file, and I can see the file in build/assets folder as sibling of app.js. I see that it is a symlink to module. At runtime of SDK an io exception will fired. How can I solve?

Comments

  1. Sharif AbuDarda 2018-11-29

    Hello, Please provide native docs on this feature. Thanks.

JSON Source