[Android Q&A, Help & Troubleshooting] rapsong11:
Hi i am making a muiti-utility math app the main screen has a calculator and a button that says tools when you click tools it takes you to the tools activity there I have a button that says factor calculator and it's (SUPPOSED TO) go to the Factor activity witch is (SUPPOSED TO) load Factor.html from assets/www/Factor.html using phonegap 2.9.0 Phonegap is set up right i have checked!! but when you click the factor calculator button i get a error message saying app name has stopped Please help me!!

here's a copy of my log cat:

06-28 12:53:41.005: D/AndroidRuntime(21461): Shutting down VM

06-28 12:53:41.015: W/dalvikvm(21461): threadid=1: thread exiting with uncaught exception (group=0x40a73930)

06-28 12:53:41.025: E/AndroidRuntime(21461): FATAL EXCEPTION: main

06-28 12:53:41.025: E/AndroidRuntime(21461): java.lang.NoClassDefFoundError: com.h2a.mtz.Factorpg

06-28 12:53:41.025: E/AndroidRuntime(21461):	at com.h2a.mtz.Tools$1.onClick(Tools.java:35)

06-28 12:53:41.025: E/AndroidRuntime(21461):	at android.view.View.performClick(View.java:4204)

06-28 12:53:41.025: E/AndroidRuntime(21461):	at android.view.View$PerformClick.run(View.java:17355)

06-28 12:53:41.025: E/AndroidRuntime(21461):	at android.os.Handler.handleCallback(Handler.java:725)

06-28 12:53:41.025: E/AndroidRuntime(21461):	at android.os.Handler.dispatchMessage(Handler.java:92)

06-28 12:53:41.025: E/AndroidRuntime(21461):	at android.os.Looper.loop(Looper.java:137)

06-28 12:53:41.025: E/AndroidRuntime(21461):	at android.app.ActivityThread.main(ActivityThread.java:5041)

06-28 12:53:41.025: E/AndroidRuntime(21461):	at java.lang.reflect.Method.invokeNative(Native Method)

06-28 12:53:41.025: E/AndroidRuntime(21461):	at java.lang.reflect.Method.invoke(Method.java:511)

06-28 12:53:41.025: E/AndroidRuntime(21461):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)

06-28 12:53:41.025: E/AndroidRuntime(21461):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)

06-28 12:53:41.025: E/AndroidRuntime(21461):	at dalvik.system.NativeStart.main(Native Method)

06-28 12:55:16.568: I/Process(21461): Sending signal. PID: 21461 SIG: 9

06-28 12:55:16.728: E/Trace(21654): error opening trace file: No such file or directory (2)

06-28 13:04:53.271: D/dalvikvm(22238): GC_CONCURRENT freed 58K, 1% free 9003K/9092K, paused 4ms+5ms, total 34ms

06-28 13:04:53.271: D/dalvikvm(22238): WAIT_FOR_CONCURRENT_GC blocked 28ms

06-28 13:04:53.281: W/dalvikvm(22238): Unable to resolve superclass of Lcom/h2a/mtz/Factorpg; (47)

06-28 13:04:53.281: W/dalvikvm(22238): Link of class 'Lcom/h2a/mtz/Factorpg;' failed

06-28 13:04:53.281: E/dalvikvm(22238): Could not find class 'com.h2a.mtz.Factorpg', referenced from method com.h2a.mtz.Tools$1.onClick

06-28 13:04:53.281: W/dalvikvm(22238): VFY: unable to resolve const-class 19 (Lcom/h2a/mtz/Factorpg;) in Lcom/h2a/mtz/Tools$1;

06-28 13:04:53.281: D/dalvikvm(22238): VFY: replacing opcode 0x1c at 0x0004

06-28 13:04:53.301: D/dalvikvm(22238): GC_CONCURRENT freed 111K, 2% free 9295K/9484K, paused 3ms+2ms, total 24ms

06-28 13:04:54.392: D/AndroidRuntime(22238): Shutting down VM

06-28 13:04:54.402: W/dalvikvm(22238): threadid=1: thread exiting with uncaught exception (group=0x40a73930)

06-28 13:04:54.402: E/AndroidRuntime(22238): FATAL EXCEPTION: main

06-28 13:04:54.402: E/AndroidRuntime(22238): java.lang.NoClassDefFoundError: com.h2a.mtz.Factorpg

06-28 13:04:54.402: E/AndroidRuntime(22238):	at com.h2a.mtz.Tools$1.onClick(Tools.java:24)

06-28 13:04:54.402: E/AndroidRuntime(22238):	at android.view.View.performClick(View.java:4204)

06-28 13:04:54.402: E/AndroidRuntime(22238):	at android.view.View$PerformClick.run(View.java:17355)

06-28 13:04:54.402: E/AndroidRuntime(22238):	at android.os.Handler.handleCallback(Handler.java:725)

06-28 13:04:54.402: E/AndroidRuntime(22238):	at android.os.Handler.dispatchMessage(Handler.java:92)

06-28 13:04:54.402: E/AndroidRuntime(22238):	at android.os.Looper.loop(Looper.java:137)

06-28 13:04:54.402: E/AndroidRuntime(22238):	at android.app.ActivityThread.main(ActivityThread.java:5041)

06-28 13:04:54.402: E/AndroidRuntime(22238):	at java.lang.reflect.Method.invokeNative(Native Method)

06-28 13:04:54.402: E/AndroidRuntime(22238):	at java.lang.reflect.Method.invoke(Method.java:511)

06-28 13:04:54.402: E/AndroidRuntime(22238):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)

06-28 13:04:54.402: E/AndroidRuntime(22238):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)

06-28 13:04:54.402: E/AndroidRuntime(22238):	at dalvik.system.NativeStart.main(Native Method)

06-28 13:04:57.565: I/Process(22238): Sending signal. PID: 22238 SIG: 9

06-28 13:04:57.665: E/Trace(22430): error opening trace file: No such file or directory (2)

heres a copy of tools.java:

package com.h2a.mtz;

import android.os.Bundle;

import android.app.Activity;

import android.content.Intent;

import android.view.Menu;

import android.view.View;

import android.view.Window;

import android.widget.Button;

public class Tools extends Activity {

[MENTION=439709]override[/MENTION]

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

requestWindowFeature(Window.FEATURE_NO_TITLE);

setContentView(R.layout.tools);

Button factor=(Button)findViewById(R.id.factorpg);

factor.setOnClickListener(new View.OnClickListener() {

public void onClick(View v) {

Intent myintent2 = new Intent(Tools.this,Factorpg.class);

startActivity(myintent2);

}

});

}

}

Factorpg.java:

package com.h2a.mtz;

import android.os.Bundle;

import android.view.Menu;

import org.apache.cordova.*;

public class Factorpg extends DroidGap {

[MENTION=439709]override[/MENTION]

public void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

super.loadUrl("file:///android_asset/www/Factor.html");

}

[MENTION=439709]override[/MENTION]

public boolean onCreateOptionsMenu(Menu menu) {

// Inflate the menu; this adds items to the action bar if it is present.

getMenuInflater().inflate(R.menu.factorpg, menu);

return true;

}

}

any help is greatly appreciated

Thanks way in advance

rapsong11