English | Site Directory

Android - An Open Handset Alliance Project

android.content
public class

android.content.SyncContext

java.lang.Object
android.content.SyncContext

Class that contains methods for SyncAdapters and ContentProviders to interact with the Sync UI.

Summary

Public Methods

        int  runActivity(Intent intent, Map extrasOut)
Start the activity for "intent" and wait for the result.
        void  setStatusText(String text)
Methods inherited from class java.lang.Object

Details

Public Methods

public int runActivity(Intent intent, Map extrasOut)

Start the activity for "intent" and wait for the result.

This method will block until the activity is finished, so you must be very careful not to call it with any locks held. You could easily deadlock the system.

Be sure to check the return result against Activity.RESULT_CANCELED, in case they cancelled via your UI.

Returns

  • Returns the resultCode from the activity, and if extrasOut is not null, it fils it in with the extras result of the activity.

public void setStatusText(String text)

Build m5-rc15i - 10 Jun 2008 13:54