I have a problem with my android application. In Android Studio, everything looks normal since no error appears. The application is supposed to connect to the web server for data recovery. But every time I test the app on my android device or on an emulator, I still have the same message: "Appname can not connect to the server"
So, since I do not see any error on Android studio, I do not know where to look. I tried with the coordinates of two different servers, but still the same message. I have concluded that the problem is not at the level of the connection to the server, but in my code, but where?
If anyone has any suggestion, I'm a taker. If you need to see any file, let me know.
Related
I'm using Retrofit2 in my app and the problem is when my app is starting if app was unable to access internet, app will crash and terminate. so i've fixed this issues with connection checker, but it's only check if internet or wifi is connected or not.
How can i make my app to check http is access-able or not? i want in my app to show server is down for minutes, and stop closing app and make them use offline to get network access again. Like whatsapp when you're offline, you can open app.
Edit 01 : App Gain access to internet, then he want to get access to php file on server, but it's not able to access it, so i want my app check if php file is exist http://simple.com/file.php then continue and show contents, and if it's not exist show a toast message that server is not available now.
I am having difficulty getting Cognito registration and login to work for my app in Android Studio using this sample. When I attempt to log in via the simulator, the app works for a few seconds, then displays an error message: "Unable to execute HTTP request: Unable to resolve host 'cognito-idp.us-east-1.amazonaws.com': No address associated with hostname". This same error is the only error that appears in the console. I have seen similar questions and tried solutions such as checking to ensure my app has the permissions android.permission.INTERNET and android.permission.ACCESS_NETWORK_STATE, but the error persists. It also doesn't seem to be a network issue. I have updated to the latest version of the Android SDK as well as the AWS SDK, and the problem persists.
I currently I have a Cognito user pool set up which works properly for login on the iOS version of my app. Following the instructions in the readme for the sample code, I added an app to my existing user pool, and then copied and pasted the newly generated app client ID and app client secret into AppHelper.java for clientId and clientSecret respectively. I also set userPoolId to the ID listed for my user pool under "pool details" in the Cognito conosle, and cognitoRegion to US East, since this is the region of my user pool. I noticed that there was no need for me to set the pool name, as there was in the iOS version, so I'm wondering if that's something I need to do.
Sorry if this counts as a duplicate, but I wanted to post a question with the exact error message I encountered and the steps I took, and I'm wondering if someone has managed to get this specific sample working and what I should do.
The problem has been resolved, but unfortunately I'm not quite sure what fixed it since I didn't change anything in the code. All I did was install an update, so anyone with a similar problem should probably ensure that all SDKs used in the sample are properly updated, along with the simulator. It's also worth noting that I was using a different network than in my previous tests, so it's possible that it was a network issue after all.
I had the same issue.
The issue occurred when I used a VPN with emulator to test my program. The reason was that the internet connection in the emulator was too slow when connecting through a VPN.
This could also happen if your internet connection is not strong enough.
The solution is, use a real android device to test your code, if your internet connection is not good enough.
More info: https://github.com/aws-amplify/aws-sdk-android/issues/567
I'm trying to access my dev server from a mobile phone in my local network but I always get "connection refused". My app engine application works perfectly on localhost, but I can't access it from another device.
I think that the dev server is listening only on loop interface, but I don't know how to fix it on Netbeans (i'm using Google App Engine plugin).
Any ideas? I have been looking for another questions here but I can't find a fix for Netbeans.
Thanks in advance.
I have read tons of this same advices about connecting two emulators using telnet. For example this one: Connecting 2 Emulator instances In Android
I've made all as it is said and nothing works. I have got server app on emulator 5554 and client app on emulator 5556. They are using ports 6000 server app and 5000 client app. What I want is to communicate when this two emulators are open - in both ways.
At the beginning server app shows her ip, and in client app user have to write this ip. That is whole configuration.
As in mentioned post was said I've written redir add tcp:5000:6000 but nothing works. Also when I write redir add tcp:6000:5000 nothing happen. Those apps don't hear each other. However if server is on other device than everything works fine.
Maybe it is stupid question but can someone guide me through this, because I don't know what am I doing wrong.
I'm trying to connect my android application to the Google App Engine. I followed this google tutorial for a standard example.
My problem is that when I follow the tutorial correctly and I try to execute it, my server doesn't give me back a hello message. In debug mode I discovered that my Async thread that contacts the server just doesn't execute. Any thoughts?
I get a Threadpoolexecutor.runworker popup with source not found.
I'm not sure if this helps, but I noticed I get the same problem only when I have many of the same thread running concurrently.