Build 1.0_r1(from source)

android.webkit.gears
Class HtmlDialogAndroid

java.lang.Object
  extended by android.webkit.gears.HtmlDialogAndroid

public class HtmlDialogAndroid
extends Object

Utility class to call a modal HTML dialog on Android


Constructor Summary
HtmlDialogAndroid()
           
 
Method Summary
static boolean bindToService(Context context, ServiceConnection serviceConnection)
          Bind to the GearsDialogService.
 String readHTML(String filePath)
          Read the HTML content from the disk
static void setGearsDialogService(IGearsDialogService service)
           
 String showDialog(Context context, String htmlFilePath, String arguments)
          Open an HTML dialog synchronously and waits for its completion.
 void synchronousBindToService(Context context)
          Bind to the GearsDialogService synchronously.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlDialogAndroid

public HtmlDialogAndroid()
Method Detail

setGearsDialogService

public static void setGearsDialogService(IGearsDialogService service)

bindToService

public static boolean bindToService(Context context,
                                    ServiceConnection serviceConnection)
Bind to the GearsDialogService.


synchronousBindToService

public void synchronousBindToService(Context context)
Bind to the GearsDialogService synchronously. The service is started using our own defaultServiceConnection handler, and we wait until the handler notifies us.


readHTML

public String readHTML(String filePath)
Read the HTML content from the disk


showDialog

public String showDialog(Context context,
                         String htmlFilePath,
                         String arguments)
Open an HTML dialog synchronously and waits for its completion. The dialog is accessed through the GearsDialogService provided by the Android Browser. We can be called either directly, and then gearsDialogService will not be set and we will bind to the service synchronously, and unbind after calling the service, or called indirectly via GearsPluginSettings. In the latter case, GearsPluginSettings does the binding/unbinding.


Build 1.0_r1(from source)

Please submit a feedback, bug or feature