Android :: Background Processes Not Being CPU-limited?

Apr 19, 2010

We were told that, as of Android 1.6, background processes were put in a Linux process scheduling class that limited how much CPU they would use. A few weeks ago, I ran a benchmark test that seemed to validate this claim.I have run more tests, and I am no longer confident in my earlier conclusion. I can get a background process to significantly impact the foreground process, more than would seem to be possible if the background process was, indeed, CPU-limited.

Android :: Background processes not being CPU-limited?


Android :: Game Doesn't Work Due To Thread Background Processes

Mar 8, 2010

I have written a very simple game with some simple animations, but I've noticed that when the phone checks email, or several other apps are running, the animations that update in my thread start behaving slowly or choppy. This is a problem as the game mechanic requires some careful timing of your screen touches based on the animations. So if it starts behaving erratically, the game doesn't really work well - and isn't much fun.
Is there a way to prevent this? Can my threads have a higher priority when they need to run?

View 3 Replies View Related

General :: Set Maximum Background Processes Not Using Developer Options Possible?

Jun 24, 2013

I know the android memory management is quite good, but is there an option for how many tasks are kept in the background before killed even if there is enough RAM?Is this possible by not using the setting in the developer options but some init.rc tweak?

View 3 Replies View Related

General :: Unknown Processes And Services Running In Background

May 24, 2013

What is the usage each of this processes and services running in background as below? They use about 61 M of my RAM!

As you see there are 5 services for GO SMS Pro! Why this services begin running after reboot? For google services also a service named android core apps begin running.

View 3 Replies View Related

Android :: OnTouchEvent Limited To 36x / Second?

Jan 12, 2010

I've been pulling my hair out trying to achieve smooth scrolling in an OpenGL-based app on Eclair. It seems that no matter what I do, I cannot get more than 36 events per second (the rest is sent in history data which is useless in my case). This happens on both the emulator and the Motorola Milestone.Is this a hardcoded limit or am I doing something wrong? I'm implementing onTouchEvent on the activity and recording how many events are received per second and then send that info through Log.v to Eclipse. I also tried implementing onTouchEvent on the view instead of the activity and the results are the same.

View 4 Replies View Related

Android :: Are Processes Kept Alive When Nothing Is Being Done?

Feb 8, 2010

I have an app which declares a BroadcastReceiver, the receiver gets the broadcast, does what it needs to, then ends ensuring that everything is tidied up as needed. When I examine the system through the DDMS view in Eclipse the process for the application is still running after the receiver has completed. I've even boiled it down to a simple test case which gets a shared preferences instance from the context, checks a random setting, and then exits, and, when run on the 1.5 emulator (which is the minimum supported OS level) the process is still hanging around.The reason this is an issue is memory usage (which shows under DDMS as around 2MB).I've had queries about why the application still uses up memory even when it's not doing anything, so, my question is; Is this behaviour normal, or have I missed something that would make the process exit?

View 9 Replies View Related

Android :: MemoryFile Between Processes

Jun 22, 2009

I've been able to send data via shared memory between threads within a process using MemoryFile.I then tried to send data between a service and an activity in different processes, but the data did not get passed. The name for each call the MemoryFile's constructor was the same.Is it possible to share data between processes using a MemoryFile?

View 6 Replies View Related

Android :: How Does A Singleton Behave In Different Processes?

Mar 23, 2010

I have a singleton class and I am using it to access databases. I would like to know how it would behave if I use the same from my remote service class which runs as a separate process. Will it create a new instance in that process or will it use the instance from the other process?

View 3 Replies View Related

Android :: Market Limited Distribution

Mar 29, 2010

We have an app that needs to be distributed to a large but limited audience.We are doing this through our own web site.Now that AT&T will not allow any downloads to the Flip except through the Android market, we need to have the capability to have a limited distribution on the Market.Can this be done on the Android market?Will the Android market include this in the future?

View 13 Replies View Related

Android :: Nexus One DDMS Only Two Processes

May 1, 2010

I'm having trouble using the nexus one in DDMS on Fedora 12. It is detected fine and I can see two processes, cooliris and uploader.These are the only two that show up. The emulator shows up just fine and i can debug from there. Does anyone have suggestions on how to get the nexus to connect properly?

View 2 Replies View Related

Android :: When Is Appropriate Time To Use Separate Processes?

Nov 4, 2010

