Category : android

I’m trying to execute php binary with some workarround. I keep getting "No such file or directory" exception even do my executable does exist. processBuilder = new ProcessBuilder( php+ " -r ‘$phar = new Phar(""+filePath+""); $phar->extractTo("/sdcard/Android/data/com.kpwnapps.pmmpplugins/files/PocketMine-MP/Extracted");’""); processbuilder.start(); php is getApplicationContext().nativeLibraryDir + "/libphp.so" Sourc..

Read more

This is server-side code which is written is PHP. It works well on staging env. But whenever we published android app on play store, FCM topics stop working. ** Normal firebase-messaging works well even after releasing app on play store. Only problem with FCM topics** public function sendNotificationTopic($topicName, $notification) { $url = ‘https://fcm.googleapis.com/fcm/send’; $fields = ..

Read more

How to make a session to store the user id when logging into an android application to use in other classes later? any help i appreciate, please. I dont know if have another way for pick Id for use later ReadLogin.php <?php include "../Connection.php"; $sql_read="SELECT * FROM patient "; $data= $PDO->query($sql_read); $result = array(); while($c ..

Read more

I am trying to develop an android app with the help of NanoHttpD library that locally runs a PHP server. By default, in index.html, I want to place a webpage that can be used to directly test raw php code entered by the user. Something like this https://www.w3schools.com/php/phptryit.asp?filename=tryphp_compiler. Is there any simple way I can ..

Read more

I’m creating an android app that applies CRUD but I cannot understand how to code the update structure from PHP into databases. I’m getting update success but in my database, nothing happens. mainactivity.class package com.example.loginregister; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.os.Looper; import android.view.View; import android.widget.Button; import android.widget.ProgressBar; import android.widget.TextView; import android.widget.Toast; ..

Read more