[android-developers] With security keyguard active transition between activities is weird

2014-03-30 Thread Teo [GD API Guru]
Hi,

maybe someone has an idea, i'm looking for an answer for ages but no luck.


I have my main activity A and when the user presses a button i open another 
activity B. But when this happens B doesn't just appear on top of A:
- A disappears
- secure keyguard shows up
- B appears

And when i get rid of B the same thing happens. This is annoying because 
there's a lot of flickering with no real purpose on the screen. Is there 
any way to achieve direct transition from A to B while keyguard is active 
without merging the 2 activities into 1?
Thanks,
Teo

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Can't disable keyguard anymore

2010-12-04 Thread Teo [GD API Guru]
Hi,

has something changed in the latest OS update (Android 2.2.1, Nexus
One) about disabling keyguards? I have an app that has an alarm
feature and wakes up the phone + disables the keyguard; the keyguard
disabling doesn't happen anymore. Here's what i'm doing:

private final void unlockScreen() {
final KeyguardManager km = ((KeyguardManager)
getSystemService(Activity.KEYGUARD_SERVICE));
if (km.inKeyguardRestrictedInputMode()) {
  final KeyguardLock kl = km.newKeyguardLock(KEYGUARD_SERVICE);
  kl.disableKeyguard();
}
  }

  private final void wakeScreen() {
final boolean dim = sPref.getBoolean(Config.ALARM_DIM, false);
final PowerManager.WakeLock wl = ((PowerManager)
getSystemService(Context.POWER_SERVICE))
.newWakeLock((dim ? PowerManager.SCREEN_DIM_WAKE_LOCK
: PowerManager.SCREEN_BRIGHT_WAKE_LOCK)
| PowerManager.ACQUIRE_CAUSES_WAKEUP, TagToDoWake);
wl.acquire();
new Handler().postDelayed(new Runnable() {
  public void run() {
wl.release();
  }
}, 2);

And i'm calling them in this order:
wakeScreen();
unlockScreen();

Thanks,
Teo

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Why would SQLiteOpenHelper.onUpgrade fail?

2010-09-09 Thread Teo [GD API Guru]
Hi,

every time i increase my database version and push the upgraded app to
the users, something weird happens.. For some it works perfectly fine,
and some report crashes (including through the Market's reporting
system) caused by the lack of table columns i just added in onUpgrade.
If you want to see the method:
http://code.google.com/p/tag-todo-list/source/browse/trunk/Donut/src/com/android/todo/data/ToDoDB.java#136

I can't spot any exceptions that appear in onUpgrade. What i'm
currently doing to bypass these problems is intercepting the
exceptions where the new fields are invoked for the first time and
then calling onUpgrade 'manually', which is kind of dirty. Does anyone
have any idea what might be happening?

Thanks,
Teo

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Bringing an Activity to front

2010-08-29 Thread Teo [GD API Guru]
Hi,

i have multiple instances of the same activity, is there a way to
programatically bring one of the instances to the front? I've read
some existing threads and it seems there's no way to do this... My
specific use case is of a Snooze/Dismiss type of screen. The problem
would appear when the user sets 2 alarms close by:
- first alarm is triggered, so first instance of the activity is
created
- user doesn't dismiss the alarm
- second alarm is triggered, so the second activity instance is
created and comes to the front
- user doesn't dismiss this either
- first activity instance reminds the user about the first alarm
(sound can be played, but the UI is still somewhere in the background)

Any suggestions?

Thanks,
Teo

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Failed installs

2010-08-22 Thread Teo [GD API Guru]
Hi,

lately i've been receiving reports of failed updates (e.g. myTouch 3G,
HTC Incredible) for my app. After the 'failed' update, they're saying
they're able to launch the app only from the Open button in the
Market, but not from the app icon. Is this happening to other devs
too? Anyone knows what this is about?

Thanks,
Teo

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Failed installs

2010-08-22 Thread Teo [GD API Guru]
Users are referring to the main icons, but the funny thing is i indeed
renamed the main activity, thanks for the tip! I'll try naming it back
and see what happens.

