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

  • SEARCH
  • Home
  • 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 8024569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:54:13+00:00 2026-06-04T22:54:13+00:00

All i am doig is tyrying to switch from one window to the next

  • 0

All i am doig is tyrying to switch from one window to the next but i keep getting errors. i have searched google and have not been able to figure out where im going wrong. i hope someone out there can tell me what is going on. here is the error log. Im getting a classnotfound but cant understand why. its in my manifest.

05-30 23:52:51.129: W/System.err(593): java.lang.ClassNotFoundException: com.jmedia.hvacanalizer.NEWCUSTOMER
05-30 23:52:51.149: W/System.err(593):  at java.lang.Class.classForName(Native >Method)
05-30 23:52:51.149: W/System.err(593):  at java.lang.Class.forName(Class.java:227)
05-30 23:52:51.149: W/System.err(593):  at java.lang.Class.forName(Class.java:174)
05-30 23:52:51.149: W/System.err(593):  at com.jmedia.hvacanalizer.HVACAnalizerActivity$1.onClick(HVACAnalizerActivity.java:30)
05-30 23:52:51.169: W/System.err(593):  at android.view.View.performClick(View.java:3110)
05-30 23:52:51.169: W/System.err(593):  at android.view.View$PerformClick.run(View.java:11934)
05-30 23:52:51.169: W/System.err(593):  at android.os.Handler.handleCallback(Handler.java:587)
05-30 23:52:51.179: W/System.err(593):  at android.os.Handler.dispatchMessage(Handler.java:92)
05-30 23:52:51.179: W/System.err(593):  at android.os.Looper.loop(Looper.java:132)
05-30 23:52:51.190: W/System.err(593):  at android.app.ActivityThread.main(ActivityThread.java:4123)
05-30 23:52:51.190: W/System.err(593):  at java.lang.reflect.Method.invokeNative(Native Method)
05-30 23:52:51.190: W/System.err(593):  at java.lang.reflect.Method.invoke(Method.java:491)
05-30 23:52:51.190: W/System.err(593):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
05-30 23:52:51.199: W/System.err(593):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
05-30 23:52:51.199: W/System.err(593):  at dalvik.system.NativeStart.main(Native Method)
05-30 23:52:51.199: W/System.err(593): Caused by: java.lang.NoClassDefFoundError: com.jmedia.hvacanalizer.NEWCUSTOMER
05-30 23:52:51.212: W/System.err(593):  ... 15 more
05-30 23:52:51.219: W/System.err(593): Caused by: java.lang.ClassNotFoundException: com.jmedia.hvacanalizer.NEWCUSTOMER in loader dalvik.system.PathClassLoader[/data/app/com.jmedia.hvacanalizer-2.apk]

05-30 23:52:51.234: W/System.err(593):  at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:251)
05-30 23:52:51.234: W/System.err(593):  at java.lang.ClassLoader.loadClass(ClassLoader.java:540)
05-30 23:52:51.239: W/System.err(593):  at java.lang.ClassLoader.loadClass(ClassLoader.java:500)
05-30 23:52:51.239: W/System.err(593):  ... 15 more

and here is the code from my manifest…

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

    <uses-sdk android:minSdkVersion="13" />

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" >
        <activity
            android:name=".HVACAnalizerActivity"
            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=".newcustomer"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="com.jmedia.hvacanalizer.NEWCUSTOMER" />

                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>
    </application>

</manifest>

and here is the code from my class…

public class HVACAnalizerActivity extends Activity {

    Button bNew, bLookUp;

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        initialize();
    }

    public void initialize() {
        bNew = (Button) findViewById(R.id.bNewCustomer);
        bLookUp = (Button) findViewById(R.id.bLUCustomer);
        bNew.setOnClickListener(new View.OnClickListener() {

            //@Override
            public void onClick(View arg0) {
                // TODO Auto-generated method stub
                try {
                    Class<?> newCustomerClass = Class.forName("com.jmedia.hvacanalizer.NEWCUSTOMER");
                    Intent newCustomerIntent = new Intent(
                            HVACAnalizerActivity.this, newCustomerClass);
                    startActivity(newCustomerIntent);

                } catch (ClassNotFoundException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                }
            }
        });
        bLookUp.setOnClickListener(new View.OnClickListener() {

            //@Override
            public void onClick(View arg0) {
                // TODO Auto-generated method stub
                // Class newCustomerClass = null;

            }
        });
    }

if someone can help me out here that would be great. this is my first attempt at coding for the android and im already about to pull my hair out.

  • 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-04T22:54:14+00:00Added an answer on June 4, 2026 at 10:54 pm

    Just as a reference for others i want to post the answer. I was looking in the wrong spot. The problem was a coding error in the initialize method in the newcustomer class. I think it was where i had referenced the same button that is in my hvacanalizeractivity class by mistake. hope this helps other beginners like me.

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

Sidebar

Related Questions

All, I have a guestbook feature on my site and I keep getting spammed.
All, I have the following code: $fetch = mysql_query(SELECT * FROM calendar_events where event_status='booked'
All the articles I've found via google are either obsolete or contradict one another.
All the examples I've come across using Google Maps API seem to show a
All, I have some script tags that are not working in Wordpress. If I
All programs that I develop utilize the default Windows Design template: Besides from changing
All, Say I have the following bit of code: select: function(start, end, allDay) {
All, I have the following date: Wed Feb 01 2012 09:30:00 GMT-0600 (Central Standard
All, I have about 3000 words with definitions that I am loading into a
All the examples of use and tutorials I have found on beginBackgroundTaskWithExpirationHandler: show how

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.