Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,781,728 Members 43,985 Now Online
XDA Developers Android and Mobile Development Forum

[help] port speed net meter for kitkat

Tip us?
 
ramon20
Old
#1  
ramon20's Avatar
Senior Member - OP
Thanks Meter 70
Posts: 116
Join Date: Apr 2014
Location: Teresina-PI
Question [help] port speed net meter for kitkat

Hi, i'm trying to port a speed net meter to work in my stock SystemUI for moto X, because the source is not compatible with the android 4.4.2. I don't know smaler and i want your help.

This is the source of the speed net meter:

SystemUI>res>layout/status_bar.xml
Code:
<com.android.systemui.statusbar.policy.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Traffic" android:gravity="left|center" android:id="@id/traffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
SystemUI>res>values/ids.xml
Code:
<item type="id" name="traffic">false</item>
SystemUI>res/values/styles.xml
Code:
    <style name="TextAppearance.StatusBar.Traffic" parent="@style/TextAppearance.StatusBar.Clock">
        <item name="android:textSize">14.0dip</item>
        <item name="android:textStyle">normal</item>
        <item name="android:textColor">#ffffffff</item>
        <item name="android:textAllCaps">false</item>
    </style>
PS: i'm using apktool v2.0.0b9.

In the "ATTACHED FILES" have:
- the original smalis of the speed meter
- the smalis that i have make a part of the port
- the framework-res of my rom
- the SystemUI of my rom
Attached Files
File Type: rar original smalis.rar - [Click for QR Code] (5.3 KB, 6 views)
File Type: rar part of the port.rar - [Click for QR Code] (5.4 KB, 6 views)
File Type: apk framework-res.apk - [Click for QR Code] (7.08 MB, 2 views)
File Type: apk SystemUI.apk - [Click for QR Code] (1.38 MB, 2 views)
 
es0tericcha0s
Old
#2  
Senior Member
Thanks Meter 504
Posts: 2,620
Join Date: May 2010

 
DONATE TO ME
Unless you're dead set on learning smali coding, you can just install the Xposed Framework and this module: http://repo.xposed.info/module/tw.fa...speedindicator
Need some help, advice, something fixed? Hit me up on Hangouts @ es0tericcha0s
Now offering unlocking services - including many Sprint phone unlocks! PM for details!

HTC Droid Eris / Motorola Droid / Samsung Galaxy S Fascinate / Motorola Droid X / LG G2x / HTC Evo 3D (x2) / Samsung Epic 4G Touch (Sprint S2) / HTC Amaze / Samsung Galaxy S3 (International) / Samsung Galaxy Note 2 / Nexus 4 / HTC One / Samsung Galaxy S4 / Sony Xperia ZL / Nexus 5 / OnePlus One (64 GB)
 
ramon20
Old
#3  
ramon20's Avatar
Senior Member - OP
Thanks Meter 70
Posts: 116
Join Date: Apr 2014
Location: Teresina-PI
Quote:
Originally Posted by es0tericcha0s View Post
Unless you're dead set on learning smali coding, you can just install the Xposed Framework and this module:
thanks, but i don't want use xposed!
 
ramon20
Old
#4  
ramon20's Avatar
Senior Member - OP
Thanks Meter 70
Posts: 116
Join Date: Apr 2014
Location: Teresina-PI
Help :c
 
ramon20
Old
#5  
ramon20's Avatar
Senior Member - OP
Thanks Meter 70
Posts: 116
Join Date: Apr 2014
Location: Teresina-PI
moderators, close the thread! resolved!
 
kermage
Old
#6  
kermage's Avatar
Senior Member
Thanks Meter 146
Posts: 301
Join Date: Feb 2014
Location: Iligan City
Quote:
Originally Posted by ramon20 View Post
moderators, close the thread! resolved!
mind mentioning first what was wrong? could be helpful for others having the same problem..
 
ramon20
Old
#7  
ramon20's Avatar
Senior Member - OP
Thanks Meter 70
Posts: 116
Join Date: Apr 2014
Location: Teresina-PI
Quote:
Originally Posted by kermage View Post
mind mentioning first what was wrong? could be helpful for others having the same problem..
was missing modify some parts of the code, and I do not know, I found the same smalis elsewhere, and they were already ported
 
kermage
Old
#8  
kermage's Avatar
Senior Member
Thanks Meter 146
Posts: 301
Join Date: Feb 2014
Location: Iligan City
Quote:
Originally Posted by ramon20 View Post
was missing modify some parts of the code, and I do not know, I found the same smalis elsewhere, and they were already ported

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Make Your Calendar Widget Beautiful with Month

For some of us, summer vacation is alreadyover. For those getting ready to school, work, or … more

Integrate Social Networks Into Your Project With ASNE Library

Social network applications and services have developed into major parts ofour … more

Give Your Android Wear Device a Lock Screen with Lockable

Without a doubt,Android Wear is one of the most frequently talked abouttopics of … more

Forums Added for the LG G Watch R and Samsung Gear S

A little over a week ago, LG “inadvertently” let the world know about the … more