Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8177229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:27:25+00:00 2026-06-06T23:27:25+00:00

<manifest xmlns:android=http://schemas.android.com/apk/res/android package=com.app.android android:versionCode=1 android:versionName=1.0 > <uses-sdk android:minSdkVersion=9 android:targetSdkVersion=15 /> <application android:icon=@drawable/ic_launcher android:label=@string/app_name android:theme=@style/Theme.StyledCustom

  • 0
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.app.android"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="9"
        android:targetSdkVersion="15" />

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/Theme.StyledCustom" >
        <activity
            android:name=".SplashActivity"
            android:label="@string/title_activity_main"
            >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name=".MainActivity"
            android:label="@string/title_activity_main"
            android:theme="@style/Theme.StyledCustom" >
            <intent-filter>
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>
    </application>

</manifest>

I’m including the SplashActivity.java (I am using ActionBarSherlock):

package com.app.android;

import com.app.android.R;

import android.content.Intent;
import android.os.Bundle;

import com.actionbarsherlock.app.SherlockActivity;

public class SplashActivity extends SherlockActivity{
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);
        getSupportActionBar().hide();
        Thread timerSplash = new Thread(){
            @Override
            public void run() {
                try{
                    int i = 0;
                    while(i < 1000){
                        i+=100;
                        sleep(100);
                    }
                    startActivity(new Intent("com.app.android.MainActivity"));
                }catch(Exception ex){
                }finally{
                    finish();
                }
            }
        };
        timerSplash.start();
    }
}

What I am facing is that my MainActivity is getting Launched before SplashActivity.
Also a warning is generated at MainActivity activity node in AndroidManifest.xml : “Exported activity does not require permission”

Can any one say what is happening?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T23:27:26+00:00Added an answer on June 6, 2026 at 11:27 pm

    In Manifast.xml:

    <activity
                android:name=".MainActivity"
                android:label="@string/title_activity_main"
                android:theme="@style/Theme.StyledCustom" >
            </activity>
    

    And Class as Below

    public class SplashActivity extends SherlockActivity{
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_splash);
            getSupportActionBar().hide();
            Thread timerSplash = new Thread(){
                @Override
                public void run() {
                    try{
                        int i = 0;
                        while(i < 1000){
                            i+=100;
                            sleep(100);
                        }
                       Intent intent = new Intent(SplashActivity.this, MainActivity.class);
                       startActivity(intent);
                    }catch(Exception ex){
                    }finally{
                        finish();
                    }
                }
            };
            timerSplash.start();
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is my section of permissions of my manifest: <manifest xmlns:android=http://schemas.android.com/apk/res/android package=com.adelco.ventamovil android:versionCode=1 android:versionName=1.0>
<?xml version=1.0 encoding=utf-8?> <manifest xmlns:android=http://schemas.android.com/apk/res/android package=com.android> <application android:icon=@drawable/ic_launcher android:label=@string/app_name> <activity android:name=.hba1c android:label=@string/app_name android:screenOrientation=portrait> <intent-filter>
This is the manifest file <?xml version=1.0 encoding=utf-8?> <manifest xmlns:android=http://schemas.android.com/apk/res/android package=net.learn2develop.SMSMessaging android:versionCode=1 android:versionName=1.0> <uses-sdk
I have the following manifest (snippet): <?xml version=1.0 encoding=utf-8?> <manifest xmlns:android=http://schemas.android.com/apk/res/android android:versionCode=1 android:versionName=1.0 package=com.uniquename.appname>
intentTest.java: package intentTest.xyz.com; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; public
The app code is package com.musicdownloader; import com.fortumo.android.PaymentActivity; import com.musicdownloader.R; import android.content.Intent; import android.net.Uri;
Main Activity Code. BroadcastExample.java package com.example.broadcast; import android.app.Activity; import android.os.Bundle; import android.util.Log; public class
Here is My Whole Code....... BroadcastExample.java package com.example.broadcast; > import android.app.Activity; import > android.content.Context;
I just set up eclipse to start android development according to this http://developer.android.com/sdk/installing.html .
I'm following http://developer.android.com/guide/topics/search/search-dialog.html to create a searchable activity for my app. SearchableActivity.java package com.xxxx.xx;

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.