But I want to create a file in android application which will use my jar
file containing pure java classes. Like api in android
openFileOutput("test.txt", Context.MODE_PRIVATE) which creates files private
to app's package, I want to do the same but code is in java and I don't know
the android application's package name in advance because for each
application using that jar package names will be different.Suppose my
android application is in package com.example.testjar and for creating
test.txt private to this application while creating file in android
application I either give path like /data/data/com.example.testjar/test.txt
or I simply give only test.txt which creates file private to that android
application.
But all this file creation code is in pure java where I have not used
openFileOutput but I am using FileOutputStream constructor and all classes
in java are in package com.temp.test and to this constructor I want to
simply give only file name and not any specific path so that it will create
file private to android application's package which is using apis from my
jar file. So I don't know android application's package name in advance , it
may vary.
Please give me its solution.
On Sat, Apr 2, 2011 at 12:20 PM, TreKing <[email protected]> wrote:
> On Fri, Apr 1, 2011 at 5:11 AM, gauri <[email protected]> wrote:
>
>> Package name may vary.
>
>
> For a given Android App ... no it can't ...
>
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en