what is difference between View's Canvas and Bitmap's Canvas

by Romain Guy » Sat, 07 Mar 2009 00:46:01 GMT


Sponsored Links
 There's no difference, a Canvas is a Canvas :)






-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

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



Other Threads

1. export the Term

hello,

I would like to know how to have the console on my platform...

I ported Android on a APF27 and it works :-)

Now i need to have the console... I have an Term.apk file but
complete... Should i download and built mydroid again?

thanks


--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. getting java exception during bootup

Hi All,
        I am trying to bring android on ppc64 platform .i have got whole
android source almost compiled
        when i am trying to boot from target board not able to see UI
screen.instaed of that on console it is throwing

followingg exception.
 here i m attaching o/p of logcat.

D/ AndroidRuntime (75): >>>>>>>>>>>>>> AndroidRuntime STARDT
<<<<<<<<<<<<<<
D/AndroidRuntime( 75): CheckJNI is OFF D / AndroidRuntime (75):
CheckJNI is OFF
D/AndroidRuntime( 75): --- registering native functions --- D /
AndroidRuntime (75): registering native functions --- ---
I/Zygote ( 75): Preloading classes... I / Zygote (75): Preloading
classes ...
D/dalvikvm( 75): GC freed 762 objects / 42056 bytes in 6ms D /
dalvikvm (75): GC freed 762 objects / 42056 bytes in 6ms
D/dalvikvm( 75): GC freed 278 objects / 17152 bytes in 7ms D /
dalvikvm (75): GC freed 278 objects / 17152 bytes in 7ms
D/dalvikvm( 75): GC freed 208 objects / 12680 bytes in 8ms D /
dalvikvm (75): GC freed 208 objects / 12680 bytes in 8ms
D/dalvikvm( 75): Trying to load lib /system/lib/libmedia_jni.so 0x0
D / dalvikvm (75): Trying to load lib / system / lib /

libmedia_jni.so 0x0
D/dalvikvm( 75): Added shared lib /system/lib/libmedia_jni.so 0x0 D /
dalvikvm (75): Added shared lib / system / lib /

libmedia_jni.so 0x0
D/dalvikvm( 75): Trying to load lib /system/lib/libmedia_jni.so 0x0
D / dalvikvm (75): Trying to load lib / system / lib /

libmedia_jni.so 0x0
D/dalvikvm( 75): Shared lib '/system/lib/libmedia_jni.so' already
loaded in same CL 0x0 D / dalvikvm (75): Shared lib '/

system / lib / libmedia_jni.so' already loaded in same CL 0x0
D/dalvikvm( 75): Trying to load lib /system/lib/libmedia_jni.so 0x0
D / dalvikvm (75): Trying to load lib / system / lib /

libmedia_jni.so 0x0
D/dalvikvm( 75): Shared lib '/system/lib/libmedia_jni.so' already
loaded in same CL 0x0 D / dalvikvm (75): Shared lib '/

system / lib / libmedia_jni.so' already loaded in same CL 0x0
DD/dalvikvm( 75): Trying to load lib /system/lib/libmedia_jni.so 0x0
D / dalvikvm (75): Trying to load lib / system / lib /

libmedia_jni.so 0x0
D/dalvikvm( 75): Shared lib '/system/lib/libmedia_jni.so' already
loaded in same CL 0x0 D / dalvikvm (75): Shared lib '/

system / lib / libmedia_jni.so' already loaded in same CL 0x0
D/dalvikvm( 75): GC freed 462 objects / 29152 bytes in 10ms D /
dalvikvm (75): GC freed 462 objects / 29152 bytes in 10ms
D/dalvikvm( 75): GC freed 3576 objects / 172272 bytes in 25ms D /
dalvikvm (75): GC freed 3576 objects / 172272 bytes in 25ms
D/dalvikvm( 75): GC freed 11345 objects / 400176 bytes in 40ms D /
dalvikvm (75): GC freed 11345 objects / 400176 bytes in

40ms
D/dalvikvm( 75): GC freed 10456 objects / 437880 bytes in 50ms D /
dalvikvm (75): GC freed 10456 objects / 437880 bytes in

