[Sony Xperia S, Acro S, Ion] rockernaxo:
Hello everyone!

I'm trying to port SMS Counter from Xperia J to Xperia S JB Settings.apk.

I know [MENTION=599722]niaboc79[/MENTION] inluded it in his eXistenZ v2, however wifi tethering doesn't work with 96 firmware.

Probably it'll be a silly thing but I haven't been able to find a solution yet to this problem. Here's the logcat:

I/ActivityManager( 574): START {act=android.intent.action.MAIN cmp=com.android.settings/.SubSettings (has extras) u=0} from pid 2145

E/AndroidRuntime( 2145): FATAL EXCEPTION: main

E/AndroidRuntime( 2145): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: [B][B][B]android.view.InflateException: Binary XML file line #2: Error inflating class appwidget-provider[/B][/B][/B]

E/AndroidRuntime( 2145):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2071)

E/AndroidRuntime( 2145):	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2096)

E/AndroidRuntime( 2145):	at android.app.ActivityThread.access$600(ActivityThread.java:138)

E/AndroidRuntime( 2145):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1207)

E/AndroidRuntime( 2145):	at android.os.Handler.dispatchMessage(Handler.java:99)

E/AndroidRuntime( 2145):	at android.os.Looper.loop(Looper.java:213)

E/AndroidRuntime( 2145):	at android.app.ActivityThread.main(ActivityThread.java:4787)

E/AndroidRuntime( 2145):	at java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime( 2145):	at java.lang.reflect.Method.invoke(Method.java:511)

E/AndroidRuntime( 2145):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)

E/AndroidRuntime( 2145):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)

E/AndroidRuntime( 2145):	at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:110)

E/AndroidRuntime( 2145):	at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime( 2145): Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class appwidget-provider

E/AndroidRuntime( 2145):	at android.preference.GenericInflater.createItemFromTag(GenericInflater.java:441)

E/AndroidRuntime( 2145):	at android.preference.GenericInflater.inflate(GenericInflater.java:317)

E/AndroidRuntime( 2145):	at android.preference.GenericInflater.inflate(GenericInflater.java:263)

E/AndroidRuntime( 2145):	at android.preference.PreferenceManager.inflateFromResource(PreferenceManager.java:269)

E/AndroidRuntime( 2145):	at android.preference.PreferenceFragment.addPreferencesFromResource(PreferenceFragment.java:285)

E/AndroidRuntime( 2145):	at com.sonyericsson.settings.smscounter.SmsCounterSettings.onCreate(SmsCounterSettings.java:193)

E/AndroidRuntime( 2145):	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:800)

E/AndroidRuntime( 2145):	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1039)

E/AndroidRuntime( 2145):	at android.app.BackStackRecord.run(BackStackRecord.java:635)

E/AndroidRuntime( 2145):	at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1405)

E/AndroidRuntime( 2145):	at android.app.Activity.performStart(Activity.java:5017)

E/AndroidRuntime( 2145):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2044)

E/AndroidRuntime( 2145):	... 12 more

E/AndroidRuntime( 2145): Caused by: java.lang.ClassNotFoundException: android.preference.appwidget-provider

E/AndroidRuntime( 2145):	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)

E/AndroidRuntime( 2145):	at java.lang.ClassLoader.loadClass(ClassLoader.java:501)

E/AndroidRuntime( 2145):	at java.lang.ClassLoader.loadClass(ClassLoader.java:461)

E/AndroidRuntime( 2145):	at android.preference.GenericInflater.createItem(GenericInflater.java:375)

E/AndroidRuntime( 2145):	at android.preference.GenericInflater.onCreateItem(GenericInflater.java:417)

E/AndroidRuntime( 2145):	at android.preference.GenericInflater.createItemFromTag(GenericInflater.java:428)

E/AndroidRuntime( 2145):	... 23 more

D/SomcTransmitPowerBroadcastReceiver( 895): Old PowerLevel: 3, current PowerLevel: 3

W/ActivityManager( 574): Force finishing activity com.android.settings/.SubSettings

So the error is Error inflating class appwidget-provider, but layouts and xml are the same as in the original file:confused::confused:

Any idea would be much appreciated, this is driving me crazy.

Thanks in advance.