how to get the listview item's default "on-pressed" drawable resource id

by [EMAIL PROTECTED] » Sat, 29 Nov 2008 16:31:08 GMT


Sponsored Links
 how to get the listview item's default  "on-pressed" drawable resource
id? I mean the orange background image when the listview's item is
pressed.

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



Other Threads

1. Taking picture with camera and getting content uri

Hi,
how can start taking picture with camera and in dialog result get uri
for that picture.

I did following:

... for audio
Intent intent = new Intent
("android.provider.MediaStore.RECORD_SOUND");
startActivityForResult(intent, 2);

... for picture
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(intent, 3);
...
@Override
    protected void onActivityResult(int requestCode, int resultCode,
Intent data) {
        super.onActivityResult(requestCode, resultCode, data);

        String result = "";
        switch (requestCode){
        case 2:
            if (resultCode == Activity.RESULT_OK){
                result = data.toURI();
                // FOR AUDIO I DID GET CONTENT URI AND IT EXISTS ON
SDCARD
            }
            break;
        case 3:
            if (resultCode == Activity.RESULT_OK){
                 // HERE I WOULD LIKE TO GET CONTENT URI FOR PICTURE
AND I CAN'T FIND IT ANYWHERE
            }
            break;
        }
    }

I have noticed that in extras there is some Parcel object but I don't
know how to use it?

With
[
intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(new File
(Environment.getExternalStorageDirectory(), path)));
]
before starting activity I can get picture but I need to set path and
I don't know how to find what is its content uri ?!

Can anybody help ?

Thanks, MATijA.

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

2. eclipse error: missing required Java project

hi list, beginner here.

I am getting 3 eclipse errors:

Project 'foo' is missing required Java project: 'bar'
The project cannot be built until build path errors are resolved
Conversion to Dalvik format failed with error 1

anyone seen this?

Thanks

Dejan

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

3. Procedure to obtain Google Maps API key

4. <Android-Beginners> Query : How to get the full path of the files under "res" folder of an Android App?

5. Application permissions to change time/date

6. A useful Group

7. How to exit App without closing the Emulator Window