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

有帮助吗?

解决方案

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

Intent intent = new Intent(aActivity, com.scringo.features.feed.ScringoFeedActivity.class);
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top