Moto Milestone

by pperotti » Sat, 09 Jan 2010 03:25:34 GMT


Sponsored Links
 Hi Everyone,

Does anybody know how to identify consistently when a device is a
motorola milestone ? None of the parameters in the Build class seems
to report consistently among the devices that are currently in the
market.

I have seen that some devices identifies as A853 and other as
Milestone. Any appreciation will be welcome.

Regards, Pablo



Other Threads

1. Article about Android

Hello everybody!

I have to write a Scientific/Technical article for a class and I
thought about Android. The problem is that I've been struggling with
gathering ideas for a theme because I don't want it to be a tutorial.
Got any ideas?

I know that this is a little bit off subject, but this is a community
and I though...let's give it a try.

Thank you in advance
--~--~---------~--~----~------------~-------~--~----~

2. Has anybody been able to blur an image?

Hello all, I have to blur an image and I have implemented my own blur
algorithm (gaussian), but it is too slow (I guess it is due to the
emulator and the interpreted nature of the Dalvik VM).

I have found the class android.graphics.BlurMaskFilter but I haven't
been able to apply it successfully to an image (Bitmap).

If I try something like:

        Paint blurPaint = new Paint();
        blurPaint.setFilterBitmap(true);
        blurPaint.setMaskFilter(new BlurMaskFilter(radius,
BlurMaskFilter.Blur.NORMAL));

        Bitmap blurred = Bitmap.createBitmap(800, 600,
Bitmap.Config.RGB_565);
        Canvas c = new Canvas(blurred);
        c.drawBitmap(originalBitmap, 0, 0, blurPaint);

nothing happens (well, the borders of the image appear with shade,
with seems normal, according to "Note: if the paint contains a
maskfilter that generates a mask which extends beyond the bitmap's
original width/height (e.g. BlurMaskFilter), then the bitmap will be
drawn as if it were in a Shader with CLAMP mode. "

But the image is not blurred!!

I have tried a different approach passing the image to grey scale, the
grey to the alpha channel (because there is only a extractAlpha()
method that takes a Paint) and then:

Bitmap blurredBitmap = bm.extractAlpha(blurPaint, new int[] {0, 0});

But it makes the VM crash!! (seems like a bug inside the
extractAlpha() method, because extractAlpha() without params also
crash). It crashes when I use Bitmap.Config.ARGB_8888 or
Bitmap.Config.ARGB_4444, but not if I use Bitmap.Config.RGB_565, but
then obviously I lose the alpha information and the resulting bitmap
is all black.

Could anybody please provide a working example of blurring an image?

Thanks in advance,

Jose Luis.



--~--~---------~--~----~------------~-------~--~----~

3. java-bindings for custom c-library on android?

4. How to insert image?

5. How can I get the current page's url of the web browser?

6. Streaming video with m5 SDK

7. Android Email Team - Email Message Flags and Imap Idle