6 Replies - 842 Views - Last Post: 10 July 2012 - 07:55 PM

#1 izic  Icon User is offline

  • D.I.C Head

Reputation: -2
  • View blog
  • Posts: 197
  • Joined: 15-January 09

Can't seem to find my app after starting the emulator

Posted 03 July 2012 - 12:58 PM

When I run my code in Eclipse, the emulator comes with a list of apps in the menu but the app I'm working on is no where to be found.

My manifest
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="app.mazemaster"
      android:versionCode="1"
      android:versionName="2.2">
    <uses-sdk android:minSdkVersion="8" />

    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".Splash" android:label="@string/app_name">
            <intent-filter>
                <action android:name="app.mazemaster.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".startingPoint" android:label="@string/app_name">
            <intent-filter>
                <action android:name="app.mazemaster.STARTINGPOINT" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>
    </application>
</manifest>


Is This A Good Question/Topic? 0
  • +

Replies To: Can't seem to find my app after starting the emulator

#2 H3R3T1C  Icon User is offline

  • Android Expert
  • member icon

Reputation: 275
  • View blog
  • Posts: 757
  • Joined: 30-March 07

Re: Can't seem to find my app after starting the emulator

Posted 03 July 2012 - 01:05 PM

try changing <action android:name="app.mazemaster.MAIN" /> to <action android:name="android.intent.action.MAIN" />
Was This Post Helpful? 0
  • +
  • -

#3 izic  Icon User is offline

  • D.I.C Head

Reputation: -2
  • View blog
  • Posts: 197
  • Joined: 15-January 09

Re: Can't seem to find my app after starting the emulator

Posted 03 July 2012 - 01:14 PM

Still nothing.

startingPoint.java
package app.mazemaster;

import android.app.Activity;
import android.os.Bundle;

public class startingPoint extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
}


Splash.java (Splash screen)
package app.mazemaster;

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(5000); //5 seconds
			    	  //Then a new activity begins
			     } catch(InterruptedException e){
			          e.printStackTrace();
			     }finally{
			    	 Intent openStartingPoint = new Intent("app.mazemaster.STARTINGPOINT");
			    	 startActivity(openStartingPoint);  	 
			     }
			}
			
		};
		timer.start(); 
     }
}

Was This Post Helpful? 0
  • +
  • -

#4 slehmann101  Icon User is offline

  • D.I.C Head

Reputation: 19
  • View blog
  • Posts: 123
  • Joined: 30-November 11

Re: Can't seem to find my app after starting the emulator

Posted 04 July 2012 - 02:51 PM

the app should start automatically
Was This Post Helpful? 0
  • +
  • -

#5 Barem0to  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 14
  • Joined: 07-June 12

Re: Can't seem to find my app after starting the emulator

Posted 04 July 2012 - 05:59 PM

Are there any errors in your LogCat?

If not in your console where it has DDMS try switching it to Android. It should show the actions its performing such as "Now uploading NameofApp.apk to Emulator" then Installing and so forth. Are you seeing these things?

If you are then I have no clue whats up with your app.
Was This Post Helpful? 0
  • +
  • -

#6 slehmann101  Icon User is offline

  • D.I.C Head

Reputation: 19
  • View blog
  • Posts: 123
  • Joined: 30-November 11

Re: Can't seem to find my app after starting the emulator

Posted 05 July 2012 - 08:26 AM

have you got apps to start in the past?
Was This Post Helpful? 0
  • +
  • -

#7 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2696
  • View blog
  • Posts: 10,556
  • Joined: 15-July 08

Re: Can't seem to find my app after starting the emulator

Posted 10 July 2012 - 07:55 PM

Try exporting the app as an APK file and pushing it to the emulator manually using the adb tool. (adb install apk_name.apk).
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1