1
Good night.
I need to make a component AutoCompleteTextView
search the information directly from the server and for this I am following the following article:
When I run the application returns error in this part of XML saying that the class was not found and the file path .java
this correct:
<br.com.aplicacao.components.DelayAutoCompleteTextView
android:id="@+id/et_book_title"
android:inputType="textCapSentences"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingRight="@dimen/padding_auto_complete"
android:imeOptions="flagNoExtractUi|actionSearch"/>
Method onCreate
of Activity:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.a_register_emergency_service);
this.edtDescription = (DelayAutoCompleteTextView) findViewById(R.id.edtDescription);
this.edtCellphoneNumber = (EditText) findViewById(R.id.edtCellphoneNumber);
}
LOG:
09-13 20:45:58.329: E/Androidruntime(29071): Caused by: java.lang.Classnotfoundexception: Didn’t find class "br.com.aplicacao.components.Delayautocompletetextview" on path: Dexpathlist[[zip file "/data/app/br.com.aplicacao-2.apk"],nativeLibraryDirectories=[/data/app-lib/br.com.aplicacao-2, /vendor/lib, /system/lib]]
What would be the solution or is there another way to inform the component class?
EDIT
Corrected by putting <components.DelayAutoCompleteTextView />
, but now on onCreate
when instantiating the component variable is always returning null.