Java Code Examples for android.os.bundle#getClassLoader()

The following examples show how to use android.os.bundle#getClassLoader() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PluginReceiverIntent.java    From PluginLoader with Apache License 2.0 5 votes vote down vote up
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
@Override
public void setExtrasClassLoader(ClassLoader loader) {
    Bundle extra = getExtras();
    if (extra != null) {
        loader = extra.getClassLoader();
    }
    super.setExtrasClassLoader(loader);
}
 
Example 2
Source File: PluginReceiverIntent.java    From Android-Plugin-Framework with MIT License 5 votes vote down vote up
@Override
public void setExtrasClassLoader(ClassLoader loader) {
    if (Build.VERSION.SDK_INT > 11) {
        Bundle extra = getExtras();
        if (extra != null) {
            loader = extra.getClassLoader();
        }
    }
    super.setExtrasClassLoader(loader);
}