Einzelnen Beitrag anzeigen

Benutzerbild von Union
Union

Registriert seit: 18. Mär 2004
Ort: Luxembourg
3.487 Beiträge
 
Delphi 7 Enterprise
 
#2

AW: Android TTakePhotoFromCameraAction: Dateiname?

  Alt 9. Jan 2015, 11:42
Da wirst Du wohl nichts machen können, da die Datei von der FMXMediaLibrary automatisch gespeichert wird:
Code:
public void takeImageFromCamera(int paramInt1, int paramInt2)
  {
    Intent localIntent;
    if (hasActivity())
    {
      this.mMaxWidth = paramInt1;
      this.mMaxHeight = paramInt2;
      localIntent = new Intent("android.media.action.IMAGE_CAPTURE");
    }
    try
    {
      File localFile = setUpPhotoFile();
      this.mCurrentPhotoPath = localFile.getAbsolutePath();
      localIntent.putExtra("output", Uri.fromFile(localFile));
      if (hasActivity()) {
        this.mActivity.startActivityForResult(localIntent, 1);
      }
      return;
    }
    catch (IOException localIOException)
    {
      for (;;)
      {
        localIOException.printStackTrace();
        this.mCurrentPhotoPath = null;
      }
    }
  }
Einzige Möglichkeit wäre, die neueste Datei aus dem Verzeichnis zu suchen und diese dann umzubenennen.
Ibi fas ubi proxima merces
sudo /Developer/Library/uninstall-devtools --mode=all
  Mit Zitat antworten Zitat