Android :: Best Practice For Implementing Watchdog

Sep 17, 2009

I'm writing an application where real-time knowledge of the GPS state is critical to convey to the user. I request GPS updates at 1000 ms intervals -- when I haven't received another update 1500 ms past the most recent update, I want to display a yellow icon, and 5000 ms after the most recent update I want to display a red icon. Currently, I'm doing it like this: private CountDownTimer gpstimeout; public void onLocationChanged(Location location) { if (gpstimeout != null) gpstimeout.cancel(); gpstimeout = new CountDownTimer(5000, 1500) { public void onTick(long m) { setYellow(); } public void onFinish() { setRed(); } }; gpstimeout.start(); }

Android :: Best practice for implementing watchdog


Android :: 3G Watchdog And Wi-Fi Hotspot

Nov 12, 2010

I'm using Android 2.2 on my HTC Desire.I noticed that when I have 3G Watchdog installed and running, I cannot connect to mobile network (3G/Edge) when I turn on Wi-fi Hotspot.But everything works fine if I uninstall 3G Watchdog. Anyone else have the same problem?Any good alternatives out there to 3G Watchdog?

View 6 Replies View Related

Android :: 3G Watchdog Shows Data Won't Stop

Jun 10, 2010

My housemate and I both installed 3G Watchdog the other day (Desire and an X10, noth on different networks) and in both cases it shows small amounts of 3G data being used even when the WiFi connection is up and running. I have been at home all day, in good connection with the wireless, but it shows about 3 meg of data traffic. Could 3G Watchdog be misreading somewhere or is the an app or 2 that wont use WAN?

View 5 Replies View Related

Android : Accurate Are Data Counters Like 3G Watchdog?

Nov 30, 2009

Is anyone who is using 3G Watchdog or NetCounter actually receiving accurate stats compared to what Orange are showing on their OrangeWorld "Your Account" section?
I have been using my new HTC Hero for just over 2 weeks now and Orange are saying that I have used 422MB of data. This seems ridiculous to me as I only automatically check email once per hour, surf to the extent of anyone with such a new gadget, and spend every evening at home connected to WiFi from about 6pm onwards.
I phoned Orange one day last week and they advised that I had used 310MB up to that point, so I immediately downloaded 3G Watchdog and started it running. Since then, it says that I have used 36MB in the same period that Orange say I have used 112MB.
I also use NetCounter, but as I didn't reset it last week, I can't make any specific comparisons. However, on a daily basis it always agrees with 3G Watchdog to within a few KB.

I know I will need to phone Orange to sort this out, and I am certain that they will tell me that downloaded data counter apps cannot be trusted. I'm not sure how I can prove to them that their data readings for me are wrong.

View 1 Replies View Related

Android :: Motorola Droid Owners To Port 3G Watchdog Application

Nov 7, 2009

I'm the developer of 3G Watchdog, an application that monitors 3G traffic. I need help from Motorola Droid owners to port it to that phone.The app gets the network statistics data by reading pseudo-files /sys/ class/net/xxxx/statistics/rx_bytes and tx_bytes. "xxx" is the network interface name, which depends on the platform (or rather, the maker), e.g. for HTC phones it is "rmnet0", "pdp0" for Samsung..I'm looking for the name used by the Droid. If someone with a Droid could look (using adb) at / sys/ class/ net/ xxxx/ statistics/ rx_bytes and tell me what the xxxx is, it would make 3G Watchdog accessible to Motorola users.BTW, this remark is valid for any other future phone (Ericson, etc). New Android phones will appear on the market, and I need owner's contribution to port 3GW on them.

View 2 Replies View Related

HTC Desire :: 3G Watchdog And Internet Usage

Jun 8, 2010

Got Orange panther 40 unlimited and tonight have had them confirm its 1gb fair usage policy. Although as good as they are it does keep changing. Anyway did a small experimentation with 3g watchdog and tonight I've scooted around a few forums and its used 7 mb seems a lot.

View 7 Replies View Related

Android :: Implementing In App Purchases

Jan 7, 2010

It looks like Android won't natively support in-app purchases for a while, and when it does there might be a huge user base with devices that don't support them.What's the best way to implement iPhone-like (additional content or services) in-app purchases in Android using the Android Market if possible?

View 4 Replies View Related

Android :: Implementing Action Bar

Jun 24, 2010

I am working on creating an Action Bar like the one from the new Android UI Patterns and I am running into a bit of trouble. I have a ViewSwitcher with two layouts in it. When the user taps the search button I animate between the two layouts. The problem is that the layouts are different sizes and I can't figure out how to make them take up the same amount of space. Here's what I mean. p.s. forgive the bad art, they are just place holders ;)

View 1 Replies View Related

Android :: Implementing An OnClickListener?

Nov 9, 2010

I am trying to do something similar to that of the android lock screen pattern. I have a class that extends a view that I create multiple instances of. These appear on the screen all at once.

I need to be able to click on them individually and have each one turn green individually, however only one on touch listener is listening at once and it belongs to the last dot which appeared, so if I click anywhere on the screen the last appeared dot turns green no matter where I click.

Here is the code for my dot class:

CODE:......

In the code I called newdotdraw multiple times.

View 1 Replies View Related

Android :: Implementing L2CAP

Aug 13, 2009

With reference to the current work at : http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;...

Can you tell me how can I implement L2CAP Socket?

I need to do it ASAP for a university project. Hoping for optimistic reciprocation.

View 5 Replies View Related

Android :: Implementing Predictions For IME?

May 14, 2010

Kindly share information regarding how to implement predictions for input methods... I have a new keyboard layout for which I need to provide prediction/sugeestion functionality....

View 2 Replies View Related

Android :: Implementing A Framework ?

Nov 16, 2010

I have 2 apps which should both contain some similar activities.... Now I decided to write a new app, some kind of "framework", which contains these activities, to avoid to write the code twice. How can I use these activities in my other 2 apps ? Whats the common approach for doing this? Adding the "Framework app" to the build path of the two other apps won't work.....

View 3 Replies View Related

Android :: Best Practice For Changing Min SDK Version?

Aug 2, 2010

I have a sizable install base already on some apps with Android 1.5 set as the minimum version. I want to update the apps to take advantage of some of the newer features offered in Android 2.0 and greater. What is the best way forward so I don't break things for my current 1.5 and 1.6 users?

If I simply update the application with a new min SDK version, will 1.5 and 1.6 users be prompted to uninstall? Or will they just not see the update? What about future development that I want to apply for everyone, say a bugfix. Will I have painted myself into a corner? Another solution would be to fork and create a new app for 2.0 users, but that is undesirable for several reasons.

View 3 Replies View Related

Android :: Uninstalling Apps Best Practice

Jun 23, 2010

I have had my Desire no for almost 2 months, and like most I have tried installing and uninstalling many apps, to see what I like.Due to doing a factory reset on my phone yesterday I have layered back all the apps I was using and have noticed that I have used considerably less memory than before, making me very suspicious of the uninstall method used within the market place.Does it leave behind pieces of the app, and if so what's the cleanest method of uninstalling apps.

View 7 Replies View Related

Android :: Best Practice For P2P Handset Networking

Dec 4, 2009

I've been scouring the web looking for information on setting up a peer-to-peer connection between Android handsets and so far have drawn a blank. The only thing I can definitively seem to work out is that it was made a whole lot more difficult when XMPP was removed from 1.0. Apart from that, I find a couple of threads on an OpenIntents board about porting an XMPP implementation to Android that were last posted nearly 2 years ago. Has anybody solved this problem effectively? What's the best way of doing it (from a games point of view)?

View 7 Replies View Related

Android :: Best Practice With SQLite And Phone

Mar 22, 2010

What is considered "best practice" when executing queries on a SQLite db within an Android app? Is it safe to run inserts, deletes and select queries from an AsyncTask's doInBackground ? Or should I use the UI Thread? I suppose that db queries can be "heavy" and should not use the UI thread as it can lock up the app - resulting in an ANR. If I have several AsyncTasks, should they share a connection or should they open a connection each?

