O SlideShare utiliza cookies para otimizar a funcionalidade e o desempenho do site, assim como para apresentar publicidade mais relevante aos nossos usuários. Se você continuar a navegar o site, você aceita o uso de cookies. Leia nosso Contrato do Usuário e nossa Política de Privacidade.
O SlideShare utiliza cookies para otimizar a funcionalidade e o desempenho do site, assim como para apresentar publicidade mais relevante aos nossos usuários. Se você continuar a utilizar o site, você aceita o uso de cookies. Leia nossa Política de Privacidade e nosso Contrato do Usuário para obter mais detalhes.
What about you? Who here created a mobile application?
Flash Builder for PHP and Mobile development
Flash Builder/Flex with PHP on Mobile Devices<br />Kent Mitchell | Sr. Product Manager | Zend<br />Mihai Corlan | Developer Evangelist | Adobe<br />
Zend & Adobe<br />PHP is the perfect back end for Mobile<br />Highly scalable & Light wieght<br />Proven technology – Over 35% of the web runs PHP today<br />Abode is the complete solution for rich mobile applications<br />Cross-device support on iOS, Android, Blackberry, Desktop<br />Flash Builder for PHP includes integrated Zend Studio™<br />Integrated development<br />Data & service centric development wizards for PHP and Flex<br />Integrated debugging (desktop->device->server)<br />Bringing remote server support to Flash developers<br />Integrated with Zend Server for a seamless runtime server<br />
Agenda <br />New Flex Mobile and PHP Project <br />Using DCD wizards to consume PHP services<br />Testing your mobile Flex & PHP app on desktop and device<br />Debugging your application on device<br />Network Monitor<br />Q&A<br />
Flex Mobile and PHP Project – new wizard<br />New wizard that creates two projects:<br />PHP project<br />Flex Mobile Project<br />It supports Android.<br />June update will enable support for BlackBerry Tablet OS and iOS.<br />
Flex Mobile and PHP Project<br />1.<br />3.<br />2.<br />
Connecting to PHP Services <br />Flex Mobile and PHP project supports Data Centric Development<br />You can connect to<br />PHP Remoting (using the Zend Framework)<br />REST “Style” Service<br />Web Service (WSDL/SOAP)<br />XML Service<br />
Testing and Debugging<br />You can test or debug your mobile application:<br />On the desktop simulator<br />On the device<br />
Network Monitor <br />If you run or debug your application on the desktop simulator, you can use the Network Monitor view:<br />Inspect the data sent and received<br />Check the elapsed time between request and response<br />
Running the app on the device (Testing/Debugging)<br />When you run the app on the desktop simulator, the Flex URLs towards the PHP services are using localhost.<br />When you want to run the Flex on the actual device, you’ll have to use the server IP address where the PHP services are hosted.<br />There are two scenarios:<br />If you want to debug the Flex app on the device, you’ll have to run the PHP code either on your computer or on a server that has debugging enabled;<br />If you want to run the Flex app on the device, you can have the PHP code deployed on a server or on your computer.<br />
Enabling Debugging on the Device for Flex Mobile and PHP apps<br />Connect the mobile device to the same WiFi network as the computer on which you run the PHP code and Flash Builder for PHP (you can use a shared network from your computer)<br />Edit the .flexProperties file and change the serverRootURL from http://localhost/[…] to http://IP_ADDRESS/[…]<br />Open the Flex Service wrapper file and over write the _serviceControl.endpoint variable. You get the value you have to set by watching the value set for _serviceControl.endpoint in the _Super_ServiceName.as file while launching the app on debug mode.<br />Note: You have to increment the value of the debug_session_id for each launch.<br />