Android specific property

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


Sponsored Links
 Hi,

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 "os.name" property which is set to "Linux" "Windows*" etc. 
However, when I run the software on the Android Emulator os.name is Linux as 
well. 

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,
Arvind


      __________________________________________________________
Sent from Yahoo! Mail.
A Smarter Email  http://uk.docs.yahoo.com/nowyoucan.html 

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



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

http://www.anddev.org/viewtopic.php?p=12915

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

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

regards

-- 

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