System directories
| Method | Result |
|---|---|
| Environment.getDataDirectory() | /data |
| Environment.getDownloadCacheDirectory() | /cache |
| Environment.getRootDirectory() | /system |
External storage directories
| public class Customer | |
| { | |
| public CustomerName Name { get; private set; } | |
| public Email Email { get; private set; } | |
| public Customer(CustomerName name, Email email) | |
| { | |
| if (name == null) | |
| throw new ArgumentNullException("name"); | |
| if (email == null) |
| public class Customer | |
| { | |
| public string Name { get; private set; } | |
| public string Email { get; private set; } | |
| public Customer(string name, string email) | |
| { | |
| // Validate name | |
| if (string.IsNullOrWhiteSpace(name) || name.Length > 50) | |
| throw new ArgumentException("Name is invalid"); |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <resources> | |
| <!-- Totally "960 Colors" | |
| Author : VenomVendor | |
| Refer : http://stackoverflow.com/q/3769762/1008278 | |
| Reference : http://www.computerhope.com/htmcolor.htm , http://www.color-hex.com/color-names.html | |
| --> | |
| <!-- Colors arranged from Black to White, i.e., #000000 to #FFFFFF --> | |
| <color name="black">#000000</color> |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <resources> | |
| <!-- Totally "960 Colors" | |
| Author : VenomVendor | |
| Refer : http://stackoverflow.com/q/3769762/1008278 | |
| Reference : http://www.computerhope.com/htmcolor.htm , http://www.color-hex.com/color-names.html | |
| --> | |
| <!-- Colors arranged from A -Z --> | |
| <color name="air_force_blue">#5D8AA8</color> |
System directories
| Method | Result |
|---|---|
| Environment.getDataDirectory() | /data |
| Environment.getDownloadCacheDirectory() | /cache |
| Environment.getRootDirectory() | /system |
External storage directories