Android :: Android NDK Running Native Processes
Sep 21, 2010
I want to run tcpdump on the NDK using Process.start() and want to capture this output to a buffer.Can anybody show me how i can do this?Also is the process created in the same Dalvik Vm as the JNI call or is it in a different VM?
View 1 Replies
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
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
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
Jan 30, 2009
is there any way to debug live running apps to see what processes are taking alot of cpu time? I see the options in DDMS but they are not really live. I would just like to see what processes took alot of time so I can dig into the code to optimize it
View 2 Replies
View Related
Aug 14, 2010
I have advanced task killer on my phone but am amazed at the numbers of processes it seems to kill. I have the ones I know I need set not to close down like adw launcher the HTC keyboard etc however it regularly reports its closed down 40 + processes when I run it.The I run it a few moments later, not having launched anything, and it reports shutting down another 20 or so.Is this right?Could this be the cause of the lagging? I am currently running JM5 firmware which seemed amazing to start with but now seems as laggy as it was before.
View 5 Replies
View Related
May 23, 2010
I'm running into this problem with skype and score mobile. Every time I start my phone up, their widget processes are running in the background, but when I go into the options of these programs, there are no options to turn them off. How do I prevent these widget processes from running all the time?
View 2 Replies
View Related
Jan 2, 2010
Well, I decided to keep my Behold and let the ol' 2g iPhone go.Most of my stuff on this phone seems to be working fairly well. Decent battery life, nothing hangs up too bad.But, I just installed ATK and it's weird.I kill all the processes, then they mysteriously come back a little while later without being open by me.Why? Yet the available memory seems damn decent, 100 available most of the time.Also I installed LockBot And every once in a while it just wont be on my screen. It will just go back to it's original hit unlock to unlock screen.
View 3 Replies
View Related
May 10, 2010
I don't use task killers or any nonsense like that, but I keep OS Monitor running so I can see if my CPU is running when it shouldn't be. While opening OS monitor and looking at my processes I noticed last night that there were like 6 flicker processes. They weren't currently using any cpu or anything, but why are there 6? And now today I noticed there are 2 running. (after re-start / battery charge)
View 3 Replies
View Related
Feb 24, 2010
Is there an application or a way I can view running apps and processes on my phone from my PC? I have the eris (obviously not rooted but patiently awaiting the good news! good speed devs, good speed) with pdanet 2.41. I have a few applications I would like to mod while running.
View 5 Replies
View Related
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
Aug 6, 2012
I've been flashing ROMs built on the latest code for Jelly Bean (4.1.1). (The phone is the Galaxy Nexus LTE.)
The battery has been draining fast and upon checking with OS Monitor, I learned that a bunch of android.process.acore processes, sometimes alone and sometimes with another, have been registering high CPU loads continuously until they run the battery down.They are Contacts Storage, User Dictionary, and DRM Protected Content Storage. (DRM is probably not an acore service but it is making trouble just the same.)
I tried winnowing down the problem by deleting the contact store data and resyncing while de-activating third party syncers like HacSync. I even tried cleaning up the contacts via Google on the web. The contacts number only a few hundred. Again, the processes up claiming huge load after the initial sync period.
I scoured the web for reports but have only found mentions dating back to Gingerbread or ICS involving Facebook. Facebook sync doesn't work with JB and again, I have disabled HaxSync.
I also froze User Dictionary with Titanium Backup but that did nothing to keep the process from running, even after a reboot.
View 2 Replies
View Related
Nov 5, 2009
I am trying to run a native executable from inside an android java application. The native executable exists in my assets. At start of activity, I copy it from assets to my application cache Dir. then I use Process Builder to run it.I tried to run "chmod 777" on the file and on cache directory containing it and I ensured permissions are granted using adb shell. but I still get this permission exception.
View 4 Replies
View Related
Jan 18, 2010
I know that Google elected Windows XP (eXtra Problems) to be the minimum operating system, but was anyone here able to run it on win2k? Being able to run the emulator OR install the native driver (to debug in the device) would be enough. I really would not like to have to buy a new computer just because of android. Since I already work with many other platforms without problems.
View 11 Replies
View Related
Apr 17, 2010
For those of you running the leaked 2.1 for the Sprint Hero, can you tell me if there is a native task manager type of option that allows you to see all the background apps that are running? If there is such a thing, how do you access it? Does it allow you to switch between running apps? Does it allow you to kill the app (like a task killer would)?
View 9 Replies
View Related
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
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
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
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.
View 14 Replies
View Related
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
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
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
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
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
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
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
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
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
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
Aug 23, 2010
I subscribe to the church of not using a task killer but what I really would like is an app that I can select programs I don't want android to kill.
An example of why I want this: theres 3 to 4 websites I view for the most part on my phone. I like to open my browser and get it all set up in tabs on Dolphin. However, if I don't use it for while, I re-open the browser to find it had been closed and I have to repeat.
I'd use this in conjunction with the app that monitors CPU use (forgot what it was) and gives a notification if an app rises over a customized threshold in case the app started getting too hungry.
View 1 Replies
View Related