Android :: Create Polling App?
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
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
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
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
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
Jul 17, 2009
How to create an HTTP request object of POST type in android? Which class need to be extend or what method need to implement? How to establish connection to a server? Actually i want to connect to a microsoft exchange server, and then i have to send a request to it using HTTP.
View 8 Replies
View Related
Oct 9, 2010
Is there an api to programmatically get the .apk create date/time?
View 2 Replies
View Related
Sep 1, 2010
How to open a similar popup like the one that appears when you click on a contact icon in contacts? Is Dialog suitable for that? Or maybe PopupWindow?
View 2 Replies
View Related
Oct 12, 2010
In android, is it possible that I would create my own Map figure, and then use this Map with the gps location from Google Map API. Example, I draw a map for my own house, then apply Google Map API to be able to make the location of each point in the map
View 1 Replies
View Related
Oct 11, 2010
I create a TabHost1 with 3 tabs: tab1, tab2, tab3. When choose tab2, I want the TabHost2 change into another sub TabHost with 2 tabs: tab4, tab5.
CODE:.............
TabHost2.xml is the same TabHost1.xml
When I choose tab2 the result like TabHost2 cascaded TabHost1
Actually I want the TabHost2 overwrite (replace) TabHost1.How can we do it ?
View 1 Replies
View Related
Jul 9, 2009
In bin folder just exist resources.ap_ (AP_ File)what is this? why my apk do'nt create?
View 2 Replies
View Related
Oct 13, 2010
Basically im trying to create a simple gui or a layout for android, and I'm really new to Android developing. I already found a way to create a list of stuff using ListActivity, and using the command Code...
View 2 Replies
View Related
Oct 26, 2010
Now I am trying to create an android game. Game is in the book"Apress - pro Android games" But the program is force closed when I try to touch in the screen. Anyone have the full source code of that game "Space Baster".
View 4 Replies
View Related
Sep 16, 2009
I want to create an application which will be able to install another one. Actually a server will send me the .apk file. Then I want my application installing this .apk file and running it. This activity will be a kind of 'script' for installing and running a new apk file.
View 6 Replies
View Related
Aug 13, 2009
I want to hide my application from user so i just want to create service. Can some one tell me how can i create service only with out activity. Can some one tell me can i create only the service in whole project instead of activity. Is it feasible?
View 5 Replies
View Related
Jun 2, 2009
I was wondering how we would attach a pop up window to a button so that when the button is clicked the pop up window will appear showing a message and still until the user closes it. How should I go about this and what classes should I use? Also if there are any examples for this it would really helpful as well.
View 4 Replies
View Related
Oct 25, 2010
We would like to create a reminder that will be poped-up on given date. We would like to do this without having our application running at the backgroud. Any ideas how to do this?
View 5 Replies
View Related
Mar 12, 2009
I want to basically create an application launcher. How do do this? Shouldn't the following just work?
View 4 Replies
View Related
Jan 10, 2010
I am trying to create a todo list application on android. I am stuck because at the moment I dont know the way to create many todo lists. I have created the GUI for one list, using listview. entries of the list are added by the user when running the application. Particularly i dont know how to pass a list object, if i create new one.
View 1 Replies
View Related
Jan 19, 2010
keytool -list -alias alias_name -keystore my-release-key.keystore using above command when i try to create md5 fingerprint. it asks for the password and in password i cannot type any thing. can any one guide me how can i create this i need this finger print to run google map api in android and to obtain googlemap api key from google website.
View 2 Replies
View Related
May 15, 2009
When you are developing on an application level(Services, Activities) you always get this Context reference automatically. But what if I am on a lower level and developing a program started with app_process, how can I get hold of a Context then? Its a huge part of the API that need this context. What the proper way to create a Context instance?
View 7 Replies
View Related