Search code examples
androidandroid-intentandroid-fragmentsscringo

Want to know the different type of intents which we can create in android


I saw a line of code in scringo sdk which creates an Intent as below,

        public void run()
        {
            Intent intent = new Intent(aActivity, com/scringo/features/feed/ScringoFeedActivity);
            aActivity.startActivity(intent);
        }

if i copy paste the same code into one of the activity.java file it is throwing error like, com cannot be resolved to a variable, scringo cannot be resolved to a variable and so on.

and i saw a method in Intent class as below,

public Intent(String action, Uri uri)
{
    throw new RuntimeException("Stub!");
}

then why its giving error to me


Solution

  • Hi guys after changing the code like this its working fine,

    Intent intent = new Intent(aActivity, com.scringo.features.feed.ScringoFeedActivity.class);