You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
24 lines
657 B
Java
24 lines
657 B
Java
package android.content;
|
|
|
|
import android.content.pm.PackageParser;
|
|
|
|
public class ContentProvider {
|
|
|
|
static void createContentProviders() throws Exception {
|
|
for (PackageParser.Provider provider_parsed : Context.pkg.providers) {
|
|
String providerName = provider_parsed.className;
|
|
System.out.println("creating " + providerName);
|
|
Class<? extends ContentProvider> providerCls = Class.forName(providerName).asSubclass(ContentProvider.class);
|
|
ContentProvider provider = providerCls.getConstructor().newInstance();
|
|
provider.onCreate();
|
|
}
|
|
}
|
|
|
|
public boolean onCreate() {return false;}
|
|
|
|
public Context getContext() {
|
|
return new Context();
|
|
}
|
|
|
|
}
|