speed dial enable - Xperia Z1 Compact General

All,
steps to enable speed dial on Sony Xperia Z1 compact
Speeddial is enabled on D5503_14.4.A.0.157_R4C_RU
But disabled on D5503_14.4.A.0.157_Baltic
After I have copied "com.sonyericsson.android.socialphonebook-res.apk" to system/vendor/overlay folder I got speeddial with 99 positions.
This apk file must have the following files:
\res\values\bools.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="enable_speed_dial">true</bool>
</resources>
and \res\values\public.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<public type="bool" name="enable_speed_dial" id="0x7f020000" />
</resources>

Related

[Q] app wont save to SD?

heres the starting of my manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.hyperbyte.app3"
android:installLocation="preferExternal"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="3" />
// etc...
But it won't allow for installs to the SD card. Any ideas?

How to correct change APK background

hello everybody
I have a problem
I want change my apk background but have trouble
i edit style.xml
original
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="RE_Main" parent="@*android:style/Theme.DeviceDefault.Light">
<style name="RE_Dialog" parent="@*android:style/Theme.DeviceDefault.Light.Dialog" />
</resources>
Change
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="RE_Main" parent="@*android:style/Theme.DeviceDefault.Light">
<item name="android:background">@drawable/semc</item>
</style>
<style name="RE_Dialog" parent="@*android:style/Theme.DeviceDefault.Light.Dialog" />
</resources>
Can not be used after changing

[Q] Menu Icons with different themes

Hello,
in the settings of my App the users can switch between Holo.Light and Holo theme.
But I show some Menu options in the ActionBar. I've copied the icons for Holo.Light into my App.
When I switch to Holo theme, the icons looks not really good.
How can I implement the icons for the dark theme?
I've tried the following: http://stackoverflow.com/a/12339924
But it dont work..
values/attrs.xml:
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="main">
<attr name="search_icon" format="reference" />
</declare-styleable>
</resources>
values/styles.xml:
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="MyTheme" parent="android:Theme.Holo">
<item name="search_icon" [user=3944923]@drawab[/user]le/ic_action_search</item>
</style>
<style name="MyTheme.Light" parent="android:Theme.Holo.Light">
<item name="search_icon" [user=3944923]@drawab[/user]le/ic_action_search_light</item>
</style>
</resources>
menu/main.xml
Code:
<item
android:id="@+id/action_search"
android:icon="?search_icon"
.....
manifest:
Code:
<application
android:theme="@style/MyTheme"
wheres the error? it does always show the @drawable/ic_action_search_light icon..

Failed to parse file gradient_drawable1.xml

I created gradient_drawable1.xml file and the eclipse is showing error that "failed to prase file gradient_drawable1.xml.
source code of gradient_drawable1.xml is
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item>
<shape>
<gradient
android:startColor="#4C4C43"
android:endColor="#B8B894"
android:angle="270" />
</shape>
</item>
</animation-list>
and exception stact trace are :
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
help !!
thanks..
sonidepanshu said:
I created gradient_drawable1.xml file and the eclipse is showing error that "failed to prase file gradient_drawable1.xml.
source code of gradient_drawable1.xml is
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item>
<shape>
<gradient
android:startColor="#4C4C43"
android:endColor="#B8B894"
android:angle="270" />
</shape>
</item>
</animation-list>
help !!
thanks..
Click to expand...
Click to collapse
why <animation-list xmlns:android="http://schemas.android.com/apk/res/android" > </animation-list> this would require animation properties, your missing "duration"
so maybe change "animation-list" to "layer-list"
Code:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item>
<shape>
<gradient
android:startColor="#4C4C43"
android:endColor="#B8B894"
android:angle="270" />
</shape>
</item>
</layer-list>
hope that helps, if it's not what you want let me know.

[SHARE][TUTORIAL][HOWTO]disabling/Enabling option for system APP

hi,
in different customization of the same device for region or operator , we find some option in system configuration enabled in some and other no then we can do it by changing variable value in application files in system by decompiling and recompiling after modifying ( bools or arrays...etc ) it take a lot of time
so customization Sony has choose to make a little files for a region customization or enabling or disabling option in system app without modifying the original app file by using {real_application_name}-res.apk what will be adding in /system/vendor/overlay
in 4.0.4 and before sony ericsson used /system/etc/customization/ folder for enabling and parameterizing apps, so in JB 4.2 and 4.3or 4.4 these files are incompatible only 4.3 and 4.4 are compatible (attached files)
for JB 4.2
4.3 and 4.4
How to use ??
example :
for enabling data traffic notification and status icon in status bar we must change in or semcphone.apk phone.apk this line after decompiling Phone.apk or SemcPhone.apk in res/value/bools/xml we find a default value of application :
Code:
<bool name="data_connection_except_mms_can_clear_icon">true</bool>
<bool name="data_connection_except_mms_show_icon_when_disabled">true</bool>
<bool name="data_connection_except_mms_show_icon_when_enabled">false</bool>
Click to expand...
Click to collapse
they must be change to :
Code:
<bool name="data_connection_except_mms_can_clear_icon">false</bool> ----->[COLOR="red"] icon always visible can't be removed[/COLOR]
<bool name="data_connection_except_mms_show_icon_when_disabled">true</bool>
<bool name="data_connection_except_mms_show_icon_when_enabled">true</bool>
Click to expand...
Click to collapse
then it can be inserted in com.phone-res.apk and injected in system/vendor/overlay and rebooting after that the options are activated.
just know what value to want be activated in the main application apk
Another exemple :
in this post http://forum.xda-developers.com/showthread.php?t=2703113 to have mod for activating low cost in conversations.apk but with decompiling main apk conversations.apk but the simple one is using -res.apk
default value are :
Code:
<bool name="character_conversion">false</bool>
<bool name="character_conversion_visibility">false</bool>
Click to expand...
Click to collapse
and must be changed to
Code:
<bool name="character_conversion">true</bool>
<bool name="character_conversion_visibility">true</bool>
Click to expand...
Click to collapse
then modifing com.sonyericsson.conversations-res.apk
after decomiling
we have
Code:
[CODE]
[/CODE]
res
|-------> bools.xml -------------> to be modified
|-------> public.xml ---------------important contains all variable defined
bools.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="three_digit_number_linkify">true</bool>
<bool name="delivery_report">true</bool>
<bool name="mms_retrieval_during_roaming_visibility">true</bool>
[COLOR="Red"]<bool name="character_conversion">true</bool>
<bool name="character_conversion_visibility">true</bool>[/COLOR]
</resources>
public.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<public type="bool" name="three_digit_number_linkify" id="0x7f020000" />
<public type="bool" name="delivery_report" id="0x7f020001" />
<public type="bool" name="mms_retrieval_during_roaming_visibility" id="0x7f020002" />
[COLOR="red"]<public type="bool" name="character_conversion" id="0x7f020003" />
<public type="bool" name="character_conversion_visibility" id="0x7f020004" />[/COLOR]
<public type="bool" name="enable_send_empty_message" id="0x7f020005" />
<public type="integer" name="max_recipients" id="0x7f030000" />
<public type="integer" name="mms_max_size" id="0x7f030001" />
<public type="integer" name="sms_max_segments" id="0x7f030002" />
<public type="integer" name="mms_trigger_sms_segments" id="0x7f030003" />
</resources>
and recompile , push it in system/vendor/overlay and done.

Categories

Resources