查一下 api 就可以看到了 , 话说 LZ 没有代码自动提示吗 ;一般传入上下文对象即可 this, 或者 getApplicationContext();可以传入 下面两种参数 :
-- AlertDialog.Builder(Context context)
Constructor using a context for this builder and the AlertDialog it creates.
-- AlertDialog.Builder(Context context, int theme)
Constructor using a context and theme for this builder and the AlertDialog it creates.
-- AlertDialog.Builder(Context context)
Constructor using a context for this builder and the AlertDialog it creates.
-- AlertDialog.Builder(Context context, int theme)
Constructor using a context and theme for this builder and the AlertDialog it creates.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货