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

General :: How to increase concurrent HTTP connections


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 :: How To Use Http Connections Like TCP Socket In Java

Mar 9, 2010

may be asking a bit much here but I have faith in the community so it's worth trying. I'm making a game and I'm trying to pick the connection type to use for communicating between a Java mobile client and a Java server backend.Socket programing in Java is easy - there's a lovely tutorial on the subject and two way communication is trivial.Trouble is that on a mobile client (Android) it's not guaranteed that the cellular network will let you make TCP connections. That makes me think using an HTTP connection is the way to go. HTTP connections are request based but I need a way to push notifications from the server to the client. It seems the solution to this problem is to use 'long polling' I have read a bit about it but have yet to see a simple example for what I'm trying to achieve.Again I might be asking a lot but this seems like a fairly common problem, is there a library or framework I can import / use to wrap a Http connection and provide a two way long standing connection (That reconnects automatically etc). I read a bit about cometD but it doesn't seem to have a Java library that I can just pick up.The communication I need is not heavy, not constant two way streams of data just occasional updates either way to keep the game going.

View 4 Replies View Related

Android :: Package Do I Use To Make HTTP Connections?

Dec 24, 2009

I am trying to make HTTP get & post connections.
Which package is recommended for that?
Is it java.net or org.apache.http?
Does java.net comes included in the sdk?
Any reference/code to connection makin would be appreciable as well.

View 1 Replies View Related

Android :: HTTP Connections - Application To Search And Download

Sep 16, 2009

I am trying to make a application where you can search for something and download it. For example I want it to be connected to my website and you can type one of my ROM names and it will show a list view of all my ROMs or themes then I can select one and download it.

View 9 Replies View Related

Android :: How To Develop A Soft Keyboard - HTTP Connections To Synchronize Keyboard Data With A Cloud DB And Other Phones

Aug 13, 2010

I would like to play around with some ideas and develop a soft keyboard for Android to replace the default one.

Is there any general information about soft keyboard development for Android out there?

Any best practices or guidelines?

Can I do with my keyboard application pretty much anything I could do with a normal Android application?
Can I do HTTP connections to synchronize keyboard data with a cloud DB and other phones I have?
Can I open other windows/screens from a key press, e.g. to display a custom input interface different to a normal QWERTY one. If that doesn't work, can I use a pop-up dialog instead?

View 3 Replies View Related

Android :: Android Service Unable To Do HTTP Connections

May 6, 2010

I'm trying to make myself as clear as possible:
Description of the classes in my application
Description of the code architecture (by the Service and by the Activity)
Description of what should happen
Description of what actually happens
Logcat
Source code...

View 1 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 :: App For Intercepting Data Connections?

Oct 30, 2011

I am looking for an app that can:

- make a log of all the other apps, including stock ones, that make attempts or actual connections to the internet, and at what time
- be able to intercept those connections
- preferably I would create a white list of apps that are allowed to connect, but others do not have permission.

Purposes include:
- saving on bandwidth in poorer countries where internet is expensive.
- making sure apps or malware doesn't try to send off my data when it shouldn't be.
- prevent annoying background sync/apps from running when I don't want them

I find it strange that we either give all the permissions the app wants, or it doesn't work. Why can't we restrict their internet access?

Does this sound feasible? Does it already exist?

I'm rooted and using an Asus Transformer.

View 3 Replies View Related

General :: What Happens To TCP Connections When Phone Sleeps

Jul 25, 2012

I have a Star A3 running 2.3.4

I am running Ttorrent Pro on the phone, and the speeds are less than impressive (everyone else says the same thing) I am on a very fast connection, using speed guide I literally max out the speedtest servers in my local area (20Mb up/down which is the max they let you go to, I would get 100/100 if my speedtest server would allow it) and I have a port forwarded correctly.

but anyways, what I have noticed is, when wake the phone, and open the torrent application the speeds are down to around 3Kbps if I leave it open the speeds immediately start ramping up to 200-300Kbps if I keep it awake.

So this makes me think, when the phone is sleeping a lot of the connections are being closed, or when the phone is asleep it won't try and open new connections to new peers (and the current peer list may go stale while its asleep)

this is with all torrents, now the exact same torrent on another PC with a DSL connection (3Mb down 300Kb up) is downloading faster than the phone.

Are there any developers out there than can explain what processes are going to sleep that may be useful to keep awake for downloading, and also what are the tcp limits on the phone, ie. max open connections, max half open etc?

View 1 Replies View Related

General :: Backup Bluetooth Connections?

Oct 9, 2012

Is there any way to save my Bluetooth pairs. I change rooms a lot so it would be useful if I could back it up .

View 1 Replies View Related

General :: Manage All Outgoing Internet Connections?

Aug 6, 2013

I am Android user and will be soon have be out on a rgular basis. Till now i have been using a hi speed internet connection of the wifi. But i need on mobile connection as well. The one within my budget is a hi speed plan but data valumn based.

My question is regarding that whenever i switch on my wifi, every single app and service starts connecting to the net. The over all internet browsing speed falls, the phone performance falls. My a whole lot of data is downloaded.

