Android :: Overlay Concurrent Modification Exceptio要 Continued

Aug 27, 2009

This post is in addition to: http://groups.google.com/group/android-developers/browse_thread/threa. I have exactly the same problem and Doug pinpointed what's probably the issue in my case exactly: So here's the deal: I have a Vector containing traffic messages (received from a server via UDP in an own thread). Each time a message is received, I create a new overlay object and populate it with the traffic messages: Code...

Android :: Overlay Concurrent Modification Exceptio要 continued


Android :: Concurrent Modification Exceptio要 In SQLite

Oct 19, 2010

I'm doing some stress testing of my SQLite database using the testing monkey and I got the following exception, which appears to be from inside SQLite. My app has many threads accessing the database but all of them do so in locking mode so I don't think this exception is my fault. Any opinions on whether I should worry about this exception or if it's just an artifact of the extremely fast monkey keyboard access? Code...

View 9 Replies View Related

Android :: Map Open Overlay When Pin Is Clicked - Overlay Contains Description / Button

Aug 18, 2010

I like tu use the MapActivity to display some pins. When a pin is pressed i like to open a description. This can I obtain following the tutorial: http://developer.android.com /resources /tutorials/views/hello-mapview. But now I like to put a button on the overlay window. That button should open a detail activity. How can I make this? How is possible to personalize the overlay "info window"?

View 2 Replies View Related

Motorola Droid X :: Rebooting Continued Randomly And Phone Got Generally Slower

Jul 14, 2010

Here is my rebooting information:

Had a droid for 7 months and it was wonderful. Rebooting started one day after a few weeks of things getting slower, particularly messaging.

Rebooting continued randomly and the phone got generally slower, including internet speed.

Verizon sent replacement. Same rebooting.
Did a factory reset and didn't install any apps. Same rebooting.
Verizon sent another replacement. Same.
Removed SD card, same. Got new battery, same.

Verizon sent Eris. Used a different gmail account. Still rebooting.

My guess is that I'm getting refurbished phones with the same hardware issue that eventually developed in my new phone.

View 2 Replies View Related

Android :: Bluetooth Concurrent Connections

Sep 14, 2010

For the buzzer round, I was thinking of writing 2 app for android (we have a few handsets), one for the quiz master and the other for the contestants.The contestants will be connected to the quiz master through bluetooth.After reading the question, the quiz-master clicks a button in his/her app, the button in the contestant apps will be enabled for X seconds. As soon as a contestant clicks his/her button, the quiz master's app will flash the name of that contestant.Is it even possible to have multiple connections and accept concurrent (or multiplexed) messages from them in bluetooth (something similar to select() in unix/c)?If possible, where should I look for any examples? What kind of problems will I face trying to develop this (I know reliability is an issue here) and how to avoid them?

View 2 Replies View Related

Android :: Java.util.concurrent.ConcurrentLinkedQueue

Apr 14, 2010

I want to use ConcurrentLinkedQueue in an android application, have written the code, but now I'm getting an error when the project builds:

Conversion to Dalvik format failed with error 2

I'm using Eclipse with the lastest version of the ADT plugin.

View 1 Replies View Related

Android :: SQLite & Concurrent Access Best Practices

May 8, 2010

I have an application with several tables, each being updated by AsyncTask fired by different Activities and used by UI with SimpleCursorAdapter. Though i am not developping a game, I would like to avoid to interrupt the user as mush as possible. Has SQLite is not multiaccess proof, what is the best way of handling such situation?

- I consider adding lock from each DB open and to each close sequence but this seems quite subject to bugs - The solution i am using now is that each DB access (read/write) is done in UI thread (when AsyncTask completes, DB write is done typically in onPostExecute), but that means user is blocked for several seconds during the DB write.

Is there any better solution for that? Should i use a ContentProvider? when i read "Content providers store and retrieve data and make it accessible to all applications", this does not seems to be what i need. Any idea?

View 4 Replies View Related

Android :: AsyncTask : Java.util.concurrent.RejectedExecutionException

Apr 7, 2010

I'm trying to launch a lot of remote connection retrieve picture on a server. To do this, I use AsyncTask.

This pics are displayed in a listview using adapter.

If I implement this in my adapter, images are retrieved but the display is bad (problem with index or something like that).

If I try to retrieve image when I build my object list (contained in my listview), I get the exception 04-07 13:35:57.744: ERROR/AndroidRuntime(4132):

CODE:.................

What is this exception ? Why I can launch multiple asynctask in my listview (giving to me a bad result) and not in a simple object without having this issue ?

View 6 Replies View Related

Android :: Multiple Concurrent Versions Of Same App / Filtered By Sdk Version?

Jul 30, 2010

I have an app on Android Market right now with a minSdkVersion corresponding to Android 1.6. I'd like to make an update that is only visible to users of Android 2.2 and higher (there is a good reason for this, which I will explain below). So I have two questions:
- First, if I publish an update with a higher minSdkVersion than the one it replaces, will existing users still be able to see and download the old version if their device is not >= that minSdkVersion? - Secondly, if so, would it be possible to publish updates to that older version branch? Or would it become a fossil relic, but at least always there for downlevel users? Now for the background. My apps use a large amount of resource files-- about 15MB for the Lite version, and about 55 for the Full version. Prior to Android 2.2, it was not possible to install an app on the SD card, so my solution to this was to have the app contain the bare essentials, and simply download the other resources from my web servers at first-run. However, this means that I must maintain external infrastructure, and it's also a bad experience for users who must download the app, then start another download sequence (I already have had several complaints about this in my user comments). What I would like to do is to keep the app as it is for users with Android OS < 2.2. I'd like to publish an update that is only visible to users with Android OS >= 2.2 which packages everything into the app and allows it to be stored on the SD card. And I'd like to be able to perform maintenance on both versions as needed. Why can't I just do the update as described above to a single branch of the app? Because it would mean that users with Android OS < 2.2 would have to download a massive application to their internal memory, which could be a deal-breaker for devices with only 128MB or 256MB, which is shared with the OS. Since I already have paying customers, I don't think I can ethically create an update that would potentially consume most of a user's internal memory, when the version they purchased was only a couple MB.

View 9 Replies View Related

Android :: CurrentTimeMillis Doesn't Match On Two Concurrent Emulators

Mar 10, 2010

I am testing my multiplayer game by running several instances of the emulator (which is, sadly, extremely slow and dis-satisfying). I depend on a little trick using currentTimeMillis() to keep a synchronized clock between the players (but NOT the absolute value of currentTimeMillis() since no two phones are probably set exactly the same)Anyway, I *do* naively assume that two emulators, running on the same PC would return near identical values for calls to currentTimeMillis(), and what I find is that they start off the same, but pull rapidly apart.Which makes me think the underlying implementation of currentTimeMillis() in the emulator is not at all based on the host PC's calendar, and rquires the emulator to get enough Windows compute cycles to be anything close to accurate. (and one emulator is always running at a lower priority to the other, depending on which one is on top)

If this is just an artifact of the emulator, then I can deal with it, but if it implies I have a fundamental misunderstanding of currentTimeMillis(), then that would be something i need to deal with. Part two of the question is: any way I can speed up the emulator? When I run two, are they sharing one of my cores? Can I split them onto separate cores?

View 10 Replies View Related

Getting ANR In Concurrent DB Access

Mar 14, 2014

I have used content resolver in my project and override the applyBatch() for writting data into the database :