On Aug 22, 3:17 pm, RichardC richard.crit...@googlemail.com wrote:
 Did you change the MAIN/LAUNCHER activity when you released the
 update?

 If you did you will invalidate any shortcuts the users have
 created.  Only the Icon in the applications panel will work until the
 user  re-creates their shortcuts.

 On Aug 22, 9:26 am, Teo [GD API Guru] teomina...@gmail.com wrote:



  Hi,

  lately i've been receiving reports of failed updates (e.g. myTouch 3G,
  HTC Incredible) for my app. After the 'failed' update, they're saying
  they're able to launch the app only from the Open button in the
  Market, but not from the app icon. Is this happening to other devs
  too? Anyone knows what this is about?

  Thanks,
  Teo

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: QSB on Android help plz?

2010-08-17 Thread Teo [GD API Guru]
Hi,

From what i know the content provider isn't instantiated until/unless
it's needed (someone correct me if i'm wrong).



On Aug 17, 1:40 pm, sagare sagar.ekb...@gmail.com wrote:
 Hi All,
     I want a to use a Quick Search Box in my application to search my
 application data so in a process of implementing it i went 
 throughhttp://developer.android.com/guide/topics/search/search-dialog.html
 and SearchableDictonary sample in SDk so as per what i got QSB
 requires a content provider for giving suggestion but in my
 application i wish not to have a content provider coz the data on
 which i want to have search is temporary and should not persist So is
 there a way to do this ?  or i have to write my own custom search
 component?

     Also another question I have is is there a way to set a location
 for the QSB dialog within the screen. Please help me in this regards.

 Thanks,
 Sagar

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Moving app to SD card

2010-08-17 Thread Teo [GD API Guru]
Hi,

as stated here: 
http://android-developers.blogspot.com/2010/07/apps-on-sd-card-details.html
, even if an app is installable on the SD card, the private data files
remain on the phone...

If this is true, my question is: are users aware of this? This would
mean that moving/installing on the SD card means only the app
installation is mobile, and not the database, for example. Do you know
more about actual use cases for this 'moving to SD card' feature?

I'm trying to figure this out because more and more users are asking
me to allow it to be movable to the SD, but i don't want to create
false expectations (e.g. user changes phone, keeps SD card, but loses
his 'stuff');

Thanks,
Teo

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: renaming a image file on sd card

2010-08-07 Thread Teo [GD API Guru]
Hi, have you found a solution to this problem? Strangely i have it a
bit different: can rename without remounting anything (only with the
renameTo function) on the sdcard but can't rename in the local
storage.

On Jun 17, 9:49 am, focode programarun...@gmail.com wrote:
 i have to change the name of a jpgfile, for that i have written the
 following code

 sdcard = Environment.getExternalStorageDirectory();
 from = newFile(sdcard,imagePath.substring(8).toString());
 to = newFile(sdcard,/DCIM/RoseVille_+Info.getText()
 +_+Amount.getText()+_+timeStampFormat.format(n ew Date())+.jpg);

 if(from.renameTo(to)==true)
 {
 /// if renamming is successfull;

 }

 this code creates a newfilewith the required name while thefile
 which i wanted to change is still their on sd card , if i remount the
 sd card then the oldfilegets deleted and the renamedfileremains
 their.

 so my problem is how torenamethefilewithout remounting the sd card

 thanks and regards
 focode

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Changing project build target

2010-08-03 Thread Teo [GD API Guru]
This question might have been asked a while ago (in fact i asked it
too but still no answer :).

Let's say i'm changing the project build target from Android 1.6 to
Android 2.2 and that the android:minSdkVersion attribute is changed
accordingly. What will
happen to my current users who don't have Android 2.2? Will they
receive the update through Android Market automatically? Will it try
to install the app and fail, but the current (already installed)
version will still work? Will the failure break the app? Or will the
Market ignore such users and they can continue using the 'old' app
without any extra notifications?

Thanks,
Teo

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] What do users see when i change the project build target?

2010-06-09 Thread Teo [GD API Guru]
This question might have been asked a while ago, but i'm still
confused, and things could have changed in the mean time.

Let's say i'm changing the project build target from Android 1.6 to
Android 2.1 (not sure i will, but just hypothetically :) and that the
android:minSdkVersion attribute is changed accordingly. What will
happen to my current users who don't have Android 2.1? Will they
receive the update through Android Market automatically? Will it try
to install the app and fail, but the current (already installed)
version will still work? Will the failure break the app? Or will the
Market ignore such users and they can continue using the 'old' app
without any extra notifications?

Thanks,
Teo

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] What do users see when i change the project build target?

2010-06-09 Thread Teo [GD API Guru]
This question might have been asked a while ago, but i'm still
confused, and things could have changed in the mean time.

Let's say i'm changing the project build target from Android 1.6 to
Android 2.1 (not sure i will, but just hypothetically :) and that the
android:minSdkVersion attribute is changed accordingly. What will
happen to my current users who don't have Android 2.1? Will they
receive the update through Android Market automatically? Will it try
to install the app and fail, but the current (already installed)
version will still work? Will the failure break the app? Or will the
Market ignore such users and they can continue using the 'old' app
without any extra notifications?

Thanks,
Teo

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-12 Thread Teo [GD API Guru]
Hi guys,

i don't want to be a smart-ass or anything :) It may seem to people
looking at this thread that some are complaining which i don't think
is true.. Thanks Google for doing this btw! Must be a logistical
nightmare to deliver so many phones at once, especially in Europe too,
which, considering we're talking about the Nexus, is kind of cutting
edge because otherwise Google doesn't directly sell phones in most of
our countries. But precisely for this reason it's probably very hard
for us to have the official status of every phone, so i think posting
updates or about our own situations, in this thread, is understandable
because we know more about what and when to expect...

Just my humble thoughts :)

P.S. I think it was done before, but i'll ask for it again anyway: if
you get the phone (especially in the EU) from the seeding program (and
not from ADC cause apparently there was some confusion about that)
please remember us and let us know :)


On Apr 12, 9:32 pm, Mirko Nasato mirko.nas...@gmail.com wrote:
 Yeah why don't you two launch your own free gift program, only to call
 it off some time later? There wouldn't be nothing wrong with that
 according to your reasoning, right? :)

 Kind regards

 Mirko

 On Apr 12, 3:16 pm, Thomas Riley tomrile...@googlemail.com wrote:



  I agree with Al, in some ways, If Google suddenly said it's not doing
  the program any more we couldn't complain as it's a free gift.
  However, the lab attendees, forum supporters and free app developers
  all have a combined positive effect on the Android platform.

  Anyway Al, fancy doing an AndAppStore DeviceSeedingprogram ? :p

  Tom.

  On Apr 12, 1:49 pm, Al Sutton a...@funkyandroid.com wrote:

   If they were only going to paid-app developers I'd understand your
   point, but theseedingprogram is getting devices to lab attendees,
   forum supporters and free app developers as well as paid ones, so
   there are a fair number of people in there that won't be making
   anything back for Google because either they won't release apps or
   they won't charge for them.

   As you're no worse off than before you got your email I don't see why
   you're sad, I'd understand being sad if you'd had to do something or
   pay something specifically to qualify for the 'phone, but in this case
   they're rewards for past actions, so you haven't really been put-out
   and you're definitely not out of pocket if the 'phone doesn't turn up.

   Al.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using remove me as the subject.


[android-developers] 'Squeezing' a button on the right side

2010-04-11 Thread Teo [GD API Guru]
Hi,

you probably heard similar problems before but i can't figure out how
to do this programatically. I have a vertical layout with FILL_PARENT
on both dimensions. In it i have multiple horizontal layouts with
FILL_PARENT width and WRAP_CONTENT height. In each of these horizontal
layouts i want to put a checkbox on the left and an ImageButton on the
right. The problem is i can't stop the checkbox from growing to the
point of pushing the ImageButton out of view.. (same thing happens
when the checkbox has FILL_PARENT or WRAP_CONTENT widths).

For individual stuff i managed to do it in the XML layout very easily:

...something... android:layout_width=fill_parent
android:layout_height=wrap_content
android:layout_weight=1 /

...something... android:layout_width=wrap_content
android:layout_height=wrap_content /

Same thing doesn't work programatically though, and i've tried other
gravity, weight, layout combinations.. Can someone who tried this tell
me how they did it, or how it should be done?

Thanks,
Teo

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using remove me as the subject.


[android-developers] Do i need to call DatabaseHelper.close()?

2010-04-08 Thread Teo [GD API Guru]
I have a DatabaseHelper instance for db stuff. Until now i kind of had
a mess of everything but made it a singleton so it won't need to be
created over and over again. The same object is used both in the
fullscreen app and in the widget. The thing is, in case the user also
has my widget on the home screen, when the fullscreen app is closed i
wouldn't want to close the dbHelper in onDestroy. My question is: does
Android or the garbage collector do all the necessary stuff to release
the memory in case it *isn't* used again? (the case in which the
widget isn't added)

Thanks,
Teo

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-29 Thread Teo [GD API Guru]
Well, sorry to add to this mammoth thread, but i'm going nuts with
anticipation =]
Romania, still waiting =]

On Mar 29, 3:03 pm, ratson materem...@gmail.com wrote:
 Hungary, still waiting ;) i guess EU shall receive N1s in the next
 days...

 On márc. 29, 11:25, Paul stuem...@gmail.com wrote:



  Germany, still waiting.
  ... and growing nervous :)

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Re: Fail to create a new file on a sdcard

2009-12-09 Thread Teo [GD API Guru]
Have you managed to do that? I'm very interesting in doing this
myself... Something must have happened because what works previously
doesn't anymore and breaks functionality for a lot of users.

On Dec 3, 3:14 am, Tan saurabhtanej...@googlemail.com wrote:
 Hi all

 I have the same problem, the code writes to emulator even if there is
 no permission and does not write to SD card even if there is
 permission WRITE_EXTERNAL_STORAGE.  If it is not possible to write in
 system process then how can i modify my code? Here is the snippet
 that
 writes stuff
 File directory = new File(Environment.getExternalStorageDirectory
 ().getPath() , fingerprint_UC_basement);
                    if (!directory.exists()) {
                            directory.mkdir();
                    }
                    File file = new File(directory.getPath() ,
 filename);
                    if (!file.exists()  directory.exists()){
                            try {
                                file.createNewFile();
                                FileOutputStream fo = new
 FileOutputStream(filename);
                                String a = Size:  + APs.size();
                                fo.write(a.getBytes());
                                for(int i=0; i APs.size(); i++){
                                 String b = APs.get(i).getBSSID() + 
 
 + APs.get(i).getdBm() +   + APs.get(i).getCount();
                                 fo.write(b.getBytes());
                                }
                                fo.close();
                            } catch (IOException e) {
                                    Log.d(TAG,File creation failed
 for
  + file);
                            }
                    }

 Someone also pointed out that its not possible to write to SD card
 through System process, we have to run a separate service for that.
 Can anyone verify that? Thanks

 Tan

 On Nov 12, 11:43 am, lei eirst...@gmail.com wrote:



  Thanks, Mark. It's solved. The permission of WRITE_EXTERNAL_STORAGE is
  required in Android SDK1.6,
  also I find a link describe 
  it:http://developer.android.com/sdk/android-1.6.html

  On Nov 12, 3:44 pm, Mark Murphy mmur...@commonsware.com wrote:

   lei wrote:
I find thefilethat path to Environment.getExternalStorageDirectory()
is not writable, how could I change it?

   Make sure your app has the WRITE_EXTERNAL_STORAGE permission.

   --
   Mark Murphy (a Commons 
   Guy)http://commonsware.com|http://twitter.com/commonsguy

   Android Training in Germany, 18-22 January 2010:http://bignerdranch.com

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Phone still making sounds when it's silent?

2009-12-02 Thread Teo [GD API Guru]
Hi, i got reports from some users that after making the phone silent
with my app, sometimes, text messages or emails still make sounds. I
don't have a phone so this is why i'm asking...

The app is making the phone silent this way:

  final AudioManager am = (AudioManager) context.getSystemService
(Context.AUDIO_SERVICE);
  am.setRingerMode(AudioManager.RINGER_MODE_SILENT);

Thanks,
Teo

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Weird EditText behavior in Android 2.0

2009-11-19 Thread Teo [GD API Guru]
Hi,

i've bumped into some weird behavior in Android 2.0 in the emulator:
newly created AVDs show some kind of a Japanase (if i'm not mistaking)
IME when i type in the textbox. The text is shown in the IME but not
in the textbox. I've also seen that disabling certain options which
are enabled by default in Language  Keyboard settings temporarily fix
this for a number of sessions, but then it randomly reverts back...

Has anyone else seen this?

Thanks,
Teo

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Moving ADC non-winner to regular Market

2009-11-12 Thread Teo [GD API Guru]
Yep, that's what i did too, the package name is reserved. But i think
the name was also reserved too, i had to also change a small detail in
the name so it would accept my submission.

On Nov 12, 7:08 am, Andrei gml...@gmail.com wrote:
 i think you have to rename your package and upload as new

 On Nov 11, 11:37 pm, SR stan.r...@gmail.com wrote:



  Hi,

  I've got an application that didn't make the cut.  How can I get it to
  move/or can someone at Google please move the app from the ADC site
  back to normal Android Market panel so I can upload the updated
  version that included three more months work and, like, a zillion
  squashed bugs?

  Thanks!

  SR

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: HTC Tatto for Android Application testing

2009-11-12 Thread Teo [GD API Guru]
I would also be interested in this since Tattoo is pretty cheap
compared to other Android phones here...

On Nov 12, 8:04 am, Nemat nemate...@gmail.com wrote:
 Hey friends

 I have to buy a new Android phone for testing android applications I
 work upon.What about HTC Tatoo??

 Can I buy that one??This would be specifically for testing not for
 personal use...Can you guys help me out in choosing a good Android
 device for testing ...please

 Thanks in advance
 Nemat

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Possible bug with Intents and PendingIntents on Android 2.0 AVD

2009-11-07 Thread Teo [GD API Guru]
Hi everyone,

i have some code that is creating and removing alarms, and which works
great in Android 1.5 and 1.6 but breaks on the Android 2.0 AVD.

The code that's giving this exception is:

  Intent intent = new Intent(context, AlarmReceiver.class).setFlags
(
  Intent.FLAG_ACTIVITY_NEW_TASK).putExtra(SleepDB.KEY_ID, 0);
  PendingIntent pi = PendingIntent.getBroadcast(context, 0 /* id
*/,
  intent, 0);

The second line has the problems, the one which actually gets the
broadcast. I pasted below the relevant part of the log:

11-07 12:08:56.042: ERROR/AndroidRuntime(242): Uncaught handler:
thread main exiting due to uncaught exception
11-07 12:08:56.062: ERROR/AndroidRuntime(242):
java.lang.IllegalArgumentException: Can't use
FLAG_RECEIVER_BOOT_UPGRADE here
11-07 12:08:56.062: ERROR/AndroidRuntime(242): at
android.os.Parcel.readException(Parcel.java:1222)
11-07 12:08:56.062: ERROR/AndroidRuntime(242): at
android.os.Parcel.readException(Parcel.java:1206)
11-07 12:08:56.062: ERROR/AndroidRuntime(242): at
android.app.ActivityManagerProxy.getIntentSender
(ActivityManagerNative.java:2053)
11-07 12:08:56.062: ERROR/AndroidRuntime(242): at
android.app.PendingIntent.getBroadcast(PendingIntent.java:230)
11-07 12:08:56.062: ERROR/AndroidRuntime(242): at
com.teo.lifestyle.sleep.Utils.deleteAlarms(Utils.java:57)

I googled FLAG_RECEIVER_BOOT_UPGRADE but there were no results. Since
this works ok on previous versions of Android i assume it's a bug..
Should i file it or have i actually missed something?

Thanks!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en