String URi = "android.resource://" + context.getApplicationContext().getPackageName() + "/"; String url=URi+R.mipmap.spgz;