I have it working, at the moment, by having this in my manifest:
    <uses-sdk
        android:minSdkVersion="7"
        android:targetSdkVersion="9" />

So targeting SDK 11 or 18 leads to it to crash.

And no, I just use
startActivity(intent);

with these flags:
intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP
| Intent.FLAG_ACTIVITY_CLEAR_TOP);

On Sun, Apr 15, 2012 at 8:30 AM, Farhan Tariq <[email protected]> wrote:

> Are you using 'startActivityForResult()' method in your code to start the
> new activity?
>
>
> On Sun, Apr 15, 2012 at 5:27 PM, James Black <[email protected]>wrote:
>
>> The Activity just disappears.
>>
>> So, if I am on the home page, then I start my application, I get the
>> first screen, then the second activity comes up, starts the remote service,
>> and then I end up on the home page again, as the second activity ended.
>>
>> But, the exact same program works fine on Android 2.3.3.
>>
>> Unfortunately I have no other information than what I am seeing.
>>
>> I don't get any logging from onStop or onDestroy, but that may be
>> expected, so I am not certain how to tell if it went through there, are, as
>> I fear, it was killed and doesn't go through the lifecycle steps in this
>> case.
>>
>> On Sun, Apr 15, 2012 at 1:29 AM, TreKing <[email protected]> wrote:
>>
>>> On Sat, Apr 14, 2012 at 11:06 PM, James Black 
>>> <[email protected]>wrote:
>>>
>>>> Almost immediately after binding to and calling onStart on the service
>>>> the mapview activity dies.
>>>
>>>
>>> Can you elaborate on "dies"?
>>>
>>>
>>> -------------------------------------------------------------------------------------------------
>>> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
>>> transit tracking app for Android-powered devices
>>>
>>>  --
>>> 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
>>
>>
>>
>>
>> --
>> "I know that you believe you understand what you think I said, but I'm
>> not sure you realize that what you heard is not what I meant."
>> - Robert McCloskey
>>
>> --
>> 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 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
>



-- 
"I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant."
- Robert McCloskey

-- 
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

Reply via email to