Release of new version
auchri opened this issue ยท 6 comments
Hi,
thanks for this library!
Can you release a new version with the changes of this commit: 6aa3479 ?
The previous code which tries to find the launch intent does not work (for me) and throws the IllegalStateException
, because it finds nothing.
(I get this error if I use implementation 'com.jakewharton:process-phoenix:2.0.0'
, it works with using implementation 'com.jakewharton:process-phoenix:2.0.1-SNAPSHOT'
)
Thanks!
Hi @auchri ,
Adding <category android:name="android.intent.category.DEFAULT" />
to the launcher activity solved that issue for me at least.
ok! I just implemented this and got the same error as you, googled it, read https://code.luasoftware.com/tutorials/android/how-to-restart-android-app-programmatically/ and added category and everything worked (Android 9).
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
<category android:name="android.intent.category.MULTIWINDOW_LAUNCHER"/>
<!-- for Pheonix -->
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
+1
I can confirm that adding <category android:name="android.intent.category.DEFAULT" />
fixes the problem for me.
Releasing soon