Launching the wrong activity

Put your problem here if it does not fit any of the other categories.

Launching the wrong activity

Postby Steph » Mon Sep 13, 2010 9:40 pm

Hi everyBody,

I have a problem with my app. When i launch my app from my device it starts the wrong activity.
I want to launch my SplashScreen when i click on the icon, but that's the main of the program (RakDroid) which is launch.
I think something is wrong in my manifest but i tried to modify it but without result.

So if you have idea, please let me know ;)

Thanks in advance

Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="android.stephane.castrec.rakdroid"
      android:versionCode="1"
      android:versionName="0.5">
    <application android:icon="@drawable/logoandroid" android:label="@string/app_name">   
               
         <activity android:name=".SplashScreen"
                  android:label="@string/app_name"
                  android:screenOrientation="portrait">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>         
        </activity>
       
        <activity android:name=".RakDroid">
         <intent-filter >
                <action android:name=".RakDroid" />
            </intent-filter>             
        </activity>
       
    </application>
    <uses-sdk android:minSdkVersion="8" />

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

</manifest>
Steph
Experienced Developer
Experienced Developer
 
Posts: 90
Joined: Mon Oct 20, 2008 1:48 pm
Location: France

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 21 guests