[android-developers] how to keep imageview items in imageadapter of a gridview

2010-07-12 Thread dadaowuwei
Hi All,
I would like to keep  all the customized imageviews of a gridview in
an arraylist of imageadapter which could be further referenced by the
method getitem(position) instead of return null.
Could any one give me some ideas?

thank you very much,
Best,.

Song

-- 
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 from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] how to implement getitem(position) in image adapter of hello-gridview to return customized imageview

2010-07-12 Thread dadaowuwei
Hi All,
in hello-gridview sample code there is a method  getitem(position) in
the class of image adapter which returns null for the sample example.
However, this method is important and is supposed to return the
corresponding data item of the imageadapter.
For example the imageadapter could generate a series of customized
imageviews by magically calling the getview method.
How could we implement the getitem(position) method under this case to
help us gain access to these customized imageviews?

thanks,

Song

-- 
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 from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] some quesitions for opencore framework integration process

2010-04-23 Thread dadaowuwei
Hi,
I am quite new for android onpencore framework and have some
questions  for integrating process of a new openmax mjpeg component
1. can I directly inherit the omx_component_video class to form my
own
mjpeg component?
2. how pvmf consumes the output buffer of the component, what kind of
decoded data should i put onto the output buffer so that these data
will be recognized by pvmf and played (this helps me to design my
decoder)
3. when pvmf  first sends fillthisbuffer command to component,I
wonder
how pvmf could indicate the component where the file is?
4. If the file needs to be serialized before filling in the input
buffer and who serialize it component or pvmf?
thank you very much,
Best Regards,
Dadao

-- 
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 from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] how to integrate a mjpeg decoder into open core framework

2010-04-22 Thread dadaowuwei
Hi,
I am quite new for android onpencore framework and have some
questions  for integrating process of a new openmax mjpeg component

1. can I directly inherit the omx_component_video class to form my own
mjpeg component?
2. how pvmf consumes the output buffer of the component, what kind of
decoded data should i put onto the output buffer so that these data
will be recognized by pvmf and played (this helps me to design my
decoder)
3. when pvmf  first sends fillthisbuffer command to component,I wonder
how pvmf could indicate the component where the file is?
4. If the file needs to be serialized before filling in the input
buffer and who serialize it component or pvmf?

thank you very much,
Best Regards,

Dadao

-- 
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 from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] android 1.6 emulator not shown in ddms

2009-11-15 Thread dadaowuwei

recently I try to run my program on android 1.6 emulator.  when I
launch the emulator I can see it in my ddms with offline
state,however, after a while it disappears from ddms.
Any ideas?

thanks

-- 
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 from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ERROR: the user data image is used by another emulator. aborting

2009-11-15 Thread dadaowuwei
Have you solved your problem?
I get the same problem, is there any solution yet?

thanks

On 12 Nov, 21:36, Susan ska...@gmail.com wrote:
 I have read the many threads regarding this issue, but none of the
 proposed solutions has actually solved the problem for me. And judging
 by the frequency of threads about it, that hasn't solved it for a lot
 of other people either. =)

 Here's the problem: When I run my code, seemingly out of nowhere I'll
 get theerrorshown in the subject line:

      ERROR: theuserdataimageisusedbyanotheremulator.aborting

 This *seems* straightforward, but I only have oneemulatorrunning. =\
 As evidence, please see this screenshot:

      http://screencast.com/t/YzQ5MGUyNTkt

 This happens after I run a varying number of successful executions.
 Sometimes I may get three in before theerror, sometimes I may get
 twenty. In this most recent case I had probably run the code fifteen
 times in 45 minutes. Here's the output from the console:

      http://screencast.com/t/YjAzYzk1NmYt

 When this happens, I can try to run it as many times as I like, but
 I'll continue to get the sameerrorevery time:

      [2009-11-12 20:14:21 - AnalogClockWidget]Android Launch!
      [2009-11-12 20:14:21 - AnalogClockWidget]adb is running normally.
      [2009-11-12 20:14:21 - AnalogClockWidget]No Launcher activity
 found!
      [2009-11-12 20:14:21 - AnalogClockWidget]The launch will only
 sync the application package on the device!
      [2009-11-12 20:14:21 - AnalogClockWidget]Performing sync
      [2009-11-12 20:14:21 - AnalogClockWidget]Automatic Target Mode:
 launching newemulatorwith compatible AVD 'savd2'
      [2009-11-12 20:14:21 - AnalogClockWidget]Launching a newemulator
 with Virtual Device 'savd2'
      [2009-11-12 20:14:21 -Emulator]emulator:ERROR: 
 theuserdataimageisusedbyanotheremulator.aborting

 The first million times this happened I thought there might be some
 sort of conflict with having more than one AVD set up -- maybe somehow
 one started automatically if the other was busy or something -- so I
 finally deleted all my AVDs and created one single AVD that is now the
 only one in existence. Here is a screenshot of the SDK and AVD manager
 showing that there is only one AVD hanging around:

      http://screencast.com/t/YjM4NmMwNG

 The problem is fixable by closing theemulatorand making a new one,
 but as we all know that takes a painful 3-6 minutes each time.

 Does anybody know what could be causing this? The first twenty times I
 restarted theemulatorthis afternoon, I was able to spend the
 intervening five minutes straightening up the kitchen. But I'm running
 out of stuff to clean. =(

 Thanks!

-- 
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 from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en