Error Inflating class

by Deepanjan » Tue, 01 Jul 2008 22:07:32 GMT


Sponsored Links
 Hi Frndz,

I am encountering an Application error when I am trying to open a
ListActivity from another activity using startActivity().

The error is

"Application error:<package name>"
"An error has occured in <package name>.Binary xml file line #xxx:
Error inflating class accelerateInterpolator."

The source code of the class extending ListActivity is

import android.app.ListActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;

public class MainMenuList extends ListActivity {
        private String[] listItems = {"Login", "Edit Settings"};

        protected void onCreate(Bundle icicle) {
                super.onCreate(icicle);
        setListAdapter(new ArrayAdapter<String>(this,
                android.R.layout.simple_list_item_1, listItems));
        }
}

The entry for this activity is also present in the AndroidManifest.xml
file.

I am Eclipse 3.4 with the "android-sdk_m5-rc15_windows" sdk.

Do any one have encountered this error earlier. How can I solve it?

Thanks
Deepanjan

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



Other Threads

1. Layout question - how to replicate what the iPhone does...

Hi there,

I have an application that consists of a series of tasks, and I'm
struggling to replicate a user experience that is simple to implement
on the iPhone.

In the abstract: on the home screen, I'd like there to be a list of
four tasks, of various kinds.

-- Two will invite the user to click on them, with an arrow. When they
are complete, they show a tick.
-- One task is dependent on the others, so it will be greyed out until
the others are completed. Then it looks like the others.
-- Another task runs in the background, so it has a progress icon
running until it's finished, instead of an arrow.

To show what I mean concretely, this is the application that I'm
trying to replicate - check out the home screen: 
http://www.fixmystreet.com/iphone/

How would I even start to create a home screen that looks like this in
Android? Essentially I need clickable areas with text and icons.
Buttons can't have images attached, nor can they be greyed out. Maybe
a List... but you can't attach checkboxes or progress indicators to
individual items. Is a series of WebViews the best way?

Or should I use something radically different like a TabWidget? I do
like the layout here, though...

Can anyone help? I'm really struggling to know what to do!

Thank you for your help!

Anna
--~--~---------~--~----~------------~-------~--~----~

2. Handler for map panning

I have searched this group extensively and have not found the answer
to my issue.

I have a lot of server data being loaded into overlays and I want to
create the overlays as the user pans.  Ideally it would wait for the
user to stop panning before it started loading the data.

What is the best practices procedure for determining if the map has
changed location or zoom level?  I was looking for something along the
lines of onLocationChanged() for MapView or onPan() but I have not
seen anything like that.

Do I just need to set up my own parameters and Override onDraw() in
the MapView and in that method run tests to see if the map has
changed?  This idea seems like overkill and would lead to overzealous
server hits.

Anyone have a better idea?

Thanks.
--~--~---------~--~----~------------~-------~--~----~

3. Making VideoView play automatically

4. Is anyone else getting bored of announced product releases that don't materialise ...

5. cupcake 1.5 r1 surfaceCreated is not called!!!

6. TabHost launching Intent multiple times

7. HTC Magic release in Spain, with apps on SD?