Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S2.02-Networking Exercise Solution- inputstream not working #217

Open
yaad96 opened this issue Aug 11, 2020 · 1 comment
Open

S2.02-Networking Exercise Solution- inputstream not working #217

yaad96 opened this issue Aug 11, 2020 · 1 comment

Comments

@yaad96
Copy link

yaad96 commented Aug 11, 2020

even from the solution code,
try {
Log.d("MAIN_ACTIVITY_INSIDETRY", "0");
InputStream in = urlConnection.getInputStream();

        Log.d("MAIN_ACTIVITY_INSIDETRY", "1");

---------------------------------//
The second debug information is not even getting logged. There is some issue with InputStream i guess. did anyone solve it?
#####The same problem persists throughtout the next solutions too.... even in the final solution if i run it it show an error has occured please refresh.....

@jafewe
Copy link

jafewe commented Nov 6, 2020

Hi,
I have the same problem. Simply uninstall the app on the emulator and install it again.

I guess that the added permission is not automatically recognized. Maybe it also helps to increase the versionName and versionCode in app / build.gradle, but I haven't tried that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants