System directories
| Method | Result |
|---|---|
| Environment.getDataDirectory() | /data |
| Environment.getDownloadCacheDirectory() | /cache |
| Environment.getRootDirectory() | /system |
External storage directories
System directories
| Method | Result |
|---|---|
| Environment.getDataDirectory() | /data |
| Environment.getDownloadCacheDirectory() | /cache |
| Environment.getRootDirectory() | /system |
External storage directories
| <?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> |
| <?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> |
| 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"); |
| 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) |
| [HttpPost] | |
| public HttpResponseMessage CreateCustomer(string name, string billingInfo) | |
| { | |
| Result<BillingInfo> billingInfoResult = BillingInfo.Create(billingInfo); | |
| Result<CustomerName> customerNameResult = CustomerName.Create(name); | |
| return Result.Combine(billingInfoResult, customerNameResult) | |
| .OnSuccess(() => _paymentGateway.ChargeCommission(billingInfoResult.Value)) | |
| .OnSuccess(() => new Customer(customerNameResult.Value)) | |
| .OnSuccess( |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using MonoTouch.MessageUI; | |
| using MonoTouch.UIKit; | |
| namespace MyApp | |
| { | |
| public interface ICanCleanUpMyself | |
| { |
| public class HtmlBuilder { | |
| public static final String COLOR = "[color]"; | |
| public enum Type{ | |
| BOLD("strong"), | |
| ITALIC("em"), | |
| COLOR("font color=\"#"+ HtmlBuilder.COLOR + "\""), | |
| SMALL("small") | |
| ; | |
| public final String stringType; |
| package com.liberorignanese.android.gist; | |
| import android.graphics.Canvas; | |
| import android.graphics.Paint; | |
| import android.text.style.ReplacementSpan; | |
| /** | |
| * Created by Libero Rignanese. | |
| */ |
| public class ExcellentAdventure { | |
| @Retention(SOURCE) | |
| @StringDef({ERA_BC, ERA_AD}) | |
| public @interface Era { | |
| } | |
| public static final String ERA_BC = "BC"; | |
| public static final String ERA_AD = "AD"; |