Android 1.6 on unbranded (no vodafone) HTC Magic

by Vlad » Mon, 07 Dec 2009 14:05:18 GMT

Sponsored Links
 I am afraid HTC has no interest of providing updated versions. They
want us to spend extra $$ and buy new devices! I am getting no support
from them. I had to go to local guy to hack it and upload genuine
Android with Maps etc. My original did not come with any of those



Other Threads

1. Properly Attaching Bitmap to Canvas

I have a drawing app I'd like to have the ability to:

1) in onDraw, display a 'thumbnail' view of the current screen to to
user (thumbnail will be in bottom corner, so the user can see where
they are if they zoom in)

2) save the Screen to the SD card as an image file.

So I am trying to figure out how to set up my View properly such that
I can access the Bitmap that the onDraw is drawing too as I need it
from anywhere (I will need to save the Bitmap when the calling
Activity is being shutdown, etc).

I have two fields in my custom View class, mCanvas, mBitmap.  In
onSizeChanged(), when the View is expanded, I instatiate the objects
like so:

mCanvas = new Canvas();
mBitmap = Bitmap.createBitmap(getWidth(), getHeight(),

My understanding is that calling draw(mCanvas) sets the canvas to use
in subsequent onDraw() calls so that all drawing in onDraw will be
sent via mCanvas to mBitmap.  Is this correct?

I ask because I have been trying to tackle #1 above, and when I get a
scaled version of the bitmap in onDraw when I try to draw the
thumbnail, the scaled version is not showing the elements that are
being added to the canvas.  For instance, if I draw lines to the
canvas, via onDraw, I see those on the screen.  If I draw more lines,
those show up.  If I then zoom in and at the time of zooming, scale
the bitmap, it is blank.  Here is how I am scaling the bitmap,
thumbnailRectF is a rectangle that I draw to the screen prior to this
call, using it as a border for the thumbnail:

Bitmap out = Bitmap.createScaledBitmap(mBitmap, 100, 100, false);
canvas.drawBitmap(out, null, thumbnailRectF, thumbCanvasPaint);

Am I doing something obviously incorrect in how I am attaching the
View's built-in canvas to my mBitmap?  Can anyone suggest a better way
to do this?




2. Install on SD card using adb.exe - doesn't work?

Hi all!

Trying to run following command:
C:\Users\evgeny>"D:\Android\android-sdk_r07-windows\tools\adb.exe" -d
install -s "D:\MyTest.apk"
and getting
Error: Unknown option: -s

However the adb -help is showing
 adb install [-l] [-r] [-s] <file> - push this package file to the
device and install it
                                ('-l' means forward-lock the app)
                                ('-r' means reinstall the app, keeping
its data)
                                ('-s' means install on SD card instead
of internal storage)

My manifest has attribute android:installLocation="preferExternal"

Looks like this issue has been reported

What wrong in my command? And what can be an other way to test the SD
card installation?

Thanks a lot,


3. ported android input pheripheral issues

4. Replacing touchscreen with touchpad

5. Development Tools Crashing

6. HELP ME - Bagaimana cara melacak android yang hilang?

7. OpenGL Textures