Re-register AlarmManager events on upgrades

by Dianne Hackborn » Wed, 18 Mar 2009 10:36:37 GMT


Sponsored Links
 Fwiw, cupcake will add a new field to PACKAGE_ADDED to tell you if this was
due to an update, and allow this broadcast to be received by the app to
restart itself.

On Tue, Mar 17, 2009 at 3:44 PM, daniel.benedykt






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~---------~--~----~------------~-------~--~----~



Re-register AlarmManager events on upgrades

by Stoyan Damov » Wed, 18 Mar 2009 18:47:52 GMT


 


This cupcake thing very much reminds me of Duke Nukem Forever...

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Re-register AlarmManager events on upgrades

by Marco Nelissen » Thu, 19 Mar 2009 00:53:07 GMT


 



Really? You think Cupcake is not going to ship in the next 12 years?

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. SQLiteConstraintException: error code 19: constraint failed when deleting from sqlite

Hi all, i have simple relation between songs and albums one to many.
I created the album table like this
CREATE TABLE albums
(id INTEGER PRIMARY KEY ASC,
name TEXT,
additional TEXT)

My song table is like this
StringBuilder sqlQuery = new StringBuilder();
CREATE TABLE songs
(id INTEGER PRIMARY KEY ASC,
album_fk INTEGER NOT NULL,
title TEXT,
url TEXT,
duration BIGINT NOT NULL)

and i have trigger to check when i wan't to delete an album if there
are songs in it
CREATE TRIGGER trigger_on_delete
BEFORE DELETE ON albums
FOR EACH ROW BEGIN
SELECT RAISE(FAIL,'album has songs cannot be deleted')");
WHERE (SELECT album_fk FROM songs WHERE album_fk = OLD.id) IN NOT
NULL;)
END

and everything is ok and its working fine. But sometimes i got this
error
Exception: android.database.sqlite.SQLiteConstraintException: error
code 19: constraint failed
Stack Trace :
android.database.sqlite.SQLiteStatement.native_execute(Native Method)
android.database.sqlite.SQLiteStatement.execute(SQLiteStatement.java:
66)
when i am trying to delete an album. I know what #define
SQLITE_CONSTRAINT  19   /* Abort due to constraint violation */ stands
for but i can't what constraints can be violated when deleting an
album.
I can't reproduce this so i can't debug it to find out what's the
problem any ideas what could go wrong and cause such error. I've tried
playing with string encoding but i think that's not the problem.

-- 

2. Is it possible to have a single ui element instance across the application?

It doesnt seem possible, all code I've looked at from Google applications 
repeats the common portions of activity display in all layout files.

ll...@meridja.com






>

3. R.java file of my project is deleted.......how to get it back

4. How to use internet in htc mobile if net is in my pc

5. Request to publich app in Korea

6. R.java file of my project is deleted.......how to get it back

7. Jar in Jar