![]() |
Android TTakePhotoFromCameraAction: Dateiname?
Hallo zusammen und ein gutes neues Jahr :hi:
ich habe eine kleine Frage bezüglich der Aufname von Fotos mittels der TTakePhotoFromCameraAction auf Android Geräten. Fotos aufnehmen und auch das sie automatisch in der Galerie gespeichert werden ist damit ja denkbar einfach. Gibt es beim aufnehmen der Fotos eine Möglichkeit den Dateinamen unter dem das Foto in der Galerie gespeichert wird zu bekommen?? (Oder einen eigenen Dateinamen zu vergeben wäre auch Ok) Hoffentlich hat jemand eine Idee Danke schon mal :-D |
AW: Android TTakePhotoFromCameraAction: Dateiname?
Da wirst Du wohl nichts machen können, da die Datei von der FMXMediaLibrary automatisch gespeichert wird:
Code:
Einzige Möglichkeit wäre, die neueste Datei aus dem Verzeichnis zu suchen und diese dann umzubenennen.
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; } } } |
Alle Zeitangaben in WEZ +1. Es ist jetzt 08:55 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz