Android :: Checking If New SMS Has Been Read
Aug 22, 2010
I am working on a simple app for the HTC EVO that blinks the alternate notification LED when a new text message is received. I have this part working great via a Broadcast Receiver but I need some way to turn the LED off when the user has read the message(s) using their default SMS app. I'm not sure if it is best to do this in the receiver or in a background service.
View 2 Replies
Oct 6, 2010
I know this has most likely been discussed many times. But I am looking for a decent email widget.
At the moment I am using the default htc email widget, however when ever I read an email from my gmail account it doesnt update the read status so it still shows as unread.
I would like one that would update the read status and possible the support for unified inbox so I can see new mail from hotmail account and gmail.
View 2 Replies
View Related
Aug 25, 2009
I would like to check whether there is any direct API available to check whether a particular Database exists or not ?
Currently, to initialize data for the first time (not repeatedly), we try of open the db and if it fails we know the database does not exists otherwise it is already created and initialized.
Is there any simple API available to check whether DB exists or not ?
View 2 Replies
View Related
Sep 11, 2009
Anyone know how to check the user's country? I'm looking for a way that's faster than using GPS and reverse geocoding. (I need the country where the phone is registered, not their current location, in any case.) Is there any constant in the settings?
View 4 Replies
View Related
Mar 20, 2009
Is there a way to programmatically without root check and see how a program was installed?
The only solution I've been able to find is using root - and tapping into a database that the Vending application uses;
CREATE TABLE assets10(_id INTEGER PRIMARY KEY AUTOINCREMENT, content_uri TEXT, s tate TEXT, download_pending_time INTEGER, download_start_time INTEGER, install_t ime INTEGER, uninstall_time INTEGER, size INTEGER, type TEXT, package_name TEXT, is_forward_locked TEXT, signature TEXT, refund_timeout INTEGER, version_code IN TEGER, server_string_id TEXT UNIQUE);
Most specifically I can check to this database using my package name and/or signature and see if it's ever been installed by the market. Then if it has you could check to see if it's been uninstalled.
As for background, I'm just messing around with ways to distinguish real users from pirated versions. I've noticed from an application I've posted that I only have approximately 100 downloads and 50% active, yet my server which is used by the application shows approximately 200ish unique users within the past few days.
View 2 Replies
View Related
Jul 29, 2010
I have a string called extStorageDirectory which is set to my SD Card and then "/mypics", I can then save a picture in to this directory, but only if the directory exsists. So how do I check to see if the directory exsits, and if it doesn't creates the directory?
View 3 Replies
View Related
May 6, 2009
I am doing an experimental project and want to send key events from one application to another. I know android doesn't allow applications to interfere each other in this way due to security concern. Is there any way i could bypass the security check? I've looked into the WindowManagerService class and made some modifications but it seems not working for me.
View 3 Replies
View Related
Dec 31, 2009
I have some shares n the company I work for and want a good app to check price and see what my shares are worth.
View 3 Replies
View Related
Oct 6, 2010
I have an IntentService which makes some web service calls. Before making these calls I check to make sure the device has network connectivity.
I am doing so like this:
CODE:.............
Unfortunately, when I'm debugging on my Android device, this returns false when I have both a network and a wireless connection.
Some interesting tidbits about connec.getNetworkInfo(0):
CODE:...................
Clearly this code is not sufficient (perhaps it would only return true if I sent some bit over the network and turned the radio on?). Moreover, since I'm not well versed in the ConnectivityManager, I'm assuming I should probably be scanning all networks (ie: getNetworkInfo(0 through N)).
View 1 Replies
View Related
May 4, 2010
How can I check if headphones are currently plugged in. I don't want a broadcastreceiver which informs me when they have been connected to the device. I need something like:
if(/*headphone is connected*/)...
View 1 Replies
View Related
Apr 27, 2009
Can some body suggest me how do I check if Android is in home screen? My requirement is I need to invoke an STK application, when I get the corresponding command from SIM and Android should be in home screen. How do I check if Android is in home screen?
View 2 Replies
View Related
Feb 8, 2010
I wanted to get the info on the following query, could you guys please help me in getting the answer?I have set of platform api those will be tested by CTS to check compatibility, and I am making use of some 3rd party api in one of the platforms api. Suppose if I am changing or modifying the 3rd party api (to suit some of my requirement), is CTS is capable of telling whether compatibility is broken in the 3rd party app?
View 2 Replies
View Related
Nov 11, 2010
I want to check, whether a file exists or not in the /assets/ folder.How could I do it? Please help.
View 1 Replies
View Related
Dec 13, 2011
Actually I am checking the code flow of NFC in Android-ICS.But i got stuck because of some files are not present in ICS.
Like :
GB code -> WriteTagActivity (to write into a TAG)
ICS code -> no files.
Some more files are also missing in NFC and TAG.
View 2 Replies
View Related
Sep 7, 2010
Since I got my 16 GB Card it's started saying it for longer than with my 2GB Card, however it says it less now. Does how long it takes depend on how much data you put on since taking it out of USB Mode? Because when I first got this card I wrote a lot to it (Moving all my files over), but now I just put a few files here and there on... Is there a way to disable this and let you run it manually at your leisure?
View 2 Replies
View Related
Mar 26, 2010
I have a terrible bug in my widget. The widget is waken up using an AlarmManager (the update interval is chosen by users, ranging from 30 mins to 2 hours) to grab some data from the Internet and display it on the widget. I do not hold a wakelock since if the phone sleeps, just let it sleeps. There's no way to update the information since nobody will see it. If I put the phone in the basement (has no wi-fi or cell signal) for about an hour. the phone will definitely not update anything. However, when I get it back from the basement, the cell network could never be recovered again no matter how long I have waited (it just get an X on the cell signal icon on the notification bar) that I must restart the phone. May I know if a partial wake lock must be held on checking network availability?
Find the code skeleton as below:
CODE:.................
View 8 Replies
View Related
Apr 26, 2010
I wanted to check the availability of another app in Market from my app. Based on this I will have to give a message saying "Coming soon" or show the other app in Market. I am using the following intent
new Intent(Intent.ACTION_VIEW, Uri.parse("market://details? id=com.example.android.XXXX"));
Now, how can I catch the result which would say if the Market was able to find this package or not?
View 4 Replies
View Related
Jul 29, 2010
I got problem with register. I use an if-else statement to check whether the user left any blank. If there is any blank, an error message will appear. The problem is, even with no blanks, all filled up, the error message still appears and thus prevents user from registering. I can't find any error.
Please help me spot my error.
CODE:..................
View 2 Replies
View Related
Jul 2, 2010
I need the way to check an item in ListView with choice mode SINGLE from my code. Simply can't find the method needed.
View 1 Replies
View Related
Feb 14, 2010
I am fairly new to Android (find it most fun, btw) and I was wondering...
How can I create an Android CheckBox with the label to the left and the checking button/box aligned to the right (pretty much a switch of the way this widget is drawn by default)? Like the way a checkbox preference normally looks like...
I am looking for the most elegant/short-coded version possible, if there is one. I mean other than creating your own View/ViewGroup with layouts, empty-labeled CheckBoxes and TextViews, etc...
View 1 Replies
View Related
Feb 23, 2010
I'm writing a game for Android. I'd like to target as many devices as possible. I'm aware that Droid owners buy about 50% of the apps and the rest are a mixture of G1 and HTC devices. So far, I've been testing my app in the emulator set to model the Droid phone (where I get about 40 fps) as well as on an actual Droid phone (where I get about 60 fps).
I'd like to know how fast my app runs on slower devices such as the G1. Is there any way I can do this besides getting a G1 myself or asking people with G1s to test it for me? For example, is there any way I can use the emulator to get a rough idea how well it will run on the G1?
View 2 Replies
View Related
Aug 23, 2010
After you give an app permission to auto-update, does anyone know how often it checks for a new version of itself? Does the app check daily and if an update is found (and provided it does not alter the permissions) apply it? Is it possible to alter the frequency that it checks?
I ask because I just opened up the Android Market and right as I did so it suddenly started updating half a dozen apps. Now that was fine, since they all had been given permission to auto-update, but I want to know if they only check for an update when the market is opened, or if it was just a coincidence.
View 1 Replies
View Related
Jan 3, 2010
I am writing a screen scraping app that reads out various pages and extracts the data. I'm using the SAXParserFactory go get a SAXParser which in turn gets me an XMLReader. I have configured the Factory like this. code...
I can understand that it can't find the entity, since I told the factory to not read the DTD, but how do I disable entity checking altogether?
EDIT: This is for an Android app, which is why I am reluctant to use an API/library that isn't in the standard environment.
View 4 Replies
View Related
Nov 13, 2009
So I have everything set up to automatically use my Google Voice number now, and started getting SMS texts in both my messaging inbox and in GV. I figured out I needed to turn off the SMS forwarding in GV, but it turns out I like using the default messaging app more than the one in GV.
Is there a way to make the GV app stop checking for SMS messages but still download my voicemail? I don't want to make it stop checking all together but I'd like to use the other app for SMS's.
View 1 Replies
View Related
Sep 9, 2010
I had to turn off auto correction and word prediction. I need a way to optionally spell check text after I've finished typing in a text field. Is there a way out of the box to do that? Do I need an additional application? If so, what's the best one?
View 1 Replies
View Related
Jul 21, 2010
Is there are just two way to check minutes? either log on to sprint website or call them....
any other easier way? am i missing something is there any sprint app?
I just want to be able to check my minutes quickly when i want.. since it's only 450 i don't wanna fuck up.
I guess it's only $10 more for 900 minutes if I tell them right now.
View 17 Replies
View Related
Jun 14, 2010
I installed the Missed Reminder app on my phone this weekend but I've read around here that this is a big battery drain program. By navigating to the Battery usage section within the Android settings, the Missed Reminder app doesn't even show up. Does this mean the app is NOT draining, or am I looking in the wrong area?
View 1 Replies
View Related
Aug 17, 2010
I had a moment of paranoia in the theatre recently. I turned phone off, couldn't remember if I'd turned the phone off, then realised the only way to check the phone was off was to press the button at the top, which if the phone was on would bring me to the screen unlock thing... but if it was off, would turn it on. Is there a way to check its 'offness' without turning it on?
View 17 Replies
View Related
Aug 3, 2010
Has anyone else here have this problem? After I tap "Check Now", the little "Checking..." circle keeps going around for hours. No message about failing or finding anything - just the circle going around and around and around... I checked on the HTC website, but only find one or two more people with this problem. Anyone here have or had the problem and successfully got the update later?
View 4 Replies
View Related
Aug 3, 2010
So I checked my Battery Use and it shows Android System at 71%. What determines this and how do I get it to go down? The phone is only a day old and I haven't installed any apps yet. I just have gmail (mail, calendar, contacts) on auto-sync as well as an exchange email on HTC Mail on auto-sync.
View 5 Replies
View Related