BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 05-04-2012, 02:55 AM   #1
narasinga
Knows Where the Search Button Is
 
Join Date: Sep 2011
Model: 9630
PIN: N/A
Carrier: Reliance
Posts: 29
Default Need to Know Mobile is in Motion State

Please Login to Remove!

Hi Friends,

I Need to know is my blackberry mobile in Motion state or in Stay state.

How could i know this..
Offline  
Old 05-04-2012, 08:06 AM   #2
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default Re: Need to Know Mobile is in Motion State

Define "in motion state" and "in stay state"

What exactly are you trying to detect?

There are two possibilities, depending on what you are trying to accomplish: GPS or Accellerometer.
Offline  
Old 05-04-2012, 11:29 PM   #3
narasinga
Knows Where the Search Button Is
 
Join Date: Sep 2011
Model: 9630
PIN: N/A
Carrier: Reliance
Posts: 29
Default Re: Need to Know Mobile is in Motion State

Hi currently i m implementing GPS Application and i need to stop gps for some time which is mobile is not in motion state. If mobile is in motion state then i have to start gps. To accomplish this object i need to know mobile is in motion or not..

My mobile doesn't support Accellerometer concept.. (9300) so i can't implement with this program..
Offline  
Old 05-05-2012, 09:21 AM   #4
hrbuckley
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Default Re: Need to Know Mobile is in Motion State

The GPS will tell you when motion has stopped, within reason. One thing I have used to start the GPS up again is the change in current active cell which can be gotten from GPRSInfo or CDMAInfo on a periodic basis.
__________________
My other Blackberry is a PlayBook.
Offline  
Old 05-06-2012, 11:31 PM   #5
narasinga
Knows Where the Search Button Is
 
Join Date: Sep 2011
Model: 9630
PIN: N/A
Carrier: Reliance
Posts: 29
Default Re: Need to Know Mobile is in Motion State

what is mean my current active cell? I need to implement same (have to start gps when user in motion).
Offline  
Old 05-07-2012, 07:03 AM   #6
hrbuckley
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Default Re: Need to Know Mobile is in Motion State

A cell phone communicates with the network through one cell (a radio tower that interfaces the carriers network to the cellphone frequencies) at a time. A change from one cell to another, or a significant change in signal strength can indicate a change in location. You will need to develop a set of appropriate heuristics to determine when it is appropriate to start the GPS. Starting and stopping the GPS on a cycle shorter than 10 minutes actually takes more power than just letting it run.

If you are not familiar with these concepts I would suggest that you do some research into how mobile devices operate before taking on such a complex project.
__________________
My other Blackberry is a PlayBook.
Offline  
Old 05-07-2012, 08:38 AM   #7
narasinga
Knows Where the Search Button Is
 
Join Date: Sep 2011
Model: 9630
PIN: N/A
Carrier: Reliance
Posts: 29
Default Re: Need to Know Mobile is in Motion State

can i use GPRSInfo.getCellInfo().getCellId() and GPRSInfo.getCellInfo().getLAC() methods to get the vary of different places?
Offline  
Old 05-07-2012, 11:20 AM   #8
hrbuckley
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Default Re: Need to Know Mobile is in Motion State

GPRSInfo.getCellInfo().getCellId() will tell you what the current cell is. When it changes the phone will be talking to the network through a different cell. This may or may not indicate a change in location.

You may also want to look at your LocationProvider Criteria. If your provider supports Cellsite location based service then you could use that. Not all providers support this, and some that do charge extra for it. So like I said you need to do the research into what is available from your carrier(s) and on the phones you are developing for.
__________________
My other Blackberry is a PlayBook.
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads for: Need to Know Mobile is in Motion State
Thread Thread Starter Forum Replies Last Post
Mindit Assist V1.8 just released, smart mobile document delivery ian Aftermarket Software 0 07-24-2005 01:11 PM


OEM iPhone 11 PRO X/XR XS MAX 8/7 PLUS Fast Charging USB Cable 10 Feet & 6 Feet  picture

OEM iPhone 11 PRO X/XR XS MAX 8/7 PLUS Fast Charging USB Cable 10 Feet & 6 Feet

$2.99



iPhone 13 12 11 PRO MAX XR XS 8/7/6 Fast Charger USB Data Cable cord 10 feet/3M picture

iPhone 13 12 11 PRO MAX XR XS 8/7/6 Fast Charger USB Data Cable cord 10 feet/3M

$4.99



New Apple White Charger Cradle Docking Station Base Stand A1381 OEM picture

New Apple White Charger Cradle Docking Station Base Stand A1381 OEM

$8.50



10 Feet/3M For iPhone 13 12 11 PRO MAX MINI  X XR XS 8 7 Fast Charging USB Cable picture

10 Feet/3M For iPhone 13 12 11 PRO MAX MINI X XR XS 8 7 Fast Charging USB Cable

$5.00



Genuine A1417 OEM Battery Apple Macbook Pro 15 Retina A1398 Mid 2012 Early 2013 picture

Genuine A1417 OEM Battery Apple Macbook Pro 15 Retina A1398 Mid 2012 Early 2013

$40.90



OEM Battery for MacBook Pro 17

OEM Battery for MacBook Pro 17" A1309 A1297 Early 2009 Mid 2009 2010 MC226

$40.90







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.