Android specific property

by arvind krishna » Tue, 24 Jun 2008 06:17:36 GMT

Sponsored Links

I have the following requirement: based on the platform (Linux, Windows etc) I 
need to set some properties which in turn affects software behavior. I was 
looking at querying "" property which is set to "Linux" "Windows*" etc. 
However, when I run the software on the Android Emulator is Linux as 

My question: Does Android set any property (that tells me that I am on Android) 
by default that I can query and use? 

Thanks in Advance,

Sent from Yahoo! Mail.
A Smarter Email 


Other Threads

1. Encrypting in PHP and Decrypting in Android

What would I use to: Encrypt a string in PHP and Decrypt that string
from Android?  What methods are supported by both and which is the
most secure?


2. input box text validation

i am using this inputbox for asking name to the user. I need to
validate that user does not enter empty string and if enters i am
trying not to dismiss the dialog

new AlertDialog.Builder(this)
                             .setTitle("Success !")
                             .setPositiveButton("OK", new 
                                  public void onClick(DialogInterface d, int 
which) {
                                          // if (input.getText().toString() != 
null && !"".equals
( input.getText().toString() )) {
                                          String text = 
                                          boolean b1 = (null == text);
                                          boolean b2 = ("" == text);
                                          boolean b3 = (0 == text.length());
                                          if(b1 || b2 || b3) {
                                          else {

here even if the if block is true and dismiss statement is in else,
the dialog disappears ! i want to dialog remain as is [may be title
says cannot be empty] and asks for a nonempty value and stay there

any helps are thanked



3. ADC 2 and Android Market Place Application Error

4. fwd: get the file path from a URI instance

5. No surfaceCreated() callback after phone wakes up

6. Android unnecessarily hard to unit test?

7. Reg: PHone panics on mentioning X and Y value in Bitmap.createBitmap method