protected internal override void onCreate(android.os.Bundle savedInstanceState) { base.onCreate(savedInstanceState); android.os.Bundle extras = getIntent().getExtras(); if (extras == null) { finish(); return; } mNumDeletes = extras.getLong("numDeletes"); mAccount = (android.accounts.Account)extras.getParcelable("account"); mAuthority = extras.getString("authority"); mProvider = extras.getString("provider"); // the order of these must match up with the constants for position used in onItemClick java.lang.CharSequence[] options = new java.lang.CharSequence[] { getResources(). getText([email protected][email protected]_really_delete), getResources().getText( [email protected][email protected]_undo_deletes), getResources().getText([email protected] [email protected]_do_nothing) }; android.widget.ListAdapter adapter = new android.widget.ArrayAdapter<java.lang.CharSequence >(this, android.R.layout.simple_list_item_1, android.R.id.text1, options); android.widget.ListView listView = new android.widget.ListView(this); listView.setAdapter(adapter); listView.setItemsCanFocus(true); listView.setOnItemClickListener(this); android.widget.TextView textView = new android.widget.TextView(this); java.lang.CharSequence tooManyDeletesDescFormat = getResources().getText([email protected] [email protected]_too_many_deletes_desc); textView.setText(java.lang.CharSequenceProxy.Wrap(string.Format(tooManyDeletesDescFormat .ToString(), mNumDeletes, mProvider, mAccount.name))); android.widget.LinearLayout ll = new android.widget.LinearLayout(this); ll.setOrientation(android.widget.LinearLayout.VERTICAL); android.widget.LinearLayout.LayoutParams lp = new android.widget.LinearLayout.LayoutParams (android.view.ViewGroup.LayoutParams.MATCH_PARENT, android.view.ViewGroup.LayoutParams .WRAP_CONTENT, 0); ll.addView(textView, lp); ll.addView(listView, lp); // TODO: consider displaying the icon of the account type // AuthenticatorDescription[] descs = AccountManager.get(this).getAuthenticatorTypes(); // for (AuthenticatorDescription desc : descs) { // if (desc.type.equals(mAccount.type)) { // try { // final Context authContext = createPackageContext(desc.packageName, 0); // ImageView imageView = new ImageView(this); // imageView.setImageDrawable(authContext.getResources().getDrawable(desc.iconId)); // ll.addView(imageView, lp); // } catch (PackageManager.NameNotFoundException e) { // } // break; // } // } setContentView(ll); }
public virtual void setSyncAutomatically(android.accounts.Account account, string providerName, bool sync) { throw new System.NotImplementedException(); }
public virtual void requestSync(android.accounts.Account account, string authority , android.os.Bundle extras) { throw new System.NotImplementedException(); }
public virtual void initialize(android.accounts.Account account, string authority ) { throw new System.NotImplementedException(); }
public abstract void startSync(android.content.ISyncContext arg1, string arg2, android.accounts.Account arg3, android.os.Bundle arg4);
public abstract void onPerformSync(android.accounts.Account arg0, android.os.Bundle arg1, java.lang.String arg2, android.content.ContentProviderClient arg3, android.content.SyncResult arg4);
private void removeAuthorityLocked(android.accounts.Account account, string authorityName , bool doWrite) { throw new System.NotImplementedException(); }
private android.content.SyncStorageEngine.AuthorityInfo getAuthorityLocked(android.accounts.Account accountName, string authorityName, string tag) { throw new System.NotImplementedException(); }
public virtual android.util.Pair <long, long> getBackoff(android.accounts.Account account, string providerName) { throw new System.NotImplementedException(); }
public virtual void setIsSyncable(android.accounts.Account account, string providerName , int syncable) { throw new System.NotImplementedException(); }
internal AuthorityInfo(android.accounts.Account account, string authority, int ident ) { throw new System.NotImplementedException(); }
internal AccountInfo(android.accounts.Account account) { throw new System.NotImplementedException(); }
public PeriodicSync(android.accounts.Account account, string authority, android.os.Bundle extras, long period) { throw new System.NotImplementedException(); }
public abstract void updateCredentials(android.accounts.IAccountManagerResponse arg1 , android.accounts.Account arg2, string arg3, bool arg4, android.os.Bundle arg5);
public abstract void setUserData(android.accounts.Account arg1, string arg2, string arg3);
public virtual bool isSyncPending(android.accounts.Account account, string authority ) { throw new System.NotImplementedException(); }
public virtual void setBackoff(android.accounts.Account account, string providerName , long nextSyncTime, long nextDelay) { throw new System.NotImplementedException(); }
private android.content.SyncStorageEngine.AuthorityInfo getOrCreateAuthorityLocked (android.accounts.Account accountName, string authorityName, int ident, bool doWrite ) { throw new System.NotImplementedException(); }
public virtual long getDelayUntilTime(android.accounts.Account account, string providerName ) { throw new System.NotImplementedException(); }
internal PendingOperation(android.accounts.Account account, int source, string authority , android.os.Bundle extras, bool expedited) { throw new System.NotImplementedException(); }
private void updateOrRemovePeriodicSync(android.accounts.Account account, string providerName, android.os.Bundle extras, long period, bool add) { throw new System.NotImplementedException(); }
public abstract void initialize(android.accounts.Account arg1, string arg2);
public virtual void addPeriodicSync(android.accounts.Account account, string providerName , android.os.Bundle extras, long pollFrequency) { throw new System.NotImplementedException(); }
public virtual void startSync(android.content.ISyncContext syncContext, string authority , android.accounts.Account account, android.os.Bundle extras) { throw new System.NotImplementedException(); }
public virtual void removePeriodicSync(android.accounts.Account account, string providerName , android.os.Bundle extras) { throw new System.NotImplementedException(); }
public virtual global::android.accounts.AccountManagerFuture confirmCredentials(android.accounts.Account arg0, android.os.Bundle arg1, android.app.Activity arg2, android.accounts.AccountManagerCallback arg3, android.os.Handler arg4) { global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv; if (!IsClrObject) { return(global::MonoJavaBridge.JavaBridge.WrapIJavaObject <global::android.accounts.AccountManagerFuture>(@__env.CallObjectMethod(this.JvmHandle, global::android.accounts.AccountManager._confirmCredentials78, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg3), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg4))) as android.accounts.AccountManagerFuture); } else { return(global::MonoJavaBridge.JavaBridge.WrapIJavaObject <global::android.accounts.AccountManagerFuture>(@__env.CallNonVirtualObjectMethod(this.JvmHandle, global::android.accounts.AccountManager.staticClass, global::android.accounts.AccountManager._confirmCredentials78, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg3), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg4))) as android.accounts.AccountManagerFuture); } }
public virtual android.content.SyncStorageEngine.AuthorityInfo getOrCreateAuthority (android.accounts.Account account, string authority) { throw new System.NotImplementedException(); }
public virtual void cancelSync(android.accounts.Account account, string authority ) { throw new System.NotImplementedException(); }
public virtual long insertStartSyncEvent(android.accounts.Account accountName, string authorityName, long now, int source) { throw new System.NotImplementedException(); }
public virtual java.util.List <android.content.PeriodicSync> getPeriodicSyncs(android.accounts.Account account, string providerName) { throw new System.NotImplementedException(); }
public virtual android.content.SyncStatusInfo getStatusByAccountAndAuthority(android.accounts.Account account, string authority) { throw new System.NotImplementedException(); }