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

  • SEARCH
  • Home
  • 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 8447393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:10:19+00:00 2026-06-10T10:10:19+00:00

When I launch my app from Eclipse to my phone, it launches the Launcher

  • 0

When I launch my app from Eclipse to my phone, it launches the Launcher first and then my main activity. It successfully passes a variable to the main activity. I check that the username has been logged with a toast.
When I launch my app from my phone directly, it goes straight to the main activity; the main activity registers the variable as null.

I created a test app that performs EXACTLY the same function as the launcher in this one; their manifests are identical except for the activity names; and that test app functions correclty from the phone and when I install it from Eclipse.

this is a real brain-teaser.

Here is the code for the starter activity:

public class SecureAppStarter extends Activity {


TextView report;
WebView input;
Context thisContext = this;
String thisValue, url;

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.starter);
    initialize();


    WebViewClient rclient = new WebViewClient(){
        @Override
        public boolean shouldOverrideUrlLoading(WebView  view, String  url){
            return false;
        }
        @Override
        public void onLoadResource(WebView  view, String  url){ 
            input.getSettings().setJavaScriptEnabled(true);
            input.addJavascriptInterface(new CustomJavaScriptInterface(thisContext), "Android");
        }

        @Override
        public void onPageFinished(WebView view, String url){
            report.setText(""+thisValue);
            if (thisValue!= null){
                Intent passOn = new Intent("arbuckle.app.MainActivity");
                passOn.putExtra("username", thisValue);
                startActivity(passOn);
            }
        }
    };
    rclient.onPageFinished(input, url);
    input.setWebViewClient(rclient);
    input.loadUrl(url);
}


public class CustomJavaScriptInterface {
    Context mContext;

    CustomJavaScriptInterface(Context context) {

        mContext = context;
    }

    public void getValue(String value){
        thisValue = value;
    }
}

private void initialize() {
    report = (TextView) findViewById(R.id.tvViewName);
    input = (WebView) findViewById(R.id.wbWebAuth);
    url = "http://URL.of.data.com";
}
}

And here is the manifest:

 <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" >
        <activity
            android:name="SecureAppStarter"
            android:label="@string/app_name"
            android:configChanges="keyboardHidden|orientation">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
          <activity
            android:name=".ArbuckleAppActivity"
            android:label="@string/app_name"
            android:configChanges="keyboardHidden|orientation">
            <intent-filter>
                <action android:name="arbuckle.app.ArbuckleAppActivity" />

                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>
    </application>
  • 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-10T10:10:20+00:00Added an answer on June 10, 2026 at 10:10 am

    Well I figured it out.

    I have been installing/uninstalling versions of the app for weeks where the main activity was the launcher. clearly that gets kept somewhere in Android cache and it was choosing the main activity to launch even though it wasn’t the launcher anymore.

    So I uninstalled the app completely; and reinstalled. Now it works.

    Does anyone think I hacked at the problem instead of solving it? Should I expect further problems down the road?

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

Sidebar

Related Questions

I am trying to launch an android app from within eclipse. If my eclipse.ini
I have exported my app from eclipse and installed it on my phone. After
When I launch my java app from Eclipse Helios I see it in the
Launch app from homescreen can't get remote push payload? But launch from Notification Center
Possible Duplicate: launch facebook app from other app I'm looking to see if it
I'm pretty sure there must be a way to launch spotify iphone app from
I want to launch an app on OSX from a script. I need to
I'd love to be able to launch the native Box iOS app directly from
Is there a way to launch the android browser from an app in Full
I have a Cocoa application (.app) and I would like to launch it from

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.