storage

Can't access stored files in public folder in Android (MTP)

不打扰是莪最后的温柔 提交于 2019-12-13 05:48:51
问题 I want to save a simple .txt file in Android and later I want to copy this file from the device to a PC where the device is mounted as a MTP-Device. I own two Android Devices: Nexus 4, Stock Android 5.0.1 Nexus 7 2012, CyanogenMod 12, Android 5.0.2 To make sure that it's not a Nexus device bug I tried a Wiko phone from a friend. I use this code to save the file to the Downloads folder on the external storage. This is recommended on the developer page. private void saveData() { String fileName

What is the best way to locally store user-entered data on a web page?

痞子三分冷 提交于 2019-12-13 05:43:36
问题 I'm working on web app that basically allows the user to enter data about a product and then add it to the web page in a table. I would like to save this information in a file of some kind (just locally on my computer, for now) so that the user can open his or her previously-created entries. This is a stripped-down version of the html page: <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> </head> <body> <div> <table id="itemsTable"> <tr> <th>Date Added</th> <th>Item Description<

How to achieve Incremental deployment of Blob Files storage files to different environments of windows azure storage?

橙三吉。 提交于 2019-12-13 05:37:14
问题 We are new to Windows azure and are developing a web application. In the beginning of the project , we have deployed complete code to different environments which actually publish complete code and uploaded blob objects to azure storage as we linked sitefinity to hold blob objects in azure storage . But now as we are in the middle of development , we are just required to upload any new blob files created which can be quite less in numbers (1 or 2 or maybe few).Now I would like to know best

Playing music from SD Card works on emulator but not on phone

白昼怎懂夜的黑 提交于 2019-12-13 04:41:49
问题 I'm creating an android application that plays the users music. I've got it to work fine on an emulator but it's not working when I install it on a phone, it crashes at this line: int songIndex = new Random().nextInt(songsList.size()); Because songList.size() is returning 0, since it seems the music can't be found when it runs on a phone. I've put a Micro SD card in the phone, and have loaded music onto it (in the root folder). I'm using the following to get the path: final String MEDIA_PATH

Android, Not sure if I should store to the internal storage or external storage

强颜欢笑 提交于 2019-12-13 04:29:43
问题 I have an app out there on the market already The app is not a game just an informative app with lots of pictures and stats and I received a comment from someone stating that the size of the app being 20Mb is being stored on the "internal storage which isn't fair and that some of it should be stored on the SD card." Now I am still trying to learn everything about android coding but is this a big deal so that I should move all those images to the external storage like the SD card? Is 20Mb to

Objective-C classes, pointers to primitive types, etc

十年热恋 提交于 2019-12-13 03:36:58
问题 I'll cut a really long story short and give an example of my problem. Given a class that has a pointer to a primitive type as a property: @interface ClassOne : NSObject { int* aNumber } @property int* aNumber; The class is instantiated, and aNumber is allocated and assigned a value, accordingly: ClassOne* bob = [[ClassOne alloc] init]; bob.aNumber = malloc(sizeof(int)); *bob.aNumber = 5; It is then passed, by reference, to assign the aNumber value of a seperate instance of this type of class,

How do I store information securely on android device?

蹲街弑〆低调 提交于 2019-12-13 03:34:46
问题 I want to store information on an android device. What is the best way to store data so that the user is not able to access (write/read) the files. I've looked at Shared preferences and SQLite Database , these seem like they might be viable options. Thanks Fabii 回答1: There's no best way to store secure data as a user with rooted phone will always have access to your data. So the best bet would be to do some kind of Encryption on your secret data to make it useless even if its accessed by

Do I need to store key for CryptUnprotectData and CryptProtectData?

梦想与她 提交于 2019-12-13 02:10:01
问题 DPAPI has 2 functions: CryptUnprotectData and CryptProtectData . I read They do the encryption or decryption by using a session key that the function creates by using the user's logon credentials. Does that mean that I do not need store this key anywhere and they will created when I want encrypt or decrypt data? Also I found An important point to remember is that DPAPI merely applies cryptographic protection to the data. It does not store any of the protected data; therefore applications

The best way to save Configuration data in Xamarin.Forms based app?

雨燕双飞 提交于 2019-12-12 23:10:54
问题 I am now working on an Xamarin.Forms based app, and have few questions about this. Is there a best way for me to just save some configuration data? As I am using an MVVM based app in like this private bool _isActive; public bool IsActive { get { return _isActive; } set { _isActive = value; RaisePropertyChanged(nameof(IsActive)) } } I wanted to save the "IsActive" value when use it other time I load my app. So is there a best way for me to do this? 回答1: I would currently advise against using

Using IRPs for I/O on device object returned by IoGetDeviceObjectPointer()

て烟熏妆下的殇ゞ 提交于 2019-12-12 23:06:44
问题 Can one use IoCallDriver() with an IRP created by IoBuildAsynchronousFsdRequest() on a device object returned by IoGetDeviceObjectPointer()? What I have currently fails with blue screen (BSOD) 0x7E (unhandled exception), which when caught shows an Access Violation (0xc0000005). Same code worked when the device was stacked (using the device object returned by IoAttachDeviceToDeviceStack()). So what I have is about the following: status = IoGetDeviceObjectPointer(&device_name, FILE_ALL_ACCESS,