I have read all about having separate processes for different Application components, and how to use them.I am curious, what are some appropriate use cases for when an application should actually use separate processes?It seems to me, the main advantage to using separate processes is to make the different portions of your app more easily killable by the OS.

View 7 Replies View Related

Android :: DDMS Does Not List Processes

Feb 15, 2009

I've been trying to locate some excessive object creation to deal with hiccuping caused by the garbage collector (any word on upcoming improvements to this, btw?), and have discovered that DDMS is the tool for the job.I shut down eclipse and booted up DDMS, and it finds my device, but lists no processes running (no matter what I run).Initially, it did list the "powermanager" app that I had installed, so I assumed this was causing some kind of conflict and uninstalled it and rebooted my device.Now it simply lists no processes.

View 4 Replies View Related

Android :: How To Share Data In Different Processes?

Nov 23, 2010

I wrote a JAVA application with native methods, and trigger encoding program in native methods. That makes two processes, one is application process, another is encoding process.I would like to know if there is a way to get encoded data from encoding program and pass them to JAVA application.

View 2 Replies View Related

Android :: View Cpu Usage Of Processes

Oct 20, 2010

Is there a process manager or task viewer for android that shows how much CPU percentage each process or even each thread in a process takes up?

View 1 Replies View Related

Android :: SharedPreferences Limited In Size?

Mar 3, 2010

I'm just wondering, if there is a limit on amount of data I can store in SharedPreferences. ( and if yes, what limit).

View 7 Replies View Related

Android :: Two Processes Are Created On First Running Of My Application

Mar 4, 2010

Some times after installing my application and first running my application is creating two processes as follows.

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

View 4 Replies View Related

Android :: Instantiating Activities Into New Tasks / Processes

Jul 28, 2010

I have an application with a multi-instance activity. I would like each instance of the activity to appear in a new task and process. Any suggestions on how to do this? By manipulating the manifest I can cause all instances of the activity to appear in a specific task and
process, but I haven't found any way to cause each instance to appear in a different task and process.(The requirement to have different tasks is that we want each instance of the activity to appear separately in the task list; the requirement for different processes is that each instance of the activity is backed by a chunk of native code with global state. We can't change either of these.)

View 1 Replies View Related

Android :: Google Map View Limited To Region?

May 11, 2010

I've seen a lot of applications that utilize this view, but in my region (Israel) it seems to show a different view than what the Google Maps application shows. Google Maps shows everything you would expect from Google Maps except street view. However map view does not. It never shows streets and details, just a big blotch of gray. Satellite view works, but not with the best resolution the Maps application offers.Can anyone point me to documentation of this matter?

View 2 Replies View Related

Android :: Dealing With Very Limited Data Plan

Nov 16, 2010

I'm new to Android platform but not new to software development. We want (in our company) to create Android software to compliment our truck management software. Basically, it will do couple very specific tasks.

a. Send GPS updates to server.
b. Receive trip information.
c. Send pickup/delivery confirmation to server.

After evaluating i.e. platform and Windows phone 7 platform we came to conclusion that only Android has multitasking that works for us. So, Android it is but I have some specific questions.

1. Data plan we want to use will be very limited. Probably 5M/mo and no voice/text. I figured 5x1024x1024 = 5242280 bytes will give me 1k per transmission every 15 minutes (3000 transmissions per mo). It will leave 2M for other stuff that will happens every couple of days. Does my math look OK or there is lot of "waste" traffic? Our server going to be XML SOAP and messages sent will be just Lon/Lat in XML package. 1K will be OK? If I just calculate bytes it will be even less but I wonder if there is "minimum" packet size, etc. Any insight on this data limitation appreciated.

2. Because of #1 we need to "lock" device somehow so there is no other software that uses network. Possible? If so, what do I need to look for? I found already created app - firewall and it says phone has to be rooted for that.

3. Receiving trip information. What's the best way to accomplish that given my situation? Should I run some kind of listener? Will my phone have IP address or something? Or should I get small text plan and use that for this specific functionality? Can I receive text message in my own application?

So, as you see we trying to shrink $80/mo service to $15/mo service that will do big savings to our company but not sure if it's all possible with constraints we have. Also, we may just give discounts to drivers who have Android phone and will install our app but we don't count on that.

View 2 Replies View Related

Android :: Debugging System Processes In Eclipse

Jan 18, 2010

