Android app installed but won't run

Deano

New Member
I started a new application and after settling my issues I started to make it. In the process I made a simple splash screen, but when I start the emulator it installs and won't run.XML manifest\[code\]<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.pathfinderapprentice" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17" /> <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity android:name="android.intent.action.MAIN" android:label="@string/app_name" > <intent-filter> <action android:name="com.example.pathfinderapprentice.SPALSH" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name="com.example.pathfinderapprentice.MainActivity" android:label="@string/app_name" > <intent-filter> <action android:name="com.example.pathfinderapprentice.MAIN_ACTIVITY" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> </application></manifest>\[/code\]And the java class\[code\]package com.example.pathfinderapprentice;import android.app.Activity;import android.content.Intent;import android.os.Bundle;public class Splash extends Activity{ @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.splash); Thread timer = new Thread() { public void run() { try { sleep(2000); } catch (InterruptedException e) { e.printStackTrace(); } finally { Intent openStartingPoint = new Intent( "com.example.pathfinderapprentice.MAIN_ACTIVITY"); startActivity(openStartingPoint); } } }; timer.start(); } @Override protected void onPause() { // TODO Auto-generated method stub super.onPause(); finish(); }}\[/code\]Thanks in advance
 
Back
Top