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. LVL airplane mode use case ...

This simple use case is proving trickier than I would have thought it
would be. My app is designed to operate while the phone is in airplane
mode.

1) A user downloads the app, runs it once with wireless connectivity
to get a license.

Then there are two cases to consider:

2a) User requests a refund with the permitted timeframe, and
2b) User is happy with the app, and switches to airplane mode forever.

My initial approach is to set the validity timestamp preference to
some date far in the future. This is fine for 2b, but what about 2a?
During the refund period, seems to me that my app should interact with
the license server just like any standard ServerManagedPolicy-based
app would, and only after the refund period expires would I set the
cache validity horizon to forever. Can I rely on refund mechanism
deleting my app and stored preferences thereby making 2a a non-issue?

It occurs to me that a very useful server extra would be a boolean
indicating whether the refund period has expired.

-- 

2. About Promo code concept in android

Hi All,

   Can any one tell me, is there any promo code concept in android for our
apps like in the iPhone. If yes please provide me the necessary information
how to do that?????????

-- 
Thanks & Regards
B.NagaRaju
Software Engineer
9966990732
WWW.arijasoft.com

-- 

3. Changing app name in market

4. Programmatically access Android social network settings

5. RawContactsEntity - Invalid column aggregation_mode

6. Remote Service - Reconnecting

7. How to know the home launcher app packagename through programming?