Android :: Schedule Multiple Notifications At Different Times

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)?

Android :: schedule multiple Notifications at different times


Motorola Droid 2 :: Email Notifications And Fetch Schedule

Oct 15, 2010

1. My work email is set up under a Corporate Sync header, not an email header. This seems to email that arrive to not show up on my notifications header or notify me the way I've got the other email accounts to notify (ring, vibrate, etc.). Is there a way to change this?

2. Can the fetch schedule be reduced to anything less than 15 minutes? That seems to be a very long time to wait for an email to arrive.

View 1 Replies View Related

Android :: Service Gets Instantiated Multiple Times

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

Android :: Run Same Application Multiple Times - Name In System?

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

Android :: LocationListener Being Called Multiple Times

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

Android :: Same SMS Is Received Multiple Times - HTC Tattoo

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

Android : ListViews Getting Rendered Multiple Times

Mar 16, 2009

So the situation is this, I have a ListView that is embedded in two LinearLayout ViewGroups to form a screen. BaseAdapter.get View() (the implementation of the ListAdapter) is typically called n times (where n is numElements) to render the screen. The problem I have is this set of calls is being repeated for every ViewGroup that the list is contained in...So for a Layout like this:

-LinearLayout --Linearlayout ---ListView

The adapters get View() is being called n*3 times (3 = 1 for the parent LinerarLayout, one for the child LinearLayout and one for the List itself).

This is obviously a problem when the items in the List are expensive to build (even with recycling).

So I'm looking for some guidance on this, as the documentation doesn't seem to note this behavior from what I can see.

A small, basic example of the source is located on my post here http://www.anddev.org/listview_getting_rendered_multiple_times-t5290.... with more details Oswell as a ready made eclipse project(also attached below) if anyone is keen to try it out.

View 6 Replies View Related

Android :: Location Listener Called Multiple Times

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.

You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

View 2 Replies View Related

Android :: SAX Is Getting Called Multiple Times With Same Data But Offset

Oct 27, 2010

I am trying to parse an xml file using SAX with Android and the problem is that the function characters(...) is getting called multiple times with what appears to be the same data just offset by a few characters.

As you can tell from the output below the first time it gets called with " alabama" and the second time it gets called with "labama". I am not sure as to why it is doing this but if anyone could help that would be awesome.

10-27 23:04:47.033: DEBUG/LocationHandler(10299):
10-27 23:04:49.000: DEBUG/LocationHandler(10299): alabama
10-27 23:04:51.835: DEBUG/LocationHandler(10299): labama
10-27 23:04:52.129: DEBUG/LocationHandler(10299): labama
10-27 23:04:52.408: DEBUG/LocationHandler(10299): labama
10-27 23:04:52.519: DEBUG/LocationHandler(10299): ub_dir_name
10-27 23:04:52.649: DEBUG/LocationHandler(10299): ub_dir_name
10-27 23:04:52.809: DEBUG/LocationHandler(10299): ub_dir_name
10-27 23:04:52.989: DEBUG/LocationHandler(10299): ile_name.kml
10-27 23:04:53.158: DEBUG/LocationHandler(10299): ile_name.kml
10-27 23:04:53.358: DEBUG/LocationHandler(10299): le_name.kml
10-27 23:04:53.529: DEBUG/LocationHandler(10299): le_name.kml
10-27 23:04:53.698: DEBUG/LocationHandler(10299): le_name.kml
Code...

View 1 Replies View Related

Motorola Droid : Android Reset Multiple Times A Day / How To Fix?

Dec 6, 2009

My first droid reset multiple times a day. I then exchanged it and since then I've had no problems at all. Get a reset maybe once a week or less and thats usually because I'm doing too many things with the phone.

View 9 Replies View Related

Android :: Playing AudioTrack Multiple Times Producing Crash

Mar 16, 2010

I am trying to play audio buffered sound (.wav) using AudioTrack. Please see the code below. I need to call this function under a Thread to support simultaneous play. It is fine being under a Thread. It is working fine playing the sound normally. But if i execute playing the sound using AudioTrack one after another continuously (i.e. executing second play before completing the first play sound), produces device crash (force close unexpectedly error). Does anyone come across such problems and resolve it in a way?

View 1 Replies View Related