50ms
D/dalvikvm( 75): GC freed 10981 objects / 459808 bytes in 54ms D /
dalvikvm (75): GC freed 10981 objects / 459808 bytes in

54ms
D/dalvikvm( 75): GC freed 14349 objects / 506008 bytes in 63ms D /
dalvikvm (75): GC freed 14349 objects / 506008 bytes in

63ms
D/dalvikvm( 75): GC freed 11304 objects / 480872 bytes in 57ms D /
dalvikvm (75): GC freed 11304 objects / 480872 bytes in

57ms
D/dalvikvm( 75): GC freed 5956 objects / 249704 bytes in 50ms D /
dalvikvm (75): GC freed 5956 objects / 249704 bytes in 50ms
W/zipro ( 75): Bad offset to local header: 565766 (at 317) W / zipro
(75): Bad offset to local header: 565,766 (at 317)
W/dalvikvm( 75): Exception Landroid/content/res/Resources
$NotFoundException; thrown during Landroid/text/AutoText;.<clinit> W

/ dalvikvm (75): Exception Landroid / content / res / Resources $
NotFoundException; thrown during Landroid / text /

AutoText;. <clinit>
D/AndroidRuntime( 75): Shutting down VM D / AndroidRuntime (75):
Shutting down VM
W/dalvikvm( 75): threadid=3: thread exiting with uncaught exception
(group=0x4000fe70) W / dalvikvm (75): threadid = 3:

thread exiting with uncaught exception (group = 0x4000fe70)
D/dalvikvm( 75): DestroyJavaVM waiting for non-daemon threads to exit
D / dalvikvm (75): DestroyJavaVM waiting for non-daemon

threads to exit
D/dalvikvm( 75): DestroyJavaVM shutting VM down D / dalvikvm (75):
DestroyJavaVM shutting down VM
D/dalvikvm( 75): VM cleaning up D / dalvikvm (75): VM cleaning up
D/dalvikvm( 75): LinearAlloc 0x0 used 1170676 of 4194304 (27%) D /
dalvikvm (75): LinearAlloc 0x0 used 1170676 of 4194304

(27%)
D/skia ( 75): purging 6K from font cache [1 entries] D / skia (75):
purging from 6K font cache [1 entries]
D/AndroidRuntime( 76): D / AndroidRuntime (76):
D/AndroidRuntime( 76): >>>>>>>>>>>>>> AndroidRuntime START
<<<<<<<<<<<<<< D / AndroidRuntime (76): >>>>>>>>>>>>>>

AndroidRuntime START <<<<<<<<<<<<<<
D/AndroidRuntime( 76): CheckJNI is OFF D / AndroidRuntime (76):
CheckJNI is OFF
D/AndroidRuntime( 76): --- registering native functions --- D /
AndroidRuntime (76): registering native functions --- ---
I/Zygote ( 76): Preloading classes... I / Zygote (76): Preloading
classes ...
D/dalvikvm( 76): GC freed 762 objects / 42056 bytes in 7ms D /
dalvikvm (76): GC freed 762 objects / 42056 bytes in 7ms
D/dalvikvm( 76): GC freed 278 objects / 17152 bytes in 7ms D /
dalvikvm (76): GC freed 278 objects / 17152 bytes in 7ms
D/dalvikvm( 76): GC freed 208 objects / 12680 bytes in 8ms D /
dalvikvm (76): GC freed 208 objects / 12680 bytes in 8ms
D/dalvikvm( 76): Trying to load lib /system/lib/libmedia_jni.so 0x0
D / dalvikvm (76): Trying to load lib / system / lib /

libmedia_jni.so 0x0
D/dalvikvm( 76): Added shared lib /system/lib/libmedia_jni.so 0x0 D /
dalvikvm (76): Added shared lib / system / lib /

libmedia_jni.so 0x0
D/dalvikvm( 76): Trying to load lib /system/lib/libmedia_jni.so 0x0
D / dalvikvm (76): Trying to load lib / system / lib /

libmedia_jni.so 0x0
D/dalvikvm( 76): Shared lib '/system/lib/libmedia_jni.so' already
loaded in same CL 0x0 D / dalvikvm (76): Shared lib '/

