Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC:

How to add dictionary on word search ? 7 years 2 months ago #11961

  • rachnasagar
  • rachnasagar's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • 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 ? 7 years 2 months ago #11964

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

How to add dictionary on word search ? 7 years 2 months ago #11967

  • rachnasagar
  • rachnasagar's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • 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 ? 7 years 2 months ago #11968

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • 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 ? 7 years 2 months ago #11969

  • rachnasagar
  • rachnasagar's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • 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 ? 7 years 1 month ago #11982

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
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