Is there a common way to access files, that works both on android and PC?
Posted
by m01
on Stack Overflow
See other posts from Stack Overflow
or by m01
Published on 2010-05-11T20:29:29Z
Indexed on
2010/05/11
20:34 UTC
Read the original article
Hit count: 164
Hi, I'm writing an application that will ship in two versions: Android and PC version.
Is there a simple way to access files from the shared code?
Using java.io
is simple, but I don't know how to access android resources or assets using it. And I can't write methods that operate on FileInputStream
s instead, because some files contain references to another ones, so I need a way to access them from the method code.
Any suggestions?
© Stack Overflow or respective owner