Warnings Your Apk Is Using Permissions That Require A Privacy Policy: (android.permission.READ_PHONE_STATE)

前端 未结 20 1364
孤独总比滥情好
孤独总比滥情好 2020-12-01 00:53

In manifest not added android.permission.READ_PHONE_STATE. permission.

Why error comes when I upload a new apk version error comes below.

Your app has an apk w

20条回答
  •  青春惊慌失措
    2020-12-01 01:41

    See steb by step and you will understood

    public static String getVideoTitle(String youtubeVideoUrl) {
            Log.e(youtubeVideoUrl.toString() + " In GetVideoTitle Menu".toString() ,"hiii" );
            try {
    
                if (youtubeVideoUrl != null) {
                    URL embededURL = new URL("https://www.youtube.com/oembed?url=" +
                            youtubeVideoUrl + "&format=json"
                    );
                    Log.e(youtubeVideoUrl.toString() + " In EmbedJson Try Function ".toString() ,"hiii" );
                    Log.e(embededURL.toString() + " In EmbedJson Retrn value ".toString() ,"hiii" );
                    Log.e(new JSONObject(IOUtils.toString(embededURL)).getString("provider_name").toString() + " In EmbedJson Retrn value ".toString() ,"hiii" );
    
                    return new JSONObject(IOUtils.toString(embededURL)).getString("provider_name").toString();
                }
            } catch (Exception e) {
                Log.e(" In catch Function ".toString() ,"hiii" );
    
                e.printStackTrace();
            }
            return null;
        }
    

提交回复
热议问题