Code Monkey home page Code Monkey logo

Comments (21)

jsotuyod avatar jsotuyod commented on May 22, 2024

Hi, thanks for using our library.

My best guess is that you are not compiling with touch support. Our library support Blackberry OS 4.6+, and such old versions did not support touch events (which where added in 4.7.0).

To support both flavors, our library uses conditional compilation. In particular, we use the variable TouchEnabled to include / filter touch-related code, as can be seen here. Without that definition, touch will be disabled.

You can read more about the preprocessor and how to configure such directives to include / exclude pieces of code here

Please let me know if this solves this issue, so I can close it and add proper clarifications to the README.

from blackberry-commons.

rincethomas33 avatar rincethomas33 commented on May 22, 2024

hi, when i double tap on the pin(blackberry 9850 touch device), then only its getting focus. after that i have to click the trackball. then it will show the details of the pin. when i click the tap on the pin, nothing is happening.

from blackberry-commons.

jsotuyod avatar jsotuyod commented on May 22, 2024

Can you please confirm you have set the TouchEnabled definition for the preprocessor?

from blackberry-commons.

rincethomas33 avatar rincethomas33 commented on May 22, 2024

yes . its added.
//#ifdef TouchEnabled
import net.rim.device.api.ui.TouchEvent;
import net.rim.device.api.ui.TouchGesture;
//#endif

from blackberry-commons.

jsotuyod avatar jsotuyod commented on May 22, 2024

That's on the code, but you need to define it on the project properties:

Project properties example

Just as JDE_4_7_0 is defined there, you need to define TouchEnabled

from blackberry-commons.

rincethomas33 avatar rincethomas33 commented on May 22, 2024

when i check the project properties, its showing like below.
img
there is no compile tab.

from blackberry-commons.

jsotuyod avatar jsotuyod commented on May 22, 2024

What's on your application's descriptor?

from blackberry-commons.

rincethomas33 avatar rincethomas33 commented on May 22, 2024

there are 3 tabs on my application's descriptor
build
alternative
app

from blackberry-commons.

jsotuyod avatar jsotuyod commented on May 22, 2024

Right there on the first one. Bottom left it says "Preprocessor Directives", click on "Add...", add TouchEnabled and make sure it's checked as Active.

from blackberry-commons.

rincethomas33 avatar rincethomas33 commented on May 22, 2024

ok. thanks dear friend........ its working now. Thanks a ton........

from blackberry-commons.

rincethomas33 avatar rincethomas33 commented on May 22, 2024

in your post mention this too. so it will be helpful to all developers.

from blackberry-commons.

jsotuyod avatar jsotuyod commented on May 22, 2024

Glad it worked, I'll make sure to update the docs and README with this info.

from blackberry-commons.

rincethomas33 avatar rincethomas33 commented on May 22, 2024

one more doubt- if i am using non touch devices, then how user will know which one gets focus ?

from blackberry-commons.

jsotuyod avatar jsotuyod commented on May 22, 2024

The CustomMap constructor takes a Bitmap as a parameter, which is meant to be used as a crosshair to show trackpad-based devices where they would be clicking.

In this example we are using a blue round crosshair. The crosshair is always in the middle of the map. When you move the trackpad, the map moves around. Once you place the crosshair over a marker, you can click to open it.

from blackberry-commons.

rincethomas33 avatar rincethomas33 commented on May 22, 2024

map is not scrolling on non touch devices. when i scroll the trackball, its not moving.

from blackberry-commons.

jsotuyod avatar jsotuyod commented on May 22, 2024

It won't by default, check the example I talked about before. The code to have it scroll is in there.

from blackberry-commons.

rincethomas33 avatar rincethomas33 commented on May 22, 2024

i added the code of key down and repeat. still its not scrolling. i have to add anything else?. zoom in and zoom out is working(using keys "o" and "i")

from blackberry-commons.

jsotuyod avatar jsotuyod commented on May 22, 2024

No, nothing else should be needed... make sure the MapField ha focus and it should scroll...

from blackberry-commons.

rincethomas33 avatar rincethomas33 commented on May 22, 2024

its like something is holding map back :P still its not scrolling

from blackberry-commons.

rincethomas33 avatar rincethomas33 commented on May 22, 2024

this is my code. https://drive.google.com/file/d/0B-LiA_ra-p02TjJjZ0JjcXBhc2M/view?usp=sharing

from blackberry-commons.

rincethomas33 avatar rincethomas33 commented on May 22, 2024

did you find any errors in my code? or what i am doing wrong there ?

from blackberry-commons.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.