vartanjean / php-for-android

Automatically exported from code.google.com/p/php-for-android
0 stars 0 forks source link

Not working on Xoom/Android 3.0 Honeycomb #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This might be "won't fix", but figured I'd log it as a ticket in case there's 
interest. I don't know my way around in C, but I'm happy to help you debug 
further if you tell me some things to try!

Specs:
Model number: Xoom
Android version: 3.0.1
Baseband version: N_02.0F.00R
Kernel version: 2.6.36.3-g2a65edc android-build@apa28 #1

I've successfully downloaded and installed both SLA4 version 4 and PHP For 
Android 0.3 (sl4a_r2).

When I start up SLA4 and attempt to run hello_world.php, the console yields the 
following:

FIX ME! implement getprotobyname() bionic/libc/bionic/stubs.c:378
FIX ME! implement getprotobyname() bionic/libc/bionic/stubs.c:378

Then, instead of being prompted for my name as shown in the screencast, I 
instead just get a note that says:

"Process has exited. Close terminal? [ Yes / No ]"

Original issue reported on code.google.com by androida...@gmail.com on 16 Apr 2011 at 2:27

GoogleCodeExporter commented 9 years ago
Oh. And repeat that for any of the other scripts.

Original comment by androida...@gmail.com on 16 Apr 2011 at 2:28

GoogleCodeExporter commented 9 years ago
FIX ME! implement getprotobyname() bionic/libc/bionic/stubs.c:378 is a known 
issue, ignore that.

About "Process has exited. Close terminal? [ Yes / No ]"... Have you tried with 
other interpreters SL4A provides like Python or Ruby? Same error?

Original comment by ktulur on 16 Apr 2011 at 8:44

GoogleCodeExporter commented 9 years ago
I have the same error on COBY MID 7015 Tablet PC with android 2.1. I can not 
use PHP and do not know what happend.

Original comment by iena...@gmail.com on 16 Apr 2011 at 2:10

GoogleCodeExporter commented 9 years ago
I need to know if you have the same issue with Python and Ruby. If so, escalate 
the issue to SL4A project.

Thanks in advance.

Original comment by ktulur on 16 Apr 2011 at 2:52

GoogleCodeExporter commented 9 years ago
I got exactly the same behaviour when I tried out phpforandroid on my ASUS 
Transformer. I tried installing sl4a from their site and then adding php as an 
interpreter, I also then tried downloading & installing everything from the 
phpforandroid.net site all with the same "Process has exited. Close terminal? [ 
Yes / No ]" result.

Installation and running of python scripts worked without any problem. I have 
had phpforandroid working on my htc desire before so I am familiar with how it 
works.

Eventually I found a solution:- first click on PFAfExample1.php or 
PFAfWhereAmI.php and run them in the terminal (the first icon that pops up when 
you click). These should popup dialog boxes and run.

After running one of those two scripts phpinfo.php starts working as does 
horoscope.php and hello_world.php. My guess is that the PFAf.... scripts 
somehow correctly trigger the php interpreter, while the other php scripts do 
not. Has the syntax for setup of php changed?

The scripts that do not work until you run the PFAfExample1.php script all 
begin as follows:-

<?php
require_once("Android.php");

Original comment by sihor...@gmail.com on 13 Jul 2011 at 12:03

GoogleCodeExporter commented 9 years ago
This might helps someone. Pay close attention to the last line:

getInput(  String title[optional, default SL4A Input]: title of the input box,  
String message[optional, default Please enter value:]: message to display       
above the input box)  

Queries the user for a text input.  

Deprecated in r3! Please use dialogGetInput instead.

Original comment by mchl.mor...@gmail.com on 28 Nov 2012 at 8:23

GoogleCodeExporter commented 9 years ago
Uhm, weird, I'm preparing a new release targeting sl4a r6, I'll review the 
scripts.

Original comment by ktulur on 29 Nov 2012 at 9:30