Back to project page android-gear.
The source code is released under:
MIT License
If you think the Android project android-gear listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.androidgear.core.dialog; /* w w w. j a v a 2 s . c o m*/ public abstract class DialogFactory { private static DialogFactory factory; public static void prepare(Class<? extends DialogFactory> clazz) { try { factory = clazz.newInstance(); } catch (Exception e) { throw new RuntimeException(e); } } public static DialogFactory instance() { return factory; } protected abstract Dialog buildInstance(); public static Dialog newDialog() { return factory.buildInstance(); } }