New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
View Poll Results: Do you run this rom in Hybrid (both mods) in Phone, Tablet mod or Neither ?
Hybrid (sometimes phone sometimes tablet) 35 27.78%
Phone 23 18.25%
Tablet 54 42.86%
I don run this rom (please post why) no flaming! 14 11.11%
Voters: 126. You may not vote on this poll

 
Post Reply+
Tip us?
 
otter23
Old
#2541  
otter23's Avatar
Member
Thanks Meter 15
Posts: 67
Join Date: Dec 2010
Quote:
Originally Posted by DAGr8 View Post
Use the other launcher the icon ispurpleish

Sent from my SAMSUNG-SGH-I717 using xda premium
DAGr8 Any hope for another mirror? It looks like the links are down for the count. thanks
 
cmjkxa
Old
#2542  
cmjkxa's Avatar
Senior Member
Thanks Meter 61
Posts: 393
Join Date: May 2011
Location: San diego
Quote:
Originally Posted by slowpc View Post
ICS has teh double message bug tho
Same here.



Sent from my SAMSUNG-SGH-I717 using xda premium
 
Gestalt73
Old
#2543  
Member
Thanks Meter 16
Posts: 46
Join Date: Feb 2007
Location: Orange County, CA
Default canStatusBarHide?

Hey DaGr8, have you had any luck overriding the default phone/tablet logic? I was thinking that it would be possible to enable tablet mode at a higher dpi, or perhaps even trigger phone vs tablet mode via orientation, but every time I override the logic I get a cast error, even if I hardcode the method to return false (tablet mode).

It's almost as if there's another method or bit of code used to determine whether or not to draw the statusbar or the systembar aside from PhoneWindowManager->canStatusBarHide().

I'm looking through SystemUIService.java now to see if I can pick out exactly where the first decision is made because it can't be using canStatusBarHide (because I'm hardcoding it).

Here's the quick hack I was using to lock the canStatusBarHide() to false:
Code:
.method public setInitialDisplaySize(II)V
    .registers 11

    const v7, 0x1110014

    const/4 v3, 0x2

    const/4 v6, 0x3

    const/4 v4, 0x1

    const/4 v5, 0x0

    if-le p1, p2, :cond_97

    move v1, p2

    iput v5, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mLandscapeRotation:I

    iput v3, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSeascapeRotation:I

    iget-object v3, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mContext:Landroid/content/Context;

    invoke-virtual {v3}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    invoke-virtual {v3, v7}, Landroid/content/res/Resources;->getBoolean(I)Z

    move-result v3

    if-eqz v3, :cond_92

    iput v4, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mPortraitRotation:I

    iput v6, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mUpsideDownRotation:I

    :goto_1e
    mul-int/lit16 v3, v1, 0xa0

    sget v6, Landroid/util/DisplayMetrics;->DENSITY_DEVICE:I

    div-int v2, v3, v6

    const/16 v3, 0x258

    #always return same value
    #if result is greater or equal to 600, goto cond_b4
    #if-ge v2, v3, :cond_b4

    move v3, v4

    :goto_29
    iput-boolean v3, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mStatusBarCanHide:Z
Here's a sample logcat from when I hardcode canStatusBarHide at TabletMode:
Code:
E/AndroidRuntime(  996): FATAL EXCEPTION: main
E/AndroidRuntime(  996): java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: java.lang.ClassCastException: com.android.systemui.statusbar.tablet.TabletStatusBarView cannot be cast to com.android.systemui.statusbar.phone.PhoneStatusBarView
E/AndroidRuntime(  996): 	at android.app.ActivityThread.handleCreateService(ActivityThread.java)
E/AndroidRuntime(  996): 	at android.app.ActivityThread.access$1600(ActivityThread.java)
E/AndroidRuntime(  996): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java)
E/AndroidRuntime(  996): 	at android.os.Handler.dispatchMessage(Handler.java)
E/AndroidRuntime(  996): 	at android.os.Looper.loop(Looper.java)
E/AndroidRuntime(  996): 	at android.app.ActivityThread.main(ActivityThread.java)
E/AndroidRuntime(  996): 	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(  996): 	at java.lang.reflect.Method.invoke(Method.java)
E/AndroidRuntime(  996): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
E/AndroidRuntime(  996): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
E/AndroidRuntime(  996): 	at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(  996): Caused by: java.lang.ClassCastException: com.android.systemui.statusbar.tablet.TabletStatusBarView cannot be cast to com.android.systemui.statusbar.phone.PhoneStatusBarView
E/AndroidRuntime(  996): 	at com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(PhoneStatusBar.java)
E/AndroidRuntime(  996): 	at com.android.systemui.statusbar.StatusBar.start(StatusBar.java)
E/AndroidRuntime(  996): 	at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java)
E/AndroidRuntime(  996): 	at com.android.systemui.SystemUIService.onCreate(SystemUIService.java)
E/AndroidRuntime(  996): 	... 11 more
The Following User Says Thank You to Gestalt73 For This Useful Post: [ Click to Expand ]
 
