Question

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

Was it helpful?

Solution

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

Intent intent = new Intent(aActivity, com.scringo.features.feed.ScringoFeedActivity.class);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top