@Override
public ContentProviderResult[] applyBatch(ArrayList<ContentProviderOperation> operations)
throws OperationApplicationException {
final Context context = getContext();
final SQLiteDatabase db = getDatabase(context);
db.beginTransaction();

[Code]...

If there is any writing operation to the database, applyBatch() method get called and in same time if I will make query from database(using CursorLoader), ANR comes and the following exception will also comes :

W/SQLiteConnectionPool(18025): The connection pool for database '+data+data+com.abc.xyz+databases+XYZ' has been unable to grant a connection to thread 8073 (pool-17-thread-3) with flags 0x2 for 64.105 seconds.

W/SQLiteConnectionPool(18025): Connections: 0 active, 1 idle, 0 available.

The above issue will not come if I remove the methode db.beginTrasaction() and db.endTrasaction() from applyBatch(). But in that case reading/writing time becomes large. I have used methods db.beginTrasaction() and db.endTrasaction() which reduces database access time to ten times.

Is there any approach, so that SQLite DataBse response quickly and there is no ANR ?

View 1 Replies View Related

General :: Android 4.2.2 - Keyboard Modification?

Apr 15, 2013

Is there any way to add new words automatically to the 4.2.2 keyboard dictionary?

It's really annoying to agree three times and then the keyboard closes in some apps.

SwiftKey adds them as you write them down without Flow/Swype for one time.

However I didn't stay by SwiftKey because I love the stock keyboard too much.

Any modification? I would be ok with an "one-click-add" as well.

View 1 Replies View Related

Android :: Email Programmatic Setup And Modification

May 12, 2010

I wanted to know if it is even possible to either set up or modify email account settings programmatically. I do not believe it is, due to email applications controlling their own settings (and thus would depend upon a ContentProvider from that specific client), but I have not yet found a definitive "no", either.

Further, I was wondering about the email account support on Android in general. It appears that Android 2.0 and above will allow for multiple ActiveSync/Exchange accounts and mulitple IMAP/POP3 accounts, and displays these in the same inbox. Is this claim true? Also, how is this different from the other major Android releases (Android 1.5 and 1.6)?

View 1 Replies View Related

Android :: Protecting Contents Of An APK From User Modification

Mar 10, 2010

I was thinking about this earlier and figured I'd ask.If I made an application that has lots of resources, what would stop someone from extracting and adding/modifying the resources I ship with it?Does an application that doesn't want its data manipulated have any sort of option to protect itself?

View 1 Replies View Related

General :: Android Car Stereo - Launcher Modification

May 17, 2013

Today i want talk with you about a Software "Problem" i have with my Android Car Stereo. For a good overview i write a short briefing.

- Android Car Stereo: icartech Alpha v800
- Android 2.2 Froyo
- root access (with z4root)
- adb access only with wifi
- no recovery Menu
- i got the original Stock Rom, which can flash on the System

The Problem:

The Launcher has a Dock with several system App Shortcuts. The Dock is fix, so i can't delete icons, can't change Icon Order, can't add Icons. No new installed app can add a shortcut to the Dock. Except iGO Primo, it's the only app, that has automaticly add a shortcut to the Dock.

I want delete some shortcuts, cause i don't need them and i want add some shortcuts that i daily need.

My Question is: how can i unlock the Dock that i can change thins? Or modify non system apps to add a shortcut to the dock? Is it possible that the launcher has a app list, which controlls, what app can add a shortcut and what can't? And when a decompile the Launcher in which .smali i can possible find the "permissions"?

View 9 Replies View Related

General :: Android HDMI TV Stick Modification?

Aug 20, 2013

I have a RikoMagic android TV stick. I want this functionality:

- I power up the stick

- the stick loads with wifi internet connection preset

- the system automaticaly opens browser in full screen mode with predefined starting page

- the user cannot change settings

Is it posible to make this with some aps (I hope free) or is it better to get some modified ROM (which?). I know this functionality is used in so called KIOSK modes, but as I can see all this software is very expensive.

View 1 Replies View Related

Android :: Need App For Auto Brightness Modification (save Battery)

Dec 17, 2009

But is there an app that will only allow the auto bright to go up to max 50%?

View 8 Replies View Related

Android :: Google Maps Itemized Modification Exception

May 20, 2010

I cannot figure out the origin of the ConcurrentModificationException. In my activity I'm calling
updateMapOverlay(). I'm also calling updateMapOverlay() inside another Thread (a TimerTask) that is invoked on regular intervals. I'm taking the appropriate locks when invoking updateMapOverlay() from both the threads. Is this problem being caused because I'm invoking updateMapOverlay from inside a non-UI thread (i.e., TimerTask).

private void updateMapOverlay() { this.itemizedOverlay.refreshItems(createOverlayItemsList());
List<Overlay> overlays = mapView.getOverlays(); overlays.clear();
overlays.add(cotItemizedOverlay); this.mapview.invalidate(); }

Exception:
W/dalvikvm(10641): threadid=3: thread exiting with uncaught exception (group=0x4001b180)
E/AndroidRuntime(10641): Uncaught handler: thread main exiting due to uncaught exception
E/AndroidRuntime(10641): java.util.ConcurrentModificationException....

View 3 Replies View Related

General :: How To Increase Concurrent HTTP Connections

Mar 3, 2013

My company is importing some Android-based TV boxes from China, and we're experiencing a strange bug with some apps we are developing to run on them. I'm trying to find a specific solution that I can tell them to implement in a firmware upgrade, but I am not sure where to look.

In some apps (especially Adobe AIR-based ones), there seems to be a limit to concurrent HTTP requests to a web server. On an earlier ICS 4.0.4 firmware for these devices, this did not cause any problems. But they recently released a JB 4.1.1 firmware, and this problem occurs.

Let's say an app requests 20 items by HTTP from a web server (XML files, PNG or JPG images). What will happen is about 2/3 of these will be sent back, and the rest just remains blank, as if in a perpetual waiting status.

Looking at the web server's logs, there is no requests at all for these missing items.

And, it's totally random. If you re-launch the app, the missing items will be different ones.

So, I am guessing the app can only request so many things at the same time. Any system property that could be adjusted to solve this?

BTW I am unable to replicate this bug on any other device. The TV boxes in question are based on Rockchip 3066 SoC's

View 5 Replies View Related

Android :: Last Modification Time For Each Contact Record In People Table

Sep 15, 2009

I would like to the get the last modification time for each Contact in android.provider.Contacts.People table. I have the following queries, a) Is there any column to notify that this contact record is updated. b) Is any column is available like last modification time or revision time to indicate the changes in each record(Each row in table).

