Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 08:21, 7 June 2008.

How to open a file with the designated application

From Forum Nokia Wiki


This article shows how to open a file with the application that opens that kind of file by default (the handler application registered for the particular MIME type) in PyS60.

For example, we want to open the file f.txt, located on the C: drive (phone memory), with the device's default text viewer. The file contains the text "Some text".

import appuifw
 
c=appuifw.Content_handler()
c.open("C:\\f.txt")

The result:


Image:Content_handler_example_screenshot.jpg

Related Discussions
Thread Thread Starter Forum Replies Last Post
Not able to make ListBox by reading a file Kapil Kaushik General Symbian C++ 39 2007-01-16 18:36
Multimedia: file format unknown sandalen General Messaging 1 2003-02-18 09:20
Multimedia: file format unknown sandalen General Symbian C++ 1 2003-02-18 09:20
Application to application pappago Symbian Tools & SDKs 2 2002-11-22 17:40
Application to application pappago Symbian Networking & Messaging 6 2005-12-14 09:51
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZpythonQ
     qfnZtopicQUqfnTopicZseriesE5f60Q
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX