MIME Recognizar
| Mon, 2005-04-25 12:13 | |
|
Hi,
Hi can we implement the recogniser, same as we use to do in symbian, I want my application to launch when recogniser recognises any perticular MIME type? Did you get the solution for the above problem? i am aslo doing the same thing. when ever the file comes via Bluetooth from pc to mobile, the application should find out my file type then it should call my application. thanks in advance. smrani |
|






Forum posts: 188
Well i know how to do this but i have never tried it out, so here it is.
Now lets say suppose u want to create a MIME type for .txt extention text file.
Create in registry HKEY_CLASSES_ROOT\.txt
add (Default)=txtfile
where 'txtfile' is any unique identifier
Optional:
Content Type=text/plain
where 'text/plain' is the mime type
then add
HKEY_CLASSES_ROOT\txtfile\Shell\Open\Command
(Default) = "\Storage\Program Files\MyApp\NOTEPAD.EXE" "%1"
where Notepad.exe is your App.
(Optional) for the icon:
HKEY_CLASSES_ROOT\txtfile\DefaultIcon
(Default) = "\Storage\Program Files\MyApp\NOTEPAD.EXE","-999"
where -999 is the icon index in the app
So when ever system recognise .txt MIME type, it will search for the corresponding application for it and if found it will launch that .txt file in ur app.
BR
CK
----
Chetan Kulshrestha