---
title: "Comment by florent guillemot on \"Using an Activity from a Hilt ViewModel\" | Hashnode"
description: "Hi Py, I don&#39;t get your blog post to start an activity you don&#39;t have to have an activity right? a context is enough as it is possible to call context.s"
url: "https://hashnode.com/posts/using-an-activity-from-a-hilt-viewmodel/631914555abe8613b3d2f620/comment/631eef1df73f4734bc05a4e4"
---

[Discussion](https://hashnode.com/posts/using-an-activity-from-a-hilt-viewmodel/631914555abe8613b3d2f620)

Comment [Using an Activity from a Hilt ViewModel](https://hashnode.com/posts/using-an-activity-from-a-hilt-viewmodel/631914555abe8613b3d2f620)

[florent guillemot](https://hashnode.com/@coreflodev)

[Sep 12, 2022](https://hashnode.com/posts/using-an-activity-from-a-hilt-viewmodel/631914555abe8613b3d2f620/comment/631eef1df73f4734bc05a4e4)

Hi Py,

I don't get your blog post to start an activity you don't have to have an activity right? a context is enough as it is possible to call context.startActivity

Thanks, Flo

[Eugen Martynov](https://hashnode.com/@emartynov)

[Sep 12, 2022](https://hashnode.com/posts/using-an-activity-from-a-hilt-viewmodel/631914555abe8613b3d2f620/comment/631eef1df73f4734bc05a4e4#reply-631f5079526d775aa7f65938)

Unfortunately, context is enough in limited cases.

[Pierre-Yves Ricau](https://hashnode.com/@py)

[Sep 12, 2022](https://hashnode.com/posts/using-an-activity-from-a-hilt-viewmodel/631914555abe8613b3d2f620/comment/631eef1df73f4734bc05a4e4#reply-631f5bf66c86d75accc7e5f8)

Starting an activity from the Application class isn't the same as starting it from an activity. When using the application class the activity manager doesn't know which activity stack the new activity should be added to.
