natvie code try/catch statement support or not

by Jean-Baptiste Queru » Mon, 22 Dec 2008 10:44:25 GMT


Sponsored Links
 Native code development is not currently supported.

JBQ






-- 
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

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



Other Threads

1. Retrieving the default email from the email client provided by Android

Hi Everyone,
I am developing an application which requires to autopopulate a
default email field.
The logical choice is to retrieve the email address from the email
client provided by android.
I searched the content providers and did not find anything about the
email client.
How is this information stored?
How can I reach it?

Cheers,
Eddie

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

2. Spinner to play sound.

Hi,

I am currently doing an application which will play a sound from a
selection via a spinner. I've tried many ways but I still cannot get
it to play a sound.

Here is my code for the constraints and spinner.

// List-based Constants
        public static final int HAPPY = 0;
        public static final int LAUGHTER = 1;

//code for spinner
Spinner s = (Spinner) findViewById(R.id.SoundSpinner);
                ArrayAdapter adapter = ArrayAdapter.createFromResource
(
                       this, R.array.Sounds,
android.R.layout.simple_spinner_item);
                adapter.setDropDownViewResource
(android.R.layout.simple_spinner_dropdown_item);
                s.setAdapter(adapter);
                s.setOnItemSelectedListener(OnItemSelectedListener);

                Spinner.OnItemSelectedListener OnItemSelectedListerner
= new
                OnItemSelectedListener() {
                        public void onItemSelected(AdapterView parent,
View v, int idNum,
                long id) {


                                                        switch (idNum){
                                case HAPPY:
                                  Music.play(this, R.raw.happy);
                                                break;
                                        case LAUGHTER:
                                                Music.play(this, 
R.raw.laughter);
                                                break;

                             }
                         }
                         public void onNothingSelected(AdapterView
arg0) {}
                     };

I know android's spinner does not respond to setOnItemClickListener.
However, when I changed it to onClick, I get confused with the code
and the application quits by itself when I run it on the emulator. Can
anyone help me? Thank you so much! (:

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

3. Metal replacement battery cover?

4. Build apk from command line

5. Does anyone make video recording work at Android 1.5?

6. Help on video recording

7. porting on ZOOM MDK Redux