Friday, April 5, 2013

[android-developers] Re: Bizarre launch behavior for a "standard" launchMode Activity


OK I tried it. Here's the class ...

package com.xxxx.remote;

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

public class DGraphActivity extends Activity {
   
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);  
        Log.d("DGraphActivity", "created");
    }   // end onCreate
}


... It didn't make any difference but I still don't understand why you thought it would.  You can see from the LogCat I posted that Android's not even trying to launch it.    It does a "starting: intent", but it never follows this up with a "trying to launch".     If there was a compile-time problem inside the class it would have shown up in the build but the build is clean.    But if there was a runtime problem inside the class how could this manifest itself if it's not launched?

Normally when you do a startActivity() Android does a series of steps ("intent: starting", "trying to launch", etc).   So the main question in this thread is why Android would stop after just the first one and how do we get Android to tell us why?    

This problem has turned out to be a real stumper, both here and StackOverFlow.    Does Android/Google have a support forum where actual Android or Google people read the postings and contribute?
 
On Friday, April 5, 2013 8:59:23 AM UTC-4, skink wrote:
plnelson wrote:
> Before I do that could you give me some idea why you think that might help
> or what you think it might reveal?   Keep in mind that with a *single*startActivity, DGraphActivity never gets created or constructed at all.
> So why would what's inside of it have any effect?

because thousands of devs are starting activities in standard mode
without such problems?

pskink

--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment