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 8219053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:01:17+00:00 2026-06-07T13:01:17+00:00

I do have a curious error in my application. My app crashes (don’t mind

  • 0

I do have a curious error in my application.
My app crashes (don’t mind the crash, I roughly know why – classloader) when I start the application from the OS directly, then kill it from the background via any Task Killer (this is one of the few ways to reproduce the crash consistently -> simulating the OS freeing memory and closing the application) and try to restart it again.

The thing is, if I start the application via adb shell using the following command:

adb shell am start -a android.intent.action.MAIN -n com.my.packagename/myLaunchActivity

I cannot reproduce the crash.

So is there any difference in how Android OS calls the application as opposed to the above call?

EDIT: added the manifest (just changed names)

<?xml version="1.0" ?>
<manifest android:versionCode="5" android:versionName="1.05" package="com.my.sample" xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:minSdkVersion="7"/>
<application android:icon="@drawable/square_my_logo" android:label="@string/app_name">
    <activity android:label="@string/app_name" android:name="com.my.InfoActivity" android:screenOrientation="landscape"></activity>

    <activity android:label="@string/app_name" android:name="com.my2.KickStart" android:screenOrientation="landscape"/>

    <activity android:label="@string/app_name" android:name="com.my2.Launcher" android:screenOrientation="landscape">
        <intent-filter>
            <action android:name="android.intent.action.MAIN"/>
            <category android:name="android.intent.category.LAUNCHER"/>
        </intent-filter>
    </activity>

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

starting the com.my2.Launcher from the adb shell

  • 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-07T13:01:20+00:00Added an answer on June 7, 2026 at 1:01 pm

    First thing I can see is that if you launch the app from the launcher icon, the Intent includes the CATEGORY “android.intent.category.LAUNCHER” and using the adb shell am it does not.

    Also, when you launch via the launcher icon, the Intent flag FLAG_ACTIVITY_RESET_TASK_IF_NEEDED (0x200000) is set, in the adb shell case it is not.

    Not sure if any of that would make a difference in your crash behaviour, but it answers the question.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been curious to know what is the purpose of having a console
I have a curious issue here In my ejbCreate() method from where i insert
I have a curious problem: My app is distributed through ClickOnce. I recently installed
Possible Duplicate: .Net Process.Start default directory? I have a C# application, mono to be
To keep out any venting I may have I'm curious to know what people
I have a curious problem with IE, IIS 6.0 dynamic PNG files and I
I have been curious about dynamically create class at runtime in C# and stumbled
I have an curious zombie bug that seems to have crept out of the
Ever since I started programming this has been something I have been curious about.
Curious whether folks have setup 2 way transactional replication on the tables ASP.NET uses

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.