On iOS I use these lines of code to store a large String (JSon)... How can I do the same on Android? What is a file place to put that string? Thanks
NSArray *paths = NSSearchPathForDirectoriesInDomains
(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
//make a file name to write the data to using the
//documents directory:
NSString *fullFileName = [NSString stringWithFormat:@"%@/subscriptions", documentsDirectory];
[dataReply writeToFile:fullFileName atomically:NO];
And for save directly the array? Like this?
fullFileName = [NSString stringWithFormat:@"%@/specialElements", documentsDirectory];
[NSKeyedArchiver archiveRootObject:specialElements toFile:fullFileName];
specialElements is a NSMutableArray