Something like this will give you the available space on the SD card:
StatFs stats = new StatFs("/sdcard");
int space = stats.getAvailableBlocks() * stats.getBlockSize();
Looking at the Build class will give you some information on the Android
build and device, e.g.:
String buildInfo() {
StringBuilder builder = new StringBuilder();
builder.append("BOARD: "); builder.append(Build.BOARD);
builder.append("\nBRAND: "); builder.append(Build.BRAND);
builder.append("\nDEVICE: "); builder.append(Build.DEVICE);
builder.append("\nID: "); builder.append(Build.ID);
builder.append("\nMODEL: "); builder.append(Build.MODEL);
return builder.toString();
}
(Not so much use on the emulator)
The /proc file system will give you a range of (undocumented and
subject-to-change) info on OS activity.
HTH
Ludwig
2008/10/29 parani kumar <[EMAIL PROTECTED]>
> Dear Ludwig,
>
> Thanks for the quick response and reply. I will direct you what i need,
>
> I am trying with windows android emulator to display the OS version,memory
> space available, memory usage like some of basic system properties of the
> mobile phone.
>
> When i use *android.provider.Settings* I am getting the constant values
> printed in the Emulator. i don't have any clue to proceed more. I hopes I
> would explain my position, Kindly advice me on this, how to proceed further.
>
> Thanks Again,
> Parani.
>
>
> On Wed, Oct 29, 2008 at 7:17 PM, Ludwig <[EMAIL PROTECTED]>wrote:
>
>> There is a package android.os (RTFM), but generally speaking Android is
>> not a general purpose hand-held computer, but a quite shielded application
>> environment that happens to sit on a Linux OS.
>> You might get more help if you ask a more specific question.
>>
>> Ludwig
>>
>> 2008/10/29 parani kumar <[EMAIL PROTECTED]>
>>
>> Hi Everyone,
>>>
>>> I am new to android development, Can anyone suggest me, how to display
>>> the OS details in Emulator?
>>>
>>> This would help me to get a great step in android development.
>>>
>>> --
>>> Thanks,
>>> parani
>>>
>>>
>>>
>>
>>
>>
>
>
> --
> Thanks,
> parani
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---