Questions tagged [application-data]
54 questions
2
votes
2 answers
Difference between LocalSettings and IsolatedStorageSettings
I am building a Windows Phone 8.1 Silverlight App. I am able to use both the following registries:
Windows.Storage.ApplicationData.Current.LocalSettings;
IsolatedStorageSettings.ApplicationSettings;
What are the differeces between these…

Atif Shabeer
- 553
- 6
- 18
2
votes
3 answers
Is there a way to keep files in App_Data from overwriting newer files when publishing?
I use an XML file in App_Data in conjunction with a Repeater on the main page of an intranet application allow me to display messages to users when they logon about application status, maintenance, etc. To test the functionality, it would be nice…

tvanfosson
- 524,688
- 99
- 697
- 795
2
votes
1 answer
Win 8 LocalStorage settings not saved
ApplicationDataContainer localSettings = ApplicationData.Current.LocalSettings;
localSettings.Values["stupidcrap"] = "test1";
and then after restarting the app in Visual Studio:
ApplicationDataContainer localSettings =…

Alexander Ciesielski
- 10,506
- 5
- 45
- 66
1
vote
0 answers
How can I access "\appdata\roaming", go down a few directories, and then search for a file?
My program (Visual Basic 2010) has to run on different people's machines, so I have to use a relative path like %appdata%, but I also have to get a file from a randomly named directory. its like…

user1234307
- 11
- 3
1
vote
3 answers
Java - where to put application data?
I'm writing a Java application which requires a number of resource files (there will be about 100 files of 20-40K each). They are not edited by the user, but will require periodic updates (the application will have a function to check for changes to…

Joel Rein
- 3,608
- 1
- 26
- 32
1
vote
0 answers
net50 Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) is returning an empty string on MacOS?
We need a path like /Users/$usr/Library/Preferences or /Users/$usr/.config to put our app data in it, how can we get it?
Unfortunatly
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
is returning an empty string on a…

Patrick from NDepend team
- 13,237
- 6
- 61
- 92
1
vote
3 answers
Path for storing the 'per machine' application details
My application needs to write some information to a file and keep it common to the machine(common to all users).
Currently I stored it in C:\Documents and Settings\All Users\Application Data
But the problem is whenever the file is created by admin…

Bhaskar
- 1,680
- 7
- 26
- 40
1
vote
2 answers
Where in my Visual Studio project should I copy a SQLite database, and do I need to copy it from there?
I migrated a SQL Server Express database to SQLite (using a utility I downloaded from here).
Now I want to add this SQLite database to a C# project in Visual Studio.
I cannot find information on where that should be stored, exactly. There is what…

B. Clay Shannon-B. Crow Raven
- 8,547
- 144
- 472
- 862
1
vote
0 answers
Storing data so that it is deleted when the program is
I originally thought that the best way to save data (user settings, high scores, etc) for my application would be by writing to an embedded file in the .exe. After some research I've found that this isn't possible and that I'm better off writing to…

Shuri2060
- 729
- 6
- 21
1
vote
0 answers
How to get the AppData folder in C# under Windows 10
I have always gotten the AppData folder using
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
However, on my Windows 10 test machine this returns "C:\Users\User\AppData\Roaming" not "C:\Users\\AppData\Roaming" as on all…

Scott
- 11
- 3
1
vote
1 answer
prevent app to clear application data while running in background
I am developing an android application related to gps. that is sending location information periodically to the server. sometime i am getting process killing issue in some devices.
if my application running in foreground then its working file. but…

Ajay
- 1,189
- 1
- 12
- 28
1
vote
2 answers
python: where to put application data that can be edited by computer users
I'm working on a really simple python package for our internal use, and want to package it as a .egg file, and when it's installed/used I want it to access a text file that is placed in an appropriate place on the computer.
So where is the best…

Jason S
- 184,598
- 164
- 608
- 970
1
vote
0 answers
How to Save and Retrieve BitmapImage using ApplicationData
In referencing http://tizianocacioppolini.blogspot.com/2014/01/windows-phone-8-folders-and-files.html#.U6YbkfhOXIU I am trying to put together a sample where I can gather a photo using the PhotoChooserTask and Save/Retrieve this photo using…

Matthew
- 3,976
- 15
- 66
- 130
1
vote
1 answer
Getting values of ApplicationData.Current.LocalSettings in static context
I have next code:
public static class AppUser
{
static AppUser()
{
RestorePreviewUserState();
}
private static void RestorePreviewUserState()
{
var storedToken =…

Roman Bats
- 1,775
- 3
- 30
- 40
0
votes
1 answer
what is the need for writing static singleton code on subclassed application objects
In android whenever we have to subclass an application object or extend it, in the following way:
public class AndroidApplication extends Application{
....
}
and then make the necessary changes in the manifest file.
what is the need to write this…

user590849
- 11,655
- 27
- 84
- 125