I have a requirement to display kannada text in GCM alerts sent to an android app.
I followed these tutorials Install Read / Write Indian Language Fonts on Android and
How to Write & Read in Indian Regional Language Fonts on Android.
Just to brief, I did following:
Rooted Android Device
Installed ES File Explorer (Free download from Android Market)
Downloaded DroidSansFallback.ttf Indic TrueType Font and Save it in SD Card
Open ES File Explorer – In settings, Enable Root Explorer and Mount
System as RW
Copy the file from SD Card root and Paste it to /System/Fonts
(Overwrite if necessary)
Reboot
But I ended up displaying Kannada text like this:
Whereas, I have sent ವಿಕಿಪೀಡಿಯ Thank you! from my back end server. How to display kannada exactly same as it was sent from the back end.
Which Android version is it?
Versions before 4 don't have proper Kannada rendering support even if you supply a font, so it shows the matras separately from the consonants.
Where are you showing this text? It may work if you try to show it in the web browser, because web browsers have their own rendering engines. Try both the stock WebKit browser and Mozilla's Firefox for Android. Depending on your device and Android version, it may or may not work.
If it works in WebKit and you need it in an app, try integrating WebKit in your app instead of using regular text display.
Another thing you can try is to render your text as an image on the server and show the user that image. It won't be perfect, but it will be readable. (That's the technique that the Opera Mini Android browser uses, last time I checked.)
And hey, kudos for trying to make it work in Kannada!
The simpler method to read Kannada on web is by using Opera Mini application which is of course available in the Playstore.
Download Opera Mini
Type "about:config" in the URL
Enable bitmap fonts for complex scripts I mean make it YES
Now you can easily read Kannada script!
You can't type or Read Kannada regular message or Whatsapp messages though. But having a primitive Android phone which is not Rooted this is the best you can get I guess!
Related
i am developing PHP/MYSQL/HTML based website, my website contains flash content, i have used flash based audio recorder on my website.
user will access my website from any device like window PC/phone, mac, android, i phone , i pad.
i want to know, flash content will be loaded on these devices without any issues or will need to install any plugin
forcing user to install plugin is not the right thing
and if using flash is not the right thing, what are the other options for audio recorder ?
Flash is not available on anything but very old Android devices. 90% sure it's not available on iOS. Likewise, it's disappearing from desktop browsers as well.
I have used ZeroClipboard J-Query plug-in for copy to clipboard in web browsers which uses Flash. As for browser security reasons, copying is disallowed and we need Flash. But the ZeroClipboard copy functionality does not work in mobiles like iPhone, Android or iPad as we can't use flash there.
So is how to implement Copy to Clipboard functionality in mobiles like iPhone, Android or iPad ?
Possible Duplicate for this question is -
Copy to Clipboard that also works on Mobile?
As there are not enough satisfying answers, I am posting this question again.
Thanks.
There's not really a way to copy to the clipboard on iOS Devices from a web browser.
Yes it will works
If the Adobe Flash&JavaScript is supported in your phone browser.
Maybe flash has been disabled because of security reasons.
Try downloading newer version of adobe flash for your phone.
It is already very tough to show native language support (Hindi, Bengali, Urdu etc) in web browsers like Internet Explorer. But how do we give support in mobile browsers like opera mini, windows browser? If there is no possible way, then what can be possible alternatives?
for android , same html should work as on desktop web browsers when you talk about languages.
however , you might want to support multiple screens to make it look well no matter what is the screen of the device :
http://developer.android.com/guide/webapps/overview.html
and also read some nice tips:
http://developer.android.com/guide/webapps/best-practices.html
i think that the same hold for windows phone and iphone . all have about the same standard about languages.
I am currently developing a website for mobile devices. The website needs to analyze pictures taken from the camera of the phone. I currently grab the image data via:
<input type="file" id="input_photo" accept="image/*;capture=camera" capture="camera"/>
However on all Android devices I tested (Android is the main plattform for now) and for all browsers (Stock Browser, Chrome, Firefox) the image is either saved to /sdcard/DCIM/browser_photos/ or simply /sdcard/.
I don't need those pictures so my question is, if there is a way to either let the browser know to not save those pictures permanently or to delete those pictures after analyzing them.
PhoneGap or similar APIs are not an option. I want to stick to pure HTML5 and JavaScript.
Thanks for your help
You just cannot access device's storage to remove something from the browser - it will be a security issue. The same thing is with regular OS browsers - the only thing you can do is use a file input to browse for file to upload - nothing more.
As part of my software development job (for Android), I need to inspect the content of numerous HTML pages when viewed via Android's WebView.
So far, I have been able to accomplish that by dumping the HTML content to a file in /data/data/<package-name>/files/, then using adb pull to copy it to the PC for easier and more comfortable inspection (larger screen and a keyboard).
I would like, however, to accelerate the process by dumping that content to a file directly from my Firefox browser on my PC. I have heard of so called "User Agent Switchers" add-ons that can fool the remote site to be thinking it communicates with a different type of browser, but can this really work when not only an agent string need to be emulated but also the screen size?
Your learned advice and tips would very much appreciated.
1) Use the user agent switcher.
2) Get the mobile profile addon.
3) Resize the window to emulate screen size changes. A quick Google search finds an addon that can handle preset window resizing: https://addons.mozilla.org/en-US/firefox/addon/window-resizer/ (If this won't do, look around the addon site- there are multiple that can do this).