How to design xml file for my requirement?

by sri » Wed, 31 Mar 2010 02:11:47 GMT

Sponsored Links
 hi all,

I want to list all image, audio, video files in listview.
for every record i displayed bitmap and name of file(text).
but for video file i want to play video(just beside name of file i.e
in its bitmap) if user keep pressed that file for long time.

any suggestions are appreciated.



Other Threads

1. OOT: How to hold the new iphone

Regarding the signal reception issue on the new Iphone, here is how to hold
the phone

Kind Regards

- Lorensius W. L. T -
- -

"Indonesian Android Community [id-android]" 

2. AIDL, Binder, ResultReceiver, and Performance

AIDL/Binder by design don't have a performance impact when making a call in
the same process.  This turns into a direct call on to the target's
interface implementation.  (Note in the future we may introduce indirection
there to make the semantics of the local case better match that of remote
calls...  but not today.)

The big thing this introduces is a whole lot more effort and complexity for
the developer, as they now need to deal with AIDL interfaces.

Also note that if you know this service is in the same process, you can use
the same local calling trick as the LocalService sample -- pass it an
IBinder, which the service simply casts to a concrete local object to call.

If the purpose of this code (and I haven't looked at it to know) is to send
a command to the service and get told later when it is done, then this is a
reasonable approach.  There are some potential edge cases where the result
won't be delivered though (if the process is in the background and gets
killed and its service restarted), so I would recommend giving it a
PendingIntent to deliver a result to the activity rather than an interface
to a live object.  You can make this with Activity.createPendingResult().

On the other hand, if the purpose of this is to tell the service about the
activity running for it to know about and send information back during that
time, it is bad because this is not the semantics of startService().  You
want to use bindService() for that.

Dianne Hackborn
Android framework engineer

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.


3. anyone have a spare phone to sell?

4. Retrieve Image size for HTC devices

5. Pre-Order Kaos Android Meets Jakarta + Battery&EB

6. Apakah ada master spica di Pluit dan sekitarnya?

7. Download and install application