Signed android app behaves different from when run manually on device from Eclipse? -


i'm feeling screwed after working on problem last century. in advance help!

what happened: develop app, game contains game activity uses countdowntimers timed game rounds. pausing, exiting app activity (via pressing power button, home button etc.) works fine when tested on samsung galaxy tab 7", running unsigned app eclipse before has been signed.

ecstatic i've completed work, go ahead , sign freaking apk in cmd. test signed app check works fine copy+pasting signed .apk sd card of same galaxy tab , installing after removing old data of app run eclipse of course doesn't work.

things going wrong include activity not pausing when press power button when timed round being run (after power device on discover timer has been running while screen powered off , still running, , pause game dialog found), activity being closed when press home key (after press home key , open app again app restarts introductory splash screen of app) , lastly, when pause game midway, power off , on screen, hit resume on pause game dialog - game timer goes 18.42s straight 0.00s , continues there next activity.

okay, more of story question code - here's technical question - why signed app behaving differently unsigned 1 run eclipse? i'm not providing code here of how did things, since should irrelevant considering work in first place (as in running app on device while developing in eclipse).

so there... urgh

not sure if problem ... common reason signed app not work when unsigned/eclipse version building signed app includes proguard obfuscation/optimization step.

one of consequences of proguard optimization of classes/methods referenced in either xml layouts or using reflection may no longer have same name (or may have been optimized out altogether).

the easiest/fastest way check @ logcat trace - there'll classnotfoundexception or methodnotfoundexception or somesuch.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -