Background application without ui - G1 Android Development

Hi all,
I am new to android development.I want to make one background application, so that it keeps running in background, and its without any ui, and even its icon do not appear on desktop.
In short its a stealth application...
Is it possible ?
Thanks and Regards,
Mudassir

I don't know if this could be of any help but Launcher Pro has an Option to Hide Applications, Don't know if they can be running on the background tho

it's not an application, it's a service. PM senab, or coolbho3000, as they have ingenious implementations of services in apps that they post here on the forums. Senab does HeroLED, and coolbho3000 does SetCPU.
jcarrz1
Edit: this might help you: http://developer.android.com/reference/android/app/Service.html
Edit 2: lbcoder beat me

What is this "application" going to be doing? IDK, sounds kinda sketchy to me. Regardless of what the app is doing there should be a UI option to turn it on or off unless its strictly for advanced users that can use the terminal.

Services are PART of an application. No, they are not applications in and of themselves but they are part of an application. You can't have a service running with no application to start it. So saying that he wants a service and not an application is not true. But yes, a service is what you are looking for.

Related

Disable Google Voice

Hi Guys
Is there a way to disable Google Voice in Nexus One in non-Rooted devices? Google results are not useful.
I don't want this application to run in the background. It restarts even if you kill it.
read up on how android handles memory allocation.
maybe you can help me and show me where to read?
henihazbay said:
maybe you can help me and show me where to read?
Click to expand...
Click to collapse
Here you go. Highlights are at the bottom of my post and of the article.
http://geekfor.me/faq/you-shouldnt-be-using-a-task-killer-with-android/
*Android is hard coded to automatically kill a task when more memory is needed.
*Android is hard coded to automatically kill a task when it’s done doing what it needs to do.
*Android is hard coded to automatically kill a task when you haven’t returned to it in a long time.
*Most services (while possibly running in the background) use very little memory when not actively doing something.
*A content provider is only doing something when there is a notification for it to give. Otherwise it uses very little memory.
*Killing a process when it isn’t ready only causes it to have to reload itself and start from scratch when it’s needed again.
*Because a task is likely running in the background for a reason, killing it will only cause it to re-spawn as soon as the activity that was using it looks for it again. And it will just have to start over again.
*Killing certain processes can have undesirable side effects. Not receiving text messages, alarms not going off, and force closes just to name a few.
*The only true way to prevent something from running at all on your phone would be to uninstall the .apk.
*Most applications will exit themselves if you get out of it by hitting “back” until it closes rather than hitting the “home” button. But even with hitting home, Android will eventually kill it once it’s been in the background for a while.
Thanks for the reply.
Most of those highlights are not valid for me or for any nexus one users because:
a lot of unused application cause a big amount of RAM which is resulting with a lag/slower N1
Some applications will never be used by some users, for example Amazon MP3, or Google voice (for me)
So, coming to my initial question, is there a way to disable Google Voice?
I guess the simplest way is modacos kitchen. There is a option (?) to remove google voice.
And i agree that removing unneeded apps will improve performance.
any other ideas?
I have just deleted the apk from /system/app
;-)
when i go to /system/app and try to delete amazon MP3 it gives me an error...
i do see that it is -r- (i assume that means read only) is there a way to override that?
Either root and delete the .apk via adb, or you're out of luck.
jn_vista said:
when i go to /system/app and try to delete amazon MP3 it gives me an error...
i do see that it is -r- (i assume that means read only) is there a way to override that?
Click to expand...
Click to collapse
Is your device rooted?
no root, no delete
jin1207 said:
no root, no delete
Click to expand...
Click to collapse
Exactly. This forum isn't really the place for anyone who doesn't have or want root. Pretty much everything we do here requires root access.
Part Four said:
Exactly. This forum isn't really the place for anyone who doesn't have or want root. Pretty much everything we do here requires root access.
Click to expand...
Click to collapse
Agreed! Be rooted and do what mod you want to do...
Out of curiosity, with the Nexus, with GoogleVoice running how much free memory do you have? As Cy would say, "free memory is wasted memory." Why kill the app if it's not draining the memory that's needed?
So Carloswithac, that means ("taskiller", "advanced task killer", etc) are practically useless??
If so I'm uninstalling them From My Nexus.

