**** BEGIN LOGGING AT Sat Feb 21 02:59:57 2009 Feb 21 03:03:50 i keep ingget Feb 21 03:03:59 that the process unexpectedly stopped Feb 21 03:04:07 where do i get the errors? the console says nothing Feb 21 03:05:46 adb logcat Feb 21 03:06:33 adb? Feb 21 03:07:46 it's in your tools/ folder of the SDK Feb 21 03:10:06 anyone use emacs for dev? does that work ok? Feb 21 03:10:09 i hate eclipse... Feb 21 03:11:29 you could use emacs but it might make your life more difficult Feb 21 03:13:31 http://hpaste.org/fastcgi/hpaste.fcgi/view?id=1587#a1587 Feb 21 03:13:46 ^^ anyone could have look? src + logcat message Feb 21 03:16:34 senxhnsshp, line 15 Feb 21 03:16:40 you have an invalid resource ID Feb 21 03:25:39 thanx Feb 21 03:25:45 but where do i set that? Feb 21 03:33:54 you set it on line 15 Feb 21 03:34:27 you shouldn't be setting the color in the code, it should be in the XML Feb 21 03:34:35 you're doing this all wrong. did you look through the tutorials? Feb 21 03:42:06 set it? line 15 is the logcat Feb 21 03:42:11 which line 15? Feb 21 03:42:22 line 15 in your code Feb 21 03:42:47 senxhnsshp, observe this line of the logcat: E/AndroidRuntime( 268): at com.android.shmup.Shmup.onCreate(Shmup.java:15) Feb 21 03:55:53 is there a special flag i have to pass to the emulator or something i need to enable to see vibration events in the log? i can't seem to get them to display Feb 21 03:56:10 do you have permission_vibrate? Feb 21 03:56:43 i added it in the manifest but i never was prompted to accept it or not. i wasn't sure if i had to on the emulator Feb 21 03:58:03 i suppose i should try a notification with vibration as well to see if i could have it show up in the log with that Feb 21 03:58:51 Hi Feb 21 03:59:33 tbr. I'm trying my app in the emu now - it vibrates. Feb 21 03:59:35 one sec... Feb 21 03:59:42 I'll check the logcat Feb 21 04:02:53 vibrations don't show up in my logcat. Feb 21 04:06:09 tbr: http://www.anddev.org/tinytut_-_android_vibratorservice-t279.html Feb 21 04:07:18 that's the exact post i looked at that made me think they were logged. ii set the phone to vibrate and faked a call and got nothing too Feb 21 04:07:40 that post shows how to make it log vibrations... Feb 21 04:07:45 it doesn't normally. Feb 21 04:08:46 wait. I'm an idiot... Feb 21 04:12:31 in any case, here is some working vibrate code: myVibrator = (Vibrator)getContext().getSystemService(Context.VIBRATOR_SERVICE); Feb 21 04:12:40 myVibrator.vibrate(vibrationPattern, -1); Feb 21 04:15:35 that's essentially what i'm using. glad to know it will work on a device. i'll just take it on faith until i manage to locate one for myself Feb 21 04:15:50 KNY: i cant figure out what i should do, it seems it looks liek other examples Feb 21 04:15:54 anyd my other apps work Feb 21 04:16:15 pastebin your code Feb 21 04:17:52 and now it works all the sudden Feb 21 04:18:56 KNY is good. Feb 21 04:19:23 * KNY puts on his shades and teleports out of here Feb 21 05:27:13 any folks here trying to put their paid app on the market? Feb 21 05:27:21 mine has decided not to show up Feb 21 05:58:36 private float[] model = new float[1]; Feb 21 05:58:40 whats wrong with tat? Feb 21 05:59:26 nothing. Feb 21 05:59:37 (assuming it's in a class) Feb 21 05:59:41 yes Feb 21 05:59:51 anyone have a simple opengl example? Feb 21 05:59:51 is it erroring on the compile? What's the error? Feb 21 06:00:04 senxhnsshp: The api demos has openGL es stuff Feb 21 06:00:17 http://hpaste.org/fastcgi/hpaste.fcgi/view?id=1591#a1591 Feb 21 06:00:31 syntax error on token ; Feb 21 06:01:38 you can't do the assignment under that statement Feb 21 06:01:49 model[0] = 1.0; Feb 21 06:01:50 ^ bad Feb 21 06:02:07 You need to put that in a function in the class. Feb 21 06:06:34 how do I amke a float Feb 21 06:06:40 because 1,0 is apparently double Feb 21 06:06:47 1.0f Feb 21 06:07:28 thanks Feb 21 06:08:33 what does it mean for a method to be accessed in a static way? Feb 21 06:08:55 it means there doesn't need to be an instance of the class, and that the value exists once for all instances. Feb 21 06:09:35 how do I writw that then? Feb 21 06:09:41 private GLU gl = new GLU(); Feb 21 06:09:46 gl.gluProject(10.0f, 10.0f, 10.0f, model, 1, project, 1, view, 1, win, 1); Feb 21 06:09:52 is what i get complaint on Feb 21 06:10:10 ah GLU.? Feb 21 06:22:45 hmm Feb 21 06:22:45 package com.android.shmup; Feb 21 06:24:27 public class Graphics Feb 21 06:24:32 how should that be imported? Feb 21 06:26:07 got it Feb 21 06:36:31 hmm got me thinking, the emulator, that isnt he buttonset right? does it have touchscreen? Feb 21 06:36:54 because the emulator would suck to play a game on. so how do I test the game... Feb 21 06:37:42 get a phone =) Feb 21 06:44:23 Hi!!! I was wondering if anyone has tried to create multiple "one shot" alarms... I'm having a hard time with it Feb 21 06:45:05 If I create several alarms, most of them take the extra values originally defined for the first intent associated to the alarm Feb 21 06:48:30 Juan_David_Truji: You mean AlarmManager? Feb 21 06:49:02 Yes! Feb 21 06:49:05 Exactly Feb 21 06:49:58 make sure you're not reusing the same intent between alarms. You can't just change the intent values inbetween and use the same intent. Feb 21 06:50:09 You need to use a completely different intent object for each alarm Feb 21 06:50:24 Pastebin your code and I'll take a look. Feb 21 06:51:14 Thanks a lot! Feb 21 06:52:45 http://pastebin.com/m65f4d665 Feb 21 06:53:47 that's only one alarm. Does that one work ok? Or am i not understanding the prob... Feb 21 06:54:15 Yes, that one works, but I use this same code to schedule other alarms... Is that the problem? Feb 21 06:55:03 So this is in a method that gets called multiple times (once for each alarm you want to schedule?) Feb 21 06:55:06 You mentiones I have to use a different intent object whenever I schedule an alarm Feb 21 06:55:10 Exactly! Feb 21 06:56:03 I am using that code to schedule several alarms according to what the user selects Feb 21 06:56:28 Try changing the context you're passing into the Intent and the PendingIntent to CustomEvents.this.getApplicationContext() (instead of CustomEvents.this) Feb 21 06:57:30 I'll check it right away Feb 21 06:57:54 Thanks for your help!!! Just give me one sec Feb 21 06:58:50 when vibrating the device does the array of longs need to contain an initial pause value or is the first value the first vibration length? the internet has conflicting answers. Feb 21 07:00:13 tbr: The first number is a delay. Feb 21 07:00:38 ok thanks Feb 21 07:02:35 That didn't work either... You mentioned something about using different intent objects, how could I do that? Feb 21 07:03:53 Juan_David_Truji: You already are - you're creating the new intent each time. Feb 21 07:04:20 Juan_David_Truji: What are you seeing, exactly, that is a problem? When the second alert happens, you're getting the extras from the first? Feb 21 07:04:31 Exactly!!!! Feb 21 07:05:10 are position, reason, etc member variables Feb 21 07:05:23 That's right Feb 21 07:06:50 Please tell me it's possible, LOL Feb 21 07:07:01 I wonder if maybe it's using them as references instead of values. I hate to "experiment" without knowing exactly why it's happening... Feb 21 07:07:06 It's definitely possible. Feb 21 07:07:52 are all of teh extras duplicated or only some of them? Feb 21 07:08:21 All of them Feb 21 07:08:28 what type is position? Feb 21 07:09:10 int, and the other parameters are mainy Strings Feb 21 07:10:13 Do you think that it's because those are not native? Feb 21 07:10:22 native data type, I mean Feb 21 07:10:26 I don't know for sure, but it sure sounds like it's using a reference to your extras (all of the intents point to the same memory locations) Feb 21 07:10:50 You're using the same object for all of these, I'm guessing? Feb 21 07:10:59 That's right Feb 21 07:11:37 Sorry, do you mean the same Intent object to send it? Feb 21 07:13:15 So you're creating a different intent each time, which is good. I'm thinking that since you're stuffing class variables into it, though, once you change them for the second time, you're actually changing the first copy, too. Feb 21 07:13:49 You might want to try: String tempReason = new String(reason); intent.putExtra("reason", tempReason); Feb 21 07:13:55 and see if reason gets "fixed" Feb 21 07:14:12 but like I said, I don't know exactly what the problem is - I'm kind of guessing. Feb 21 07:14:14 But actually it's the first information attached (put extras), the one that keeps getting repeated Feb 21 07:14:26 OK, I'll try it Feb 21 07:14:38 oh yea - I see what you mean. Feb 21 07:16:38 I'll give it a try Feb 21 07:17:56 oh - I think I see the problem. intent equality doesn't take into account the extras. Feb 21 07:17:57 Determine if two intents are the same for the purposes of intent resolution (filtering). That is, if their action, data, type, class, and categories are the same. This does not compare any extra data included in the intents. Feb 21 07:20:07 mmmm... Any suggestions on how to fix it? So, If i followed correctly, I should set a parameter so the Intents can be distinguished? Feb 21 07:20:15 Your best bet is to set some arbitrary data. Feb 21 07:20:23 setData()? Feb 21 07:20:42 Different arbitrary data for each intent? Feb 21 07:22:24 intent.setData(Uri.parse("custom://somethingUnique")); Feb 21 07:24:30 aha Feb 21 07:24:59 Juan_David_Truji: you still around? Feb 21 07:25:29 so PendingIntents are a bit odd, and dont entirely listen to changed extras Feb 21 07:25:35 Sure Feb 21 07:26:21 rsteckler, that did'nt work... I'm still retrieving old information Feb 21 07:26:30 * rsteckler sighs Feb 21 07:26:35 I give up - sorry man. Feb 21 07:26:43 * jsharkey reads backscroll Feb 21 07:26:45 mmm... Thanks for all your help!!! Feb 21 07:26:54 it sounds like jsharkey might know more than I do. Feb 21 07:26:55 I really appreciate it!!! Feb 21 07:26:58 np Feb 21 07:27:12 yea ive just delt with PendingIntents a pile at work Feb 21 07:27:27 there sadly isnt a good, reliable way of passing extras to your future self Feb 21 07:27:37 jsharkey: summarized: Scheduling multiple alarms with alarmManager using different intents. When the alarms fire, they all have the extras that were put in the first intent. Feb 21 07:27:57 Exactly Feb 21 07:28:14 the way I've been storing info between my alarms is writing them to a file. Feb 21 07:28:30 when you create a PendingIntent, the system generates a magic token for that Intent, which the receiving process can later use to launch as the original creator Feb 21 07:28:57 So, how to actually differ them? Feb 21 07:29:34 the system tries looking for existing intents that match, and returns the existing token to help recycle tokens Feb 21 07:29:53 and it doesnt use extras as part of that checking Feb 21 07:30:45 the setdata is probably the best method Feb 21 07:31:27 just generate a unique uri to pass in there Feb 21 07:31:59 mmm... I tried: intent.setData(Uri.parse("custom://"+tempReason)); where tempReason is a String object and it didn't seem to work Feb 21 07:32:10 maybe using elapsedRealtime Feb 21 07:32:21 to make it unique Feb 21 07:32:43 so Uri.parse("custom://"+SystemClock.elapsedRealtime()); Feb 21 07:33:04 was the tempReason different every time? Feb 21 07:33:25 Yep! Feb 21 07:33:39 grr :/ Feb 21 07:34:03 So as long as there is a unique parameter, there's no problem? Feb 21 07:35:33 idk im peeking at code right now Feb 21 07:35:46 Thank you so much!!!! Feb 21 07:36:28 Excuse me, are you Jeffrey Sharkey? Feb 21 07:36:33 lol yea Feb 21 07:36:48 Wow, your application really rocks!!! Feb 21 07:37:08 I'm just checking your abc story Feb 21 07:37:16 oh lol Feb 21 07:38:21 It's reallly amazing!!! Congratulations!!! Actually, I'm working on this code to publish an application I'm working with a friend. We've been working really hard on it. Feb 21 07:39:09 oh cool Feb 21 07:39:27 grr im not finding where its binding the token Feb 21 07:40:17 mmm... :( Feb 21 07:40:44 but yea, you said you already tried tempReason, where tempReason was different every time? Feb 21 07:40:57 *for every requested PendingInte Feb 21 07:41:14 Yeah, that's right Feb 21 07:42:21 Do you have a code snippet you could share with me in case I'm missing something? Feb 21 07:42:44 actually i dont :( Feb 21 07:43:03 the solution i came up with was to not use extras and create an intent for each ;) Feb 21 07:43:11 *action for each Feb 21 07:44:00 A whole different intent each time? Feb 21 07:45:12 Can you please explain what you mean with "create an intent for each "? Feb 21 07:47:34 Here's what I've been doing... http://pastebin.com/m65f4d665 Feb 21 07:55:54 , I tried using again the setData and it definately does not work... Or at least, not the way I'm trying... :( Feb 21 08:03:28 intent.setData((Uri.parse("custom://"+SystemClock.elapsedRealtime()))); Feb 21 08:04:28 Thatnk you!!!! Feb 21 08:04:51 rsteckler, thank you for your help!!! Feb 21 08:05:04 You were right!!! Feb 21 08:05:06 intent.setData((Uri.parse("custom://"+SystemClock.elapsedRealtime()))); Feb 21 08:05:12 np Feb 21 08:05:16 Glad you got it workign... Feb 21 08:05:39 Thank you so much!!! I had been stucked for a couple of days on it Feb 21 08:07:01 Thank you for your help!!! I'll post this in the Android group in case this helps someone else Feb 21 13:14:10 Hi everyone, I want to ask for an advice to developers who have some experience in Android graphics. Feb 21 13:14:24  I want to build a map application and so, I would need to draw lots of lines primarily and other 2D shapes. Feb 21 13:14:32 What do you think it will be faster? OpenGL or Android's graphics package. Feb 21 13:31:55 how do i make a dialog wider? I have a custom Dialog with a ScrollView and a custom form, but it's not very wide Feb 21 13:32:21 the scrollview that is the root has fill_parent for the width Feb 21 13:33:32 http://pastebin.com/d64087d89 is my dialog class and http://pastebin.com/d502928f0 is my view Feb 21 14:23:13 Hello. Feb 21 14:23:27 How do you get the coordinates on onClick and onLongClick? Feb 21 15:37:40 huh, I had an order canceled a minute before it was placed Feb 21 16:05:24 is there a mirror for the sdk ? Feb 21 17:39:59 hi Feb 21 17:43:00 ih Feb 21 18:08:31 no questions today maybe it's early in the USA Feb 21 18:40:02 i'll likely have some for you after then penguins game Feb 21 19:22:10 Hi! I've got a problem with xml-references across projects. The question with details turned out to be pretty big, so I posted it here http://stackoverflow.com/questions/573581/specifying-android-project-dependencies-in-eclipse to avoid spamming. Does anyone know? Feb 21 20:23:33 to make a 2d-sidescroller on android, then Id use touchscreen buttons right? and I can make my own buttons? Feb 21 20:26:28 there are hardware buttons as well, don't restrict yourself, consider making it customizable Feb 21 20:30:11 yes Feb 21 20:30:56 kencausey: but are those suited for games? the emulator buttons are not... Feb 21 20:31:25 you can at least use the d-pad Feb 21 20:31:28 Obviously testing it on each platform is a necessary step, testing it in the emulator is not much help here Feb 21 20:31:51 well that "puts some sticks in the wheel" for a highs chool kid Feb 21 20:33:55 i mean testing it on real phones Feb 21 20:35:12 Test it on the ultimate platform Feb 21 20:35:27 If that is the emulator, then base your decisions on that being the deployment platform Feb 21 20:35:43 that just means they may not be the same decision as if the deployment platform was one or more phones Feb 21 20:50:41 Hi Guys!! Feb 21 20:50:58 Does anyone know hot to attach .zip files in an Email Intent? Feb 21 20:52:09 I'm able to send email attachments (csv files), but when I try to send .zip files, it does not seem to work Feb 21 20:53:58 I've read the only thing that changes is the type parameter: sendIntent.setType("application/zip"); Feb 21 20:58:04 Am I missing somethin here? :( Feb 21 22:11:20 GraphicsActivity Feb 21 22:11:34 i am told by eclipse that it doesnt exist Feb 21 22:11:47 because it doesn't exist in the Android platform Feb 21 22:11:54 so unless it's one of your classes... Feb 21 22:13:02 it is used in a lot of examples Feb 21 22:13:06 http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/graphics/DrawPoints.html Feb 21 22:13:53 it's a class part of ApiDemos Feb 21 22:14:11 an hwere is apidemos? Feb 21 22:14:27 in the SDK Feb 21 22:14:35 it's the sample you just linked to Feb 21 22:16:58 but it says extends Feb 21 22:17:06 the actual class GraphicsActivity isnt there Feb 21 22:17:45 it is in the ApiDemos sample... Feb 21 22:18:01 right here: http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/graphics/GraphicsActivity.html Feb 21 22:45:02 hey romainguy, could you help me with this? http://groups.google.com/group/android-developers/browse_thread/thread/93bee25378d14b4a Feb 21 22:48:05 Hi!!! Does anyone know hot to attach .zip files in an Email Intent? I've been stucked for a while trying to achieve that... Feb 21 23:22:40 Juan_David_Truji: there is a way Feb 21 23:22:59 you need to save it to sdcard, then pass the file stream or filename as extra, cant remember which Feb 21 23:23:57 Hi Jsharkey! Feb 21 23:24:40 Actually, that's what I'm doing and the file do get exported to sdcard, however, when I send the E-mail, it never arrives Feb 21 23:27:35 Could you please take a look at my code? Sorry... :S Feb 21 23:27:40 http://pastebin.com/m30093f36 Feb 22 00:04:35 Juan_David_Truji: brb, ill check my code Feb 22 00:04:46 Thanks a Lot!!! Feb 22 00:05:30 Juan_David_Truji: i was using Uri.fromFile(attachment) Feb 22 00:05:34 and it worked for me Feb 22 00:06:11 where attachment was a normal File object Feb 22 00:06:30 and it opened in gmail, in compose view, showing the attachment ready to send Feb 22 00:06:36 *the native gmail app Feb 22 00:06:52 mmm I'll give it a try, that really sounds like my problem... Feb 22 00:07:22 in cupcake i think the builtin imap/pop email app responds to that intent now Feb 22 00:07:28 *in additoin to gmail Feb 22 00:14:08 You also use setType("application/zip"); , right? Feb 22 00:21:38 Do you define in attachment file://? Feb 22 02:43:54 http://pastebin.com/m2a6165b2 Feb 22 02:44:06 It keeps on Force Quitting Feb 22 02:44:17 After i added the Vibrator part of the code Feb 22 02:44:51 anyone spot why it would crash? Feb 22 02:46:14 no one? Feb 22 02:52:11 AakashPatel: so you should be calling super first in that method Feb 22 02:53:34 jsharkey: ok i moved it above this.mVibrator..... Feb 22 02:53:40 but it still crashes Feb 22 02:54:19 are you looking at logcat to see /why/ its crashing? Feb 22 02:56:38 jsharkey: uh...logcat... Feb 22 02:56:51 how do I extend View? do I extend a special View? because I can't import View Feb 22 02:57:00 I want to do basic opengl and none of the examples work Feb 22 02:57:23 pilkarn: wait lol, are those two separte questions? ;) Feb 22 02:58:20 http://pastebin.com/d82df5cf Feb 22 02:58:27 thatas what logcat says when i run it Feb 22 02:58:40 towards the bottom Feb 22 02:58:44 AakashPatel: take a peek at it ;) Feb 22 02:58:44 aused by: java.lang.SecurityException: Requires VIBRATE permission Feb 22 02:59:02 where it say that? Feb 22 02:59:06 damn your good Feb 22 02:59:16 oh i see it Feb 22 02:59:21 so something like this Feb 22 02:59:21 http://code.google.com/p/android-cookbook/source/browse/trunk/TunesControl/AndroidManifest.xml#64 **** ENDING LOGGING AT Sun Feb 22 02:59:57 2009