How to add dictionary on word search ? - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC: How to add dictionary on word search ?

How to add dictionary on word search ? 1 year 8 months ago #11961

  • rachnasagar
  • rachnasagar's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 69
  • Thank you received: 0
I need to add dictionary on word click or any word I will select ?

How to add it.
The topic has been locked.

How to add dictionary on word search ? 1 year 8 months ago #11964

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Karma: 17
  • Thank you received: 65
Hi,
can you please better explain your needs?
The topic has been locked.

How to add dictionary on word search ? 1 year 8 months ago #11967

  • rachnasagar
  • rachnasagar's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 69
  • Thank you received: 0
I need to add dictionary ,if anyone wants to search the meaning of any word through google how to add the feature ?
The topic has been locked.

How to add dictionary on word search ? 1 year 8 months ago #11968

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Karma: 17
  • Thank you received: 65
Hi,
sorry but this is not supported.
If you want to add it, you can implement by yourself.
The topic has been locked.

How to add dictionary on word search ? 1 year 8 months ago #11969

  • rachnasagar
  • rachnasagar's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 69
  • Thank you received: 0
Is this possible I play audio of highlighted lines ?

or any paragraph ?
The topic has been locked.

How to add dictionary on word search ? 1 year 8 months ago #11982

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
If you want to enable the text selection on LongPress event, you can Modify onLongPress in PDFLayoutView as follows:
public void onLongPress(MotionEvent e) {
	if(m_status == STA_NONE && e.getActionMasked() == MotionEvent.ACTION_DOWN) {
		PDFSetSelect();
		onTouchSelect(e);
	}
}
The selected text can be retrieved from the listener public void OnPDFSelectEnd(String text), found in PDFViewAct.

Then you can pass this text to your method that manages the dictionary, or developer.android.com/reference/android/...ts/TextToSpeech.html to play it as audio.
The topic has been locked.
  • Page:
  • 1
  • 2
Powered by Kunena Forum