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 8259119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T02:47:05+00:00 2026-06-08T02:47:05+00:00

Am looking for the tutorial to display all the files and folder in a

  • 0

Am looking for the tutorial to display all the files and folder in a listview..but I didn’t get anything..Does anyone here know that how can I show all the folder and files of Dropbox into my listview..So that when I click on any of the file..Then that file starts download..

Well I know here that How to download a file from Dropbox, but for that I need to put that name of the file in my code in a static way..

I am also going to use filter afterwards for .csv file only…but I want to show all the files in a listview.

Thanks..

  • 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-08T02:47:07+00:00Added an answer on June 8, 2026 at 2:47 am
                String[] fnames = null;
                Entry dirent = mApi.metadata("/", 1000, null, true, null);
                ArrayList<Entry> files = new ArrayList<Entry>();
                ArrayList<String> dir=new ArrayList<String>();
                for (Entry ent: dirent.contents) 
                {
                    files.add(ent);// Add it to the list of thumbs we can choose from                       
                    //dir = new ArrayList<String>();
                    dir.add(new String(files.get(i++).path));
                }
                i=0;
                fnames=dir.toArray(new String[dir.size()]);
    
                return fnames;
    

    This is what i use.
    once you have stringarray fnames,you can display it in a listview.

    You can display it in a gridview like this

    final GridView gv=(GridView)temp.findViewById(R.id.gridView1);
    ArrayAdapter<String> ad = new ArrayAdapter<String>(mContext, android.R.layout.simple_list_item_1,fnames);
    gv.setBackgroundColor(Color.BLACK);
    gv.setNumColumns(3);
    gv.setGravity(Gravity.CENTER);
    gv.setAdapter(ad);
        gv.setBackgroundResource(R.drawable.black_cloud1);
    gv.setOnItemClickListener(new OnItemClickListener() {
                        public void onItemClick(AdapterView<?> arg0, View arg1,
                                int arg2, long arg3) {
                            // TODO Auto-generated method stub
                            Toast.makeText(mContext,gv.getItemAtPosition(arg2).toString(),Toast.LENGTH_SHORT).show();
    
                            temp.setData(fnames,gv.getItemAtPosition(arg2).toString());
    
                            return;
                        }
    
                        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was looking at a tutorial on Regex. It was about how to get
I am looking for a tutorial to achieve an effect that is very easy
I am looking for a tutorial which will guide me to style HTML pages
I'm looking for a tutorial that explains creating custom usercontrols in WPF. I want
I'm looking for a tutorial explaining how to work with these 3 technologies, found
I am looking at this tutorial http://www.codeproject.com/KB/cpp/authforwebservices.aspx and I am wondering what the reason
I am looking for some tutorial regarding the PostMessage functionality in Windows SDK. I
I'm looking for good tutorial or really simple code to integrate mongokit and django
I am looking for a tutorial how to create my own user interface(like using
Hi I am looking at a tutorial which uses the camera and I came

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.