Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3317886
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:38:23+00:00 2026-05-17T22:38:23+00:00

I have created a app that displays all the content from res/raw folder. I

  • 0

I have created a app that displays all the content from res/raw folder.

I need that when i click on .doc file it should open and I can view its content.

please help me.

I have ThinkFree.

enter code here
public class FileList extends ListActivity {

public static final Field[] fields = R.raw.class.getFields();

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setListAdapter(new ArrayAdapter<Field>(this, R.layout.row, R.id.weekofday, fields));
}

@Override
protected void onListItemClick(ListView l, View v, int position, long id) {
    // TODO Auto-generated method stub
    //super.onListItemClick(l, v, position, id);
    String selection = l.getItemAtPosition(position).toString();
    Toast.makeText(this, selection, Toast.LENGTH_SHORT).show();

    Intent i = new Intent();
    i.setAction(android.content.Intent.ACTION_VIEW);
    startActivity(i);
}

}

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T22:38:24+00:00Added an answer on May 17, 2026 at 10:38 pm

    What you want is not possible. A third-party application will not be able to read a Word document out of your raw resources.

    At best, you could copy the file from the raw resource someplace (e.g., external storage), then call startActivity() on an ACTION_VIEW Intent that has a Uri pointing to the readable copy and also has the proper MIME type.

    Of course, this will only work on a device that has a Word document viewer on it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a rails 3 app that displays user submissions in order of how
From Day One I was told that each third-party iOS app was perfectly sand-boxed
All, I have a WPF application built upon SQLite database and user/application Configuration settings.
i'm currently developing an app for both Android and iOS, thing is... I started
We're in the process of converting web app to IE8 (now client is using
I'm writing a Facebook app. When a user adds the application i insert a
I'm trying to create an app where users ('current_user') rate the compatibility between two
I'm working on a web application that includes different JavaScript files, depending on where
Background I'm trying to keep an app which is as modular as possible. The
First time using pyFacebook. I've literally copied the example application and put it up

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.