Comments (21)
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.
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.
Can you please confirm you have set the TouchEnabled
definition for the preprocessor?
from blackberry-commons.
yes . its added.
//#ifdef TouchEnabled
import net.rim.device.api.ui.TouchEvent;
import net.rim.device.api.ui.TouchGesture;
//#endif
from blackberry-commons.
That's on the code, but you need to define it on the project properties:
Just as JDE_4_7_0
is defined there, you need to define TouchEnabled
from blackberry-commons.
when i check the project properties, its showing like below.
there is no compile tab.
from blackberry-commons.
What's on your application's descriptor?
from blackberry-commons.
there are 3 tabs on my application's descriptor
from blackberry-commons.
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.
ok. thanks dear friend........ its working now. Thanks a ton........
from blackberry-commons.
in your post mention this too. so it will be helpful to all developers.
from blackberry-commons.
Glad it worked, I'll make sure to update the docs and README with this info.
from blackberry-commons.
one more doubt- if i am using non touch devices, then how user will know which one gets focus ?
from blackberry-commons.
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.
map is not scrolling on non touch devices. when i scroll the trackball, its not moving.
from blackberry-commons.
It won't by default, check the example I talked about before. The code to have it scroll is in there.
from blackberry-commons.
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.
No, nothing else should be needed... make sure the MapField ha focus and it should scroll...
from blackberry-commons.
its like something is holding map back :P still its not scrolling
from blackberry-commons.
this is my code. https://drive.google.com/file/d/0B-LiA_ra-p02TjJjZ0JjcXBhc2M/view?usp=sharing
from blackberry-commons.
did you find any errors in my code? or what i am doing wrong there ?
from blackberry-commons.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blackberry-commons.