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 in
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(),
> http://developer.android.com/reference/android/content/Context.html#cr
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?
8 sequential pixels from your bitmap
> 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 A
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?
Than
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 deve
3 3:42:08 AM UTC-6, 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
>
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 b
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:
mgr.toggleSoftInput(InputM
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 the
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 me
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 f
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
--
You
:14:27 AM UTC+1, 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 ha
14 matches
Mail list logo