**** BEGIN LOGGING AT Tue Jun 23 02:59:57 2009 Jun 23 03:05:28 Can you please tell me how can I launch an intent to allow user selects Video clips on phone? Jun 23 03:34:11 hey guys Jun 23 04:51:48 Hey guys -- I am looking for a good way to rotate text (180 degrees). Anyone know a good method? Jun 23 04:53:42 rotate the phone? Jun 23 04:54:19 bada-bing :P Jun 23 04:55:25 Then here's a quandry for you: I have text which is non-symmetrical across the horizontal middle. How do I display a rotated and non-rotated version simultaneously. :) Jun 23 04:56:42 anyone knows how to create a database from a file when the application first runs? Jun 23 04:58:51 Is it a SQL file? Jun 23 04:58:59 OEP: spin the phone very fast, at like 500rpm Jun 23 04:59:18 deebo: Good idea. Jun 23 04:59:23 * OEP fetches the nearest Servo motor Jun 23 05:00:26 OEP: just draw the text with Canvas/Paint Jun 23 05:00:43 you can make a custom VerticalTextView Jun 23 05:01:42 Ok... I saw you can rotate a canvas.. it seems a bit much to create a new view for it. Can I instantiate a canvas somehow and then draw it over another canvas? Jun 23 05:03:17 you can, but that would probably best be done inside a custom view Jun 23 05:05:22 Ok... this new view would be going within another view. I guess I can just instantiate the VTextView and paint programatically with no trouble? Jun 23 06:04:40 hi can anyone provide me with some help regarding wifi addnetwork function Jun 23 06:23:36 does someone know sth about this one: http://groups.google.com/group/android-developers/browse_thread/thread/e96758305324a9af/a49c3f969cc61190?lnk=gst&q=festival#a49c3f969cc61190 Jun 23 06:39:54 Has anyone used Google AJAX Site Search API or some other way to access Google Searches? Jun 23 07:36:19 anyone knows how to use canvas.save() ? Jun 23 07:46:10 Is it possible to send any kind of data to desktop app using bluetooth? Jun 23 07:46:29 or is there any restriction? Jun 23 12:28:09 hi there...i have a plain class running on a separate thread that needs to ask for additional user data. The class has a reference to the current context but it seems i need a Looper or some kind of that to actually show an alert dialog. Can you give me some pointers to figure this out? Jun 23 12:57:16 Hi ! How do I make an asynchroneous listview (like in market / youtube for example) Jun 23 12:57:40 can't seem to find an explanation on google, or I'm bad at querying it.. Jun 23 13:00:02 is there any way to show a blocking dialog which alows input to show from a non-activity? Jun 23 13:00:26 just like ShowDialog in .net cf Jun 23 13:05:52 is there someone willing to provide some support in this room ? Jun 23 13:12:46 if you ask the real question someone might answer Jun 23 13:13:37 if no one answers chances are no one who is awake knows Jun 23 13:20:03 rnx: was my first question real enough ? (just need to know that for now..) Jun 23 13:27:30 probably Jun 23 13:29:29 :)) Jun 23 13:35:16 Is it possible to monitor the screen brightness and wifi state? Jun 23 13:50:41 qnybody knows whether triangle strips are really that much faster than plain triangles in openGL ES? Jun 23 13:58:27 they probably are Jun 23 13:58:42 just on the fact that there are fewer function calls Jun 23 13:58:54 when you're doing opengl calls via the android framework, you're invoking JNI for every call Jun 23 14:01:20 plain triangles are 3 calls per triangle, strips are 2 + n calls for n triangles Jun 23 14:01:34 i have an activity that is using a progress dialog. If there a way so that when the user presses the back button, the activity will finish? nothing happens currently when i press the back button Jun 23 14:01:39 hiya sammyF Jun 23 14:01:44 vol_: hmm .. I see Jun 23 14:01:46 hoy BeBoo_ Jun 23 14:01:51 You have to handle that with the profress dialog Jun 23 14:01:53 *progress Jun 23 14:01:57 iirc Jun 23 14:02:16 i'll take a peak Jun 23 14:03:00 one of the methods you can set is for cancellation iirc Jun 23 14:03:01 also, i've noticed a few apps that do it (not just Google's) that message that says "there are connection problems but we'll keep trying". is that something that is automatic or does that have to be coded? Jun 23 14:03:12 that would have to be coded Jun 23 14:03:13 vol_: just wondering, as I'm hitting some serious framerate issues, if I wouldn't be better off throwing all the objects in one single triangle buffer and draw them as triangles instead of having them drawn separately as triangle buffers Jun 23 14:03:42 well, whatever works for you. Jun 23 14:04:19 BeBoo_: you might just want to override onkeyDown and handle the back key Jun 23 14:04:23 vol_: yep ... just means a rather big rewrite, which is why I asked before embarking on it Jun 23 14:04:25 for the ProgressDialog Jun 23 14:05:23 public boolean onKeyDown(int keyCode, KeyEvent event) { if(keyCode == KEYCODE_BACK) { MyCallingActivity.finish(); } } Jun 23 14:06:13 vol_: oh ok, all i found so far was myProgressDialog.setCancelable(true); Jun 23 14:06:30 do I override that, vol? Jun 23 14:06:48 try overriding onKeyDown, see how that goes I guess Jun 23 14:06:56 okies Jun 23 14:08:10 KEYCODE_BACK cannot be resolved Jun 23 14:10:05 * mr_lou just found www.opengameart.org Jun 23 14:10:06 Might be interesting to some of you? Jun 23 14:13:39 i got it, it's KeyEvent.KEYCODE_BACK Jun 23 14:15:00 ffs :\ Jun 23 14:15:06 yeah it's psudocode Jun 23 14:15:32 vol_: doesn't work. i wonder if i have to set cancelable as well Jun 23 14:15:54 step through and make sure it's working correctly in debugger? Jun 23 14:16:02 what are you placing inside the if statement? Jun 23 14:16:10 make sure it's the finish call for your actual activity Jun 23 14:16:13 not for the progress bar Jun 23 14:17:07 well, the finish for the progress bar would be pd.dismiss Jun 23 14:17:15 lemme see, one sec Jun 23 14:17:53 do you want to dismiss the prgress bar or the activity? Jun 23 14:20:02 well, both... i put a log.d statement in the onKeyDown to see if it even runs and it doesnt Jun 23 14:20:31 only after the progress dialog is gone does onKeyEvent work Jun 23 14:21:15 interesting. Jun 23 14:21:28 is it possible that you're updating it waaay too often? Jun 23 14:21:38 updating what? Jun 23 14:21:57 if you've got a progress bar for webnets downloads updates or something, try making sure that you send an update to the progress bar no more than every 100ms Jun 23 14:22:02 er, no sooner Jun 23 14:22:03 it's just a progressdialog thats infinate Jun 23 14:22:06 oh! Jun 23 14:22:10 just has the spinner Jun 23 14:22:15 hmm, interesting Jun 23 14:22:55 lemme try the setcancelable Jun 23 14:25:11 ok, that dismisses the dialog with the back button but i want the activity to finish as well Jun 23 14:25:24 i wonder if there is something that is called when the pd is canceled Jun 23 14:30:54 oooo vol_, should I be using something like pd.onKeyDown ? Jun 23 14:31:47 actually i found an onCancelListener Jun 23 14:31:58 maybe i'll use that Jun 23 14:35:43 BeBoo_, someone emailed me the other day saying that they'd pay $3+ for an urban dictionary app, so hurry up and finish yours :) Jun 23 14:36:53 KNY: almost done =] Jun 23 14:36:59 just perfecting problems Jun 23 14:37:19 vol_: got it. using pd.onKeyListener Jun 23 14:38:48 hi all Jun 23 14:39:08 is t.destroy(); the best way to cancel a thread? Jun 23 14:39:15 one month without developing an android app :-( Jun 23 14:39:26 esses is sad Jun 23 14:39:28 :-) Jun 23 14:41:35 BeBoo_, no, you should be setting a flag and letting the thread cancel itself cleanly Jun 23 14:41:37 ahh in this month anyone created a free installer and unistaller ? Jun 23 14:46:35 KNY: but i would like it to just stop... during my loading sequence if someone presses back, i am canceling the dialog and finishing the activity but the thread keeps going (what downloads and displays the info) Jun 23 14:46:52 not a big deal just don't want a thread hanging around. Jun 23 14:48:55 BeBoo_, use AsyncTask Jun 23 14:49:46 gah! Jun 23 14:49:52 :) Jun 23 14:49:53 without having to manipulate threads and/or handlers. << Jun 23 14:50:02 * BeBoo_ glares at ASyncTask Jun 23 14:50:52 hrm, this looks a little advanced for me Jun 23 14:53:12 AsyncTask is stupidly simple Jun 23 14:53:48 i spoke too soon. it seems simple enough... how will this help me as apposed to what i am already doing? Jun 23 14:54:00 with a thread and handler Jun 23 14:57:05 AsyncTask.cancel(true) Jun 23 14:57:16 just override onCancelled() Jun 23 14:57:51 and use that to shutdown your httpclient and set a flag that your thread will read to know it's time to stop Jun 23 14:58:24 i'm just using urlconnection and inputstreams Jun 23 15:02:28 i see Jun 23 15:02:35 is there a way to kill a URLConnection? would closing your input stream do it? Jun 23 15:03:41 it's not that, the source is downloaded very quickly, it's the parsing i want to stop Jun 23 15:04:17 oh, then that's easier Jun 23 15:04:32 just throw a if(mCancelled) break; Jun 23 15:04:36 in your processing loop Jun 23 15:05:15 ah, that'll work Jun 23 15:05:30 can I ask what you are making? Jun 23 15:06:29 hrm, can't use break. i'm not using a loop Jun 23 15:06:36 return; Jun 23 15:06:37 :) Jun 23 15:06:39 Ostebaronen: me? Jun 23 15:06:43 yes you Jun 23 15:06:57 KNY: that will return the thread? Jun 23 15:07:05 Ostebaronen: urban dictionary frontend Jun 23 15:07:11 how are you processing this without a loop? Jun 23 15:07:41 KNY: regex Jun 23 15:08:05 ahh cool Jun 23 15:08:14 fun stuff; GV works like that. but don't you loop over the matches? or are you finding all 10/15/whatever at once? Jun 23 15:08:52 well, there is a while loop in my parser Jun 23 15:08:59 just not in the thread that calls it Jun 23 15:09:36 BeBoo_, ahh Jun 23 15:09:51 Ostebaronen: and very nice front end too he does Jun 23 15:10:10 thanks, sammyF Jun 23 15:10:15 I will be getting my HTC Magic tomorrow, hopefully Jun 23 15:10:24 * sammyF jsut mutated in Yoda Jun 23 15:10:32 and from monday and until the start of september Jun 23 15:10:47 I will be trying to understand the Android API Jun 23 15:11:11 and after that you'll get a Pre? Jun 23 15:11:14 funny thing is, i am totally new to Java and this is my first app ever in java Jun 23 15:11:22 oh Jun 23 15:11:40 sammyF, I dunno - should I get a Palm Pre? Jun 23 15:11:46 the pre looks nice but from the demos i have seen, it's sluggish Jun 23 15:12:02 Ostebaronen: don't think so ;) Jun 23 15:12:21 android ftw Jun 23 15:12:22 Ostebaronen, I don't know if many people in here are going to tell you to get a Pre ;-) Jun 23 15:12:25 Ostebaronen: just wondered, as "I'll learn until that date" generally doesn't work for me ;) Jun 23 15:12:45 go for an iPhone!!!! ;) Jun 23 15:12:50 haha, well I'll probably will keep learning Jun 23 15:13:06 but it will be less since classes start in september Jun 23 15:13:13 sammyF: do you want a slap in the face? Jun 23 15:13:28 ;p Jun 23 15:13:29 I don't like Apple policies Jun 23 15:13:30 BeBoo_: :P Jun 23 15:13:32 so no thank you Jun 23 15:16:33 i read an article today that said that 22% of all iPhones sold are either dead, broken or destroyed Jun 23 15:16:35 lol Jun 23 15:16:46 haha, sounds about right Jun 23 15:17:26 I've seen a lot for sale threads on a forum I'm on, where there screen was broken or bricked iphone or something like that Jun 23 15:17:39 people should care more about their gear Jun 23 15:18:04 especially since there is no warranty Jun 23 15:18:10 just CrappleCare Jun 23 15:18:52 i forgot to add something to my app... Jun 23 15:19:42 the part where you display adds? Jun 23 15:19:54 hopefully they are just text adds Jun 23 15:19:56 X-D Jun 23 15:20:07 KNY: that flag worked Jun 23 15:20:33 sammyF: i was thinkin about making a free version with ads but no one would buy the full version then and hardly anyone probably clicks on the ads Jun 23 15:20:48 plus that looks tacky Jun 23 15:21:05 i saw it in shazam and made me want to stop using it Jun 23 15:21:09 BeBoo_: welcome to the wonderful world of not-making money with mobile phone apps ;) Jun 23 15:21:30 i was browsing the market the other morning... i noticed that a lot of the free apps had >100,000 downloads Jun 23 15:21:42 the ones that cost money... like <100 downloads Jun 23 15:21:46 =[ Jun 23 15:22:04 yep. sounds about right Jun 23 15:22:08 i have an idea for a second app, tho... a game... *looks at sammyF* Jun 23 15:22:14 lol Jun 23 15:22:42 but i fear the screen may be too small for this idea Jun 23 15:22:50 BeBoo_: well ... as long as your goal is to only make games, go ahead. it's very often frustrating, but it's fun Jun 23 15:23:09 make a game which is about clicking on all the adds you possibly can Jun 23 15:25:23 Ostebaronen: lol Jun 23 15:25:51 yep. Ad-Memory. remember the two similar banners and click them Jun 23 15:28:11 hrm Jun 23 15:28:59 sammyF: don't kill me but i lost the log from when you told me the code for using a view inside of a dialog Jun 23 15:29:33 http://d.android.com/ :) Jun 23 15:29:44 * BeBoo_ glares at KNY Jun 23 15:30:30 BeBoo_: just do it like a normal view, just use myDialog.findViewByID() instead of calling it on the current activity Jun 23 15:30:49 Beboo, the rest is really exactly the same as for a standard view Jun 23 15:31:38 sammyF: .setView? Jun 23 15:33:12 http://pastebin.com/m4ff34801 Jun 23 15:34:52 BeBoo_: it's really straight forward :) Jun 23 15:35:08 except that I pasted the wrong code :P Jun 23 15:35:39 * sammyF looks for a wall to hit his head against Jun 23 15:37:46 BeBoo_: try this one instead Jun 23 15:37:47 http://pastebin.com/m5bc112c Jun 23 15:38:24 that's pretty much a 1:1 gallery activity Jun 23 15:38:27 but in a dialog Jun 23 16:01:01 sammyF: thanks Jun 23 16:04:01 how do you guys go about building a git repository for your android apps developed in eclipse? Do you use this egit plugin for eclipse? Mostly I'm uncertain how I will know what files in the project directory to include or exclude from the repo. Jun 23 16:04:08 hrm... i wonder how i can do this and still have a button Jun 23 16:07:37 interestingly there's an android/tools_egit project on github Jun 23 16:17:47 what the fuck .. everytime i plug my phone in the my pc it changes the time ... Jun 23 16:19:01 O.o Jun 23 16:19:13 everytime i plug my htc magic in to my pc it changes the time from 18.18 to 1 h + ... Jun 23 16:19:51 on the pc it self it say 19:19 .. Jun 23 16:20:36 im looking at http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/app/SaveRestoreState.html but cannot grasp how those get/set methods are invoked.. i have in my layout an edittext with id "result" and also methods get/setResultText with some logging inside them. .. no output in logcat though :( Jun 23 16:21:34 i also set freezesText to true Jun 23 16:22:45 anyone have any idea why this time chagne happens ? Jun 23 16:25:05 fanno, well my guess is that the phone syncronises itself with the PC to get the correct time, and then the timezone is different from the computers Jun 23 16:28:40 Is it possible to change the scale of battery level information. Normaly is scale always 100 but can you change this scale? Jun 23 16:32:46 Ostebaronen: i just founed the problem ... i uninstaled htc sync app and the problem is gone ( not that i used it anyway ) Jun 23 16:33:18 Ostebaronen: i did try changing time zone settings but without luck hehe Jun 23 16:40:37 Quick question Jun 23 16:41:25 I have some buttons in my layout, with text in them, 2 of the buttons have the ends cut off of the letters, what attribute setting should I use to cure this? Jun 23 16:45:44 is there a way for me to trace a route (that a person has been on) on the map overlay efficiently? Jun 23 16:47:06 jpe30_: are you trying to make the button larger or the text smaller? Jun 23 16:48:55 hello Jun 23 16:49:14 I have a custom view Jun 23 16:49:27 which have child Jun 23 16:49:45 and I can't animate its childs Jun 23 16:50:10 children are also custum view Jun 23 16:58:31 BeBoo_: Don't worry about it, I found a solution, I just specified the amount of pixels :) Jun 23 16:58:54 jpe30_: sounds good. i had a similiar issue but i ended up using images instead. Jun 23 17:06:01 Hi all, I have again a problem with my keystore " Keystore was tampered with, or password was incorrect" but I've written down the password and I know it's correct, I have already signed an app thats in market and an update of it... I need to update this app once more but can't use the keystore Jun 23 17:06:22 someone knows how to fix this? Had this a couple times now but just used a new key Jun 23 17:14:32 anyone knows how to draw out your track on the map overlay efficeintly? Jun 23 17:37:48 anyone familiar with mapview and map overlay? Jun 23 17:43:00 canvas.save and canvas.restore anyone? Jun 23 17:55:07 does anyone know how to do Linear Layouts attatched to Cursor Adapters where you can display more than just a single line. for example, what the Contacts list does Jun 23 17:59:10 meanburrito920_, ListView / ListActivity Jun 23 18:04:21 what does canvas.save and canvas.restore do? Jun 23 18:09:04 KNY, I have an interesting problem. I want to do this: http://android-developers.blogspot.com/2009/02/android-layout-tricks-1.html but for the icons I only have urls. How would i be able to pull images from the urls for the imageview? Jun 23 18:10:13 is there a way to create a mutually exclusive preference - such that if one is enabled the other is disabled, with the inverse also true? Jun 23 18:10:30 meanburrito920_, you'd want to cache those images when you get them to stop lag when the thing opens, no? Jun 23 18:10:32 BlindOracle: yes, you can say one is dependent on the other Jun 23 18:10:51 BlindOracle: oh wait, you mean the opposite of dependent Jun 23 18:10:53 zhobbs, wouldn't do the opposite of ... Jun 23 18:10:54 ya Jun 23 18:11:15 BlindOracle, no, which is a real annoyance Jun 23 18:11:17 yeah, you can register for change notifications and control it manually in your PrefActivity Jun 23 18:11:30 zhobbs_, yeah, you have to do it "manually" Jun 23 18:11:41 zhobbs, ya...that's where I was headed...was hoping for a more "android does it" solution ;) Jun 23 18:11:45 thanks... Jun 23 18:11:59 zhobbs, as usual you're a great help with speedy answers Jun 23 18:12:03 doing stuff manually with Prefs isn't always that fun either Jun 23 18:12:18 np :) Jun 23 18:14:19 or you can create a custom preference with a custom attribute and have it all encapsulated Jun 23 18:15:50 zhobbs, would be nice if preference activities simply automatically observed themselves and updated accordingly. Jun 23 18:17:02 zhobbs, if would make this problem have an easy solution Jun 23 18:17:10 well...easier Jun 23 18:21:09 zhobbs, is there a way to make a PreferenceActivity reload all its preferences with one call? Jun 23 18:22:35 oh, like invalidate the views? Jun 23 18:23:12 zhobbs, ya....then I can create an observer and force an update without having to manage each and every key and update/maintain as preferences are added/deleted over time Jun 23 18:23:40 not sure Jun 23 18:23:50 I'm looking but nothing jumped out so far Jun 23 18:24:22 hmmmm....if I invalidate the preference activities view will that do it? Jun 23 18:24:24 I mean, you might be able to just getListView().invalidateViews() or something, not sure if that would work Jun 23 18:24:28 how do u save the state of a canvas? Jun 23 18:24:53 zhobbs, looks like we're barking the same tree...will try Jun 23 18:24:54 you, uh, don't. Jun 23 18:25:27 chouman82: I'm going to go ahead and say you're probably Doing It Wrong Jun 23 18:25:27 vol_: talking to me? Jun 23 18:25:44 Don't save the canvas, save the conditions that would cause the canvas to draw as it did Jun 23 18:26:00 vol_: ok well then i am kind of stuck Jun 23 18:26:26 vol_: wat i am trying to accomplish is show a map that tracks the route that have visited Jun 23 18:26:54 chouman82: save the tracks. Jun 23 18:26:58 you should be saving as you're running Jun 23 18:27:13 then, when you load up again, pull all of the tracks you've saved back up Jun 23 18:27:14 vol_: right but then everytime ondraw is called i'll have to rending all the points? Jun 23 18:27:24 if you haven't already. Jun 23 18:27:40 what happens if the user moves the map or something? Jun 23 18:27:46 or he walks off the edge? Jun 23 18:27:57 vol_: doesn't the canvas gets cleared? Jun 23 18:28:07 yes, it kind of does. Jun 23 18:28:35 vol_: so everytime it draws, i will have to start from point 1 till the most recent point Jun 23 18:28:39 no Jun 23 18:28:50 if you're just drawing over what you've already drawn Jun 23 18:28:56 you can just keep a list of points YOU HAVE NOT YET DRAWN Jun 23 18:29:02 then, when you draw a point, discard it from the list! Jun 23 18:29:11 but keep this list around somewhere Jun 23 18:29:13 in a file, db, whatever Jun 23 18:29:21 then, when you change orientation or whatever Jun 23 18:29:33 save the list of undrawn points as part of your state change save Jun 23 18:29:56 vol_: sorry i am a little slow right now Jun 23 18:29:56 then reload the list of drawn and undrawn points, and add all of the drawn points to the front of the undrawn list Jun 23 18:32:24 vol_: still not quite get it, because when ondraw is called i get the canvas, and then i do canvas.drawline Jun 23 18:33:25 vol_: from point 1 to point 2, then the next time onDraw is called if i only do canvas.drawline from point 2 to point 3, the previous line from pooint 1 and point 2 will not show up Jun 23 18:34:43 http://pastebin.com/d121b77cb <, any ideas? just trying to make a custom dialog Jun 23 18:35:20 vol_: am i not seeing something ? Jun 23 18:35:57 i... Jun 23 18:36:05 hmm, I guess you're right, it's not going to save the canvas. Jun 23 18:36:25 what you could do is for every point, draw it on to a transparent bitmap, and then just draw that over top. Jun 23 18:36:32 keep the bitmap around. Jun 23 18:37:56 vol_: ok i'll try that, but then if the user zoom in and out then i'll actually have to render all the points over right? Jun 23 18:38:11 martin__, but how would I cache them and have the simpleListAdapter know what it was dealing with? Jun 23 18:38:24 vol_: have been thinking about this problem for 2 days straight... Jun 23 18:38:40 I don't think there is a way to store images in the sqlite db Jun 23 18:38:59 meanburrito920_, what actually are the images, icons for things in your menu Jun 23 18:39:19 meanburrito: if u really absolutely want to store images, u can store them as blob Jun 23 18:39:37 martin__, they are thumbnails for video clips associated with each item Jun 23 18:39:43 I have the urls stored in the db Jun 23 18:39:49 but when it comes to displaying them Jun 23 18:39:54 yes, you would Jun 23 18:39:57 you have to do something, chouman. Jun 23 18:40:01 i dont know how to make list adapter do it Jun 23 18:40:12 vol: thought this would be an easy task to do... =( Jun 23 18:40:17 honestly, see how fast this goes. Jun 23 18:40:25 bear in mind that you're basically making Google Tracks Jun 23 18:40:38 yea i know but i am trying to combine it with other stuff Jun 23 18:40:53 i am just trying to figure out how mytrack is doing it Jun 23 18:41:11 too bad that is not open sourced Jun 23 18:41:16 time to get out the decompiler ;D Jun 23 18:41:24 haha Jun 23 18:41:25 alternately, email them Jun 23 18:41:37 would they expose how they handle it? Jun 23 18:43:15 they might ;) Jun 23 18:43:31 alright gonna give it a shot and email them Jun 23 18:43:38 yo Jun 23 18:43:40 you could always say "Hey, I'm a developer trying to do something like what you're doing. How do you handle drawing tracks? Do you redraw every time? Do you have any shortcuts?" Jun 23 18:43:52 I strongly suspect that they render to a transparent bitmap and blit that Jun 23 18:44:06 yea that's wat i am doing right now =) Jun 23 18:44:09 the maps interface has a method by which you can cull points which lie outside of the map Jun 23 18:44:23 vol, was i with you when i see how to disable the start on boot flag? Jun 23 18:44:25 at i/o Jun 23 18:44:39 I don't know, I don't remember which that is Jun 23 18:44:54 :/ Jun 23 18:45:07 it was something with packageinfo i think Jun 23 18:45:28 maybe, refresh my memory, what's the start on boot flag?" Jun 23 18:45:55 you know how you can add an action to an a broadcastreceiver to start it on boot Jun 23 18:46:51 oh, uh, no :P Jun 23 18:46:55 that probably wasn't me then Jun 23 18:47:24 i think it was andrew schwimmer Jun 23 18:47:36 i have no idea what session it was during Jun 23 18:47:38 lol Jun 23 19:00:56 zhobbs, would be nice if you could simply do, "findPreference( key ).notifyChanged()", but alas notifyChanged is a protected method... Jun 23 19:01:14 zhobbs, I'm not having much luck find a solution. Thanks for you help. Jun 23 19:06:00 hey guys Jun 23 19:06:05 I am trying to follow this tutorial http://www.anddev.org/android_weather_forecast_-_google_weather_api_-_full_source-t361.html Jun 23 19:06:12 however on the SingleWeatherInfoView class Jun 23 19:06:23 the constructor with the super() call doesnt accept 3 params apparantly Jun 23 19:06:26 yet in the source it does Jun 23 19:06:29 how come!? Jun 23 19:08:25 BlindOracle: custom preferences might be the only solution :( Jun 23 19:08:41 that's the route I usually take with prefs Jun 23 19:08:48 zhobbs, ya, that's what it looks like - once I found the protected notify method Jun 23 19:09:51 i cant get eclipse to find packagemanager when compiling Jun 23 19:09:57 although it works fine for autocomplete wtf Jun 23 19:11:03 anybody ^^ Jun 23 19:17:44 ^^ Jun 23 19:18:57 renegadeandy, this isn't a forum; there is no need to bump. Jun 23 19:23:28 what would i look into if i want to have a list pull more info as it nears the bottom? Jun 23 19:28:22 my app screams on wifi ^^; Jun 23 19:30:12 AAAAAHHHHHHHH Jun 23 19:30:14 AAAAAAAAAAAAAHHHHHHHHHHH Jun 23 19:30:17 AAHHHHHHHHHHHHHHH Jun 23 19:30:47 haha Jun 23 19:30:54 vol_: getting rid of all the A's and H's in the english language? Jun 23 19:31:02 ;p Jun 23 19:31:32 vol_ screams on wifi too :) Jun 23 19:31:57 i do too... only on my FiOS at home Jun 23 19:32:04 ^^; Jun 23 19:34:53 now if i could just get this remote stack trace working... Jun 23 19:35:01 or something similar Jun 23 19:35:33 isn't that what DDMS does? Jun 23 19:35:42 _remote_ stack trace Jun 23 19:35:47 ahh Jun 23 19:35:56 so when it exceptions, i get an email with the stack Jun 23 19:36:11 good luck good sir Jun 23 19:36:14 not remote like "not-on-phone", remote like "email-from-china" Jun 23 19:36:14 so i can fix problems b4 i get neg comments Jun 23 19:36:23 Tianon: exactly Jun 23 19:51:23 vol_: have you not been successful in implementing it Jun 23 19:53:08 BeBoo: can you get the stack trace successfully, and you're just having a hard time with the email part? or is getting the stack trace the most difficult part? Jun 23 19:53:57 if you've got some webspace, you could set up a pretty trivial script to email you stacktraces, and have the application POST them to your script, or something similar Jun 23 19:54:20 Tianon: having issues with Thread.setDefaultUncaughtExceptionHandler(new BugReporter()); << Jun 23 19:54:37 it's not calling BugReporter Jun 23 19:55:05 i have a php script ready for it... i just need to get the stack Jun 23 19:55:23 BeBoo, then you're setting it on the wrong Thread Jun 23 19:55:39 KNY: i tried setting it under OnCreate and under my run() Jun 23 20:03:09 =[ Jun 23 20:46:23 ok, so the default handler is getting set but it's never using it Jun 23 20:46:27 hrm Jun 23 20:47:49 How would I make input text boxes? is that equivalent to the TextEdit view? Jun 23 20:50:27 meanburrito920_: the API demos have great examples of text boxes Jun 23 20:51:26 BeBoo, oops, i should have thought of that. thanks :) Jun 23 20:52:25 meanburrito920_, specifically the one that says Hello, Views Jun 23 20:52:26 :) Jun 23 21:20:25 Hi guys Jun 23 21:21:12 anybody knows about the next android dev phone? Jun 23 21:24:56 I don't think there will be a new dedicated dev phone for a while Jun 23 21:26:28 jmm, ok thanks vol_ Jun 23 21:35:36 * BeBoo_ pokes KNY and sammyF with his FiOS ;p Jun 23 21:36:29 * sammyF 's eyes dart back and forth, searching for cover Jun 23 21:58:01 sammyF: half way to 50 Jun 23 21:58:13 $ Jun 23 22:00:14 What is the android OpenGL implementation's obsession with FloatBuffers and IntBuffers >.< Such a pain coming over from C++. Jun 23 22:01:54 jt436: gratz! Jun 23 22:02:10 jt436: still stuck around 35 ;) Jun 23 22:02:11 ha :( Jun 23 22:02:21 you had quite a lot of reviews fast though Jun 23 22:02:43 ah yes but only 1 on the paid version Jun 23 22:03:39 yeah of course :) when I checked you had 60 reviews on the demo. PinIt has the most reviews from my games, and that's 31 ;) Jun 23 22:04:03 oh well ... all I can hope for to break even is a third place at ADC2 Jun 23 22:04:20 or a sudden surge of purchase happy new Android owners ;) Jun 23 22:05:13 mmjack: if I remember correctly, intbuffers are buggy. use short if you can Jun 23 22:06:17 mmjack: read that at least somewhere while trying to get openGL ES to do what I wanted Jun 23 22:07:38 I'm getting annoyed with GL on android...quickly...lol. Jun 23 22:07:51 Trying to port a bit of a Game engine I wrote a while back. Jun 23 22:08:04 Twas all going well tell I got to the dreaded drawing :( Jun 23 22:08:10 ha Jun 23 22:39:01 ok, is there a good tool to check if there are unused resources in the res directory? Jun 23 22:39:22 someone was talking about that the other day, vol maybe? Jun 23 22:39:33 not sure if they found a solution Jun 23 22:39:35 yeah, I started to write one, and then I thought I'd ask Jun 23 22:39:43 to make sure I wasn't reinventing the wheel Jun 23 22:40:18 vol is doing all kinds of funky stuff in his build system due to legacy code from 1,000's of man years ;) Jun 23 22:40:34 : ( Jun 23 22:40:38 lol Jun 23 22:40:43 that is not what I have done Jun 23 22:40:50 my system is called "eyeballing it" Jun 23 22:41:03 "oh hey, maybe we don't need these splash screen pngs for 800x400 resolution!" Jun 23 22:41:15 vol: I guess I should just write something to scan and check if there are any unused resources? Jun 23 22:41:18 but yeah we are doing some pretty funky stuff Jun 23 22:42:25 actually, question for any of you here, is there a convenient way to take an apk and resign it with a different key? Jun 23 22:42:34 or better yet modify a couple things inside of it Jun 23 22:42:51 we want to take an RC build and make it a production build if things go well, but we need to poke the package name on it a few places Jun 23 22:43:22 vol: I don't know enough about it to be able to tell Jun 23 22:43:27 Well try harder! Jun 23 22:43:50 vol: can't you just make both at the same time? Jun 23 22:44:24 we prefer to let the build server be automated, but yeah, it's probably a good idea. Jun 23 22:45:04 vol: oh, you're wanting to make a debug signed one, test it, and then if it passes, convert to a production Jun 23 22:45:06 can anyone tell me why my listview is not populated with contacts data? Jun 23 22:45:08 http://pastebin.com/d679d7b1f Jun 23 22:45:10 actually, not quite Jun 23 22:45:14 we want to create a release signed one Jun 23 22:45:20 http://pastebin.com/d145ce76d Jun 23 22:45:23 but if it passes, we want to make a few duplicates, each with different package names Jun 23 22:45:32 the package names determine the functionalit Jun 23 22:47:46 raugust: do you have contacts in the database? Jun 23 22:48:38 raugust: without your layout files, I can't say what the issue is Jun 23 22:48:53 herriojr yeah.. the standard phone contacts that is Jun 23 22:49:02 oh crap Jun 23 22:49:09 d0h moment Jun 23 22:49:21 it's running in the emulator ofcourse.. Jun 23 22:49:27 that was stupid.. heheh Jun 23 22:52:28 hmmm now it crashes.. can't bind a ListView to a SimpleCursorAdapter.. Jun 23 22:52:52 raugust: also, you probably want to use People.DISPLAY_NAME instead of NAME because NAME can be null Jun 23 22:53:10 ah ok tnx Jun 23 22:55:13 still empty though.. after adding a contact in the emulator.. Jun 23 22:55:36 can you paste your layout files into pastebin with your code? Jun 23 22:55:39 i might be binding it wrong though Jun 23 22:55:54 http://pastebin.com/d145ce76d Jun 23 22:56:12 http://pastebin.com/d679d7b1f Jun 23 22:56:30 ListAdapter adapter = new SimpleCursorAdapter(this, R.layout.contacts, cursor, new String[] { People.DISPLAY_NAME }, new int[] { android.R.layout.simple_list_item_1 }); Jun 23 22:56:47 not sure if the android.R.layout.simple_list_item_1 is correct.. Jun 23 22:57:47 yeah, you're doing it wrong Jun 23 22:57:51 you need 2 layouts Jun 23 22:57:55 one for the items in the list Jun 23 22:58:04 ah ic Jun 23 22:58:07 and one for your overall layout Jun 23 22:58:16 you have one for your overall layout Jun 23 22:58:23 yep.. Jun 23 22:58:29 you probably just want a TextView to start with for the items Jun 23 22:59:15 yeah Jun 23 22:59:33 and your simple cursor would then be new SimpleCursorAdapter(this, R.layout.contact_item, cursor, new String[] {People.NAME}, new int[] { R.id.name }); Jun 23 22:59:35 tnx man Jun 23 22:59:52 or something similar to that Jun 23 23:03:21 yeah works now tnx! Jun 23 23:10:53 have anyone worked on p2p app? I log into g1 shell and run netcfg and I try to ping the ip (14.*.*.*/30) of my g1, well, I can't ping it. I will be glad to have a ref pointer to find more info for where to start. Jun 23 23:11:17 aunn: *ugggh* Jun 23 23:17:32 hmm ... didn't know the chats were logged Jun 23 23:19:33 aunn: I Worked on a torrenting app if thats what you meen... I'm not really with it today Jun 23 23:21:39 mmjack: i am not talking about p2p file sharing type. i am more interested in apps that can communicate each other. for example, playing pingpong with another android user over the internet Jun 23 23:22:14 aunn: p2p is not possible on most mobile networks -- you need an intermediate to facilitate the communication. Jun 23 23:22:24 google originally offered to be that through gtalk, but has not followed through yet Jun 23 23:22:48 sadly Jun 23 23:22:50 tcp mah p2p Jun 23 23:24:46 how would I load an image from an url? Jun 23 23:25:00 download it with HttpClient, then display it. AsyncTask may be helfpul to you. Jun 23 23:26:19 i see. thx jasta, i have read that gtalk support data communication before version 1.0. so google still has not provided the data communication feature yet, Jun 23 23:26:36 after that Jun 23 23:30:41 it would be nice for android to have that kind of p2p feature when other mobile devices don't have that. Jun 23 23:30:52 p2p for users? Jun 23 23:30:57 or like p2p for updates/ Jun 23 23:31:04 aunn: if you don't care about sms charges, you can use port-directed sms (assuming you aren't doing a real-time game) Jun 23 23:31:22 updates can win in p2p. Jun 23 23:31:28 and that's assuming they're on the same carrier Jun 23 23:31:33 herriojr, the user might care, u know ;) Jun 23 23:31:37 but the cell network isn't quite structured like the intertubes generally. Jun 23 23:31:50 grey-: I think he means being able to transfer any data between two phones over wifi Jun 23 23:31:52 aunn: yeah, I just didn't know how yours is being marketed ;) Jun 23 23:32:09 wifi should be fine; but via hsdpa/edge/etc... Jun 23 23:32:15 I do a lot of white-label for carriers, so our sms's are usually free Jun 23 23:32:16 the cell towers will become the bottleneck. Jun 23 23:32:21 it is still an idea state Jun 23 23:33:19 sammyF, I don't want wifi, I want it over the internet Via 3g Jun 23 23:33:37 aunn: ah Jun 23 23:34:18 with wifi, u r stuck to wifi spot Jun 23 23:35:14 aunn: cell towers tend to share bw amidst all their users; like other hub architectures (e.g. cable modems); the more people using it; the slower it gets for everyone. Jun 23 23:35:28 albeit, per tower... Jun 23 23:35:55 but that layer is going to be obfuscated from you if you're just dealing with TCP stuff anyway. Jun 23 23:35:57 they should just make port-directed sms free between phones Jun 23 23:36:07 since they just piggy-back anyways Jun 23 23:36:22 hmmm. Jun 23 23:36:31 mesh routed systems would do something more like that. Jun 23 23:36:44 but you're looking at things like 802.16e+ wimax if you want such things. Jun 23 23:37:18 grey- my app is not going to bombard the tower with huge chunk of data, it will just a be an exchange of a short strings Jun 23 23:37:34 aunn: depends on how many users you have ;) Jun 23 23:37:35 *shrug* prolly fine then. Jun 23 23:37:56 I mean, in general; p2p systems scale far better than hub and spoke systems. Jun 23 23:38:06 the problem is, even if your system is p2p; it's layered over a hub and spoke. Jun 23 23:38:16 so the deficiency isn't clearly apparent. Jun 23 23:39:22 you seem some similar headaches with people tunneling ipv6 over ipv4 and having crazy inexplicable latency across certain hops. Jun 23 23:39:35 err "you'll see" Jun 23 23:39:37 grey: so, from what I was told, a phone can leave a connection open to a server (similary to how I was told gmail does it), so that it can send/receive data when needed, so she can just set up an intermediate server, correct? Jun 23 23:40:23 kind of. Jun 23 23:40:37 herriojr: i wrote an example of precisely this sort of thing a while back Jun 23 23:40:48 jasta: do you have a link, I'd actually like to read it Jun 23 23:41:14 http://devtcg.blogspot.com/2009/01/push-services-implementing-persistent.html Jun 23 23:41:27 herriojr: that sounds like of like the old napster architecture. Have central directory server(s) and hook peers up between that. Jun 23 23:42:04 grey: I wouldn't have suggested it if there were an easier way on mobile :) Jun 23 23:42:14 hehe. Jun 23 23:42:24 IS41 broadcast! Jun 23 23:42:30 and multicast. Jun 23 23:42:32 if only. ;-/ Jun 23 23:42:43 well actually. Jun 23 23:42:45 you're talking a little over my head there ;) Jun 23 23:42:48 * grey- thinks back to his cellular days. Jun 23 23:42:53 ah, I'll shut up then. :) Jun 23 23:43:12 I used to work as a network operator for a strange hybrid SS7/tcp company. Jun 23 23:43:47 yeah, since I graduated college, I've been working where I am now (almost 3 years) Jun 23 23:43:56 doing cell phone apps Jun 23 23:44:03 cool. Jun 23 23:44:17 I haven't dealt deeply with errr cellular backend stuff in a while, left that job in 2001. Jun 23 23:44:31 company is still around; kinda cellular backhaul for a lot of telemetry companies. Jun 23 23:45:20 although I don't know what you're talking about, it does sound interesting ;) Jun 23 23:45:38 it was kinda neat. Jun 23 23:45:39 err... Jun 23 23:45:46 http://www.aeris.net/ Jun 23 23:45:50 they're still around. Jun 23 23:46:13 I never had a clear explanation for what that company was, I still don't. Jun 23 23:47:01 I can't tell either Jun 23 23:47:15 basically. Jun 23 23:47:20 let's say you want to make an alarm system Jun 23 23:47:29 or a gps tracking device Jun 23 23:47:38 or a power meter reader Jun 23 23:47:55 and you want to have some sort of data backhaul that works no matter where the equipment is installed. Jun 23 23:48:06 ok, I get where you're going Jun 23 23:48:10 (and the amount of data isn't much, maybe sends a packet every hour or day or month) Jun 23 23:48:17 we provided the backend for that. Jun 23 23:48:26 by partnering with every cellular carrier in north america. Jun 23 23:48:38 and then made the data available to customers via a tcp interface. Jun 23 23:48:45 oh ok Jun 23 23:49:37 but the data... Jun 23 23:49:42 I mean this company was around long ago. Jun 23 23:49:50 a lot of the cellular networks were AMPS when I was working there. Jun 23 23:49:55 was like, just using the dialed digits. Jun 23 23:50:02 ah ok Jun 23 23:50:07 which works out to about 31bits of data per 'packet' Jun 23 23:50:19 which is just enough for say, a latlong reading from a gps unit. ;) Jun 23 23:50:35 all kinds of strange hackery. Jun 23 23:50:40 we didn't use the voice channel at all. Jun 23 23:50:45 so we were billed almost nothing Jun 23 23:50:50 and billed very little for usage as well. Jun 23 23:50:57 that's cool Jun 23 23:51:20 kinda? Definitely odd. Jun 23 23:51:35 looks like these days they offer whatever kind of 3G services the carriers use too. Jun 23 23:51:45 but sort of a unified billing/backen. Jun 23 23:52:03 doesn't matter where you roamed, what network you were on... that was transparent. Jun 23 23:52:10 so did they also build the towers as well? Jun 23 23:52:14 nah. Jun 23 23:52:17 ah ok Jun 23 23:52:24 I mean... Jun 23 23:52:29 we were sort of in an odd spot. Jun 23 23:52:38 I know my brother designs/builds cell towers, and I can't remember what company he works for Jun 23 23:52:41 because we had roaming contracts with every carrier... Jun 23 23:52:50 but got these crazy deals because we weren't doing voice. Jun 23 23:53:04 we were this weird entity. Jun 23 23:53:11 and had to make sure to act more like an internet company. Jun 23 23:53:18 yeah Jun 23 23:53:21 and couldn't tell them we had a telcom switch Jun 23 23:53:29 because they might think we would compete with them if they knew. Jun 23 23:53:58 but we had HLR'S and STP's and whatnot. Jun 23 23:54:08 I'd actually like to learn how all that back end stuff works Jun 23 23:54:18 I guess? Jun 23 23:54:26 a lot of it is kind of irrelevant now with Voip. Jun 23 23:54:45 and increasingly... better to get ethernet+tcp than deal with any telcom headaches. ;) Jun 24 00:04:27 could someone help me cross-compile a kernel for my phone? Jun 24 00:04:38 I grabbed the config.gz from /proc on a running image Jun 24 00:05:01 I've never cross-compiled a kernel before, though, and I don't know which patches JF used Jun 24 00:12:40 cj: ask in #android if you haven't already Jun 24 00:20:37 alright. I'm looking through a wiki, and it looks like running make from the root checkout will do it Jun 24 00:20:48 * cj just realized this is for app development, not system development Jun 24 00:26:18 cj trying to build android from source? Jun 24 00:54:29 how can i programmatically know if debuggable=true in the manifest.xml ? Jun 24 00:58:50 anyone know about profiling android - i seem to lose 30% of my speed when i leave my surfaceview nd return to it Jun 24 01:08:16 Gaz, look through the IO session videos; there were a few on debugging/optimizations Jun 24 01:08:35 romainguy had a good one on optimizations and there was one on debugging arts of the ninja master or something Jun 24 01:13:01 Gaz, are you using openGL in your project? Jun 24 01:15:02 and if so, does the debugger work for you? Jun 24 01:21:32 im not no Jun 24 01:21:38 thxkny Jun 24 01:21:46 im totally baffled it just slows right down no ideas why Jun 24 01:24:33 Gaz: too bad. thx Jun 24 01:27:53 yeh Jun 24 01:27:54 what a mare Jun 24 01:29:03 the made traceview stuff is just too mad Jun 24 01:29:08 made=mad Jun 24 01:32:09 basically might need to give up on the app because of it Jun 24 01:32:14 or move all my gui into a surfaceview Jun 24 01:32:19 :-/ Jun 24 01:32:31 surely leapign from a surfacevierw to a proper gui and back again is pretty standard stuff Jun 24 01:32:54 its like theres an old instance of a thread still going but its not i see it end Jun 24 02:23:34 hey romainguy__, you should port RelativeLayout to Flex :-). I'm sick of doing nested HBox/VBox haha Jun 24 02:27:39 romain gets around on the net :) see that name often Jun 24 02:29:42 Hi folks ! Jun 24 02:30:05 toying around with android, I'm sure I'm the 10000th one to ask (but my googling around didn't come up with an answer that worked for me) Jun 24 02:30:14 installed the SDK 1.5, eclipse 3.4, the plugin Jun 24 02:30:21 followed the steps for the Hello World tutorial Jun 24 02:30:30 and as soon as I created the project I got Jun 24 02:30:40 [2009-06-24 11:34:43 - androtestoid] no classfiles specified Jun 24 02:30:40 [2009-06-24 11:34:43 - androtestoid] Conversion to Dalvik format failed with error 1 Jun 24 02:30:56 from there, I can't run anything, I get Could not find androtestoid.apk! Jun 24 02:31:10 I can't quite figure out what I did wrong Jun 24 02:32:13 also, how do you re-trigger the conversion to Dalvik format ? it seems to have tried once when creating the project and that's it'' Jun 24 02:32:17 "Build..." is grayed out Jun 24 02:35:43 hey you know when you rotate the device the activity starts again, how do i make the activity do this via code? Jun 24 02:36:19 Gaz, startActivity(getIntent()); finish(); ? Jun 24 02:36:22 :) Jun 24 02:36:37 hmm Jun 24 02:36:38 ok Jun 24 02:36:56 raugust: yep Jun 24 02:37:50 hrm, went to the properties, unchecked and re-checked the SDK 1.5 Jun 24 02:38:00 the Davlik conversion error is gone Jun 24 02:38:04 but it still never finds the .apk Jun 24 02:38:20 isn't "build..." suppose to generate it ? (or autogenerate it if I check build automatically ?) Jun 24 02:38:30 there's no error in the log other than this .apk file is missing when I try to run Jun 24 02:38:54 KNY, hmm doesnt seem to do much Jun 24 02:39:23 kny - see my program slows down when i leave the menu but if i open the keyboard it goes fast again - it seems starting activity again fixes the issue so i want to emulate exactly what it does in code Jun 24 02:39:33 ah again Jun 24 02:39:40 clean and rebuild -> davlik error again Jun 24 02:39:46 something is fubar in the eclipse plugin Jun 24 02:40:59 [2009-06-24 12:40:17 - androtestoid] no classfiles specified Jun 24 02:40:59 [2009-06-24 12:40:17 - androtestoid] Conversion to Dalvik format failed with error 1 Jun 24 02:41:01 oh well Jun 24 02:41:06 nobody else is seeing this ? strange Jun 24 02:42:39 Hi, how can I query the Contracts (like the way android's Contracts)? Jun 24 02:42:46 I try doing this Cursor c = getContentResolver().query(People.CONTENT_URI, null, null, null, null); Jun 24 02:43:08 but it gives me contact in my GTalk (not just the phone contract) as well Jun 24 02:55:20 benh sorry mate not seen that - perhaps later in the day youll get soem better answers Jun 24 02:55:38 benh all i can say is make sure the android plug in is set up properly and youve selected 1.5 in properties for the project Jun 24 02:55:51 yup Jun 24 02:55:54 that's all done Jun 24 02:56:09 it's basically just installed from scratch and followed the tutorial Jun 24 02:56:11 weird Jun 24 02:56:57 tried flicking between 1.5 SDK and 1.5 + google Jun 24 02:57:00 same deal Jun 24 02:57:06 re-set the global path to the sdk, same deal Jun 24 02:57:19 Ill try re-creating the project... Jun 24 02:57:46 benh: I had a problem with the hello world, I never bothered trying to sort it, but possibly look for files starting with _ or ., that is apparently what was causing my problem, but like I say, I didn't try to fix it Jun 24 02:58:16 same Jun 24 02:58:23 just created a new project and I get the error right away Jun 24 02:58:38 doc_savage: look for such files where ? Jun 24 02:59:00 ie, it happens when creating a new project from scratch Jun 24 02:59:41 benh: in that case it won't be that, apparently there are some files that ship with the sample hello world, that because it was created on a mac or something, trips up some systems, mine was specific to helloworld though **** ENDING LOGGING AT Wed Jun 24 02:59:57 2009