Sunday, June 24, 2012

[android-developers] Re: After Signing Pressing App Icon Restarts App Every Time

I solved it, at least for me. The problem is that I installed my app by downloading it from a webserver. This caused the app to restart each time. Using the command-line tool adb install -r package.apk works as expected. It gets resumed from the previous state.

hope it helps.
a.p.

On Sunday, June 24, 2012 12:02:18 PM UTC+2, Andrea wrote:
GregAz, 
Have you solved this problem? I'm fighting exactly with that!
Please let us know.
Thanks

On Friday, September 16, 2011 4:10:25 AM UTC+2, GregAZ wrote:
As the title says, but I'll try to make it easier to understand.

I copied a project using Windows explorer, imported it, and then used
the Android menu to rename the application package.  Then I ran it,
worked great (just as I would expect).  I signed it, uninstalled the
dev version from my phone, installed the signed and noticed every time
I hit the apps icon it reloads the app as if it was never opened.  If
I hold home and switch to it it doesn't reload.  So I uninstalled it
and ran the app on my phone using Eclipse and the problem wasn't
there.  So I signed it/zip aligned it again, put it back on the phone
and once again same issue.  It seems that signing and zip aligning is
causing this problem.  The project that copied does not have this
problem.  Any ideas why this would be happening? I'm targeting Android
2.1 if that helps.

Steps to cause problem:

1. Export app
2. Sign it, zip align it
3. Put on phone
4. Launch app
5. Hit home to leave app
6. Press app button again (shows splash screen as if it was never
opened)

Doesn't happen using these steps:

1. Start app from Eclipse (install app on my phone)
2. Hit home to leave app
3. Press app button (puts me where I left it in the app)

What would cause it to reload?  It doesn't do it if I hold home down
and switch to the app, only when pressing the apps icon.

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate