Hi
I looked at the adb logcat, and it does not says much, as it is not
crashing in my code
what surprises me, is that it is actually crashing in a class called
"DexFileClass" which I hadn't heard of...
Also, I looked at the View constructor, and again, it doesn't says too
much, apart from the fact that you can call the constructor with 1, 2,
or 3 parameters:
(Context context), (Context context, AttributeSet attrs), or (Context
context, AttributeSet attrs, int defStyle)
I have tried them all, and it keeps crashing...
I googled for DexFileClass, and it says something like a zip
equivalent...
and it fails when uses my custom view:
<com.google.android.babel.babelView
android:id="@+id/babel"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>
the actual babelView source code is at: /babel/src/com/google/android/
babel/babelView.java
Thanks again, and sorry if it doesn't make sense...
On Oct 31, 2:31 am, hackbod <[EMAIL PROTECTED]> wrote:
> View constructor:
>
> http://code.google.com/android/reference/android/view/View.html#View(...)
>
> On Oct 30, 4:56 pm, petunio <[EMAIL PROTECTED]> wrote:
>
> > Hi all
>
> > I did an application for the android developer challenge, and since
> > the deadline for uploading the entries (back in april I think), I
> > haven't played with it
>
> > Well, I have downloaded the new sdk (x86-1.0_r1) and obviously I got a
> > lot of errors with my old code...
> > I have managed to fix all the compile errors, but now, it crashes when
> > I run it
>
> > The problem is:
>
> > - on my xml layout (babel_layout.xml), I used to have the following
> > code:
>
> > <com.google.android.babel.babelView
> > android:id="@+id/babel"
> > android:layout_width="fill_parent"
> > android:layout_height="fill_parent"/>
>
> > - then, on the java file, I have this:
>
> > class babelView extends View
> > {
> > public babelView(Context context, AttributeSet attrs, Map
> > inflateParams)
> > {
> > super(context, attrs);
> > }
>
> > }
>
> > - and, in the main class:
>
> > public class babel extends Activity
> > {
>
> > protected void onCreate(Bundle icicle)
> > {
> > super.onCreate(icicle);
>
> > // Turn off the title bar
> > requestWindowFeature(Window.FEATURE_NO_TITLE);
>
> > // Make our view
> > setContentView(R.layout.babel_layout);
>
> > }
>
> > It crashes when it gets to setContentView !!
> > so, it seems like I am doing something wrong in the xml file, or maybe
> > the way that babelView is defined...
>
> > Any ideas would be really appreciated, and the world will be a much
> > better place, and I will finish my app and I will uploaded to the
> > android market so the world can enjoyed it. (he he)
>
> > This is my app, by the way (using the old m3-rc37a
> > sdk)http://www.jjym.co.uk/babel
>
> > Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---