Successfully ported to 4.2.2 cm10.1

837 views
Skip to first unread message

Alexander

unread,
Apr 18, 2013, 5:01:19 AM4/18/13
to corners...@googlegroups.com
Hey cornerstone team,

I have finally ported cornerstone to cm10.1 nightly. I need to say huge thanks to timduru.

I have run into a couple issues though, I cant seem to find the solution for. It would be great if you could give me some hints with your expertise in this matter.

My issues are the following:

  • I have a FHD tablet; I already added support for FHD screen sizes in cornerstone.xml
  • the AppHeader for the Top is hidden by the status bar as well as the Launcher icon. If I try to lower them beneath the status bar they get hidden by the running window. -> I need a way to set offsets of the windows relative to the status bar.
  • same problem with the MainLauncherView, the very top is also overlaped by the status bar
  • the MainlauncherView is also cut off on the right and left side
another interesting approach to solve some of the issues would be: only have 2 shown windows on the whole screen. Could you tell me where you set the layouts for inflating two windows in the cornerstone panel?

Thanks a lot!
 
I really appreciate your effort 


Last but not least the link to the forum

Sanjay Jain

unread,
Apr 18, 2013, 10:44:04 PM4/18/13
to corners...@googlegroups.com
Hello Alexander,

Congratulations for successfully porting Cornerstone to cm 10.1. We have archived your link to Cornerstone github wiki page:


The issues you are describing are most likely layout issues and I suggest you go through carefully to layout customization page:


Note that for better layout as per your screen size, you also have to make changes in Cornerstone Panel app layout files. Please go thorough the above wiki for detailed info.

For rendering only two windows (1 Cornerstone Panel + 1 Main Panel) than 3 windows (2 Cornerstone Panels + 1 Main Panel), you have to review the code into ActivityManagerService and WindowManagerService classes. Of course, you do have to modify the Cornerstone Panel app layout files and CSPanel.java class as well. This would be the starting point if you want to modify the number of windows rendering on whole screen within Cornerstone.

Also let us know the device you are testing. Is it Huawei Media Pad 10 FHD?

Let us know if above info helps you.

Thanks for using Cornerstone.
Sanjay Jain

Rohan Mathur

unread,
Apr 21, 2013, 9:17:01 PM4/21/13
to corners...@googlegroups.com
Hi Alexander,
Do you have your source code posted anywhere? I am looking for a Cornerstone 4.2.2 patch also but cannot seem to get it working.

Alexander

unread,
Apr 23, 2013, 9:51:39 AM4/23/13
to corners...@googlegroups.com
Thanks!

I figured it out. 
The problem with the Statusbar was that it wasnt considered in the formulas in computeWindowPanelRect. I dynamically calculated the size at runtime and added the size in the formula. Working fine now
I also altered the code in the suggested files to only have a single window in the Cornerstone Panel. So two windows overall.
Additionally I added an interface to set the width of the CornerstonePanel at runtime. I though it was to small at times ;).

some issues are left though. Hopefully you have an advice for me again :):
  • the cornerstone panel is not properly shown when cornerstone is collapsed. in the size of the specified rect you can also see part of the activity which was running in that panel. Also, everytime I open the taskswitcher I can basically see the whole window, just a little transparent. do you know any solution?
  • also icons in the status bar are not properly updated. It seems to me that the services arent running all the time. E.g. I dont get any reports for the battery percentage left.
I think that's it for now. Thanks a lot again!

BTW: my device is the Asus Transformer Infinity

and if youd like to take a look at my code, everything is uploaded at: github

Regards
Message has been deleted

AndroidDeveloper

unread,
Apr 24, 2013, 3:22:36 AM4/24/13
to corners...@googlegroups.com
Hi Alexander,

 Could not find the frameworks source code in github link provided. Please check.


Thanks

adithyag

unread,
May 8, 2013, 5:12:30 PM5/8/13
to corners...@googlegroups.com
Hi Alexander,

Your github repo is empty. Can you please share the frameworks/base code? I want take a look at ActivityManagerService.java. My port isn't booting up. It gets stuck at android animation logo. Looking at the logcat, I think the systemReady method doesn't execute fully and start the zygote for the first app.

Alexander

unread,
May 13, 2013, 1:41:29 PM5/13/13
to corners...@googlegroups.com
Yes, I am uploading it right now. But I didnt maintain a repo from the beginning, so you wont see the first "commits". Check timduru's github ;)

Rohan Mathur

unread,
Jun 26, 2013, 12:51:45 PM6/26/13
to corners...@googlegroups.com
Hi Alexander,

It seems the github repository is still empty. Did you ever manage to upload your source anywhere? I would like to use the code for a ROM I am working on at the moment (with credits to you and timduru, along with the Cornerstone team, of course).
Thank you!
Rohan


On Thursday, April 18, 2013 5:01:19 AM UTC-4, Alexander wrote:

barkh...@gmail.com

unread,
Jul 25, 2013, 3:29:28 AM7/25/13
to corners...@googlegroups.com
The repository is still empty for framework. Can you please upload the code



On Thursday, April 18, 2013 2:31:19 PM UTC+5:30, Alexander wrote:

Liang Li

unread,
Aug 10, 2013, 10:48:00 PM8/10/13
to corners...@googlegroups.com
hi  Alexander, :
how to solve the problem :
the cornerstone panel is not properly shown when cornerstone is collapsed. in the size of the specified rect you can also see part of the activity which was running in that panel

 now i encounter the problem ,maybe you have solved ,can you shared you ways to me ? 

brian

在 2013年4月23日星期二UTC+8下午9时51分39秒,Alexander写道:
Reply all
Reply to author
Forward
0 new messages