Other Editing Parse Library

Liew Yew Loung

Member
Licensed User
Longtime User
I've been trying to edit the Parse library to include a method in ParsePush to allow the sending of JSON objects. However, my B4A code will not work with my newly compiled library. I'm not sure if the problem lies with my new code, the way in which I created the .jar file, or the sourcecode that I have is wrong.

I have done the following methods:
1) Copy and pasted the source code(post#66 of link) for Parse Library onto an Eclipse workspace
2) Imported the necessary libraries for the new code
3) Exported as "Parse.jar"
4) Modified "Parse.xml" to match the new code in "Parse.jar"
5) Replaced the older libraries with the new libraries
6) Reopened b4a code, build and compile on an android phone

The error msg I get only appears on the phone, saying that my android app has stopped working.
 

Liew Yew Loung

Member
Licensed User
Longtime User
3 errors were given by the IDE,

The method done(List<ParseObject>, ParseException) of type new FindCallback(){} must override or implement a supertype method ParseObjectWrapper.java /test/src/anywheresoftware/b4a/objects line 583 Java Problem

Name clash: The method done(List<ParseObject>, ParseException) of type new FindCallback(){} has the same erasure as done(List, ParseException) of type FindCallback but does not override it ParseObjectWrapper.java /test/src/anywheresoftware/b4a/objects line 583 Java Problem

The type new FindCallback(){} must implement the inherited abstract method FindCallback.done(List, ParseException) ParseObjectWrapper.java /test/src/anywheresoftware/b4a/objects line 581 Java Problem

This method, FallCalback() was provided in the sourcecode file
 

Attachments

  • parse_source.zip
    9.1 KB · Views: 258

Liew Yew Loung

Member
Licensed User
Longtime User
Because I'm trying to add a method to ParsePush to allow me to send Json Objects through Parse's push notification service. However, the current parse library does not provide such a method.
 

Liew Yew Loung

Member
Licensed User
Longtime User
I guess I can post a request.

However is it possible to get the correct source code for the library as well? As I actually need the function as soon as possible.
 

Liew Yew Loung

Member
Licensed User
Longtime User
Thank you for linking the source code. I've used your code provided , but I still get the same 3 errors in my IDE.

The method done(List<ParseObject>, ParseException) of type new FindCallback(){} must override or implement a supertype method ParseObjectWrapper.java /test/src/anywheresoftware/b4a/objects line 604 Java Problem

Name clash: The method done(List<ParseObject>, ParseException) of type new FindCallback(){} has the same erasure as done(List, ParseException) of type FindCallback but does not override it ParseObjectWrapper.java /test/src/anywheresoftware/b4a/objects line 604 Java Problem

The type new FindCallback(){} must implement the inherited abstract method FindCallback.done(List, ParseException) ParseObjectWrapper.java /test/src/anywheresoftware/b4a/objects line 601 Java Problem
 

Liew Yew Loung

Member
Licensed User
Longtime User
Hmmmm. I have no idea how to solve this issue. Do you have any suggestions that I can try to solve this issue?
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…