"Back to the parent activity" button stopped working in Android application -


i have fix bug: clicking (tapping on) "back parent activity" arrow not bring parent activity in android application.

the activity defined in manifest

    <activity         android:name=".workhistory"         android:label="@string/title_activity_list"         android:parentactivityname=".progress" >         <meta-data             android:name="android.support.parent_activity"             android:value="com.au.ontime.progress" />     </activity> 

and launched com.au.ontime.progress activity like

        intent = new intent(progress.this, workhistory.class);         if (timeline.ontheclock()) {             intent.putextra("activesince", timeline.getlastclockin());             intent.putextra("active", timeline.getactive());         }         startactivity(intent); 

the activity not have code call finish(). closed tapping on arrow on top left , worked before. activity otherwise starts , executes normally, without error messages in logs. arrow visible not functional. there other child activities in parent; these defined in similar way , works.

the device nexus 5, running android 5.1.1.

the overridden onoptionsitemselected(menuitem item) returning boolean value true unrecognized values of item.getitemid(). wrongly assumed method called menu items seems part of more complex processing mechanism. esoteric values may passed parameter , false must returned method allow os handle them.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -