I have googled this for two days now but I can’t get the answer.
How can I get the properties/attributes of a file(e.g mine.mp3) in j2me. Am looking for the normal file attributes such as name, size, date modified and most importantly-type
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
What you are looking for is FileConnection class in J2ME. This document will provide all the details regarding your requirement.
By using this class you can fetch a file’s attribute like fileSize(), getPath(), lastModified() etc