I use appcompat v22.1.0 in my App and use Toolbar. Everything was fine when I use Theme.AppCompat.Light.NoActionBar. When I start implement AlertDialog
This work for me... after read several answer was...
Change my import like this:
import android.app.AlertDialog;
instead of
import android.support.v7.app.AlertDialog;
this give error Unable to add window -- token null is not for an application... so I change the context of the builder from
AlertDialog.Builder builder = new
AlertDialog.Builder(getAplicationContext()); to
AlertDialog.Builder builder = new AlertDialog.Builder(*MainActivity.this*);