M Mousa Najafi Member Licensed User Longtime User Nov 16, 2015 #1 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 . Code: Copy public class MyPushListener extends PusheListenerService { @Override public void onMessageReceived(JSONObject message) { // Your code } } class the implemented initialize method in it is: Code: Copy @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
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 . Code: Copy public class MyPushListener extends PusheListenerService { @Override public void onMessageReceived(JSONObject message) { // Your code } } class the implemented initialize method in it is: Code: Copy @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
Erel B4X founder Staff member Licensed User Longtime User Nov 16, 2015 #2 Please post Java questions in the libraries developers forum. https://www.b4x.com/android/forum/forums/libraries-developers-questions.32/ Upvote 0
Please post Java questions in the libraries developers forum. https://www.b4x.com/android/forum/forums/libraries-developers-questions.32/