What exactly is being passed into onMeasure()?

by ajb468 » Fri, 23 Apr 2010 00:21:52 GMT


Sponsored Links
 I don't understand the method onMeasure(int widthMeasureSpec, int
heightMeasureSpec). In the example I have seen, MeasureSpec.getMode()
is used, and passed in the widthMeasureSpec or heightMeasureSpec to
find the restrictions placed on the View's boundaries. The restictions
are either "EXACTLY," "AT_MOST," or "UNSPECIFIED." Well my questions
is, what determines these restictions? What calls and passes the
arguments of onMeasure that determine these restrictions? Is it the
parent View? Please help, im so confused.

--



Other Threads

1. magic?

I was explaining to my friend Martijn how something works in one of my
apps, and I was wondering why it worked on my G1 and Magic phones but
not on a Hero: "I start the camera, than a lot of magic happens, then
I get a link to the picture and I work from there". Martijn says "ah,
that's the problem. You should make it so that a lot of Hero happens!"


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

2. Video decoder: LCML_InitMMCodec fails

Hi,

I am using the following android code for Omap Zoom2 target:
Android Code RLS25.6 version
Omap Kernel 2.6.27

When I try to playback the video content it is failing in the LCML MMC
Init. Kindly help me in correcting it. Thanks in advance

E/PV      ( 1200): PVLOG:TID
(0xed8c0):Time=185:PVMFOMXVideoDecNode::Initializing OMX component and
decoder for role video_decoder.h263
E/PV      ( 1200): PVLOG:TID
(0xed8c0):Time=185:PVMFOMXVideoDecNode::DoPrepare(): There are 2
components of role video_decoder.h263
I/TI_Video_Decoder( 1200): TI Video Decoder
E/PV      ( 1200): PVLOG:TID
(0xed8c0):Time=213:PVMFOMXVideoDecNode::DoPrepare(): Got Component
OMX.TI.Video.Decoder handle
E/PV      ( 1200): PVLOG:TID
(0xed8c0):Time=213:PVMFOMXVideoDecNode::NegotiateComponentParameters()
In
E/PV      ( 1200): PVLOG:TID
(0xed8c0):Time=213:PVMFOMXVideoDecNode::NegotiateComponentParameters()
Found Input port index 0
E/PV      ( 1200): PVLOG:TID
(0xed8c0):Time=213:PVMFOMXVideoDecNode::NegotiateComponentParameters()
Found Output port index 1
E/PV      ( 1200): PVLOG:TID
(0xed8c0):Time=213:PVMFOMXVideoDecNode::NegotiateComponentParameters()
Inport buffers 4,size 460800
E/PV      ( 1200): PVLOG:TID
(0xed8c0):Time=213:PVMFOMXVideoDecNode::NegotiateComponentParameters()
Outport buffers 4,size 614400
E/PV      ( 1200): PVLOG:TID
(0xed8c0):Time=214:PVMFOMXVideoDecNode::DoPrepare(): Changing
Component state Loaded -> Idle
E/PV      ( 1200): PVLOG:TID
(0xed8c0):Time=216:PVMFOMXVideoDecNode::CreateInputMemPool() start
E/PV      ( 1200): PVLOG:TID
(0xed8c0):Time=216:PVMFOMXVideoDecNode::CreateInputMemPool()
allocating buffer header pointers and shared media data ptrs
E/PV      ( 1200): PVLOG:TID
(0xed8c0):Time=216:PVMFOMXVideoDecNode::CreateInputMemPool() done
E/PV      ( 1200): PVLOG:TID
(0xed8c0):Time=216:PVMFOMXVideoDecNode::ProvideBuffersToComponent()
enter
E/PV      ( 1200): PVLOG:TID
(0xed8c0):Time=246:PVMFOMXVideoDecNode::ProvideBuffersToComponent()
done
E/PV      ( 1200): PVLOG:TID
(0xed8c0):Time=246:PVMFOMXVideoDecNode::CreateOutMemPool() start
E/PV      ( 1200): PVLOG:TID
(0xed8c0):Time=246:PVMFOMXVideoDecNode::CreateOutMemPool() Allocating
output buffer header pointers
E/PV      ( 1200): PVLOG:TID
(0xed8c0):Time=246:PVMFOMXVideoDecNode::CreateOutMemPool() done
E/PV      ( 1200): PVLOG:TID
(0xed8c0):Time=246:PVMFOMXVideoDecNode::ProvideBuffersToComponent()
enter
D/TI_Video_Decoder( 1200): VIDDEC_InitDSP_Mpeg4Dec():7128
LCML_InitMMCodec Failed!...80001009
D/TI_Video_Decoder( 1200): VIDDEC_HandleCommand():2485 LCML Error 1

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

3. How to capture any screen? [Like screen shot does in DDMS]

4. TextView with layout wrap_content problem

5. WebView opens a browser

6. Genre filtering for music application

7. How to Enable Hardware Audio Codecs in android OMAP zoom2