All Questions
1,646 questions
0
votes
0
answers
27
views
Communications link failure On Android studio
Im learning sql for my school project and i have a problem
Logcat:
ViewPostIme pointer 0
ViewPostIme pointer 1
password :password63826 username:tesr1234
Communications link failure //The Problem
The ...
0
votes
0
answers
32
views
Android connect with Mysql
I am a beginner in Android App development and I am currently trying to establish a connection between my Android Studio Java project and my MySQL database. The MySQL database is running perfectly on ...
0
votes
0
answers
65
views
Error connecting MySQL databases in Android app: Communications link failure
I'm trying to connect the MySQL database to Android Studio, and I'm encountering an error.
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any ...
0
votes
0
answers
92
views
Connection of android studio project to MySQL database server
I tried ro run my android studio project on Localhost server
package xyz.clicking.scenic.testymobd;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;...
0
votes
0
answers
25
views
Getting Exception 'com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure' [duplicate]
I'm trying to connect an Android app with a MySQL database using JDBC. I'm getting a Communication Link failure exception. I have added the MySQL JDBC connector jar file as a library and the MySQL ...
0
votes
1
answer
50
views
How i can get the current date from java android application and store it in mysql DB if phone language arabic or english
In my Android app I need to get the current date and insert it into MySQL DB. The issue is that when the phone language is English, everything is OK, but if it is in Arabic, the date is inserted as ...
0
votes
1
answer
93
views
How can I fix my JSON loading problem on my Android app?
My application keeps loading and doesn't go anywhere, the error code is
I think it was the JSON, but I don't really know. I'm a beginner.
progressDialog.show();
StringRequest request = new ...
0
votes
0
answers
27
views
How do I solve this in android register code [duplicate]
After logging in with email and password, the user tries to add space. When I fill out the form, an error message appears like this" <br/><b> Warning<b>: Undefined Array Key&...
-1
votes
1
answer
36
views
What certificate do I need and how to create it [duplicate]
I want to use a php API to connect to my MySql database but I get the following error all the time:
javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for ...
0
votes
1
answer
103
views
Android: How to automatically refresh chat screen when new message in MySQL Database detected
I am working on a android(java) chat app using MYSQL as database. Is there any way to automatically refresh and update the chat screen upon receiving new messages in database without having to reload ...
0
votes
0
answers
45
views
I can't figure out how to connect Java application an Android with database MySQL
I want to make an Android app. Please tell me how to create and configure a configuration class to send queries to the database. The database is located in the cloud. What should this class look like?
...
1
vote
1
answer
34
views
How to get spinner selected item's line number?
I have to get the line number on the item selected in my spinner when i click on the save button. i need the line number not the text.
uni = universite.getSelectedItem().toString();
this code is ...
2
votes
1
answer
597
views
Room Java - Is it possible to run transaction in interface?
I'm using room framework in my Android Studio project. I'm trying to create a transaction inside of an interface. I already read documentation from here: https://developer.android.com/reference/...
0
votes
0
answers
86
views
retrofit get boolean from mysql
I have a problem with retrofit in my android app (java) retrieving a boolean field from php/mysql webservice.
In my java model, I have a boolean field selected, declared as:
@SerializedName("...
0
votes
0
answers
41
views
Android Studio can not connect and MYSQL keep stopping due to internet connection permissions
I am new with Android Studio. My aim is really basic but it was struggled me too much. When I move my code with normal main function (with Java Sysout print method). But when the order is Android ...