[android-developers] Re: Use shared preferences on non-app directory file

2010-12-15 Thread bagelboy


 Then just use the SD card if you're only concerned about the less savvy
 freetards.

 That's a great perception you have of your users, by the way.


I don't have a bad perception of my users, I was just being
sarcastic.

-- 
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


[android-developers] Re: Use shared preferences on non-app directory file

2010-12-15 Thread bagelboy
Even with stock LVL the user can still clear the user data as it uses
Shared Preferences. Using the SD card is a good idea whether you are
using LVL or not.

LVL is a sledgehammer to crack a nut in this case.

On Dec 15, 4:18 am, Chris Stratton cs07...@gmail.com wrote:
 On Dec 14, 5:33 pm, Jake Basile jakerbas...@gmail.com wrote:

  If it's for licensing, couldn't you use something like the 
  LVLhttp://developer.android.com/guide/publishing/licensing.html?
  Anything you write to a system you don't control (the device) is going to be
  non-permanent.

 Right idea, but bagelboy would need his own server, as I don't believe
 the android market licensing service is available for free
 applications.  Allowing it to be used for time limited trials might be
 a good idea though - it would make things very easy for the developer,
 since they'd just ship the paid apk and use some market setting to
 set the pre-purchase trial period.

-- 
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


[android-developers] Re: Use shared preferences on non-app directory file

2010-12-14 Thread bagelboy
A user can clear app data, I want a file that is persistent

On Dec 13, 9:50 pm, TreKing treking...@gmail.com wrote:
 On Mon, Dec 13, 2010 at 3:29 PM, bagelboy greg.do...@gmail.com wrote:
  Is there a way to use shared preferences on a different directory?

 What for? SharedPrefs are for storing name value pairs. What difference does
 it make where it's stored?

 -
 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 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


Re: [android-developers] Re: Use shared preferences on non-app directory file

2010-12-14 Thread TreKing
On Tue, Dec 14, 2010 at 2:29 AM, bagelboy greg.do...@gmail.com wrote:

 A user can clear app data, I want a file that is persistent


A user can clear their SD card, or perform a factor reset to wipe their
phones. By that logic, there's no such thing as persistent data storage on
a device.

-
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 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

[android-developers] Re: Use shared preferences on non-app directory file

2010-12-14 Thread Bret Foreman
You should use Amazon S3 for this purpose. Not only will your data be
protected when the user clears data on the phone but the user can
access their data on multiple phones.

Here's the (beta) library from Amazon: http://aws.amazon.com/sdkforandroid/

-- 
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


[android-developers] Re: Use shared preferences on non-app directory file

2010-12-14 Thread Chris Stratton
On Dec 14, 3:29 am, bagelboy greg.do...@gmail.com wrote:
 A user can clear app data, I want a file that is persistent

If you find a way to do that, the android architects will probably
consider it a bug in need of fixing.  As an application developer you
aren't supposed to be able to do anything permanent to the user's
device.

-- 
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


[android-developers] Re: Use shared preferences on non-app directory file

2010-12-14 Thread bagelboy
I understand your point, however as a developer I have a problem that
needs fixing and this is one of the possible solutions.

When google provide me a way to create demo and licensing algorithms
that cannot be defeated by the user simply clearing the app data then
I'll stop trying to find a way to create a persistent file.

On Dec 14, 5:25 pm, Chris Stratton cs07...@gmail.com wrote:
 On Dec 14, 3:29 am, bagelboy greg.do...@gmail.com wrote:

  A user can clear app data, I want a file that is persistent

 If you find a way to do that, the android architects will probably
 consider it a bug in need of fixing.  As an application developer you
 aren't supposed to be able to do anything permanent to the user's
 device.

-- 
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


[android-developers] Re: Use shared preferences on non-app directory file

2010-12-14 Thread bagelboy
No arguments here. I know it's not going to defeat all freetards but
it will defeat the less savvy freetards.

On Dec 14, 3:25 pm, TreKing treking...@gmail.com wrote:
 On Tue, Dec 14, 2010 at 2:29 AM, bagelboy greg.do...@gmail.com wrote:
  A user can clear app data, I want a file that is persistent

 A user can clear their SD card, or perform a factor reset to wipe their
 phones. By that logic, there's no such thing as persistent data storage on
 a device.

 -
 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 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


Re: [android-developers] Re: Use shared preferences on non-app directory file

2010-12-14 Thread TreKing
On Tue, Dec 14, 2010 at 3:12 PM, bagelboy greg.do...@gmail.com wrote:

 When google provide me a way to create demo and licensing algorithms that
 cannot be defeated by the user simply clearing the app data then I'll stop
 trying to find a way to create a persistent file.


Looks like you're never going to stop trying then. Good luck.

On Tue, Dec 14, 2010 at 3:13 PM, bagelboy greg.do...@gmail.com wrote:

 I know it's not going to defeat all freetards but it will defeat the less
 savvy freetards


Then just use the SD card if you're only concerned about the less savvy
freetards.

That's a great perception you have of your users, by the way.

-
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 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

[android-developers] Re: Use shared preferences on non-app directory file

2010-12-14 Thread Chris Stratton
On Dec 14, 4:12 pm, bagelboy greg.do...@gmail.com wrote:
 I understand your point, however as a developer I have a problem that
 needs fixing and this is one of the possible solutions.

 When google provide me a way to create demo and licensing algorithms
 that cannot be defeated by the user simply clearing the app data then
 I'll stop trying to find a way to create a persistent file.

The simple answer is to create the persistent file on a computer you
own (a remote server) rather than fighting google to try to create it
on one owned by the user.

-- 
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


[android-developers] Re: Use shared preferences on non-app directory file

2010-12-14 Thread Jake Basile
If it's for licensing, couldn't you use something like the 
LVLhttp://developer.android.com/guide/publishing/licensing.html? 
Anything you write to a system you don't control (the device) is going to be 
non-permanent.

-- 
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

[android-developers] Re: Use shared preferences on non-app directory file

2010-12-14 Thread Chris Stratton
On Dec 14, 5:33 pm, Jake Basile jakerbas...@gmail.com wrote:
 If it's for licensing, couldn't you use something like the 
 LVLhttp://developer.android.com/guide/publishing/licensing.html?
 Anything you write to a system you don't control (the device) is going to be
 non-permanent.

Right idea, but bagelboy would need his own server, as I don't believe
the android market licensing service is available for free
applications.  Allowing it to be used for time limited trials might be
a good idea though - it would make things very easy for the developer,
since they'd just ship the paid apk and use some market setting to
set the pre-purchase trial period.

-- 
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