Google Drive SDK and Unicode filenames - android

I’m using OpenFileActivityBuilder from Google Drive SDK for Android to prompt the user about saving a file to Google Drive. Saving itself goes totally fine, but when I set the title to non-English text, such as Russian, the saved file has question marks instead of symbols. For example, I set title to “Файл” and created file has filename “????”. The thing is if user enters the title himself Cyrillic symbols are translated to question marks as well. This issue is applied to any example—even official quickstart app—just enter non-English characters (“Файл”, “ø”) into a file title and you’ll get question marks at created filename as well.
Does anyone know how to fix this issue? I thought this is my fault, but I’m obtaining string from resources, plus when user enters title himself it is definitely Unicode already.

This looks like a bug :-/ Sorry, we are looking into it.

Related

Special character in Android TextView stopped working in the app after almost a year?

7 months ago I built an app targeting Android 2.3.3 and above (API 10). In the app I use an SimpleCursorAdapter which is deprecated now. First the app reads a .csv document and saves the information in the SQLiteDatabase.
The SimpleCursorAdapter gets the info out of the database and shows a list on the screen. The .csv has a few words with the special character ë in it, example: variëteit. The app build 7 months ago that is now in the store works fine and shows the special character correct in the list.
Here is the problem:
When I build the app now on my phone it doesn't show the special character ë in the list but this instead:
When I download the 7 months old version from the store, it does show the correct special character.
The weird thing is, I didn't change the code! So I have no idea why it suddenly stopped working. Does anyone have an idea?
What did I try:
I tried to change the encoding to: ISO8859-1, but that also gave a weird character..
I tried: String correctText = Html.fromHtml(textView.getText().toString()));
But that also didn't work.
EDIT:
The problem is reading the .csv file. When I put the value in the database it is already incorrect. I tried reading the .csv file with different encodings, but I coulnd't get the right encoding... I tried all the standard encodings. But it still didn't work. I can't find out what the right encoding is...
Have you checked the encoding in Android Studio?
When I checked the details of the file it told me it was UTF-8 encoded.
I created an new file with Notepadd++, before I created that file I made sure Notepad++ had these settings: (Settings > Preferences... >)
I copied and pasted the content to this new file.
Then it worked because the file was for sure good encoded in UTF-8.

Google Play Store Description Size & Color [duplicate]

