Stream

Join this community to post or comment
 
Are there any example, how to Query object with asynchronous method in GreenDao ?

Especially with asyncSession.?
1
Add a comment...

greenrobot
owner

greenDAO  - 
 
Using greenDAO with Android Studio? We got some fixes for you.
With greenDAO 3.2.x we are improving Android studio compatibility. Actually, greenDAO 3.2.0 was already released a couple of weeks ago, without a notification post. The first 3.2 release aligned an internal dependency (JDT ) to work nicely with Android Studio 2.2. Also, it added Protocol Buffers support to annotations. Today we are releasing 3.2.1 for …
2
Add a comment...

greenrobot
owner

greenDAO  - 
 
Another upcoming feature for which we would love some input is default values.
See https://groups.google.com/forum/#!topic/greendao/cbbUkP6DdHs for a discussion. Using SQLite's DEFAULT values probably won't work because greenDAO bind's all values for inserting. Probably, th...
1
Add a comment...
 
Does greendao supports JAVA projects that are not android projects?
1
greenrobot's profile photo
 
No. For Java, one often uses big JPA ORMs.
Add a comment...
 
Hi, is possible create a db dump with GreenDao 2.1.0? What I need is create a *.db file with all data. How can I do it?

Thanks in advance!
1
Add a comment...

greenrobot
owner

EventBus  - 
 
EventBus 3 development is in its final stages...
Maybe you have already heard about the upcoming EventBus 3: EventBus 3 will switch to annotations and drop the onEvent naming convention; Android's reflection performance regarding annotation is still inferior compared to a JVM (including Android 6.0); EventBus 3 will bring a compile time ...
3
Add a comment...
 
With a simpler design possible created the Android Studio, following the example proposed by you, but EventBus don't work.

I always get the error: Subscriber class has no public methods called onEvent.

Already I researched where I could, and no solution solved my problem. Some help?
1
Vinh Le's profile photo
Vinh Le
 
Let me know if you have a working example of Eventbus 3.0.  I followed the 3 step example, but nothing works .. how can there be a library without a simple working example project.
Add a comment...

greenrobot
owner

EventBus  - 
 
Just added some guidelines for reporting issues. Support questions on the issue tracker went a bit over board on the issue tracker lately... Hope it helps everyone.
2
Add a comment...

Nik Clayton

EventBus  - 
 
