Android :: Wi-Fi Before Using Phone Service
Jan 31, 2010Is there an app that you can have on that will search for a usable wifi connection to use before using the phone data service?
View 3 RepliesIs there an app that you can have on that will search for a usable wifi connection to use before using the phone data service?
View 3 Repliesi have a problem i live on top of a hill and its unfortunately one of the few places i have ever been that i dont get good cell phone service. i was wondering it there is an app that uses your wifi for you cell phone service or to use wifi to increase my cell phone service
View 5 Replies View RelatedMy 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 ? 1. Will i simply put this in Android market and if any android application developer wants to use its API he will download this on the phone. 2. What if at run time the application try to use my Service and Service is not installed on phone, Will Android system try to download that service from android market?
View 2 Replies View RelatedI 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 RelatedI am getting following message when i try to launch service.Also is there any specific path on file system where we need to place the .apk file which contains my serivce component only.
View 2 Replies View RelatedI am trying to run the sample soft keyboard included in the SDK. I am using the debugger, and the literature says that to use a breakpoint while debugging a SERVICE, I need to include:
android.os.Debug.waitForDebugger();
So here is the portion of the code I modified:
CODE:...........
I have put a couple of breakpoints, at the statements indicated by the comments.
This is what happens: the debugger first stops at the breakpoint1, for a few seconds. But then the service restarts. For the life of me I can't figure out what makes the service to restart.
Just recieved my dev phone today in the US. I have am AT&T sim card, but with no actual service with the card. I was wondering if their is a way to set up the apn or bypass it to use the phones built in wifi. Just wanna start testing my code and can't seem to get it working without having an actual service provided by AT&T.
Basic question is: Can I use the Dev phone with a sim card, implying that the sim card has no actual service.
I have a service that spawns a thread which runs a task every 3 seconds.My service runs fine when my phone is on, but when my phone is on standby, the service is often not responding.Any clues as to how I can ensure my service is running while on standby?
View 1 Replies View RelatedI've written a test service to understand how android implements a service. I believe I understand the difference between Context.startService and Context.bindService. If I am not mistaken, Context.startService will tell android to keep this service running, even after the Activity that started it has ended.
While testing the service, I have come across something interesting.
My problem is that the service appears to sleep or pause for a few hours, run a short time, and then sleep for a few more hours, then run a short time, etc when the phone has become inactive. In other words, when I am doing things on the phone the service is doing what is is supposed to. But after I have finished doing things on the phone and the screen goes blank the service appears to sleep or pause. I don't know if I have implemented the service wrong or if this is how Android services work.
The test service I have written simply sets a postDelayed handler to increment++ a variable in the Runnable every minute, and then write the value of that variable and a timestamp to a file (log.txt) on the sd card. This how I know that the service appears to sleep. Because there are gaps in the timestamp that correspond to when the phone was inactive. If the service were truly active the whole time, there should be a line item in the log.txt file every minute.
From the log.txt file below you can see that over an eleven hour period there are only 36 line items with time stamps ranging from 10:27 PM through 9:23 AM. If the service was running and active the whole time there should be over 600 lines in the text file. The phone was on AC power the whole time so Android should not have tried to stop services due to power issues. The phone was not used or touched from about midnight to 9 the next morning, so there should not have been a low resource clean up.
I have spent several days looking for an answer and everything I can find seems to validate that when a service is started and not bound, it will stay running (http://code.google.com/android/reference/android/ app/Service.html). However, it appears it does not. Unless I have completely missed the ball on this.
I have included the service.java and activity.java as well as the log file.
Here is a sample log.txt
CODE:...............
Here is the service java file:
Java:
CODE:....................
Anyone know how my service can check if the phone is currently in standby mode? And if I can trigger an event within my service when the phone comes out of standby mode...
View 3 Replies View RelatedI'm trying to register the phone as a HID device through bluetooth. So far I did the following - Created a BluetoothServerSocket with bluetoothAdapter.listenUsingRfcommWithServiceRecord("Any name", "00001124-0000-1000-8000-00805f9b34fb"). The UUID is the standard one for HID devices. - Paired the phone with a Windows PC - The phone is recognized as "Bluetooth HID device, but I get the error "Device driver software was not successfully installed"
Does anyone know what steps can be taken next to make it work? I think I should register a SDP service record, but I'm not sure if Android Bluetooth API has support for this.
My service works exactly the way i want as long as i use start and stop and communicate using intents. However my activity needs to change the state of my service as well as retrieving state information.So i thought it would be nice to broadcast some kind of state_changed event from my service and use a binder interface to pull information from the service or change the services state based on user input.This works fine too. The only problem is that my service gets killed when i unbind it just as the documentation says.Is there any way to keep the service alive but still get an interface to control it directly. My activity offers the user a way to stop the service and the service kills itself anyway after it's work is done but i don't want the service to stop every time the activity is destroyed.
View 3 Replies View RelatedDoes anyone know if it possible to see the Google app store without having cell phone service on the Android (like from my ADP with no SIM card)?I can see bits of it at http://market.android.com, but can you see all of it without the Android on a cell phone account?
View 3 Replies View RelatedPlease tell me the way to make any service running automatically when the phone is turned on.
View 4 Replies View RelatedI have developed an android service. Any android app can use it's API's to get some kind of news updates from this service. I want to distribute this service so that any android app on the phone can use this service. My questions here are :When some android application try to use its API on the phone and suppose that service is not available on the phone then what will happen ?How will android application developer will make sure that the service is available on the phone?Does application developer has to bundle service with his application ? If yes then wont be there multiple instances of same service on phone if multiple application contains same service on the phone?
View 1 Replies View RelatedOnce we call the startService() method, can we keep the service alive until its explicitly stopped by the user? I want my service to stay alive until the phone is switched off. How can i do this? The idea is that when I receive an incoming call, I want to start recording and once the status changes to idle, I want to stop the recording. I am doing this inside my service. It does work sometimes and sometimes it doesn't. How can I implement such a thing in a service? Can someone help me with this?
View 2 Replies View RelatedI have an application which starts a service. The service has a timer and pops a notification every 30 seconds. I notice the following behavior: if the screen is on the notifications are shown ok (even if the app is in background). if the screen is off (by power button or by itself) the notifications won't show. if the screen is off but I have the debugging running the notifications appear. How can I make the service run with the screen off. (The actual app only checks if a notification should be checked every 30 seconds, but for testing purposes, the above scenario is ok)
View 2 Replies View RelatedI have multiple activities and one service.. In MainActivity I successfully connect to service (using a class what implements ServiceConnection + bindService() + startService()) but when i try to apply same method in other activity i see in LogCat a error... It Is possible to connect to service in an other way: something like to make static my CounterServiceConnection object in MainActivity and use it in the second one?
View 2 Replies View RelatedI have built an application that listen to call state changes, and I want to notify a service when the call_state became IDLE.All the components I have are functional, I just need to notify (not start) a service for this.What's the correct practice, maybe using AIDL? Because, in a PhoneStateListener, I can't bind to a service. Do I have to start an activity for that?
View 2 Replies View RelatedI am writing a widget on Android 1.6 that shows the minutes that a person has used on the current month.
The way I have it setup is by having a service that listens to the state of the phone and when the phone is picked up, it starts the timer and when the person hangs up, ends a timer. I would like to send this variable(long duration) over to my appWidgetProvider so I could update the edit text on it.
After upgrading my application I would like the service to restart if it was running before. Is there any way to do this? I didn't see any Broadcast Intents that I could register for in the manifest.
View 1 Replies View RelatedThe code I am trying to implement includes a service and an application. When the application is first launched, it starts the service using the
startService(svc_name) call. Here svc name is an intent pointing to the class that runs the service.
I want to share a resource(file/socket connection) between the service and the application. For example one writes to a file and another reads from it. I am unable to get proper sync between the service and app. Could you please let me know how this can be achieved?
Is there a good sample application for creating android services that run in the background?
View 2 Replies View RelatedI want to write a service in my application. I hope the service can automaticaly access to internet and update database after phone boots up every time. The whole process is background and no any UI for user. Is it possible? there is any demo ?
View 2 Replies View RelatedI'm developing an automatic vulnerability scanner/exploiter for android. I'm adding the cool feature of using the metasploit framework from our android phones.
I can start the MsfRpcd ( the metasploit daemon ) from a su shell an make it bind to the 127.0.0.1 address.
I can connect to the server using busybox netcat ( no Java though here ).
I can't connect to 127.0.0.1 from the android app! i got ECONNREFUSED.
After a bit of google i understood that JavaVM have a separate network and it filter out my connection to localhost/127.0.0.1.
how can i connect to a service bind to 127.0.0.1 on my phone from an android app?
I gave a quick look at iptables -L output, maybe i can make some hack there, but probably i will break the JavaVM network.
Binding on wifi ip is not an answer.
Can one buy a used device with no phone service and use it for testing apps?Second question: can wifi be used on such a phone, to connect to the internet?
View 2 Replies View RelatedBased on some quick tests, I've noticed the following: if you kill the Google Messaging Service, Chrome to Phone (a.k.a. Send to Phone) will stop working.
This seems rather obvious, but I had been in the habit of killing the Google Talk Service (GTalk) prior to Froyo. After Froyo, it looks like the service was renamed/replaced with Google Messaging Service.
I suspect that killing the Google Messaging Service could affect other Google services too.
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 RelatedCan anybody tell about the Broadcast Receiver in android to make make my service to run when the the phone just finishes the booting.
View 5 Replies View RelatedI have a BroadcastReceiver that listens for the BOOT_COMPLETED, that part works I know because I disabled my phone listener and displayed a Toast within. That BroadcastReceiver is supposed to start a service, that also works. I run into Force Close issues when my service attempts to tell my TelephonyManager to listen. Any one have any ideas? Here is my code StartSeviceAtStartUp.java import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent;
View 3 Replies View Related