![]() Otherwise, to run on the AVD, use the emulator tag. ![]() If you want to run on an android device, make sure the usb tag is present. You must set the sdk path to the location of your local Android SDKs. The pom.xml file contains the maven configuration. If the instance has not been created, SparkAPI will be instantiated and returned with your configuration. Get a handle to a SparkAPI object via the getInstance() singleton static method. If you want to run on a virtual device, create an Android Virtual Device (AVD) using the android avd tool. The pom.xml is currently set to use the 4.0 SDK (Version 14) but more recent versions can also be used. Once an Android SDK is downloaded to your development machine using the Android SDK tool, it must be deployed to your local maven repository using the maven-android-sdk-deployer and command mvn install -P 4.0. You must also set the USER_AGENT with the name of your app or your API requests will not be accepted. Once you register as a Spark developer and receive your Spark Client Id and Client Secret, open the sparkapi.properties file and set the API_KEY and API_SECRET properties. ![]()
0 Comments
Leave a Reply. |