Use the latest and coolest Android development technology

Source: Internet
Author: User

The first development tool is certainly not for Eclipse, but for Android studio. The API version must, of course, be 23+ to support CardView, Receiveview, percent layouts, and so on.

There is also the introduction of Android support V7, Android support design, so that the effect of the interface is not too bad, that is, metal design style.

In addition to the interface, you also need access to the database, network requests, and so on.


For database operations, Android has a corresponding function can operate SQLite, but the default way to use SQL statements to operate, not very convenient and fast, so the use of ORM, then Greendao how? Greendao I used before, although the efficiency is relatively high, but in fact, the use of a lot of trouble, so the use of xutils provided by the dbutils to facilitate a great deal, and currently do not feel the problem of efficiency.

Although the use of ORM can make the database read and write very convenient, but there is a problem, it is not easy to expand, the program is still in development when the problem is not big, just modify the entity class, and then the framework can re-create the table, so good, but once the program is published, it can not be arbitrarily changed. So consider using NoSQL, Android-based NoSQL also has a lot of, front-end time to see Snappydb feel good, you can consider the introduction.


Network operation has volley can be used, the data format with JSON is better, some places use WebService XML-based SOAP protocol, and so on, I think the format of XML is not a good thing, soap and other protocols are relatively old, it is clear that JSON more concise and save traffic, And can be a better combination with web-side JS. Anyway, it's based on the HTTP protocol (JSON parsing, using Fastjson).

But for volley I do not use cookies and HTTPS, in addition, it seems that can not upload pictures, to be researched, or have any other better framework.


For Android app embedding WebView is very common to display text, picture class so-called rich media content, or use HTML5 to extend the application or to implement some interface with HTML5, so-called hybrid.

However, to allow the application to support the hybrid feature, there are a lot of questions to consider, not simple embedding webview can be, such as JS code and Java interaction. But in fact many of the problems have been solved in some frameworks that use HTML5 to develop mobile applications. And these frameworks also have open source.

So I consider importing these frameworks in the form of a third library, providing webview support for apps, with hybrid features, and a lot of extensions to these frameworks, so this seems like a great idea.

If you take a look, use the HTML5 to expand the function, the public can join the link to open the mobile website, in addition to provide JS-API to invoke some features of the app, such as photo albums, photos and so on.


If the code of the app can be placed on the server side, dynamic update, of course, is very good, the implementation of some tools can let the program code update dynamically, but for such a tool I did not use, considering the code confusion and other issues, I doubt this way, there is time to try.


Reactnative use JS to write native applications, you can also implement dynamic updating of the code, in addition to the use of CSS-like way to write the interface, which looks very good. The use of XML in the development of Android to define the interface, I feel bad, very verbose there are a lot of repetitive and disturbing things. Perhaps reactnative defines the interface in a much better way (to be researched).


Android uses Java to encode, but what about Java, if it's better to compare Java to C + + (for people), but it's not very good compared to a more advanced programming language, at least I feel the Java statement looks too long. Because of this, there is a dynamic JVM-based language, such as groovy,groovy2.4 after the support of Android, but I do not think it is necessary to change the programming language.

In fact, I think we should use groovy to improve the way Android writes interfaces (XML), the so-called DSL in Groovy, The way in which you declare dependent libraries in Gradle is better than the Pom.xml in Maven, and more importantly, using groovy scripts as a configuration file, you can use judgment loops and so on, which is very flexible. So if you can define the Android interface with groovy scripts, it's a lot more fun than the XML way.

All right, so much for the first, some of it, perhaps unrealistic, to be studied. There is also a picture loading, push, map, payment and even language recognition, language synthesis, etc. are available SDK here is not much to say.

If you think this article is helpful to you, please follow my public number: Zhaojietec, for more information please look forward to .....

Use the latest and coolest Android development technology

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.