Issue 1:
I added the glide-3.6.1.jar and YouTubeAndroidPlayerApi.jar to my project,

Before adding to glide , the youtube player was working clearly, when I added glide, something went wrong and when I try to open my YouTubePlayerFrag, onCreate() method I couldn't inflate my xml.

When I remove the glide, everything return normal.

Issue 2:
How to set background process as 0

http://www.tomsguide.com/faq/id-2316489/limit-background-process-android-device.html

A fragment in activity and execute below.

ImageView imageView=(ImageView)getView().findViewById(view, R.id.attachment);
Glide.with(activity).load(url).asBitmap().into(imageView);

It's everything well. The image view display picture correctly.

But I press home key to exit app and next step enter the other app and exit after launched.

At latest, I return to my app and crash right now.

I try modify

Glide.with(activity).load(url).asBitmap().into(imageView);

to

Glide.with(fragment).load(url).asBitmap().into(imageView);

It still crash again.

I comment

//Glide.with(activity).load(url).asBitmap().into(imageView);

and run the above flow. It is everything well.

My device is LG G3 Android 5.0.1

It display msg about

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxx.app/com.xxx.app.child.activity.SendMessageActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class fragment
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2305)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2365)
at android.app.ActivityThread.access$800(ActivityThread.java:148)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1283)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5272)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:909)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:704)
Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class fragment
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:763)
at android.view.LayoutInflater.inflate(LayoutInflater.java:482)
at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:249)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:106)
at com.oshare.app.core.ChildActionBarActivity.onCreate(ChildActionBarActivity.java:13)
at android.app.Activity.performCreate(Activity.java:5977)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2258)
... 10 more
Caused by: java.lang.IllegalStateException: Fragment com.oshare.fragment.message.SendMessageFragment did not create a view.
at android.support.v4.app.FragmentManagerImpl.onCreateView(FragmentManager.java:2200)
at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:300)
at android.support.v7.app.AppCompatDelegateImplV7.callActivityOnCreateView(AppCompatDelegateImplV7.java:838)
at android.support.v7.app.AppCompatDelegateImplV11.callActivityOnCreateView(AppCompatDelegateImplV11.java:34)
at android.support.v7.app.AppCompatDelegateImplV7.onCreateView(AppCompatDelegateImplV7.java:826)
at android.support.v4.view.LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView(LayoutInflaterCompatHC.java:44)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:725)
... 19 more