Android :: How Does Getting Application Reference From A Service Work
Jul 28, 2010
I have a local Service running together with my application. I also have a class derrived from Application class.
When the local service is created it gets and uses the Application instance using getApplication.
Can the app itself be terminated while my service is still running and what happens if so? Would getApplication return null?
View 1 Replies
Jun 24, 2009
I have a service running in the background.I have a background thread that gets a reference to the service from the application's main activity. But when the background thread calls a method in the service to display a toast, I get the "Looper not initialized exception".Why,if I have a valid, bound reference to a Service, does this still happen?
View 4 Replies
View Related
Oct 30, 2010
So say there's an app running (any app). I'd like to be able to get it's Activity from within a Service that will be triggered to run from a android.intent.action.SEARCH_LONG_PRESS.
Is this possible?
View 1 Replies
View Related
Oct 18, 2010
Greetings. Years after reading the GTD book and trying all sorts of apps and methods, I still can't find myself settling for a todo system that's simple and effective using my phone. I'm always looking for threads and articles on task managers, but most are only people spouting "I use generic todo app xyz and it rules!" Never how they practically use it in their daily lives. So, I'm asking all of you: what apps do you use for tasks and maybe even reference systems, and HOW. This might be useful for all procrastrinating couchpotatoes like me. Right now I'm using something very simple: Mobisle Notes, with 2 lists: a sorted "Inbox" which is basically just all tasks that come to mind (Sorted as in, priority first, then due date, then projects, then random stuff) And a today list with 5 actions I want to do today. Far from perfect, and Mobisle doesn't handle tags and moving of tasks from list to list a hassle, which keeps me on the lookout.
View 6 Replies
View Related
Dec 16, 2009
So I have an app on the market with >10k active users. I have recieved maybe 50 complaints from Droid-user that the program crashes arbitrarily. I have not been able to replicate the error with my own droid, but I got one of the to send me this crash log. However, it does not reference the application. Do you have any suggestions on how to track down this error? I stand baffled.
11-25 16:18:03.730 D/AndroidRuntime( 2964): Shutting down VM 11-25 16:18:03.730 W/dalvikvm( 2964): threadid=3: thread exiting with uncaught exception (group=0x4001b180) 11-25 16:18:03.730 E/AndroidRuntime( 2964): Uncaught handler: thread main exiting due to uncaught exception 11-25 16:18:03.761 E/AndroidRuntime( 2964): java.lang. Code...
View 3 Replies
View Related
Sep 5, 2010
My app which was working on 2.1 and earlier version fails to run properly in 2.2. It relies on the location but I do not get any error message. However under DDMS /logCat, I see a message saying: Error message while getting the location address: Reason: this service is not available. This is coming more as an information message rather than an exception or error. The process that is printing it out is System.out. Note that I did everything possible ( I can think of) to upgrade the app to run in android 2.2. The API version was changed to 8.
The manifest file contains all the following:-
<uses-library android:name=*"com.google.android.maps"*/>
</application> <uses-sdk android:minSdkVersion=*"8"* />
<uses-permission android:name=*"android.permission.INTERNET"*/>
<uses-permission android:name=*"android.permission.ACCESS_FINE_LOCATION"* />
<uses-permission android:name=*"android.permission.ACCESS_COARSE_LOCATION"* />
View 5 Replies
View Related
Jun 30, 2010
I have an Android Service that is started by my application and does some things in a threadPool using Executors.newCachedThreadPool()
Once it has finished doing it's work I would like the service to stopSelf(), how can I get the service to determine when it is no longer needed (ie, there are no more Threads executing) so that it can shut itself down automatically?
View 1 Replies
View Related
Dec 21, 2009
This is the scenario:
1 user has a main activity used for ii.
2 program needs to communicate with peers and keep connection and wait for messages
3 when a message comes it is shown in the main activity. so the question is should I use a service for the communication and what type of service? and also should I use Aspects in the service in order to keep my ii responsive and why?
View 1 Replies
View Related
Jun 19, 2010
I've never quite understood the connection. If you have a Google Voice phone number set to forward those calls to your cell phone, do you need to have the app running on your cell phone for this to work or can it be manually turned off?
I would imagine that the call forwarding would work regardless, but what about the app keeping track of those calls in a call list, or keeping track of the voicemails, etc.? Can you just open the app manually and all of this information will be there, or does it need to be running at all times in order to record the phone calls/voicemail as they come in?
View 7 Replies
View Related
Dec 21, 2009
I was interested in developing a clock widget for the homescreen and upon reading Home Screen Widgets tutorial, I wondered if there is a pre-existing Service I could reference for updating the current time rather than re-inventing the wheel?I download the Retro Clock application on my android phone and noticed that when I click it, it pops up the Alarm Clock settings, but with the default Google Analog Clock widget, upon click does nothing.Is that because the Retro Clock widget implements the Alarm Clock service? If so, how can I go about referencing that service? Or do I have this all wrong and misunderstood?
View 4 Replies
View Related
Jul 9, 2010
I have an application that creates a notification with sound when a specific text comes in. To do this, I detect the current ringerMode, change the ringerMode to normal, play the sound, and then quickly return the ringer back to its original setting.
View 1 Replies
View Related
Jul 28, 2010
I was demo'ing a DroidX the other day and was blown away by the google map and voice ability. This will lead me to buying one of the android devices. Among other features. Query: Can GPS enabled apps, work on the phone, without cell serivce. IE can you pre-load say all the US map and POI info into the phone so it can be used as a standalone GPS in the middle of no where.
View 3 Replies
View Related
Jun 14, 2010
I bought an evo last friday (june 4th) and received it Monday June 7th, and now a week later i would like to return it because of the light leakage problem im having at the bottom of my screen. my question is, i came from t-mobile, and ported my number and with that had to pay 100$ ETF, what would happen? as in, if i cancel my service, would i go back to tmobile with the same number and the ETF would be revoked? or what would happen exactly?
View 3 Replies
View Related
Aug 8, 2010
So when I bought this phone I was told GPS will work without service. I'm in Asia right now for 9 months and it doesn't. From my research, I think the problem is that agps does a call to verify that local service is available before it will kick the regular gps in. Forgive my crude tech speak, but I imagine there must be some sort of workaround. Is there any way to fake the phone into thinking it has a sprint service signal or is there a way to turn off agps? There must be some sort of hack I can do. I hope someone can give me something, this phone is an expensive brick here. And no, turning on airplane mode enabling wifi and gps location services don't help. I've tried every possible combination, I can't use the GPS without the phone verifying the sprint network."you need a network connection to get the api call to work. Once its running you don't need the network for it to keep running. A guy in the Droid forum told me that.
He says that if you turn your phone on in another country the api would not get some sort of response (license) from the network and the gps would not work"
View 6 Replies
View Related
May 8, 2010
My understanding is that you can use GV's voicemail service in lieu of the carrier's voicemail, even with a non-GV phone number. I have selected the option in GV to use GV as the main voicemail for both my VZW and GV phone numbers. However, when someone calls my VZW number, they receive a "your call cannot be completed" recording and the call ends. Does anyone know how I can correct this? Is visual voicemail behind the issue?
View 9 Replies
View Related
Aug 16, 2010
I've read several threads and still am not 100% clear. At home and at work, I have FULL 3G service (still no 4G in my area). If I turn on my WiFi at both places, will it use less battery? Particularly at work when get 50-100 emails during the day?
View 5 Replies
View Related
Sep 9, 2009
I want the application to run in background. This application should run continuously and should never get killed. Will running application as Service solve this issue? The application should get started automatically on start up. I don't need any GUI for this application. The main issue is Service getting Killed. Does service get killed ? and in what conditions will that happen?
View 4 Replies
View Related
Aug 25, 2009
i have some problem to communicate with a service from an Android application.The service is in a first package "package com.myService" and the application in another on "package com.myApplication".My service work and start well but my next step is to add an AIDL interface to external applications.I have tried to follow the recomandation described here : http://developer.android.com/guide/developing/tools/aidl.html, but i have still the following error (given in the log service):W/ActivityManager( 568): Unable to start service Intent { action=com.MyApplication.IBootstrapService }: not found
View 2 Replies
View Related
Mar 24, 2009
I'm writing an app that needs one or more applications/services that are distributed with their own seperate apk file. I'm writing a user-app that allows the user to upload pics using a service. The service can be used by multiple user-apps, not just mine. I'd like to have the service being installed in its own apk, instead of bundling it with each user-app. Has anyone had experience with this scenario? What is the best scenario i should implement so that the user downloads the service that the user-app needs? Can be this be done automatically (that would be best)? If not, in your opinion, what would be the most user-friendly way for doing so?
View 4 Replies
View Related
Apr 26, 2010
If an application begins a Service via bindService or startService, will this Service object ever run from a process different from that of the application? I ask because many Android example projects begin a service and communicate to them using IPC which seems wholly unnecessary considering that, according to the Android Service documentation, "... services, like other application objects, run in the main thread of their hosting process." IPC, AIDL, and the IBinder interface only seem useful if connecting to a Service started by an application other than your own. Is this a correct or fair understanding?
View 1 Replies
View Related
Sep 1, 2009
I want create a service and that other application use this service. I want that the other application is in a different project that the service.
It is possible? If is possible somebody can show me a sample code.
View 6 Replies
View Related
Jul 7, 2010
Is it possible implement an Android application as a web service? On the official site I've read:
Note: If you want to develop a server-side application, we recommend that you implement your application as a servlet running in a servlet engine like Tomcat or full-blown JSEE container like Geronimo. If you prefer to implement a server-side application based on our HttpService, we'll assume that you know what you're doing and that you don't need help in figuring out which interceptors need to be configured.
How can I implement this? Apache TOMCAT can run on Android?
View 2 Replies
View Related
Aug 6, 2010
I have a C/S solution, which take Android as its client and PHP as its server.
I have my own account system.
I'm wondering whether I could provide my user to login my system with Google Account?
I saw there are web-solution for this, like this stackoverflow.com could use Google Account to directly login.
Is there a solution for C/S system?
View 1 Replies
View Related
Nov 9, 2010
I have a Sony Ericsson Xperia X10 and tried to use the Update Service to get the latest firmware for my phone, but after the new phone software was downloaded and started to install onto my phone it only got to a few millimeters of completing before it threw out an error saying that that it couldn't install the new software! Now my phone doesn't want to work anymore! Every time I start up the phone it just shows the x10 picture with an exclamation mark in a yellow triangle! What should I do? I need my phone working to complete daily tasks!
View 8 Replies
View Related
Dec 9, 2009
I am on the cusp of leaving my BB Curve and buying either an HTC Hero or the Samsung Moment. Both have their pluses and negatives.However, something I hear in both forums is to save battery turn off GPS. If you do that how does "Emergency Location" and/or "E911" service work? Aren't those dependent on GPS?
View 3 Replies
View Related
May 1, 2010
I have successfully gotten JmDNS working on Android 2.1 testing on a Motorola Droid by using MulticastLock, but recently got an HTC Incredible as second test device, and JmDNS discovery doesn't work at all.I should mention that broadcasting a service still works and everything appears to run normally, but serviceAdded never gets called. Does anyone have thoughts on why this might be?
View 1 Replies
View Related
Jul 13, 2009
I have a service receiving and sending data to a server in separate threads each. The service lifecycle methods look like this:..................
View 3 Replies
View Related
Jun 28, 2009
In order to share data between one of my own Android service and an application i am looking for the best way to do this. I have seen the shared memory drivers inside the GNU Linux kernel, but no Java api. Maybe the specific Google IPC Blinder cad be used for my need ?
View 10 Replies
View Related
Jul 1, 2010
Is there any fundamental difference in binding a service to an android.app.Activity vs binding it to an android.app.Application. I want to bind the service to an Application because I want to keep some global state/data in the Application instead of duplicating it in all my activities.
View 1 Replies
View Related
Apr 30, 2010
I defined a remote service over a AIDL file. Now i want to access this service in a different application. But how can I do that? The AIDL file is not accessible in my second application, and if i just copy the AIDL file, then the service can't be found.
View 1 Replies
View Related