tags:

views:

711

answers:

4

Is there anyway to write android applications in PHP?

This page clearly mentions that Android apps should be written in Java. Just wondering if there is another way...

http://developer.android.com/guide/topics/fundamentals.html

+6  A: 

No, you can't. However, if you're so inclined, you could make a web app that checks for the Android browser and only displays on the Andriod. That would make an internet connection required though.

I haven't used the Android myself, but maybe it has Gears support like Chrome does. If so, then you can integrate Gears into the app and have them download it onto their Android.

BraedenP
The browser does have gears.
fiXedd
Well then you can absolutely code an app for Android, as long as you make your app gears-compatible.. Whatever code you let Gears download will run without a connection on the Android, and then if you need to sync with an online service when you connect, you can do that as well.
BraedenP
+1  A: 

If I'm not mistaken Google has built a special framework for Andriod, it uses java syntax and you can import java libraries to it.

But as BraedenP said you can still check for android browser and render a special page for andriod, yet you won't have access to the it's resources(hardware).

Daryl
+1  A: 

Yes, Java is the preferred way, but there are other ways as well:

AngryHacker
Would Quercus run under Android? It's a PHP runtime written in java.
Frank Farmer
+3  A: 

Yes it is. http://phpforandroid.net

ktulur