(41) 9225-6319
contato@felipemarques.com.br

Dicas desenvolvimento Android – Dica 01

Se por acaso alguem estiver com dificuldades no desenvolvimento em Android, e estiver ocorrendo um erro semelhante ao erro abaixo:

[txt]
11-28 18:03:18.035: E/AndroidRuntime(1533): FATAL EXCEPTION: main
11-28 18:03:18.035: E/AndroidRuntime(1533): android.content.ActivityNotFoundException: Unable to find explicit activity class {br.nomedopacote.android/br.nomedopacote.android.view.ClientePesquisarActivity}; have you declared this activity in your AndroidManifest.xml?
11-28 18:03:18.035: E/AndroidRuntime(1533): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1405)
11-28 18:03:18.035: E/AndroidRuntime(1533): at android.app.ActivityThread.resolveActivityInfo(ActivityThread.java:1457)
11-28 18:03:18.035: E/AndroidRuntime(1533): at android.app.LocalActivityManager.startActivity(LocalActivityManager.java:277)
11-28 18:03:18.035: E/AndroidRuntime(1533): at android.widget.TabHost$IntentContentStrategy.getContentView(TabHost.java:654)
11-28 18:03:18.035: E/AndroidRuntime(1533): at android.widget.TabHost.setCurrentTab(TabHost.java:326)
11-28 18:03:18.035: E/AndroidRuntime(1533): at android.widget.TabHost$2.onTabSelectionChanged(TabHost.java:132)
11-28 18:03:18.035: E/AndroidRuntime(1533): at android.widget.TabWidget$TabClickListener.onClick(TabWidget.java:456)
11-28 18:03:18.035: E/AndroidRuntime(1533): at android.view.View.performClick(View.java:2485)
11-28 18:03:18.035: E/AndroidRuntime(1533): at android.view.View$PerformClick.run(View.java:9080)
11-28 18:03:18.035: E/AndroidRuntime(1533): at android.os.Handler.handleCallback(Handler.java:587)
11-28 18:03:18.035: E/AndroidRuntime(1533): at android.os.Handler.dispatchMessage(Handler.java:92)
11-28 18:03:18.035: E/AndroidRuntime(1533): at android.os.Looper.loop(Looper.java:123)
11-28 18:03:18.035: E/AndroidRuntime(1533): at android.app.ActivityThread.main(ActivityThread.java:3683)
11-28 18:03:18.035: E/AndroidRuntime(1533): at java.lang.reflect.Method.invokeNative(Native Method)
11-28 18:03:18.035: E/AndroidRuntime(1533): at java.lang.reflect.Method.invoke(Method.java:507)
11-28 18:03:18.035: E/AndroidRuntime(1533): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
11-28 18:03:18.035: E/AndroidRuntime(1533): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
11-28 18:03:18.035: E/AndroidRuntime(1533): at dalvik.system.NativeStart.main(Native Method)
[/txt]

Verifique se a sua Activity esta definido no arquivo AndroidManifest.xml na raiz da sua aplicação.


<activity android:name=".view.ClientePesquisarListActivity"></activity>

 

Espero ter ajudado.

Até a próxima.

Sobre o autor
Felipe Marques é Consultor e Analista de Sistemas Web e Mobile. Mais de 10 anos de experiência.

Faça um comentário

*

Facebook Auto Publish Powered By : XYZScripts.com