how to implement Authorize.net in android
===

I just want to do credit card app in android.i.e getting card number & card holder name.. details from user & do payment process.I dont want to do it using paypal and inapp purchase.
So i used Authorize.net.I used code from "https://developer.authorize.net/integration/fifteenminutes/android".But on step 2.i couldn't add its sdk as library with another project. when i create a new proj. as "ExampleActivity.java" & used this codes as it said.,i got red line errors on AuthNet object & Environment.SANDBOX... How could i implement this code..??

Thanks.