Best Android Task Manager - Open Processes

Hello All,
I wanted to see what everyone thinks is the best application manger for Android.
Also is anyone familiar with the Getjar free app store?
Thx All,
Force
What do people think of "Advance Task Killer"
It seems to me it shows all tasks, not jsut the open ones.
Regards,
Force
FYI,
Many people say talk killers are not necessary, as that is a windows phenomenon, Linux & android treating background processes differently.
Regards,
Force
I personally use Advanced Task Manager for $0.99. I have read the articles about how Android does not need task Managers because it is built in, but I know from personal experience that without it if there are running programs in the background my phone gets really sluggish especially when I get a phone call and it makes it difficult to answer etc. Take in account, this experience was mainly with the Hero (slower) but I use on my Evo now.
You know people will argue either way, because there is evidence to support both sides of the argument. so with that in mind- i honestly havent had the need for one with my evo, but it you truly are considering one- i actually have a pair to suggest.
one is OS Monitor- free on the market- great app for pinning down process that could be an issue- also supports dmsg repporting- and logcat is built in to- so if your testing something and it goes all wonky you can export the log to view on a pc and send it to the developer too.
the second is AMM- or Auto Memory Manager- free and donate versions on the market. There are pretty much a couple of sliders and you set it how you want android to handle the process. I have had great success with this app on my other device- normal free memory was around 30-35 and using this set aggressively i saw gains of 50mb at most times keeping my freememory to around 75-80mb range.
Hope this helps.
I take both sides. I have task manager installed, but use if ONLY when needed. Aka, I used it when I want to kill the browser after I'm done with it so next time I launch it I won't be seeing old pages.
I like EStrongs Task Manager.
http://www.appbrain.com/app/nextapp.systempanel.r1 is nice, it can kill processes, monitor system stats, uninstall apps and more. There is also a free version.
TREYisRAD said:
http://www.appbrain.com/app/nextapp.systempanel.r1 is nice, it can kill processes, monitor system stats, uninstall apps and more. There is also a free version.
Click to expand...
Click to collapse
i installed that last night, cool app
why someone who know don't explaine exactly how android works and do we need killers and if yes which one is best...
Everyone of us using something but question is that which one is best for our needs.
quick system info pro (free)
I only use the manual task killer widget when memory gets down around 100. Spikes it right back to about 250.
Whats your guys' normal memory range? I see someone on here saying 50 was normal for them but that seems REALLY low to me.
frifox said:
I take both sides. I have task manager installed, but use if ONLY when needed. Aka, I used it when I want to kill the browser after I'm done with it so next time I launch it I won't be seeing old pages.
Click to expand...
Click to collapse
Does the stock Sense browser not have an option to kill the windows by hitting menu? On CM, I do menu, windows, and X them out

[APP] Task Identifier [Android 2.1 and up!!!]

!!!If you have Android 2.1 the app now is in the market!!!
Android 2.2 and higher are also still supported
This is not another Auto Task Killer, no.
Thanks for all the help from everyone! We've moved into a lite and full version now on Android 2.2 and 2.3 phones.This is a new program which allows the user to specify alert levels to phone tasks and give you insight into what your phone is really doing. Make a call, ever wonder what apps may be listening? What's going on when you phone is in standby? In creating this, I will say that I've been surprised a few times at what is really going on. I want any and all feedback as well as we are trying to make this into something special. I am the actual developer of this app.
The full version has:
-Common Names and Actual Application Icons
-No Ads
-Access to all App Settings
-Ability to change alert level from List Tasks
-Removed Internet and Location Permissions
And we have a slew of other features planned for only the full version, but we don't want to spill the beans on those quite yet, but they will enhance the tool greatly!
Both versions now have the new UI as well.
Anyone who had the beta should be notified to upgrade to the lite version now.
Download Task Identifier Lite from your phone:
market://search?q=pname:com.task.identifier
Download Task Identifier Full from your phone:
market://search?q=pname:com.task.identifier.full
I've also attached a QR Code to scan for both versions. Or just search for Task Identifier in the market.
I hope you all find this useful and enjoy!!
smart work
notowork said:
smart work
Click to expand...
Click to collapse
Thanks!
10
Hehe, I like how the only comment for the app (5 stars and "awesome" as comment) is currently by a user named 'x2k'. Hmmm.
I've just installed it and it's been less than a minute and I got an alert from an app that no longer needs to sync...So I disabled it (every little bit of non-sync means longer battery life!).
So far it's looking very promising! I'll definitely report back on my experiences!
Okay, first big thing...
Can you please resolve the cryptic app names to their more friendly name variants?
It's hard to read and make out the com.blah designations.
Thanks!
So far it seems like a cool app. I've been using WatchDog for ages to alert me when an app misbehaves.
But I'm confused about this app. When would you want to be using this? Can you give an example?
I'll keep it installed and see how it goes. Thanks.
Paul22000 said:
So far it seems like a cool app. I've been using WatchDog for ages to alert me when an app misbehaves.
But I'm confused about this app. When would you want to be using this? Can you give an example?
I'll keep it installed and see how it goes. Thanks.
Click to expand...
Click to collapse
Thanks for trying. This is more of an app to alert you as to what your phone is doing, ie what loads at a given point in time on your phone.
x2kjosh said:
Thanks for trying. This is more of an app to alert you as to what your phone is doing, ie what loads at a given point in time on your phone.
Click to expand...
Click to collapse
Thanks. I'm playing around with it and actively trying to make notifications pop up I opened Facebook and Google Reader started, as did Maps. Weird.
Which brings me to a question: how do we know whether the task started was CAUSED by the current app I'm using, or Android just randomly started it?
For example, it's possible Facebook opened Maps in order to try to get my location, but I don't see the connection between Facebook and Google Reader. Which is why I ask if it's random, or the app I'm using is causing other tasks to run.
Paul22000 said:
Thanks. I'm playing around with it and actively trying to make notifications pop up I opened Facebook and Google Reader started, as did Maps. Weird.
Which brings me to a question: how do we know whether the task started was CAUSED by the current app I'm using, or Android just randomly started it?
For example, it's possible Facebook opened Maps in order to try to get my location, but I don't see the connection between Facebook and Google Reader. Which is why I ask if it's random, or the app I'm using is causing other tasks to run.
Click to expand...
Click to collapse
I've found when you start doing things you see patterns. On my old Eris while I was testing this, every time I made a phone call, ebay would start! Glad it seems to be working for you! Thanks!
Great thanks
wael0x said:
Great thanks
Click to expand...
Click to collapse
You're welcome.
Sounds like a great troubleshooting tool. Nice work!
I'm liking this app more and more. A few more comments and requests.
Comments
* I like the main app window. Large fonts, long-press to get quick-help or short press to go to the item. Nice
* Screen off app start notification, nice!
Requests
1. Possible to get more detail about why or how an app was triggered? Like, was it triggered by a service? another app? etc. And did the triggered app take any actions? Like sending network traffic or queried the GPS and such?
2. The 'Setup Alerts' window is hard to read through, could you maybe add color so all the status 'Green' items have the word 'Green' in green font and so on?
Just added a 5 star rating on Market, keep up the good work!
Namuna said:
I'm liking this app more and more. A few more comments and requests.
Comments
* I like the main app window. Large fonts, long-press to get quick-help or short press to go to the item. Nice
* Screen off app start notification, nice!
Requests
1. Possible to get more detail about why or how an app was triggered? Like, was it triggered by a service? another app? etc. And did the triggered app take any actions? Like sending network traffic or queried the GPS and such?
2. The 'Setup Alerts' window is hard to read through, could you maybe add color so all the status 'Green' items have the word 'Green' in green font and so on?
Just added a 5 star rating on Market, keep up the good work!
Click to expand...
Click to collapse
Thanks for the suggestions. Those are features we truly will consider adding as it will just make the tool even better. Thanks!
There will probably be updates from time to time through the market
Sent from my ADR6300 using XDA App
First of all, thanks for a great app.
I really like the fact that it reports on tasks/processes started while the screen was off!
I have some suggestions though:
1: When I click the icon in the app list to open the menu, it just shows the "Starting monitor" message and nothing else. I have to open an app to get the message in the pull down bar and click on that to start the application it self.
2: On my Samsung Galaxy S i9000 the layout of the application is just a bit to long for a full screen. We are talking about 1 cm or something.
3: I would very much like a log, so that I can check back, what applications started during screen off, and at what time/date.
4: The way the Android memory management works, I guess it's normal for Android to start and application/process to memory by itself from time to time. Is it possible to show this somehow? For what is interesting here is when an application is launching another application or process, and not when Android memory management is putting an application in memory.
Thanks for your great work, I'm looking forward to further updates to the application!
Just saw this on the front page and thought it looked pretty interesting. Installed a few minutes ago, but so far I like it. Not too intrusive with the pop-up.
As Namuna posted though it would be nice to get more detail.
Also to have the actual app name rather than com.xxx.
Really good work.
Installed.
I like the idea that we can see what tasks are really doing in the background. But as noted by some above, the notifications are a bit cryptic at the moment.
After installing and running the app, I started updating some of my other apps in App Market and my phone crashed. This has not happened before and I seems from my layman eyes that too many things might have been running in the background.
When the phone restarted, it too forever for anything to be displayed and the 3 widgets I had on the homescreen refused to load up. Again it seems to me that this app is popping up too many notifications - I have now stopped the app from starting up and running on start up.
I don't know whether this is unique to me or not though. I am running the app on Samsung Galaxy S (international) on stock Froyo with LauncherPro.
Still, I like this app and will use it more. Keep up the great work and many thanks.
Edit : just checked app settings again, and although I explicit unchecked app running on phone startup, the box is checked again. I unchecked the box and pressed save again. Re-entered app settings and the box is checked again. Am I missing something?
This looks very interesting.. So it's installed and ready for testing
Thank you very much for that app, it's awesome. I agree with the recent posters that the name of the app in addition to the com.blah.blubb would be a great help to identify the task. Also I'd like to see a possibility for a logfile.
Keep up the good work!
EDIT: I can hardly read the small, dark font when setting task levels since I use almost the very darkest display settings to save battery. So being able to chose the font color would be great but has absolutely no priority. Again: great app!Using it all day long now and I am surprised what tasks are being started!

Help loading Mvelopes APK

Hey guys,
I am trying to load mvelopes.apk and keep getting "Application not installed".
I have tried it from my "download" folder as well as "system/app" with no luck.
I took the apk from my phone, it was in a Titanium backup file (xxx.apk.gz) Could that be part of the problem?
Permissions are set to RW R R and root is the owner.
Any suggestions would be appreciated.
Without knowing what that app does, a possible reason for it not installing is that it has some dependency on other tools that either aren't enabled or are not available on the KF.
As an example, apps that use GeoLocation or the camera won't install because they are looking for hooks that just aren't there.
mvelopes is an app to manage personal budgets and money. It is associated with mvelopes.com and is a lot like mint.com.
Here is the Android Market Link
I would love it if somebody could see if they can load it on their device. Especially one that has market installed.
If you look at the Permissions tab it say's:
"FINE (GPS) LOCATION
Access fine location sources such as the Global Positioning System on the device, where available. Malicious applications can use this to determine where you are, and may consume additional battery power."
I think this is what is making it impossible to install right now, because it's looking for location services which aren't enabled on the KF. Perhaps with a custom ROM this might be possible in the future, but nobody knows for sure right now. Not all is lost, you just might have to wait a month or so to find out.
Thank you!
Thanks for looking into this and that would explain it.
I have also opened a ticket with Mvelopes requesting that they make it officially supported in the Amazon market.
I won't hold my breath as the ROM approach might be better once they get fully refined.
Thanks again!
bneilson said:
Thanks for looking into this and that would explain it.
I have also opened a ticket with Mvelopes requesting that they make it officially supported in the Amazon market.
I won't hold my breath as the ROM approach might be better once they get fully refined.
Thanks again!
Click to expand...
Click to collapse
I don't hold out hope that CM7 or any other ROM will help us here - Maybe they can spoof the location somehow to fool the app but it seems like your first instinct might have been right -- the onus is on the companies who build the apps to get with it and embrace the "tablet revolution". Basically apps designed for phone screens look silly on tablets; the wide bits of useless screen real estate are dreadful. Case in point - the Gmail app on the KF.
Light at the end of the tunnel tho - it seems that companies are suddenly realizing that "Tablet App" doesn't necessarily mean "iPad App".
Banking from my KF would be pretty awesome.
hoss12300 said:
I don't hold out hope that CM7 or any other ROM will help us here - Maybe they can spoof the location somehow to fool the app but it seems like your first instinct might have been right -- the onus is on the companies who build the apps to get with it and embrace the "tablet revolution". Basically apps designed for phone screens look silly on tablets; the wide bits of useless screen real estate are dreadful. Case in point - the Gmail app on the KF.
Light at the end of the tunnel tho - it seems that companies are suddenly realizing that "Tablet App" doesn't necessarily mean "iPad App".
Banking from my KF would be pretty awesome.
Click to expand...
Click to collapse
You may be right there, but I think Location Settings also include WiFi based geolocation as well as far as I'm aware? I'm not sure why such an app would require location settings anyway, it's a bloody budgeting app! Maybe the OP should approach the developer, and tell them they are missing out on the KF market here!
Someone should make a T-Shirt - Tablet App != iPad App
sl0ttedpig said:
You may be right there, but I think Location Settings also include WiFi based geolocation as well as far as I'm aware? I'm not sure why such an app would require location settings anyway, it's a bloody budgeting app! Maybe the OP should approach the developer, and tell them they are missing out on the KF market here!
Someone should make a T-Shirt - Tablet App != iPad App
Click to expand...
Click to collapse
Yep, in this context (the Mvelopes requirements) Wifi geolocation can only provide you with the coarse location, not fine. As you point out tho, its a banking app - why on earth does it need to know where you are within 50m (I'm pretty sure that's the radius)? Quizzical indeed. Perhaps if a Dev sees this thread some light can be shed on why this is 'necessary'.
Some nerdy stuff on the subject from the Android Dev Guide: Location and Maps > Obtaining User Location

