![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android遇到的坑
闲散自然
主要从事安卓开发。
展开
-
Android:动态创建的WebView加载H5需要弹窗时,无法弹窗
Android:动态创建的WebView加载H5需要弹窗时,无法弹窗?创建WebView时传入的是Application的Context对象。修改为Activity的Context对象就正常了。因为UI控件都需要Activity的Context。什么时候用什么Context如图:...原创 2018-04-10 10:22:14 · 2594 阅读 · 0 评论 -
mLogInterceptor.setLevel(HttpLoggingInterceptor.Level.BODY)导致retrofit下载无法响应
mLogInterceptor.setLevel(HttpLoggingInterceptor.Level.BODY);共包含四个级别:NONE、BASIC、HEADER、BODY当设置为BODY时,retrofit 定义下载接口 @Streaming @GET Call<ResponseBody> downloadFile(@Url String fileUrl);...原创 2018-04-11 14:36:09 · 2033 阅读 · 0 评论