Android :: How To Cancel Request Of Location Update With Intent?

Jun 13, 2010

I registered a PendingIntent to requestLocationUpdates(provider, minTime, minDistance, PendingIntent). But when my broadcast receiver receives this intend, how do I remove this request with removeUpdates(PendingIntent)? The receiver doesn't hold a reference to the original PendingIntent.

Android :: How to Cancel Request of Location Update with Intent?


Android :: Intent When User Receives Mail And To Cancel Gmail Notification?

Dec 2, 2009

Is it possible to get an intent when the user receives a mail and to cancel the gmail notification?

I want to filter some messages and I do not want to get notifications from them.

View 5 Replies View Related

Android :: Location Manager Minimum Update Time Overridden / When Location Changes?

Oct 26, 2010

I'm developing a mapping app using Eclipse 3.5.I'm setting the minimum update period with the LocationManager's requestLocationUpdates method, via a configuration activity. When I set the property I see in Logcat that the system process sets the value OK.When I actually send a new location from the DDMS emulator control and the location changes on the map view, I see that the system process then sets the minimum time to zero.Below is a capture of the system's log messages. You can see that I'm setting the period to 32 seconds, then 16, then, after I've sent a simulated location change the system sets it to zero.The map responds to location changes to location changes instantly even if they are sent only a couple of seconds apart.

View 1 Replies View Related

Android :: Show Map Intent Shows My Location First

Jul 6, 2010

I have found this erroneous behaviour on my phone, please let me know if you have any idea how to resolve it. However, when I open this intent, the gps on the device starts and google maps first displays my location instead of the location in the URI. This happens only the first time you open google maps. If I go back to my app and make the same selection, then the correct position on the map appears.I tried using something like this: geo:0,0?q=*business+near+city, however this doesnt centers the map on a position, but in the nearest address.

View 2 Replies View Related

Android :: How To Get Location Information From Intent Bundle Extras?

Jan 2, 2010

I am trying to use Android's LocationManager requestLocationUpdates. Everything is working until I try to extract the actual location object that in my broadcast receiver. Do I need to specifically define the "extras" to my custom intent so that the Android LocationManager before I pass it to requestLocationUpdates so it knows how to add it into the intent, or will it create the extras-bundle regardless when it passes the fired intent to the broadcast receiver?

View 1 Replies View Related

Android :: Widget Configuration Activity - Update Request

Sep 18, 2010

I'm having an issue with a config activity for a widget. According to the dev docs, if I specify a configuration activity than the onUpdate method of the AppWidgetProvider doesn't get called until after you request an update once you've completed the configuration activity. For me its happening in reverse, the onUpdate method of the AppWidgetProvider gets called first, followed by the configuration activity. Then the onUpdate method is never called after completion of the config activity even though I request it explicitly. I tried with level 4 and level 7 API, same result. Here is some of the source:

Manifest:
<?xml version="1.0" encoding="utf-8"?> <manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.chris.android.swidget"
android:versionCode="1" android:versionName="1.0">
<application android:icon="@drawable/app_icon" android:label="@string/app_name">
<activity android:name=".SWidgetConfigure">
<intent-filter> <action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter> </activity>
<receiver android:name=".SWidgetProvider" android:label="@string/ widget_name">
<meta-data android:name="android.appwidget.provider" android:resource="@xml/swidget_info"/> <intent-filter> <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter> </receiver>
<service android:name=".service.PUpdateService" />
</application> <uses-sdk android:minSdkVersion="4" />
<uses-permission android:name="android.permission.INTERNET" />

</manifest>
swidget_info.xml: <?xml version="1.0" encoding="utf-8"?> <appwidget-provider
xmlns:android="http://schemas.android.com/apk/res/android"
android:minWidth="294dp" android:minHeight="72dp"
android:updatePeriodMillis="86400000"
android:initialLayout="@layout/swidget_layout"
android:configure="com.chris.android.swidget.SWidgetConfigure" >
</appwidget-provider>

I can include source of the onUpdate method from the AppWidgetProvider activity and the onCreate method of the configuration activity if necessary, but they are both being called find its just the order they show up on the emulator is wrong.

View 5 Replies View Related

Android :: Google Reader API Request Token - Get 400:Bad Request

Jul 8, 2010

