[android-developers] Re: rrule not working
Problem found: https://code.google.com/p/android/issues/detail?id=60589 It was really difficult to find the bug, but I've found it... On Wednesday, 18 September 2013 16:42:12 UTC+1, drjunior wrote: In order to test and debug just this piece of code I've created another app only with that part of the code that creates the event and it works surprisingly! So, the same code running on different apps has different effects(one creates the events and the repetitions correctly and the previous/main not). I've already the main/previous app working correctly creating the events with repetition. But then suddenly it started not creating the events!! It appeared also the message you have many calendar deletions once. Could my app with package x have been prohibited by the calendar of creating new events? On Wednesday, 18 September 2013 12:59:02 UTC+1, drjunior wrote: This is the piece of code that I'm using: Calendar beginTime = Calendar.getInstance(); #increment one day to the actual time (just for precaution) beginTime.add(Calendar.HOUR, 1); beginTime.add(Calendar.DAY_OF_YEAR, 1); startMillis = beginTime.getTimeInMillis(); ContentResolver cr = getContentResolver(); ContentValues values = new ContentValues(); values.put(Events.DTSTART, startMillis); values.put(Events.TITLE, eventitle bla bla bla); values.put(Events.DESCRIPTION, description bla bla bla); values.put(Events.CALENDAR_ID, calID); values.put(Events.RRULE, FREQ=DAILY;WKST=MO); values.put(Events.DURATION, P3600S); values.put(Events.EVENT_TIMEZONE, Europe/Lisbon); Uri uri = cr.insert(Events.CONTENT_URI, values); Any idea why this is not working? On Wednesday, 18 September 2013 02:06:51 UTC+1, drjunior wrote: I've been trying to create an event in the calendar that repeats every day. I'm not using the intent mechanism, I'm creating the event inserting the event directly in the contentprovider. I'm specifying everything that is necessary: - rrule = FREQ=DAILY - event_timezone = DefaultTimezone - calendar_id - dtstart - duration. However the event's instances are not created. I've already checked the sql event record that is inserted in the db(pulled the sqlite db file from a device with root) and seems that is everything ok(I've compared the record that I'm inserting with others inserted by the google calendar app and they are similar). But if I create an event with daily recurrence using the google calendar, it creates the instances correctly, however if I create an event inside my app with daily recurrence the instances are not being created. What's can be the possible cause of this problem? -- 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/groups/opt_out.
[android-developers] Re: Calendar API has an awkward behaviour
Problem found: https://code.google.com/p/android/issues/detail?id=60589 It was really difficult to find the bug, but I've found it... On Wednesday, 25 September 2013 11:07:44 UTC+1, drjunior wrote: I have this piece of code that creates events with repetition (RRULE) in the main user's calendar: Calendar beginTime = Calendar.getInstance(); #increment one day to the actual time (just for precaution) beginTime.add(Calendar.HOUR, 1); beginTime.add(Calendar.DAY_OF_YEAR, 1); startMillis = beginTime.getTimeInMillis(); ContentResolver cr = getContentResolver(); ContentValues values = new ContentValues(); values.put(Events.DTSTART, startMillis); values.put(Events.TITLE, eventitle bla bla bla); values.put(Events.DESCRIPTION, description bla bla bla); values.put(Events.CALENDAR_ID, calID); values.put(Events.RRULE, FREQ=DAILY;WKST=MO); values.put(Events.DURATION, P3600S); values.put(Events.EVENT_TIMEZONE, Europe/Lisbon); Uri uri = cr.insert(Events.CONTENT_URI, values); I've tested this piece of code during more than 3 weeks and it was working perfectly. Then suddenly it started not working!! I've created another app only with that part of the code that creates the event and it works, unexpectedly! So, the same code running on different apps has different effects(one creates the events and the repetitions correctly and the other don't). Is it possible that google calendar provider denied/prohibited my app with package x of creating new events with repetition? -- 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/groups/opt_out.
[android-developers] Calendar API has an awkward behaviour
I have this piece of code that creates events with repetition (RRULE) in the main user's calendar: Calendar beginTime = Calendar.getInstance(); #increment one day to the actual time (just for precaution) beginTime.add(Calendar.HOUR, 1); beginTime.add(Calendar.DAY_OF_YEAR, 1); startMillis = beginTime.getTimeInMillis(); ContentResolver cr = getContentResolver(); ContentValues values = new ContentValues(); values.put(Events.DTSTART, startMillis); values.put(Events.TITLE, eventitle bla bla bla); values.put(Events.DESCRIPTION, description bla bla bla); values.put(Events.CALENDAR_ID, calID); values.put(Events.RRULE, FREQ=DAILY;WKST=MO); values.put(Events.DURATION, P3600S); values.put(Events.EVENT_TIMEZONE, Europe/Lisbon); Uri uri = cr.insert(Events.CONTENT_URI, values); I've tested this piece of code during more than 3 weeks and it was working perfectly. Then suddenly it started not working!! I've created another app only with that part of the code that creates the event and it works, unexpectedly! So, the same code running on different apps has different effects(one creates the events and the repetitions correctly and the other don't). Is it possible that google calendar provider denied/prohibited my app with package x of creating new events with repetition? -- 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/groups/opt_out.
[android-developers] Re: rrule not working
This is the piece of code that I'm using: Calendar beginTime = Calendar.getInstance(); #increment one day to the actual time (just for precaution) beginTime.add(Calendar.HOUR, 1); beginTime.add(Calendar.DAY_OF_YEAR, 1); startMillis = beginTime.getTimeInMillis(); ContentResolver cr = getContentResolver(); ContentValues values = new ContentValues(); values.put(Events.DTSTART, startMillis); values.put(Events.TITLE, eventitle bla bla bla); values.put(Events.DESCRIPTION, description bla bla bla); values.put(Events.CALENDAR_ID, calID); values.put(Events.RRULE, FREQ=DAILY;WKST=MO); values.put(Events.DURATION, P3600S); values.put(Events.EVENT_TIMEZONE, Europe/Lisbon); Uri uri = cr.insert(Events.CONTENT_URI, values); Any idea why this is not working? On Wednesday, 18 September 2013 02:06:51 UTC+1, drjunior wrote: I've been trying to create an event in the calendar that repeats every day. I'm not using the intent mechanism, I'm creating the event inserting the event directly in the contentprovider. I'm specifying everything that is necessary: - rrule = FREQ=DAILY - event_timezone = DefaultTimezone - calendar_id - dtstart - duration. However the event's instances are not created. I've already checked the sql event record that is inserted in the db(pulled the sqlite db file from a device with root) and seems that is everything ok(I've compared the record that I'm inserting with others inserted by the google calendar app and they are similar). But if I create an event with daily recurrence using the google calendar, it creates the instances correctly, however if I create an event inside my app with daily recurrence the instances are not being created. What's can be the possible cause of this problem? -- 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/groups/opt_out.
[android-developers] Re: rrule not working
In order to test and debug just this piece of code I've created another app only with that part of the code that creates the event and it works surprisingly! So, the same code running on different apps has different effects(one creates the events and the repetitions correctly and the previous/main not). I've already the main/previous app working correctly creating the events with repetition. But then suddenly it started not creating the events!! It appeared also the message you have many calendar deletions once. Could my app with package x have been prohibited by the calendar of creating new events? On Wednesday, 18 September 2013 12:59:02 UTC+1, drjunior wrote: This is the piece of code that I'm using: Calendar beginTime = Calendar.getInstance(); #increment one day to the actual time (just for precaution) beginTime.add(Calendar.HOUR, 1); beginTime.add(Calendar.DAY_OF_YEAR, 1); startMillis = beginTime.getTimeInMillis(); ContentResolver cr = getContentResolver(); ContentValues values = new ContentValues(); values.put(Events.DTSTART, startMillis); values.put(Events.TITLE, eventitle bla bla bla); values.put(Events.DESCRIPTION, description bla bla bla); values.put(Events.CALENDAR_ID, calID); values.put(Events.RRULE, FREQ=DAILY;WKST=MO); values.put(Events.DURATION, P3600S); values.put(Events.EVENT_TIMEZONE, Europe/Lisbon); Uri uri = cr.insert(Events.CONTENT_URI, values); Any idea why this is not working? On Wednesday, 18 September 2013 02:06:51 UTC+1, drjunior wrote: I've been trying to create an event in the calendar that repeats every day. I'm not using the intent mechanism, I'm creating the event inserting the event directly in the contentprovider. I'm specifying everything that is necessary: - rrule = FREQ=DAILY - event_timezone = DefaultTimezone - calendar_id - dtstart - duration. However the event's instances are not created. I've already checked the sql event record that is inserted in the db(pulled the sqlite db file from a device with root) and seems that is everything ok(I've compared the record that I'm inserting with others inserted by the google calendar app and they are similar). But if I create an event with daily recurrence using the google calendar, it creates the instances correctly, however if I create an event inside my app with daily recurrence the instances are not being created. What's can be the possible cause of this problem? -- 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/groups/opt_out.
[android-developers] rrule not working
I've been trying to create an event in the calendar that repeats every day. I'm not using the intent mechanism, I'm creating the event inserting the event directly in the contentprovider. I'm specifying everything that is necessary: - rrule = FREQ=DAILY - event_timezone = DefaultTimezone - calendar_id - dtstart - duration. However the event's instances are not created. I've already checked the sql event record that is inserted in the db(pulled the sqlite db file from a device with root) and seems that is everything ok(I've compared the record that I'm inserting with others inserted by the google calendar app and they are similar). But if I create an event with daily recurrence using the google calendar, it creates the instances correctly, however if I create an event inside my app with daily recurrence the instances are not being created. What's can be the possible cause of this problem? -- 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/groups/opt_out.
[android-developers] Re: Request to official ADC2 team.
+ On Sep 15, 8:08 am, RSTanvir tanvircue...@gmail.com wrote: + On Sep 15, 1:14 pm, Saurav to.saurav.mukher...@gmail.com wrote: + Regards, Saurav Mukherjee. On Tue, Sep 15, 2009 at 12:10 AM, Mobidev android.mobi...@gmail.com wrote: . Once upon a time, we had this little group… http://groups.google.com/group/android-challengeAndroidChallenge: Discuss the Android Developer Challenge, including questions on contest details. You can also seek other developers to join a team effort. …then came this message… http://groups.google.com/group/android-challenge/browse_thread/thread... …and the group was closed for ever. A humble request to ADC2 team to officially start and moderate a new ADC2 group similar to the previous android-challenge group. ADC2 messages are scattered in android-developers and android-discuss groups. ADC2 discussions does not fit in either of these groups. There will be hundreds of queries, comments, news and PR pitches once the ADC2 judging app goes live. So please could you start a ADC2 discussion group at the earliest. Thanks. P.S. Droids of the planet please vote with '+' or '–' for this request. --~--~-~--~~~---~--~~ 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: ADC2 entries so far...
App: Mover, exciting way to track the way you move! Category: Health Website: http://mover.projects.fraunhofer.pt On Sep 15, 8:06 am, tj at...@iki.fi wrote: App: GooMemo, notes app with GDocs sync Category: Productivityhttp://goomemo.com Tomi Mickelsson --~--~-~--~~~---~--~~ 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: SoftKeyboard doesn't appear on AlertDialog
I resolved the problem changing the layout from place... Because I have my set of views inside the alertdialog title using setCustomTitle (view v) . I don't understand why SoftKeyboard does not appear... P.S. I test always in a G1. On Aug 10, 5:14 pm, Dianne Hackborn hack...@android.com wrote: If you are running on the emulator, and by vertical orientation you mean landscape, then this is the expected behavior since the emulator currently emulates a G1 where a hard keyboard is available in landscape. On Thu, Jul 30, 2009 at 3:53 AM, drjunior drjunior@gmail.com wrote: Hi, I have one EditText inside one AlertDialog. When the EditText has focus the SoftKeyboard doesn't appear with vertical screen orientation. I have other EditTex in a common Layout and this works fine. Someone with same problem? -- 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, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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: SoftKeyboard doesn't appear on AlertDialog
Hi The bug is on alertdialog with one custom view on Title. If this view has one or more EdittText, the Softkeyboard doesn't appear when you click on they :s drjunior On Jul 31, 7:24 am, Gulfam gulfa...@gmail.com wrote: Hi, Can you please post your code snippet? Gulfam On Jul 30, 3:53 pm,drjuniordrjunior@gmail.com wrote: Hi, I have one EditText inside one AlertDialog. When the EditText has focus the SoftKeyboard doesn't appear with vertical screen orientation. I have other EditTex in a common Layout and this works fine. Someone with same problem? --~--~-~--~~~---~--~~ 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] SoftKeyboard doesn't appear on AlertDialog
Hi, I have one EditText inside one AlertDialog. When the EditText has focus the SoftKeyboard doesn't appear with vertical screen orientation. I have other EditTex in a common Layout and this works fine. Someone with same problem? --~--~-~--~~~---~--~~ 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: Get the coordinates of screen when I touch it
Well, this is another problem(logic problem)... But my first solution to your problem is: First, you need to know what's the latitude, longitude of your central point in your MapView... Second, you catch the point where user make a mouse click ( the up left side of screen have the coordinates 0,0) Last, you need to understand ,translate and add the coordinates from your MotionEvent to the central point of your MapView.. On Sep 19, 6:13 pm, 阿彬 [EMAIL PROTECTED] wrote: On 9月19日, 下午7時30分,drjunior[EMAIL PROTECTED] wrote: Hi, You need to implement the method public boolean onTouchEvent(MotionEvent event) in your view and then you can see the coordinates of touching point calling the function event.getX() and event.getY()... More information here:http://code.google.com/android/reference/android/view/MotionEvent.html 阿彬 wrote: I want to get the coordinates of screen when I touch screen... Because I want to use it to convert to lat/lon on map? Anybody can help me? thanks a lot Thanks~ I complete it now! But there is still some problem, can you or anyone help me? The problem is: When I click the screen, I got the coordinates! But...the coordinates convert to lat/lon aren't the right location I want... How should I modify my code? Thanks again!!! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problems applying animation to SurfaceView
Thanks hackbod, Instead animate SurfaceView, when I want to apply animation, I hide the SurfaceView and in your place i put an ImageView with the image in SurfaceView... And then the animation play nicely... Cheers.. On Sep 11, 11:02 pm, hackbod [EMAIL PROTECTED] wrote: Using animations with SurfaceView is not recommended. I'm not sure you seeing it not work at all, but even if it did something the result would probably not be all that great since SurfaceView is essentially an overlay so you would effectively be trying to animate a separate surface/overlay within your view hierarchy. On Sep 11, 10:44 am,drjunior[EMAIL PROTECTED] wrote: When I apply an animation to my SurfaceView, the animation does not start. I have to implement Animation methods to put animation working!!!??? Best Regards, Diogo Júnior --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Get the coordinates of screen when I touch it
Hi, You need to implement the method public boolean onTouchEvent(MotionEvent event) in your view and then you can see the coordinates of touching point calling the function event.getX() and event.getY()... More information here: http://code.google.com/android/reference/android/view/MotionEvent.html 阿彬 wrote: I want to get the coordinates of screen when I touch screen... Because I want to use it to convert to lat/lon on map? Anybody can help me? thanks a lot --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Problem with VideoView
I have one SurfaceView in my application and when I hide my SurfaceView and make visible my VideoView to play a Video, VideoView use my SurfaceView to show the video... I search in VideoView API but I do not found any method to associate another SurfaceView to VideoView... Someone know that issue? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Problems applying animation to SurfaceView
When I apply an animation to my SurfaceView, the animation does not start. I have to implement Animation methods to put animation working!!!??? Best Regards, Diogo Júnior --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] java.lang.VerifyError with 0.9
Hello, After migrating my application to the new sdk version, I'm getting an exception (VerifyError) from one file that belongs to a library that I used in m5 sdk version without any problems. I tried to compile again the library(jar file), but the error persist. Any ideas?? Best Regards, Diogo Júnior --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---