Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No Activity found to handle Intent, Android

I am developing a project on Android that deals with images either from the camera or from the sd-card. I had this working fine until earlier I was fiddling with the code and broke it. It was too late to undo and I can't seem to find the solution.

After the image is selected and processed, a list should be returned but now I get an Activity not Found exception, here is a picture.

If anybody has any idea whats going on I'd appreciate it!

EDIT

Just got it, was a silly mistake, I had

Intent intent = new Intent(Results)

Instead of

Intent intent = new Intent(this, Results.class)
like image 859
TomSelleck Avatar asked Mar 10 '12 04:03

TomSelleck


People also ask

Could not open URL Whatsapp app ': No activity found to handle intent?

You see no activity found to handle intent when you attempt to launch an intent either to open a link or to access an app component. It's an error message that is caused because the device is not an official android, Google Play is not supported, or it's a rooted device.

What is Intentfilter?

An intent filter declares the capabilities of its parent component — what an activity or service can do and what types of broadcasts a receiver can handle. It opens the component to receiving intents of the advertised type, while filtering out those that are not meaningful for the component.

What is an activity in Android *?

An activity provides the window in which the app draws its UI. This window typically fills the screen, but may be smaller than the screen and float on top of other windows. Generally, one activity implements one screen in an app.

What is an intent in Java?

An intent is to perform an action on the screen. It is mostly used to start activity, send broadcast receiver,start services and send message between two activities. There are two intents available in android as Implicit Intents and Explicit Intents. Here is a sample example to start new activity with old activity.


1 Answers

It was a silly mistake, I had

Intent intent = new Intent(Results)

Instead of

Intent intent = new Intent(this, Results.class)
like image 172
TomSelleck Avatar answered Nov 15 '22 04:11

TomSelleck