• Register
0 votes

Problem :

I want to print the list of values in ListView from the webpage. I have the following two permission

<uses-permission android:name="android.permission.INTERNET" />

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

But I am troubled by following message:

D/NetworkSecurityConfig: No Network Security Config specified, using platform default

I do not know what it means and how can I fix it.

6 5 3
7,540 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I am sharing my local context solution.

I have the Docker/Lando instance which provides me an API from the Lumen Restful app, local domains are not working but when I tried to check my network IP using "ifconfig" in my terminal I was able to access using that IP using below command:

$ ifconfig

You should also try to add the new parameter to your AndroidManifest.xml as given below :


I am using following network_security_config.xml file for my local debugging you can also try using one.

<?xml version="1.0" encoding="utf-8"?>
<network-security-config xmlns:android="http://schemas.android.com/apk/res/android">
            <certificates src="user" overridePins="true"/>

I use the user-permissions as well as below:

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />


If above solution is not working for you then try below one

Add below code:


To your manifest application and check if it works for you:

9 7 4
38,600 points

Related questions

0 votes
1 answer 543 views
Problem : I am getting bellow in Android Studio java.lang.runtimeexception: an error occurred while executing doinbackground()
asked Oct 19, 2019 peterlaw 6.9k points
0 votes
1 answer 20 views
0 votes
1 answer 15 views
Problem: no target specified and no devices found, deploying to emulator.
asked Feb 21 charles mathews 3.9k points
0 votes
1 answer 10 views
no default engine was specified and no extension was provided.
asked Feb 16 ArifulIslam 7.5k points
0 votes
1 answer 371 views
0 votes
1 answer 311 views
Problem: I have fundamental knowledge of node.js, mongodb and expressjs. Currently I am trying to use the expressjs only for a backend. I also want to store data into a mongodb using the express. All of my view part is completely done in zend. I do not need the view to be in ... is how I have tried to redirect it to index.js app.get("/index",function(req,res){ console.log("route to index"); });
asked Aug 13, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 75 views
Problem : I want to open a program for the first time on Windows XP Pro that uses PostgreSQL 9. I am facing an error message that says : A problem was encountered while trying to log into or create the production database. Details: [Microsoft][ODBC Driver Manager] ... = MSDASQL". Changing this entry alters a error message I get to "Provider cannot be found, it may not be properly installed".
asked Jan 17, 2020 jwilliam 3.9k points
0 votes
1 answer 76 views
Problem : I am facing following PostgreSQL 9 error [microsoft][odbc driver manager] data source name not found and no default driver specified
asked Nov 18, 2019 peterlaw 6.9k points
0 votes
1 answer 8 views
Problem: unable to capture screenshot prevented by security policy.
asked Feb 24 Ethan ross 1.9k points
0 votes
1 answer 9 views
Problem: java.security.cert.certpathvalidatorexception: trust anchor for certification path not found.
asked Feb 19 Lucky Guy 1.4k points