【问题标题】:android app using picasso works on samsung galaxy s4 but not on galaxy s8使用毕加索的android应用程序适用于三星galaxy s4,但不适用于galaxy s8
【发布时间】:2018-07-24 08:26:54
【问题描述】:

在我的 firestore db 应用程序中,我通过 URL 地址获取谷歌照片并使用 picasso 显示图像视图。它在我的三星 Galaxy S4 上有效,但在我的三星 S8 上根本不起作用。 相关代码:

setContentView(R.layout.encounters_detail);
txtdt = (TextView)findViewById(R.id.dt);                    
txtdt.setText(model.getDate().toString());
txtencounter= 
(TextView)findViewById(R.id.txt_encounter);
txtencounter.setText(model.getEncounter().
toString();
photourl=(model.getPhotoURL().toString());
String urlString = photourl;
try {
URL myURL = new URL(urlString);
photourl = myURL.toString();
 }catch (Exception e){
 }

 imgvw = (ImageView)findViewById(R.id.image);

 Picasso.with(context).load(photourl).
    fit().into(imgvw);

感谢您的帮助。

【问题讨论】:

  • 两部手机的权限是否相同(尤其是网络权限)?可以在帖子中添加手机的 Android 版本吗?
  • 安卓版 Galaxy s4 5.01, S8 7.0
  • Android 版本 Galaxy s4 5.01, S8 7.0 如何查看权限?我应该在布局显示上正常添加 2 个文本字段。感谢您的帮助。
  • 在调试模式下运行应用程序并调用上述代码时,我在 android studio 控制台中得到了两个不同的响应。对于显示图像的 Galaxy S4:

标签: android picasso samsung-galaxy


【解决方案1】:

【讨论】:

  • 这不能回答问题
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-02-10
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多