a.kollar
a.kollar

Reputation: 43

Issue with android intents:

Alright so I have been trying to get all of my separate classes (At present two) into one class using intents. Also been scouring the nets trying to figure out what is wrong and how I can get everything under one roof.

Here is the link to the code: My code as of present time.
I know all of this works so far since each individual class works on its own. I checked the manifest all is fine on there. Eclipse is showing me no errors yet as soon as I run it, the code biffs.

Its likly something stupid I know but I have been wracked over this for the last few days and I feel like I cant move forward in the code unless I can get this problem solved since I will just end up back at this problem.

Upvotes: 0

Views: 59

Answers (2)

barry
barry

Reputation: 4147

Android does not use "main()" methods. All you need to launch your app is to register one of your activities as the main launcher activity. You do this in the manifest.

Then when the users touches the app icon, that activity will be displayed.

Upvotes: 1

D-32
D-32

Reputation: 3255

You don't have to use a main-method! In your manifest you declare with which Activity your App should start with. This Activity is a class that will extend "Activity". You can override the onCreate activity and start doing stuff in there. I hope I didn't misunderstand you...

This Document might help you: http://developer.android.com/guide/components/index.html

Upvotes: 1

Related Questions