title: best practice for sending data using intent to other activity?
body: <p>i created a listview with video thumbnail
  i already know how to use the media info and how to list it.</p>
  
  <p>my question is what is the best programming practice for
  sending media info like String, Integer, or even a Bitmap?</p>
  
  <p>Parcelable or Seralizeable or just ID of it from cursor?</p>
  
  <p>i want to maximize my speed performance of my apps,</p>
  
  <p>they say parce is good, some seializeable but others programers
  say its best to just only pass the ID or the position for cursor than using objects
  etc..</p>
  
  <p>which is good from these 3? </p>
  
  <ol>
  <li><p>Parcelable </p></li>
  <li><p>Seralizeable</p></li>
  <li><p>just ID cursor etc, or position of the list?</p></li>
  </ol>
  
  <p>example:</p>
  
  <p>ACTIVITY A</p>
  
  <pre><code>@Override
      public void onListItemClick(ListView l, View v, int position, long id) {
          // MOVE TO CLICK POSITION
          videoCursor.moveToPosition(position);
  
          // GET THE COLUMN INDEX OF THE FILEPATH, TITLE, ARTIST, DURATION
          videoPathColumnIndex = videoCursor
                  .getColumnIndexOrThrow(MediaStore.Video.Media.DATA);
          videoTitleColumnIndex = videoCursor
                  .getColumnIndexOrThrow(MediaStore.Video.Media.TITLE);
          videoArtistColumnIndex = videoCursor
                  .getColumnIndexOrThrow(MediaStore.Video.Media.ARTIST);
          videoDurationColumnIndex = videoCursor
                  .getColumnIndexOrThrow(MediaStore.Video.Media.DURATION);
          videoImageColumnIndex = videoCursor.getInt(videoCursor
                  .getColumnIndexOrThrow(MediaStore.Video.Media._ID));
  
          // LIST THE DATA FROM STRING OF THE COLUMNINDEX OF THE VIDEOCURSOR POSITION
          videoPath = videoCursor.getString(videoPathColumnIndex);
          videoTitle = videoCursor.getString(videoTitleColumnIndex);
          videoArtist = videoCursor.getString(videoArtistColumnIndex);
          videoDuration = videoCursor.getString(videoDurationColumnIndex);
  
          // START THE NEW INTENT ACTIVITY AND PASS SOME MEDIA INFO
          videoIntent = new Intent(this, Play.class);
          videoIntent.putExtra(KEY_VIDEO_PATH, videoPath);
          videoIntent.putExtra(KEY_VIDEO_TITLE, videoTitle);
          videoIntent.putExtra(KEY_VIDEO_ARTIST, videoArtist);
          videoIntent.putExtra(KEY_VIDEO_DURATION, videoDuration);
  
          startActivity(videoIntent);
      }
  </code></pre>
  
  <p>this my code i can send the title, the path, the artist, i can also play the video through path, if i want to send the VideoThumbnail using the id only how to use putExtra and send the ID and get from ACTIVITY B and used the data?</p>