Use as a Fragment

58 views
Skip to first unread message

eddie ved

unread,
Feb 6, 2013, 4:38:15 PM2/6/13
to apv-pdf...@googlegroups.com
Hello, I was wondering if there was an easy way to convert the viewing activity to a Fragment so that it can be viewed on a screen with other elements (ie. navigation bar) on it. Or am I missing something that is a much simpler way to get what I am wanting done on the UI? Currently, the viewer is launched with below:

 Intent intent = new Intent();
        intent.setDataAndType(contentPath, "application/pdf");
        intent.setClass(this, OpenFileActivity.class);
        intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
        intent.setAction("android.intent.action.VIEW");
        startActivity(intent);

Thanks for any assistance anyone can give me!
Reply all
Reply to author
Forward
0 new messages