On Mon, Jun 21, 2010 at 7:27 AM, changdeo <changdeojad...@gmail.com> wrote:

> Can anybody please help me to create a file on application space and
> tell a way to read it.
>

There are various log-reading apps available for exactly this reason. You
can just have your users install one of those apps and send you the logs via
email.


> I am doing this
>
> String fileName = Environment.getExternalStorageDirectory()+"/
> WFLog.txt";
>

That's for writing to the SD card, not "application space".

Also, don't randomly append strings together to form file paths. Use the
various File constructors and functions to form a complete, valid File
object.

Alternative I thought was to create log file on sdcard but I can not delete
> it when application gets uninstalled. This also can be helpful if anybody
> knows how to delete sdcard files created by applicationon removal(unistall) of
> application.
>

I believe this is in the works, and maybe available in Froyo, I can't
remember.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to