Demo entry 6354179

aa

   

Submitted by anonymous on Apr 05, 2017 at 15:20
Language: Java. Code size: 1.1 kB.

Cursor c = mDb.rawQuery("SELECT RSSI,LAT,LON FROM " + TowerConstant.locbt 
                                + " WHERE CID = ? " + " ORDER BY RSSI DESC", new String[]{String.valueOf(cid)});
while (c.moveToNext()) {
                            Position position=new Position();
                            position.setLAT(c.getDouble(1));
                            position.setLON(c.getDouble(2));
                            position.setRSSI(c.getInt(0));
                            pos[k++]=position;
                        }
 ContentValues values = new ContentValues();
                        values.put("MCC", 460);
                        values.put("MNC", mnc);
                        values.put("LAC", lac);
                        values.put("CID", cid);
                        values.put("LAT", LAT);
                        values.put("LON", LON);
                        values.put("RSSI", dbm);
                        values.put("DISTANCE",formatDouble(dis));
                        mDb.insert(TowerConstant.locbt, null, values);

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).