Hi, +greenrobot is work on the 2.x line for EventBus effectively frozen in favour of the 3.x / annotations work? I ask because there are a number of pending pull requests (I'm particularly interested in seeing https://github.com/greenrobot/EventBus/pull/158 land for my app).
1
greenrobot's profile photo
 
We plan to have at least one more maintenance release for 2.x. 
Add a comment...
 
Hi,
I started to use EventBus in my project. I need help to clarify Best Practice. I have registered Usecase events in onCreate method of Application class. The activities post Usecase events. The Application class executes these events in Async mode. The events call REST, db... objects, and post the data by bus. The activities receive the data in MainThread method.

Is it correct to register events in the Application class?
1
Add a comment...

greenrobot
owner

EventBus  - 
 
Did you notice the class AsyncExecutor in EventBus? It has been around since 2.1, but it just got documented:
https://github.com/greenrobot/EventBus/blob/master/HOWTO.md#asyncexecutor
3
1
Add a comment...

greenrobot
owner

EventBus  - 
 
Pushed a release candidate for EventBus 2.3.0 to snapshot repository.

Changelog: https://github.com/greenrobot/EventBus/blob/master/CHANGELOG.md
Name, Last Modified, Size, Description. Parent Directory · eventbus-2.3.0-20141109.225615-1-javadoc.jar, Sun Nov 09 16:56:28 CST 2014, 110356. eventbus-2.3.0-20141109.225615-1-javadoc.jar.asc, Sun Nov 09 16:56:30 CST 2014, 190. eventbus-2.3.0-20141109.225615-1-javadoc.jar.asc.md5 ...
4
1
greenrobot's profile photo
 
And another push some minutes ago...
Add a comment...

Created by

About this community

Open source by greenrobot

greenrobot
owner

greenDAO  - 
 
With greenDAO 3.1, the popular Android ORM comes with fixes for the new annotation processor, and also introduces "save" semantics and RxJava support.
4
1
Add a comment...

greenrobot
owner

greenDAO  - 
 
We are thinking about how to support Rx in greenDAO. Please help us brainstorming to find the best possible solution.
While pragmatic programmers often do database operations on the main thread, some prefer strictly asynchronous operations. While greenDAO offers the latter, we should also have direct Rx support i...
2
Add a comment...

Kenny Wyland

greenDAO  - 
 
I'm investigating greenDAO for an Android version of one of our iOS apps that heavily uses CoreData functionality.

I'm confused on how to start with greenDAO. I've seen the DaoGeneratorExample code, but I'm not confident on how that relates to my project.

Let's assume my project is called MyApp. Do I need to create a SECOND Android project called MyAppDaoGenerator which I just run to generate java files and put them in the MyApp directories?

Or is the schema generation supposed to exist within the MyApp code?
1
greenrobot's profile photo
 
Hi Kenny, the generator project is a second Java (non-Android project).
Add a comment...

greenrobot
owner

greenDAO  - 
 
Thanks to the new Gradle 2.12 and compileOnly dependencies, Android Studio handles greenDAO's source nicely for the first time ever. Before, it had serious classpath problems making it almost impossible to work with.
1
Add a comment...

Pronab Pal

EventBus  - 
 
I went through the Event Bus documentation and presentations. What is not clear to me is how the events passed through the view hierarchy of Android framework is transferred to Event bus. Does Event Bus expects that the events from view hierarchy is passed through to event bus through a subscription model there by complicating further the whole view hierarchy event handling model given by Android framework ?  Where does Event Bus sit in this chain of events shown in the diagram in the reference article ? I feel it is mandatory for every one to understand this before embracing the Event Bus model of pub /sub , which has been good in message passing model of events; but here we are talking about snatching events from a framework taking care of the highly responsive UI - GPU layer of events. Could some one please explain. More to the point if some one is to develop a gesture event handling library for Android,I am not sure if  Event Bus will be a good way to develop a clean code, and I am not at all comfortable about its performance implication. 
On my journey of learning Android Development, I've realised that it is really important to understand the input handling especially how the entire touch events framework work. Wrapping your head around the entire propagation of touch events (including the gesture) is imperative else while ...
1
1
Matthias Friedrich's profile photoPronab Pal's profile photo
2 comments
 
+Matthias Friedrich , thanks for confirming that ; I can see the use of Event bus for inter process and between thread communication; these are essentially message events ; however in a recent project I was shocked to find codes which uses event bus library to pass touch events ; no doubt the code has lots of funny issues.
perhaps the event bus library  site need to make the distinction clear.
Add a comment...

greenrobot
owner

greenDAO  - 
 
Joins are a major new feature for the upcoming greenDAO release. It is already available in the master branch, and here's the documentation how to use joins based on the QueryBuilder API.
2
Add a comment...
 
While going through EventBus slideshare, it states to add all the events on a single class. Further, if my class needs to listen to multiple events, I need to make multiple function. In order to avoid it , I am making a single function to access multiple events. And in order to differentiate the event type, I am using the class name as I don't want to rely on reflection. Could you verify whether this is the appropriate way to do it. Or is there any other efficient methods. Thanks
1
greenrobot's profile photoSantosh Dhakal's profile photo
2 comments
 
+greenrobot : So does this mean, that we need multiple methods for listening to multiple events. Is there any efficient way for making event listen on a single method. Thanks
Add a comment...

greenrobot
owner

EventBus  - 
 
For the next major EventBus release, we are currently experimenting with @Subscribe annotations and we are looking for feedback early on. A preview version is already deployed to a snapshot repository. Check the "annotations" branch on GitHub for some details. It comes with an annotation processor to index all available annotations at build time.
8
3
Santosh Dhakal's profile photoHalyson Gonçalves's profile photo
4 comments
 
Congratulations, great change!
Add a comment...