ShobhanaSriram
Beginner Level 2
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2019 06:57 AM in
Galaxy JSome of our users have reported that our app is not working fine on their devices i.e they are not able to open one view in our app. All these users are using Samsung devices (SM-J610F or SM-J415F) running on OS 9 or 10 and mentioned that they recently updated their OS version.
We debugged on one such device and found the following issue :
We have one activity which is configured to launch as singleTask. We include several fragments in this activity and usually only one fragment is displayed at a time. When we try to start this activity second time onwards, the intent never gets delivered to the activity. Here is the code to start the activity :
public void openRideViewForSelectedRide(Ride selectedRide) {
if (dialog == null) {
dialog = new ProgressDialog(activity);
DialogUtils.getAppPopupDialogAction().showDialog(activity, dialog);
}
Log.i(LOG_TAG, "opening ride view for selected ride");
Intent intentToRedirect = new Intent(activity.getApplicationContext(), CommonMapActivity.class);
intentToRedirect.putExtra(CommonMapActivity.FRAGMENT_ NAME, "RideViewActivity");
intentToRedirect.putExtra(RideViewActivity.INPUT_RIDE_ OBJ, selectedRide);
intentToRedirect.putExtra(RideViewActivity.REFRESH_RIDE_ DETAILS, true);
activity.startActivity(intentToRedirect);
}
I have observed following message in logs :
2019-06-05 14:26:55.889 1235-2581/? D/ActivityManagerPerformance: Received MSG_DISABLE_ACT_START, r: ActivityRecord{e081569 u0 com.disha.quickride/. androidapp.common. CommonMapActivity t-1 f}
I suspect this is why the activity is not started. We just checked by removing the launchMode configuration for this activity from our manifest file and observed that the activity gets started successfully. But we need to keep this as a single instance for some business purpose.
Requesting your help in understanding what could be causing this issue and how we can avoid this.
Regards,
Shobhana
0 Comments
