[Galaxy S II Android Development] maskerwsk:
Hi Guys.

Im trying to port custom wallpapers to my gear

at the moment you can only pick colors as background and not custom images.

Ive added all items to settingslist.smali buy copying the exsisting color picker methods and then redirected it to WallpaperSettings.smali

it all recompiled fine after a few tweaks but when I click the new option I get FC.

the error log gives the below error:

02-03 09:35:23.725 2747 2747 E AndroidRuntime: FATAL EXCEPTION: main
02-03 09:35:23.725 2747 2747 E AndroidRuntime: java.lang.NoClassDefFoundError: com.sec.android.watchsettings.display.WallpaperSettings
02-03 09:35:23.725 2747 2747 E AndroidRuntime:	at com.sec.android.watchsettings.display.DisplaySettingsList.onItemClick(DisplaySettingsList.java:84)
02-03 09:35:23.725 2747 2747 E AndroidRuntime:	at android.widget.AdapterView.performItemClick(AdapterView.java:301)
02-03 09:35:23.725 2747 2747 E AndroidRuntime:	at android.widget.AbsListView.performItemClick(AbsListView.java:1519)
02-03 09:35:23.725 2747 2747 E AndroidRuntime:	at android.widget.AbsListView$PerformClick.run(AbsListView.java:3291)
02-03 09:35:23.725 2747 2747 E AndroidRuntime:	at android.widget.AbsListView$1.run(AbsListView.java:4342)
02-03 09:35:23.725 2747 2747 E AndroidRuntime:	at android.os.Handler.handleCallback(Handler.java:725)
02-03 09:35:23.725 2747 2747 E AndroidRuntime:	at android.os.Handler.dispatchMessage(Handler.java:92)
02-03 09:35:23.725 2747 2747 E AndroidRuntime:	at android.os.Looper.loop(Looper.java:137)
02-03 09:35:23.725 2747 2747 E AndroidRuntime:	at android.app.ActivityThread.main(ActivityThread.java:5306)
02-03 09:35:23.725 2747 2747 E AndroidRuntime:	at java.lang.reflect.Method.invokeNative(Native Method)
02-03 09:35:23.725 2747 2747 E AndroidRuntime:	at java.lang.reflect.Method.invoke(Method.java:511)
02-03 09:35:23.725 2747 2747 E AndroidRuntime:	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
02-03 09:35:23.725 2747 2747 E AndroidRuntime:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
02-03 09:35:23.725 2747 2747 E AndroidRuntime:	at dalvik.system.NativeStart.main(Native Method)
02-03 09:35:23.755 1786 1786 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1337 com.android.server.am.ActivityStack.startPausingLocked:1412 com.android.server.am.ActivityStack.finishActivityLocked:5894 com.android.server.am.ActivityStack.finishActivityLocked:5808 com.android.server.am.ActivityManagerService.handleAppCrashLocked:9539
02-03 09:35:24.065 1786 1835 E android.os.Debug: !@Dumpstate > dumpstate -k -t -z -d -o /data/log/dumpstate_app_error

from what I can see (I might be wrong) is that the file 'DisplaySettingsList.smali' is looking for itrem 'com.sec.android.watchsettings.display.DisplaySettingsList.onItemClick'

which does exsist in the file above

.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/widget/AdapterView",
"<*>;",
"Landroid/view/View;",
"IJ)V"
}
.end annotation

.prologue
.line 71
packed-switch p3, :pswitch_data_0

.line 106
invoke-virtual {p0}, Landroid/app/Activity;->finish()V

.line 109
:cond_0
:goto_0
return-void

.line 73
:pswitch_0
new-instance v0, Landroid/content/Intent;

const-class v1, Lcom/sec/android/watchsettings/brightness/BrightnessControl;

invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

.line 74
invoke-virtual {p0, v0}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

goto :goto_0

.line 78
:pswitch_1
new-instance v0, Landroid/content/Intent;

const-class v1, Lcom/sec/android/watchsettings/display/ScreenTimeoutActivity;

invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

.line 79
invoke-virtual {p0, v0}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

goto :goto_0

.line 83
:pswitch_2
new-instance v0, Landroid/content/Intent;

const-class v1, Lcom/sec/android/watchsettings/display/HomeColorSettings;

invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

.line 84
invoke-virtual {p0, v0}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

goto :goto_0

:pswitch_3
new-instance v0, Landroid/content/Intent;

const-class v1, Lcom/sec/android/watchsettings/display/WallpaperSettings;

invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

.line 84
invoke-virtual {p0, v0}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

goto :goto_0

.line 88
:pswitch_4

am I in the right area here, or just talking **** lol

thanks guys