SurfaceView on G1

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

SurfaceView on G1

Postby JJ » Fri May 01, 2009 12:53 am

Hi

I am finally testing my application on a G1 and even though it works fine on the emulator, it crashes on the G1

it crashes when it does:
setContentView(R.layout.mylayout);

the xml is fairly simple:
<com.google.android.myproject.myView
android:id="@+id/testid"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</com.google.android.babel.myView>

and the view is defined like this:

public class myView extends SurfaceView implements SurfaceHolder.Callback
{
}


Has anybody found a similar problem?

Thanks
JJ
Developer
Developer
 
Posts: 35
Joined: Tue May 13, 2008 1:18 pm

Top

Postby padde » Fri May 01, 2009 9:37 am

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1.  
  2. <com.google.android.myproject.myView
  3.  
  4. ...
  5.  
  6. </com.google.android.babel.myView>
  7.  
  8.  
Parsed in 0.000 seconds, using GeSHi 1.0.8.4


open and close tag doesnt match


Greets
Padde
padde
Master Developer
Master Developer
 
Posts: 443
Joined: Wed Apr 08, 2009 4:52 pm

Postby JJ » Fri May 01, 2009 12:16 pm

oh yeah... sorry about that

I just made a mistake copying and pasting it here, but they do match in my app... they are both called babel, so the error must be another one

Thanks
JJ
Developer
Developer
 
Posts: 35
Joined: Tue May 13, 2008 1:18 pm

Postby padde » Fri May 01, 2009 1:36 pm

Hmm okay then try it without the package name.. just <myView> and </myView>
in the manifest you set a package name.. i guess after that its default.. not sure
but it doesnt hurt to test :)

Greets
Padde
padde
Master Developer
Master Developer
 
Posts: 443
Joined: Wed Apr 08, 2009 4:52 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Majestic-12 [Bot] and 4 guests