View 4 Replies View Related

LG Ally :: Phone App Modification

Sep 12, 2010

What I wanted to do was change the lg default background during a phone call to the android stock gradient as i prefer the look of it better. I extracted the phone.apk out of the /system/app directory and found that the gradient images are already there. so my question is, why is the phone not using these images and how do i change it so it does. My first thought was a meta morph theme that only changed the phone app but seeing as the images are already there i guess there's no point.

View 4 Replies View Related

Samsung Fascinate :: Notification Bar Modification

Nov 19, 2010

Probably a simple and already covered topic, but I have searched and found nothing.So, what can I do to make my notification bar look a bit spiffier

View 2 Replies View Related

Nexus :: Screen Adjustment Tool For Color Modification (Saturation)?

Feb 14, 2010

I got my N1 a few days ago and am really liking it so far. One thing that bothers me is the color saturation of the screen and I'd like to tweak that if I can. Does anyone know of a screen adjustment tool that will perform global color modification?

View 3 Replies View Related

General :: Player HLS (HTTP Live Streaming) Code Modification

May 25, 2012

I have source code from an appli running on android 3.2 with a WAMP Server and WowZa Server on my desktop. I have to make it accept the HLS (Http Live Streaming). I saw on the web that the Vitamio Library can do that so i used it. I know that natively, android 3.0+ do it well but i do not succeeded make it work successfully.

