0

I'm confused between native apps and web apps in the mobile context. I don't know if I go with native mobile development then do I need to know HTML, CSS, and JavaScript. If not then how can I make that app connect to database online for example?

If I want to build an application for chatting on mobiles. Something like WhatsApp! Will knowing a programming language (e.g. Java on Android and C# on Windows Phone) will be enough to build something like that? or what other components are necessary to add?

4

2 回答 2

0

Native apps tend to be more recommended for android apps as they are faster as it is running what it was intended i.e. java code, html web apps tend to be slower.

For what you want to do, a chat app, then a native android app, (using java code) will probably work best then trying to do it as a web app.

You would need to learn about Http connections for your chat application. If you are accessing a database, such as MySQL, then you would need to have PHP code running on a web service where the Android app can access the database.

As an example, if your application, need to query the database, then you would tell the Android app to post to the web server running the PHP code. The PHP code would run the query on the MySQL database, and the result set should be json encoded and echo'd out, that way, Android will receive the json encoded content. Then you would need to decode the json to process what was returned in some way.

Hope this helps.

于 2013-11-10T18:50:40.447 回答
0

对于 android,您需要学习 Java 和 XML,如果您想为所有或任何一个平台制作聊天应用程序,您必须学习 SQL(包括 php)。

于 2013-11-10T18:28:26.297 回答