system / lib / libmedia_jni.so' already loaded in same CL 0x0
D/dalvikvm( 76): Trying to load lib /system/lib/libmedia_jni.so 0x0
D / dalvikvm (76): Trying to load lib / system / lib /

libmedia_jni.so 0x0
D/dalvikvm( 76): Shared lib '/system/lib/libmedia_jni.so' already
loaded in same CL 0x0 D / dalvikvm (76): Shared lib '/

system / lib / libmedia_jni.so' already loaded in same CL 0x0
D/dalvikvm( 76): Trying to load lib /system/lib/libmedia_jni.so 0x0
D / dalvikvm (76): Trying to load lib / system / lib /

libmedia_jni.so 0x0
D/dalvikvm( 76): Shared lib '/system/lib/libmedia_jni.so' already
loaded in same CL 0x0 D / dalvikvm (76): Shared lib '/

system / lib / libmedia_jni.so' already loaded in same CL 0x0
D/dalvikvm( 76): GC freed 462 objects / 29152 bytes in 11ms D /
dalvikvm (76): GC freed 462 objects / 29152 bytes in 11ms
D/dalvikvm( 76): GC freed 3576 objects / 172272 bytes in 25ms D /
dalvikvm (76): GC freed 3576 objects / 172272 bytes in 25ms
D/dalvikvm( 76): GC freed 11345 objects / 400176 bytes in 40ms D /
dalvikvm (76): GC freed 11345 objects / 400176 bytes in

40ms
D/dalvikvm( 76): GC freed 10456 objects / 437880 bytes in 50ms D /
dalvikvm (76): GC freed 10456 objects / 437880 bytes in

50ms
D/dalvikvm( 76): GC freed 10981 objects / 459808 bytes in 54ms D /
dalvikvm (76): GC freed 10981 objects / 459808 bytes in

54ms
D/dalvikvm( 76): GC freed 14349 objects / 506008 bytes in 63ms D /
dalvikvm (76): GC freed 14349 objects / 506008 bytes in

63ms
D/dalvikvm( 76): GC freed 11304 objects / 480872 bytes in 57ms D /
dalvikvm (76): GC freed 11304 objects / 480872 bytes in

57ms
D/dalvikvm( 76): GC freed 5956 objects / 249704 bytes in 49ms D /
dalvikvm (76): GC freed 5956 objects / 249704 bytes in 49ms
W/dalvikvm( 76): Exception Landroid/content/res/Resources
$NotFoundException; thrown during Landroid/text/AutoText;.<clinit> W

/ dalvikvm (76): Exception Landroid / content / res / Resources $
NotFoundException; thrown during Landroid / text /

AutoText;. <clinit>
D/AndroidRuntime( 76): Shutting down VM D / AndroidRuntime (76):
Shutting down VM
W/dalvikvm( 76): threadid=3: thread exiting with uncaught exception
(group=0x4000fe70) W / dalvikvm (76): threadid = 3:

thread exiting with uncaught exception (group = 0x4000fe70)
D/dalvikvm( 76): DestroyJavaVM waiting for non-daemon threads to exit
D / dalvikvm (76): DestroyJavaVM waiting for non-daemon

threads to exit
D/dalvikvm( 76): DestroyJavaVM shutting VM down D / dalvikvm (76):
DestroyJavaVM shutting down VM
D/dalvikvm( 76): VM cleaning up D / dalvikvm (76): VM cleaning up
D/dalvikvm( 76): LinearAlloc 0x0 used 1170676 of 4194304 (27%) D /
dalvikvm (76): LinearAlloc 0x0 used 1170676 of 4194304

(27%)
D/skia ( 76): purging 6K from font cache [1 entries] D / skia (76):
purging from 6K font cache [1 entries]
D/AndroidRuntime( 7 D / AndroidRuntime (7  : :


does anybody have any idea about Resource$NotFoundException...
i want to know which resource it is asking? any pointer will help .


--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. Android project in subversion - .svn copied in bin folder

4. "Apple iPhone Developers Mostly Don't Make Much Money"

5. Can we access GSM phone data at the application level?

6. How to set category of manifest file in program?

7. Query regarding javafx on android!