Back to project page C2Framework.
The source code is released under:
Apache License
If you think the Android project C2Framework 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 gaia.c2.content.android; //w w w .ja v a 2 s . co m import android.content.Context; import android.os.Bundle; import gaia.c2.content.C2ContentProvider; import gaia.c2.content.QueryHandler; import gaia.c2.content.android.model.Dial; /** * Created by kmr on 4/13/14. */ public class DialContentProvider extends C2ContentProvider { public static final String DIAL_PHONE = "phone-number"; public DialContentProvider(Context androidParentContext) { super(androidParentContext); } @Override public String getMimeType() { return Dial.MIME_TYPE; } @Override public String getAuthority() { return "android.dial"; } @Override public void onCreate() { on("phone", new QueryHandler() { @Override public void handle(String method, Bundle parameters) throws Exception { broadcast(new Dial(parameters.getString(DIAL_PHONE))); } }); } }