Comments (4)
Something like this should work (untested):
ContentResolver resolver = context.getContentResolver();
Uri uri = mediaManager.getImageContentUri();
long id = mediaManager.getImageId(cursor);
AvindexStore.Images.Media.deleteImage(resolver, uri, id);
from openmemories-framework.
If you really want to delete everything fast, there's an option on the camera to just format the memory card. Deleting them all by showing each one first seems like a very long operation.
from openmemories-framework.
@dany123 I can't reformat the sdcard due to another app (STG) storing files on the sdcard itself, which i use for selected images i want to share rather than everything.
@ma1co thanks, will try that out- is there something special i have to do with the cursor? Every attempt i do makes the emulator crash the app, when i use Cursor cursor = context.getContentResolver().query(uri, AvindexStore.Images.Media.ALL_COLUMNS, null, null, AvindexStore.Images.ImageColumns.CONTENT_CREATED_LOCAL_DATE_TIME);
( i found the query in a issue somewhere around this or a related github)
are there docus on this avindex stuff ? what are they and what do they do?
from openmemories-framework.
@Deph0 The AvindexStore class is a special proprietary Sony API that is only present on the camera. You cannot use this class in the emulator, it will crash. The OpenMemories Framework aims to wrap all proprietary classes into wrappers that include standard Android fallbacks which also work in the emulator.
So you have to test your code directly on the camera. Using the adb feature of OpenMemories: Tweak, this shouldn't be too much of an issue.
Since the class is proprietary, there is no documentation. It is a standard Content Provider, however.
from openmemories-framework.
Related Issues (20)
- Is it possible to make a app that can show Luts when use slog mode?
- Can we get this to work with the Sony A7iii? HOT 4
- How to Bulb shooting? HOT 2
- OpenMemories 1:32:02 recording limit
- Question: Is there a method to shift camera's CMOS by 1-pix?
- question: is it possible to higher burst raw photo count? (turning off curtain) for 24fps video purpose HOT 1
- There is still time limit on A7 with firmware 3.2
- adjustAperture - How to set a value? HOT 1
- Question: Working on A7III? HOT 1
- ILCE6000 firmware v3.21 HOT 1
- Open Memory update for A7III (ILCE-7M3)? HOT 1
- support for a6100 HOT 1
- Development environment
- Documentation: Live preview API HOT 1
- Can't install Openmemories Tweak on SONY RX10 (I) HOT 1
- Question: a5100 firmware setting for [AF w/ shutter] (to enable back button focus) HOT 1
- A7III time limit HOT 2
- SDK Problem
- BULB shooting
- Question setting shutter speed and iso
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openmemories-framework.