Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

viewIntent #6

Closed
ghost opened this issue Feb 12, 2014 · 2 comments
Closed

viewIntent #6

ghost opened this issue Feb 12, 2014 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 12, 2014

What is the correct way to use this to start an application activity with some params ?

Since you use toUri on intent it seems I can't use Parcelable extra since they won't pass this.

I then tried to create intent with a forced action but in the logs it always ends with a no activity found for intent :

E/muzei_MuzeiActivity(1906): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=movie/759 flg=0x10000000 }

The data is correctly set but not the action :(
The intent is created with new Intent(String action,Uri data) and works without problems in my app.

@romannurik
Copy link
Collaborator

Parcelable extras aren't supported... but it seems like you're missing a dataType or componentName?

@ghost
Copy link
Author

ghost commented Feb 12, 2014

Well I did try lot's of things but :
new Intent("org.app....intentAction", new Uri.Builder().encodedPath(
"movie/123").build(), GetAppplicationContext(),
GlobalSearchActivity.class);

Or any other tries , the action value I set in the intent is lost and the error state :
act=android.intent.action.VIEW

Meaning I did ask for Intent.VIEW and it's clearly not the case.

ianhanniballake added a commit that referenced this issue Jul 5, 2020
* New translations strings.xml (French)

* New translations strings.xml (French)

* New translations strings.xml (French)

* New translations strings.xml (French)

* New translations strings.xml (French)

* New translations strings.xml (French)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant