Look at your logcat and see why your activity can't be started. Could be as
simple as a typo in your manifest.
On Friday, March 29, 2013 4:02:04 PM UTC-4, plnelson wrote:
>
> This question has (so far) stumped them on Stack Overflow. . . .
>
> I'm trying to launch an Activity which launches *perfectly fine* when its
> launchMode is set to *singleInstance*. When I change it to *standard*nothing
> happens; it never gets to onCreate (or onStart or onResume, or
> anyplace in the target Activity - I've overridden all the lifycycle events
> and set breakpoints)
>
> if (DGraphActivity.bitmap != null) {
> Intent intent = new Intent(ctx, DGraphActivity.class);
> intent.putExtra("Buttons", sButtonParam);
> try {
> ctx.startActivity(intent);
> }
> catch (Exception e) {
> Log.d("Commands", "failed to start DGraphActivity");
> }}
>
> in the manifest . . .
>
> <activity android:name="DGraphActivity"
> android:screenOrientation="portrait"
> android:launchMode="standard"></activity>
>
> I need the DGraphActivity launchMode to be *standard* because it will be
> launching another activity and using onActivityResult to collect the
> response and onActivityResult doesn't work with activites launched in
> singleInstance launchMode.
>
> I have lots of other Activities with *standard* launchMode that launch
> perfectly well, I can't figure out what's different about this one. Thanks
> in advance!
>
>
--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.