location - Simulate ActivityRecognition events in Android emulator -
is there way simulate detectedactivity.in_vehicle in android emulator. currently, i'm trying activityrecognitionapi detect event sending commands via telnet.
sensor set acceleration {x}:{y}:{z} geo fix {latitude} {longitude}
faced same issue , got same cricket noises did. partially got around issue refactoring such detected activity processed in it's own asynctask class. wrote series of junits pass in simulate event information activity detection processing class. given android has limit on number of asynctask executes can executed per object, junit creates runnables in loop interact activity processing class.
i found otto , dagger2 libraries may work inject events android bus. still work in progress though...
Comments
Post a Comment