Android app unable to start activity componentinfo?

Your null pointer exception seems to be on this line: String url = intent.getExtras(). GetString("userurl") because intent.getExtras() returns null when the intent doesn't have any extras You have to realize that this piece of code: Intent Main = new Intent(this, ToClass. Class); Main.

PutExtra("userurl", url); startActivity(Main) doesn't start the activity you wrote in Main. Java Also, there is no such thing as android.intent.action. Start so the manifest should look more like: activity android:name=".

Start" android:label="@string/app_name".

Your null pointer exception seems to be on this line: String url = intent.getExtras(). GetString("userurl"); because intent.getExtras() returns null when the intent doesn't have any extras. You have to realize that this piece of code: Intent Main = new Intent(this, ToClass.

Class); Main. PutExtra("userurl", url); startActivity(Main); doesn't start the activity you wrote in Main. Java Also, there is no such thing as "android.intent.action.

Start" so the manifest should look more like: I hope this fixes some of the issues you are encountering but I strongly suggest you check out some "getting started" tutorials for android development and build up from there.

I removed the code you pointed out, and edited my manifest file but I still get a force close. This is the new error from logcat: 08-01 12:28:01.522: ERROR/AndroidRuntime(807): java.lang. RuntimeException: Unable to instantiate activity ComponentInfo{com.amrit.

Musifind/com.amrit.musifind. Start}: java.lang. InstantiationException: com.amrit.musifind.

Start – Slicekick Aug 1 at 17:28 again, I'll need more than the first line of the call stack – Mircea Nistor Aug 1 at 17:44 I fixed it, I had "public abstract class" instead of just "public class". Thanks! – Slicekick Aug 1 at 17:48.

07-31 23:45:19.592: ERROR/AndroidRuntime(716): java.lang. 07-31 23:45:18.682: INFO/ActivityManager(63): Start proc com.amrit. 07-31 23:45:19.592: ERROR/AndroidRuntime(716): java.lang.

Start activity ComponentInfo{com.amrit. 07-31 23:45:19.592: ERROR/AndroidRuntime(716): Caused by: java.lang. 07-31 23:45:19.612: INFO/Process(63): Sending signal.

07-31 23:45:19.642: INFO/dalvikvm(716): Wrote stack trace to '/data/anr/traces.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions