Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6612911
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:09:15+00:00 2026-05-25T20:09:15+00:00

I have just a little problem in my layout <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent

  • 0

I have just a little problem
in my layout

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical" android:layout_width="fill_parent"
    android:layout_height="fill_parent" android:weightSum="1">

    <ImageButton android:id="@+id/startLogo"
    android:layout_height="230dp"
    android:adjustViewBounds="true"
    android:background="@drawable/whatelsecomics"
    android:layout_width="230dp"
    android:layout_gravity="center_horizontal"/>

</LinearLayout>

in my activity I have

public class WhatelsecomicsActivity extends Activity {

    private ImageButton whatelsecomics;

    @Override
    public void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       setContentView(R.layout.main); // your layout file name

       whatelsecomics = (ImageButton) findViewById(R.id.startLogo); // your image button

    // click event on your button
    whatelsecomics.setOnClickListener(new View.OnClickListener() {
        public void onClick(View v) {
            Intent wecSeriesList = new Intent(WhatelsecomicsActivity.this, wecSeriesListActivity.class);
            //Start next activity
            WhatelsecomicsActivity.this.startActivity(wecSeriesList);
        }
    });
}

}

in my log

09-23 21:31:05.081: ERROR/AndroidRuntime(3805): FATAL EXCEPTION: main
09-23 21:31:05.081: ERROR/AndroidRuntime(3805): java.lang.RuntimeException: Unable to start activity ComponentInfo{zepod.whatelsecomics/zepod.whatelsecomics.WhatelsecomicsActivity}: java.lang.NullPointerException
09-23 21:31:05.081: ERROR/AndroidRuntime(3805):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
09-23 21:31:05.081: ERROR/AndroidRuntime(3805):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
09-23 21:31:05.081: ERROR/AndroidRuntime(3805):     at android.app.ActivityThread.access$1500(ActivityThread.java:117)
09-23 21:31:05.081: ERROR/AndroidRuntime(3805):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
09-23 21:31:05.081: ERROR/AndroidRuntime(3805):     at android.os.Handler.dispatchMessage(Handler.java:99)
09-23 21:31:05.081: ERROR/AndroidRuntime(3805):     at android.os.Looper.loop(Looper.java:123)
09-23 21:31:05.081: ERROR/AndroidRuntime(3805):     at android.app.ActivityThread.main(ActivityThread.java:3683)
09-23 21:31:05.081: ERROR/AndroidRuntime(3805):     at java.lang.reflect.Method.invokeNative(Native Method)
09-23 21:31:05.081: ERROR/AndroidRuntime(3805):     at java.lang.reflect.Method.invoke(Method.java:507)
09-23 21:31:05.081: ERROR/AndroidRuntime(3805):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
09-23 21:31:05.081: ERROR/AndroidRuntime(3805):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
09-23 21:31:05.081: ERROR/AndroidRuntime(3805):     at dalvik.system.NativeStart.main(Native Method)
09-23 21:31:05.081: ERROR/AndroidRuntime(3805): Caused by: java.lang.NullPointerException
09-23 21:31:05.081: ERROR/AndroidRuntime(3805):     at zepod.whatelsecomics.WhatelsecomicsActivity.onCreate(WhatelsecomicsActivity.java:21)
09-23 21:31:05.081: ERROR/AndroidRuntime(3805):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
09-23 21:31:05.081: ERROR/AndroidRuntime(3805):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
09-23 21:31:05.081: ERROR/AndroidRuntime(3805):     ... 11 more

Anyone can say me why?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T20:09:16+00:00Added an answer on May 25, 2026 at 8:09 pm

    If you’re using Eclipse, click Project->Clean... (and rebuild it if you don’t have it automatically doing so). The usual cause of problems like this is the R file isn’t properly generated so that rebuilds the project to generate it again.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a little problem... I have made an Android application which extends the
mmm, I have just a little confusion about multiple auto declarations in the upcoming
Just a little confused here... I have a function in postgres, and when I'm
Just wondering what little scripts/programs people here have written that helps one with his
Ok. I have looked EVERYWHERE and my little brain just can't understand a better
I just started out with C and have very little knowledge about performance issues
I'm trying to create a scrollable layout in Android. Even using developers.android.com, though, I
Short Question I have a 50dip by 40dip button in my Android XML layout.
I have a little problem with dompdf , Instead of generating the PDF, the
I have a little problem where need to do a hash of a number

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.