Andrei Dobrescu

Results 29 comments of Andrei Dobrescu

Some good news: Today I tried Android Studio Arctic Fox with one of my projects. Tried Java 11, 15, 16. Java 11 works fine, as officially announced. Java 15 also...

@TWiStErRob @JakeWharton Android Studio Arctic Fox was released the day before yesterday. I tried today both Java 11 and Java 15 (with AdoptOpenJDK build), on one of my projects -...

Java 17 LTS is out now. - [issue](https://issuetracker.google.com/issues/200698856) asking them to implement Java 17 support on dexer - [issue](https://issuetracker.google.com/issues/197081367) asking them to implement records support on dexer

Instead of using IDs inside the library, why don't you create more descriptive event classes? For instance, on your given example, say, you have a class describing a row with...

simply call register() inside onCreate then unregister inside onDestroy. I usually do it like this: EventBuses.kt file ``` val ForegroundEventBus = EventBus() val BackgroundEventBus = EventBus() ``` ``` abstract class...

Android itself can do two things: - either terminate activities, in this case onDestroy will be called - or either terminate the entire app process, in this case I don't...

ok ``` public class EventBuses { public static final EventBus ForegroundEventBus = new EventBus(); public static final EventBus BackgroundEventBus = new EventBus(); } ``` ``` import static your.package.name.EventBuses.*; public abstract...

it's not about the separate module. the error means the class doesn't have any method annotated with subscribe (it doesn't receive any event). you can wrap eventbus.register(this) call inside a...

as far as I understand the code: When does the value of the if statement become false in the above condition? before the if statement isPosting will always be false....

I guess Xamarin has C# Java interop. Try C#'s annotation ("attributes") syntax, [AnnotationName] instead of @ AnnotationName ``` [Subscribe] public void OnEvent(NetworkInfo networkInfo) { Console.WriteLine(networkInfo); } ```