Everything is identical apart from that, if I try to run an unsigned apk would that provide any further insight? Is there a way to nullify that extra flag?
On Fri, Jul 29, 2011 at 9:23 PM, Kostya Vasilyev <[email protected]> wrote: > I doubt it's due to the signature. > > However, Eclipse launches applications slightly differently from how the > launcher does it. > > The launcher's intent is like this: > > Intent intent = new Intent(context, <activity>.class); > intent .addFlags(Intent.FLAG_**ACTIVITY_NEW_TASK); > intent .addFlags(Intent.FLAG_**ACTIVITY_RESET_TASK_IF_NEEDED)**; > intent .setAction(Intent.ACTION_MAIN)**; > intent .addCategory(Intent.CATEGORY_**LAUNCHER); > > While Eclipse, I believe, omits FLAG_ACTIVITY_RESET_TASK_IF_**NEEDED. > > -- Kostya > > 29.07.2011 23:27, [email protected] пишет: > > Having some really strange "bugs" with my Android application at the >> minute, it I run it from Eclipse it runs fine, pretty much perfect. >> >> It contains a login screen that I can access and get to my main screen >> fine when running through Eclipse. When I press the home key and >> return to my application it returns to the last position (Activity) >> the application was in. >> >> However when I release sign a build and deploy it on the device it has >> different behavior,after going through the login screen when I press >> home and then return to the application the login screen always >> appears. >> >> Code is identical in both builds, only difference is one is signed >> with the default debug keystore while the other is signed with my own >> release keystore. >> >> Has anyone come across this? Its really confusing! >> >> > -- > Kostya Vasilyev > > -- > 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<[email protected]> > To unsubscribe from this group, send email to > android-developers+**[email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/**group/android-developers?hl=en<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

