Android :: Activity Being Fired Off Too Many Times
Jul 19, 2010
Our app starts out with a tab activity. But, before the user can get into the tab activity to do work, we have to check to see if they're logged in. This login is required for all activities within the tab activity. So, instead of having this security check within all the activities, we created our own abstract "activity" and have the tab activities extending our custom activity. Our "security check" (just see if they have a login key and login token in Preferences) is put within the onResume() of the Abstract activity. If either of these checks come back false, we fire off the login activity and use dialog's within that screen.
(We're doing this because we don't want the user to be able to see the data on the tabs if they're not logged in, so this login activity is a black background with dialogs for username/password). The issue is, the onResume() of the abstract activity is being called numerous times, and starts the Login Activity multiple times. We've tried setting the "singleInstance" and singleTask flags on the xml for the login activity, but the activity ends up calling onActivityResult before it is even displayed on the screen.
View 2 Replies
Mar 3, 2010
So I have an app with Activity A. The layout on the activity is dynamic genearted. So it's possible that on Activity A a user hits a button that goes to "A" and the new page looks different, then a user clicks another button to go to "A" again. Now I have 2 Activities in the history stack. A, A, and currently on A. Is it possible that if a user clicks a button that the whole Activity stack is cleared in a scenario such as this?
View 5 Replies
View Related
Oct 5, 2010
I'm trying to configure proximity alerts that will be feed from a Database and webservice provider; but I have a problem configuring a simple proximity alert for testing. I manage to create the alert but it never gets fired, I'm only trying in the emulator for now and donīt know if I need some extra code to trigger the alerts. I've read somewhere that the GPS provider to disabled so the network provider can be used in order to trigger the alerts on the emulator.
My code looks like this:...................
View 3 Replies
View Related
Mar 19, 2010
I have an already built application and I want to add a feature that has to be started when a call ends.
How can I achieve that?
I thought that declaring in my manifest something like this
CODE:............
Could be enough, but what kind of intent I have to put on the filter?
Looking in the documentation I found only the intents that detects when a call is started.
View 2 Replies
View Related
Oct 16, 2010
I need to capture the absolute positions of some ImageViews to use as drop targets. I can't seem to find what event I need to put my code in to read the screen and get the Left(), Top() .. positions. I do not want monitor the inflation of each individual view. There must be some sort of onScreenFinsihed type of event, but I can't find it. onMeasure and onDraw seem to fire at the start of their work, I need to know when they are done.
View 1 Replies
View Related
May 10, 2010
Is there an intent that is fired when a user unlocks their screen? I want my app to adjust the brightness when the screen turns on, but the problem im running into is that the screen on intent is fired on the lock screen and it does not adjust the display on that screen.
View 1 Replies
View Related
Apr 15, 2010
In my desperation with trying to get LiveFolders working, I have tried the following in my LiveFolder ContentProvider:Which, in all normalness, should launch the Browser and display the Google homepage when clicking on an item in the LiveFolder. But it doesn't. It gives a Application is not installed on your phone error. No, I'm not defining a base intent for my LiveFolder.logcat says:I/ActivityManager( 74): Starting activity: Intent { act=android.intent.action.VIEW dat=Intent { act=android.intent.action.VIEW dat=http://www.google.com/ } flg=0x10000000 }It seems it embeds the Intent I give it in the data section of the actually fired Intent. Why is it doing this? I'm really starting to believe it's a platform bug.update: I have filed an issue and removed the LiveFolders feature. I will include it in my app when I'll get a response either here or there that clarifies this thing. If I get the time I think I'll upload a demo app to that issue. Update: I have received a notification that the bounty is expiring in 3 days. No one wants it? Update 04/25/2010: I have updated the issue on the Android project and uploaded a test application. It would be nice if someone could test this application on a device, maybe it's such a subtle problem that it only appears on the emulator.
View 2 Replies
View Related
Jun 3, 2010
I know how to setup an alarm to fire repeatedly, but the alarm stops firing after my application is killed.
How do I make sure the alarm continues to fire as it was setup?
View 2 Replies
View Related
May 11, 2010
NYtimes official app is out and available on the Market.. I have been waiting for this for a while - one of the few apps I have been missing from my iPhone days. So very glad to see it out.
View 5 Replies
View Related
Sep 19, 2010
Can anyone find the (real) NY Times app? Or how about an app called Free Caddie? I received an OTA update on my LG Ally last night, these apps wouldn't work after the update, and I can't find either in the market.
View 3 Replies
View Related
Jun 25, 2010
just downloaded this yesterday and it really has potential! powered by the golf channel, this thing will search for deals for you. just plug in the state, day you want to play, # of golfers, and the kind of discount you want and it'll find it for you. this app is still young so i think it has lots of potential. only has south jersey for right now.
View 1 Replies
View Related
Apr 16, 2010
Does anybody know if FT app will be made for Android soon? After all, it's one of the world's best news places. And the app for Iphone is pretty ok.
View 2 Replies
View Related
Nov 7, 2010
Does anyone know of an app that you can set times for the bluetooth to come on and go off? I do use the toggle, but I sometimes to forget to turn it on when I enter my car.
View 4 Replies
View Related
Dec 21, 2009
Does anyone know what happened to the New York Times app? It hasn't updated a story since December 1st. The app no longer appears in the market place and before I uninstalled the app, it no longer showed up under "downloads" within the market place app.
View 2 Replies
View Related
Nov 17, 2010
I know there are apps that can set the ringer to mute during certain times of the day. However, I am wondering if there is an application that will allow me to tell the phone to not ring for the next hour (or any set amount of time). The problem is that periodically I will go to an unscheduled event in when I want to mute the phone, but inevitably forget to unmute later. I'd like to quickly choose to mute for an hour and then it automatically unmutes after an hour...
View 12 Replies
View Related
Sep 8, 2009
I've searched the list and the documentation but have not found anything that tells you how to tell how many times a song has played. Is there something in the OS that provides that information or would it need to be done in the individual application?
View 2 Replies
View Related
Oct 5, 2010
There is a strange out of memory error issue. I create a class to parse live streaming, and the class needs buffers to keep these raw data. Here are code snippets...
View 4 Replies
View Related
Oct 30, 2010
When I install my application onto a device or emulator it appears multiple times in the apps menu, in my case I get 4 icons showing my application name.
It seems that each icon is representing an activity, and since my application contains 3 tabs(with activities) the first 3 icons on my menu go to a particular activity, and the 4th icon takes me to the app itself
This is my manifest
CODE:.....................
What can I do to only have one icon for my app on my device and not 4?
View 3 Replies
View Related
Aug 17, 2009
Im looking for a train times application for the UK. I currently have my train times lite but, I want something where I can search for train times for upcoming dates basically like thetrainline.co.uk.
View 2 Replies
View Related
Jun 1, 2010
The NY Times App appears to be broken on my DINC. The LATEST NEWS is stuck on 5/30 whereas all the other sections are updated to today. Yes I tried the little resfresh dodad on the bottom of the screen. Anyone else experience this. Perhaps I should delete and reload...
View 4 Replies
View Related
Aug 27, 2010
just wondering if anyone else here ever has this issue and if theres something to fix it? im using swiftkey and sometimes it just decides to go nuts and types a letter 2 or 3 times even though i only hit it once and then the word suggest screws up and also when i hit the spacebar once it goes nuts and puts in a period and starts a new sentance.
View 2 Replies
View Related
Sep 27, 2010
IIUC, there should only be one instance of a given service, it is a singleton. However, my (audio engine) service gets instantiated multiple times, although I do nothing for it. When the service crashes (for example when I uninstall the app through adb), it gets scheduled for restart ("Scheduling restart of crashed service.. "). I understand this is an effect of the service being sticky. After that, when my app starts, it calls startService() and bindService(), and the service gets appropriately started and bound. But the service is then reinstantiated and onCreate() is called repeatedly, as many times it was scheduled for restart.
Each instance then wait for clients to bind and register, but onBind() is only called in the "main" service instance. The additional instances wait a bit for client to bind, and since that doesn't happen, they call stopSelf(). But stopSelf() has absolutely no effect in these "dead" instances, onDestroy() is never called.
The "main" service instance does work as expected, and when it decides to call stopSelf(), onDestroy() is indeed called. Worse, all these dead instances accumulate, they never gets destroyed. Therefore, their only possible end is a crash (which happen every time I launch/install through adb), and thus scheduled restart.
So that in the end I get many of these dead instances, which are restarted progressively once by minute approximately.
View 3 Replies
View Related
Jan 30, 2010
For Android, I have a custom view which I fill up with primitive shapes in the onDraw() method. Coming from a Processing background, I expected the draw method to be called automatically 30 times per second, but its clear that that's not how android views work. So how should I go about calling this method 30 times per second?
View 1 Replies
View Related
Nov 19, 2010
I would like to run multiple instances of same application for dev purpose. How does app define it's name in the system, through which of the files is that configured.
View 3 Replies
View Related
Nov 9, 2010
I'm trying to implement The Android LicenseChecker in my app, and I've followed the instructions almost verbatim from the developer site. Everything seems hooked up correctly, but every single time I get the "Check timed out." message. I increased the timeout value to 30 seconds, I'm logged into my device (which has the market app installed) with my publisher account login gmail address.
I set the test response to Licensed. I saved (but didn't publish) a sample app to test with. When that didn't work, I tried using an app that is already published and just rebuilding the apk locally to include the LVL implementation. I definitely have 3g connectivity. I can browse the web on the device and other connected apps are working correctly.
View 1 Replies
View Related
Apr 16, 2010
I am working on an Location Based Application. In this application i am using LocationListener class to update the location when the Location is changed.In each Activity i have different LocationListener to update location and do some specific work on updated location. But my problem is that when i am changing my location through DDMS , the LocationListener is being called of that current Activity as well as all the activities of the whole application where LocationListener has been defined. I don't know whether there should be one LocationListener for the whole application or for each Activity we should have different LocationListener.
View 1 Replies
View Related
Sep 1, 2010
I am facing one issue on my HTC tattoo device. I have written a code which sends an SMS to the given number. At the recipient end I am receiving more than one SMSs. One time I have even received 17 same messages. I am posting the code snippet for the reference-
private void sendSMS(final String phoneNumber, final String message) Log.i("Send To Friend", "sendSMS"); SmsManager sms = SmsManager.getDefault(); sms.sendTextMessage(phoneNumber, null, message, null, null); Toast.makeText(this, "Message has been sent", Toast.LENGTH_SHORT).show(); finish();}
View 4 Replies
View Related
Apr 10, 2010
I need an app to record times and distances for biking and running. I don't need it to calculate anything for me I just need it to save data from my workouts that I will collect from other devices. I just want to be able to view how my times and etc are progressing from workout to workout.
View 17 Replies
View Related
Mar 31, 2010
I need to be able to schedule multiple Notifications at different times in the future.
I tried doing this with an AlarmManager, but that isn't suitable, for the following reason. From AlarmManager.set(): "If there is already an alarm for this Intent scheduled (with the equality of two intents being defined by filterEquals(Intent)), then it will be removed and replaced by this one."
Guess what, the sending intents are equal, apart from different Extra's (but those don't count for filterEquals).
So how can I schedule multiple notifications, which will still be shown when my application is killed (the whole reason I tried AlarmManager)?
View 1 Replies
View Related
Jun 18, 2009
I am writing a demo app that allows the user to set a number of times they want my app to run. The app has no interface and just puts shows some notifications. Running this as a service seems the most obvious.
View 4 Replies
View Related