[android-developers] AvoidXfermode is deprecated since API 16, is there a replacement?

2013-04-21 Thread AndroidCompile
Hi, I need to draw a bitmap on another bitmap, but I only want to draw on top of pixels that have a specific color (transparent in this case) . I understand that AvoidXfermode could do that, but it is deprecated since API 16. Is there a different method to this now ? -- -- You received this

[android-developers] Which is more suitable for uploading large files? a service on separate process or ...

2013-04-18 Thread AndroidCompile
Hi, When an application needs to upload many large files, which would be a better solution: 1) Doing this on a separate process (i.e. remote service)? 2) Using a separate thread (or AsyncTask)? Is there a clear and definite answer to this? The application, by the way, is uploading things all

[android-developers] Why I receive a wrong valuew from InputMethodManager.isFullScreenMode()?

2013-03-18 Thread AndroidCompile
InputMethodManager contains a function called isFullscreenMode() that is supposed to return a boolean that indicated whether the soft keyboard is in extract mode (full screen) or not. In my application I switch from portrait to landscape mode and bring up the keyboard:

[android-developers] Is there any way of knowing the screen size before rotation occurs?

2013-03-04 Thread AndroidCompile
Hi, I am trying to figure out the screen size I will have in portrait and in landscape at the beginning of my app. I can get the real display size using Display.getRealSize() and then calculate the navigation bar height in case there is one. However, in devices with 600dp or less the navigation

[android-developers] Re: Can I decide how bitmaps are compressed via png?

2013-01-11 Thread AndroidCompile
, AndroidCompile wrote: Hi, Is it possible to determine that a bitmap is compressed (programatically, of course) as a png image with an 8 bit color palette? 4 bit? I know there are different types of png compressions, can I decide which type is used? If the answer is no, can anyone recommend a method

[android-developers] Re: Can I decide how bitmaps are compressed via png?

2013-01-10 Thread AndroidCompile
Eventually I figured out the answer myself: in Android it's not possible. I had to make changes to the Android frameworks to enable this feature (skia for that matter: you may look at https://github.com/androidcompile/Android_external_skia_pngCompression), but otherwise, as a developer

[android-developers] Can I decide how bitmaps are compressed via png?

2013-01-06 Thread AndroidCompile
Hi, Is it possible to determine that a bitmap is compressed (programatically, of course) as a png image with an 8 bit color palette? 4 bit? I know there are different types of png compressions, can I decide which type is used? If the answer is no, can anyone recommend a method for doing so?

[android-developers] Best bitmap compression for 2 color Bitmaps

2012-12-30 Thread AndroidCompile
Hi, Can anyone recommend a way to compress a 2 color Bitmap? (preferably a lossless one) I suppose I should use RGB_565 (I am currently using ARGB) , but other than that, what should give me the best compression ratio? (JPEG, PNG,...) Should I think of my own compression algorithm for this?

[android-developers] Re: Best bitmap compression for 2 color Bitmaps

2012-12-30 Thread AndroidCompile
where a set bit represents one color and an unset bit the other. If you want to go fancy you could RLE-encode the sequence of pixels but then you might as well store the image as a palette-based PNG. On Sunday, December 30, 2012 8:04:33 AM UTC-6, AndroidCompile wrote: Hi, Can anyone

[android-developers] Re: Can two applications that run in the same process have different STATIC object values?

2012-12-27 Thread AndroidCompile
Thanks, tried it and it works... On Thursday, December 27, 2012 11:53:51 AM UTC+2, Massycat wrote: From the second app, you can create a Context that is the same as that of the first app using createPackageContext(),

[android-developers] Can two applications that run in the same process have different STATIC object values?

2012-12-22 Thread AndroidCompile
I created two Android applications that share the same user Id (sharedUserId) as well as the same process. In the first app, on startup, I set a static int variable to 1 (it's default is 0). In the second app, I load (using reflection) the same class from the other app and read the static

[android-developers] Get the calling thread's id

2012-11-19 Thread AndroidCompile
Hi, Is it possible to retrieve the id of a thread that called a certain function? (assuming this function can be called from several threads) I know that it is possible to ask a Binder object which Process had called it, but is it also possible with threads from the same process? Thanks --

[android-developers] Re: Get the calling thread's id

2012-11-19 Thread AndroidCompile
, AndroidCompile wrote: Hi, Is it possible to retrieve the id of a thread that called a certain function? (assuming this function can be called from several threads) I know that it is possible to ask a Binder object which Process had called it, but is it also possible with threads from the same

[android-developers] Can I tell if a Bitmap is blank?

2012-10-16 Thread AndroidCompile
Hi, Does anyone know if there's an easy way to tell whether a Bitmap is all black (blank)? Thank you -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe