How to develop native android app?

How to develop an Android tool to be used for any text in any app

  • I'm an Android developer and I'm trying to figure out how to build a tool/app that suggests features to the user when highlighting any text on any other application. Is that possible? I guess it will be similar to developing the "copy and paste" feature, but I just need to know from where to begin and what do I exactly need to achieve this. EDITED: Can I use "The Clipboard Framework" to listen for text selection?

  • Answer:

    Is that possible? Generally speaking, no, for security reasons. In this specific case, you could create your own input method editor (a.k.a., soft keyboard), which the user could elect to use, and you could find out when the user selects text in an EditText. But writing a good input method editor is not simple, and it will have no effect on, say, text highlighted in a Web browser. Can I use "The Clipboard Framework" to listen for text selection? No.

Doaa A. at Stack Overflow Visit the source

Was this solution helpful to you?

Other answers

Mmmmmh, you must do all tutorials and read theory before you start programming anything. If you don't want to do that, you could start doing things that are already done in tutorials and manuals. By the way, try to do http://developer.android.com/resources/tutorials/notepad/index.html tutorial, to learn the basics about save content and manipulating text. Then, http://developer.android.com/reference/android/text/package-summary.html about writing text. And then, you can start thinking about aplications.

Piperoman

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.