Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Archived:Capability issues in Notepad Library API (Known Issue)

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Article Metadata
Tested with
Devices(s): Nokia N95
Compatibility
Platform(s): S60 3rd Edition (initial release) and FP1
S60 3rd Edition FP1
Article
Keywords: Notepad Library API, CNotepadApi
ExecReadOnlyTextViewerL, ExecTextEditorL
Created: User:Technical writer 1 (22 Feb 2008)
Last edited: hamishwillee (15 Jun 2012)

Description

CNotepadAPI::ExecReadOnlyTextViewerL requires the following capabilities: ReadDeviceData, WriteDeviceData, ReadUserData, and WriteUserData. This is not documented.

CNotepadAPI::ExecReadOnlyTextViewerL and ExecTextEditorL are used to show a text string in the Notepad application. The CNotepadAPI::ExecTextEditorL function requires the same four capabilities to work fully. The function can be executed with the None capability but the application will crash if the user selects the Find operation from Notepad's menu.

How to reproduce

CNotepadApi *note = CNotepadApi::NewLC();
_LIT(text,"Some very long text, Some very long text ");
note->ExecReadOnlyTextViewerL(text,_L("TITLE"),_L("DELETE?"));
CleanupStack::PopAndDestroy(note);

Solution

Add WriteDeviceData, ReadUserData, and WriteUserData capabilities. The issue is expected to be fixed in S60 3rd Edition, FP2 devices and SDK.

This page was last modified on 15 June 2012, at 06:46.
434 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×