OS Details

by parani kumar » Wed, 29 Oct 2008 20:46:03 GMT

Sponsored Links
 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.



OS Details

by Ludwig » Wed, 29 Oct 2008 21:47:36 GMT

 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.


2008/10/29 parani kumar <[EMAIL PROTECTED]>


Sponsored Links

OS Details

by parani kumar » Wed, 29 Oct 2008 23:07:14 GMT

 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,



OS Details

by Ludwig » Thu, 30 Oct 2008 00:06:17 GMT

 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.



2008/10/29 parani kumar <[EMAIL PROTECTED]>


OS Details

by parani kumar » Thu, 30 Oct 2008 13:18:41 GMT

 Dear Ludwig,

Thanks for your help, I will try this out.

you are the one who light me as a ice breaker.



Other Threads

1. How do I change the textColorPrimary in a theme?

I'm changing the theme of an activity in onCreate using setTheme (I'm
doing that even before calling super.onCreate(), as this is supposed
to be more reliable).

It does work in the sense that it changes the background and
foreground colors. However, my layout has a few elements that use
styles like textAppearanceLarge. Now Android's textAppearanceLarge
internally uses the textPrimaryColor - which is still unchanged by my

I tried to override the primary text color in my theme, but that
doesn't seem to work.

Here is the crucial part of the theme:

<style name="Theme.MyApp.White">
   <item name="android:background">@android:color/white</item>
   <item name="android:textColor">#000000</item>

The background appears white, plain TextViews appear black... but
TextViews using textAppearanceLarge are white, and as such invisible
(white on white).

I tried things like this:

   <item name="android:ColorPrimary">#000000</item>
   <item name="android:textColorPrimary">#000000</item>
   <item name="android:attr/textColorPrimary">#000000</item>

But none of those do anything. What's the magic trick?


2. Modified Files in Linux kernel for android

Hi all,

New to android.....

Can any one tell me "what are the files needs to be changed
mandatorily in the linux kernel with respect to android to port to
other platforms??"

What are the major dependencies with respect to android porting to
other platform???

unsubscribe: android-kernel+unsubscr...@googlegroups.com

3. Why is it that moderators never accept my questions?

4. Widget inside a pre-existing application

5. Drawing 2D stuff on the screen in OpenGL over a 3D scene

6. Is there any way or tool to test NAND performance on my android phone

7. "can not be resolved to a type" errors while generating List View in Eclipse