Page 1 of 5 123 ... LastLast
Results 1 to 10 of 48

Thread: Charging indicator - lock screen

777
  1. [translate]    #1
    Member
    Join Date
    Jun 2010
    Location
    Slovenia
    Posts
    93

    Default Charging indicator - lock screen

    Hello!

    Does anyone know if there is a way to get this charging indicator to appear on the lock screen, like on the picture below?



    When you connect the charger, the alarm indicator on the lock screen moves a line lower, to make room for the charging indicator, but it doesn't appear on the spica.


    MSOLVED



    HERE and
    HERE
    Last edited by H3LLBOY911; 09-21-2010 at 03:52 AM.

  2. [translate]    #2
    Senior Member
    Join Date
    May 2010
    Location
    Central America
    Posts
    692

    Default

    how come you are seeing the home icons and widgets with the phone locked
    on spica we only see background image when phone is locked... I don't like that picture as you see 3 clocks and that's just one to many for me.

    Now you can get the battery porcentage showing when you set an unlock pattern but this is not exactly what you are asking...
    slds,
    Last edited by AndroidGT; 08-27-2010 at 01:59 AM.

  3. [translate]    #3
    Senior Member
    Join Date
    Jul 2010
    Location
    Germany
    Posts
    288

    Default

    Want this too *push*
    CyanogenMod 6.1.1a8.3 | Undervolted | Sys2ext | Data2ext | Chache2ext | Xdatweak

  4. [translate]    #4
    Senior Member
    Join Date
    May 2010
    Location
    india
    Posts
    547

    Default

    Hmmm once with stock firmware i could see tht how dont know
    Quote Originally Posted by buneech View Post
    Hello!

    Does anyone know if there is a way to get this charging indicator to appear on the lock screen, like on the picture below?



    When you connect the charger, the alarm indicator on the lock screen moves a line lower, to make room for the charging indicator, but it doesn't appear on the spica.

    Thank you for the answer!


    Sent from my GT-I5700 using Tapatalk
    <!-- Start of adf.ly banner code -->
    <div style="width:468px; text-align:center;font-family:verdana;font-size:10px;">
    <a href="http://adf.ly/?id=449217"><img border=0 src="http://adf.ly/images/banners/adfly.468x60.4.gif" width="468" height="60" alt="adf.ly - shorten links and earn money!"></a>
    <br /><a href="http://adf.ly/?id=449217">Get paid to share your links!</a>
    </div>
    <!-- End of adf.ly banner code -->

  5. [translate]    #5
    Member
    Join Date
    Jun 2010
    Location
    Slovenia
    Posts
    93

    Default

    Quote Originally Posted by AndroidGT View Post
    how come you are seeing the home icons and widgets with the phone locked
    on spica we only see background image when phone is locked... I don't like that picture as you see 3 clocks and that's just one to many for me.

    Now you can get the battery porcentage showing when you set an unlock pattern but this is not exactly what you are asking...
    slds,
    That is not a picture from my spica, i found it via google image search, i just posted it for a representation of what i am searching for.
    Also, yeah, was not really looking for that at the unlock pattern, but thanks for the effort.

    Yesterday I looked at the framework-res.apk, extracted it, but can't really seem to open any of the xml files with a text editor to get something useful. Will try today again to see if i can get anything usable. I could probably compare the xml for the unlock pattern lock screen, and the regular lock screen to find the difference. If someone knows anything more about this, I'd appreciate any help i can get.
    Last edited by buneech; 08-27-2010 at 02:53 PM.

  6. [translate]    #6
    Senior Member
    Join Date
    Aug 2010
    Location
    Norway
    Posts
    208

    Default

    To view the content of the xml you have to decompile the apk instead of extracting. Search for apk manager on Google.
    Phone Info:
    Phone: Samsung Galaxy Spica
    Rom: CyanogenMod Alpha 7
    Theme: Black n' Red Sense CM
    ___________________________________
    http://img294.imageshack.us/img294/1884/blackopssig.jpg
    -- Why aren't image signatures allowed?

  7. [translate]    #7
    Member
    Join Date
    Jun 2010
    Location
    Slovenia
    Posts
    93

    Default

    Thanks!

  8. [translate]    #8
    Senior Member
    Join Date
    Aug 2010
    Location
    Norway
    Posts
    208

    Default

    Ive been doing some "hardcore" research on this.
    layout/keyguard_screen_lock.xml
    Is for the pattern lock
    layout/keyguard_screen_tab_unlock.xml
    Is for the normal slider lock.

    In the pattern lock "@id/batteryInfoText" shows the battery text.

    In slider "@id/status1" should show info about battery, but it doesnt.
    status2 is for alarms.

    Simply replacing status1 with batteryInfoText made the whole phone go apeshit; freeze when booted and then crash -> reboot.

    No solution yet, but I am investigating this more.
    Phone Info:
    Phone: Samsung Galaxy Spica
    Rom: CyanogenMod Alpha 7
    Theme: Black n' Red Sense CM
    ___________________________________
    http://img294.imageshack.us/img294/1884/blackopssig.jpg
    -- Why aren't image signatures allowed?

  9. [translate]    #9
    Member
    Join Date
    Jun 2010
    Location
    Slovenia
    Posts
    93

    Default

    I also found "@id/batteryInfoText" in the screen lock, this is just for the text. I read that the whole class is "@id/batteryInfo". I'll take a look at this tomorrow. Thanks for researching.

  10. [translate]    #10
    Junior Member
    Join Date
    May 2010
    Location
    USA
    Posts
    20

    Default

    Quote Originally Posted by buneech View Post
    I also found "@id/batteryInfoText" in the screen lock, this is just for the text. I read that the whole class is "@id/batteryInfo". I'll take a look at this tomorrow. Thanks for researching.
    here's the xml for the moment - we have the icon showing with the battery... maybe this will help... :

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <LinearLayout android:gravity="bottom" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
      xmlns:android="http://schemas.android.com/apk/res/android">
        <LinearLayout android:layout_gravity="center" android:orientation="vertical" android:background="@drawable/popup_full_dark" android:paddingTop="20.0dip" android:paddingBottom="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="15.0dip" android:layout_marginRight="15.0dip" android:layout_marginBottom="15.0dip">
            <TextView android:textSize="34.0sp" android:gravity="center" android:id="@id/headerSimOk1" android:layout_width="fill_parent" android:layout_height="wrap_content" />
            <TextView android:textSize="34.0sp" android:gravity="center" android:id="@id/headerSimOk2" android:layout_width="fill_parent" android:layout_height="wrap_content" />
            <TextView android:textAppearance="?textAppearanceLarge" android:gravity="center" android:id="@id/headerSimBad1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/lockscreen_missing_sim_message" />
            <TextView android:textAppearance="?textAppearanceSmall" android:gravity="center" android:id="@id/headerSimBad2" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="7.0dip" android:layout_marginBottom="7.0dip" android:text="@string/lockscreen_missing_sim_instructions" />
            <View android:background="@drawable/divider_horizontal_dark" android:layout_width="fill_parent" android:layout_height="1.0dip" android:layout_marginTop="8.0dip" />
            <TextView android:textSize="34.0sp" android:gravity="center" android:id="@id/time" android:layout_width="fill_parent" android:layout_height="wrap_content" />
            <TextView android:textSize="18.0sp" android:gravity="center" android:id="@id/date" android:layout_width="fill_parent" android:layout_height="wrap_content" />
            <View android:background="@drawable/divider_horizontal_dark" android:layout_width="fill_parent" android:layout_height="1.0dip" android:layout_marginBottom="8.0dip" />
            <LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/batteryInfo" android:layout_width="fill_parent" android:layout_height="wrap_content">
                <ImageView android:gravity="center" android:id="@id/batteryInfoIcon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="6.0dip" android:baselineAligned="true" />
                <TextView android:textSize="18.0sp" android:gravity="center" android:id="@id/batteryInfoText" android:layout_width="wrap_content" android:layout_height="wrap_content" />
            </LinearLayout>
            <View android:id="@id/batteryInfoSpacer" android:background="@drawable/divider_horizontal_dark" android:layout_width="fill_parent" android:layout_height="1.0dip" android:layout_marginTop="8.0dip" android:layout_marginBottom="8.0dip" />
            <LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/nextAlarmInfo" android:layout_width="fill_parent" android:layout_height="wrap_content">
                <ImageView android:gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="6.0dip" android:src="@drawable/ic_lock_idle_alarm" android:baselineAligned="true" />
                <TextView android:textSize="18.0sp" android:gravity="center" android:id="@id/nextAlarmText" android:layout_width="wrap_content" android:layout_height="wrap_content" />
            </LinearLayout>
            <View android:id="@id/nextAlarmSpacer" android:background="@drawable/divider_horizontal_dark" android:layout_width="fill_parent" android:layout_height="1.0dip" android:layout_marginTop="8.0dip" android:layout_marginBottom="8.0dip" />
            <LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/screenLockedInfo" android:layout_width="fill_parent" android:layout_height="wrap_content">
                <ImageView android:gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="6.0dip" android:src="@drawable/ic_lock_idle_lock" android:baselineAligned="true" />
                <TextView android:textSize="18.0sp" android:gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/lockscreen_screen_locked" />
            </LinearLayout>
            <TextView android:textSize="14.0sp" android:gravity="center" android:id="@id/lockInstructions" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="5.0dip" />
            <Button android:layout_gravity="center_horizontal" android:id="@id/emergencyCallButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="5.0dip" android:layout_marginBottom="5.0dip" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/ic_emergency" android:drawablePadding="8.0dip" />
        </LinearLayout>
    </LinearLayout>
    this line in specific (the image):
    <ImageView android:gravity="center" android:id="@id/batteryInfoIcon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="6.0dip" android:baselineAligned="true" />

Page 1 of 5 123 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •