Get all files inside /res/raw

Put your problem here if it does not fit any of the other categories.

Get all files inside /res/raw

Postby jcuria » Mon Oct 27, 2008 4:42 pm

I need to obtain a list of files that i have inside /res/raw. Not to open a file, but to obtain the list of files that exist.
How I can do it?

thx.
jcuria
Freshman
Freshman
 
Posts: 3
Joined: Fri Oct 24, 2008 9:33 am

Top

Postby MrSnowflake » Tue Oct 28, 2008 1:32 pm

I don't know if there's an other way, but you could use reflection to get the fields of the R.raw class.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby jcuria » Mon Nov 03, 2008 1:26 pm

I don't know what is reflection. Could you say me how reflection works or where I can find information?

thx
jcuria
Freshman
Freshman
 
Posts: 3
Joined: Fri Oct 24, 2008 9:33 am

Postby MrSnowflake » Mon Nov 03, 2008 2:32 pm

Google for "java reflection" or "java reflection tutorial". That's what Google is for.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby reynolds » Mon Mar 09, 2009 3:26 am

MrSnowflake wrote:Google for "java reflection" or "java reflection tutorial". That's what Google is for.


We're the same. I tried with some java reflection tutorial. But since I'm a beginner with Java, can somebody give a function or method how its done? for a quicker experience. As I'm having difficulty getting the logic of how to do it.

Thanks,
reynolds
Junior Developer
Junior Developer
 
Posts: 22
Joined: Fri Mar 06, 2009 6:13 am
Location: Makati Philippines

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 9 guests