[android-developers] Android Service notification tutorial

2023-06-06 Thread ShelbyTek
Greetings all, I'm looking for tutorial code for a background service (no dialogs) that will do system notifications (icons, audio sounds) for Android 9-11. If anyone knows of a good example could you link it? I have done a lot of searches but no basic code for this example that I am looking

[android-developers] Android Service Stops When App Is Closed

2016-06-30 Thread dhas. m
i develop one application that application need all time execute service but unfortunatly when app closed or remove from heap space services will be destroyed. please anyone help me solve his problem Intent alarm1 = new Intent(context, LocationReceiver.class); boolean alarmRunning1

Re: [android-developers] Android Service

2013-03-12 Thread Kristopher Micinski
Android is not a real time os, you cannot assume that the message queue will be flushed in any kind of timely fashion. Why are you doing this? Kris On Fri, Mar 1, 2013 at 2:39 AM, Amith Salian wrote: > I have a strange situation with my Service in Activity. > My service calls a background me

[android-developers] Android Service

2013-03-12 Thread Amith Salian
I have a strange situation with my Service in Activity. My service calls a background method every 20 sec when active. In the development environment the time elapse between successive calls is exactly 20 sec, however in an Android device it is arbitrary. Anyone encountered this issue? -- --

Re: [android-developers] Android Service Activity demo code

2012-01-15 Thread TreKing
On Sun, Jan 15, 2012 at 9:04 PM, Kristopher Micinski wrote: > Treking, did you see the new Service Activity Content Provider > demo included in the SDK? > Nope - and can't find it either ... what you talkin' about, Willis?

Re: [android-developers] Android Service Activity demo code

2012-01-15 Thread Kristopher Micinski
Treking, did you see the new Service Activity Content Provider demo included in the SDK? OP: Right, these are two separate things, the first page of the Android develop guide explains but it boils down to this: Activities: a way to do GUI stuff (think: actions associated with a screen) Servi

Re: [android-developers] Android Service Activity demo code

2012-01-15 Thread TreKing
On Sun, Jan 15, 2012 at 12:13 PM, ALi wrote: > I'm new in Android, need to work on Service Activity, Any demo code > or link for Guidance. > "Service Actvity" is not a thing - they are two separate things. Read the documentation. -

[android-developers] Android Service Activity demo code

2012-01-15 Thread ALi
Hi, I'm new in Android, need to work on Service Activity, Any demo code or link for Guidance. Regards -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

Re: [android-developers] Android service killed immediately after start, despite calling startForeground()

2011-11-07 Thread Mark Murphy
On Mon, Nov 7, 2011 at 1:07 PM, Chris wrote: > I'm having a problem with my IntentService. Every time I start my > service, the onDestroy() method is called as soon as the service > becomes idle. That is largely the definition of an IntentService. Once onHandleIntent() completes its work on the b

[android-developers] Android service killed immediately after start, despite calling startForeground()

2011-11-07 Thread Chris
Hi, I'm having a problem with my IntentService. Every time I start my service, the onDestroy() method is called as soon as the service becomes idle. I set up my service to run in the foreground, and despite this the service is still being killed right away. I have only one other activity in my app

Re: [android-developers] android service

2011-07-15 Thread Deepak Yadav
no On Fri, Jul 15, 2011 at 1:01 PM, yanamala siddaiah < siddaiahforj...@gmail.com> wrote: > If service stopped by user or any other situation . I want to start > the service again . > or > > user dont want stop the service delete the option to user to stop the > service for our app. > > is there

Re: [android-developers] android service

2011-07-15 Thread Perumss Naren
Hi yanamala , ya we can achieve that by Boolean flag the scenario of service can destroy are: 1. when user itself can stop the service by settings-> application settings -> Running service-> then your app service 2. when the mobile sw

[android-developers] android service

2011-07-15 Thread rich friedel
You cannot "hide" stopping a service... all one has to do is close it from the settings. Also restarting a service after the user explicity shut it down will quickly turn users away from your application. You can flag the service for restart after the system shuts it down by using the START_STI

[android-developers] android service

2011-07-15 Thread yanamala siddaiah
If service stopped by user or any other situation . I want to start the service again . or user dont want stop the service delete the option to user to stop the service for our app. is there any flags .. -- You received this message because you are subscribed to the Google Groups "Android De

Re: [android-developers] Android:: Service::OnDestroy being called late..

2010-12-19 Thread Mark Murphy
On Mon, Dec 20, 2010 at 1:15 AM, JC wrote: > Hello all, > > I have service with thread, From activity I am calling start > service(from Activity::onDestroy()) and stop service > (activity::onCreate()). > > StopService() returned instantly but my Service::OnDestroy called > after so many time, pret

[android-developers] Android:: Service::OnDestroy being called late..

