[Galaxy S II Android Development] remuntada78:
i tried again to change my code for change dialer background i added this

.method public DialerBackground()V
.locals 5

iget-object v1, p0, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->mContext:Landroid/content/Context;

invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v1

const-string v2, "choose_dialer"

const v3, 0x0

invoke-static {v1, v2, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v1

const v2, 0x1

if-eq v1, v2, :cond_0

const v2, 0x7f02039e

goto :goto_0

:cond_0
const v2, 0x7f02064a

:goto_0
iget-object v3, p0, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->mFragmentView:Landroid/view/View;

invoke-virtual {v3, v2}, Landroid/view/View;->setBackgroundResource(I)V

return-void
.end method

added this line in .method public resetAllLayout()V and in .method public onResume()V

invoke-virtual {p0}, Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;->DialerBackground()V

i got this error

D/dalvikvm( 3036): DexOpt: couldn't find field Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;.mContext

W/dalvikvm( 3036): VFY: unable to resolve instance field 9374

D/dalvikvm( 3036): VFY: replacing opcode 0x54 at 0x0000

E/AndroidRuntime( 3036): FATAL EXCEPTION: main

E/AndroidRuntime( 3036): android.content.res.Resources$NotFoundException: File res/raw/touch.ogg from drawable resource ID #0x7f070000

E/AndroidRuntime( 3036):	at android.content.res.Resources.openRawResourceFd(Resources.java:994)

E/AndroidRuntime( 3036):	at android.media.SoundPool.load(SoundPool.java:191)

E/AndroidRuntime( 3036):	at com.sec.android.app.dialertab.dialpad.DialpadFragment.onResume(DialpadFragment.java:1951)

E/AndroidRuntime( 3036):	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:874)

E/AndroidRuntime( 3036):	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1035)

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

E/AndroidRuntime( 3036):	at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1399)

E/AndroidRuntime( 3036):	at android.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:437)

E/AndroidRuntime( 3036):	at com.sec.android.app.dialertab.widget.DialtactsFragmentPagerAdapter.finishUpdate(DialtactsFragmentPagerAdapter.java:108)

E/AndroidRuntime( 3036):	at com.sec.android.app.dialertab.widget.DialtactsViewPager.populate(DialtactsViewPager.java:679)

E/AndroidRuntime( 3036):	at com.sec.android.app.dialertab.widget.DialtactsViewPager.onMeasure(DialtactsViewPager.java:838)

E/AndroidRuntime( 3036):	at android.view.View.measure(View.java:15504)

E/AndroidRuntime( 3036):	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5059)

E/AndroidRuntime( 3036):	at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)

E/AndroidRuntime( 3036):	at android.view.View.measure(View.java:15504)

E/AndroidRuntime( 3036):	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5059)

E/AndroidRuntime( 3036):	at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)

E/AndroidRuntime( 3036):	at android.view.View.measure(View.java:15504)

E/AndroidRuntime( 3036):	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5059)

E/AndroidRuntime( 3036):	at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)

E/AndroidRuntime( 3036):	at android.view.View.measure(View.java:15504)

E/AndroidRuntime( 3036):	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5059)

E/AndroidRuntime( 3036):	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1396)

E/AndroidRuntime( 3036):	at android.widget.LinearLayout.measureHorizontal(LinearLayout.java:1038)

E/AndroidRuntime( 3036):	at android.widget.LinearLayout.onMeasure(LinearLayout.java:576)

E/AndroidRuntime( 3036):	at android.view.View.measure(View.java:15504)

E/AndroidRuntime( 3036):	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5059)

E/AndroidRuntime( 3036):	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1396)

E/AndroidRuntime( 3036):	at android.widget.LinearLayout.measureVertical(LinearLayout.java:681)

E/AndroidRuntime( 3036):	at android.widget.LinearLayout.onMeasure(LinearLayout.java:574)

E/AndroidRuntime( 3036):	at android.view.View.measure(View.java:15504)

E/AndroidRuntime( 3036):	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5059)

E/AndroidRuntime( 3036):	at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)

E/AndroidRuntime( 3036):	at android.view.View.measure(View.java:15504)

E/AndroidRuntime( 3036):	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5059)

E/AndroidRuntime( 3036):	at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)

E/AndroidRuntime( 3036):	at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2385)

E/AndroidRuntime( 3036):	at android.view.View.measure(View.java:15504)

E/AndroidRuntime( 3036):	at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1979)

E/AndroidRuntime( 3036):	at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1222)

E/AndroidRuntime( 3036):	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1395)

E/AndroidRuntime( 3036):	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1115)

E/AndroidRuntime( 3036):	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4526)

E/AndroidRuntime( 3036):	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:725)

E/AndroidRuntime( 3036):	at android.view.Choreographer.doCallbacks(Choreographer.java:555)

E/AndroidRuntime( 3036):	at android.view.Choreographer.doFrame(Choreographer.java:525)

E/AndroidRuntime( 3036):	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711)

E/AndroidRuntime( 3036):	at android.os.Handler.handleCallback(Handler.java:615)

E/AndroidRuntime( 3036):	at android.os.Handler.dispatchMessage(Handler.java:92)

E/AndroidRuntime( 3036):	at android.os.Looper.loop(Looper.java:137)

E/AndroidRuntime( 3036):	at android.app.ActivityThread.main(ActivityThread.java:4921)

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

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

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

E/AndroidRuntime( 3036):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)

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

E/AndroidRuntime( 3036): Caused by: java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably com