On my iPad, when i touch and hold a specific word in, for example, a PDF document, the word gets highlighted and I get three options, Copy, Search, Define. Choosing the Define option brings up the English definition of the highlighted word in what seems like a built-in dictionary. Is it possible to add this type of functionality to my app using a standard TextView without having to create an entire Dictionary database? Does Android already have one?
There's nothing like that built in. You may be able to find a third party library, but most likely you'd need to build your own from scratch.
Related
I am developing an Android application (Xamarin Forms) where the user will be entering personal and potentially sensitive information. I would like to prevent the keyboard from "learning" words that the user enters into the application.
I know it is possible for the user to manually delete learned words from their phone (as explained here: https://trendblog.net/delete-learned-words-android-keyboard/ ) but is it possible for an application, or specifically text entries, to tell Android to not learn from entered text?
In Xamarin Forms Entry, try turning off text prediction:
<Entry ... IsTextPredictionEnabled="false" />
I don't know whether that also disables "remembering" what you type. Try it, and leave a comment whether that worked.
If no cross-platform solution is suggested, then you'll need to make a "custom renderer" for Entry, in your .Android project.
There, behavior is controlled by the input type.
Try visible password or maybe no suggestions. (not sure exactly what those are in xamarin, but intellisense will show you the options, at the right place in the custom renderer's code.)
I'm wondering if there are any built-in tools in Android Studio for tags like the ones we have when posting a question here on StackOverFlow?
I'm new to Android and haven't seen any provided views like it.
Or are there any sample codes to accomplish this?
What I want as results are:
users can type in some letters or key words (one or two) and there will be choices provided show up and the users can choose from those.
if there is no tag the user want to choose, then he/she can create one by just choosing nothing and type in "," as separation, then this will be a new tag stored for later users.
tags are separated by ",", and each will be in a rectangle container (like on stackOverFlow or other sites)and users can have up to e.g. 5 tags.
This should be done in one activity.
Thanks for any solutions and advice.
In our Android app, we have an option for the user to change the language, which means he can select whether he want to use English or Sinhala. The default is always in English. We have one string.xml for English and another for Sinhala.
I was referring Android documents about "localization" but that is not exactly what I am looking for, I can't ask the user to change his phone settings. I also noticed programmatic localization which is discussed in here but most users do not recommend it due to loads of errors (anyway these posts are pretty old)
So, what's the best way of changing the String?XML file, with the preferred language of a user? It seems not easy on Android.
Or, is this is simply not a good idea?
Is there a way to load an app specific custom dictionary for android keyboard auto-complete to show to the users? My app uses a few hundred words only and any input other than these words is going to be useless.
I want to just load the word list used in my app and override the default android (or swype/swiftkey dictionaries if they are installed), without the hassle of implementing a full blown keyboard.
I have seen a couple of similar questions like here, but nothing that answers my question. Android IME again requires you to write a keyboard.
I think that make SQLite database in your application in your android application and load this data in the autocomplete and when the user entered the text then check that whether the word he entered lies in that database or not. If yes, then keep this in that textbox otherwise make text of that textbox empty i.e "". Hope that this will work for you....
I am working on a relatively simple app using PhoneGap that is designed to be a field guide. Basically there will be buttons for different sections of the field guide. Tapping on one of these buttons will transition the user to another page with the content.
However, I would like to implement search functionality if possible. For example, the user could input a query and the app will return which "pages" that query appears on. I'm not really sure what the best way to go about implementing this would be, so any suggestions would be greatly appreciated.
The only type of search function I've used thus far with PhoneGap is using a filter search to search on a set of list elements.
If you have lots of .html files with your conten, a good option is to use Zoom search engine.
You have to execute a program and it will scan your .html files and index keywords.
You will have to style yourself the "search results" page, because the default isn't mobile friendly