The player is successfully displayed but no video starts..After a reboot of my router (because my server didn't answer), the player crash each time.

Somestimes yes, sometimes no, i have some logs, they are as attachment.I think a buffer problem...

I think I have to implement this method (at the end of my code) but i know what type in it.public void onBufferingUpdate(MediaPlayer mPlayer, int percent)

IT WORKS VERY WELL WITH .MP4

Here's my code from the Player Activity :

Code:
package fr.niji.broadpeak.activity;
import java.io.File;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
/*import android.media.AudioManager;
import android.media.MediaPlayer;
import android.media.MediaPlayer.OnBufferingUpdateListener;

[code]....

Commented lines are the lines when i had still not used Vitamio.

View 4 Replies View Related

Android :: How To Market Map Overlay?

Sep 21, 2010

I want to market an overlay for Android Maps. It will provide the "speed limit". My map will have to query the internet for updates pretty heavily as one travels. Q: Should I just use the "Maps external Library" thing? http://code.google.com/android/add-ons/google-apis/maps-overview.html or Q: Can I somehow make it an option in the normal google-map system that everyone has on their phone?

View 7 Replies View Related

Android :: Animated Map Overlay

Feb 17, 2009

I am trying to make a map overlay animated much like MyLocationOverlay does. Currently the only things that I can see to make animated are Views but Overlays don't extend View functionality. My next thought was to try to lodge a View into the overlay, but the redundancy makes it seem like this solution is incorrect. I grabbed the android source hoping that I could just look at MyLocationOverlay source and that would let me know how the animation was supposed to be done, but I can't find the source for anything involving maps. If that is available somewhere it would help. Can someone point me to the MyLocationOverlay source or let me know what the paradigm is supposed to look like for animating map overlays?

View 2 Replies View Related

Android :: Activity As Overlay Over Other App

Sep 23, 2009

Is it possible to create an Android activity as an overlay above other application? If yes, please provide me a pointer.

View 7 Replies View Related

Android :: Add Overlay To MapView?

Sep 28, 2010

I have subclassed Overlay as LandMarkOverlay (and implemented an onTap(GeoPoint) method).

In the main activity I do this:

setContentView(R.layout.main);

MapView mapView = (MapView) findViewById(R.id.mapview);
mapView.setBuiltInZoomControls(true);
landmarkOverlay = new LandmarkOverlay();

//add the landmarkOverlay to the list
mapView.getOverlays().add(landmarkOverlay);

What else do I need to do so that when the user taps the screen, landmarkOverlay's onTap(GeoPoint) method gets called?

View 1 Replies View Related

Android :: Overlay Vs ItemizedOverlay?

Oct 24, 2009

I want to draw 20 pins on a MapActivity. Each pin has a small pin image, but I have to dynamically overlay a small bit of text over each pin at runtime.

Looks like I have two options:

#1) Itemized Overlay This is the suggested method. I put all my pins in one ItemizedOverlay object, and that counts as a single Overlay object for my MapView.

#2) One Overlay per pin Create a separate Overlay instance for each pin I need to render.

The problem I see with using method #1 is that you need to set a drawable for the item. This would mean that I need to create 20+20 (one for focused/non-focused state each) bitmaps and keep them in memory for the duration of my app. On the other hand, Overlay lets you override the draw method so I can do the simple compositing at runtime.

The other issue with Itemized Overlay - although it handles focus for you - does it move the focused item to the front of the z-order when selected?

View 2 Replies View Related

Android :: Memory Leak In Map Overlay

Jan 10, 2010

I have been banging away at this one for weeks and I feel like I have exhausted my research capabilities. I am hoping that someone will see my error in the code posted below. The code is completely functional doing everything I need, but there is a major memory leak. When I try to track memory in the DDMS, the VM Heap tells me that my object count is relatively stable and the used memory is also relatively stable (it comes back down to a similar value after each GC after panning).

When I look at the memory pie chart, the free memory loses over 1meg of capacity with each map pan (overlay reload) and the Unknown memory grows. I have not found anything with the allocation tracker. Functional Summary: I load overlays onto a map based on data I get from polling my server. When I pan the map far enough I clear the overlays and load new ones.
MapFrontEnd.java (snippets): //header info private List<Overlay> overlays;
//in onCreate overlays = mapView.getOverlays();
// here I attempt to fully clean up my old Overlays for (Overlay i : overlays) {
if (i instanceof ParcelOverlay) ((ParcelOverlay) i).cleanUp(); }

View 4 Replies View Related







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