Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-429

Android Lifecycle State (onPause, onCreate and others) not getting called

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: None
    • Component/s: Titanium SDK & CLI
    • Labels:
    • Environment:

      Titanium SDK 3.5.1.GA
      Titanium SDK 3.5.0.GA

      Description

      Hi, i am working on an titanium but i have problems getting android activity life-cycle state.

      I have gone through http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Android.Activity adding of
      <property name="ti.android.root.reappears.restart" type="bool">true</property> also in tiapp.xml.

      Added the eventListners.
      var appActivity = Ti.Android.currentActivity;
      appActivity.addEventListener('onResume, function()

      { Ti.API.info('Tha applicaiton was onResume''); }

      );
      Just like this i have added onPause, onStart, onRestart and onStop. But still i am not getting any required output.

      I want to get the state of android activity and if possible also without adding any other 3rd party module.

        Attachments

          Activity

            People

            • Assignee:
              mrahman Mostafizur Rahman
              Reporter:
              bhavin2887 Bhavin Bhavsar
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Integration