Android :: Update Item Position On Map Doesn't Work?
Nov 18, 2010
i have an android app, with a actitity, that shows a map, with a position. This possition is updated on sharedPreferences with a service... ok, that works fine. I need that my activity implements runnable to be a thread that read's the position of sharedPreferences each 1000ms and then update the item position on the map... but it doesn't works. As i saw in debug mode, my thread doesn't work fine, ONLY ENTER ONE TIME on RUN() method... i mean that never enters into RUN() method again, only one time, cause this, the positions doesn't be updated on the map. What is wrong? why this thread doesn't work fine?
public class Locate extends MapActivity{
private TextView userText = null;
private TextView permissionText = null;
private TextView lastUpdateText = null;
private Button locateButton = null;.............
View 4 Replies
May 25, 2010
I need to get an item's position in spinner knowing it's ID. I've tried to do it with Spinner and SpinnerAdapter classes but there are no corresponding methods there.
View 2 Replies
View Related
Mar 5, 2010
I have this code for update:
public Boolean update() {
try {data.put(Contacts Contract.Groups.SHOULD_SYNC, true);
Content Resolver cr = ctx.get Content Resolver();
Uri uri = Content Uris.with Appended Id(Contacts Contract.Groups.CONTENT_URI, Long.parse Long(get Id()));
int mid = cr.update(uri, data,_ID+"="+get Id(), null);
// notify registered observers that a row was updated
ctx.get Content Resolver().notify Change(
Contacts Contract.Groups.CONTENT_URI, null);
if (-1 == mid)
return false;
return true;
} catch (Exception e) {
Log.v(TAG(), e.get Message(), e);
return false.
View 1 Replies
View Related
Mar 5, 2010
I have a update view, where I need to preselect the value stored in database for a Spinner.
I was having in mind something like this, but the Adapter has no indexOf method, so I am stuck .
void setSpinner(String value)
{
int pos=getSpinnerField().getAdapter().indexOf(value);
getSpinnerField().setSelection(pos);}
View 2 Replies
View Related
May 2, 2010
I have so far found two bugs in Galaxo 1.6.3:
a) Speaker doesn't work in call (very weak). works well in ringtones etc.
b) Scrolling contacts by letter doesn't work.
Other than that this is a leap forward, especially with the overclock options!
Both bugs, as well as others, fixed in 1.6.3.1 update!
View 49 Replies
View Related
May 16, 2010
Now that I've updated to 2.1, most of the apps (weather and time apps) no longer work correctly.I live in Panama City Beach but these apps continue to tell me I am slightly north of Tallahassee over 100 miles away and in a different time zone. Stays the same regardless of GPS on or off,I have deleted and re-installed all of the offending programs and that didn't help either.Everything was great prior to the update.
View 8 Replies
View Related
Jan 11, 2010
I did the manual MR2 upload now my GPS doesnt work any one else having that problem?
View 1 Replies
View Related
Jan 22, 2010
Context Menu seems quite handy as long as we are using an AdapterView as we can easily get selected item position in onContextItemSelected from AdapterContextMenuInfo.position Any idea how we can achieve something similar in a TableLayout? In my TableLayout, i have some TableRow and i would like to get the row index in the onContextItemSelected callback like i would do with a simple ListView. I guess i will have to register the contextmenu for each row? but how can tie the row index with the menu? i see no way to do it with registerForContextMenu.
View 2 Replies
View Related
Mar 26, 2010
I am creating a list .. the elements of the list are drawn from sqlite database .. I populate the list using ArrayList and ArrayAdapter ...upon clicking the items on the list I want to be able to fire an intent containing info about the item clicked ... info like the index number of the item .. using the method : onItemClick(AdapterView av, View v, int index, long arg)
I do get index of the item clicked . however it is of the list currently displayed . the problem comes when I do setFilterTextEnabled(true) , and on the app type in some text to to search some item ..and then click it ..rather than giving me the index of the item on the original list it gives me the index on filtered list..
following is the snippet of code:
myListView.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView<?> av, View v, int index, long arg) {
Intent lyricsViewIntent = new Intent(iginga.this, LyricsPage.class);
lyricsViewIntent.putExtra("title", songList.get((int)arg).getTitle());
lyricsViewIntent.putExtra("id", songList.get((int)arg).getSongId());
startActivity(lyricsViewIntent);
}
});
myListView.setTextFilterEnabled(true);
Is there any way I can get the original index /position of the item instead of the one showing in filtered text ...when filtered.
View 1 Replies
View Related
Nov 9, 2010
I have a Sony Ericsson Xperia X10 and tried to use the Update Service to get the latest firmware for my phone, but after the new phone software was downloaded and started to install onto my phone it only got to a few millimeters of completing before it threw out an error saying that that it couldn't install the new software! Now my phone doesn't want to work anymore! Every time I start up the phone it just shows the x10 picture with an exclamation mark in a yellow triangle! What should I do? I need my phone working to complete daily tasks!
View 8 Replies
View Related
Jan 11, 2010
I'm having a problem with the clock/weather widget on my Hero. I have it set to Current City and I noticed the other day that the weather wasn't updating. ( I live in Long Beach, CA) It was stuck on one weather. I especially noticed when it still said partly sunny at 11pm. It doesn't work even if i try to manually update.
I thought it was just the current city function that was having trouble registering but when I go to other cities nearby it updates fine. And when I specifically set it to Long Beach, CA, it was still stuck and not updating.
Anyone else having this problem? Is there something wrong with the weather equipment in Long Beach?
View 17 Replies
View Related
Nov 20, 2013
I think downloading is disabled, but can't find it under settings/apps, so I can't find a way to enable it. Play store won't open. My browser does not have the menu button (square with three bars in it). I am using new Nexus 7 with Android 4.3.1.
View 3 Replies
View Related
Mar 30, 2014
I've recently updated my Samsung Galaxy S4 to android 4.4.2 kitkat. Since then I've been unable to connect to the internet through mobile data. It can be activated/deactivated, but when activated I cannot connect to any websites.
View 7 Replies
View Related
Nov 6, 2010
A) The data network access doesn't work anymore. B) The touch screen is not responsive freezes a lot.C) The text messaging freezes then sends out 20 of the same message.And I have done numerous battery breaks.
View 4 Replies
View Related
Dec 17, 2009
I custom the BaseAdapter to show image array with full-screen mode. I want the user can flick the images so I use the gallery class.When a image displays on the screen, a correlative sentence should be showed as well. The issue is the position param in getView function jump abnormally, especially when I flick into more one picture at a time. Therefore the string is showed incorrectly, I don't know why the image still displays normally. Here is my code...
View 4 Replies
View Related
Jun 1, 2009
I have a ListView containing a few different type of items, all having their own background image and font color. In my first implementation I implemented each type of item as its own layout with the background image etc defined in XML (and implemented Adapter.getView() so that it only reuses convertView if it's of the correct type). This works fine but the performance is not that great while scrolling since I'm inflating quite a few Views due to convertView mismatches, so instead I tried using the same layout for all items (to benefit fully from convertView reuse) and changing the background image and font size in runtime. I even keep the three background Drawables I need as members to save time decoding them from a resource for each item, and call View.setBackgroundDrawable() from Adapter.getView(). The problem is, sometimes the 9-patch is not correctly wrapped around the content of the list item when using this approach. While scrolling it usually looks correct but when the scrolling stops, or sometimes when I just tap anywhere on the list, the background 9-patch of some large items starts flickering and is either cropped or resized to its original PNG size rather than stretched to wrap the content.
First of all, I suspect this is a bug? Any ideas why this happens? Could it be that the View is not always measured to reflect the changed content when the 9-patch is applied? I have tried adding an extra call to View.invalidate() but it doesn't solve the problem. Second, does this approach sound reasonable at all, or how should I go about to optimize this scenario?
View 4 Replies
View Related
Dec 8, 2009
I'm trying to determine whether or not my phone is defective, or if this is a current problem with the Cliq.
Of the apps I've downloaded, only a few of them have worked. Of those few that work, some don't work right. Has anyone had problems with these apps crashing on them, or just not working correctly?
- Nice Battery (see description at bottom of: My Ultimate CLIQ settings (so far))
- WeatherBug (kept showing the wrong location, crashed when trying to change location)
- Snake - doesn't work just says its "paused"
- RingDroid - crashes when I select the "Facebook Pop" button
- Layar - screen is rotated 90 degrees at all times
There have been others, but usually I just uninstall them right after discovering it doesn't work right.
View 3 Replies
View Related
Jun 14, 2010
I've had an HTC Desire on Orange in the UK for about 6 weeks and it is having persistent problem. Firstly despite having a strong 4-bar out of 4 signal, online services and the internet do not work at all when a 3G signal is being received (e.g. news, weather, all widgets, internet, email etc).Calls and texts do work however with a 3G signal.But when a 3g+ signal (HSDPA) is being received, all internet services as above work fine.However, when a 3+ signal is being received, the phone does not make or receive calls or text messages, and often fails to send texts. Calls I make immediately shut down (bleep + �call ended�), and incoming calls from other people go straight to answerphone. Also often when turning the data connection on/off, it freezes and has to be rebooted, and turning airplane setting on and off does not fix the problem.
I have also tried the different network settings (GSM, WCDMA, auto, etc). �GSM� sends and receives calls and texts but doesn�t work (or is incredibly slow) with internet, and �auto� and �WCDMA only� show the problems as above.I don't think this is a network/coverage issues as, as I have seen many people reporting these same issues on other networks and in other parts of the UK, and I have read that other people are having to manually turn off HSDPA to be able to make calls (using an app?). Even if I can stop HSDPA from connecting to make sure the phone works, I still can�t use the internet at all on 3g � even GSM works better!
Finally, when I connect to a bluetooth device (e.g. car and headphones) the phone will connect briefly, and then randomly disconnect. I have also seen this issue reported elsewhere.I very much like the phone and don't want to get rid of it, but these problems are making the phone unuseable.Also I don't know if I should be contacting HTC or Orange about this. Will the upcoming Android 2.2 fix these problems?Anyone know how to fix this or if I need a new handset? Are there any apps that can help? Also does the Nexus One have these problems and are they fixed by Froyo?
View 4 Replies
View Related
Sep 16, 2009
So I made a discovery - my dialpad doesn't work during a call. Even if I bring it up via the softkeys, the numbers don't register a tap...anyone. else have this issue or is it just my phone?
View 49 Replies
View Related
Feb 7, 2010
I have a GridView, using a custom adapter (myAdapter extends BaseAdapter), where each item in the grid holds an ImageButton. getView() is working fine.
However, from elsewhere in my code, how can I update the image (setImageResource) for one particular item in the grid based on its position in the GridView?
So far, I've added this to my adapter class:
CODE:........
And would like to write something like this: mygridview.getItemIdAtPosition(20).changeImage(); (doesn't compile).
View 2 Replies
View Related
Sep 25, 2010
I'm working on an application that displays the location of moving items on a Google MapView. I need a way to update the position of the icons that represent the items (as well as change the facing of the icons every two seconds as updated data comes in). I currently have an activity in the app that extends MapActivity. On to this I have overlaid a static Overlay that draws some lines on the map and an ItemizedOverlay that draws a static icon.
View 3 Replies
View Related
Sep 16, 2010
I have a list (ListView) which displays news items. They contain a image, title and some text. The image is loaded in a separate thread (with a queue and all) and when the image is downloaded, I now call notifyDataSetChanged() on the list adapter to update the image. This works, but getView() is getting called way to often now, since notifyDataSetChanged() calls getView() for all visible items. I want to update just the single item in the list. How would I do this?Problems I have with my current approch is that the list is slow and I have a fadein animation on the image which happens every time a single new image in the list is loaded.
View 2 Replies
View Related
Aug 28, 2010
I have list of items ion my activity which I load dynamically, item after item. Initially I load "lightweight" version and when processing is done I want to update the item with new information. Like set some text or replace an image. That means I need to update what ListView item is displaying after Adapter#getView already returns. Of course I don't know if user is actively scrolling and this item is still visible or has been scrolled out ot view. The only thing I can think of is to extend View so it performs some operations on it's own thread and updates itself when done,but will it work?
View 1 Replies
View Related
Jan 19, 2010
How do I update individual row in listview?
View 3 Replies
View Related
Jan 8, 2010
Just got a new Android phone, my second after a brief stint with the G1 a year or so ago..
Today I noticed that I received notifications that I have apps with updates available. When I click on the notification it takes me to my downloads in the Marketplace, but it doesn't show me which app has an update. They all just say Installed.
Is there no way to tell what application needs updating?
View 8 Replies
View Related
Feb 14, 2010
Its me again. I tried the last hours, how to change content of a spinner. ok, lets start from the beginning.
I have three spinners. They all have initial values. The first spinner is the main spinner and the other two spinners depend on the vale chosen in the first one. So i want to update the last two spinners after making a selection in spinner one. *edit: All spinners are on the same activity.
How can i achieve this? My problem is that i can only make changes in the spinners onitemselectadapter but thats a whole new class. I cannot reach the activity where my other spinners are.
View 2 Replies
View Related
Apr 12, 2010
I have a PreferenceActivity with a bunch of (Sub)PreferenceScreens. Each such (Sub)PreferenceScreen represents an account and has the account-username as its title.
CODE:................
As the user enters sub-PreferenceScreen, and edits the account user-name, I want the outer PreferenceScreen to update it's PreferenceScreen-title for the account in question.
I've tried to add...
CODE:.............
But the accScreen.setTitle does not seem to take effect on the outer PreferenceScreen. I've note that calling onContentChanged(); actually makes it work, but I realize that this is probably not the preferred way of doing it.
I suspect I should call postInvalidate() on some view somewhere, but I really can't figure out on what view and when to do it.
http://stackoverflow.com/questions/2396153/preferencescreen-androidsummary-update may be experiening the same problem as me.
View 1 Replies
View Related
Sep 29, 2010
On my htc i was looking through display, i see g sensor calibration and i perform this calibration and after i do so the screen seems to have a delay when switch from the horizontal position to the vertical position. its weird because when i switch to the phone horizontally it switch normally and responds fast. but when i switch back to vertically it takes almost 7 seconds to actually switch back, sometimes it switch within 2 or 3 secs but never as quick as switching horizontally.
MQuote:
Originally Posted by Rigmaster
Make sure you have the latest updates, which impact speed on the device in some unpredictable and unexpected ways. During system updates, your Evo may reboot and will take the g-sensor changes as last calibrated.
If you're already updated, shut down and repower (soft reboot) should do the trick. I actually updated my phone and after it started to do this. I restarted the phone plenty of times i even took the battery out for 30 seconds. It only does it when im texting on the browser, basically everything but the camera. He camera screen rotation is perfect. I even rooted the phone but i havent figured out how to use the root to fix the problem. Should i do a firmware update? Because i just did the htc software update.
View 1 Replies
View Related
Nov 4, 2010
I'm trying to do my first widget but it seems not to work in the emulator: when I try to add the widget to the wallpaper, I've got the following message: "Application is not installed on your phone".
View 2 Replies
View Related
Jul 24, 2009
I've inherited a project that worked on sdk 1.0, but when I try to use them on sdk 1.5 it crashes. I'm a beginner so I'm not able to understand where is the problem..So I hope that writing on this forum someone can help me..The project concerns the detection via GPS coordinates and the notification of events close to the location where it was at that time.
View 4 Replies
View Related