1. determine the language and country comparison table. The Persian comparison is as follows:
Fa_ir
2. Based on build \ target \ product \ SDK. mk
$ (Call inherit-product-if-exists, frameworks/base/data/fonts. mk) $ (call inherit-product-if-exists, frameworks/base/data/keyboards. mk) $ (call inherit-product, $ (src_target_dir)/product/core. mk) # overridesproduct_brand: = genericproduct_name: = sdkpro
", gfbnames },
4. The font is ready, and some makefiles need to be modified. Under external/icu4c/studata/Android. mk:
Config: = $ (word 1 ,\
$ (If $ (findstring AR, $ (product_locales), large )\
$ (If $ (findstring FA, $ (product_locales), large )\
5. Add a new values-fa-RIR folder under frameworks/base/CORE/RES/and create a new strings. xml file.
6. After the preceding five steps are completed, the P
Android multi-language settings, Android multi-language
The multilingual switchover function was used in recent projects. Note that in the xml file and code, all the places where the text string is used ensure that the string text used is from the string in the values folder. in xml.
Therefore, two to three files are r
Apple replaces object-c with Swift as the official language; Google has just completed IO Congress also announced the use of Kotlin as the official language to replace Java. Tool or Xcode, Android Studio.From the famous IDE IntelliJ idea (Android Studio based on this development) software development company JetBrains
This blog post to be written today is of great significance and is very rare on the internet, a technique that I learned in my work, and of course it is a combination of simple problems. How to write C language program in wirelessly, debug Android driver, test program of an important skill, below I will not say nonsense, directly say practical, how to use this thing.On this issue, I believe that a lot of
The android components mentioned here mainly refer to Activity, Service, ContentProvider and BroadcastReceiver in android.
In the process of developing the android source code, we all get the same android source code, but the hardware platform is quite different, so it will lead to various problems. Thus,
Android learning ---- adaptive internationalization language, android ----
[Preface]
Adaptive knowledge has nothing to do with programming. The key is to modify the configuration file. Adaptive content includes: language, screen, and platform. Let's talk about how to adapt to internationalization today.
International
Singletask activity: If your startup activity is Singletask, restart it as above, the language will not take effect. What is the situation like? can be resolved by understanding, using its life cycle, when the activity of the Singletask property is cut back, the activity invokesonnewintent () method. You can override this method. Here is a workaround, finish yourself first, and then restart yourself. IntentI= New Intent(This, mainactivity. class);
Android revolving screen's behind-the-scenes internationalization language failure solution, android InternationalizationThis article has been synchronized to my blog: liyuyu.cn
I recently used international languages (English + Chinese) in the project, but I found a problem during use. When the screen is rotated, the APP lan
The AIDL (Android Interface Definition Language) IPC Mechanism is object-oriented and lightweight. The interface defined by AIDL can implement IPC communication between the server and the client. On Android, a process cannot access the memory of other processes just as it accesses the memory of the current process. Therefore, to talk between processes, You need t
Android Interface Definition Language (aidl)The following steps are required to establish an adjoining service using Aidl
1. Create a. aidl fileThis file uses the method signature to define the language interface
2. Implement this interfaceThe Android SDK Tool uses the Java
the command again when the download is complete.Once the download is complete, you can download and install the GCC compiler.Input command: sudo apt-get install g++After the carriage return, the system will automatically download the g++ compiler (you will understand him as an upgraded version of GCC), may be downloaded when the time to stop to ask if you really want to download the general prompt (y/n), enter Y and then return to the good.After completion (after you can enter the command again
= "Locale"The practice of many articles on the internet ends, the author to this step does not automatically update the interface language, because the interface is not updatedAdd an update interface to the app, update the interface after changing the system language, and initially test discovery to switch the interface language. Further testing found that the
TNW Chinese station April 8 reportThe software development language of the Android operating system is Java, and over the last few years there has been a long-standing lawsuit between Google (Weibo) and Oracle over copyright in Java. Google is considering Swift as the "first-tier" language for future Android software d
Google IO 2017 announced that Kotlin will become the official Android language. A time friends Circle and Android Circle are all kinds of brush screen. Of course, I also take advantage of the release of an article "Why I want to use Kotlin", really fiercely rubbed a wave of heat (although this will be despised). Now that the
Reprinted from: Http://www.infoq.com/cn/articles/from-android-to-swift-ios?utm_campaign=rightbar_v2utm_source=infoq utm_medium=articles_linkutm_content=link_textFrom Android to Swift iOS development: Language vs. frame comparison
I've been developing Android since 2009 and started contacting Swift at the end of 201
[Android] three methods of application language switching
Android has done a good job in international and multi-language switching. An application only needs to name the values-[language] folder of the corresponding language fam
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.