Skip to main content

All Questions

Tagged with
0 votes
1 answer
161 views

What does it mean when the logcat shows: system_server E failed to add asset path?

I made an app which uses retrofit to access my localhost server and post data on a user. The code from the app works because I tried it on my virtual device and on my phone with the website https://...
Deusnominus's user avatar
0 votes
0 answers
50 views

Error Found: Java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $

I keep on getting the error from my Android App: Java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $ I was just trying to test a post method from my ...
ecmcieabril's user avatar
1 vote
0 answers
104 views

Sending an image with Retrofit2

I am trying to send an image taken with the cell phone camera and send it later to a server, however I cannot successfully connect my Kotlin code with php. This is my Kotlin code: `import android....
Abraham Santillan Silva's user avatar
0 votes
0 answers
283 views

Android: java.io.FileNotFoundException when trying to upload file to PHP server using retrofit

I want to upload multiple pdf files to my server. I am following this link for this purpose. My code is as following: server_interface.java: public interface server_interface { @Multipart @...
user avatar
0 votes
1 answer
54 views

How to display data in textview automatically when i have finished inputting the ID field?

so i have edittext & textview. edittext for NIK & textview for NAMA. the concept is when I have finished typing the NIK field, then at that moment the name data (NAMA) appears in the textview ...
Farrasta K S's user avatar
-1 votes
1 answer
67 views

I am newbie in Android Studio. I have a task how to display the name automatically when the id / nik field is filled based on data from the database

At this time I'm having trouble writing java code. The concept in this program is when I fill in the NIK field and press the get button, the name (FIELD NAME) will appear automatically based on the ...
Farrasta K S's user avatar
0 votes
2 answers
82 views

How do I write java code, to display the name automatically when after inputting id or number?

based on the image below, I have NIK & NAMA fields. the concept is when I fill in the NIK field then I press the GET button it will display the name(NAMA FIELD) Picture : Menu add Database ...
Farrasta K S's user avatar
-1 votes
2 answers
241 views

$_SESSION variable error in second php file

I have reduced the code in both files to try and figure out what is going on. In my first file loginuser.php, I am running the following lines: <?php session_start(); $_SESSION['user_id'] = "...
dan's user avatar
  • 349
1 vote
1 answer
52 views

in php, how to retrieve an objects array sent by retrofit

In my android app, with retrofit, I want to send an array of objects to my php script with: @FormUrlEncoded @POST(Consts.BACKUP_SCRIPT_UP) Call<Integer> backupUpload( @Field("...
Chris972's user avatar
  • 111
0 votes
1 answer
32 views

Is there any way to send the 8012 number as an error instead of printing it using PHP?

Inside MySQL, There is a Users table with three columns like this: id (int) name (char) wallet_balance (int) hasMembership (tinyint) 1 user1 125 0 2 user2 23 0 3 user3 986 0 Let's suppose the ...
Taha Sami's user avatar
  • 1,649
0 votes
1 answer
115 views

How do I fetch a JSON array from PHP to my java code?

My JSON response is like this: ["item1","item2",...] Now, I want to add each of the array items into my spinner: @Override public void onResponse(Call<String> call, Response&...
user avatar
0 votes
1 answer
3k views

JSON malformed exception (Android Kotlin Retrofit PHP MySQL)

I am developing an app with Kotlin-PHP-MySql. I will be appreciated if someone has an idea why I get this exception "com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) ...
rahman kalınbaçoğlu's user avatar
0 votes
1 answer
93 views

Cannot fetch JSON using retrofit in Android

I have set up a XAMPP server on a virtual machine, and I've set up a PHP code to return a very simple JSON object, the code is in android_connect/get_all_products <?php // array for JSON response $...
charbel karam's user avatar
0 votes
1 answer
750 views

Unable To Insert Data From Android To Mysql Using Kotlin Retrofit [duplicate]

I'm trying to insert data from Android to Mysql. The problem I'm getting is that the data that I input from EditText on the Android app won't send to the database I'm using Retrofit as HTTP handler ...
Jugs's user avatar
  • 57
0 votes
1 answer
71 views

Posting data to my online mysql from android

I have an e-commerce app where i need to upload the order after being confirmed , i have set up my sql which is hosted on 000webhost , i'm trying to post data into this online db but i didn't get to ...
Taki's user avatar
  • 3,620

15 30 50 per page
1
2 3 4 5
9