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

  • SEARCH
  • Home
  • 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 7756079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:43:37+00:00 2026-06-01T12:43:37+00:00

for(int i = 0; i < files.length; i++) { File file = files[i]; path.add(file.getPath());

  • 0
for(int i = 0; i < files.length; i++)
{
    File file = files[i];
    path.add(file.getPath());
    if(file.isDirectory())
        item.add(file.getName() + R.drawable.folder); /* it doesn't work, because it shows numbers instead of folder icon */
    else
        item.add(file.getName());
}

It doesn’t work; it shows numbers instead of the folder icon.

  • 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-06-01T12:43:39+00:00Added an answer on June 1, 2026 at 12:43 pm

    There several Android tutorials on make file mangers and lists: Android Programming: Where To Start For Creating A Simple File Browser?

    That link – on StackOverFlow – has other links that good for what you are trying to work on. Also, you can use the source code from OpenIntents open source file manager:

    OpenIntents: http://www.openintents.org/en/download

    Source Code:
    http://code.google.com/p/openintents/downloads/detail?name=FileManager-source-1.0.0.zip&can=1&q=

    To see what Open Intents File Manager looks like, you can check it out here: https://play.google.com/store/apps/details?id=org.openintents.filemanager

    Let me know if this helps!

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

Sidebar

Related Questions

I have three files, a main .cpp file: #include <stdio.h> #include myClass.h int main()
I have 4 files: shared.h main.cpp something.h something.cpp shared.h: #ifndef SHARED_H #define SHARED_H int*
void FileManager::CloseFile(File * const file) { for (int i = 0; i < MAX_OPEN_FILES;
Suppose that I have those three files: a.h //a.h header #include <stdio.h> int int_variable;
I know that I can get a POSIX int file handle from NSURL by
Using the following code to write to a file int main(int argc, char *
header file: private: vector<int*>* nums; public slots: void buttonClicked(); cpp file: NewWindow(){ int one
I have a code that looks like this: int main () { fstream file;
Here is my code: #include <stdio.h> int main(void) { FILE *fp; unsigned int i;
I am reading HTML files from a folder using xml parser that store the

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.