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.

-- 
Thanks,
parani

--~--~---------~--~----~------------~-------~--~----~



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.

Ludwig

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,
Parani.






-- 
Thanks,
parani

--~--~---------~--~----~------------~-------~--~----~



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.

HTH

Ludwig

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.

-- 
Thanks,
parani






--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Not able to set APN with 2G network, but works with 3G

You can connect to both 2g and 3g but you see different APN UI depending on
which are you connected to?

I've not heard of a successful data connection (2g or 3g) without an APN.
 In fact, our code won't even try to establish a connection if it doesn't
have an APN entry for your mcc/mnc.

You should be able to see in the logs (under RADIO LOG) "Create from
allApns" followed by a list of suitable apns.  If you don't see "No APN
found" then we found something.

R




> website: 

2. getprop/setprop

Hi all,

I am trying to use getprop()/setprop() in my native application. But, they
are not working. property_set() is working fine; but property_get() is not
working as expected. I want to set some value and want that to be available
on next reboot of the phone. Even ls /data/property/ also shows the value
set (see below). I am using Eclair and working on omap zoomII.

One thing is I am using NFS root. So is there any known bug ?


# ls /data/property/
persist.xxx
persist.yyy
persist.adb.trace_mask
# cat persist.yyy
viral#
#

# getprop persist.yyy

#
-- 
Thanks,
Viral Mehta

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. close: Tanya : Cara Install *.apk ?

4. Ant Build increment Version number

5. How to set location information permanently in the emulator

6. Building pre-optimized system for HTC Dream

7. native c++ api