Is there a way to selectively allow/dis allow apps and services from eating away data from my data based mobile internet plan ? So that say only few apps, like AC Forum app/Gtalk/Google+/Gmail/Email apps gets the internet and the others remain on hold till i reach home and open up the lock for all apps, etc via wifi. Is this reallu possible ? Or do i have to go cut off the mobile data when the capping for my plan is reached ?

View 6 Replies View Related

General :: Application That Manage Bluetooth Connections?

Mar 18, 2014

any application that manages your bluetooth connections?

Here's what I'm talking about, I have bluetooth headphones, several speakers and my car that all are connected to my phone and I'm having several small issues.

- As soon as I turn on bluetooth it tries to automatically tries to connect to these certain speakers, I don't want that and don't know how to stop it.

- If I'm in my car, my phone connected to my car for calls and I'm listening to music through the headphone jack but it will automatically connect to a set of bluetooth speakers in my home when get home and pull into the driveway. So music will play through those speakers instead of my headphone jack. I obviously don't want that either.

-Titanium Backup never restores my bluetooth connection either so if there is an application that can save those too that would be useful.

View 1 Replies View Related

General :: WiFi - Avoid Poor Connections / Not Working Well Enough

Jul 28, 2013

I have some spots in office and home that WIFI signal is strong enough for me to locate it but not strong enough for actually having internet access, and so it causes me to not have an internet access at all since 3G is disabled for WIFI but WIFI is dead. The option on the Advanced for "Avoid Poor connection" seems to work only for REALLY BAD signal, and a little bit more than that it approves. Is there a way to edit it? re-arrange it so it will avoid "Fair" signals too? or set a minimum percentage of signal (lets say 50%) and less than that it forces 3G.

View 1 Replies View Related

General :: Switch CM 10 Profiles Based In WiFi Connections

Aug 8, 2013

I'm searching for an application that can switch CM 10 profiles based in wifi connections.

Thought [URL].... could do that, but it manages its own profiles.

View 1 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 :: Concurrent Modification Exceptio­n 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

General :: What Android Phone Supports Infrastructure WiFi Connections

Nov 17, 2011

I really like my Droid X but it only supports Ad Hoc and this doesnt connect to a certain device I need it to. I want to make sure I get the right phone that does what I need it to.

View 2 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

Android :: Overlay Concurrent Modification Exceptio­n 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...

View 4 Replies View Related

General :: Android 4.4 - WiFi Is Intermittent / Buffering / Dropping Connections On Nexus Devices

Jan 6, 2014

I've recently upgraded my Nexus 4, Nexus 7 and Nexus 10 all to Android 4.4 and as soon as I upgraded my Wi-Fi has been awful.The Wi-Fi is incredibly unstable, steaming media has major buffering / intermittency issues, messages sent over instant messaging apps are sometimes instant and sometimes take 30+ seconds to send.

Skype is the most telling of the issues as it randomly loses connection and my notifications literally never come through..Router Wi-Fi Settings: I've tried Channels, 1, 2, 4, 6, 8, 10 and 11

I've also tried adding
Code:
gDataInactivityTimeout=200

to the WCNSS_qcom_cfg.ini file as found:URL>...Wi-Fi is Always On, Wi-Fi Frequency is Auto or 2.4, Wi-Fi Optimization is Off.The wireless / wifi works fine on other tablets, laptops and wireless devices just my nexus devices on 4.4

View 5 Replies View Related

General :: How To Increase Ram

Apr 13, 2013

how to increase my phone ram.

View 9 Replies View Related

General :: How To Set HTTP Proxy For Apps

Apr 29, 2014

My problem is that all my devices are on a wifi network that uses http/https/ftp/SOCKS proxy settings to connect to internet. All the devices connect to internet after I use proxy settings on them. But few applications such as skype do not connect to internet. They work fine when I connect to a wifi network that does not use any proxy settings (at home), but at work when I have to use proxy settings to access internet, the apps fail to connect. I have a couple of devices which are not rooted (Fujitsu Stylistic M532 tablet, Garmin-Asus A10 phone) and I am not sure if I can root them. I would really want to use all the apps.

View 9 Replies View Related

General :: How To Manipulate HTTP Header

Feb 8, 2012

how to manipulate HTTP header on Android??

View 4 Replies View Related

General :: Any Way To Increase 3G Speeds

May 16, 2012

Is there anyway to increase 3g speeds.I am only getting 0.11mbps down and 1.7up.Any way to increase it.

View 2 Replies View Related

General :: How To Increase RAM In Micromax A56

Aug 15, 2012

Any way to increase Ram on micromax a56. I heard some ways like swap partition and swap file....how can we do this or is there any other way for doing this.

View 3 Replies View Related

General :: Possible To Increase API 11 To 13 Or More For Eclipse?

Mar 21, 2012

I have a problem regarding API issue.. I am now creating android application which need to run for API 13..Im using Eclipse version 3.6.2.. the problem is, my Eclipse only has max API 11..I want to increase it to API 13...

View 1 Replies View Related







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