package Ġcom . gmail . uw rie gel . tasks . google Ċ Ċ import Ġandroid . content . Context Ċ import Ġcom . google . api . client . googleapis . extensions . android . gms . auth . Google Account Credential Ċ import Ġcom . google . api . client . util . Exponent ial Back Off Ċ import Ġcom . google . api . services . tasks . Tasks Scopes Ċ import Ġjava . util .* Ċ Ċ /** Ċ Ġ* ĠCreated Ġby Ġur ie g Ġon Ġ 0 4 . 0 6 . 2 0 1 7 . Ċ Ġ*/ Ċ fun Ġcreate Credential ( context : ĠContext , Ġaccount Name : ĠString ): ĠGoogle Account Credential Ġ{ ĊĠĠĠ Ġval Ġcredential Ġ= ĠGoogle Account Credential . using OAuth 2 ( context , ĠArrays . asList (* array Of ( Tasks Scopes . TASK S ))). set Back Off ( Exponent ial Back Off ()) ĊĠĠĠ Ġcredential . selected AccountName Ġ= Ġaccount Name ĊĠĠĠ Ġreturn Ġcredential Ċ } Ċ