this Android code worked fine before, but i'm having problems for some reason. here is the request i'm trying to make: https://www.google.com/reader/api/0/token. i'm getting 400:Bad Request as a response, and i'm not sure why. isn't this the correct URL for requesting a token? the auth token is being passed as a header in all requests now, and i can request feed list, and it works just fine, so there's nothing wrong with the auth code. what gives? in addition, i can request a token in a normal browser, like Chrome, and get a token as a response body. so the request itself is not the problem. i just can't figure out what is wrong with my requests in code...

View 1 Replies View Related

HTC Incredible :: OTA Update Request Not Go Away

Nov 27, 2010

I have a Verizon Droid incredible which is rooted and running android 2.2. I keep getting an OTA update request from verizon which I keep dismissing but it comes back like 10 times a day. It's really annoying so I tried to just run the update and it freezes. Then I'm back to the annoying update message. How do I make it go away for good?

View 24 Replies View Related

HTC EVO 4G : Clicked Update Location But It Says My Location Is Unavailable

Jun 7, 2010

I am having problems with the quick search feature. I did a random search for Mcdonalds and a map pulls up that is no where around me. I clicked update location but it says my location is unavailable. I have GPS enabled and my navigation app works just fine.

View 1 Replies View Related

Sony Ericsson Xperia X10 :: Software Update Request

Sep 13, 2010

Has anyone else had a software update request on the x10 in the last few days that hasn't actually worked, followed onscreen instructions but didn't do anything. Now the phone is cancelling calls, ringing random people on my past call list and going very slow.

I'm based in the uk and use t mobile as my network provider, contacted them but informed me i'd have to go through sony ericsson itself, spoke to somebody on work experience by the sounds of things, couldn't be bothered to help me, the best advice I actually received was to turn off phone, remove battery, restart phone, try to download the software update of the settings menu, did this but had the connect to your pc and try this message, the guy just said thats all that can be done to resolve this.

View 8 Replies View Related

Bad Request While Trying To Send Cookie With HttpGet Request

Aug 17, 2012

I am developing an Android app for a website. I'm trying to get some information from the website by sending a cookie using a HttpGet request. I don't know where I am going wrong with the request. I am using AsyncTask to send the request to the server. The request also uses a token which I receive when I login to the webpage. All this is clear in the code below. This is part of the process in the doInBackground() function of the Asynctask:

BufferedReader in = null;
JSONObject token = Login.getToken(); // Token received after login, used in the cookie
try {
r = token.get("session_token").toString();
} catch (JSONException e) {
// TODO Auto-generated catch block
e.printStackTrace();
[code]...

View 1 Replies View Related

General :: What Is (DIAL Request Modified To SS Request)

Aug 21, 2013

I own a Xiaomi MI2S, running MIUI-3.8.16 @ Android version 4.1.1.JRO03L with Baseband version CEFWMAZM-2.0.128 017.

From my phone provider (Tele2) i have to dial a 1 (one) before my PIN-code when traveling abroad.

The code is accepted, I can be called and i can send and receive SMS messages.

However i cannot make phone-calls...

The error (?) is "DIAL request modified to SS request" and (very short) "not connected"

View 2 Replies View Related

Android :: When Update "request Page Cannot Be Found"

Aug 21, 2010

Alright the markets up and running again, when I open app brain it says there's an update for flash player 10.1, when i go to update it says "request page cannot be found". I also noticed when I search for flash player in the MARKET nothing will come up, but it comes up when I search through app brain any advice?

View 12 Replies View Related

Android : How To Use An Intent To Update An Activity?

Aug 24, 2009

I have a service that is downloading a file. When the download is done, I would like to update my "Downloaded files" list in my Activity, but only if the Activity is running. I do not want the Activity to start if it's not already running. I was hoping I could do this by making a new Intent with some special flag. Anyone have any idea how I can achieve this? A tiny code example maybe?

View 3 Replies View Related

Android : Way To Use Intent To Update A Value In Another Activity?

Sep 1, 2010

I want to pass a value from one Activity to another to update an integer. So basically I want Activity2 to send Activity1 a value it has garnered from user input. Seems like it should be simple just not sure how. Is it possible to run a function from another Activity and give it this value as an argument?

View 1 Replies View Related

Android : How Can I Create Contact Info Update With Intent?

Nov 14, 2010

I can create new contact with Intent by passing info as extra data with putExtra, is it possible to create Intent with info and if contact is already in phonebook it will be update with new info?

View 1 Replies View Related

Android :: Update Intent Of An Existing Activity While Calling StartActivity

Sep 13, 2010

I am having two activities, say activity A and B. Activity A is an ListActivity, and when the items in the list is selected, it will call startActivity() to bring up B. The problem here is that when I am in B and click the home key, and then go to the application launcher to resume my application, A will be brought up again. This time when I click a different item in A, it will bring up B with the old data of the previously selected item before the home key was clicked.

After examinzing the code, I found that the startActivity does not update the intent of B. I found a post here about the similar question, and the answer was to overwrite the onNewIntent. However, I found that it doesn't work, because this method never get called when the second time I call startActivity. I am sure that this is the same instance, because I've printed out the instance number. Is there any other ways to update the intent of the activity? Or I need some other settings to make the onNewIntent get called? I didn't set any flags or launch modes, so everything is default.

View 1 Replies View Related

Android :: UNable To Get Update Current Location

Nov 17, 2010

I have an activity that needs to display an alert to user when location is updated,
but i need first to get current location (update last known location) and then start a location update listener to display alert in this activity.

Basically what i need is to display an alert if location changed from time activity was created.

If i use getLastKnownLocation when activity is created, it might be outdated, then the requestLocationUpdate listener is called a few seconds from activity creation time.

How can i do this?

View 1 Replies View Related

Android :: Change Update Time Of Location Overlay

Aug 18, 2010

I am trying to see if anyone knows if it is possible to change the update time of MyLocationOverlay (http://bit .ly /dBIVdj). I have tried subclassing MyLocationOverlay and implementing my own location manager but when that happens I do not see the overlay on the map. I would try overriding the drawMyLocation method however I don't know which canvas to provide the method (since I would be drawing onLocationChange). To summarize, I am looking to do three things in MyLocationOverlay subclass:

1. Change the location update times to whatever I want.

2. Draw the "my location" dot with the radius when the onLocationChanged() method is called.
I've thought about making my own special class with special overlay -- but I feel like there has to be a better method to get what I want out of this class.

View 13 Replies View Related

Android :: GPS Not Update Location After Close / Reopen App On Phone

Sep 7, 2009

After I closed my app for a while then reopen it again,my app will not update location or sometime it will take long time( about 5min) before update. How can I fix it? This is my code...

View 3 Replies View Related

Android :: 1.6 Update - GPS Location Provider Stop Unexpectedly

Oct 22, 2009

Looks like I've run into some breakage from 1.5 to 1.6 after all. I am registering location listeners with LocationManager.requestLocationUpdates() With GPS as location provider, I run into a problem with navigation stopping by itself after a few seconds, just to return, stop again, in an endless cycle. I haven't seen this prior to 1.6 Donut and I have no clue what might cause this problem.

Here's the Logcat output:

10-21 21:53:09.147: DEBUG/libgps(74): PDSM_PD_EVENT_GPS_BEGIN 10-21 21:53:11.177: DEBUG/GpsLocationProvider(74): exceeded MIN_FIX_COUNT 10-21 21:53:11.177: DEBUG/GpsLocationProvider(74): stopNavigating 10-21 21:53:11.177: DEBUG/libgps(74): qct_gps_stop 10-21 21:53:11.187: DEBUG/libgps(74): PDSM_PD_EVENT_END 10-21 21:53:11.187: DEBUG/GpsLocationProvider(74): Releasing wakelock 10-21 21:53:13.097: DEBUG/dalvikvm(74): GC freed 2562 objects / 104912 bytes in 223ms 10-21 21:53:20.227: DEBUG/dalvikvm(74): GC freed 1345 objects / 51352 bytes in 236ms 10-21 21:53:21.180: DEBUG/GpsLocationProvider(74): ALARM_WAKEUP 10-21 21:53:21.187: DEBUG/GpsLocationProvider(74): startNavigating 10-21 21:53:21.187: DEBUG/libgps(74): qct_gps_set_position_mode = 1, fix_frequency = 10 10-21 21:53:21.187: DEBUG/libgps(74): qct_gps_start 10-21 21:53:21.207: DEBUG/GpsLocationProvider(74): Acquiring wakelock 10-21 21:53:22.147: DEBUG/libgps(74): PDSM_PD_EVENT_GPS_BEGIN 10-21 21:53:24.167: DEBUG/GpsLocationProvider(74): TTFF: 2978 10-21 21:53:27.287: DEBUG/dalvikvm(74): GC freed 1417 objects / 52512 bytes in 232ms 10-21 21:53:34.397: DEBUG/GpsLocationProvider(74): exceeded MIN_FIX_COUNT 10-21 21:53:34.397: DEBUG/GpsLocationProvider(74): stopNavigating (and so forth)

A web research for these logs didn't turn up anything (which is unusual in my experience), so this leads me to post the question here wondering what the root of the problem might be.

View 10 Replies View Related

Android :: Customize My Location Overlay Update Times

Aug 11, 2010

I am trying to implement the MyLocationOverlay class from google maps. However, when I try and use my own locationManager -- I cannot get the overlay to acutally draw on the map. I am wondering if I am doing something wrong.

I don't want to call the super method(enbaleMyLocation) of the MyLocationOverlay class because that request updates from the locationManager way too quickly and will eat my battery alive.

Here is my code...

View 2 Replies View Related

Android :: Update Google Latitude Location From 3rd Party Phone App?

May 7, 2010

I am working on an app that uses the GPS on my g1. I'm wondering if it is possible that when I am using the app I can have it update my Google Latitude location every x number of minutes. Any thoughts on how this may be accomplished?

View 1 Replies View Related

HTC Legend : Way To Update Weather / Location?

Aug 2, 2010

Don't know if any of you can help,my location on the home screen on my legend seems to have stuck on where i was yesterday & has not relocated back to where i am now.gone in the programm & it says the place name i was yesterday with current beside it in brackets.added my home city,but cant seem to get it as my current location.Synced a few times this morning & wireless network is ticked,should i tick gps satellites?

View 1 Replies View Related

Motorola Droid :: Browser Location Since 2.1 Update Not Working

Apr 22, 2010

I can't get the browser to have my location since I updated to 2.1.

View 2 Replies View Related

HTC Desire HD :: Unable To Locate Satellite To Update Location

Nov 20, 2010

I was wondering if anybody had the same issue with GPS as I did. When I launched Locations first time, it found the satelite very fast. Now it almost cannot find a satelite to update my location. I wrote almost, because once it did manage, but that was once in at least twenty tries. Do you have any idea how to check if the radio is ok. I read somewhere that one should try with master reset of the phone. If so, would it be enough to backup my data with Titanium backup and option "Backup all users apps + system data" and restore it later on? Will that make a full restore of my phone or do I have to backup some additoial data? Like, what will happend to my personalize data, apps passwords etc.

View -1 Replies View Related

HTC EVO 4G :: After The Froyo Update - GPS Takes Much Longer Than Before To Find My Location And 4G

Aug 29, 2010

I have this phone for probably two months now. Overall I'm quite happy considering I have an old one for more than five years.

However, I have two issues that are really bugging me. I think it might have occurred after the froyo update although I'm not sure.

My first issue is the GPS. I takes much longer than before to find my location although when it does it is very accurate. Lots of time it's more than five minutes. It was much faster before. I don't know what's going on!

Second I have 4G problem. If I serf the web with 4G, I'm fine. When I turn on my tethering more than 90% of the time, it will automatically revert back to 3G even if I have good connection (two or more bars). This is quite maddening to say the least. Was wondering if anyone has any ideas. Will a factory reset.

View 5 Replies View Related

Nexus :: Google Homepage - Update Location Not Working

Apr 14, 2010

also, sometimes finding current location on GPS doesn't work.

I'm guessing i should try a new radio, huh?

View 5 Replies View Related

HTC Desire :: Phone Clock Location Fails To Update

Sep 4, 2010

After a recent trip away I have come back and the HTC clock widget does not update to the current location... it is stuck on 'United Kingdom' instead of my current location...

As a test I went for a drive today and whist 'Latitude' showed where I was, the google home page still showed the wrong location, and HTC widget still showed just 'United Kingdom'...

This has just got me stumped..

View 4 Replies View Related

General :: Failed To Update Location - No Signal Error Message

Mar 9, 2013

I keep getting the above message on my phone. I've tried changing settings within the location tab but the msg keeps popping up.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved