@@ -0,0 +1,1997 @@
+/*%0A * Copyright 2018 JessYan%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage me.jessyan.autosize;%0A%0Aimport android.app.Application;%0Aimport android.content.ContentProvider;%0Aimport android.content.ContentValues;%0Aimport android.database.Cursor;%0Aimport android.net.Uri;%0A%0A/**%0A * ================================================%0A * %E9%80%9A%E8%BF%87%E5%A3%B0%E6%98%8E %7B@link ContentProvider%7D %E8%87%AA%E5%8A%A8%E5%AE%8C%E6%88%90%E5%88%9D%E5%A7%8B%E5%8C%96%0A * Created by JessYan on 2018/8/19 11:55%0A * %3Ca href=%22mailto:jess.yan.effort@gmail.com%22%3EContact me%3C/a%3E%0A * %3Ca href=%22https://github.com/JessYanCoding%22%3EFollow me%3C/a%3E%0A * ================================================%0A */%0Apublic class InitProvider extends ContentProvider %7B%0A    @Override%0A    public boolean onCreate() %7B%0A        AutoSizeConfig.getInstance()%0A                .setLog(true)%0A                .init((Application) getContext().getApplicationContext())%0A                .setUseDeviceSize(false);%0A        return true;%0A    %7D%0A%0A    @Override%0A    public Cursor query(Uri uri, String%5B%5D projection, String selection, String%5B%5D selectionArgs, String sortOrder) %7B%0A        return null;%0A    %7D%0A%0A    @Override%0A    public String getType(Uri uri) %7B%0A        return null;%0A    %7D%0A%0A    @Override%0A    public Uri insert(Uri uri, ContentValues values) %7B%0A        return null;%0A    %7D%0A%0A    @Override%0A    public int delete(Uri uri, String selection, String%5B%5D selectionArgs) %7B%0A        return 0;%0A    %7D%0A%0A    @Override%0A    public int update(Uri uri, ContentValues values, String selection, String%5B%5D selectionArgs) %7B%0A        return 0;%0A    %7D%0A%7D%0A

Create InitProvider