I have the following code should be wrapped to be used in b4a library while there is another class in library that I wrapped a initialize method in that .
class the implemented initialize method in it is:
this class and method worked successfully but I am not sure how to wrap the class that extends another class in java library also what should be written instead of JSONObject in wrapper
B4X:
public class MyPushListener extends PusheListenerService {
@Override
public void onMessageReceived(JSONObject message) {
// Your code
}
}
B4X:
@activityobject
public class pushwrapp{
public void initialize(BA ba){
//Push is a class name that registers app to receive a notification from special web server
Push.initialize(ba.activity,true);
}