Android - Use language not available in documentation - android

I am currently developing an app which I want to support both danish and english. I know how things works with resource etc.
My app is currently running Android 2.1 (since most people in Denmark use this), but as far as I know Locale for Denmark is first avaiable in Android 2.3 (documentaion).
What wonders me, is that i got a couple of apps, which support danish language and runs on my phone (2.2). How is that possible?
Do they trick the system in some way, or do they just develop their application in Android 2.3 and make it runnable in lower version devices? Or is it possible to manipulate the native language with another app to make it "default".
I've searched around everywhere, but the danish Android community is very little.

It is actually possible to make a values-da with danish language even though it's not supported in Android 2.2 according to the documentation and it's working fine.
Don't know why it did not work earlier today.

ADB will compile your resources into apk no matter what suffix the folder values has (tested on values-qq). So I assume you can just add the proper suffix for your language, and these resources will be just ignored on pre-Android-2.3.

Related

Can 4.0+ RTL library for WebView be packaged with apk for 2.2~2.3?

We wanted to develop a web search app for Android 2.2+, and the language we're dealing with is Arabic script (RTL) based. We are using WebView as the rendering view.
So far only devices with Android 4.0+ (and some Sony phones whith 2.3) displayed the text correctly. But Android 2.x devices still consists a large part of our web users, we needed the same Arabic RTL support in Android 4.0 be availabe with our app.
To be clear, the mentioned Arabic support is not only the direction:rtl (which can be achieved with CSS), but more importantly a letter joining problem: most letters automatically change accroting to the previous and next letter when displayed.
On Windows, since 2000 version, there is a system shared library USP10.dll to handle the process. And applications have the file in their folder, would have the same support even on older Windows 98 systems.
Based on my research on the web, on android there are libicuuc.so and framework.jar to do the similar job.
My question is:
Since Android 4.0+ has the ability to hanlde the letter joining, is it possible to package the corresponding library with the apk to support Arabic in WebView?
If so, how (e.g where to put the file, and any code to add to activity)?
Many thanks in advance.
You can't add newer library for old sdk's. Old sdk's depend upon old java libraries.

Android localization and SDK support differences

The localization language support in Android 1.6 is a lot less than the languages that are supported in more recent versions. And I know that Google is making a concerted effort to expand their reach in more languages and countries.
I've looked high and low for an answer to this question, and perhaps it is answered on the developer site, or perhaps answered in a different context.. but I couldn't find it.
The question is, if I were to create the relative folders and assets for every language possible (using the some-odd 90+ locale codes), will later versions of Android automatically pick those up when they're eventually supported?
Short answer - yes. All files are loaded at runtime using the API level available on the device.

Rendering Kannada (Indic) Text on Android

I was recently developing an android application where I wanted to display kannada text in the TextView. I went through this link, now the problem is the glyphs(character sequence) are not rendered/interpreted properly.
I also found this discussion pretty usefull .
Now my question is - "Is it possible to integrate a layout/shaping engine (responsible for rendering the text properly) in an application.
Any help in this regard would be helpful.
Thanks !!
Use Bitmap fonts and your own rendering engine till Android supports
What version of Android are you targeting? Pre-2.3 Android has very poor support for any Indian language whatsoever. 2.3 introduced support for Hindi, but Dravidian languages are still missing. Based on this fact is my hunch that Android 2.3 and later probably might render Kannada text better.
Also, emulators have known issues with text rendering in some languages. I suggest testing on a real device.

Has anyone done or does anyone knows of a way to use Delphi/Prism to develop for the Android os?

Is it somehow possible to use the Delphi language (or Prism if absolutely necessary) to develop programs for the Android platform ?
Any starting point ?
There is Delphi for Android, a project by Lennie de Villiers.
Blog:
http://lenniedevilliers.blogspot.com/2010/09/delphi-for-android-sneak-preview-2.html
Screencast:
http://www.lenniedevilliers.net/preview/DAndroid_01.avi
Android applications are Java applications. There is a native SDK which should be use for particular needs and doesn't allow to build full applications, the application API is a Java API. Unless you have specific needs (i.e. portability), the best way to develop Android applications is using Java. IMHO using other tools that usually lag behind the main ones just to code with a different language is a waste of time.
No for the moment, but soon, check this link for more info about how develop android applications using the Object-Pascal language the Delphi-Prism programming language (wich is based on the Delphi language), with MonoDroid.
...and will soon be available from our
friends at Embarcadero, but it will
work with said release. So if you’re a
Delphi Prism customer, or just have a
fondness for Pascal syntax, keep an
eye out here – more info will be
available soon, including templates &
other support files.
You mean Object Pascal. I don't think it is currently possible. I don't think that crosscompiler exists...
There are couple of working examples in Lazarus How to create an LCL Android Application

How to use Android in hungarian?

I have checked the regional settings in my emulator and I can't yet choose Hungarian.
I am wondering how can I make my application to work in hungarian? How do I set what language to use?
Updated answer:
Android supports Hungarian out of the box, took me some time to figure out it's called "Magyar" in the Languages list, and it properly uses all values contained in values-hu
Android does not officially support Hungarian at this time, so the emulator does not have Hungarian strings. You can see the list of supported languages on each SDK's release notes page.

Categories

Resources