protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); servicePosition = Intent.GetIntExtra("Service", 0); if (servicePosition == 1) { GoogleDrive googleDrive = new GoogleDrive(this, "[Client Id]", "", "com.cloudrail.unifiedcloudstorage:/oauth2redirect", "state"); googleDrive.UseAdvancedAuthentication(); service = googleDrive; } else if (servicePosition == 2) { service = new Box(this, "[Client Id]", "[Client Secret]"); } else if (servicePosition == 3) { service = new OneDrive(this, "[Application Id]", "[Application Secret]"); } else if (servicePosition == 4) { service = new Egnyte(this, "[Domain]", "[Client Id]", "[Client Secret]"); } else { Dropbox dropbox = new Dropbox(this, "zsoojeklqxn3zrc", "b8jjaf2d62kbdnf", "https://auth.cloudrail.com/com.cloudrail.unifiedcloudstorage", "state"); dropbox.UseAdvancedAuthentication(); service = dropbox; } serviceValue = servicePosition.ToString(); //If Service exist in Shared Prefence load, it. LoadService(); //Login Method Optional //LoginMethod(); //Get Files / Folder at Path. "/" = root path GetChildrenAtPath("/"); }