**** BEGIN LOGGING AT Thu Jun 11 02:59:57 2009 Jun 11 03:04:09 <_Auron_> FIXED Jun 11 03:04:14 * _Auron_ is extremely hahppy Jun 11 03:04:15 <_Auron_> happy* Jun 11 03:32:20 I couldn't understand what an Adapter does.. ArrayAdapters, ImageAdapters, etc... stuff that subclass from BaseAdapter. What is their purpose? Jun 11 03:38:05 oh.. I think I get it now. So the adapter acts like a "data handler" for view objects, right? Jun 11 03:44:20 the9a3eedi, yeah, it's a middleman between a data set (cursor, array, whatever) and the UI Jun 11 03:44:38 the9a3eedi, watch romainguy_'s UI optimizations talk from I/O Jun 11 03:52:23 KNY: sure.. will check it out Jun 11 03:52:39 it's an hour long, so budget some time for it Jun 11 03:52:52 yeah lol its almost 12:00am here Jun 11 03:52:56 maybe tomorrow.. Jun 11 03:53:04 hmm.. is there a good article about "recycling"? I keep seeing it getting mentioned here and there in the tutorials Jun 11 03:53:07 but I think he talks about adapters early on Jun 11 03:53:14 the9a3eedi, he talks about that, too :) Jun 11 03:53:22 in the adapter/list part of his talk Jun 11 03:53:38 you could also just grab the slides, there's a really good diagram in there to illustrate Jun 11 04:02:44 hmm I see.. I'll make sure I check it out then :P Jun 11 04:03:22 you know, I haven't gone through the Framework Topics in the Dev guide. I just read a little, thought that I'll forget everything the next day unless I do some code Jun 11 04:03:33 so I went ahead and now I'm doing the hello world tutorials. Jun 11 04:03:39 I wonder if that was a good idea after all Jun 11 04:03:40 oh well Jun 11 04:17:38 hmm.. Why doesn't R.styleable exist in my case? am I supposed to do something? I can't seem to get eclipse to find it Jun 11 04:18:30 http://groups.google.com/group/android-developers/browse_thread/thread/6554c6688f3ca6d9?pli=1 hmm.. it seems to have been removed.. interesting Jun 11 04:18:54 so now what? I'm following the Gallery tutorial :P and it tells me to use styleable Jun 11 04:31:04 i removed the stuff that tells me to use stylleable.. but now the gallery looks ugly :( oh well Jun 11 04:50:48 any service specialists about? Jun 11 05:24:07 hmm.. I'm planning to go through the Notepad tutorial. but do I really have to go through ALL of the Application Fundamentals article? :P I mean I understand the basics Jun 11 05:48:57 yes, you must read every word.. failure to do so will cause a quantum rift and the universe will be sucked in. Jun 11 05:50:04 Question on SurfaceView / GLSurfaceView -- if I want to do both 2D and 3D (diff times), any reason not to have both a SurfaceView and a GLSurfaceView allocated same time, and hide/show as needed? Jun 11 06:03:58 Radix_: :( oh well.. guess I'll do that tomorrow. My brain hurts from too much programming of HelloWorlds (pathetic, yes? but it's 2:00AM :P ) Jun 11 06:04:08 * the9a3eedi restarts Jun 11 06:12:47 hi Jun 11 08:43:00 Anyone know how to get data from an EditBox to use in my code? Jun 11 09:04:15 Hey all, has anyone managed to use android.telephony.telephonyManager and successfully getNeighboringCellInfo ?? Jun 11 09:30:23 anyone live in SF? Jun 11 09:32:22 Anybody got a link to a quick OpenGL Texture loader? All the ones I'v written are horribly slow... Jun 11 11:40:58 Is there any way to have a ListActivity inside a TabHost and use intents to update the list's content without having it go fullscreen? Jun 11 11:41:27 Found a post with a similar problem, but I can't figure out if it was resolved or not: http://groups.google.com/group/android-developers/browse_thread/thread/978fc19ae5976efa/f646685a48122930?lnk=gst&q=tabhost+listactivity#f646685a48122930 Jun 11 12:12:41 hi all i am trying to follow the norepad tutirials i am experiancing some problems with it. Jun 11 12:12:57 Description Resource Path Location Type Jun 11 12:12:57 The method onCreateContextMenu(ContextMenu, View, ContextMenu.ContextMenuInfo) in the type Activity is not applicable for the arguments (Menu, View, ContextMenu.ContextMenuInfo) Notepadv2.java Notepadv2/src/com/android/demo/notepad2 line 89 Java Problem Jun 11 12:14:12 in the tut it said ti create onCreateContextMenu .. so i did like it said in the tut onCreateContextMenu(Menu menu, View v ContextMenuInfo menuInfo) but there was syntax error because there is a missing , so i added it and got this new error Jun 11 12:18:31 fanno, it says what your problem is in the error messager Jun 11 12:18:33 message* Jun 11 12:18:52 read it closely, particular your parameter types Jun 11 12:20:06 i am new to java also =) but i think i just fixed it use the options " to quick fix Jun 11 12:20:54 i had to remove the @Override on onCreateContextMenu and then make it "return true" and do (ContextMenu) menu Jun 11 12:21:19 err, that's the wrong fix Jun 11 12:21:48 put the @Override back in; it's there to warn you when you slip up (like you just did) Jun 11 12:22:49 if you need a ContextMenu instead of a Menu, why do you have it taking a Menu? Jun 11 12:23:17 http://developer.android.com/guide/tutorials/notepad/notepad-ex2.html Jun 11 12:23:19 thats what it say Jun 11 12:23:25 strp 2 Jun 11 12:23:28 *strp Jun 11 12:23:34 http://developer.android.com/reference/android/app/Activity.html#onCreateContextMenu(android.view.ContextMenu,%20android.view.View,%20android.view.ContextMenu.ContextMenuInfo) Jun 11 12:23:39 grr *step Jun 11 12:23:58 i dont know i just following the tutorial to try and learn =) Jun 11 12:24:32 I believe the tutorial is out of date Jun 11 12:24:36 so it should be like this ? Jun 11 12:24:37 http://pastebin.com/m600b4deb Jun 11 12:24:38 (in that regard) Jun 11 12:24:44 ahh ok Jun 11 12:24:58 or should it still return bool ? Jun 11 12:26:50 no, it's got a void return in the docs Jun 11 12:28:45 fanno, if you are using Eclipse, let your mouse pointer hover above function/method names to get their args and return values Jun 11 12:29:16 and hopefully some description (unless you're using gl, in which case it's completely useless:P Jun 11 12:30:41 sammyF: THANKS I NOW SEE IT SHOULD INDEED BE VOID. .. THANKS Jun 11 12:30:45 wops capse Jun 11 12:32:29 I wish that when you used @Override, eclipse would let you auto-complete the method name/args Jun 11 12:34:44 KNY: well i am new to both eclipse and java so maybe android is a to bit a "leap" for me but i do have some experiane with c++ / php Jun 11 12:35:22 fanno, well, here's an Eclipse tip for you: ctrl+space for content assist Jun 11 12:35:22 KNY: my personal wish is that I could get rid of eclipse completely and just use code::blocks ;) Jun 11 12:35:36 sammyF, no reason you can't Jun 11 12:36:00 KNY: well ... sorry, I forgot to mention the part where I also got rid of Java and got back to C++ :P Jun 11 12:36:06 ah, haha Jun 11 12:36:13 KNY: cool ! thanks that seems very usefull tep =) Jun 11 12:36:17 *tip Jun 11 12:36:47 fanno: Eclipse is seriously nice for Java though. lots of very helpfull tools Jun 11 12:37:07 KNY: ya so i am toled . =) Jun 11 12:37:23 fanno, and it works for camelCase, too; for example, type out "getLNCI" and then hit ctrl+space and it'll fill-in getLastNonConfigurationInstance() Jun 11 12:38:01 KNY: once i am done with the totorials, where is the best place to search for into on how to add a icon to the notification area and add a "ongoing" process ? Jun 11 12:38:42 fanno, http://d.android.com/reference/ Jun 11 12:39:08 fanno: you might also want to check anddev.com Jun 11 12:39:19 for tutorials Jun 11 12:39:55 .org you mean ? com is blank Jun 11 12:40:09 fanno, yeah ;) Jun 11 12:40:23 sammyF: ok =) its bookmarked for later =) Jun 11 12:40:32 sadly i am off to work soon Jun 11 12:41:44 i wanna create a program that create a ongoing process that allow you to click the ongoing process from the notification area and quickly allow you to change language and keyboard layout and spell checking language ! Jun 11 12:41:50 and I'm back to trying to get some opengl stuff to appear ;) Jun 11 12:42:10 i have needing to change the language all the time depending on who i am smsing / chating with Jun 11 12:42:27 have to go back to the settings every time for it =/ Jun 11 12:49:03 sammyF, opengl is tough? I was considering doing it for another app of mine but I might have to reconsider :) Jun 11 12:52:41 KNY: well ... I find it rather tough and complicated to set up somehow, but the biggest problem is really how there is nearly no documentation at d.android.com Jun 11 12:52:58 KNY: working through the tuts at anddev at the moment, so it starts to make sense Jun 11 12:53:01 ah Jun 11 12:53:30 I need a new adc2 idea since it appears that jasonchen is avoiding me ;) Jun 11 12:58:07 trying to get some apk test site to do a test of Circuits Jun 11 12:58:23 it's a good game Jun 11 12:58:45 yeah ... sells like shit though Jun 11 12:59:03 ok all done with that tutorial =) off to work and do a few more tuts when i get home =) Jun 11 12:59:06 unfortunately, I don't think someone reviewing that will help though Jun 11 12:59:20 KNY: neither do I, but it won't hurt Jun 11 12:59:21 have a great day and thanks for helping me =) Jun 11 12:59:28 cya later fanno Jun 11 13:00:28 KNY: had to do a video of me playing PinIt lefthanded, while holding a camera yesterday Jun 11 13:00:40 haha that takes skill Jun 11 13:01:30 KNY: I was getting lots of "too hard", "impossible", "physics are too sensitive" comments, so I posted the link to the youtube video as "developper website" :P Jun 11 13:01:53 haha nice Jun 11 13:02:05 it is really hard, though I've never spent more than like 30 seconds on it Jun 11 13:02:16 I do the first demo level in something like 39 secs. I made one a few minutes earlier where I did it in 25, but I ended it with "all those who say it's impossible, you just suck", so I decided to reshoot it ;) Jun 11 13:02:16 but it's too sensitive to play in, say, a moving car Jun 11 13:02:31 haha Jun 11 13:02:41 lol ... yeah. I wouldn't try it in a moving car neither :P Jun 11 13:03:06 but try "Labyrinth" in a crowded bus Jun 11 13:03:15 my guess is that it's not going to be easy neither ;) Jun 11 13:03:33 true Jun 11 13:03:52 Labyrinth has just a bigger ball, so they can get away with ~heavier~ physics Jun 11 13:04:20 * sammyF is thinking his next sentence over to avoid having it soudn nasty Jun 11 13:04:26 haha Jun 11 13:04:44 PinIt's balls are smaller, so less mass, so they need to be faster Jun 11 13:05:11 (now replace PinIt by "my" and smirk :P Jun 11 13:25:22 i can't figure out how to get the offline version of the documentation to work. e.g. if i try to search for a class i am getting back no file exists at the address "/search.html". i guess i need to figure out how to get my webrowser to look into my sdk/docs folder when a url starts with file:// Jun 11 13:31:04 anyone else have that problem, or do i do something wrong? Jun 11 13:43:56 KNY: forget what I said about anddev tutorial Jun 11 13:44:26 after butchering my code, and wondering why nothing works, I ended up reading ALL the comments Jun 11 13:44:43 apparently the opengl stuff is *old* and doesn't work with the current SDK Jun 11 13:49:30 if i wanted to make an app that dials, then does further dialing once on the call Jun 11 13:49:32 is that possible ? Jun 11 13:50:28 say if i wanted to interact with the remote system via dtmf Jun 11 13:57:38 i am trying to learn how to get the list of application installed on android like how atrackdog does it Jun 11 13:58:05 i tried working with the source code in Settings, but cant get a clue of which method should i extract Jun 11 13:58:19 does anyone knows how can i do that? Jun 11 14:00:29 have you try to look at the manageapplication code? see the ma Jun 11 14:00:33 http://www.google.com/codesearch/p?hl=en#ohAXAHj6Njg/src/com/android/settings/ManageApplications.java&q=android%20package%20install Jun 11 14:00:55 yes Jun 11 14:00:58 i am lookign at that code Jun 11 14:01:11 hmm Jun 11 14:01:20 this version is different from the one i am looking at Jun 11 14:01:46 http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;a=blob;f=src/com/android/settings/ManageApplications.java;h=1595de14838aec0c3bc0da7b6808392ae561a3db;hb=HEAD Jun 11 14:01:53 i was refering to this Jun 11 14:01:56 hmmmm Jun 11 14:02:46 thanks almondmendoza i will look at the one that u inserted here Jun 11 14:04:00 see one from git if its donut or cupcake your looking at Jun 11 14:05:35 how can u tell which is from cupcake Jun 11 14:06:00 import android.content.pm.IPackageStatsObserver; still doesnt resolve... i cannot find it in documentation.. Jun 11 14:07:05 on the top of the page it said 'korg/donut' :) Jun 11 14:07:36 oops Jun 11 14:07:37 :p Jun 11 14:07:50 ah.. meaning to say i need to find the one for cupcake Jun 11 14:27:36 when is start a new activity with intent is it possible to hand a data over to the new avtivity? Jun 11 14:35:39 cesar9: yes Jun 11 14:42:25 cesar9: look at the intent that gets sent Jun 11 14:46:03 on an uninstall my widget stays around, or better the widget it just says now "Problem loading widget". can i somehow remove that on an uninstall? Jun 11 16:23:49 ugh.. something ugly is going on with listviews Jun 11 16:24:17 try to hold down a key on the keyboard and at the same time scroll with your finger Jun 11 16:24:22 in contacts for example Jun 11 16:26:35 sometimes is completely screws ups the selected/focused/whetever states of some of the list items Jun 11 16:27:20 and sometimes it displays the listview filtering overlay that is completely empty and I can't remove it by pressing delete Jun 11 16:27:37 I have to enter something and then delete it for it to be removed Jun 11 16:30:01 in call log, some of the rows are in a state where the background of the first image (the green phone icon) goes orange and the text of the rows goes black and I can roll over it with the "real focus" but it still stays like that Jun 11 16:30:17 romainguy, you around? Jun 11 16:32:13 listview was your baby.. maybe you know what's going on :) Jun 11 16:35:52 grr, gtg Jun 11 16:41:57 sounds like merge states going crazy Jun 11 17:08:58 im still stuck at the intent thing, maybe someome can give me a hint how to hand informations over from one activity to the next with intents Jun 11 17:10:44 cesar9: create a new intent with the class you want... then do newIntent.putExtras(key, name); Jun 11 17:11:23 to get info back, startActivityForResult(newIntent, SOME_ID); Jun 11 17:12:17 then override onActivityResult in the calling activity, and check for SOME_ID, then act upon it Jun 11 17:20:55 of course, if you want the intent that is called to handle the extras placed into the intent, you can call getCallingIntent in the onStart method (iirc) Jun 11 17:21:02 or really anywhere w/in the activity Jun 11 17:21:27 cool thanks a lot Jun 11 17:28:00 vol, is getCallingIntent different than getIntent? Jun 11 17:33:53 KNY: there is no getCallingIntent, only getCallingActivity from what I see Jun 11 17:34:13 herriojr, ah, then he meant getIntent() Jun 11 17:34:16 KNY: I think he just meant getIntent Jun 11 17:34:22 yeah ;) Jun 11 17:41:27 * sammyF wished he knew if any of his near-customers was working in a car rental, so that he could go there, rent a car, drive a day and then return it while asking for his money back Jun 11 17:41:52 hmm sdk 1.5 projects dont generate ant build files anymore? Jun 11 17:42:03 deebo: it's in gen Jun 11 17:42:33 aha! Jun 11 17:42:39 it's not placed in the src dir anymore, but it's still there Jun 11 17:43:18 sammyF: you get a lot of 24 hour returns? Jun 11 17:43:51 doc_savage: 23 sales, 14 Cancelations Jun 11 17:44:14 damn, thats pretty high, you do demos too don't you? Jun 11 17:44:21 doc_savage: that amounts to 25.92$ income btw Jun 11 17:44:33 doc_savage: yes. People don't check them out though Jun 11 17:44:38 sammyF, nice, you've probably made $0.01/hr :) Jun 11 17:44:53 yay, you're even then (the developer account was $25, right? :P ) Jun 11 17:44:55 I asked one of the canceling guy why, and his answer was "not my type of game" ... Jun 11 17:45:13 I mean ... the demo is *exactly* the same game, albeit time limited ... so wtf????? Jun 11 17:45:36 that'd wind me up, esp since you do demos (I'm not much of a game on-a-phone person), but even I've seen your demos on the market Jun 11 17:45:38 sammyF, never underestimate the stupidity of Market users Jun 11 17:45:40 tauno: yep. The dev account is paid for. onlyl 400 euros to go to pay for the phone :P Jun 11 17:46:12 KNY: I learnt that the hard way ;) Jun 11 17:46:14 so in 2 years, your totally even and you can start making a profit ;) Jun 11 17:46:32 tauno: if I didn't hang myself out of frustration first, yeah ;) Jun 11 17:46:43 tauno: except in 2 years he'll have had to buy a new device to continue dev no doubt (sorry sammyF) :) Jun 11 17:47:09 ah yeah, he's screwed then :P Jun 11 17:47:16 sammyF: which game is this? Jun 11 17:47:28 hey, you're $25.92 closer to breaking even than I am Jun 11 17:47:39 but writing software of any kind is a matter of frustration ;) Jun 11 17:48:16 tauno: nah .. I'm not. I live in the carribeans, I have 2 sailboats to relax on ... even if I don't make money, at least I'll be in the sun :P Jun 11 17:48:49 kRutOn: the current cancelation was PinIt. The "not my type of game" guy was on Circuits Jun 11 17:48:57 sammyF: I'm so jealous right now, I have visions of you sat in the sun, on the deck of your boat, deving on your laptop Jun 11 17:49:14 (I live in Hull, UK, we get about a month of sun a year) lol Jun 11 17:49:37 doc_savage: I used to do that. then I opened the laptop and had to remove the rust. now it's a 2mx2m closet with an AC ;) Jun 11 17:49:59 KNY: don't worry. You'll get your share of cancelations too :P Jun 11 17:50:13 sammyF, impossible, since all of my stuff is free Jun 11 17:50:28 I get some pretty decent donations, though Jun 11 17:50:57 KNY: do you release free and donate versions? or are these donations from other means (paypal etc.)? Jun 11 17:51:13 doc_savage, just free versions Jun 11 17:51:17 KNY: ah! good point! They'll still try to cancel though ... and when they notice they can't they'll leave a *comment* ;) Jun 11 17:51:17 people find my site on their own Jun 11 17:51:24 sammyF, ahaha Jun 11 17:51:48 doc_savage, some of my apps have a link to my donation page buried in the "About" dialog Jun 11 17:52:14 ah cool, I'm still working on my first app, which I'm going to slap out there free, but I wouldn't mind a donation or two on the way :) Jun 11 17:52:30 I actually did a video yesterday to answer the multitude of "Impossible" "way too hard" comments on pinit. finished the first level, with my left hand, holding the camera with my right in less than 40 secs :P Jun 11 17:52:41 yeah.. I'm also still wokring on my app... but I know it'll never be released :P Jun 11 17:53:00 doc_savage, make it an app that saves people money and they'll email *you* asking where they can donate :) Jun 11 17:53:12 or more specifically "it'll never be finished" Jun 11 17:53:15 KNY: hehe ;) Jun 11 17:53:22 doc_savage, what's your app? Jun 11 17:53:25 KNY: that does make good sense Jun 11 17:53:54 doc_savage: people are like that. I had a comment "too hard and boring" ... 10 points for grammar, 1 for logic Jun 11 17:53:56 it's a wifi geolocator, it's more of a learning project for me, services, notifications, gps, wifi etc. Jun 11 17:54:21 pretty ambitious for a first app :) Jun 11 17:54:23 (I personally have no use for the app I'm building, but it is opening me up to android dev nicely) Jun 11 17:54:45 jasonchen, ping Jun 11 17:54:58 sammyF, can't find "pinit" on the market - it's only a paid version or it's just available in specific regions? Jun 11 17:55:02 KNY: yeah, I like the challenge, keeps me motivated, I find it hard to stick to notepad tutorials etc. Jun 11 17:55:10 doc_savage, yeah Jun 11 17:55:35 tauno, it's in brain&puzzle. there is a full and a free demo version Jun 11 17:55:36 sammyF: yeah, too hard ain't a valid comment, but I do love your video response, that just rips them Jun 11 17:55:43 tauno: relatively high in the "by date" tab Jun 11 17:56:31 aha, "pin it" not pinit :)) Jun 11 17:56:46 stupid market crappy search Jun 11 17:56:55 sadly, you CAN finish pinIt in less than 24 hours. It's more of a "come back and try again to relax" kind of game. Jun 11 17:57:18 KNY: they really should ask one of the big web search engines for some help on it, yeah :P Jun 11 17:57:33 sammyF, I agree, maybe they could partner with Bing... Jun 11 17:57:55 sammyF: I'd say you have the right idea, short, sweet and addictive Jun 11 17:58:06 KNY: Maybe they actually did, and that's why it's not working ;) Jun 11 17:58:11 sammyF, ahaha, zing! Jun 11 17:58:34 anyone else getting an internal server error on cyrket.com? Jun 11 17:59:05 doc_savage, I get them all the time now Jun 11 17:59:06 doc_savage: yes. it's down Jun 11 17:59:09 I think saurik broke something Jun 11 17:59:17 been down for over an hour or so Jun 11 17:59:24 err.. wtf.. started Circuits (it's in fullsceen) and the noifications bar (or however it's called) keeps flashing on top of it.. appears for a split seccond and then disappears for a second and then reappears etc.. Jun 11 17:59:24 ah, ok Jun 11 17:59:47 ok, now it disappeared for good Jun 11 18:00:07 morrildl, I was told to talk to you about ADC2 Jun 11 18:00:34 * kRutOn . o O ( whom do I bribe to win ) Jun 11 18:00:50 kRutOn, don't give away my secrets! Jun 11 18:00:54 thanks for letting me vent out guys. I was getting really angry :) Jun 11 18:00:55 kRutOn: >:) Jun 11 18:01:47 I just had an idea for an app. It gives you Second Life dollars. Jun 11 18:02:02 Winnah! Jun 11 18:02:05 kRutOn: lulz. Your app is already my most used. ;) Jun 11 18:02:22 kinda sucks that it has to be a completely new app Jun 11 18:02:26 sammyF, the really-high-pitched "ping" that happens when you click on the menu.. that's really annoying :) Jun 11 18:02:31 well, maybe browser or sms (but those aren't in market) Jun 11 18:02:36 tauno, you can turn it off Jun 11 18:02:58 uhm.. where? Jun 11 18:03:06 tauno: uh .. the flashing bar is *not* normal behaviour Jun 11 18:03:08 in Circuits? Jun 11 18:03:19 pin it Jun 11 18:03:27 tauno: ah ... yeah .. well .. aehm .. Jun 11 18:03:30 tauno, oh I don't remember, sorry. You can turn it off in circuits Jun 11 18:03:32 tauno: you can't in PinIt ;) Jun 11 18:04:04 sammyF, I know.. andorid is totally broken on me today - broken listviews, flashing notifications bar, disabled "install" button when trying to install apps from the market etc..:( Jun 11 18:04:07 I actually intended to switch in for a more standard sample in the next update Jun 11 18:04:38 grey-: Yeah, too bad I can't submit it :-) Jun 11 18:04:48 kRutOn, it would get my vote for sure Jun 11 18:05:07 kRutOn, I bet it would have had a decent change in ADC1, it had been stable at that point Jun 11 18:05:11 chance* Jun 11 18:06:07 sammyF, one of the balls stuck to the wall in the 2nd level in pinit :) Jun 11 18:06:29 ok, now it shot out of it :) Jun 11 18:06:40 tauno: hmm ... how did you do that? I mean : shaking a lot? or all balls cornered? Jun 11 18:06:42 ahh .. god Jun 11 18:06:46 good Jun 11 18:07:11 all balls cornered Jun 11 18:07:29 no.. I was holding it flat and tried to move them slowly to the hole.. and suddenly one of them moved really fast to the bottom and stuck to the wall Jun 11 18:07:44 yeah, interball collision and non-vectorized pools are a bitch. next time I do something with a semblance of physics it will be ONE item, and only straight lines :) Jun 11 18:09:08 ah yeah.. can reproduce it quite easily Jun 11 18:09:25 one is totally stuck now :) Jun 11 18:09:31 you'll also notice that the balls start acting crazy as soon as there are other sounds than the game's playing or the vibrator starts up. can't do anything about that sadly. the sensors don't react friendly to any magnet in the viscinity ;) Jun 11 18:09:54 tauno, you got a camera at hand to send me a picture? Jun 11 18:10:13 I can screenshot it Jun 11 18:10:24 or that ;) Jun 11 18:10:26 the only camera is at the back side of my g1 :) Jun 11 18:12:43 kRutOn: call it botconnect. ;) Jun 11 18:12:48 kRutOn: >:) Jun 11 18:12:53 kRutOn: new icon! Jun 11 18:14:14 sammyF: you need an idea that keeps them coming back ;) Jun 11 18:14:37 jt436: yeah ... but porn isn't allowed :P Jun 11 18:17:10 what? NO PR0N? Jun 11 18:17:12 * grey- 's company cries. Jun 11 18:17:43 grey-: yeah. I'm sure PinIt would sell way better with different, more audience-targeted backgrounds :P Jun 11 18:17:58 grey-: And it rotates the OTHER way! Jun 11 18:18:44 kRutOn: lulz. Jun 11 18:20:17 actually we were talking about doing an app like the suicide girls iphone one... Jun 11 18:20:21 sammyF, you could just make it so that people could insert their own images... Jun 11 18:20:23 not sure what we can get away with. Jun 11 18:20:34 we were thinking about starting with just a tutorial Jun 11 18:20:51 "basic bondage 101!" Jun 11 18:20:56 jt436: but seriously, the next game will have ~real~ levels, lots of flashy openGL graphics and probably even some gameplay of sort ... if I can wrap my head around OpenGL ES that is :) Jun 11 18:21:20 ;) Jun 11 18:21:28 real levels seem to be something people really like Jun 11 18:22:12 * sammyF is more a Bethesda "play until your computer overheat but never see anything different" Game kind of guy Jun 11 18:49:12 hey, i've got a problem using ImageView, it won't display any image any larger or smaller than the size of the screen Jun 11 18:51:36 I'm looking to query a contact's name, normalized number, and email at once. is there a way to do this? Jun 11 18:52:15 there is a content provider for contacts if thats what you want Jun 11 18:52:28 i think it exposes all of the information Jun 11 18:53:03 MrGone: I'm using the People contact provider right now, and that contains the phone number and name, but not the email. Jun 11 18:53:22 from what I hear, email is located in Contacts.ContactMethods.DATA Jun 11 18:54:26 But if I have to query two seperate tables, how do I limit my search? I've found no documentation on the selection parameter of query() Jun 11 18:55:00 ah well i'm afraid that is all i knew, i haven't looked at any of that stuff yet sorry Jun 11 19:01:11 also, NUMBER_KEY is returning the number in reversed order. Is there a built in method to un-reverse it? or do i have to write my own? Jun 11 19:01:17 meanburrito920: Enjoy joining tables. Jun 11 19:01:38 pretty sure you shouldn't use NUMBER_KEY as the phone number Jun 11 19:03:09 vol: NUMBER_KEY is the normalized phone number. NUMBER is the number as it was entered Jun 11 19:03:16 so NUMBER_KEY would seem to be better Jun 11 19:03:43 I don't want to end up writing a normalize function for phone numbers Jun 11 19:04:28 so, when creating a temporary file, I should write to the download cache directory (/cache), correct? Jun 11 19:04:36 and if so, do I need special permissions? Jun 11 19:04:59 meanburrito920: pretty sure you can get it from elsewhere, in another table Jun 11 19:05:49 like where? Jun 11 19:05:52 http://privatepaste.com/e7d5pYxMvE Jun 11 19:05:55 this is how I'm doing it Jun 11 19:06:20 oops, forgot the prev line, Uri mContacts = Contacts.Phones.CONTENT_URI; Jun 11 19:06:28 are you pulling the # from there? Jun 11 19:07:10 ah, nvm, yes you are :P Jun 11 19:07:18 hmm, funny that NUMBER_KEY is backwards then Jun 11 19:08:05 hmm? Jun 11 19:08:20 that's really standard in phone number canonicalizations Jun 11 19:08:28 o_O Jun 11 19:08:29 because it makes caller id matching much faster Jun 11 19:08:41 entropy, man! Jun 11 19:08:46 welp. Jun 11 19:08:50 you know more than I do then Jun 11 19:10:41 phone numbers are pretty irritating to work with Jun 11 19:11:08 people use all sorts of wacky conventions when entering them, phone systems use all sorts of wacky conventions when rendering them for display Jun 11 19:11:26 bjorn stroustep quote goes here Jun 11 19:11:33 heh Jun 11 19:11:35 ctate, is there a way to 'unreverse' the number aside from writing a method to do so? Jun 11 19:11:50 meanburrito920: you don't want that number; you want the number as the person originally entered it Jun 11 19:11:51 I'm prettty sure String has a reverse method Jun 11 19:11:58 which is a different column Jun 11 19:12:05 s/column/field/ i guess Jun 11 19:12:43 vol, no, it doesnt Jun 11 19:12:53 that is, you want the NUMBER column, not the NUMBER_KEY column Jun 11 19:12:55 for almost everything Jun 11 19:13:25 ctate, I want it normalized because I'm POSTing it to a web service that doesnt auto-normalize Jun 11 19:14:03 the web service can't take the number in whatever notation the user provided? Jun 11 19:14:10 I could swear there is a method that will reverse a string as part of the Java framework Jun 11 19:14:12 so you're having to re-normalize into the web service's format? Jun 11 19:14:28 vol: it isn't an intrinsic; it's an interview question :) Jun 11 19:15:04 seriously? I'm 99% sure there's a built in for it Jun 11 19:15:13 why do I need a Looper to create a file in a thread, but when creating a temporary file I don't need one? Jun 11 19:15:21 herriojr: err? Jun 11 19:15:26 since when? Jun 11 19:15:26 you don't? Jun 11 19:15:40 (since when do you need a Looper to create a file?) Jun 11 19:15:45 what are you doing in this thread? :P Jun 11 19:15:51 yeah, I'm getting an error asking me to call Looper.prepare() when trying to open a FileOutputStream Jun 11 19:15:57 o_O Jun 11 19:16:10 uh Jun 11 19:16:27 are you sure that's not related to some messaging call you're making? Jun 11 19:16:43 i... yeah, i have a hard time beliving that's really what the complaint is about. Jun 11 19:16:44 here, I'' post a code example in a second Jun 11 19:17:37 I can also get it into a state where it, for some reason, can't create a file (FileNotFoundException) Jun 11 19:18:01 you got message api problems I feel bad for you son Jun 11 19:18:07 I've got 99 problems but a looper ain't one Jun 11 19:18:26 and the path is context.getFilesDir()+fileName Jun 11 19:18:39 maybe that is what requires a looper, IDK Jun 11 19:19:12 oh, you're calling a method on the context Jun 11 19:19:18 bingo. Jun 11 19:19:22 yeah Jun 11 19:19:32 context can only be called in the main thread? Jun 11 19:19:35 but you aren't actually part of the activity; you're some random thread elsewhere Jun 11 19:20:23 hmm. I call context.getFilesDir() from a seperate thread myself Jun 11 19:20:38 hm, where did hte context come from? Jun 11 19:20:41 could you paste more of your code? that's probably not it Jun 11 19:20:44 yeah Jun 11 19:20:49 the context is passed as an argument to the new thread Jun 11 19:20:58 also, the debugger is your friend :) Jun 11 19:21:05 ctate: I'm modifying someone else's code that is creating files, etc. in an Adapter... Jun 11 19:21:16 step over until you see the offending message in the log Jun 11 19:21:24 then you know what line provoked it Jun 11 19:21:44 bear in mind that if you're creating dialogs or something, you need to do that on the UI thread Jun 11 19:21:48 (or at least will very much want to) Jun 11 19:21:49 it used to be a temporary file Jun 11 19:21:51 so that could be your problem Jun 11 19:22:48 * ctate is unfamiliar with this 'temporary file' thing Jun 11 19:23:15 http://developer.android.com/reference/java/io/File.html#createTempFile(java.lang.String,%20java.lang.String,%20java.io.File) Jun 11 19:23:21 aha Jun 11 19:23:40 I think there's something for context where you can create a temp file in the private files dir or something Jun 11 19:26:56 so, if I do File file = new File("somepath"); file.createNewFile();, does it create the directories if they do not exist? Jun 11 19:27:30 no Jun 11 19:27:37 there's File.makeDirs() or something Jun 11 19:27:53 makeDirs() is it, yeah Jun 11 19:28:03 mkdirs() Jun 11 19:28:07 close :) Jun 11 19:28:09 err, yeah, that Jun 11 19:28:17 read the docs on File, yo. ;) Jun 11 19:28:31 that's what #android-dev is for! Jun 11 19:28:39 we're just live docs, right? Jun 11 19:28:39 ;) Jun 11 19:29:16 You are Jun 11 19:29:19 Number Six Jun 11 19:29:31 ah, I glanced over the wrong part Jun 11 19:29:34 Caprica Six? Jun 11 19:29:46 my speed-reading skills need to improve :-/ Jun 11 19:29:52 I'll just make my exit now... Jun 11 19:30:03 You can /part any time you want, but you can never leave. Jun 11 19:30:10 heheh. Jun 11 19:30:14 hahah Jun 11 19:32:10 I was implementing the Skyhook SDK in my app today, however there is an option "Use wireless networks" in cupcake at the location settings. Does it mean cupcake already uses skyhook localization? Jun 11 19:35:00 well, at least I learned something about Looper/Context Jun 11 19:35:57 I have a tabbed application, and I want to have two entries in the android menu.. I've done this using an activity alias for the tabhost activity, but how do I check which activity (alias) is called? Jun 11 19:39:23 also, is there a way to retrieve the phone brand/model number etc? Jun 11 19:39:57 can I linkify text in an alert dialog? Jun 11 19:40:18 Rexxars, maybe this helps: http://developer.android.com/reference/android/os/Build.html Jun 11 19:41:11 uscheller: thanks! will give it a shot :) Jun 11 19:55:26 <_Auron_> hrm.. Jun 11 19:57:44 hi sammyF_G1 Jun 11 19:57:45 =] Jun 11 19:57:58 hey beboo Jun 11 19:58:28 firc, eh? i like androidIRC myself Jun 11 19:58:29 had to boot windows ... so just lurking here Jun 11 19:58:54 i actually started to make an IRC client but i'm just not good enough with that just yet Jun 11 19:59:05 i generally try to avoid IMs on the g1;) Jun 11 19:59:23 it connects and i can do all the / commands but can't see anything that is said in the channels Jun 11 19:59:25 lol Jun 11 19:59:56 Rexxars: you choose based on ComponentName Jun 11 20:00:28 sammyF_G1: when you have a sec, i have a quick question for you regarding your game Jun 11 20:00:48 and no, it's not a bug... lol Jun 11 20:00:59 KNY: okay Jun 11 20:01:07 beboo: shoot as pm :) Jun 11 20:06:21 herriojr: thanks a bunch! Jun 11 20:29:05 Does anyone know how to get android Content Providers to perform JOINs? Jun 11 20:29:17 Is OAuth overkill for android based applications? Jun 11 20:29:33 would basic auth be good enough? Jun 11 20:29:34 meanburrito: use a cursorjoiner Jun 11 20:32:18 How would I do a http POST in android? there don't seem to be any built in libraries Jun 11 20:32:47 there is httppost Jun 11 21:00:38 morrildl, you still around? Jun 11 21:02:02 meanburrito920, HttpClient is included Jun 11 21:06:00 <_Auron_> is it possible to get simultaneous dpad input values from the trackball (such as up and left)? Jun 11 21:12:43 _Auron_: simultaneous on a single thread? no :) Jun 11 21:12:53 in rapid succession, yes. Jun 11 21:17:33 <_Auron_> well what I'm doing at the moment is setting directional flags when getting input, and handle the flags in my game thread Jun 11 21:17:43 <_Auron_> then resetting the flags after I do what I need to do with that input Jun 11 21:17:51 <_Auron_> doesn't really work though Jun 11 21:18:06 <_Auron_> for 8 way direction I mean Jun 11 21:25:03 <_Auron_> jasta: how would you suggest going about doing that? Jun 11 21:26:02 who all was asking about the atomicity of the destroy/create relaunch sequence on configuration change, with an eye to AsyncTask sensible behavior in its callbacks and so on? Jun 11 21:26:29 KNY and herriojr I think Jun 11 21:26:43 cos it's basically official now that we promise that the relaunch will be atomic, and no main-thread activity will occur until the activity has been relaunched into its coherent new state Jun 11 21:26:43 yeah Jun 11 21:26:53 i'll be updating the docs for Donut Jun 11 21:26:55 excellent Jun 11 21:27:00 thanks for looking into it Jun 11 21:27:02 anyone here worked with a GalleryView and changing it's size at all? I've got an issue where in portrait mode the images are fine, but in landscape they are too large so I've tried to overide the layout params, but it causes this exception: http://paste.ifies.org/485 Jun 11 21:27:03 oh totally Jun 11 21:27:31 the framework lead finally came back and replied to my android-platform explanation with "yeah, we should make that guaranteed" :) Jun 11 21:27:41 woo! Jun 11 21:27:46 (she's my boss) Jun 11 21:27:53 that discussion the other night really helped me clean up my code which uses AsyncTasks Jun 11 21:27:59 awesome Jun 11 21:28:04 * ctate <3 AsyncTask Jun 11 21:28:13 here as well Jun 11 21:28:17 http://paste.ifies.org/487 is my code Jun 11 21:28:28 AsyncTask is, hands down, my favorite feature about 1. Jun 11 21:28:30 1.5* Jun 11 21:29:00 KNY: off the top of my head, I'll agree ;) Jun 11 21:29:18 anyone here experiencing a non functional Home button in the cupcake repo? Jun 11 21:32:13 raugust: google, this is a common issue. Jun 11 21:32:24 its because the device thinks it is not provisioned, there are many different solutions to that problem Jun 11 21:32:28 hmmm sry about that Jun 11 21:32:55 same thing for the button to end calls i guess then? Jun 11 21:37:38 yes, same thing. Jun 11 21:39:02 <_Auron_> jasta: what did you mean about rapid succession? Jun 11 21:45:13 KNY do you know where I might find some good examples of HttpClient? I'm looking through all the docs and it doesnt seem very straightforward Jun 11 21:46:07 it's incredibly straightforward :) Check the apache docs; they have examples too I believe Jun 11 21:47:17 hmm... i must be doing something wrong Jun 11 21:48:19 meanburrito920, you create the client, create the request, execute the request Jun 11 21:50:40 I did that using httpclient and httppost, but it claimed it couldnt resolve the host Jun 11 21:50:48 and i also had to make a httphost Jun 11 21:51:22 I get that sometimes when I'm on wifi and I have to cycle my wifi Jun 11 21:51:27 but it always works on edge for me Jun 11 21:52:07 I'm running from the emulator right now. how do i transfer the app onto my phone? Jun 11 21:52:25 but shouldnt the emulator work? i can browse the web from it Jun 11 21:52:42 yeah it should work Jun 11 21:53:06 http://d.android.com/guide/developing/device.html Jun 11 21:54:35 KNY: I have a G1, but it doesnt really explain how to get anything onto it. do I plug it into a port or something? is it wifi? Jun 11 21:55:17 I don't think you read that page. http://d.android.com/guide/developing/device.html#setting-up Jun 11 21:55:53 ooh. oops. :] Jun 11 22:11:09 SELECT ObjectID FROM Association WHERE ObjectID = ? Jun 11 22:11:26 friend of mine just found that in a codebase we have to maintain Jun 11 22:11:33 hey, morrildl_ ! Jun 11 22:11:47 I knew it, he's avoiding me :( Jun 11 22:19:03 KNY maybe they want to be REALLY SURE it exists Jun 11 22:19:51 s1ege, unfortunately, that's not really that out of the ordinary for this codebase, so I'm terrified to know how it wound up in there Jun 11 22:20:53 KNY: maybe you're terrified of the wrong thing Jun 11 22:21:05 maybe you should be terrified at what OTHER stuff you might find ;) Jun 11 22:21:21 yeah be terrified that you'll never be able to trick someone else into being responsible for maintaining that Jun 11 22:21:47 sammyF, ha, I've found some that are much worse Jun 11 22:22:05 s1ege, oh I could quit this project at any time, but it's fun and makes me feel better about my own code ;P Jun 11 22:22:22 lol Jun 11 22:23:02 awesome; finally removed that damn shutter click Jun 11 22:44:16 hi guys.. I'm new to Eclipse, and i'm noticing when trying to debug my android app, after the force quit through android, the app. never properly stops and the emulator takes 100% cpu load... any idea? Jun 11 22:55:29 listeners die once they are used right? Jun 11 22:57:05 I have a listener that starts my service, and I had planned on Jun 11 22:57:13 oh hmm, I mean receiver Jun 11 22:58:03 b0nn: receivers are registered and unregistered. if you declare it in the manifest, it's always registered. Jun 11 22:58:11 if you reigster it yourself, it is registered until you unregister it. Jun 11 22:58:19 Anyone know how to get the body of the http response out of a HttpResponse object? Jun 11 22:58:45 oh, I thought that they were garbage collected after threy received an intent Jun 11 22:59:09 anyone home? Jun 11 22:59:32 I wonder, what does widget.TextView.getText() return? the SDK reference suggests CharSequence, but my compiler claims android.text.Editable? Jun 11 22:59:41 meanburrito920: yes, getEntity().getContent(). read it as a stream. Jun 11 22:59:59 b0nn: no, that's not how garbage collection works. not even close. Jun 11 23:00:08 can anyone tell me what the difference between super.onCreate and onCreate is? Jun 11 23:00:22 checktravis: ugh, go find a book on Java. Jun 11 23:00:23 hmm Jun 11 23:00:33 checktravis: we're not here to explain basic Java syntax to you Jun 11 23:00:35 fair enough :) Jun 11 23:00:41 garbage collection is when an object no longer has references to it Jun 11 23:00:45 ok ok Jun 11 23:01:08 Intent appIntent = new Intent(android.content.Intent.VIEW_ACTION, Uri.parse("http://www.anddev.org")); i am geting error saying that VIEW_ACTION could not be resolved ? should it be ACTION_VIEW instead ? i am trying a notification tutorial ? Jun 11 23:01:44 i thought it might be a simple answer, sorry if i am asking more then i realise Jun 11 23:01:56 today is really not a good day for my droid :( broken listviews, flashing notificationsbars under fullscreen apps, disabled "install" buttons in the market and now the application manager crashed on me with a NPE and is now showing a "Loading" dialog that won't go away by itself Jun 11 23:01:57 fanno: yes, that API changed long ago. Jun 11 23:02:24 is there a java book you would recommend? Jun 11 23:02:31 jas i am very new to android so i dont know it was changed or what it even is used for i am just trying some tuts Jun 11 23:02:31 i would recommend any oreilly book on java. Jun 11 23:02:56 fanno: understandable, but im telling you the tutorial you are trying is likely not meant to compile or work on modern android Jun 11 23:03:45 ok, I see what was confusing me Jun 11 23:03:54 jasta: ya i understand that =), but i have to try and start somewhere =) Jun 11 23:04:00 the onDestroy() was for the service, not the receiver Jun 11 23:04:01 i have Professional Android Application Development (Wrox Programmer to Programmer) coming from amazon, will i be lost without java background? Jun 11 23:04:13 jasta, how do I read from a Stream? Jun 11 23:04:48 stream.read()? :) Jun 11 23:04:51 meanburrito920: you type "how do i read from a stream in java" into google. Jun 11 23:05:00 or you go find a book on Java and read it. Jun 11 23:05:17 fanno: ok, but don't start with apps that dont compile or work on android. start elsewhere. Jun 11 23:05:21 I have this : http://pastebin.com/m1d7215a0 I expect logcat to show incoming sms and phonecall debug, but nothing is showing up Jun 11 23:05:34 jasta, were people that short with you when you started learning? Jun 11 23:05:56 be nice to newbies, it's karma Jun 11 23:06:04 checktravis: the day i decided to learn java, i bought 3 books on it. Jun 11 23:06:25 not everyone learns the same way Jun 11 23:06:50 that's fine, but don't expec tthis channel to be how you learn java. Jun 11 23:06:50 i can't say there was a 'day' i decided to learn actionscript, but after the course of time i figured it out Jun 11 23:07:31 please don't start a flame war about this. Jun 11 23:07:40 the channel is here to help you learn android. not java. end of discussion. Jun 11 23:07:41 good luck to you guys, i won't hammer the point Jun 11 23:07:49 maybe #Java would help you Jun 11 23:09:06 right, if you're done Jun 11 23:09:18 http://pastebin.com/m1d7215a0 Jun 11 23:09:35 ? Jun 11 23:09:52 I can't see why sms receive and incoming/outgoing calls arent causing a log entry Jun 11 23:10:12 well, a log entry of my debug, Jun 11 23:10:22 app manager crash logs, if anybody cares: http://code.google.com/p/android/issues/detail?id=2961 Jun 11 23:10:25 well Jun 11 23:11:48 b0nn: let me verify a few things. one second. Jun 11 23:12:30 b0nn: there is no NEW_INCOMING_CALL intent action Jun 11 23:12:40 hmm Jun 11 23:12:43 and android.provider.Telephony.SMS_RECEIVED doesn't seem to be one broadcast either. Jun 11 23:12:58 heheh.. http://source.android.com/download is kind of outdated Jun 11 23:13:38 oh, regarding SMS_RECEIVED it seems liek you should have android:permission="android.permission.BROADCAST_SMS" like the Mms apps manifest does Jun 11 23:13:55 though i havent verified that it is actually checked or required Jun 11 23:14:08 where is a list of the possibilities? Jun 11 23:14:23 b0nn: incoming calls are detected other ways. i think 1.5 added a new api for you to register with some manager service. Jun 11 23:14:30 the music app does it, so check its implementation. Jun 11 23:14:46 yes i looked at that Jun 11 23:14:49 (in particular, the music app receives call notifications and pauses music) Jun 11 23:14:54 it does it programattically Jun 11 23:15:01 yes, and i believe that is the only way to do it. Jun 11 23:15:05 not via xml iirc Jun 11 23:15:24 hrm Jun 11 23:15:39 one sec, let me verify the new API Jun 11 23:15:46 also the music app does it from a service Jun 11 23:16:05 meaning I need a service to be running permanently Jun 11 23:16:17 not true Jun 11 23:16:52 can I tie into this: D/CallNotifier( 611): onNewRingingConnection(): incoming Jun 11 23:17:16 b0nn: hang on, im looking up the new API for you Jun 11 23:17:23 ok Jun 11 23:17:36 where are you looking and I can start wading through as well Jun 11 23:17:46 the changes between 1.1 and 1.5 Jun 11 23:19:51 hmm, i cant find it. Jun 11 23:20:15 cool Jun 11 23:20:21 the sms received is working Jun 11 23:20:22 D/BootCompletedIntentReceiver( 687): android.provider.Telephony.SMS_RECEIVED Jun 11 23:20:25 D/BootCompletedIntentReceiver( 687): ######ARGUS##### event: android.provider.Telephony.SMS_RECEIVED Jun 11 23:21:08 anyway, just look at the Phone app and see how it is listening for incoming calls Jun 11 23:21:17 should reveal itself to you Jun 11 23:21:19 its a broadcast receiver Jun 11 23:21:26 oh Jun 11 23:21:30 i am confident you dont need a long lived service, so dont make that assumption. Jun 11 23:21:31 did I misread it Jun 11 23:21:43 nyt: are you sure? Jun 11 23:22:46 http://www.google.com/codesearch/p?hl=en#JjR45iF4sCc/trunk/android-client/src/org/devtcg/five/music/service/PlaylistService.java&q=PhoneStateListener.LISTEN_CALL_STATE Jun 11 23:22:49 is a service Jun 11 23:22:57 that's my code. Jun 11 23:23:14 What I am trying to achieve is Jun 11 23:23:25 when an event, such as an incoming call/sms Jun 11 23:23:32 I want to react to it Jun 11 23:23:45 i understand that. look at how the Phone package does it. Jun 11 23:23:53 sorry? Jun 11 23:23:59 which phone package Jun 11 23:24:01 i have used this telephonymanager#listen solution in my application because it fits my usage. Jun 11 23:24:24 if you need a persistent listener that doesnt require a running service then you should look at the Phone app Jun 11 23:24:32 b0nn: its in the android open source tree under packages/apps/Phone Jun 11 23:25:11 oh Jun 11 23:25:18 Im not familiar with that at all Jun 11 23:25:34 the reason my code is in a service is because the service is what needs to know if a phone call comes in. only when the service is running do i care. Jun 11 23:25:49 other apps, like Phone, need to be woken up when a call comes in so they probably have a different solution Jun 11 23:25:58 i am new to android so bare with me i just have sucessfullt created a notification... can i create a button on the notification area ? well actuarly 2 buttons ? Jun 11 23:25:59 one which i am not familiar off the top of my head, but the code is available Jun 11 23:26:07 like i said Jun 11 23:26:15 fanno: yes, see the content member of Notification. use RemoteViews. Jun 11 23:26:18 receiver =] Jun 11 23:26:25 nyt: like i said, "are you sure?" Jun 11 23:26:35 # Jun 11 23:26:35 # Jun 11 23:26:35 # Jun 11 23:26:35 # Jun 11 23:26:36 # Jun 11 23:26:42 last i looked on 1.1, incoming calls were not broadcast. Jun 11 23:26:46 nyt: that is an SMS, not a call Jun 11 23:26:51 i thought he said sms Jun 11 23:26:55 he needs both. Jun 11 23:27:00 I have sms in there as well Jun 11 23:27:05 but sms is working fine Jun 11 23:27:19 ah Jun 11 23:27:32 yc: please don't ask questions in priv msg without asking if that's okay Jun 11 23:27:39 bbl guys, i need to get this code off my laptop before it dies Jun 11 23:27:47 wrong chan Jun 11 23:28:15 http://developer.android.com/reference/android/telephony/TelephonyManager.html Jun 11 23:28:35 nyt: you havent been following this conversation at all :) Jun 11 23:28:50 sorry =] Jun 11 23:28:57 other channels scrolling me off too much Jun 11 23:29:42 sorry, how do I see the Phone app code? Jun 11 23:29:48 all I find is GIT repos Jun 11 23:30:06 jasta i think i did that but the button is not showing up Jun 11 23:30:07 http://pastebin.com/m3ad4d388 Jun 11 23:30:16 b0nn: google how to download android source code Jun 11 23:30:16 (regarding listviews, added http://code.google.com/p/android/issues/detail?id=2963 and http://code.google.com/p/android/issues/detail?id=2962 IDK if they are duplicates:) ) Jun 11 23:30:29 b0nn: or use git clone from the http://android.git.kernel.org page Jun 11 23:30:30 oh, hmm Jun 11 23:30:37 how big is it? Jun 11 23:30:45 big Jun 11 23:30:47 quick question, on a receiver, is the context passed in wrapped by my application's context (so I can access files in my application's data directories)? Jun 11 23:30:59 but phone is small (but also may not be the app doing this, so you should get it all) Jun 11 23:31:12 herriojr: yes, its a limited app context. Jun 11 23:31:15 ok, Im on a resttricted connection is all Jun 11 23:31:25 <_Auron_> jasta: hey, what did you mean earlier when you said rapid succession with the trackball input? Jun 11 23:31:34 jasta: does the limited app context allow access to my application's internal DBs? Jun 11 23:31:43 jasta: i am looking here: http://developer.android.com/guide/topics/ui/notifiers/notifications.html#CustomExpandedView but i dont know if i did add the button corectly Jun 11 23:31:54 herriojr: yes. Jun 11 23:31:58 jasta: ok thanks Jun 11 23:32:10 really guys, i gotta run. my laptop is at 13% battery and has code i need to work on this weekend Jun 11 23:32:21 herriojr: it's the app context, but not any specific activity's or service's context Jun 11 23:34:53 ctate: I thought it also contained at least partial context of whatever sent the broadcast, but I guess I'm wrong Jun 11 23:35:05 <_Auron_> blargh D: Jun 11 23:35:22 herriojr: yeah, you're wrong :) Jun 11 23:35:54 ctate: that's why I spend a lot of time on here, to correct my assumptions ;) Jun 11 23:36:47 the more I know about how every little piece works, the better my code will be :) Jun 11 23:37:14 <_Auron_> does anyone know how to read more than one direction from the trackball at once? Jun 11 23:37:28 what does that mean, _Auron_ ? Jun 11 23:37:35 <_Auron_> like up+left or down+right Jun 11 23:37:48 <_Auron_> for 8 directional use instead of just the usual 4 directions Jun 11 23:38:11 I was looking at a traackball example the other day Jun 11 23:39:15 _Auron_: so you're seeing strictly up/down/left/right data in the MotionEvents sent to onTrackballEvent()? hmm. Jun 11 23:39:16 _Auron_: I might be wrong, but you can just check for up, set a flag, then check for left or right, and then know whether it's a diagonal or not Jun 11 23:39:57 <_Auron_> sammyF: I'm doing that, but that's not working. Jun 11 23:40:08 _Auron_: oh .. and you should always think about alternative controls apart from the trackball anyway if possible Jun 11 23:40:27 _Auron_: some Android phones don't have any trackball or D_Pad Jun 11 23:40:33 <_Auron_> sammyF: in this case that's not really viable Jun 11 23:41:20 <_Auron_> it's for a game that requires directional movement and directional firing Jun 11 23:41:47 _Auron_: ok. just saying as that was a negative thing someone pointed out when reviewing my last game Jun 11 23:42:10 cost me apparently 2 from 4 stars ;) Jun 11 23:42:16 anyone know why when i get a textswitcher its null? Jun 11 23:42:22 if i do the same with a button it is fine Jun 11 23:42:27 <_Auron_> if its a phone that doesn't have either, there isn't much oppurtunity for game controls in the first place :| Jun 11 23:42:40 <_Auron_> well, advanced controls anyways Jun 11 23:42:46 <_Auron_> especially with the lack of multitouch Jun 11 23:43:28 im looking for a very simple component so i can scroll some text Jun 11 23:43:30 any ideas Jun 11 23:43:31 ? Jun 11 23:44:17 id use a ticker in j2me Jun 11 23:44:30 _Auron_: gimme a few moments and I'll try the diags in my code Jun 11 23:44:35 <_Auron_> okay, thanks Jun 11 23:45:18 Gaz, TextViews can also scroll automatically if needed Jun 11 23:45:19 grr Jun 11 23:45:23 can they? Jun 11 23:45:26 i just tried all that Jun 11 23:45:30 and couldnt get them to work!! Jun 11 23:45:57 _Auron_: forget it. I just thought about it. You only get one keyEvent, and that can be only one singly keycode Jun 11 23:46:14 _Auron_: so there is no way to get diagonal directions Jun 11 23:46:34 tauno, how do i specify it to scroll Jun 11 23:46:53 <_Auron_> even if I ran another thread (I'm not experienced with threads, but its an idea)? Jun 11 23:46:53 Gaz, in1.5 at least.. just go to home and select some app that has a long title - you'll see that it starts to automatically scroll Jun 11 23:47:23 I don't know how to specifically enable it - I just know it works in some way :) Jun 11 23:47:33 haven't used that myself Jun 11 23:47:43 hmm ... seriously not sure. I mean, how would you know that each thread is getting a different code if someone rolled the trackball up/left for example? Jun 11 23:48:08 Would someone please tell me where I am going wrong with my code.. only a small segment http://pastebin.com/d453dcdb7 Jun 11 23:48:33 _Auron_: any of the other keys you might use as a modifier? Jun 11 23:49:11 (and yes, Android's control completely suck for most standard games sadly:/ Jun 11 23:49:15 OK :) Jun 11 23:51:22 <_Auron_> sammyF: not really feasible. imagine Asteroids but you can shoot in any direction and move in any directions at any given time. Jun 11 23:51:43 <_Auron_> going to use touchscreen for aiming (point and shoot, essentially), and trackball for movement Jun 11 23:51:55 When using an expandable list view, is it possible to return a ListView from the overridden functions getChildView and getGroupView in BaseExpandableListAdapter without losing the click triggered expansion. Jun 11 23:52:26 _Auron_: make it a tank or something weird that can't move diagonally?! Jun 11 23:52:32 <_Auron_> my current movement code works fairly well but it'd be infinitely smoother if I could get 8 directional movement, and look less stupid when the ship is reoriented on what directions you're going (as it is, its fixed) Jun 11 23:52:36 <_Auron_> :/ Jun 11 23:52:54 <_Auron_> that Jun 11 23:52:58 <_Auron_> er, that's too dumbed down* Jun 11 23:53:04 _Auron_: or try to move the movement controls on the touchscreen :/ Jun 11 23:53:08 the crap i hate is things like this setTextColor (ColorStateList colors) Jun 11 23:53:10 Essentially I return a ListView from getChildView() and getGroupView() upon which my custom row is displayed but it no longer shows child views when the parent is selected. Jun 11 23:53:13 why the hell cant i pass a r,g,b Jun 11 23:53:19 <_Auron_> but then I can't fire in 8 directions, and that's extremely bad. Jun 11 23:53:41 _Auron_: no.. I mean BOTH, direction AND movement on the touchscreen Jun 11 23:54:08 <_Auron_> what? Jun 11 23:54:59 _Auron_: hard to tell if it's feasable, but draw an array of arrows, arranged aroudn a circle, and check for touch on them for the movement Jun 11 23:55:28 surely there is something like a ticker Jun 11 23:55:38 tauno cant work out how they made a textview scroll Jun 11 23:55:58 perhaps even create it wherever the player touches down and use touchmove to determine the way the movement should be Jun 11 23:56:08 and yes ... I'm aware that that means you can't move and shoot at the same time :( Jun 11 23:56:22 <_Auron_> the player will die very easily in my game if that's the case Jun 11 23:56:25 as I said, Android's controls suck for classic games :( Jun 11 23:56:28 <_Auron_> but if I dumb down the game, it won't be nearly as interesting Jun 11 23:56:50 <_Auron_> ever played Geometry Wars, Robotron, or other varients? Jun 11 23:57:05 <_Auron_> I'm going for something similar. Jun 11 23:58:21 _Auron_: rad. Jun 11 23:59:26 <_Auron_> currently I have a particle engine coded in and the player movement, about to code in the bullet firing. I've already coded most of this before in darkbasic pro when I was learning how to code in an object-oriented style years ago, but never finished it. And I figured putting it on android would be a good opportunity Jun 11 23:59:27 android is awful sometimes Jun 11 23:59:31 really awful Jun 11 23:59:41 damn mess Jun 11 23:59:42 <_Auron_> I swear there has to be some weirdass way to do this if it's not capable normally Jun 12 00:00:04 <_Auron_> I'm intent on getting 8 direction on the trackball/dpad Jun 12 00:00:04 you can waste days doing fuck all Jun 12 00:00:07 as its so lame Jun 12 00:00:35 <_Auron_> I find android intuitive. Jun 12 00:00:41 almost everything you try is awkward and nasty, its no better than iphone Jun 12 00:00:52 the surfaceview stuff is passable Jun 12 00:01:00 but the UI is not Jun 12 00:01:21 or if it is we need to be told how to use it Jun 12 00:01:25 with examples Jun 12 00:01:28 <_Auron_> well my game is entirely in openGL so I'm kinda ignoring UI stuff Jun 12 00:01:33 i hate theway nothing is simple tho in UI android stuff Jun 12 00:01:53 u cant even do setcolor with a known parameter Jun 12 00:02:02 you have to start instancing things i havent even heard of just to set a colour Jun 12 00:02:04 <_Auron_> and I've noticed there's virtually no games utilizing openGL, but I guess it's harder to grasp for most Jun 12 00:02:18 yehi messed with the opengl couldnt get anything towork really Jun 12 00:02:54 _Auron_: started really using openGL today, and you have to jump through a serious number of loops to get it running somehow Jun 12 00:02:56 <_Auron_> works perfect for me (I spent the last 3 weeks going insane over a texture/force close issue, but it was because I didn't reset my texture counter upon init, so it leaked and died) Jun 12 00:03:05 <_Auron_> ? Jun 12 00:03:10 <_Auron_> not really.. Jun 12 00:04:09 <_Auron_> well, with 1.5 you have the GLSurfaceView, and once you attach that to the view, you can render right off the bat. Jun 12 00:04:19 i need to make a dialog to load and save files for instance, and i can bet that theres no easy way to do it Jun 12 00:04:41 <_Auron_> once you set your openGL settings, such as depth, viewport, and texture settings Jun 12 00:04:47 <_Auron_> which is nothing unusual for openGL Jun 12 00:05:23 i wish i could do everything in surfaceview Jun 12 00:05:24 <_Auron_> main difference (which is weird, but whatever) with openGL ES is output is done through buffers instead of just spitting out triangles Jun 12 00:05:37 yeh Jun 12 00:05:39 i hated that Jun 12 00:05:43 Gaz: why make it a dialog instead of an activity that you get a result from? Jun 12 00:05:47 _Auron_: I must admit that I used Ogre3D and C++ for all my 3D stuff in the last 5 years or so, and yeah .. the buffer thing was really really weird Jun 12 00:05:59 i was having problems when i change the buffer Jun 12 00:06:03 <_Auron_> heh Jun 12 00:06:11 but anyway, file I/O is just like the usual Java file I/O setup Jun 12 00:06:20 ctate, yeh i ean a "selector" Jun 12 00:06:25 <_Auron_> I read that float buffers are buggy Jun 12 00:06:26 so i can say in this directory here Jun 12 00:06:35 is there a standard way to do it? Jun 12 00:06:42 _Auron_: Ogre is just incredibly awesome ... and well, I'll take C++ over "Java on the Android" any day ;) Jun 12 00:06:51 Gaz: is there any sample code? grep is your friend :) Jun 12 00:07:12 ermm Jun 12 00:07:21 you mean the code for the existing android apps? Jun 12 00:07:23 _Auron_: aeh .. Really? I read that Int Buffers were buggy, and the triangle same uses shorts and floats actually Jun 12 00:07:33 thats a good point i forgot i could get the code for all of them Jun 12 00:07:36 same=sample Jun 12 00:07:37 <_Auron_> when I was learning how to code in 3D and about 3D math, I looked up tutorials and guides, then coded a software renderer in mIRC scripting; quickly hitting a speed limit I started to learn C++ and did it in that, again in software but with SDL Jun 12 00:07:43 jasta: are you sure you can add buttons in the notification area ? i cant seem to make it work Jun 12 00:07:47 <_Auron_> sammyF: maybe that was it, I can't remember Jun 12 00:07:57 fanno: oh, buttons? no, you cant add buttons. Jun 12 00:08:11 you can add other views, but not buttons. Jun 12 00:08:16 the entire row is clickable and it leads only to one intent Jun 12 00:08:18 <_Auron_> once I got comfortable with C++ I started working with openGL, but my life got rather busy Jun 12 00:08:19 jasta: hehe ok i was going crazt here Jun 12 00:08:29 _Auron_: not really reaussring when you start reèlearning OpenGL and the first thing you read is "well ... just don't use that, that's buggy" Jun 12 00:08:30 ;) Jun 12 00:08:36 ctate - is that what u meant? Jun 12 00:08:40 jasta: ok =) i'll do it another way =) Jun 12 00:08:50 <_Auron_> and the project I started went to a quick halt (also because a friend that was going to work with me got really busy in life as well) Jun 12 00:08:59 <_Auron_> sammyF: lol Jun 12 00:09:13 i dont even know if ive seen android do it yet - say "heres a list of files/dirs select one" Jun 12 00:09:18 _Auron_: how do you create your objects? Jun 12 00:09:25 but i know if i hardcode my paths people get angry :) Jun 12 00:09:26 <_Auron_> regardless I've coded a sprite engine in openGL ES through orthographical rendering Jun 12 00:09:39 Gaz: i was thinking of all the sample code included with the SDK, actually. ApiDemos in particular has a ton of fiddly little examples of all kinds of stuff. But yeah, the platform source obviously has a lot of examples of how to do lots of things :) Jun 12 00:09:50 _Auron_: ah ... So only 2D? Jun 12 00:10:02 jasta: you happen to know if i can open the android system settings in a say "call" settings from another aplication ? Jun 12 00:10:05 ctate ah i get ya, i`ll have a check but i dontreclal seeing it Jun 12 00:10:13 Gaz: Context can tell you where your data files go, that's the getFilesDir() method Jun 12 00:10:15 <_Auron_> yeah, trying to make a good looking 3d world with accurate 3d collision and doing animation.. too involved for me, I'm more retro. Jun 12 00:10:23 Gaz: at that point, you're into the usual Java File handling Jun 12 00:10:34 ctate: oh so i dont need to have a directory selector? Jun 12 00:10:42 a File that points to a directory -- e.g. the one returned by getFilesDir() -- can give you a list of all the files in that directory Jun 12 00:10:54 that's the listFiles() method Jun 12 00:10:58 read the docs, yo. ;) Jun 12 00:10:59 right Jun 12 00:11:03 _Auron_: well ... my idea so far is to go retro in a way with 3D gfx (but with a rather 2D gameplay) Jun 12 00:11:05 yeh ive seen them Jun 12 00:11:08 <_Auron_> ah Jun 12 00:11:10 but its still sucky really Jun 12 00:11:18 there should be a simple class for it Jun 12 00:11:22 <_Auron_> I may go that route eventually. Jun 12 00:11:25 <_Auron_> but not yet Jun 12 00:11:39 this is 2009 id expect it :) Jun 12 00:11:43 _Auron_: I just wondered about importing objects though Jun 12 00:12:52 <_Auron_> anyhow, my sprite object is just a pair of triangles of a certain size, stored in its own buffer. I also have an Image class that initializes and loads textures(Images, in this case) with their own names, and when I init my sprites I load that image reference to it, so it's all rather automated Jun 12 00:12:55 Gaz: for waht? selecting files? Jun 12 00:13:04 ctate you know why some objects hen you grab them using findViewById are still null when you get them? a button isnt but a textSwitcher is Jun 12 00:13:09 files (and especially hierarchical file systems) are actually pretty bad UI in general Jun 12 00:13:14 for non-techy people Jun 12 00:13:20 ctate yes a standard way of having like a windows select file dialog Jun 12 00:13:48 <_Auron_> then when I want to draw my sprite, I just do sSprite.draw();.. my draw function handles rotation, alpha/coloring, position, etc based on the sprite's data Jun 12 00:13:56 i guess your right, i hate sending my parents a file and they take 25 mins to locate it Jun 12 00:14:00 _Auron_: yeah .. I guess that if you only have sprites, you don't have to worry too much about the objects Jun 12 00:14:19 <_Auron_> well honestly I don't think it'd be much different. Jun 12 00:14:22 nor about Depth buffers ;) Jun 12 00:14:53 _Auron_: nah. I can now draw my 3D Objects. This morning I nearly gave up though ;) Jun 12 00:14:58 <_Auron_> heh. Jun 12 00:15:05 i wish android supported lcdui:) Jun 12 00:15:10 i know how to use that thing hehe Jun 12 00:15:37 _Auron_:but I don't really feel like drawing the objects on a piece of paper and typing the vertex coords by hand ;) Jun 12 00:15:50 <_Auron_> hehe. Jun 12 00:16:01 I guess I'll have to write a converter Jun 12 00:16:22 <_Auron_> when I was working on my software 3d renderer in C++, I made a ship in milkshape 3d and did a raw export of the data, then read that in Jun 12 00:16:27 and in swing all the options you just click and it does it, in android is just prompts you for some resource file that i have no idea how it could help, even for colours! Jun 12 00:16:35 sorry not swing lcdui Jun 12 00:16:58 im just bitching because ive wasted my day and not even got a nice gui working yet :) Jun 12 00:17:03 <_Auron_> happens Jun 12 00:18:24 <_Auron_> I'm going to keep trying to get 8 directional input to happen, but if I can't, Jun 12 00:18:32 _Auron_: hmm ... yeah. Raw Face export in Blender would kind of work I guess. still needs a converter though Jun 12 00:18:33 <_Auron_> I may just code in software 'easing' in the movement/rotation Jun 12 00:18:57 _Auron_: probably the best way, sadly Jun 12 00:19:08 <_Auron_> which currently may work perfectly fine Jun 12 00:19:36 <_Auron_> since movement is based on acceleration/deceleration and works fairly smooth right now, just kinda awkward diagonally Jun 12 00:20:47 _auron_ : how about using a touch to tell the ship/tank/flying spaghetti monster/whatever to fly/drive/swim/crawl there, instead of having constant directional input? Jun 12 00:21:11 _Auron_: just throwing ideas at you at the moment ;) Jun 12 00:21:20 <_Auron_> I appreciate the attempts :P Jun 12 00:21:45 <_Auron_> but if you have a wall of enemy ships flying at you and your touch is recognized slightly off, it could cause you to die Jun 12 00:22:03 <_Auron_> that'll cause frustration in the player. trackball allows absolute control over the movement Jun 12 00:22:19 hmm .. change the "Game Over" text when a player dies in "Shit Happens" and you're all set :P Jun 12 00:22:25 <_Auron_> haha Jun 12 00:22:36 <_Auron_> but then I lose my E rating ;) Jun 12 00:22:45 ;) Jun 12 00:23:14 What files in my project do need to be added to VC? Jun 12 00:25:45 ctate: you still there? I have a question : can opening too many dialogs at once crash an application? Jun 12 00:26:01 of course Jun 12 00:26:08 you only have so much mem, after all Jun 12 00:26:58 ctate: hmm. And there is no automatic way to wait for a dialog to be closed before the application which started it continues? Jun 12 00:27:29 not sure what you're asking Jun 12 00:27:33 you want the dialog to time out? Jun 12 00:27:50 or do you want to prevent the user from going home and relaunching the app and so on? or what? Jun 12 00:28:09 [short answer: you can't stop Home] Jun 12 00:28:14 when my application opens a dialog with just an OK button, some text and an icon, the application keeps running in the background apparently Jun 12 00:28:19 correct Jun 12 00:28:51 what I'd need to do is : application opens dialog and waits for dialog to be closed Jun 12 00:29:23 ctate: to tell you the truth, it's circuits that's crashing when you get more than 6 awards and make a highscore at the same time Jun 12 00:29:23 you want an alert. Jun 12 00:29:28 or a subactivity that you have launched with startActivityForResult() Jun 12 00:29:48 <_Auron_> lol Jun 12 00:30:12 Is anyone familiar with using HttpClient with HttpPost? I cant find any recent tutorials on the subject, since apparently the the libraries were changed in the past year Jun 12 00:30:36 <_Auron_> for sanity's sake I think I'll just do the software easing for now and if I release my game before finding a better solution, I can always do an update to it later. Jun 12 00:30:46 ctate: correction, I'm actually using Alerts Jun 12 00:31:52 ctate: I guess I'll just set a flag to notify the underlying application that it can open the next one then. Jun 12 00:31:56 sammyF: but what's the actual problem? Jun 12 00:32:15 yes, the parent activity continues to run underneath a Dialog Jun 12 00:32:16 ...or rather, the tutorials are all for org.appache.commons instead of org.appache.http Jun 12 00:32:17 that's intentional. Jun 12 00:33:05 ctate: the problem is that my activity keeps throwing alerts with all the awards that were won in the last game. with 3 or 4 it works fine, at 6 or 7 it just crashes the application and returns to home Jun 12 00:33:41 I actually thought that the application would wait for the alert to be closed Jun 12 00:34:09 unless org.apache.commons is also included in android? Jun 12 00:34:18 sammyF: wtf Jun 12 00:34:40 1. throw one dialog that lists them all Jun 12 00:34:40 or Jun 12 00:34:44 2. throw toasts instead Jun 12 00:34:45 or Jun 12 00:34:51 basically anything else that isn't weirdo UI :) Jun 12 00:35:34 ctate: lol ... k. (that's the code btw. http://pastebin.com/m780dc6a) Jun 12 00:35:38 sammyF: like everythign else, throwing up alerts is asynchronous Jun 12 00:36:08 if you want a chain of alerts, then you should throw the next one when you get the message that the current one was dismissed Jun 12 00:36:41 ctate: I see. I only noticed yesterday that that was a problem. making 7 of the possible awards at the same time doesn't really happen often Jun 12 01:05:54 hmm why am i get false from root.canWrite() when i do : File root = Environment.getDataDirectory(); Jun 12 01:07:21 hmm Jun 12 01:07:40 is the data dir where apps are meant to save stuff and where is it located on sd or ram? Jun 12 01:08:56 is it posable to open system settings window/intent/app on say the call settings page from another app ? Jun 12 01:09:58 Gaz: use Context.openFileOutput() to get a writable file Jun 12 01:11:46 ok this is interesting Jun 12 01:11:52 and only happens when the virtual keyboard is out Jun 12 01:12:08 when i set a scrollview to invisible, everything in my layout anchored to the top of the screen disappears Jun 12 01:12:15 and nothing is anchored to the scrollview that i set to invis Jun 12 01:13:00 its like since its invis, the view doesnt want to resize Jun 12 01:16:05 thx romainguy Jun 12 01:18:11 hm, fixed Jun 12 01:19:35 The server could not process your apk. Try again. Jun 12 01:19:37 * nyt boggles Jun 12 01:19:37 wth Jun 12 01:19:48 nyt: just yours; sorry. Jun 12 01:20:25 yea Jun 12 01:20:31 think i see why Jun 12 01:20:52 used a 1.5 function Jun 12 01:20:58 in one of my xmls Jun 12 01:21:04 err, attribute Jun 12 01:21:37 well i thought that was it Jun 12 01:21:40 * nyt perplexed now Jun 12 01:23:44 yeah, no idea why this is happening, runs fine on my phone / sdk Jun 12 01:23:48 yet market wont process the apk Jun 12 01:24:34 romainguy_, do you think it would be useful to compile a list of common "what not to do" tips on d.android.com ? like using Environment.getExternalStorageDirectory() instead of hard-coding "/sdcard/" ? Jun 12 01:24:41 nyt, does it give an error? Jun 12 01:26:04 no Jun 12 01:26:10 just 'the server cannot process your apk' Jun 12 01:26:14 if i dont sign it, it bitches about no signature Jun 12 01:26:20 looking at my svn history to see what could have done it Jun 12 01:26:41 and i see nothing Jun 12 01:27:02 nyt, hmm, I wonder if it's a glitch on the Market side Jun 12 01:27:19 nyt, it's suspicious that cyrket was having 500 errors earlier today and now you're having this Jun 12 01:27:24 going to restart eclipse and see Jun 12 01:27:32 cyrket 500 errors were on the cyrket side Jun 12 01:27:39 thats a web server error Jun 12 01:27:44 weird how theres no simple label class Jun 12 01:28:08 nyt, right, but if they changed something in the protocol that he wasn't expecting.. Jun 12 01:28:19 Gaz, TextView? Jun 12 01:28:28 yeh but it looks too much like a text field Jun 12 01:28:40 ? Jun 12 01:28:49 you must be doing something weird with styling Jun 12 01:28:52 The server could not process your apk. Try again. Jun 12 01:28:53 =[ Jun 12 01:28:54 it's just normal text Jun 12 01:28:54 im not Jun 12 01:28:56 what the shit Jun 12 01:28:59 it looks identical to a textfield Jun 12 01:29:01 i love these verbose messages Jun 12 01:29:17 textview is plain, doesnt look like anything Jun 12 01:29:19 unless you style it Jun 12 01:29:23 are you using edittext and not textview? Jun 12 01:29:24 hmm Jun 12 01:29:39 oh yes Jun 12 01:29:42 i am Jun 12 01:29:50 hehe Jun 12 01:29:52 tired here Jun 12 01:29:53 thx Jun 12 01:30:08 haha Jun 12 01:31:11 looks like market was lagged Jun 12 01:31:19 it just updated to the previous version i uplodaed Jun 12 01:31:20 haha Jun 12 01:31:23 and now i can upload the new one Jun 12 01:34:27 ive got 40 sales of my first app :) Jun 12 01:34:36 congrats, what is it Jun 12 01:34:49 hey viirya, i see youre at ntu tw, im just around the corner :) Jun 12 01:34:50 Gaz: nice work Jun 12 01:34:55 vol: lapsedroid Jun 12 01:35:03 thx dudes Jun 12 01:35:12 what does it do Jun 12 01:35:22 1226 demo downloads Jun 12 01:35:30 makes hd timelapse videos Jun 12 01:35:35 neat concept.. well done Jun 12 01:35:36 takes pictures periodically and saves to memory card for making time lapse movies Jun 12 01:35:48 ah Jun 12 01:35:54 ive made a few for canon cameras, j2me, and now android Jun 12 01:36:10 gonna upgrade the android one with a few new features when i get the chance, some guy at google wants to use it to lapse his hike Jun 12 01:36:12 :) Jun 12 01:36:47 Gaz: hi Jun 12 01:37:10 hey viirya :) Jun 12 01:37:35 u an android dever? Jun 12 01:37:54 trying to be. ha. Jun 12 01:38:01 same here hehe Jun 12 01:38:19 i have involved in an ime project on android. Jun 12 01:38:27 ahh Jun 12 01:38:40 theres a taiwanese guy in here who wrote a book about android Jun 12 01:38:45 in mandarin Jun 12 01:38:56 gasolin? Jun 12 01:38:57 * Gaz points at gasolin_ Jun 12 01:39:01 ah yes :) Jun 12 01:39:20 i saw his site devoted to android dev. Jun 12 01:39:32 nice Jun 12 01:39:39 hi Jun 12 01:39:50 yo gas Jun 12 01:40:07 nice work Jun 12 01:40:56 u know any other android guys in tw? Jun 12 01:41:39 one guy called onlinemad (maybe) he created the ime project Jun 12 01:41:49 ime? Jun 12 01:41:57 Can someone tell me how to get the IM app runs on Emulator? Jun 12 01:42:08 input method engine (?) Jun 12 01:42:18 ah Jun 12 01:42:30 lucius: they should run just fine. do they not? Jun 12 01:42:32 for chinese input on android Jun 12 01:42:39 no. Jun 12 01:42:44 i don't see the icon at all Jun 12 01:42:50 in the All App Drawer Jun 12 01:42:51 viirya. good idea, would ben ice to be able to draw the characters with finger Jun 12 01:42:54 Gaz: yap, most tw android developer are in http://www.javaworld.com.tw/jute/post/page?bid=26&sty=1&age=0 Jun 12 01:42:58 i am using android 1.5 r2 SDK Jun 12 01:43:03 (in chinese) Jun 12 01:43:12 ah Jun 12 01:43:15 my chinese sucks hehe Jun 12 01:48:04 silly question, but is there any way to get the market in the emulator? Jun 12 01:48:10 nope Jun 12 01:48:31 gasolin_: Are there a lot of tw developers? Jun 12 01:49:03 forum looks active Jun 12 01:49:36 theres a whole world of info out there if youre capable of searching in a foreign language Jun 12 01:49:37 kRutOn: I'd say the entry level developer number is more than I expect Jun 12 01:49:43 im just not so i cant find shit hehe Jun 12 01:50:08 yeh i usually meet windows mobile devs in twn Jun 12 01:50:13 not often java Jun 12 01:50:26 I can speak Cantonese but my reading and writing skills are basic. Jun 12 01:50:30 Android related books are on top sale for months in local computer book store Jun 12 01:51:46 And some colleges have high willing to introduce android to their students Jun 12 01:51:53 yes Jun 12 01:52:02 i wrote about it in taipei times a few weeks ago :) Jun 12 01:52:05 hmm Jun 12 01:52:51 I have been looking for some Android fans to finish my poor translation of ConnectBot in Chinese Jun 12 01:53:49 gasolin_. we are trying to code apps for research on android. Jun 12 01:54:05 i seee the htc magic is out in twn v soon Jun 12 01:54:06 kRutOn: if you don't already have it in german and french, I can help you with both Jun 12 01:54:11 or so i gather from front of magazines Jun 12 01:54:14 kRutOn: the problem is ConnectBot didn't support proper encoding for chinese people, so there are some alternative branches there :p Jun 12 01:54:14 kRutOn: but no chinese, sorry ;) Jun 12 01:55:03 Gaz. htc phone is too expansive..... Jun 12 01:55:31 i am waiting for samsung. Jun 12 01:56:47 Gaz, htc magic already on stock, but cost about $630 Jun 12 01:57:47 maybe low-price iphone will press htc to release phones in same section. Jun 12 01:58:38 viirya, are you work in taiwan, too? Jun 12 01:59:15 i am a student in taiwan. Jun 12 01:59:30 ah Jun 12 01:59:37 i got a G1 from UK from my client Jun 12 01:59:47 it's due to hinet's policy, the rumor says about htc sale magic to hinet about $300.... Jun 12 01:59:59 hinet are scum bags Jun 12 02:00:00 i hate them Jun 12 02:00:03 ..... Jun 12 02:00:52 although i can get dev phone from lab, i still want to buy one android phone Jun 12 02:01:09 $630 is not falling into my range. Jun 12 02:01:24 how do i grab string from a EditText? its madness that it returns some object and not a string, im starting to expect everything in android to be harder than it should be tho :) Jun 12 02:01:32 too many cooks spoil the broth possibly Jun 12 02:01:44 viirya, yes thats insane Jun 12 02:02:02 can anyone please help with my IM app on emulator question? Jun 12 02:02:14 Gaz, mEditText.getText()? Jun 12 02:02:26 yeh but it doesnt return a string Jun 12 02:02:28 it returns a CharSequence; if you want a String then simply call .toString() Jun 12 02:02:30 it returns an Editable Jun 12 02:02:49 ah tostring Jun 12 02:02:51 let me see Jun 12 02:03:09 Gaz, every object has a .toString() Jun 12 02:03:15 i know Jun 12 02:03:19 but its often not usable at all Jun 12 02:03:22 lets see if this one is Jun 12 02:03:39 I guarantee that it is (this is mentioned in the tutorials, by the way) Jun 12 02:03:49 Gaz: err, you call getText() on it? Jun 12 02:03:50 yep in this case it works a great Jun 12 02:03:57 which returns a CharSequence Jun 12 02:04:08 i guess you can use the Editable variant but you don't need to Jun 12 02:04:09 well it actually returns an "Editable" according to docs Jun 12 02:04:22 EditText extends TextView Jun 12 02:04:33 Gaz, String implements CharSequence Jun 12 02:04:35 TextView has a getText() method that returns a CharSequence() Jun 12 02:04:40 hmm Jun 12 02:04:41 i think it is getText() then toString() Jun 12 02:04:42 i didnt see that Jun 12 02:05:09 I've been pulling my hair out over this problem, maybe one of you can help... here goes: Jun 12 02:05:23 mEditText.getText().toString() Jun 12 02:05:26 i have an app that gets an xml feed from the web Jun 12 02:05:27 KNY: not all CharSequences are Strings, though Jun 12 02:05:34 it's meant to update daily at X time Jun 12 02:05:35 ctate, right Jun 12 02:05:42 ==gasolin_ is what you are probably looking for, anyway Jun 12 02:05:51 since CharSequence is an interface Jun 12 02:05:53 yes thats it gasolin_, i just think its a bit weird to need that extra toString() Jun 12 02:06:04 i have an interface and callback setup so that the UI can notify the user what's going on Jun 12 02:06:05 getText() has always got a string in my head Jun 12 02:06:20 Gaz, It sucks, IMHO Jun 12 02:06:43 i do this by binding, but setRepeating on an alarmmanager won't work because the service is started and bound Jun 12 02:06:53 mpardo, this might be easier if you type up one message and break it into sentences :) Jun 12 02:06:55 it isn't a string, it's a CharSequence :) Jun 12 02:07:03 (might be a SpannableString, etc; you don't know or care) Jun 12 02:07:11 ctate, he's saying that it should return a String Jun 12 02:07:12 KNY: okay i'll redo Jun 12 02:07:21 KNY: i know. he's wrong. ;) Jun 12 02:07:35 haha Jun 12 02:08:56 EditText.getText() should return a string not another instance of an EditText, makes no sense at all Jun 12 02:09:06 I'm writing an app that gets some XML from the web at X time every day. The UI notifies the user that the info is updating using a bound service, interface, callback. I want to set the service off using AlarmManager.setRepeating, but this obviously won't work because the service has already started. How can I get around this? Jun 12 02:09:07 getText() return an Editable that inherites toString() from CharSequence Jun 12 02:09:28 viirya, err, it inherits toString() from Object :) Jun 12 02:09:32 there are two different versions of getText() Jun 12 02:09:33 im no language designer, but i am a language user :) Jun 12 02:09:38 one returns an Editable, one returns a CharSequence Jun 12 02:09:44 sammyF: I think it's 50% translated for French Jun 12 02:09:50 not according to what eclipse brings up fo me ctate Jun 12 02:09:50 gasolin_: Big5 and GB2312? Jun 12 02:10:06 i only see one getText() or id not have been confused Jun 12 02:10:10 mpardo, you could simply reschedule the service every time it's called. Look at how K-9 does it, for example Jun 12 02:10:16 gasolin_: What's the alternatives that they're using in TW Jun 12 02:10:23 Gaz: EditText extends TextView Jun 12 02:10:36 if you look at TextView, you'll see that there is a getText() method that returns a CharSequence Jun 12 02:10:37 so? Jun 12 02:10:40 ah Jun 12 02:10:46 kRutOn: well ... ask if you need help. As I said : German and French are no problem :) Jun 12 02:10:49 et voilà Jun 12 02:10:54 right, still its not going to come up on the lists or api doc til u dig deeper Jun 12 02:11:04 blame Eclipse :) Jun 12 02:11:05 gasolin_: It does support UTF8, but you're right. The terminal itself doesn't support wrapping for full-width characters well Jun 12 02:11:08 or know the what extends what Jun 12 02:11:18 sammyF: sure https://translations.launchpad.net/connectbot/ Jun 12 02:11:21 sammyF: 'Nein, ich bin nicht der Salat' Jun 12 02:11:25 What's K-9? Also, I've tried that method already, and it's inconsistent, and trips over itself. Jun 12 02:11:46 sammyF: or, more accurately, https://translations.launchpad.net/connectbot/trunk/+pots/fortune Jun 12 02:11:50 ctate: you're not? you know, everybody knows it's not easy being green Jun 12 02:11:58 :) Jun 12 02:12:00 kRutOn, there's someone implement encoding support based on connectbot http://www.roiding.com/index.php/rterm Jun 12 02:12:03 K-9 mail? Jun 12 02:12:21 kRutOn: Haitian Creole??? Jun 12 02:12:28 mpardo, yeah, the Email fork. I believe it's code.google.com/p/k9mail Jun 12 02:12:54 is there any way to tell a view what it should "go back to" when you hit the back key? or do you intercept the backguy and do it manually? Jun 12 02:13:05 backguy=backkey Jun 12 02:13:13 Gaz, yeah, setTaskAffinity() I believe Jun 12 02:13:19 awesome Jun 12 02:13:31 kRutOn, that's neat, can you just sign up your project and bored people come along and translate it? Jun 12 02:13:32 Gaz: when the user hits 'back', unless you've overridden the key handling, what happens is that the current activity is finished and removed from the task's history stack Jun 12 02:13:36 trying to get this going for adc2 :) anyone else entering? Jun 12 02:13:58 Gaz, possibly, if morrildl/jasonchen ever manage to be around at the same time Jun 12 02:14:04 ah, see i flip from my main view to another and i expected to hit back and it woudl auto matically go back Jun 12 02:14:17 KNY, hehe thats why i work alone Jun 12 02:14:27 Gaz, no, i need to ask a question about the ADC2 rules Jun 12 02:14:38 oh Jun 12 02:14:40 specifically, about whether my idea would be allowed Jun 12 02:14:42 KNY, so the Service sets itself up again once it's finished Jun 12 02:14:52 mpardo, yeah, that's the way one of my apps does it Jun 12 02:14:52 kny- ahh must be a specific case Jun 12 02:15:02 OR babyshaker for android Jun 12 02:15:04 Gaz, yes, and they haven't posted the full T&C yet Jun 12 02:15:06 sammyF: hah, yeh, it selects randomly sometimes Jun 12 02:15:11 android:taskAffinity is a Manifest attribute, innit? Jun 12 02:15:57 and anyway, it's almost certainly not what you want :) Jun 12 02:16:03 ah Jun 12 02:16:06 ctate what is/ Jun 12 02:16:06 ? Jun 12 02:16:12 like i said, i described what happens when the user hits Back Jun 12 02:16:13 or shall i just catch back key and tell it explicitly? Jun 12 02:16:18 what are you trying to accomplish? Jun 12 02:16:22 haha typical googler response tho wasnt it Jun 12 02:16:24 KNY, the service has to be stopped in order for the alarm manager to start it again right? Jun 12 02:16:35 it described something but didnt explaion anything really hehe Jun 12 02:16:41 i want to go back to the view that i was on before Jun 12 02:16:49 s/view/activity/ ? Jun 12 02:16:50 it does. Jun 12 02:17:06 it finishes the current activity and removes it, revealing whatever was below it in the history stack Jun 12 02:17:15 i.e. whatever was there before the activity came up in the first place Jun 12 02:17:19 likei go from my main view another oen using setContentView(R.layout.savescreen); Jun 12 02:17:28 then on savescreen when i hit back i want it to go back to my main view Jun 12 02:17:28 ahh, no; i see Jun 12 02:17:34 you're replacing the current activity's UI Jun 12 02:17:38 ah Jun 12 02:17:49 so im doing something wrong Jun 12 02:17:54 well, something nonstandard Jun 12 02:18:06 sounds like my whole life! Jun 12 02:18:08 hehe Jun 12 02:18:10 you could override the key handling to put in a new behavior for the back key Jun 12 02:18:19 yes i was thinking of that Jun 12 02:18:36 mpardo, not sure, to be honest Jun 12 02:18:37 seemed a bit canvas level, but i guess if ive forced myself into that i dont mind was just making sure i wasnt doing something weird Jun 12 02:18:38 if the main view is in front, you just call the superclass implementation to do the usual thing, because you want to make it possible for the user to go 'back' to quit your app Jun 12 02:19:15 but if the main view is *not* the current one, then you would setContentView(...) back to the main view, and set up your activity state to say that's what you're doing now, etc? Jun 12 02:19:19 is that what you want? Jun 12 02:19:21 i could just have an OK button, and leave back doign what it does now (quits) Jun 12 02:19:39 KNY, thanks, one more question... can you call a method, or something to that effect, through an Intent or PendingIntent? Jun 12 02:19:59 no Jun 12 02:20:09 they're just data Jun 12 02:20:23 data that describes an action that someone might want to have happen at some point Jun 12 02:20:33 Say... start this service, setaction(startThread) Jun 12 02:22:23 kRutOn: you're going to really hate french somehow. most of the stuff can't be said in 2 short words, no matter how hard I try Jun 12 02:23:49 KNY. Editable inherites toString() from CharSequence and EditText inherites toString() from Object Jun 12 02:24:16 CharSequence is an interface, no? Jun 12 02:24:28 yes Jun 12 02:24:42 to be sure what you want, you'd do CharSequence text = mEditText.getText(); Jun 12 02:24:50 and then use text.toString() Jun 12 02:24:51 works fine if i detect back key and do setContentView ctate :) just means i need to keep the "state" myself but no worries there Jun 12 02:24:57 i think so Jun 12 02:24:59 Gaz: see? :) Jun 12 02:25:07 ctate, yeah, we're debating pedantry right now about where methods get "inherited" from :) Jun 12 02:25:07 yep Jun 12 02:25:21 hehe Jun 12 02:25:27 ha Jun 12 02:25:51 to me its like having to do Float.parseFloat("0.1").convertToFloat(); Jun 12 02:25:52 I wouldn't say that CharSequence inherits toString() from CharSequence since CS is an interface; it would inherit it from Object (or whatever is between Editable and Object Jun 12 02:26:18 damn ants man they love coke Jun 12 02:26:34 KNY: you can't @Override an interface method SO THERE Jun 12 02:26:39 (prior to 1.6) Jun 12 02:27:19 ctate, right, but Editable wouldn't inherit a toString() from CharSequence since it wouldn't be defined in CS Jun 12 02:27:27 i would agree with that Jun 12 02:27:33 it depends on how you think inheritance for interface. Jun 12 02:27:49 yeah, I'm just being pedantic because I have nothing better to do :) Jun 12 02:28:05 kny i got tons of modules you can write for me Jun 12 02:28:07 * Gaz sniggers Jun 12 02:28:13 viirya, you can have interface inheritance in Java, right? Jun 12 02:28:25 I've been doing a lot of ActionScript lately and so I get them mixed up from time to time Jun 12 02:28:34 implements is it isnt it Jun 12 02:28:58 sammyF: I'm willing to write algorithms to split strings in visually pleasing ways to make other languages look good :-) Jun 12 02:29:00 public interface IFoo extends IBar {} would be valid in AS Jun 12 02:29:04 im not that up on all theterms for OO, and the mad shit, i think its a bit bloated in a way Jun 12 02:29:20 yeah, ASM4life! Jun 12 02:29:33 hehe Jun 12 02:29:38 ive written about 12 lines of asm Jun 12 02:29:38 ya Jun 12 02:29:43 BALR ftw Jun 12 02:29:46 way out of my league Jun 12 02:29:55 haha Jun 12 02:30:01 BALR? Jun 12 02:30:08 branch and link register Jun 12 02:30:08 my fave language is definitely processing :) Jun 12 02:30:20 ah Jun 12 02:30:37 I've never even heard of processing until now Jun 12 02:30:38 i only did it at uni for a short while, i think they dropped it because no one had any clue what was going on lol Jun 12 02:30:39 * ctate has written a little asm for IBM/370 Jun 12 02:30:49 the contacts listview has a pop out slider scrollbar, what's its proper name? I can't find how to use it anywhere Jun 12 02:30:49 no stack! Jun 12 02:30:49 processing.org Jun 12 02:30:55 love it!!! live it :) Jun 12 02:31:14 doc_savage, it's on AbsListView Jun 12 02:31:20 doc_savage: hm, the thumb thing that lets you roll fast through the alphabet? Jun 12 02:31:21 enableFastScrollThumb or something like that Jun 12 02:31:29 i think that's called the fast scroll facility Jun 12 02:31:30 timing Jun 12 02:31:42 thanks KNY, that'd explain why I can't find it on ListView :) Jun 12 02:31:43 ctate, it was merged into AbsListView in 1.5 Jun 12 02:31:48 doc_savage, yeah Jun 12 02:31:49 yeah ctate, thats the one :) Jun 12 02:32:00 thanks guys Jun 12 02:32:06 processing is real easy too IMHO Jun 12 02:35:21 time to sleep. nighty everyone Jun 12 02:35:26 night dude Jun 12 02:35:39 ctate: COME FROM 1383 Jun 12 02:37:48 http://code.google.com/android/add-ons/google-apis/maps-api-signup.html Jun 12 02:37:52 does that work for anyone? Jun 12 02:38:09 site loads Jun 12 02:38:12 I get a 404 when trying to get a key Jun 12 02:38:24 try generating a key (just fill in rubbish for the md5) Jun 12 02:38:32 gasolin_: Hopefully the v1.5 version of ConnectBot will address the Chinese community better to where we can come back together. Jun 12 02:38:43 ah yes i get The requested URL /android/add-ons/google-apis/signup.html?agreeTerms=1&fp=cvffgfgfgfgf was not found on this server. Jun 12 02:38:48 yeah Jun 12 02:38:50 damn Jun 12 02:39:04 unless it knows the md5 is rubbish Jun 12 02:39:30 nope, it's an old link Jun 12 02:40:31 kRutOn, :) Jun 12 02:44:30 how how do you programatically bring up the menu that comes up with menu key? Jun 12 02:45:47 Gaz: openOptionsMenu() Jun 12 02:46:58 thx! Jun 12 02:57:43 anyone had any luck using MapView? the XML inflater can't find the class Jun 12 02:58:02 oh, duh Jun 12 02:58:08 I should RTFM next time :( Jun 12 02:58:18 :) **** ENDING LOGGING AT Fri Jun 12 02:59:56 2009