Intent i = new Intent();
i.setAction(Intent.ACTION_SEND);
i.putExtra(Intent.EXTRA_TEXT, "What is going on?");
i.putExtra("key_text_input", "What time is it?");
i.putExtra("key_text_output", "");
i.putExtra("key_language_from", "en");
i.putExtra("key_language_to", "es");
i.putExtra("key_suggest_translation", "");
i.putExtra("key_from_floating_window", false);
i.setComponent(new ComponentName("com.google.android.apps.translate",
"com.google.android.apps.translate.translation.TranslateActivity"));
startActivity(i);
위와 같이 구글번역기를 호출하려 합니다.
그런데 아래와 같은 에러가 나더군요.
메니페스트에 낵티비를 추가 하라는데 그건 아닌거 같구요 .. 해결 가능하신분?
android.content.ActivityNotFoundException: Unable to find explicit activity class {com.google.android.apps.translate/com.google.android.apps.translate.translation.TranslateActivity}; have you declared this activity in your AndroidManifest.xml?