2010-12-19 Thread JC
Hello all, I have service with thread, From activity I am calling start service(from Activity::onDestroy()) and stop service (activity::onCreate()). StopService() returned instantly but my Service::OnDestroy called after so many time, pretty late, Why? How to make Service::OnDestroy called immedi

RE: [android-developers] android Service

2010-10-25 Thread Tommy
Subject: Re: [android-developers] android Service You might want to get a book because they tend to do a good job of explaining the initial process and fundamentals a bit more clearly. Other than that, I don't understand what you mean by 'how different lines are used?' The best way to l

RE: [android-developers] android Service

2010-10-25 Thread Tommy
Subject: Re: [android-developers] android Service You might want to get a book because they tend to do a good job of explaining the initial process and fundamentals a bit more clearly. Other than that, I don't understand what you mean by 'how different lines are used?' The best way to l

Re: [android-developers] android Service

2010-10-25 Thread Miguel Morales
You might want to get a book because they tend to do a good job of explaining the initial process and fundamentals a bit more clearly. Other than that, I don't understand what you mean by 'how different lines are used?' The best way to learn is just to read and practice, oh and practice. On Sat,

[android-developers] android Service

2010-10-25 Thread Beowulf
I am going through this guide: http://developer.android.com/guide/topics/fundamentals.html and I don't understand how different lines are used. Is there a tutorial based on the commands used in the doc? -- You received this message because you are subscribed to the Google Groups "Android Develo

Re: [android-developers] Android Service Distribution

2010-10-01 Thread Mark Murphy
See http://stackoverflow.com/questions/3828331/android-service-distribution/3830890#3830890 On Wed, Sep 29, 2010 at 11:26 PM, Dalvin wrote: > Hi Everybody > > My question about android service is about its distribution. My > requirement is that suppose i have developed an Android Service which >

[android-developers] Android Service Distribution

2010-10-01 Thread Dalvin
Hi Everybody My question about android service is about its distribution. My requirement is that suppose i have developed an Android Service which provides some kind of news updates. Any application can use it's API's to get news updates. Now my question is how will i distribute my Android Service

Re: [android-developers] Android Service - Cannot access location

2010-09-24 Thread TreKing
On Fri, Sep 24, 2010 at 9:13 AM, Varun wrote: > I am currently unable to do so What are you trying so far? What errors are you getting? What is not happening that you expect should be? - TreKing

[android-developers] Android Service - Cannot access location

2010-09-24 Thread Varun
Hello Experts, I am new to Android ... so just exploring ... I created an application that starts a service. This service is expected to run in background. This service has to access the Location. I am currently unable to do so ... I have given permission to my Manifest file .. I think the issue

Re: [android-developers] android service

2010-08-11 Thread vineeshkc
use intent to connect the activity -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googleg

[android-developers] android service

2010-08-11 Thread neil
I have a question regarding on accessing a service on a second activity executed from main activity. do i have to create another service connection as i have created on the main activity. thanks for replies... -- You received this message because you are subscribed to the Google Groups "Android D

[android-developers] android service instance problem

2009-12-17 Thread veradis
Hi, I have a service that ll be started at boot time. The service establishes connection with messageBroker using rmtp(mqtt client). I want to call a function in services from an activity to do some data transfer, but the connection instance initialized in service is not available on activity. So

[android-developers] Android Service Problem

2009-07-13 Thread Lenny
I'm new to using Services in Android I followed a tutorial, but the service doesn't seem to be starting. the problem I'm having is that the onServiceConnected method never fires so mpInterface never gets assigned. However, I can't seem to figure out why I've looked at several examples and they al

[android-developers] Android service always alive..

2009-06-30 Thread M.Manjunatha
Hi, How do I make my service always alive?? If my service gets killed because of an exception or if the VM kills my service on low memory, How do I make sure that my service is always running? --~--~-~--~~~---~--~~ You received this message because you are subscrib

[android-developers] Android service always alive..

2009-06-30 Thread M.Manjunatha
Hi, How do I make my service always alive?? If my service gets killed because of an exception or if the VM kills my service on low memory, How do I make sure that my service is always running? --~--~-~--~~~---~--~~ You received this message because you are subscrib

[android-developers] android service utilizing custom usb device

2009-04-28 Thread Ke
Hi Everyone, I am looking to implement an Android service that will serve as the "driver/hardware access" for a device that will connect to the usb host port. Is there a good framework or example showing how I can make a service interact with this device? Its not a standard device that Android al

[android-developers] Android service.

2009-04-23 Thread Manjunatha M
Hi Folks, Some please help on this. *Class MyService:* public class MyService extends Service { @Override public void onCreate() { super.onCreate(); Log.d(TAG, "Creating MyFavesHappening service"); } @Override public void onDestroy() { super.onDestroy();

[android-developers] android service example

2008-04-15 Thread scimitar
Hi, is there an example of an android service in the examples provided. Specifically I'm looking for a service( application component that runs in the background) that does network upload/download, while the user is busy doing some other stuff. thanks, --~--~-~--~~~-