Skip to content

Added transparent support for CDMA iPhones#2

Open
wclarkso wants to merge 2 commits intopetewarden:masterfrom
wclarkso:coreteam
Open

Added transparent support for CDMA iPhones#2
wclarkso wants to merge 2 commits intopetewarden:masterfrom
wclarkso:coreteam

Conversation

@wclarkso
Copy link
Copy Markdown

Thanks for writing this. Very interesting.

I have a CDMA iPhone (Verizon) and the CellLocation table is called CdmaCellLocation on these devices. I simply added very simple check to determine if the table exists, and if so, to use that table instead.

I would appreciate a GSM user to verify that this table does NOT exist on GSM databases.

Feel free to contact me via e-mail at: wclarkso@cs.princeton.edu

@NorthIsUp
Copy link
Copy Markdown

I can confirm this works on CDMA

+1 to pull

@wclarkso
Copy link
Copy Markdown
Author

I've done just this in the slightly modified version I submitted
yesterday. Take a look here:
wclarkso@f9e402c

-- Will

On Thu, Apr 21, 2011 at 12:41 PM, stoner
reply@reply.github.com
wrote:

CdmaCellLocation and CellLocation exists on my iPhone 4 GSM, but don't test for the table just query them all

 NSString* queries[] = {@"SELECT * FROM CellLocation;",@"SELECT * FROM CdmaCellLocation;", @"SELECT * FROM WifiLocation;"};

and modify the truncated for loop to skip the wifi (i.e. pass<2)

Reply to this email directly or view it on GitHub:
#2 (comment)

@dustMason
Copy link
Copy Markdown

+1, works on my CDMA phone

@stoner
Copy link
Copy Markdown

stoner commented Apr 21, 2011

Hi Will,

After I posted I saw that you had done as I had suggest already, so I deleted the original post.

Next time I'll read all the changes before commenting

:)

Michael

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants