Skip to content
This repository has been archived by the owner on Nov 25, 2019. It is now read-only.

Commit

Permalink
Update doc: add section on initiating lookup from other applications
Browse files Browse the repository at this point in the history
  • Loading branch information
itkach committed Apr 4, 2013
1 parent e66ba21 commit a861776
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions doc/aarddict-android.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,28 @@ new dictionaries. Select `Scan Device` menu item in `Dictionaries` to
do this. Alternatively, new dictionaries can be opened from a file
manager.

Initiating Lookup from Other Applications
=========================================
Many applications implement `Share` action so that selected text can
be sent to other applications. Since version 1.6.4 Aard Dictionary
should appear in the list of applications that can receive shared
text.

Alternatively, word lookup may be initiated
directly in Aard Dictionary with the following:

.. code-block:: java
Intent intent = new Intent();
intent.setClassName("aarddict.android", "Article");
intent.setAction(Intent.ACTION_SEARCH);
intent.putExtra(SearchManager.QUERY, word);
startActivity(intent);
This should take user immediately to the article with best matching
title, or to look up screen if nothing found so that user has a chance
to modify entry.


Contributors
============
Expand Down

0 comments on commit a861776

Please sign in to comment.