- Posts: 69
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Android development and PDF
How to add dictionary on word search ?
- rachnasagar
- Topic Author
- Offline
- Senior Member
-
Less
More
8 years 11 months ago #11961
by rachnasagar
How to add dictionary on word search ? was created by rachnasagar
I need to add dictionary on word click or any word I will select ?
How to add it.
How to add it.
8 years 11 months ago #11964
by Davide
Replied by Davide on topic How to add dictionary on word search ?
Hi,
can you please better explain your needs?
can you please better explain your needs?
- rachnasagar
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 69
- Thank you received: 0
8 years 11 months ago #11967
by rachnasagar
Replied by rachnasagar on topic How to add dictionary on word search ?
I need to add dictionary ,if anyone wants to search the meaning of any word through google how to add the feature ?
8 years 11 months ago #11968
by Davide
Replied by Davide on topic How to add dictionary on word search ?
Hi,
sorry but this is not supported.
If you want to add it, you can implement by yourself.
sorry but this is not supported.
If you want to add it, you can implement by yourself.
- rachnasagar
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 69
- Thank you received: 0
8 years 11 months ago #11969
by rachnasagar
Replied by rachnasagar on topic How to add dictionary on word search ?
Is this possible I play audio of highlighted lines ?
or any paragraph ?
or any paragraph ?
8 years 11 months ago #11982
by nermeen
Replied by nermeen on topic How to add dictionary on word search ?
If you want to enable the text selection on LongPress event, you can Modify onLongPress in PDFLayoutView as follows:
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.
Code:
public void onLongPress(MotionEvent e) {
if(m_status == STA_NONE && e.getActionMasked() == MotionEvent.ACTION_DOWN) {
PDFSetSelect();
onTouchSelect(e);
}
}
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.
Time to create page: 0.524 seconds