What is the stack crawl of the crash? On Thu, Jan 7, 2010 at 1:12 PM, MJB <[email protected]> wrote:
> Hi All, > I'm having a problem where my app crashes on the Droid and seems to > work fine on the G1. We have a G1 dev phone but do not have access to > a Droid phone, so the issue is difficult to debug at this stage. > > The app loads up the main screen okay, but once the user moves beyond > the main screen, the app crashes. Moving beyond main screen initiates > the following: > > - GPS signal acquired > - Accelerometer sensor listener active > - Geomagnetic sensor listener active > - Camera preview active > > I have a suspicion that the issue may be related to the camera > preview. With the G1, it didn't seem to matter how I set the camera > preview size, so I just made it fit the size of the view. > > Camera.Parameters parameters = mCamera.getParameters(); > parameters.setPreviewSize(w, h); //where w, h are the width and > height. > > One possibility is that with the Droid having a larger screen > resolution to the G1, it may be setting the preview size to something > that is not supported. I plan on addressing this, but I have a few > questions that I was hoping someone could shed some light on. > > 1. If the app attempts to set a preview size that is not supported, > will it just be ignored or will the app crash? > 2. If the preview size is smaller than the surface that is holding the > preview, will the image be stretched to fill the surface? > 3. Can anyone think of anything else that may be related specifically > to the Droid that could be causing me problems? > > > Thanks, > Mike > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them.
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

