I want to get the longitude and latitude of device. I used location api to get the longtitude and latitude the problem now I am facing is that I could not call the getLocation() method inside button click event. It throws an error as getLocation() method cannot be called from event thread.Can any one tell me how to solve this problem?
Blackberry - getLocation() method cannot be called from event thread
1.5k views Asked by Kumar At
1
There are 1 answers
Related Questions in BLACKBERRY
- Why doesn't Blackberry Hub+ Calendar update events with given UID?
- Blackberry Workspaces
- Can any EDM like Android Enterprise, Blackberry UEM or Intune enable Accessibility Service or change any other system setting for an Android app?
- iOS - Accessing Certificates enrolled by Blackberry UEM
- can not do blackberry z10 app developement
- BlackBerry Dynamics SDK: Specific Cookies Set in the HTTP & XMLHTTP Response via the "Set-Cookie" header are not being set in the WebView
- Build of Xamarin iOS app fails on VS for Windows when using dynamic version of BlackBerry Dynamics SDK
- How to open downloaded documents file from blackberry access in windows explorer
- How to enable App Store reviewers to test Blackberry Dynamics apps
- How to attach a SSL certificate in a request call using GDHttpClient in Blackberry Dynamics | Android
- How to load www folder(html files) from internal storage to BBDCordovaWebview?
- Blackberry Dynamics - authentication via oAuth does not call back to the main app
- Launch Outlook from Blackberry Dynamics app
- Unable to set cookie in WKWebView using "Set-Cookie in BlackBerry Dynamics app
- BB10 signing migration
Related Questions in GEOLOCATION
- Ionic/Capacitor: Background Location Tracking on iOS and Android?
- Getting updated latitude longitude in background without internet on android
- How to properly trigger geofence?
- Wordpress Website to store Geolocation of the users and search based on it
- Generate country names from IP Addresses in R and saving these as a new variable in a dataframe
- C# Blazor WebAssembly - how to access device heading
- Vaadin 24 stop Geolocation maplibre
- Android App Rejected for Background Location Access Using Capacitor Geolocation
- Slow Location Tracking [Flutter]
- What is wrong with this code? Request for permissions not appearing Android Studio
- Apple Wallet Event Pass Appears on Lockscreen Outside MaxDistance Range
- I want to search for address from google maps API and fill it automatically in Text Form Field
- iOS app with location only works on iPhone and not on iPad, why?
- MAUI MAP - How to get the business type and name from Location?
- Is there a way to set a cookie using JS and force a dynamic element reliant on the cookie to update without reloading the page?
Related Questions in GPS
- Query Overpass turbo by lat/lon to find specific tags
- SQL: Assigning occasion numbers to GPS points when visiting places based on conditions
- Updating Ublox module via commandline with file
- Why does getting the speed in my android app fluctuate too high even when not moving while in the app "GPS Test" it shows 0?
- Unity - AR - GPS (Simple 3D Objects Appear at GPS coordinates) - Android and iOS
- Android location is providing timestamps in the future, or am I stupid? Try it for yourself
- Convert data of the format [longitude, latitude, altitude] into the format [x, y, z]
- How to program GNSS with SIMCOM A7670 and Arduino
- convert hatanaka to rinex for multiple files
- Calculating a DateTime in a Specific Encoding in C#
- GPS neo and Arduino mega 2560 with other sensors
- Receiving Data from Teltonika FMB140 Device via SIM on Server using CodeIgniter 4
- Load IGC file as Simple Features in R
- Android Java - LocationListener taking too long too fetch location even with stable connection
- Is there a function to isolate rows of data based on the distance between the start and stop of their GPS coordinates?
Related Questions in JSR179
- How to resolve LocationException of ProximityListener in j2me
- In J2ME, How to pause and resume the thread
- LocationUpdate method getting called too frequently on Blackberry
- What are the other ways of getting longitude and latitude of mobile phone other than using JSR-179?
- SecurityException is raised when trying to use JSR-179
- how to get gps and network location together with j2me location API
- Midlet - JSR179 Getting "Location Request timed out" issue
- Can I fetch position of mobile device in j2me having no GPS service using information from cell tower
- Global Positioning System in j2me
- NoClassDefFoundError in j2me
- NullPointerException error on Implementing Location API on J2me
- How to find device location in blackberry
- How to get Latitude and Longitude for particular city or street without using google map?
- Nokia N97 realted to orientation
- Blackberry - getLocation() method cannot be called from event thread
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
You simply create another thread and call getLocation() from that thread. See the documentation for java.lang.Thread in the API documentation.