Re: [android-developers] Process large Bitmap on background

2012-08-16 Thread Guilherme Utrabo
José, I don't know NDK to answer about that. But, since api level 10 you can use BitmapRegionDecoder to decode only part of the bitmap at a time. Might be one option: http://developer.android.com/reference/android/graphics/BitmapRegionDecoder.html On 16 August 2012 16:47, Harri Smått

Re: [android-developers] Re: Process large Bitmap on background

2012-08-16 Thread Guilherme Utrabo
Just keep in mind that not all devices supports the largeHeap attribute. On 16 August 2012 17:11, bob b...@coolfone.comze.com wrote: Have you tried this: android:largeHeap = “true” On Monday, August 13, 2012 11:49:55 AM UTC-5, José Ignacio Merino wrote: Hi, When I load the Bitmap with

[android-developers] Is it possible to Canvas.drawBitmap() directly to a file?

2012-07-08 Thread Guilherme Utrabo
I'm trying to reduce memory consuption of my app. It uses Canvas.drawBitmap on a bitmap in memory, and when the drawing is complete, saves it to the sdcard. I'm wondering if there is any way to append the drawing direct to a file via stream, instead of writing the hole bitmap in memory. Do you

[android-developers] decodeFile performance bottleneck - should I consider NDK?

2012-06-25 Thread Guilherme Utrabo
In the application I'm working on, the user selects several images and opts to process them. The application go through those images getting the thumbnail for each one, and then save some info about the image on the database. Today this process takes about 3 minutes to complete for about 300

Re: [android-developers] Re: managedQuery returning deleted files

2012-06-23 Thread Guilherme Utrabo
Nobu, I will try that and post the results. Thanks. Guilherme On 23 June 2012 17:35, Nobu Games dev.nobu.ga...@gmail.com wrote: I'm not yet familiar with MediaStore, but did you try the ContentResolver.

Re: [android-developers] Re: managedQuery returning deleted files

2012-06-23 Thread Guilherme Utrabo
Nobu, It worked. Thanks for the tip. Guilherme On 23 June 2012 17:38, Guilherme Utrabo utr...@gmail.com wrote: Nobu, I will try that and post the results. Thanks. Guilherme On 23 June 2012 17:35, Nobu Games dev.nobu.ga...@gmail.com wrote: I'm not yet familiar with MediaStore, but did

Re: [android-developers] managedQuery returning deleted files

2012-06-23 Thread Guilherme Utrabo
) + AppRootDirectory/ Thank you, Guilherme On 23 June 2012 19:29, Dianne Hackborn hack...@android.com wrote: Fwiw, this is not your application dir. Pictures on external storage is for shared pictures. You shouldn't be putting your own stuff there. On Thu, Jun 21, 2012 at 8:54 PM, Guilherme Utrabo utr

Re: [android-developers] managedQuery returning deleted files

2012-06-23 Thread Guilherme Utrabo
, Guilherme Utrabo utr...@gmail.comwrote: Dianne, Thanks for the information. I thought that was the correct place to put the files because they are all images. Where would be the best place to put them? Ps.: the complete path i'm using is: Environment.getExternalStoragePublicDirectory

[android-developers] managedQuery returning deleted files

2012-06-21 Thread Guilherme Utrabo
I need to delete some images from my application dir (inside Pictures/Application). Though the image gets removed, when I call for the managedQuery() to fill again the grid, the image that I just removed is retrieved. I'm trying to force a scan on the application directory, but it's not working.

[android-developers] Re: managedQuery returning deleted files

2012-06-21 Thread Guilherme Utrabo
Ps.: and here is the method that actually deletes the file: http://pastebin.com/SbBFHuwC On 22 June 2012 00:54, Guilherme Utrabo utr...@gmail.com wrote: I need to delete some images from my application dir (inside Pictures/Application). Though the image gets removed, when I call

[android-developers] Is multithreading recommended for my case?

2012-05-31 Thread Guilherme Utrabo
I have to do some heavy processing in my application. The process comprises a series of routines which has no dependency between them, and could be parallel. I would like to know if there would be some gain if I start threads for each routine in order to parallelize the execution or whether it

Re: [android-developers] Re: BitmapFactory.decodeByteArray *not* failing on a corrupt jpg file

2012-05-31 Thread Guilherme Utrabo
Nathan, Is it possible to you to get a checksum of the image before the file transfer? So you can calc the checksum again after the file transfer and compare to see if the file is corrupted. Regards, Guilherme On 31 May 2012 13:22, Nathan nathan.d.mel...@gmail.com wrote: I've confirmed it

Re: [android-developers] images

2012-03-09 Thread Guilherme Utrabo
Knutsford, I'm not sure, but I think you should store it directly on SD and save the references to these files. Even on larger databases in Oracle and SQL Server people still use this pratice to not overload the database. Only make sure you're checking the file existence before using it. On SD

[android-developers] Performatic way to create a Bitmap?

2012-03-08 Thread Guilherme Utrabo
Hello everybody, I want to get four image files and join then to create one big image file. Is there a performatic way to do it? Thank you. Regards, Guilherme -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

Re: [android-developers] Performatic way to create a Bitmap?

2012-03-08 Thread Guilherme Utrabo
TreKing, Exactly. Sorry for my english. Thanks for the answer. On 8 March 2012 14:12, TreKing treking...@gmail.com wrote: On Mon, Mar 5, 2012 at 10:04 AM, Guilherme Utrabo utr...@gmail.comwrote: I want to get four image files and join then to create one big image file