View 3 Replies View Related

Android :: Best Practice To Pull Content From Web?

Sep 29, 2010

I'm new to developing Android applications, and have only a little experience with Java in school. I was redirected to StackOverflow from the Google groups page when I was looking for the Android Beginners group. I have a question about what is best practice to pull content from a web source and parse it. Firstly, I would eventually like to have my application threaded (by use of Handler?), however, my issue now is that the class I have created (Server) to connect and fetch content often fails to retrieve the content, which causes my JSON parser class (JSONParser) to fail, and my View to display nothing. After navigating to the previous Activity, and attempting to call the connect(), fetch(), and parse() methods on the same remote URI, it will work. Why does this (sometimes retrieve the remote data) happen sometimes, but not always? What is the best practice, including the use of ProgressDialog and the internal Handler class, to make my application seemless to the user. Is this the best place to ask this question?

View 1 Replies View Related

Android :: Best Practice - Passing Id To New Intent?

Sep 22, 2009

I am creating a database driven app for managing people. I am showing a list of people with each name in a TextView. When a TextView is clicked, I launch a new intent to show the detail for the person. My question: What's the best practices for passing the id of the person to the new intent? The TextView is displaying the name of the person, so how do I know the id of the person? Once I know the id, I know how to pass it to the new intent, but I don't know what the best way to associate the id of the person to the TextView. Is there a best practice for this?

View 2 Replies View Related

Android :: Best Practice For Specifying Pronunciation For TTS Engine?

Aug 16, 2010

In general, I'm very impressed with Android's default text to speech engine (i.e., com.svox.pico). As expected, it mispronounces some words (as do I) and it therefore occasionally needs some pronunciation guidance. So I'm wondering about best practices for phonetically spelling out those words that the pico TTS engine mispronounces. For example, the correct pronunciation of the bird Chachalaca is CHAH-chah-LAH-kah. Here is what the TTS engine produces: mTts.speak("Chachalaca", TextToSpeech.QUEUE_ADD, null); // output: chuh-KAL-uh-KUH mTts.speak("CHAH-chah-LAH-kah", TextToSpeech.QUEUE_ADD, null); // output: CHAH-chah-EL-AY-AYCH-dash-kuh mTts.speak("CHAHchahLAHkah", TextToSpeech.QUEUE_ADD, null); // output: CHA-chah-LAH-ka mTts.speak("CHAH chah LOCKah", TextToSpeech.QUEUE_ADD, null); // output: CHAH-chah-LAH-kah Here are my questions. Is there a standard phonetic spelling recognized by the Android TTS engine? If not, are there some general rules for making custom pronunciation spellings that will make the spellings more likely to be correct in future TTS engines/versions? It appears that the Android TTS engine ignores text case. What is the best way to specify emphasis?

View 2 Replies View Related

Android :: Implementing Gesture Recognition In An App

Jul 26, 2010

I am adding gesture recognition to my app. I have added the view as described in the Android Developers Gestures article but when it comes to adding:

CODEE:..........

where do I put this in my code, do I have to create a new class for it, or can I have it in an inner class, or does it not need a class at all?! I have a set up similar to Lunar Lander which comprises of two files, one of which is a thread that handles pretty much all the physics and drawing of the game. The other file begins the thread and saveInstanceState method. Furthermore, what type is mLibrary?! I cannot find out anywhere! I imagine I will put the OnGesturePerformed method in my thread as this is where I handle all keyUp and Down events.

View 1 Replies View Related

Android :: Best Approach To Implementing Polling

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

Android :: Designing And Implementing App Idea

Jun 27, 2010

Does anyone have any good references for designing and implementing an idea I have for an android application. My idea is for an application that stores information and reviews about a specific location and presents this information to user.I have gone through all the tutorials and have been reading up on anything and everything about android. Now I am ready to challenge myself with my first app.

