Gson module not found Blackberry Java application - java

I'm developing a simple application for Blackberry and i'm using Google's gson to retrieve some data from a server.
The UI was working fine but when I added the gson part it started failing, it wont run.
When I run the application in the simulator it show this error: "Uncaught: RuntimeException" on that annoying white screen of death and after holding the click button I can see that there is an alert dialog that says "Module 'gson-1.4' not found".
However I did added "gson-1.4.jar" in the Project's Properties -> Java Build Path -> Add External JARs... also, the Gson objects are recognized at my code, no syntax errors at my code.
BTW, I'm using Eclipse and the most recent Blackberry SDK
Please help

Gson is created around Reflection and other stuff that is not present on J2ME, wich the Blackberry API is based on.
So, sadly no Gson for Blackberry.

Related

Trying to get the Exchange java libary into eclipse

I'm trying to make a bot and was going to use the XChange API to talk to the servers.
I cannot figure out how to set the library up on eclipse.
On the url (git hub)
https://github.com/timmolter/XChange
at the buttom it says
For the latest bugfixes and features you should use the [snapshot jars] (https://oss.sonatype.org/content/groups/public/org/knowm/xchange/) or build yourself from the DEVELOP
I went to the snapshoot page, a buch of links not simply a list of files tro download.
Trying to figure out the best way to get this into eclipse.

GC stopped working when add google play service library

My project working perfect but i need map implementation and I add google play service library. After that whenever i run project my GC stopped working and eclipsed hanged. I closed eclipse and i removed google play service library and now my project working fine.
This strange but it's really happening. I also update my google play service library. But updated library also not working.
Two error dialog I am getting when try to run my project
I tried it approx 3 times by removing and adding library but same problem.
EDIT : I also try this library with my previous map sample project but now its also not working.

Integrate endpoints.cmd generated library from maven eclipse plugin project into android app

I'm a bit of a newbie to all this.. but I can't seem to find any specific instructions for my scenario
I have built a simple endpoint api, using a maven project via eclipse.
I have built an android app, and just want to add a little test in it to use the simple api.
(sidenote: i have also built an app engine web app which will later also [i hope] make use of the same endpoint api, so both the web app and the android app make use of the same library / code)
anyway, I'm stumbling on a couple steps.
I can't seem to use the eclipse 'google -> generate cloud endpoint client library' option, since it's a maven project.
So i found on the google site, instructions to use the endpoints.cmd commandline to generate the library.
I successfully did this apparently (it created a zip file rather then just a jar)
here is where i am confused what to do next.. or if i missed something.
I have tried adding the jar within the zip as a library in the build path for my android app.
When I do that, I see that the Builder member doesn't seem to have been added.
Should I expect it to have been added by the library generation?
I can't seem to do anything in my android app code to use the library.
What am I missing / doing wrong?

Facebook SDK crashes google-play-services-lib if imported as existing Android source code

I have an extremely strange problem to which finding solution seems to be very tricky. Here's the story:
The application I'm working on uses both Facebook SDK and Google Maps v2. Team mate was working on Google Maps and I was working on Facebook part. When we combine his and mine code it appears that just having FacebookSDK as an imported project in the workspace (not even referenced in Properties|Android|Library section of our app) , straight away makes the app not see the Google Maps library. The work around is to add Google Maps into Java build path, however the application still crashes when we try to access the activity based on Google Maps. Not having Facebook SDK in the workspace makes the Google Maps work. When the app is ran with Google Maps added to the Java build Path, when trying to access the Google Maps activity LogCat shows NoClassDefFoundError exception.
Hope I explained the problem well. If not then let me know what more is required to get closer to fixing this strange problem. Thanks :)
SOLUTION: It seems that adding Java Build Path reference to android_sdk\extras\google\google_play_services\libproject\google-play-services_lib\libs\google_play_services.jar file fixed the issue. Crysis averted. ;)

Add Google API to existing eclipse project

I am writing an android app that will use Google Maps but to implement this I need the Google API. When I downloaded the android platform sdk (example android 4.0) I did not download the Google API cause did not know that I would need it to implement this feature.However, I went back and downloaded it. How do I add it to my existing project. Did some searching and all showed how to start a new project with the API but not how to add it to the existing project.
Since you have already downloaded the Google APIs for the version that you are developing for, example Android 4. all you have to do is:
Right click on your project -> Go to Properties -> Then Android - > Then select the Google APIs at API level 14
Try this simple thing. In your file which you need the google maps api which extends 'Activity', replace Activity with MapActivity. It should have a red line showing error on your code. hover mouse over it and click on the option 'Fix Project Setup'. you will then find an option that suggests you to import Google APIs. select it, and you are done.
Let me know if that works.

Categories

Resources