Android App Won't Launch
I'm making an android app in eclipse, and this is the following error I'm getting when I run the app: [2014-07-03 17:39:30 - LeapMotionApp] ActivityManager: Starting: Intent { act=
Solution 1:
You should not declare your activity there (on your activity_main.xml), declare it on your manifest if it isnt already there, should look a little like this
<activityandroid:name=".MainActivity"android:label="@string/app_name" ><intent-filter><actionandroid:name="android.intent.action.MAIN" /><categoryandroid:name="android.intent.category.LAUNCHER" /></intent-filter></activity>
the line "android.intent.action.MAIN" means that this activity will be launched when starting your app, please share your manifest or check it out and look for this lines.
Solution 2:
Running the application without declaring the activity in the manifest will usually result in Eclipse telling you exactly that. The manifest is called AndroidManifest.xml and you should be able to see it from the project explorer.
Solution 3:
Remove this part:
<activityandroid:name="com.example.leapmotionapp.MainActivity"android:label="@string/app_name" ></activity>
Here is correct:
<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"tools:context=".MainActivity" ><TextViewandroid:layout_width="wrap_content"android:layout_height="wrap_content"android:text="@string/hello_world" /></RelativeLayout>
I replied that on this issue
See if this will help you.
Post a Comment for "Android App Won't Launch"