Excellent! Is it still OK to include it in our ROM? Any news yet on adding the charging animation as per original MIUI bar? Thanks again for this great little mod/app
Just downloaded app from the market. Started and clicked enable. Only a small white bar shows with no icons or anything and can still see stock bar. Running on Nexus S 4G Cm9 Euroskank Kang 12/31
Works fine on optimus one but I repeat the question.. Anyway to stay the service in boot?
Sent from my LG-P500 using XDA App
Originally Posted by dhk.-
Works fine on optimus one but I repeat the question.. Anyway to stay the service in boot?
Sent from my LG-P500 using XDA App
The latest version will stay enabled until disabled it will persist.
i just have not had time to add a change log.
The latest version will stay enabled until disabled it will persist.
i just have not had time to add a change log.
It's true, I don't reboot my phone, sorry... Is the best app...
Sent from my LG-P500 using XDA App
not a problem you had me worried
Pvy.
hello, a really nice app, installed immediately.
but a question, is it possible, to make the batt bar a little thiner? at menü there is an option 1Px, but it is bigger than that.
thanks in advance
i have already changed how it does height. will be in next update
Pvy.
Thanks for this app, it's really what I was looking for!
I also like the idea of having the bar a little thinner then the lowest currently available.
Is it possible to throw in a feature request, if so, then it would be good to be able to specify the height of where it appears on the screen, eg. say if it's set to 20 then it would located under the status bar, if it's set to 1 it would be on top of the screen, if it's set to 100, it would be on the bottom of the screen etc.
[B]Options App[/B]
v2.0
added height options.
v3.0
added new color dialogs.
v4.0
fixed default color of med level to be non-transparent.
[B]Battery Bar[/B]
v2
added height options and fixed default colors.
Step 2
Navigate to smali\com\android\systemui\statusbar\ Folder
Place the 3 Smali Files from the zip here
BatteryBar.smali
BatteryBar$1.smali
BatteryBar$SettingsObserver.smali
Step 3
You need to Navigate to the res\layouts\ Folder
open your statusbar.xml
Step 4
Underneath the line with
Code:com.android.systemui.statusbar.DateView
add this
*** CHANGED ON v3 ***
Code:<com.android.systemui.statusbar.BatteryBar android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" [B][COLOR="Red"]android:layout_height="wrap_content"[/COLOR][/B] />
it should be right at the bottom above the
Code:
i have added my statusbar.xml for reference if yours is in a different order no big deal just put it last and above this line
Code:</com.android.systemui.statusbar.StatusBarView>
-Step 5
Recompile the apk however you normaly would (there are so many ways i wont cover this here)
then push it to your phone and reboot.
If you don't know how or are having issues this is how I do it!
Notes:
a. i have a file on my desctop that i edit this is a copy of the file pulled from my phone.
Steps:
1. after all mods are done open up apk manager
2. type 22 hit enter and pick the file you were editing ( SystemUI.apk )
3. type 11 hit enter and the app will recompile.
- 4. Open a copy of the SystemUI.apk ( see note a ) in winnra or 7zip ect put that window on one side of your screen ( windows 7 snap too (windows key + -> or <- ) is awesome for this )
5. Navigate to the projects folder of APK Manager and then navigate to the app you edited (SystemUI.apk)
6. Navigate to the /build/apk folder ( snap this to the other side of your screen ) ( Note that the build/apk folder has the same structure as the apk file open in winnra / 7zip )
7. for THIS MOD only! you will need these files simply drag the 2 files listed below into the same folder location in the open apk in winnra / 7zip
- /res/layouts/status_bar.xml
- /classes.dex
8. Push the apk that you draged the files into to your phone with adb like this
adb push [where ever your apk is]/SystemUI.apk system/app/SystemUI.apk
adb shell chmod 0644 system/app/SystemUI.apk
9. whilst you have adb up reboot
adb reboot
+ 4. Open a copy of the SystemUI.apk ( see note a ) in winnra or 7zip ect put that window on one side of your screen ( windows 7 snap too (windows key + -> or
- 10. Proceed to next step
Step 6
Once your status bar is back and running (you will have no battery bar yet)
Simply install "BatteryBarSettings.apk" then open the app and pick your settings!
Q: I am getting a FC on this or that, can you help me!
A: NO. We can't help you. Because what you just said means nothing to us.
We want to help you SO much, but in order to do that you need to report the bug properly.
We took care of that too, see here:
http://xdaforums.com/showthread.php?t=1292625
Q:OMG YOU STOLE MY WORK! YOU A!@#$!% etc etc etc
A: I kindly ask you that if you have an issue with anything above to PM me so i can sort it out politely. There is no need to flame in the thread.
.locals 12
.parameter "intent"
.prologue
iget-object v1, p0, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->mService:Landroid/app/StatusBarManager;
const-string v2, "battery"
const v0, 0x0
invoke-virtual {v1, v2, v0}, Landroid/app/StatusBarManager;->setIconVisibility(Ljava/lang/String;Z)V
return-void
that will perma hide the battery iconIf you don't know how or are having issues this is how I do it!
Notes:
a. i have a file on my desctop that i edit this is a copy of the file pulled from my phone.
Steps:
1. after all mods are done open up apk manager
2. type 22 hit enter and pick the file you were editing ( SystemUI.apk )
3. type 11 hit enter and the app will recompile.
4. Open a copy of the SystemUI.apk ( see note a ) in winnra or 7zip ect put that window on one side of your screen ( windows 7 snap too (windows key + -> or <- ) is awesome for this )
5. Navigate to the projects folder of APK Manager and then navigate to the app you edited (SystemUI.apk)
6. Navigate to the /build/apk folder ( snap this to the other side of your screen ) ( Note that the build/apk folder has the same structure as the apk file open in winnra / 7zip )
7. for THIS MOD only! you will need these files simply drag the 2 files listed below into the same folder location in the open apk in winnra / 7zip
- /classes.dex
8. Push the apk that you draged the files into to your phone with adb like this
adb push [where ever your apk is]/SystemUI.apk system/app/SystemUI.apk
adb shell chmod 0644 system/app/SystemUI.apk
9. whilst you have adb up reboot
adb reboot
I used & followed this tuto : http://youtu.be/YgWd0jsDtH0
if I used the plain SystemUI from APKTool\SystemUI\dist , I get neverending FC. upon reboot, the status bar is simply gone and even the launcher's "Notifications" soft menu option doesn't make it appear. gotta reflash the ROM to set things straight & get the statusbar back.
if I copy/paste "resources.arsc" from APKTool\SystemUI\build\apk into the fresh SystemUI I obtain in APKTool\SystemUI\dist, there are no FC and the status bar shows, but your top bar mod isn't present, not even when repeatedly checking/unchecking/rechecking "show battery bar" in your app.
it doesn't take a rocket scientist to understand & follow your tutorial, so I believe that my problem comes from somewhere in the recompiling process...
at work now, whenever I have 10min, I'll upload my systemUI apks