Application Behavior When Running In Background

Ok here's the situation:
When i drive i use the Tomtom Go mobile app as "main" sat-nav.
Then i use camsam plus which runs in the background and, with a small widget, warns me of speedcameras.
I also wanted to use the icoyote app at the same time but there's a problem: the app stays in the background when there are no speedcameras ahead (which is fine) but when i'm approaching one it will "take over" the screen to warn me (so it's a visual and audible warning).
I was wondering if there's a way (there's none in the app settings) to keep the app in the background while approaching a speedcamera and leave the tomtom on screen (with only the speedcamera audible warning enabled).
I was also wondering if there's a way to keep waze in the background (the same way of the icoyote app) and keep the audible alerts (police, hazard ecc..) working.
Thanks in advance
Anyone???
No. You'd need to request the function from the app dev.
You're battery is going to be very angry with you. Lol
No, with the app in the background, it will not produce sounds... Unless it's made that way, like Google navigate.
I doubt anyone here can help.... The app developers would need to add that functionality, based said above. ?
---------- Post added at 02:01 PM ---------- Previous post was at 02:00 PM ----------
Don't speed and get rid of that one app. Solves that. ?
Darth said:
You're battery is going to be very angry with you. Lol
Click to expand...
Click to collapse
I always charge my phone while driving so that's not a problem.
Anyway thanks for all the replies.... i'll just use tomtom and camsam then.
I was hoping at least for a workaround for the waze app (considering that millions of people are using it i thought that someone found a way to make warnings work in background).
And for waze i'd only need police warning in the background... i couldn't care less about hazards, fixed speedcameras or traffic since tomtom live services are way better.
Something you might consider is to try using split screen mode. That way, the visual alert takes up only half the screen. Don't know if it's available on stock Nexus 5., probably not, so you'd need root access, Xposed framework, and the XMultiWindow plug-in. A good tutorial is here:
http://nexus7.wonderhowto.com/how-t...-windows-your-nexus-7-simultaneously-0151231/

Categories

Resources