I created my login script to my Android Application this way: import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.view.View; import android.widget.Button; import android.widget.ProgressBar; import android.widget.TextView; import android.widget.Toast; import com.android.volley.Request; import com.android.volley.Response; import com.android.volley.toolbox.JsonObjectRequest; import com.google.android.material.textfield.TextInputEditText; import com.vishnusivadas.advanced_httpurlconnection.PutData; import org.json.JSONException; import org.json.JSONObject; public class Login extends AppCompatActivity { TextInputEditText textInputEditTextUsername, textInputEditTextPassword; Button buttonLogin; TextView ..
Category : php
I am building a website in php which uses sessions. Sessions work fine on my computer using Chrome, Firefox or Opera, but don’t on my Android phone (with Chrome). To try figuring out what the problem was, I added that code at the top of login page (right before the HTML tag): if (isset($_COOKIE["__Host-SSID"])){ $cookieSSID=$_COOKIE["__Host-SSID"]; ..
I have coded a php multi query to out put a 3×3 array of 1 and 0s. I have a table layout consisting a 3×3 of app:drawableTopCompat="@drawable/nullbadge" as text view. Null badge has an equivalent sized earn badge drawable that I want to stich to base on the query. For example if user has done ..
I have a project written in Laravel. I developed a webview application on android for this project. In the Android webview application, the user login screen appears when the application is opened. After logging in, it chooses a value from the option and goes to the page where I want to get my variable. Here, ..
I am making an application where I have String which behaves like Array. e.g : String name = " "john","kat" "; I was trying to send them in php server(just sending the string wasn’t converting it to array). <?php if($_SERVER[‘REQUEST_METHOD’]==’POST’){ $names=array($_POST[‘name’]); $phones=array($_POST[‘phone’]); // $names = array("Hw", "V"); // $phones = array("656", "646"); array_map(function ($name, $phone) ..
I have develop an app that communicates with my web server via the Volley library. Communication occurs by exchanging strings in POST. My server uses HTTPS, so I think the data being exchanged is safe. But I think it is better to encrypt the data. I searched, also here on stackoverflow, how to encrypt data ..
I’m trying to retrieve data from a database. I need to get multiple fields from the same row. I’m using a key to retrieve data from a single row but I get the following error: org.json.JSONException: Value All of type java.lang.String cannot be converted to JSONObject Here is the code: try { JSONObject jsonObject = ..
I’m trying to retrieve data from a database. It uses a php file as well as another Java class ie. Config.java. I’m using an id which is retrieved from a previous activity using a function. The database table is called students and uses the primary key ‘username’. Here’s the code for my Java class editdata: ..
I am tired to fix this problem any one android studio expert please help me ,how I fix this problem please help me Source: Android..
We are working on a react native app with OAuth 2 authentication. The access token will expire every 1-hour interval and the app wants to reask new access token using the refresh token. Everything is working fine and there are no issues. we are saving access token and refresh token in a secure storage The ..
Recent Comments