Android :: External Bluetooth Polling
Nov 9, 2010
I'm trying to pulse my bluetooth dongle, to see if it is range. Every second my Android sends a char to the dongle, which then responds with a char. If there is no response, or the char is wrong, then it should conclude that there is no connection. I'm able to send from Android to dongle (attached to MCU), and the dongle is able to respond. All I need is a simple way to read each char (when received) to compare it. I'm trying to do it in a seperate thread to make it run in its own loop.
Here is my code so far, but I think I might be off, so if you could give me a pointer!
void readFromInputStream()
{
Thread readFromInputStream = new Thread()
{
public void run()...............................
View 1 Replies
Nov 16, 2010
My device is an Archos 7 home tablet based on Android 1.5. I have a microusb host adapter.If I connect a bluetooth dongle, it turns on but Android does not detect any bluetooth device. I have not bluetooth options.I think that Android has not bluetooth support.Can I install bluetooth driver on my tablet?
View 3 Replies
View Related
Jul 2, 2010
Has anyone tried using an external GPS receiver connected by bluetooth for navigation? Was thinking it might be a way of reducing the power drain on the phone (so it can charge faster if nothing else).
View 6 Replies
View Related
Aug 4, 2010
Has anyone here tried using an external bluetooth GPS receiver with the SGS?I'd love a fix for the GPS issues to come along, but the phone is otherwise so brilliant that I'd be up for getting an external unit for using it when driving (or even for using with My Tracks etc.) if the thing never gets sorted.Any reason why one wouldn't work?
View 7 Replies
View Related
Feb 20, 2013
Is there a way or an app to let me use my bluetooth GPS receiver without enable the Mock location? I want to play ingress but Galaxy S' gps sucks and try to use an external one.....
View 1 Replies
View Related
Jan 11, 2010
So it looks like mobile phones these days are capable of providing gps data ;) I'm building a django app with a mobile edition that I want to be location aware. My question is, how does one access GPS data? Is there a standard, or do you have to custom code for android/iphone/other. Ideally, I'd imagine it being provided in the HTTP request in the same way you get information such as the IP Address and User Agent.
View 4 Replies
View Related
Aug 4, 2010
I intend to develop an app on android that can help people selecting the best pizza/ice cream/hot dog in a certain town based on their ratings through a poll. Now what resources do I need to achieve the desired solution? Do I need a web service or website/device connectivity for the desired poll? I would like to start off with a simple application that just shows polls or ratings for a certain item.
View 2 Replies
View Related
Jul 12, 2010
I am required to work on an application which is be deployed on devices running Android 1.5. The application is supposed to maintain a connection with a server and regularly poll it for new data. The server will notify the client of new data following which the client will connect to the server and download the data.I know that ideally a push based approach will be more conducive here given that we are to run this on a mobile platform. Also, from Android2.2 there is going to be support for C2DM(Cloud to Cloud device Messaging) but as already mentioned this application is for devices running Android1.5.Implementation: I was thinking of using AlarmManager which would Broadcast Intents periodically(poll interval), The Broadcast receiver will then try to connect to the remote server and make data changed check. If the server has an update, the thread will connect to the remote server and download the data from the server.
Problem and Issues: 1. Is this the right way to approach the problem? 2. Is AlarmManager reliable? Would it remember Alarms after a device boot? (I think it does) 3. How do I ensure that battery usage is kept at minimum.(I have heard something about using "keep-alive" to sustain the session for longer time..what is this legend?) 4. What are other things that I need to consider? I am sure I must be missing lots of things here.
View 8 Replies
View Related
Jul 11, 2010
Is it possible to do polling in Android? For example, I want my application to monitor a directory continuously. If there is for example a new folder created in that directory I want to log it down. Is it possible to acheive this by polling? Or is there any other way to do this?
View 7 Replies
View Related
Oct 5, 2010
I have a Service that uses the LocationListener, and it will be running from boot, indefinitely. My question is, how often is too often to listen for location updates? Is 5 minutes a battery killer? What about 1?
View 1 Replies
View Related
Aug 25, 2010
what I need to do is auto-register device if not already done and then start polling messages with the credentials I received through this registration. Now, after I read quite a bit about services, threads, asynctasks and the AlarmManager I'm totally confused about how to handle this. :-s So, there are my two main tasks. What would you recommend as a not-too-silly approach
1.) Registration
I'm currently spawning a service from my UI thread if there are no credentials saved in the DB. Inside this service I start an asynctask that POSTs my request to the server and receives the credentials for the new device. stopSelf ends the service.....................
View 1 Replies
View Related
Aug 31, 2010
I working on the app where I get the data from the server using rest call and add it to the view. I get all the initial data correctly. I use AsyncTask for doing it. Now I want to periodically (say 2 mins) fetch the new data from the server and add it to view.Periodically fetching data (polling) from the server in Android.
View 2 Replies
View Related
Sep 15, 2010
I went into Weather Bug (free version) to check the weather and accidentally hit the menu button. Decide to check preferences for the heck of it and I see "Enable Updates' set to yes and Update Interval set to every 1 hour. What?? I know it's probably not a huge drain - but I had no idea that it was checking on a regular basis (and why I don't know). So please check your apps to make sure they are not updating data auotmatically! After that I went into every app I had to make sure I was either signed out or or set updates to manual.
View 3 Replies
View Related
Jun 11, 2010
Ever since I upgraded to 2.1 my email accounts have not been polling like they are set to. In some cases, it won't poll until I manually check it. I've tried 2 factory resets, but no luck. They are set to 5 min.
View 2 Replies
View Related
Jul 27, 2010
- Does the standard Gmail application that comes with the phone (not the email app) utilize polling on a set schedule, or is it set to automatically push messages to the phone as soon as they hit the Gmail server? I have noticed that what it does seems to correspond to my Google Account Settings (and what I have checked). Specifically, when I check off the "Sync Gmail" feature, I seem to get my Gmail emails on my phone in real time. Does this mean that checking this option allows Gmail to "push" emails to my phone, or is it simply polling at very frequent intervals?
- Which, in your experience, uses less battery: setting the phone to poll for e-mails every 30-60 minutes, or simply having the server "push" the e-mails straight to the phone? Also, does "pushing" e-mails work when Syncing is turned off (via the Power Control widget)
View 4 Replies
View Related
Dec 11, 2009
Is there a way to change how often the device updates my email? I had a sprint Hero and switched to the moment (very good decision), and I changed it on the Hero to improve battery life.
View 2 Replies
View Related
Dec 19, 2009
for those of you running moxier mail on exchange with a polling mode, have you ever noticed it doesn't successfully always update? I am seeing that at times i will set it to a 1 hour polling mode for example but it won't bring down new emails. If i notice on the moxier settings page the last synch'd time is further back than the polling interval i'll hit 'synch now' and it ALWAYS brings down any new messages.
I contacted moxier and they seem to think its an issue with my server. I should also say my IT department doesn't support moxier/android explicitly but there is no reason it shouldn't work as designed they say. I have dug into the moxier logs and it seems that everytime i see a failure the following similar entries appear to be in the logs:.............
View 3 Replies
View Related
Nov 27, 2009
I am really excited to share with you guys that I have solved my horrible battery life problem, at least to a satisfactory degree. Without further ado, I present to you How I Doubled My Android Phone's (HTC Hero) Battery Life or Just How Much Email Polling Affects Your Battery
View 43 Replies
View Related
Mar 13, 2010
I was cleaning all the crap off my phone I don't use anymore and I believe I accidently removed the bluetooth software that allows it to connect to stereo bluetooth headsets. I can control the player with the headset, I can make phone calls from it, but when I try to play music there is no sound.
I was trying to reset the phone using RUU, but it reboots the phone and then says it cannot reconnect after that and the software shuts down. I can still sync with outlook, so my driver is not the issue. I am out of ideas.
Is there anyway possible to reinstall just the bluetooth portion of the rom?
View 3 Replies
View Related
Sep 17, 2010
Is there any way to turn the bluetooth option on the caller id screen to automatically toggle the bluetooth function on vs rushing to home screen toggle?
I'm often on the road at work or just have my hands full and it is such a drain running bt all day. Is there anything close to what I'm asking available or possible?
View 4 Replies
View Related
Nov 19, 2010
This is my first android phone and im having some problems with the bluetooth. Im trying to send my contacts over bluetooth from my old sony ericsson but it doesnt seem to be going smoothly, i would say its all down to me! Basically i have got the bluetooth on for both phones, the desire is set to be discoverable and i try to send the contacts via bluetooth on the SE. I get the whole passcode and accept the file which i have done, but then it says again about accepting the file. Ive tried it a few times and i have 3 bluetooth icons at the top of my screen now which i imagine are for transferring files which need accepting. Is there anywhere i can to accept them or close them down?
View 1 Replies
View Related
Feb 8, 2010
Is it possible to have an external strings.xml or something like that?I'd like to translate my application into several different languages, but the apk would become to large if I include all languages.I would instead like to be able to load languages on demand (from an external URL) and store them on the SD card.Is that possible in any way? How could I in that case use the new language?
View 5 Replies
View Related
Sep 10, 2009
I am hoping to start learning how to make apps this winter, and am wondering if this is even possible.Could an app be developed that would sense the flash of an external flash device, and take a picture?
View 3 Replies
View Related
Nov 24, 2009
Has anyone put any thought into doing an external keyboard? It sure would be nice to have a real keyboard sometimes.
View 2 Replies
View Related
Sep 24, 2009
I need to use my external font .ttf file for button's text.can anybody help?
View 4 Replies
View Related
Apr 30, 2010
Is there a way to access an external mass storage device from the USB port of an Android phone? I have a project I'm working on, but I'm stuck on that part.The goal is to plug my DSLR into the phone's USB (I made a specific cable to do just that) and access the pictures from the phone, then with my phone running an FTP server app broadcasting over WiFi, access the pictures on my camera from my computer.I'm stuck on accessing the files on my camera from Android. Is this even possible?
View 8 Replies
View Related
Jan 6, 2010
I own a 2009 Toyota Highlander with Bluetooth. Is the Droid Bluetooth compatibile with the car's Bluetooth?
View 5 Replies
View Related
Jun 4, 2010
Are there Android API's to access data from an external USB device, such as a hard drive? I need to write an app to interface with an external usb device, is this possible? What system calls are used?
View 2 Replies
View Related
Dec 29, 2009
I would like to launch an app the user selects from within my application. However, I'm not sure how I'd go about doing this. I've tried this:
Intent intent = new Intent();
intent.setAction(Contacts.Intents.SHOW_OR_CREATE_CONTACT);
startActivity(intent);
But this seems to throw an error and force close my application. I also tried adding:
<action android:name="Contacts.Intents.SHOW_OR_CREATE_CONTACT"/>
in the AndroidManifest file, but to no avail.
A look at Logcat shows that it's an "IOexception - no such file or directory". A couple of questions arise from this. I read through the Android docs and noticed that the Contact.Intents class is deprecated. However, it's successor, ContactContracts is aimed at API level 5 whereas I'm targeting API level 3. Could this be the problem? Also, I've hardcoded this application into the code. Is there a way to retrieve the intents of any application the user selects so that they can be launched?
View 4 Replies
View Related
Jan 13, 2010
I need to create an Android library which I can include as a jar in any Android application. I use NetBeans 6.8, the nbandroid plugin, and the Android SDK.The steps I took so far are:
1) Create the library project, with android.jar included to have access to Android classes (the library uses android.util.Log and other Android classes).
2) Compile the library as a jar.
3) Add the library's jar to the Android application (right-click on Libraries under the project node and add the jar).
4) Add <uses-library> to the Android manifest. (erroneous and unnecessary)
Step 3 at least allows me to reference the library's classes in the application's source code, but the classes don't seem to actually be included at compile time.Do I have to add the library to the build path somewhere else? Am I missing something?
View 3 Replies
View Related