I've made an Android application that is available on Google Play. Now I want to add some more formatting to my app description (eg. indent, links, lists..). But I cannot find any website where possible formatting is listed. Google Help pages cannot help me either on this subject. There exists a lot of different formats and I don't really know which one to use (eg. HTML or wiki formatting..)
I could test it with trial and error, but that would take some time, because Google Play only refreshes after 2-3 hours. And while I'm testing, my app description would be rather ugly if the wrong format was used.
tl;dr Is there a list of all possible formatting I could use in the app description for Google Play?
Experimentally, I've discovered that you can provide:
Single line breaks are ignored; double line breaks open a new paragraph.
Single line breaks can be enforced by ending a line with two spaces (similar to Markdown).
A limited set of HTML tags (optionally nested), specifically:
<b>…</b> for boldface,
<i>…</i> for italics,
<u>…</u> for underline,
<br /> to enforce a single line break,
I could not find any way to get strikethrough working (neither HTML or Markdown style).
A fully-formatted URL such as http://google.com; this appears as a hyperlink.
(Beware that trying to use an HTML <a> tag for a custom description does not work and breaks the formatting.)
HTML character entities are supported, such as → (→), ™ (™) and ® (®); consult this W3 reference for the exhaustive list.
UTF-8 encoded characters are supported, such as é, €, £, ‘, ’, ★ and ☆.
Indentation isn't strictly possible, but using a bullet and em space character looks reasonable (•  yields "• ").
Emoji are also supported (though on the website depends on the user's OS & browser).
Special notes concerning only Google Play app:
Some HTML tags only work in the app:
<blockquote>…</blockquote> to indent a paragraph of text,
<small>…</small> for slightly smaller text,
<big>…</big> for slightly larger text,
<sup>…</sup> and <sub>…</sub> for super- and subscripts.
<font color="#a32345">…</font> for setting font colors in HEX code.
Some symbols do not appear correctly, such as ‣.
All these notes also apply to the app's "What's New" section.
Special notes concerning only Google Play website:
All HTML formatting appears as plain text in the website's "What's New" section (i.e. users will see the HTML source).
Currently (July 2015), HTML escape sequences (• •) do not work in browser version of Play Store, they're displayed as text. Though, Play Store app handles them as expected.
So, if you're after the unicode bullet point in your app/update description [that's what's got you here, most likely], just copy-paste the bullet character
•
PS You can also use unicode input combo to get the character
Linux: CtrlShiftu 2022 Enter or Space
Mac: Hold ⌥ 2022 release ⌥
Windows: Hold Alt 2022 release Alt
Mac and Windows require some setup, read on Wikipedia
PPS If you're feeling creative, here's a good link with more copypastable symbols, but don't go too crazy, nobody likes clutter in what they read.
As a matter of fact, HTML character entites also work : http://www.w3.org/TR/html4/sgml/entities.html.
It lets you insert special characters like bullets '•' (•), '™' (™), ... the HTML way.
Note that you can also (and probably should) type special characters directly in the form fields if you can enter international characters.
=> one consideration here is whether or not you care about third-party sites that collect data on your app from Google Play : some might simply take it as HTML content, others might insert it in a native application that just understand plain Unicode...
This is not bullet but you can consider it. As there is nothing like big dot.
I used below symbol in the description and its working fine.
⚫ Black Circle
🌑 New Moon
🌕 Full Moon
💠 Diamond With a Dot
🔸 Small Orange Diamond
⚙ Gear
🏴 Black Flag
🏳 White Flag
▶ Play Button
⏩ Fast-Forward Button
⭕ Heavy Large Circle
✴ Eight-Pointed Star
◼ Black Medium Square
◽ White Medium-Small Square
◾ Black Medium-Small Square
⬛ Black Large Square
You just need to copy and paste it over description. Below is the result.
Currently (June 2016) typing in the link as http://www.example.com will only produce plain text.
You can now however put in an html anchor :
My Example Site
Title, Short Description and Developer Name
HTML formatting is not supported in these fields, but you can include UTF-8 symbols and Emoji: ✓☆👍
Full Description and What’s New:
For the Long Description and What’s New Section, there is a wider variety of HTML codes you can apply to format and structure your text. However, they will look slightly different in Google Play Store app and web.
Here is a table with codes that you can use for formatting Description and What’s New fields for your app on Google Play (originally appeared on ASO Stack blog):
Also you can refer this..
https://thetool.io/2020/html-emoji-google-play
Include emojis; copy and paste them to the description:
http://getemoji.com
<br> seems to be the best and only way that currently works on the app version to create a new line break. I have tried it successfully in a review, as well as unsuccessfully tried all other Unicode/HTML newline-related characters that the Wikipedia page for newlines would tell me.
I used <br> with | immediately on either side, using no closing tag, and it magically created a single line break without revealing the source or screwing anything up.
TLDR: <br> lets you successfully utilize single line breaks in Google Play app -- unlike everything else I tried (a lot).
P.S. I have no clue how to make the thing show source instead of being used as source. !^( Now I do, and I know it works on both the desktop and mobile sites. !!
Additionally, upon searching for how to make it show the source, I stumbled upon this. <del></del>

android app title naming

I'm trying to upload my android app, but instead of my app name "Соновник" it shows question marks. I've stored all my string in the values/strings.xml file. Is there some naming convention or am I supposed to do something for my app title to support UTF characters?
it might be a problem with your browser (or google's side) that it is not showing title correctly, otherwise on device i believe it should be fine.

Change Market name

I'm new to publishing Android apps. Our app's name and the string that users should search for to find it on the Market is Eksjö
When I first uploaded it, the upload form suggested the name Eksjo (the name of the project, since Eclipse/Android SDK disallows deviant characters in the project name). Sadly, I accepted this and noticed it could be found (since the word is unique and is in the description, presumably), but that the Market name was Eksjo.
I edited the upload form, only changing the App name to Eksjö, but this did not change the Market name. Perhaps I was impatient, and an hour or so later it would have changed?
Anyway, I went back to Eclipse to change the :label (which I've since learned has nothing to do with the Market name), but it was already set correctly.
The best thread I've found on the subject is this: http://groups.google.com/group/android-developers/browse_thread/thread/b1a6ad78ce584a40#
I've come up with 3 ideas so far:
It says that the app Title can only be set from the Developer Console, but I can't type anything in the Console tab containing the console messages. (Am I barking up the wrong tree? Intuitively, I would think that typing setTitle('Eksjö') would only change the title of the current or possibly the main view of the app at runtime?)
The other alternative would be to upload an upgrade, where basically nothing has changed but where I can hopefully type a new Market name in the upload form. The question is whether this changes anything at all.
The third alternative would be to upload a completely new identical app, but with the correct Market name. But to do that, I'd have to change the package names (and sub-names, ie. com.whatever.common, com.whatever.viewname1, etc.) Can I do that with a refactor or do I have to manually rename all the views and includes?
Which one is the ticket, 1, 2, or 3?
I think 1 is your answer. and this can occour by changing the default string appName in your strings.xml file to the one you want. Also changing the market name and icon takes some time so just wait for the data to populate.

I want to modify a sample from the http://developer.android.com/, but have some problems with Cyrillic symbols

First, sorry for my poor language skills.
I tried to modify the SearchableDictionary v2 sample from here: http://developer.android.com/resources/samples/SearchableDictionary/index.html
I need this for a school project.
I replaced the definitions in dev/raw/definitons.txt with some other definitions, which was written in Cyrillic, but now when I run the project and search for a word it doesn't show me word I was searching for.
However, if I enter some words in Latin symbols in definitions.txt, then the app works great, but when I put some words in Cyrillic it doesn't show me the words, when I search for them.
I assume that this is due to some encoding issues?
Thanks!
It could be due to encoding. In Eclipse, right click on the definitions.txt file and select properties. There you should see an option to specify the charset. Make sure its set to whatever you need (probably UTF-8)

Categories

Resources