I am using Alarm Manager to Call REST API. But the Problem is when user change System clock time it get triggered immediately. To call REST API Exectly at 9:00 am mandatory. Suppose User change clock …
Tag: java
Usage of GridDB’s set_auto_commit() function
At several points in the documentation of GridDB the auto-commit feature is disabled and instead there are manual commits. I did not manage to find any explanation for this behaviour. It seems that it …
How can JAVA decrypt data which was base64 encoded and RIJNDAEL_256 encryped by PHP?
I need to migrate data from a PHP to a JAVA application. The data has been encrypted using this PHP function: function encrypt($text, $encryptionKey) { return utf8_encode(base64_encode(…
Android / MySQL: Spinner not populate data from MySQL
I have a problem with my code. I already created a spinner that populates from the MySQL database. The PHP code seem not have problem at all since I run the link “localhost/latihan1/menu/php”, the …
Adding clippath information to an image
I’m trying to add a clipping path to a TIFF image. I made one TIFF file with GIMP that contains a clipping path and I can clip my image using it by $img = new Imagick(“./test.tiff”); $img->…
Problem handling data to php with POST method
I’m working on an application that registers users in a database of a domain I have. I developed it using Android Studio, and I’m having some problems handling the users info to the php file using the …
AES Encryption in android and decryption in php and vice versa
I am trying to learn AES by testing my code against https://aesencryption.net. I previously had an error in Base64.encodeBase64String and also Base64.decodeBase64 // encode/decode Base64. So I manipulated Base64 somehow to resolve the error. Now in my app the text is encrypted and decrypted properly, I think. But when I try to encrypt or decrypt the same text server-side (at
Reading floats from binary file javascript
I’m trying to read floats in javascript from a binary file that is created using Java. The file is created in Java using DataOutputStream: The file is retreived by http request and read like this: dataLoaded function: Output: Expecting: The file is sent with php: It seems that somewhere there is a flaw in the conversion but I can’t figure
Get out of a foreach [closed]
My C++ teacher once told me that if I have to use a break to get out of a loop I didn’t think enough about the loop condition. So did she (very good teacher btw) just fail to mention that foreach …
How to give input to java program and continue with execution using PHP?
I want to execute java programs using php code. When i write the below code, the program written in the editor is getting compiled and executed successfully. Note: $output and $check variables contains required input to compile & run But, when I try to execute java programs where we need to input some data to contine with the execution, the