Switching from GPS to Network Positioning

by Harold » Tue, 15 Dec 2009 23:49:40 GMT

Sponsored Links
im using a PositioningService in my Application.
In the onCreate() Method im getting a LocationManager with the
the Problem is, now im getting only a position if im outside through
gps. If im inside i get no Position.
If i dont set the Criteria, then i only get Signal from network, but
not from gps.
I want to get the Signal from the best LocationService and it should
swith automatically.
Do i have to register two Listeners? Or should i do something in the
"onProviderDisbaled/Enabled" , "onStatusChanged" Methods?

Thank you!


Other Threads

1. SMS text messages and data messages


Can anyone explain how to send sms text messages on a specific
application port (including java and xml code) ??

If it's impossible then plz show at least how to send & receive sms
data message successfully (java & xml) on android emulator (and not G1
or others...).



2. No effect of canvas.rotate() on custom Surface view from XML

Hi There,
I've made an example code ( http://www.***.com/ 
2009/10/rotating-bitmap-in-android.html) on rotating Bitmap from
resouce on the CustomView (derived from SurfaceView) and it works as
long as I use:
setContentView(new MySurfaceView(this));

But when I put the view info to layout XML<com.test.MySurfaceView
{attribs....} /> and get a handler by findViewById it correctly draws
my Bitmap but no rotating.

my main drawing method in MySurfaceView looks like this:

   public void onDraw(Canvas canvas) {
                Bitmap img = BitmapFactory.decodeResource(getResources(),
                canvas.drawBitmap(img, 100, 100, null);

                canvas.rotate(mDeg, 80, 80);

I've checked in the de{*filter*} and the onDraw is called continuously
which is what I expect. Also the mDeg increases and is passed to
canvas.rotate() properly.


3. Using AutoText

4. Get user info - email

5. Javassist on Android

6. Is it possible to make changes in Remote Views.java

7. How to use the lib(.jar) which android sdk didn't contain