Android error, could not install the top application changed

Can someone please shed light on the secret error "Failed to set top app changed", activity manager? I am wondering what causes this error. In one of my applications, I pretended to be in full screen mode and then translating it back. For the first time, everything is fine, but if I try to view the entire screen again, I get a crash, and the above error is found on logcat.

Any help is greatly appreciated.

Reagrds, M

+6
android
source share
3 answers

I just ran into this problem today. Let me tell you what was the trick for me ... maybe this will help you too.

anyway, in my case it crashed because I redefined onActivityResult and inside this event I tried to do this:

Bundle extra = data.getExtras(); String albumId = extra.getString("id"); 

this is the old code that remained in the application. After removal, everything worked as expected.

hope this helps in some way.

+1
source share

I had the same problem with my application, activity crash and "activity manager: failed to install top application!" in magazines. It turned out that one line of code in onPause caused the problem. Test your onPause method for Activity, which launches a new action, to see if you need to do something there. I think that there can be many reasons that cause this problem, but the main idea is that starting an activity does something wrong when a new activity is displayed.

0
source share

My problem was that I change the orientation to the beginning of the activity and you need to add android: configChanges = "orientation", for example:

 <application android:icon="@drawable/icon" android:label="@string/app_name" > <activity android:name=".RiskniMilionActivity" android:label="@string/app_name" android:configChanges="orientation"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> 
0
source share

All Articles