Question's related to cornerstone porting.

97 views
Skip to first unread message

AndroidDeveloper

unread,
May 1, 2013, 7:47:34 AM5/1/13
to corners...@googlegroups.com
Hi Sanjay and Onhsnm,

  Have question related to cornerstone customization need clarification. Have successfully ported to v4.1.2

Below are the questions.

1> What is the need of mCornerstone stack [i.e purpose of creating two stacks mCornerstoneStack and mCornerstonePanelStack]. I see that mCornerstonePanel takes care of Cornerstone Panel 0/1 just like main stack but could not understand why mCornerstoneStack was needed.

    /**
     * Author: Onskreen
     * Date: 12/01/2011
     *
     * Stack containing the cornerstone app itself
     */
    public ActivityStack mCornerstoneStack; // purpose of this ?
    public ArrayList<ActivityStack> mCornerstonePanelStacks = new ArrayList<ActivityStack>();

2> Can you suggest the changes to be done to make swap panel work ?

3> Recent's are not working for cornerstone panel 0/1 . Want recents to be recorded in main panel's recents, so that user can launch any history in main panel. Where should be the change done for this ?

4> I am launching application to cornerstone panel from a side panel. I want the cornerstone to exit [not go to cornestone home] when user presses BACK during final activity. But I am unable to do this. Need your help on this.

In ActivityStack.java

           } else if(mCornerstonePanelStack && !mService.mActivityStackExiting) {
                /**
                 * Author: Onskreen
                 * Date: 03/05/2011
                 *
                 * No more activities, startup the Cornerstone Launcher
                 */
                if(DEBUG_SWITCH) {
                    Log.w(TAG, "No activity records in: " + mStackName);
                    Log.w(TAG, "Starting Cornerstone Launcher in this Panel");
                }
                return mService.startCornerstoneLauncherLocked(mCornerstonePanelIndex); // How could I disable this and exit the panel ?
            } else if(mCornerstoneStack) {
                /**

5> What is the best-way to understand internals of ActivityManagerService and WindowManagerService ?. You are the best people to say.

Reply all
Reply to author
Forward
0 new messages