info.sktechnol...@gmail.com wrote:
> Is there a preferred way to find the data directory of an application,
> other than starting with android.os.Environment.getDataDirectory()
> and appending "/data/" and the package name?

Context#getFilesDir(). Bear in mind that Activity and Service are
subclasses of Context.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to