View 4 Replies View Related

Android :: Can't Find Certain Implementing Classes

Mar 19, 2010

I am looking for the implementation of the IAlarmManager.I am interested in the scheduling done by the AlarmManager.setInexactRepeating method and so I started looking for the implementation but I haven't been able to find anything.Internally to AlarmManager, I can see that the actual work is being done by an android.app.IAlarmManager interface.After googling around for a bit there seems to reference to an implementing class called android.app.IAlarmManager.Stub but that is as far I get.I am working with Android 1.6.

View 1 Replies View Related

Android :: Implementing Customized Drawable

Jun 3, 2010

I was trying to get hold of 2D graphics in Android.As a example i want to implement a custom drawable and show it in my Activity But when i run the app i see no rectangle on the activity, can anyone help me out? Where am i going wrong?

View 2 Replies View Related

Android :: Implementing Application With Database

Aug 4, 2010

I need to know how to create simple android application by sqlite database, how can i view the sqlite database and to view the tables has like other mysql server,Let me help to create simple application with database.where i can find the database.

View 2 Replies View Related

Android :: Implementing VoIP Program

Nov 14, 2010

I have some design questions that I want to discuss with people interested in helping me. I am planning to develop a simple VoIP program that allows two Android phones in the same network to use VoIP. My goal is simply to capture sound, send the data with UDP, receive UDP data and play sound.My current design is to have 2 threads: one captures the microphone and sends the data; the other one receives bytes and plays them.I was starting to implement that using MediaPlayer and MediaRecorder. The issue that came up is how do I record and play sound? By that, I would like to know if I need to use a file, although that seems slow, or if there is anyway to have the recording automatically sent to my UDP socket please?Basically, I wonder if I have to record to a file, then to be able to play it, or if I could just pass a socket (for recording and playing).

View 1 Replies View Related

Android :: Error On Implementing OnClickListener ?

Mar 30, 2010

I am writing an application which one of the activity has a button and use this button to switch to another activity when clicking that.

The main activity implements the onCreate and OnClickListener as follows:

CODE:...........

When I try to run this program on my emulator, after hitting the button, the program stopped unexpectedly. I follow the instructions of implementing OnClickListener firmly so I don't know what's the problem in my implementation.

View 2 Replies View Related

Android :: Implementing A Touchable Calendar

Jan 12, 2010

I am creating a small calendar control that will be part of an application that runs on a larger-than-phone-sized screen. The calendar will simply display the current month and allow users to touch-select a day with an iPhone keyboard style popup bubble indicating which day is chosen.

The problem is that in order to do it with buttons would require 42 tiny buttons, which would probably be a resource hogging solution. Although a keyboard would give me the iPhone-keyboard-bubble-like behavior, i dont think that we can place a keyboard in a static location within a Layout, using it like a View.

So I am wondering what is the best way to go about implementing this. Is my "42 buttons is too many" assumption correct? Is my keyboard assumption correct? Do I have to use a SurfaceView (or something) and draw everything myself? Is there some other grid-like control that can make this simpler?

View 6 Replies View Related

Android :: Best Practice For Storing Application - Configuration

Apr 8, 2010

I am still learning bu find Android the cool platform for allot of useful applications. I have written a Service for doing GPS tracking and it consists of a Service and a Control activity to manage, monitor and configure the service. I am looking for the preferred way for the Control Activity to define settings for the Service, things like IP address and Update interval. I envision something like a Registry on windows where these settings can be shares and updated.

View 9 Replies View Related

Android :: Best Practice For Responsive User Interfaces

Jun 16, 2009

I am quite new to Android and Java. Before I was working with C++ where the events where dispatched with messages. Now I would like to create the same user experience for Android platform and I would appreciate any of your suggestions or comments on what is the best way to bind events to user controls.

Here is an example from C++:

ON_MESSAGE(WM_RECORD_START, &CMainFrame::OnRecordStart)//Method OnRecordStarts() executes on WM_RECORD_START_MESSAGE...................

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved