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 9082807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:38:33+00:00 2026-06-16T20:38:33+00:00

I am new to Android development. Been recently tried to have my own Facebook

  • 0

I am new to Android development.
Been recently tried to have my own Facebook like sliding out menu , but can’t get it work , its doesn’t contain any error in eclipse checking and build up , but when i run it on emulator , the emulator gave me a force close error just no reason.Have done a lot of
this is the tutorial i follow Johnkil Sidenavigation

have done some reseach on debugging technique but don’t know where should i start ,
But i think it is just my layout problem , What am i missing?
Here is part of my code , please let me know how kind of information i need to provide

MainActivity.java

    package com.nazartt.johntest;

import com.actionbarsherlock.app.SherlockActivity;
import com.actionbarsherlock.view.MenuItem;

import android.os.Bundle;

public class MainActivity extends SherlockActivity {
    SideNavigationView sideNavigationView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        SideNavigationView sideNavigationView = (SideNavigationView)findViewById(R.id.side_navigation_view);
        sideNavigationView.setMenuItems(R.menu.side_navigation_menu);

    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
            case android.R.id.home:
                sideNavigationView.toggleMenu();
                return true;

            default:
                return super.onOptionsItemSelected(item);
        }
    } 


}

here is part my related xml code

activity_main.xml

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity" >

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_centerVertical="true"
        android:text="@string/hello_world" />
    <com.devspark.sidenavigation.SideNavigationView
        android:id="@+id/side_navigation_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

</RelativeLayout>

this is insert menu folder…
side_navigation_menu.xml

<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" >

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/hello_world" />
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/hello_world" />
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/hello_world" />
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/hello_world" />

</menu>

here is the logcat,

    12-28 05:29:33.643: E/Trace(11550): error opening trace file: No such file or directory (2)
12-28 05:29:33.656: E/AndroidRuntime(11550): FATAL EXCEPTION: main
12-28 05:29:33.656: E/AndroidRuntime(11550): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.nazartt.johntest/com.nazartt.johntest.MainActivity}: java.lang.ClassNotFoundException: com.nazartt.johntest.MainActivity
12-28 05:29:33.656: E/AndroidRuntime(11550):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1983)
12-28 05:29:33.656: E/AndroidRuntime(11550):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
12-28 05:29:33.656: E/AndroidRuntime(11550):    at android.app.ActivityThread.access$600(ActivityThread.java:130)
12-28 05:29:33.656: E/AndroidRuntime(11550):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
12-28 05:29:33.656: E/AndroidRuntime(11550):    at android.os.Handler.dispatchMessage(Handler.java:99)
12-28 05:29:33.656: E/AndroidRuntime(11550):    at android.os.Looper.loop(Looper.java:137)
12-28 05:29:33.656: E/AndroidRuntime(11550):    at android.app.ActivityThread.main(ActivityThread.java:4745)
12-28 05:29:33.656: E/AndroidRuntime(11550):    at java.lang.reflect.Method.invokeNative(Native Method)
12-28 05:29:33.656: E/AndroidRuntime(11550):    at java.lang.reflect.Method.invoke(Method.java:511)
12-28 05:29:33.656: E/AndroidRuntime(11550):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
12-28 05:29:33.656: E/AndroidRuntime(11550):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
12-28 05:29:33.656: E/AndroidRuntime(11550):    at dalvik.system.NativeStart.main(Native Method)
12-28 05:29:33.656: E/AndroidRuntime(11550): Caused by: java.lang.ClassNotFoundException: com.nazartt.johntest.MainActivity
12-28 05:29:33.656: E/AndroidRuntime(11550):    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
12-28 05:29:33.656: E/AndroidRuntime(11550):    at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
12-28 05:29:33.656: E/AndroidRuntime(11550):    at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
12-28 05:29:33.656: E/AndroidRuntime(11550):    at android.app.Instrumentation.newActivity(Instrumentation.java:1053)
12-28 05:29:33.656: E/AndroidRuntime(11550):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1974)
12-28 05:29:33.656: E/AndroidRuntime(11550):    ... 11 more

here is my manifest

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.nazartt.johntest"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="17" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/Theme.Sherlock.Light" >
        <activity
            android:name="com.nazartt.johntest.MainActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name="com.actionbarsherlock.ActionBarSherlock"
            android:label="@string/app_name" >
        </activity>
        <activity
            android:name="com.nazartt.johntest.ISideNavigationCallback"
            android:label="@string/app_name" >
        </activity>
        <activity
            android:name="com.nazartt.johntest.SideNavigationItem"
            android:label="@string/app_name" >
        </activity>
        <activity
            android:name="com.nazartt.johntest.SideNavigationView"
            android:label="@string/app_name" >
        </activity>
    </application>

</manifest>
  • 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-06-16T20:38:34+00:00Added an answer on June 16, 2026 at 8:38 pm

    I ended up restudy about android project setup and download some android example from github and learn how they setup and import library. To newbies who might encounter the same problem , make sure you understand how an android application build , especially when you importing other library into your project.
    Important path to look at when you want to import a library

    Project->properties->android
    Project->properties->java build path
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to Java programming / Android development - but I have been
I am new to Java & Android development, but I have been able to
I am relitively new to Android development, but have been following a book, but
I am very new to android development and have been trying to draw a
I am new to Android development so have been picking things up over the
I am new to android development and I have been having issues with Force
I have been learning android development and I am still new to this. I
So I'm pretty new to android development and have been trying to piece together
I am new to Android layout development and have been tasked with designing and
I'm new in android development. I have been trying to start a new activity

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.