codelab-activity_transitionapi
codelab-activity_transitionapi copied to clipboard
Codelab walks you through tracking activity transition changes (start/stop run, walk, idle, drive, etc.).
Hi! I have donwloaded and executed the code you provide but no activity is being detected. Is ther a problem in the code du to recent Android updates? What can...
no changes, only updated pending intent flags and build , its never called onreceive in API 33.
I did no changes in the code, compiled, ran on Samsung with Android 13, application was terminated with following error, adding FLAG_IMMUTABLE to PendingIntent.getBroadcast(MainActivity.this, 0, intent, **0**) eliminates the exception,...
I ran the `complete` debug variant of the app on Galaxy Z Flip 3 5G (Android 12) and Xiaomi Redmi K40 (Android 12). After walking for a 10 metres or...
I get the following error when I try to run the codelab: E/AndroidRuntime: FATAL EXCEPTION: main Process: com.google.example.android.basicactivityrecognitiontransitionsample, PID: 10099 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.example.android.basicactivityrecognitiontransitionsample/com.google.example.android.basicactivityrecognitiontransitionsample.MainActivity}: java.lang.IllegalArgumentException: com.google.example.android.basicactivityrecognitiontransitionsample: Targeting S+...
I am using s22, android 12. When receive an intent ,there is extra :"com.google.android.location.internal.**EXTRA_ACTIVITY_RESULT**", however from the source code: ` return !hasResult(var0) ? null : (ActivityTransitionResult)SafeParcelableSerializer.deserializeFromIntentExtra(var0, "com.google.android.location.internal.EXTRA_ACTIVITY_TRANSITION_RESULT", CREATOR);` It should...
I'm using the Transition API in a foreground service (by showing an ongoing notification) to constantly detect the user's physical activity transitions. It worked pretty well on Galaxy S9. However,...
in https://developer.android.com/codelabs/activity-recognition-transition#5 you should not pass 0 for the flags rather the pending intent needs tp specify the mutability flag. mActivityTransitionsPendingIntent = PendingIntent.getBroadcast(MainActivity.this, 0, intent, 0);