truth77
Old
#2544  
truth77's Avatar
Senior Member
Thanks Meter 1139
Posts: 1,512
Join Date: Feb 2012
Location: Ft Lauderdale

 
DONATE TO ME
Quote:
Originally Posted by cmjkxa View Post
Same here.



Sent from my SAMSUNG-SGH-I717 using xda premium
Go into app settings and disable the other mms app then clear data of aosp one and reboot! no more double text!
GALAXY NOTE II WHEN IT RAINS IT POURS!!
 
BlkSquad
Old
#2545  
BlkSquad's Avatar
Senior Member
Thanks Meter 25
Posts: 237
Join Date: Aug 2010
Location: Stantonville, TN

 
DONATE TO ME
Quote:
Originally Posted by bhundt View Post
Loving this!

Sent from my SAMSUNG-SGH-I717 using Xparent Cyan Tapatalk 2
That is a sexy ass screenie. That's not a skin on FancyWidgets clock is it?
If bootloops were as good as fruitloops I'd have it made.
 
cmjkxa
Old
#2546  
cmjkxa's Avatar
Senior Member
Thanks Meter 61
Posts: 393
Join Date: May 2011
Location: San diego
Quote:
Originally Posted by truth77 View Post
Go into app settings and disable the other mms app then clear data of aosp one and reboot! no more double text!
So disable mmsprovision, clear data of SMS app and reboot?

Sent from my SAMSUNG-SGH-I717 using xda premium
 
Tomdg07
Old
#2547  
Senior Member
Thanks Meter 57
Posts: 373
Join Date: Aug 2011
Location: Ohio

 
DONATE TO ME
any one mention email app not scaling correctly at 180dpi great work man :thumbup:

Sent from my SAMSUNG-SGH-I717 using xda premium
Attached Thumbnails
Click image for larger version

Name:	uploadfromtaptalk1335584456620.jpg
Views:	292
Size:	27.9 KB
ID:	1028421  
 
knlgSeeker
Old
#2548  
knlgSeeker's Avatar
Senior Member
Thanks Meter 34
Posts: 178
Join Date: Jul 2010
Location: Hollywood, FL
Flashed on Seraphim, nova launcher.. looks fantastic at 213 DPI! Running smooth, great work man
Galaxy Note II SGH-i317
ManelScout4Life
Official Ultimatum Kang 4.2.2 192 DPI
 
jmacdonald19
Old
#2549  
jmacdonald19's Avatar
Senior Member
Thanks Meter 53
Posts: 214
Join Date: Jul 2008
Location: Atlanta
Trying to get my eyes and fingers used to the resolution, but this is great. Thanks!

Sent from my SAMSUNG-SGH-I717 using XDA
Current Devices:
Samsung Galaxy Note II (AT&T)
HTC Droid DNA (Verizon)

Previous Devices:
Samsung Galaxy SIII (AT&T), Samsung Galaxy SIII (Sprint), HTC One S (T-Mobile), Toshiba Thrive Tablet, AT&T Galaxy Note, T-Mobile Samsung Galaxy SII, LG G2X, MyTouch 4G Slide, iPhone 4s, MyTouch 4G, iPhone 3GS, Some Blackberries, HTC Diamond Touch, HTC Mogul, HTC PC6700, handful of Nokias... all the way back to the original Motorola MicroTAC in 1994.
 
cmjkxa
Old
#2550  
cmjkxa's Avatar
Senior Member
Thanks Meter 61
Posts: 393
Join Date: May 2011
Location: San diego
Nvm. I downloaded the market message app. Disabled the stock one and rebooted. Works great no more duplicates. Thanks sir!

Sent from my SAMSUNG-SGH-I717 using xda premium