I’m a beginner in android and i tried running some code I got from the net.
Android can’t import the following:
import android.net.http.EventHandler;
import android.net.http.Headers;
import android.net.http.RequestQueue;
Are these packages not included in the sdk? Where can I get these packages?
Those classes are in the Android Open Source Project (AOSP) Sources but they’re not included in the SDK from Google. If you really want those classes you could download the source tree with
git.However, since those classes aren’t easily available you’d be better off looking for some different sample code to run.