Android Question How to wrap a class that extends another class in java

Mousa Najafi

Member
Licensed User
Longtime User
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 .
B4X:
public class MyPushListener extends PusheListenerService {
      @Override
     public void onMessageReceived(JSONObject message) {
          // Your code
     }
}
class the implemented initialize method in it is:
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);
   }
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
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…