3
votes
2answers
47 views

Callback on AlertDialog

I am using an AlertDialog in Android, asking the user for some input. I would like do run some code when the user has finished entering her input. Since an ...
1
vote
0answers
56 views

Generic callback object, but I need the type parameter inside methods

Inside my android app, I currently have methods that look like below code. Since they all need a callback object that basically does the same thing and I would like to try to eliminate the duplicated ...
3
votes
1answer
121 views

Using Callback in Codenameone native code using Java [closed]

I would like to use Callbacks in my StateMachine to fetch values from Callback class, that is set in the native Android code. Is this a right approach to create one? Do you see any issues with the ...
0
votes
1answer
2k views

Efficient implemetation of AlertDialog callback in Android

One day I realised that my Android project utilizes AlertDialogs here and there in very ineffective way. The heavily duplicated portion of code looked like this (actually, copied and pasted from some ...