How can I debug some system process (...acore), for example, the status bar, in Eclipse ? I couldn't find any help online yet. I'm able to debug a normal application, but not system threads (windowManagerSevice etc).Also, when I open the Android source in Eclipse using the official instructions, I get build errors, is it OK ? (already executed "make" successfully)

View 2 Replies View Related

Android :: Post Messages Across Processes By Using Handler?

Aug 13, 2010

I have to post messages from one process to another process by using handler .

I am using Handler.post/Handler.sendMessage but i am not getting those messages in another process. I am not getting any exceptions also.

Is it possible to sent messages across processes using Handler?

If it is the case how can i do it?

View 5 Replies View Related

Android :: Droid Phones Limited To 160 Characters On Sms / Why Is So?

Sep 11, 2010

Are Android phones limited to 160 characters on sms? If so why?

View 2 Replies View Related

Android : Can Apps Be Limited To Use Certain Area Of Screen?

Feb 5, 2009

Can applications be limited to use certain area of the screen?

View 3 Replies View Related

Android : Get Hprof Dump For Other Processes From App Code?

Jun 16, 2010

In my application , i have an option to capture the hprof dump. I used

android.os.Debug.dumpHprofData (String fileName)

Initially i though the hprof data generated by the method above is for the entire device , which is not so . The hprof data generated is only for my process.

Now i am trying to generate hprof data for other process as well. I need to get the Hprof dump for all the running processes from application code.

from adb shell i tried "kill -10 <pid>" , This command will generate the hprof file for the corresponding process in the data/misc folder.

Now the problem is this command is working perfectly from the adb shell prompt , but i am not able to embed the command to mycode.

My code is like

Runtime.getRuntime().exec("chmod 777 /data/misc") Runtime.getRunTime().exec("kill -10 <pid>")

No exceptions are thrown , but somehow it is not working. The same code above is capturing Hprof dump for my process, when i give my process ID.

I tried with "android.os.Process.sendSignal (int pid, android.os.Process.SIGNAL_USR1) ;" also.Getting the same problem.It is capturing Hprof dump for my process. For other processes it is not working.

Do we need to have any special permission to kill other process from our process ? Or is it a built issue ? can you please suggest some possible way to get Hprof dump for other processes from application code?.

View 2 Replies View Related

Android :: Some Users Can't See My Location Limited Droid App In Market / Why?

Jun 27, 2010

I have published an app on Android Market which is limited to Norway. I'm able to find and install it myself from Market, as can several other Norwegian users. A colleague (Android 2.1) and a friend (Android 1.6), on the other hand, cannot find it. They both have phones bought in Norway, with SIM cards from Norwegian providers.

Why are some Norwegian users able to find it, and others not? How does Google determine the location of Market users?

The app works on Android phones with v1.5+.

View 1 Replies View Related

Android :: Facebook Contacts Limited To 2046 / Is There Such A Limit?

Jul 24, 2010

My droid incredible seems to be limited to 2046 friends on facebook in my people's list. It seems that new friends aren't added anymore automatically (that is synced up) ... is there such a limit? my people's list is a mix between my google contacts and facebook contacts (most of them linked so I can add phone numbers, etc.) I have no such limit with my google contacts. my contact storage is at about 50MB right now.

View 9 Replies View Related

HTC EVO 4G :: Can Somebody Tell Me What These Processes Are For?

Jul 22, 2010

I rarely play music on myphone, but i do have a few songs on my SD card. Using battery history it shows that MEDIA uses the most internet usage. Was wondering if its safe to put these on autokill and turn off in startup manager

View 1 Replies View Related

Android :: Are App Space Limited To SD Card Size OE Number Of Pages?

Aug 29, 2010

Apps amount limited by sd card size or number of pages for apps?

View 1 Replies View Related

Android :: Share Files With Different Activities Running / In Different Processes In Application

Mar 16, 2010

I would like to share a cache file across activities, which are running in different processes but in a same application.So, is there any way to make it thread safe (probably not "thread safe", should we call it "activities safe" or "process safe" ?

View 2 Replies View Related

Android :: Check Memory Consumption Of Each Running Processes Individually With SDK?

Apr 7, 2010

I would like to check the memory consumption of each running processes individually, cat /proc//statmis ok, but opening a shell for each check is time consuming, and maybe not the best way. any advices how to do it with the SDK?

View 1 Replies View Related







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