In version 1.1.0 we change the way of initializing DyScan and setting up the API key.
Depending on the way which you chose to use DyScan, you will need to remove following lines.
public void onScanPress(View v) {Intent scanIntent = new Intent(this, DyScanActivity.class);// Remove the line below// scanIntent.putExtra(DyScanActivity.EXTRA_API_KEY, "{api_key_string}");//...}
DyScanView dyScanView;//...// Remove the line below// dyScanView.setApiKey(API_KEY);
In your Application
class add the following line to init DyScan
.
public class DyScanApplication extends Application {//...@Overridepublic void onCreate() {super.onCreate();//...DyScan.init(this, "{YOUR_API_KEY}");//...}}