android lint检查出现的问题

    xiaoxiao2025-09-16  72

    1.Missing permissions required by intent Intent.Action_Call:android.permission.CALL_PHONE

    Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + number));

    context.startActivity(intent); 修改为: Intent intent = new Intent(); intent.setAction(Intent.ACTION_CALL); intent.setData(Uri.parse("tel:" + number));

    context.startActivity(intent);

    2.Expected tesource of type styleable

    添加  @SuppressWarnings("ResourceType")

    3.[Accessibility] Missing 'contentDescription' attribute on image 

    添加 android:contentDescription=""  属性

    转载请注明原文地址: https://ju.6miu.com/read-1302708.html
    最新回复(0)