开发者

Is there a file picker widget for custom file formats?

I'm writing a bitmap editor. Each document consists of about 3 bitmap layers and documents are, at the moment, saved as a custom file with a .bme extension. These files can be converted to standard jpg/png files by rendering each bitmap on top of one bitmap and saving the latter.

I need some way for the user to be able to select .bme files they've created already. Is there anything in Android that can make this easier for me?

The only option I can see is to write an activity that creates a list view and write a list adapter that looks for .bme files on disk i.e. a copy of the standard "Media Gallery" a开发者_StackOverflow中文版pp that works for my .bme files. The list adapter will either have to generate a thumbnail preview of the image to show to the user or I'll have to package such a preview in the .bme file when they're created.

This is the only option I can think of. I thought I'd ask in case there is more Android friendly way of doing this. For example, can you add custom file support to the "Media Gallery" app?


Is there anything in Android that can make this easier for me?

Nothing built in. If it weren't for the extension filter, you could link to OI File Manager.

This is the only option I can think of.

It seems like a fine, upstanding option.

For example, can you add custom file support to the "Media Gallery" app?

Not that I am aware of, sorry. Besides, that app is not on all phones.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