{"action":"created","issue":{"url":"https://api.github.com/repos/spotify/android-sdk/issues/202","repository_url":"https://api.github.com/repos/spotify/android-sdk","labels_url":"https://api.github.com/repos/spotify/android-sdk/issues/202/labels{/name}","comments_url":"https://api.github.com/repos/spotify/android-sdk/issues/202/comments","events_url":"https://api.github.com/repos/spotify/android-sdk/issues/202/events","html_url":"https://github.com/spotify/android-sdk/issues/202","id":135287430,"number":202,"title":"Calling LoginActivity from another Intent","user":{"login":"deeuler","id":10618564,"avatar_url":"https://avatars.githubusercontent.com/u/10618564?v=3","gravatar_id":"","url":"https://api.github.com/users/deeuler","html_url":"https://github.com/deeuler","followers_url":"https://api.github.com/users/deeuler/followers","following_url":"https://api.github.com/users/deeuler/following{/other_user}","gists_url":"https://api.github.com/users/deeuler/gists{/gist_id}","starred_url":"https://api.github.com/users/deeuler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deeuler/subscriptions","organizations_url":"https://api.github.com/users/deeuler/orgs","repos_url":"https://api.github.com/users/deeuler/repos","events_url":"https://api.github.com/users/deeuler/events{/privacy}","received_events_url":"https://api.github.com/users/deeuler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-22T01:24:09Z","updated_at":"2016-02-24T23:31:12Z","closed_at":null,"body":"I need a little help working with the SDK. I am trying to follow the [SDK tutorial](https://developer.spotify.com/technologies/spotify-android-sdk/tutorial/) but not use this activity as a main activity. As such, I am trying to perform the whole login activity from the onCreate() of another class, called as a new Intent object from my main activity. I, basically, want to select a button then be directed to the Spotify loginActivity. Unfortunately, I believe this is not working correctly (i.e. the app crashes) because during onCreate(), class \"com.spotify.sdk.android.authentication.LoginActivity\" is trying to be found in my local package (like \"com.example.appName\"). Debug log points to AuthenticationClient.openLoginActivity(), to be specific. The error stated reads\r\n\r\n \"android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.appName/com.spotify.sdk.android.authentication.LoginActivity}; have you declared this activity in your AndroidManifest.xml?\". \r\n\r\nHow can I go about remedying this? I'm pretty green on app development and authentication, so please bear with me :)\r\nI will attach some relevant text samples\r\nMy MainActivity class:\r\n```\r\npublic class MainActivity extends AppCompatActivity{\r\n    onCreate(Bundle SavedInstanceState){\r\n    //yada yada...\r\n    }\r\n\r\n    //where the intent change occurs\r\n    public void onSpotifyClick(View view){\r\n        Intent intent = new Intent(PlayerActivity.this,SpotifyLogin.class);\r\n        startActivity(intent);\r\n        this.finish();\r\n    }\r\n}\r\n```\r\n\r\nMy SpotifyLogin class:\r\n```\r\npublic class SpotifyLogin extends Activity implements PlayerNotificationCallback,\r\n    ConnectionStateCallback{\r\n\r\n    //some required variables...\r\n\r\n    protected void onCreate(Bundle savedInstanceState) {\r\n        super.onCreate(savedInstanceState);\r\n        setContentView(R.layout.activity_spotify_login);\r\n\r\n        AuthenticationRequest.Builder builder = new AuthenticationRequest.Builder(CLIENT_ID,\r\n                AuthenticationResponse.Type.TOKEN,\r\n                REDIRECT_URI);\r\n        builder.setScopes(new String[]{\"user-read-private\", \"streaming\"});\r\n        AuthenticationRequest request = builder.build();\r\n\r\n       //where onCreate() breaks down\r\n        AuthenticationClient.openLoginActivity(this, REQUEST_CODE, request);\r\n    }\r\n}\r\n```\r\n\r\nFrom my AndroidMainfest file:\r\n```\r\n...\r\n<activity android:name=\".SpotifyLogin\">\r\n            <intent-filter>\r\n                <action android:name=\"android.intent.action.VIEW\"/>\r\n                <category android:name=\"android.intent.category.BROWSABLE\"/>\r\n                <category android:name=\"com.spotify.sdk.android.authentication.LoginActivity\" />\r\n                <data android:scheme=\"SpotifyLogin\" android:host=\"callback\"/>\r\n            </intent-filter>\r\n            <activity\r\n                android:name=\"com.spotify.sdk.android.authentication.LoginActivity\"\r\n                android:theme=\"@android:style/Theme.Translucent.NoTitleBar\"/>\r\n        </activity>\r\n...\r\n```\r\n\r\nI really hope the error I am making is obvious for you. Thanks in advance!"},"comment":{"url":"https://api.github.com/repos/spotify/android-sdk/issues/comments/188514169","html_url":"https://github.com/spotify/android-sdk/issues/202#issuecomment-188514169","issue_url":"https://api.github.com/repos/spotify/android-sdk/issues/202","id":188514169,"user":{"login":"Fanta1090","id":4232903,"avatar_url":"https://avatars.githubusercontent.com/u/4232903?v=3","gravatar_id":"","url":"https://api.github.com/users/Fanta1090","html_url":"https://github.com/Fanta1090","followers_url":"https://api.github.com/users/Fanta1090/followers","following_url":"https://api.github.com/users/Fanta1090/following{/other_user}","gists_url":"https://api.github.com/users/Fanta1090/gists{/gist_id}","starred_url":"https://api.github.com/users/Fanta1090/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fanta1090/subscriptions","organizations_url":"https://api.github.com/users/Fanta1090/orgs","repos_url":"https://api.github.com/users/Fanta1090/repos","events_url":"https://api.github.com/users/Fanta1090/events{/privacy}","received_events_url":"https://api.github.com/users/Fanta1090/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T23:31:12Z","updated_at":"2016-02-24T23:31:12Z","body":"It seems that you have declared the spotify LoginActivity inside another activity tag (SpotifyLogin).\r\n\r\nYour manifest should be something like this :\r\n\r\n```\r\n<activity android:name=\".SpotifyLogin\">\r\n            <intent-filter>\r\n                <action android:name=\"android.intent.action.VIEW\"/>\r\n                <category android:name=\"android.intent.category.BROWSABLE\"/>\r\n                <category android:name=\"com.spotify.sdk.android.authentication.LoginActivity\" />\r\n                <data android:scheme=\"SpotifyLogin\" android:host=\"callback\"/>\r\n            </intent-filter>\r\n</activity>\r\n\r\n<activity android:name=\"com.spotify.sdk.android.authentication.LoginActivity\"\r\n              android:theme=\"@android:style/Theme.Translucent.NoTitleBar\"/>\r\n```"}}