Android :: Cost Of Calling The Reverse Geocoder Multiple Times

Nov 4, 2009

I'm using the geocoder in the android map api, this work relatively good, my problem though is that i want to be able to get a number of addresses near a geopoint ! I thought about calculating different geopoint near the a center geopoint, but what about the cost of calling the reverse geocoder multiple times etc.

View 2 Replies View Related

Android :: Is It Normal For OnCreate Method To Be Called Multiple Times?

Aug 27, 2010

I have some code in the onCreate method an Activity and noticed that it is being called three times. Is it normal behaviour?

View 1 Replies View Related

Android :: App Appears Multiple Times In Recent Apps List

Aug 26, 2010

A number of users of my app have reported that on the Nexus One, running Froyo 2.2, the app appears multiple times in the 'Recent Apps' list that is displayed when you long press the home button. Personally, I have not been able to replicate the issue. Have tried killing the app with a task killer then restarting it to see if that would cause the app to appear more than once on the list. Also tried spawning multiple thread from within an activity in the app, but still no go. I have also tested on Droid phones running 2.2 as well as on the 2.2 emulator but to no avail. It is curious that only Nexus One Froyo users experience the issue. The app has one main launcher activity, about 30 different activities and is divided into 4 main tasks to help manage the activity stack. The app also has an IntentService for running network operations in the background. Is there any know scenario that could cause an app to appear multiple times in the 'Recent Apps' list? Is the 'Recent Apps' list populated based on the app package name e.g. com.mycompany.myappname or based on the tasks defined in the application manifest file?

View 7 Replies View Related

General :: Evo 3D / CM 10 - Expanded Notifications At All Times

Aug 23, 2012

I'm running CM10 on my EVO 3D and I really love the expanded notifications. The thing is I tend to have a maximum of 2-3 notifications at a time. Is there a way to have all the notifications expanded at all times?

View 1 Replies View Related

General :: Running Same App Multiple Times

Aug 2, 2012

What I would like to do is to run 2 instances of an application or more. The issue is that I am using an RDP program that allows me to attach to a single connection, the kick is that I need the ability to toggle between those machines and the app does not do that natively. I can also see it being useful for a situation when you need to toggle between two documents that are both open with the same application.

I know that it is really not made to do this natively but if there is are ROMs that include that functionality or a way to alter android to do this. In addition, it would be great to be able to tell the system which applications can and can't function that way.

I currently have a nexus 7, transformer prime and transformer infinity to test this with.

View 3 Replies View Related

Android :: Access Views Inside Layout When I Reuse It Multiple Times?

Aug 6, 2010

I have read the Android UI trick 2 on Android developers, which tells people how to include a layout in another layout file multiple times, and give these included layouts different id. However, the sample here is overwriting the layout id, not the id of the views IN this layout. For example, if the workspace_screen.xml looks like this: And I include it three times in another layout file. Do I end up with three TextViews with id firstText, and another three with secondText? Isn't there an id collision? And how do I find the secondText TextView in the third included layout with findViewById? What should I input in the findViewById method?

View 1 Replies View Related

Android :: Shared Preference Listener Being Called Multiple Times When I Change A Pref

May 31, 2010

I've written an app with 3 tabs. Each tab has the same list view with different data sources. I have setup SharedPreferences in the tabhost activity, but I put my onSharedPreferenceChangeListener method in my listactivity. When I change a preference, my listener gets called and it updates my database. This is all working. However, if I change the data in tab 1, it calls my listener once. If I change the data for tab 2 it calls it twice and if I change the data in tab 3 it calls it three times. Any idea why it works this way? I guess I could setup my shared prefs in my listactivity and that might avoid the issue, but I'm curious why my listener is called multiple times if it's in a different tab.

View 1 Replies View Related

HTC Incredible :: Phone Receiving Same MMS Multiple Times

Jun 11, 2010

Has anyone else that has the Incredible been getting the same MMS multiple times on various occasions? For me, its appears to be random...although, now that I think about it, the two numbers that I notice it from I think are both AT&T...at least one of them is. Does anyone have any input on this?

View 13 Replies View Related

Nexus :: Ring Multiple Times For Text Messages

May 21, 2010

I'm new to Android as I just got the Nexus One. On my previous flipphone, when I get a text message, it will make the ringtone sound a 4 or 5 times. My question is how to set android to do multiple rings for texts instead of once? Also, is there a way to make it sound the notification ringtone for texts only, and not for app alerts, like the weather channel widget?

View 1 Replies View Related

Motorola Droid 2 :: Same Contact Displayed Multiple Times

Sep 5, 2010

So I searched the forum but no results to what I want to know. After setting up my new D2, the phone has listed some, actually all, of my contacts multiple times. Each contact is listed 4 times, and it's really annoying having to scroll through 400 people when there really should only be around 100. I haven't been able to find any of the contact management options that my old D1 had, ie filters and stuff. Can anyone point me in the right direction?

View 2 Replies View Related

Samsung Behold 2 :: Turned Wifi On And Off Multiple Times

Apr 11, 2010

A few hours after I have installed the Behold 2 Stock ( No Twiz w/ Root & Busybox ) w/ Update, my wifi stops working. I'm not sure if there is any connections. My connection will turn blue, but it won't connect. I tried restarting the phone, restored the connections, and set up wifi again. I've turned wifi on and off multiple times.

View 10 Replies View Related

Motorola Droid :: Formatting Partitions Multiple Times

Apr 9, 2010

When flashing new ROMS (as in going from a 2.01 BB to a 2.1 based BB), what's the reason for formatting the various partitions (such as system & data) more than once?

View 1 Replies View Related

HTC Eris :: Browser Crash Multiple Times Daily

Aug 4, 2010

This is an improvement? Anyone else's browser crash 20+ times a day on Evil Eris?

View 13 Replies View Related

Samsung Captivate :: Vibrate Should Me Longer - Go Off Multiple Times

Oct 3, 2010

I know it may be minor but I wish the my Captivate could edit how times the phone vibrates for calls, sms, calendar etc. I have my phone in my pocket ALL the time and always have it on vibrate cuz i need it that way. maybe someone will create something to edit the vibrate feature.

View 6 Replies View Related

General :: SMS Messages From IPhones Receiving Multiple Times

Jul 7, 2013

Much of the time I get a text message from an iPhone it either:

1) Comes through multiple times (this happens with AT&T iPhones)

Or

2) Comes through chopped up into individual messages that are also displayed out of order (usually from Verizon iPhones)

I have a screenshot of issue No. 2 but the AC app is not letting me upload it for some reason (never had an issue before) and I can't get the link to work from the desktop (grrr)

Are these issues because of iMessage and what looks like its inability to play well with anything non-Apple? LG-E970

View 7 Replies View Related

Motorola Droid X :: Pull Battery Multiple Times To Restart?

Sep 27, 2010

If I ever want to restart my phone I have to pull my battery multiple times to get it to boot. It will load the Motorola M and sit there. Usually takes about 2 or 3 battery pulls to move onto the droid logo. I am on 2.3.9 Leak and am running the Revolution Theme.

View 2 Replies View Related

HTC Droid Eris :: Bluetooth Connects - Disconnects Multiple Times

Feb 22, 2010

The Eris Bluetooth connects, then may disconnect and then connect to my car multiple times.

View 3 Replies View Related

Motorola Droid :: Swype Automatically Downloading Multiple Times

Sep 12, 2010

I read today that there was a new version of Swype available from their download page, so I logged in and downloaded it and installed it. Everything it working fine. However, since I installed it I have noticed in the notification bar that I have now downloaded two new Swype installed files. Thing is, I never went back and redownloaded it. Once I had opened up Twicca and once I had opened up the Market apps and it just started donwloading.

Anyone have any idea what's going on and how it's downloading without me instructing it to?

View 3 Replies View Related

General :: Google Music App / Songs Showing Up Multiple Times?

Jun 25, 2012

In the Google Music app my songs are showing up 3 times, same when I try to set an alarm with a song. Only the last of the 3 of any song will play. I'm unsure what I need to clear to fix this. I wiped my cache's in CWM and rebooted but it didn't change anything. They were coming up the same in PlayerPro but I did a refresh tracks in app and it fixed it. App that are giving me problems are Google Music, N7 & the stock Samsung player. So I'm assuming it's not an app issue as it does it on different ones. I'm running the latest Perfection ICS rom.

View 2 Replies View Related







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