The Verisoul Android SDK is a demonstration project that showcases Verisoul’s fake user detection technology in an Android environment. The app includes:
Complete integration of Verisoul’s Android SDK
Touch event tracking and accelerometer data collection
Create or modify your Application class to initialize Verisoul:
Copy
Ask AI
class YourApplication : Application() { override fun onCreate() { super.onCreate() Verisoul.init( this, VerisoulEnvironment.Prod, // or use Sandbox for testing "YOUR_VERISOUL_PROJECT_ID" ) }}
Make sure to register your Application class in your AndroidManifest.xml:
Copy
Ask AI
<manifest> <application android:name=".YourApplication"> <!-- Activities and other components --> </application></manifest>
open class BaseActivity : AppCompatActivity() { override fun dispatchTouchEvent(event: MotionEvent?): Boolean { Verisoul.onTouchEvent(event) return super.dispatchTouchEvent(event) } // Other common BaseActivity code...}
Then extend your activities from this base class:
Copy
Ask AI
class MainActivity : BaseActivity() { // Your activity implementation}
After exploring the sample app, you can use it as a reference for implementing Verisoul in your own Android applications.For more detailed documentation, see the Verisoul Integration Guide.