문제

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