Monday, June 6, 2011

Re: [android-developers] Question regarding Vending.apk

SDK applications should not be using the cache partition. Use
getCacheDir(), please.

On Mon, Jun 6, 2011 at 8:40 AM, Tushar <tushar.mahawar@gmail.com> wrote:
> On the latest release once the phone powers up I see that Vending.apk
> erases the contents from /cache partition on receiving the intent
> android.intent.action.SIM_STATE_CHANGED or
> android.intent.action.LOCALE_CHANGED.
>
> Is this change really needed ??.
>
> Could someone from Google Android team comment on this change? I am
> keen to know the intent of clearing the /cache partition since I am
> working on a feature which requires writing some content into /cache
> partition on phone power up after recieving the BOOT_COMPLETE intent.
> With this new change my app doesn't work as the data written by my app
> is lost.
>
> Below is the information obtained from log..
>
> ===============================================================================================================================06-06
> 15:14:26.889 1442 1455 D vending : [11] 1.run(): Clearing cache in
> response to android.intent.action.SIM_STATE_CHANGED
>
> 06-06 15:14:31.084 1442 1531 D vending : [12] 1.run(): Clearing cache
> in response to android.intent.action.LOCALE_CHANGED
>
> ===============================================================================================================================
>
> I also see that the RecoverySystem.java file erases the contents of /
> cache partition on every boot up on receiving BOOT_COMPLETE intent.
>
> Why is the same change needed in Vending.apk when the
> RecoverySystem.java file already does the same??
>
> --
> 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+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.6 Available!

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment