Do the following. 1. open the AndroidManifest.xml, 2. Application Tab of AndroidManifest.xml
3. in the Application nodes , you see the .ElectronicSafelocks 4.Select that file, and Next to that or right hand side you will see "Name* with a Browse button. 5. click the Browse button of Name* 6. it popus a window, select .ElectronicSafelocks Again, It will add your .ElectronicSafelocks File again in AndroidManifest.xml file. Try running your application again. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Tue, Jan 10, 2012 at 7:14 PM, niko20 <nikolatesl...@yahoo.com> wrote: > Your activity name in the xml doesnt match your activity name in the > code > > On Jan 9, 10:24 pm, Keith <leftcont...@gmail.com> wrote: > > Can someone please tell me why I keep getting this error. This is > > literally a copy of a working package and i do not understand how to > > fix this. I have searched and read this error from logcat and have not > > been able to relate.I am beneath novice and have been working on this > > for 6 man hours. > > > > 01-09 18:47:55.245: E/AndroidRuntime(303): Caused by: > > java.lang.ClassNotFoundException: go.to.bed3.ElectronicSafelocks in > > loader dalvik.system.PathClassLoader[/data/app/go.to.bed3-1.apk] > > > > package go.to.bed3; > > > > import go.to.bed3.R.id; > > import android.app.Activity; > > import android.content.Intent; > > import android.net.Uri; > > import android.os.Bundle; > > import android.view.View; > > import android.widget.Button; > > > > public class ElectronicSafeLocks extends Activity { > > /** Called when the activity is first created. */ > > public void onCreate(Bundle savedInstanceState) { > > super.onCreate(savedInstanceState); > > setContentView(R.layout.main); > > > > // Button 1 > > Button link1Btn = (Button)findViewById( id.button1 ); > > link1Btn.setOnClickListener( new View.OnClickListener() > > { > > public void onClick(View v) > > { > > Uri uri = Uri.parse( " > http://w3.securitytechnologies.com/Services/TechSupport/Pages/home.as... > > Electronic%20Locks&pl=AD- Series%20Locks# " ); > > startActivity( new Intent( Intent.ACTION_VIEW, uri ) );} > > > > Button link1Btn = (Button)findViewById( id.button1 );}); > > > > // Button 2 > > Button link2Btn = (Button)findViewById( id.button2 ); > > link2Btn.setOnClickListener( new View.OnClickListener() > > { > > public void onClick(View v) > > { > > Uri uri = Uri.parse( "http://www.kaba-ilco.com/access_control/ > > literature/literature_grid_eplex.aspx?id=14 " ); > > startActivity( new Intent( Intent.ACTION_VIEW, uri ) );} > > > > Button link2Btn = (Button)findViewById( id.button2 );}); > > > > // Button 3 > > Button link3Btn = (Button)findViewById( id.button3 ); > > link3Btn.setOnClickListener( new View.OnClickListener() > > { > > public void onClick(View v) > > { > > Uri uri = Uri.parse( "http://www.kaba- ilco.com/access_control/ > > literature/literature_grid_ > > mechanical_pushbutton_locks.aspx?id=13" ); > > startActivity( new Intent( Intent.ACTION_VIEW, uri ) );} > > > > Button link3Btn = (Button)findViewById( id.button3 );}); > > > > //Button 15 > > Button link15Btn = (Button)findViewById( id.button15 ); > > link15Btn.setOnClickListener( new View.OnClickListener() > > { > > public void onClick(View v) > > { > > Uri uri = Uri.parse( > > "http://consumer.schlage.com/Project%20Documents/P515-858.pdf" ); > > startActivity( new Intent( Intent.ACTION_VIEW, uri ) );} > > > > Button link15Btn = (Button)findViewById( id.button15 ); > > > > }); > > }} > > > > main.xml > > > > <?xml version="1.0" encoding="utf-8"?> > > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" > > android:layout_width="fill_parent" > > android:layout_height="fill_parent" > > android:orientation="vertical" > > > > > <ScrollView android:id="@+id/ScrollView01" > > android:layout_width="fill_parent" > > android:layout_height="wrap_content"> > > > > <TableLayout > > android:layout_width="fill_parent" > > android:layout_height="wrap_content"> > > <Button > > android:id="@+id/button2" > > android:layout_width="fill_parent" > > android:layout_height="fill_parent > > android:text="Kaba Eplex"/> > > <Button > > android:id="@+id/button3" > > android:layout_width="fill_parent" > > android:layout_height="fill_parent" > > android:text="Kaba Push Button"/> > > <Button > > android:id="@+id/button1" > > android:layout_width="fill_parent" > > android:layout_height="fill_parent" > > android:text="Schlage/Locknetics"/> > > <Button > > android:id="@+id/button15" > > android:layout_width="fill_parent" > > android:layout_height="fill_parent" > > android:text="Schlage Residental BE365.PDF"/> > > </TableLayout> > > </ScrollView> > > </LinearLayout> > > > > manifest.xml > > <?xml version="1.0" encoding="utf-8"?> > > <manifest xmlns:android="http://schemas.android.com/apk/res/android" > > package="go.to.bed3" > > android:versionCode="2" > > android:versionName="2" > > > <uses-sdk android:minSdkVersion="8" /> > > <uses-permission android:name="android.permission.INTERNET" /> > > <application > > android:icon="@drawable/uglylock" > > android:label="@string/app_name" android:debuggable="true" > > > <activity > > android:label="@string/app_name" > > android:name="go.to.bed3.ElectronicSafelocks" > > > <intent-filter > > > <action android:name="android.intent.action.MAIN" /> > > <category android:name="android.intent.category.LAUNCHER" /> > > </intent-filter> > > </activity> > > </application> > > </manifest> > > > > logcat > > > > 01-09 18:46:43.334: I/Process(280): Sending signal. PID: 280 SIG: 9 > > 01-09 18:47:55.183: D/AndroidRuntime(303): Shutting down VM > > 01-09 18:47:55.183: W/dalvikvm(303): threadid=1: thread exiting > > with uncaught exception enter code here`(group=0x4001d800) > > 01-09 18:47:55.245: E/AndroidRuntime(303): FATAL EXCEPTION: main > > 01-09 18:47:55.245: E/AndroidRuntime(303): java.lang.RuntimeException: > > Unable to `enter code here`instantiate activity > > ``ComponentInfo{go.to.bed3/go.to.bed3.ElectronicSafelocks} > > : `enter code here`java.lang.ClassNotFoundException: go.to.bed3. > > ElectronicSafelocks in loader `enter code > > `dalvik.system.PathClassLoader[/data/app/go.to.bed3-1.apk] > > 01-09 18:47:55.245: E/AndroidRuntime(303): at > > > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585) > > 01-09 18:47:55.245: E/AndroidRuntime(303): > > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) > > 01-09 18:47:55.245: E/AndroidRuntime(303): at > > ``android.app.ActivityThread.access$2300(ActivityThread.java:125) > > 01-09 18:47:55.245: E/AndroidRuntime(303): at > > ``android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) > > 01-09 18:47:55.245: E/AndroidRuntime(303): at > > ``android.os.Handler.dispatchMessage(Handler.java:99) > > 01-09 18:47:55.245: E/AndroidRuntime(303): at > > android.os.Looper.loop(Looper.java:123) > > 01-09 18:47:55.245: E/AndroidRuntime(303): at > > ``android.app.ActivityThread.main(ActivityThread.java:4627) > > 01-09 18:47:55.245: E/AndroidRuntime(303): at > > java.lang.reflect.Method.invokeNative(Native Method) > > 01-09 18:47:55.245: E/AndroidRuntime(303): at > > ``java.lang.reflect.Method.invoke(Method.java:521) > > 01-09 18:47:55.245: E/AndroidRuntime(303): at > > > ``com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.jav > a:868) > > 01-09 18:47:55.245: E/AndroidRuntime(303): at > > ``com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) > > 01-09 18:47:55.245: E/AndroidRuntime(303): at > > dalvik.system.NativeStart.main(Native `enter code here`Method) > > 01-09 18:47:55.245: E/AndroidRuntime(303): Caused by: > > java.lang.ClassNotFoundException: `enter code > > here`go.to.bed3.ElectronicSafelocks in loader `enter code > > here`dalvik.system.PathClassLoader[/data/app/go.to.bed3-1.apk] > > 01-09 18:47:55.245: E/AndroidRuntime(303): at > > ``dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243) > > 01-09 18:47:55.245: E/AndroidRuntime(303): at > > `java.lang.ClassLoader.loadClass(ClassLoader.java:573) > > 01-09 18:47:55.245: E/AndroidRuntime(303): at > > ``java.lang.ClassLoader.loadClass(ClassLoader.java:532) > > 01-09 18:47:55.245: E/AndroidRuntime(303): at > > ``android.app.Instrumentation.newActivity(Instrumentation.java:1021) > > 01-09 18:47:55.245: E/AndroidRuntime(303): at > > `android.app.ActivityThread.perform > > LaunchActivity(ActivityThread.java:2577) > > 01-09 18:47:55.245: E/AndroidRuntime(303): ... 11 more > > 01-09 18:52:55.353: I/Process(303): Sending signal. PID: 303 SIG: 9 > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en