[XDA-University] lacoursiere18:
Ok not sure where to post this but I am stuck and I don't know of where I might get an answer..So I'll try here. [MENTION=3053298]Stryke_the_Orc[/MENTION] move it if necessary.. I know Goldie has a smali thread but...ya i won't go there..ANYWAY to the point.. I am getting a error, this to be exact:

​

So the error is on path android/inputmethodservice/InputMethodService.smali (framework.jar), I believe.. And I'm certain and other have confirmed that it is a wrong register error on .method onCreate

When I look at the lines I added I do not see it. Maybe someone here can point out my error.. I have tried moving the few lines, thanks to [MENTION=4041997]dwitherell[/MENTION] suggestion, but that did not help either.. Here is my onCreate method..

.method public onCreate()V
.locals 6

.prologue
.line 989
iget v1, p0, Landroid/inputmethodservice/InputMethodService;->mTheme:I

invoke-virtual {p0}, Landroid/inputmethodservice/InputMethodService;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;

move-result-object v2

iget v2, v2, Landroid/content/pm/ApplicationInfo;->targetSdkVersion:I

const v3, 0x1030054

const v4, 0x103007f

const v5, 0x103013e

invoke-static {v1, v2, v3, v4, v5}, Landroid/content/res/Resources;->selectSystemTheme(IIIII)I

move-result v1

iput v1, p0, Landroid/inputmethodservice/InputMethodService;->mTheme:I

.line 994
iget v1, p0, Landroid/inputmethodservice/InputMethodService;->mTheme:I

invoke-super {p0, v1}, Landroid/inputmethodservice/AbstractInputMethodService;->setTheme(I)V

.line 995
invoke-super {p0}, Landroid/inputmethodservice/AbstractInputMethodService;->onCreate()V

.line 996
const-string v1, "input_method"

invoke-virtual {p0, v1}, Landroid/inputmethodservice/InputMethodService;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

move-result-object v1

check-cast v1, Landroid/view/inputmethod/InputMethodManager;

iput-object v1, p0, Landroid/inputmethodservice/InputMethodService;->mImm:Landroid/view/inputmethod/InputMethodManager;

.line 997
const-string v1, "layout_inflater"

invoke-virtual {p0, v1}, Landroid/inputmethodservice/InputMethodService;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

move-result-object v1

check-cast v1, Landroid/view/LayoutInflater;

iput-object v1, p0, Landroid/inputmethodservice/InputMethodService;->mInflater:Landroid/view/LayoutInflater;

.line 999
new-instance v1, Landroid/inputmethodservice/SoftInputWindow;

iget v2, p0, Landroid/inputmethodservice/InputMethodService;->mTheme:I

iget-object v3, p0, Landroid/inputmethodservice/InputMethodService;->mDispatcherState:Landroid/view/KeyEvent$DispatcherState;

invoke-direct {v1, p0, v2, v3}, Landroid/inputmethodservice/SoftInputWindow;-><init>(Landroid/content/Context;ILandroid/view/KeyEvent$DispatcherState;)V

iput-object v1, p0, Landroid/inputmethodservice/InputMethodService;->mWindow:Landroid/inputmethodservice/SoftInputWindow;

.line 1000
iget-boolean v1, p0, Landroid/inputmethodservice/InputMethodService;->mHardwareAccelerated:Z

if-eqz v1, :cond_0

.line 1001
iget-object v1, p0, Landroid/inputmethodservice/InputMethodService;->mWindow:Landroid/inputmethodservice/SoftInputWindow;

invoke-virtual {v1}, Landroid/inputmethodservice/SoftInputWindow;->getWindow()Landroid/view/Window;

move-result-object v1

const/high16 v2, 0x1000000

invoke-virtual {v1, v2}, Landroid/view/Window;->addFlags(I)V

.line 1003
:cond_0
invoke-virtual {p0}, Landroid/inputmethodservice/InputMethodService;->initViews()V

.line 1004
iget-object v1, p0, Landroid/inputmethodservice/InputMethodService;->mWindow:Landroid/inputmethodservice/SoftInputWindow;

invoke-virtual {v1}, Landroid/inputmethodservice/SoftInputWindow;->getWindow()Landroid/view/Window;

move-result-object v1

const/4 v2, -0x1

const/4 v3, -0x2

invoke-virtual {v1, v2, v3}, Landroid/view/Window;->setLayout(II)V

.line 1016
new-instance v0, Landroid/content/IntentFilter;

invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V

move-result-object v1

iput-object v1, p0, Landroid/inputmethodservice/InputMethodService;->mWindowIme:Landroid/view/Window;

.line 747
invoke-direct {p0}, Landroid/inputmethodservice/InputMethodService;->updateSettings()V

.line 1017
.local v0, "filter":Landroid/content/IntentFilter;
const-string v1, "RequestAxT9Info"

invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

.line 1018
const-string v1, "com.samsung.axt9info.close"

invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

.line 1023
iget-object v1, p0, Landroid/inputmethodservice/InputMethodService;->mBR:Landroid/content/BroadcastReceiver;

invoke-virtual {p0, v1, v0}, Landroid/inputmethodservice/InputMethodService;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

.line 1024
const-string v1, "InputMethodService"

const-string v2, "mBR.registerReceiver()"

invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

.line 1054
[COLOR="Red"]new-instance v0, Landroid/os/Handler;

invoke-direct {v0}, Landroid/os/Handler;-><init>()V

iput-object v0, p0, Landroid/inputmethodservice/InputMethodService;->mHandler:Landroid/os/Handler;

.line 742
new-instance v0, Landroid/inputmethodservice/InputMethodService$SettingsObserver;

iget-object v1, p0, Landroid/inputmethodservice/InputMethodService;->mHandler:Landroid/os/Handler;

invoke-direct {v0, p0, v1}, Landroid/inputmethodservice/InputMethodService$SettingsObserver;-><init>(Landroid/inputmethodservice/InputMethodService;Landroid/os/Handler;)V

iput-object v0, p0, Landroid/inputmethodservice/InputMethodService;->mSettingsObserver:Landroid/inputmethodservice/InputMethodService$SettingsObserver;

.line 743
iget-object v0, p0, Landroid/inputmethodservice/InputMethodService;->mSettingsObserver:Landroid/inputmethodservice/InputMethodService$SettingsObserver;

invoke-virtual {v0}, Landroid/inputmethodservice/InputMethodService$SettingsObserver;->observe()V[/COLOR]

return-void
.end method

The new lines are in RED..Ive tried changing the registers to match what i have in my smali as well but that did not work.. I am new to this, smali that is, and just trying to learn as I go, with AWESOME guidance from people I know on this thread..

Any help, or look here suggestions would be great!

PS: I have added all the correct #annotations and .field above..If you are wondering:good: