Set Home| Set Favorite|

WPS Office Forum

 Forgot password?
 Register
Search
View: 7035|Reply: 0

Codes for calling Kingsoft Office to Open files(1)

[ Promote this link! ]
Post time: 2012-08-02 04:10:01
| Show all posts |!read_mode!
Edited by bonnie at 2012-11-06 04:45

Currently we have opened some codes to the public. It can help you to call Kingsoft Office to open files in your app. If you are also a developer, maybe you will be interested in it.

Codes:

Intent intent = new Intent();
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.setAction(android.content.Intent.ACTION_VIEW);
intent.setClassName("cn.wps.moffice_eng", "cn.wps.moffice.documentmanager.PreStartActivity");
Uri uri = Uri.fromFile(new File("/mnt/sdcard/Kingsoft Office.doc"));
intent.setData(uri);
try
{
startActivity(intent);
}
catch (ActivityNotFoundException e)
{
e.printStackTrace();
}


If need for a further cooperation, you can contact with us via mofficesupport@kingsoft.com (Only for corporate users)
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Dark room|Mobile|Archiver|WPS Office   

2019-03-18 22:20 GMT+8 , !processed_in! 0.081823 !seconds!, 16 !queries! .

Powered by Discuz! X3.2

Release 20151208, © 2001-2019 Comsenz Inc.

MultiLingual version, Rev. 469, © 2009-2019 codersclub.org

!fastreply! To Top !return_list!