Code example for LinkedList

Methods: add

0
    else                        downloadMms(item);
  } 
 
  private void downloadMmsWithRadioChange(DownloadItem item) {
    Log.w("MmsDownloader", "Handling MMS download with radio change...");
    pendingMessages.add(item);
    issueConnectivityRequest(); 
  } 
 
  private void downloadMms(DownloadItem item) {
    Log.w("MmsDownloadService", "Handling actual MMS download...");
    MmsDatabase mmsDatabase;
 
    if (item.getMasterSecret() == null) {
      mmsDatabase = DatabaseFactory.getMmsDatabase(context);
    } else { 
      mmsDatabase = DatabaseFactory.getEncryptingMmsDatabase(context, item.getMasterSecret());
    } 
 
    try { 
      RetrieveConf retrieved = MmsDownloadHelper.retrieveMms(context, item.getContentLocation(),