tag:blogger.com,1999:blog-89878749563391212.post2207600356513536118..comments2024-03-25T17:53:11.127-07:00Comments on Android-er: Example of File Explorer in AndroidUnknownnoreply@blogger.comBlogger39125tag:blogger.com,1999:blog-89878749563391212.post-2737832042453340672020-07-12T10:24:47.569-07:002020-07-12T10:24:47.569-07:00how to filter folders based on specific file exten...how to filter folders based on specific file extension. for example if i want only folders that contain ".mp3", so how can i achieve this?zaynnoreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-4296416286481331492018-08-16T05:14:04.956-07:002018-08-16T05:14:04.956-07:00 Caused by: java.lang.NullPointerException: At... Caused by: java.lang.NullPointerException: Attempt to get length of null array<br /><br /><br />Is there anything else that I have to add?<br />Anonymoushttps://www.blogger.com/profile/06080984068740138689noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-57624697268717017092016-05-23T13:11:35.018-07:002016-05-23T13:11:35.018-07:00Actually, its ok now. Forgot that CCleaner had ob...Actually, its ok now. Forgot that CCleaner had obliterated my Downloads folder, meaning it doesn't show (when it's empty). This newer code really does work!<br /><br />Now I just need to use the selected file with an Intent... Thanks.the bloggerhttps://www.blogger.com/profile/02814935601665195218noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-82305144383905011512016-05-22T14:04:44.021-07:002016-05-22T14:04:44.021-07:00works!
but i cant find downloads folder anywhere ...works!<br /><br />but i cant find downloads folder anywhere in filebrowser.<br /><br />any ideas?the bloggerhttps://www.blogger.com/profile/02814935601665195218noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-58359857002847680712016-04-09T04:24:57.681-07:002016-04-09T04:24:57.681-07:00Thank youThank youPersonalia R.M. Nova Sragenhttps://www.blogger.com/profile/15472721347106644209noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-90059978305356293932014-12-29T10:42:04.169-08:002014-12-29T10:42:04.169-08:00Thank you for your great downloable example! : )Thank you for your great downloable example! : )Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-6941748459813096102014-09-23T07:21:34.333-07:002014-09-23T07:21:34.333-07:00HI,
I am trying to use this code inside an ac...HI,<br /> I am trying to use this code inside an activity that is launched after click on the button inside the mainActivity.<br />but i am getting error here when i am calling "getdir(root)" this is throwing the exception " couldn't execute method GETDIR(root)"<br /><br />Thanks<br />RishavRishavhttps://www.blogger.com/profile/17281914958497615083noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-59053294966689038352014-04-27T05:11:11.360-07:002014-04-27T05:11:11.360-07:00hello 178º,
row.xml is the layout of individual r...hello 178º,<br /><br />row.xml is the layout of individual row in ListView. It is passed to ArrayAdapter constructor.<br /><br />Because I want a bigger text in ListView, so I have to create a custom layout.Erikhttps://www.blogger.com/profile/04983894331825656853noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-17430883224866619672014-04-27T02:57:24.767-07:002014-04-27T02:57:24.767-07:00Eric, can you explain why you added a row.xml file...Eric, can you explain why you added a row.xml file and what is its purpose?178ºhttps://www.blogger.com/profile/17966907797970879215noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-20170498546174474582014-03-19T21:02:55.144-07:002014-03-19T21:02:55.144-07:00Hey thanks for the guide :D How would you go about...Hey thanks for the guide :D How would you go about opening a text file though? I looked at your open image guide but I dont think it covers opening a text files content and displaying it.Zarathasnoreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-68881002982254746052014-03-09T12:33:58.035-07:002014-03-09T12:33:58.035-07:00Hello, thak you very much for this file manager tu...Hello, thak you very much for this file manager tutorial. I made the possibility to select a file and then edit it in another activity of course (and this often requests a file name modification); so when I return to the activity filelist I make a refresh, calling getdir with the previous directory path, but the file name remains the same so I have to move to another directory and re-enter to the original again; have you got an idea to solve this, sir?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-59939148809450383872014-01-25T12:22:11.768-08:002014-01-25T12:22:11.768-08:00Oh, I have found the solution and it works pretty ...Oh, I have found the solution and it works pretty well. Really sorry for the problem.kormateusznoreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-64486609558726053162014-01-25T05:44:25.891-08:002014-01-25T05:44:25.891-08:00SU I mean Super User. Yes, I mean File Manager for...SU I mean Super User. Yes, I mean File Manager for rooted device. For example to view directories and files from "/data", "/cache" or "/config".<br /><br />I added such code:<br /><br />Process process;<br /><br />try {<br /> process = Runtime.getRuntime().exec(new String[] {"su", "-c", "ls /data"}); <br /> BufferedReader in = new BufferedReader(new InputStreamReader(process.getInputStream()));<br /> <br /> String line;<br /> while ((line = in.readLine()) != null) {<br /> pathleft.add(line);<br /> }<br /> <br /> } catch (IOException e) {<br /> e.printStackTrace();<br /> Toast.makeText(getActivity(), <br /> "NOT ROOT", <br /> Toast.LENGTH_LONG).show();<br /> }<br /><br /><br />And it display files from "/data" but I can't enter to the next directory or open a file from "/data". And even I can't sort these files.<br /><br />Maybe you know how to fix it?<br /><br />And sorry for my english, its not perfect :)kormateusznoreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-11150318702491114442014-01-25T04:16:34.576-08:002014-01-25T04:16:34.576-08:00hello kormateusz,
I don't know what you means...hello kormateusz,<br /><br />I don't know what you means "SU permission"? SU? as a app on un-rooted device, it should have no right as SU, as I know.<br /><br />root file manager? do you means file manager have right of root user? I have no idea. If you want file explorer for root directory, "/", here is another example: http://android-er.blogspot.com/2010/01/implement-simple-file-explorer-in.html<br />Erikhttps://www.blogger.com/profile/04983894331825656853noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-66680330602606639902014-01-25T01:05:30.284-08:002014-01-25T01:05:30.284-08:00Hi, could you write tutorial how to add SU permiss...Hi, could you write tutorial how to add SU permission to this? I would be great because nowhere in the Internet there is such tutorial how to create a simple root file manager.kormateusznoreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-57639484888941681092013-09-29T12:51:25.502-07:002013-09-29T12:51:25.502-07:00File closes unexpectedlyFile closes unexpectedlyAnonymoushttps://www.blogger.com/profile/09143528358810417085noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-80034519343324687122013-07-08T00:04:33.229-07:002013-07-08T00:04:33.229-07:00Very nice. It help me with my project. Thank you v...Very nice. It help me with my project. Thank you very much!Anonymoushttps://www.blogger.com/profile/16687826302451516137noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-33085772574750166862013-06-07T02:25:35.973-07:002013-06-07T02:25:35.973-07:00Hey again :)
I tried it on a Samsung Galaxy S3 Mi...Hey again :)<br /><br />I tried it on a Samsung Galaxy S3 Mini and it worked just fine. Though I don't have an SD card...<br /><br />Anyway, thank you.<br />Have a nice day!<br />Monica.Anonymoushttps://www.blogger.com/profile/08180773775047273906noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-58154126143128349592013-06-06T10:49:58.495-07:002013-06-06T10:49:58.495-07:00hello Monica Ias,
It's only a common approach...hello Monica Ias,<br /><br />It's only a common approach, and no any license. You can use it.<br /><br />And remind here, as I know, use Environment.getExternalStorageDirectory() in this case cannot access SD Card in Samsung devices.Erikhttps://www.blogger.com/profile/04983894331825656853noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-17982021193554067652013-06-06T06:26:28.676-07:002013-06-06T06:26:28.676-07:00Hello,
I've came across this nice example of y...Hello,<br />I've came across this nice example of yours as I am currently working on my diploma project for the university. I would like to ask you if it is ok to use it as i found no specifications regarding a license or so.<br />Thank you,<br />MonicaAnonymoushttps://www.blogger.com/profile/08180773775047273906noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-31322856905543006282013-04-08T21:43:41.196-07:002013-04-08T21:43:41.196-07:00you can call
getDir(root);
getDir(f.getParent());
...you can call<br />getDir(root);<br />getDir(f.getParent());<br />Erikhttps://www.blogger.com/profile/04983894331825656853noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-9918330081238889872013-04-08T09:44:05.115-07:002013-04-08T09:44:05.115-07:00Thank you for your code. I want to add a back butt...Thank you for your code. I want to add a back button but I don't know how to program it to do wht the "../" button does. This is what i have:<br /><br />@Override<br /> public boolean onOptionsItemSelected(MenuItem items){<br /> switch(items.getItemId()){<br /> case R.id.home:<br /> path.add(root);<br /> //myPath.invalidate();<br /> //f.invalidateViews();<br /> return true;<br /> <br /> case R.id.back:<br /> path.add(f.getParent());<br /> return true;<br /> <br /> default:<br /> return super.onOptionsItemSelected(items);<br /> }<br /> }Anonymoushttps://www.blogger.com/profile/18059204974884566205noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-4870070356524968692013-03-27T06:50:23.002-07:002013-03-27T06:50:23.002-07:00Play "audio/mp3" with MediaPlayer
or
...<a href="http://android-er.blogspot.com/2012/06/play-audiomp3-with-mediaplayer.html" rel="nofollow">Play "audio/mp3" with MediaPlayer</a><br /><br />or <br /><br /><a href="http://android-er.blogspot.com/2012/06/start-intent-to-choice-audiomp3-using.html" rel="nofollow">Start Intent to choice "audio/mp3" using installed app</a>Erikhttps://www.blogger.com/profile/04983894331825656853noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-12111540888165563642013-03-27T06:27:25.509-07:002013-03-27T06:27:25.509-07:00Thanks for your help !
I did it with jpeg image bu...Thanks for your help !<br />I did it with jpeg image but if I want to play a music (mp3,wav or mid for example), have you got a idea ?Badboynoreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-47592245883849114572013-03-27T04:51:03.021-07:002013-03-27T04:51:03.021-07:00hello Badboy,
Please read Android File Explorer w...hello Badboy,<br /><br />Please read <a href="http://android-er.blogspot.com/2010/01/android-file-explorer-with-jpgs-exif_08.html" rel="nofollow">Android File Explorer with JPG's Exif & Photo displayed</a>.Erikhttps://www.blogger.com/profile/04983894331825656853noreply@blogger.com