**** BEGIN LOGGING AT Wed May 23 02:59:59 2012 May 23 03:02:21 alex_PP, no, i haven't. but the apache stuff has been working up until this point. May 23 03:02:27 i'll give it a shot though May 23 03:11:49 "R cannot be resolved to a variable" remember how to fix that? May 23 03:14:01 rebuild your project? May 23 03:15:10 something got screwed up. i had to go in and uncheck the android api and recheck it. May 23 03:15:13 that fixed it May 23 03:16:15 b1n0ry: i am going to guess out of the blue: you are getting a redirect and HttpClient is not following it May 23 03:16:20 show me the url May 23 03:16:33 readme, http://dev.tactek.com/magicbooks/api/?v=20120509&f=titles&d=ff3a3055-9ea0-42fa-b8b1-d28228c430f1 May 23 03:17:16 response header = 200 OK, no redirect May 23 03:17:26 are you sure that in your code you are putting a slash after the api May 23 03:17:37 api/?v and not api?v May 23 03:17:39 that url was generated by the code May 23 03:17:56 i pasted that right out of my LogCat May 23 03:18:18 I don't see any reason why that wouldn't work May 23 03:18:56 same here. May 23 03:19:01 been working for days May 23 03:19:07 now all of the sudden, it doesn't May 23 03:20:16 i'm happy to post the code for the entire http handler class if you like. it's pretty small, mostly just a wrapper class. May 23 03:20:21 just post it May 23 03:20:26 i've used httpclient like 1000 times now May 23 03:20:55 http://pastebin.com/Jwd3aM8a May 23 03:21:23 line #20 is the Log.i that i grabbed that URL from May 23 03:21:32 did you print your exception? May 23 03:21:39 you just let it return null, without examining the error? May 23 03:22:01 e.getMessage() will probably tell you the reason. May 23 03:22:08 t0mless: thanks for the help, I went with the activity approach for now and its already pretty usable. May 23 03:22:32 the typical usage is to return null and let the calling application handle the error. May 23 03:22:40 i'll throw a message in there and see what happens May 23 03:22:40 that makes no sense May 23 03:22:44 because if you do it that way May 23 03:22:49 the application will never know the REASON for the failure May 23 03:22:53 throw the exception up May 23 03:22:58 and evaluate it at the higher level May 23 03:23:03 it could be network issue, for example May 23 03:23:06 the only time i've ever gotten a null back was because of no internet connection May 23 03:23:14 until now May 23 03:23:27 another possible problem, is your server could be down or giving a 404 May 23 03:23:31 or 403 May 23 03:23:33 or 501 May 23 03:23:40 don't roll over the exception and return null May 23 03:23:58 throw the exception up a level and handle it when you have access to the UI to tell the user what happened. May 23 03:24:12 the point of exceptions is decoupling error handling from the structure of the code. May 23 03:24:57 I'm trying to install ActionBarSherlock 4.1 into eclipse, but when I point it to the library folder, it says there are no projects there. Anyone know why or what to do to fix that> May 23 03:25:59 create android project from source May 23 03:26:21 readme, server's not down... were you able to get to the URL? May 23 03:27:17 b1n0ry: i didn't say it was, I said it's POSSIBLE May 23 03:27:22 ah, ok May 23 03:27:26 your code shouldn't work *just when you test it* May 23 03:27:26 i interpreted wrong May 23 03:27:31 it should handle all possible failures May 23 03:27:47 05-23 03:26:08.091: W/System.err(935): java.net.UnknownHostException: dev.tactek.com May 23 03:27:51 that would explain it May 23 03:27:55 can't resolve the name May 23 03:27:58 yep May 23 03:28:07 the way I usually handle exceptions in rapid development May 23 03:28:11 is I just toast e.getMessage() May 23 03:28:15 I write better handling later May 23 03:28:26 however, here's a weird one... i open the browser and go to http://dev.tactek.com... and it works May 23 03:28:49 the browser in the same emulator that i'm getting that exception from May 23 03:28:50 on the device? May 23 03:28:57 yep May 23 03:29:15 it's the emulator? May 23 03:29:28 the browser might have it cached or something May 23 03:29:29 yep. so my app can't resolve the name but the browser app can. May 23 03:29:31 but as a rule of thumb May 23 03:29:38 don't chase bugs that occur only on the emulator and don't occur consistently May 23 03:29:45 restart the emulator or use a new one altogether May 23 03:29:57 i restarted the emulator and purged the snapshot May 23 03:30:00 same issue May 23 03:30:08 try pinging it May 23 03:30:13 i'll try it again for grins and giggles May 23 03:30:18 adb -e shell; ping dev.tactek.com May 23 03:30:22 console? May 23 03:30:57 not sure... where do i run that from? May 23 03:31:17 somewhere in ddms? May 23 03:32:00 console May 23 03:32:05 figured it out May 23 03:32:18 How can I get the system image for Android 2.3.3? it is not listed in the SDK manager. May 23 03:32:21 yeah... not resolving May 23 03:32:43 i have had the emulator do that before. it's likely not the fault of your code, but some configuration issue with the emulators dns May 23 03:32:44 restarting emulator again May 23 03:33:01 i wondered. the code's been working fine until now. May 23 03:33:17 search for emulator android dns on stack overflow May 23 03:33:21 there is something on there I used before May 23 03:33:47 i wiped user data and didn't start from snapshot... we'll see if that fixes it May 23 03:36:56 yeah, that didn't do it May 23 03:37:42 actually, ping dev.tactek.com is resolving the address May 23 03:37:47 just 100% packet loss from the emulator May 23 03:38:08 Firewall issue? What OS? May 23 03:38:15 windows 7 May 23 03:38:22 browser works May 23 03:38:24 in the emu May 23 03:38:50 But you can't ping from the emu? May 23 03:39:27 nope May 23 03:40:09 to ensure that it's not cache, i went to a website i would never usually go to... fox news May 23 03:40:50 but once you got there I am sure you learned that the government had secretly tainted your cache May 23 03:41:00 Ah, I like Bill O'Rielly. Hannity not so much. May 23 03:41:11 Judge Napolitano May 23 03:41:18 I like him, he's a man who respects freedom. May 23 03:41:34 Actually, I do know about cache poisoning. :) May 23 03:41:36 thats about it May 23 03:42:08 my emulator just cast a vote for romney, got my wife pregnant and refused her birth control... but aside from that, why i can browse to the site but not ping it is very weird. May 23 03:42:31 Different ports and layers in the OSI model. May 23 03:42:42 yeah May 23 03:42:58 but still weird behavior for an emu device. time to attach a physical device. May 23 03:43:09 try this :http://stackoverflow.com/a/4736518/615740 May 23 03:43:26 is the DNS maybe resolving to the wrong IP? May 23 03:43:30 check it ping -n May 23 03:43:32 no it's the right ip May 23 03:43:55 65.60.240.10 May 23 03:45:01 Are you pinging a domain name or IP address that allows pinging them? Not all do. May 23 03:45:13 yes May 23 03:45:16 it's my home server ;) May 23 03:45:43 fantabulastic... debugger can't see my physical device May 23 03:46:05 maybe i just need to reboot my pc May 23 03:46:15 it is windows May 23 03:47:57 The miracle cure. Sometimes. May 23 03:49:11 alright bbiab May 23 04:09:20 been playing around with threads and sockets (never done any of it before) but I ran into a problem, I followed this example: http://www.android10.org/index.php/articlesgeneralprogramming/262-socket-programming-in-android-applications - and it all worked out fine, but when I added like ObjectInputStream in = new ObjectInputStream(client.getInputStream()); May 23 04:09:20 Foo foo = (Foo) in.readObject(); May 23 04:09:35 the UI thread gets blocked and the app doesnt respond May 23 04:12:28 had to reboot the device, not the pc... May 23 04:12:48 but... it's working now, and i'm not getting the weird dns issue either May 23 04:13:38 Sheesh. Maybe we should require people to reboot first. :) May 23 04:13:56 I made that comment on #unity3d the other day since it seems to also be applicable there. May 23 04:14:52 rebooting the emu didn't resolve the issue, so i wasn't sure that rebooting the device would. May 23 04:14:55 but... it did May 23 04:15:03 still need to retry the emu as well. May 23 04:16:26 It still is important to know, that the device can also be an issue. May 23 04:19:55 PC wasn't even detecting anything attached to USB. usually the file browser pops up and the nag thing on the device that asks me to install the USB driver (which i already did). rebooted the device... bada bing. May 23 04:21:16 and... now i'm getting an actually USEFUL exception on the EMU May 23 04:21:23 probably what caused the issue to begin with May 23 04:21:55 Isn't troubleshooting a pain? May 23 04:21:57 i'm ashamed to say it... simple fix... May 23 04:22:07 guess what i forgot? :) May 23 04:22:12 It's the little things that get you. May 23 04:22:18 To enable something? May 23 04:22:27 android.permission.INTERNET May 23 04:22:33 Yep. May 23 04:23:09 banging my head on the wall for an hour and realized that i didn't copy an old project, i started one from scratch and copied the files in... May 23 04:23:23 and thus missed updating the manifest May 23 04:25:56 how do you check to see if a file exists before calling openFileInput ? May 23 04:26:32 run through fileList()? gotta be an easier way May 23 04:27:43 http://stackoverflow.com/questions/8867334/check-if-a-file-exists-before-calling-openfileinput May 23 04:28:22 when you guys search this stuff, do you search stackoverflow directly or google? May 23 04:28:27 i never find these things :) May 23 04:28:32 thanks May 23 04:29:25 I used Google. https://www.google.com/search?q=android+file+exists+before+calling+openFileInput May 23 04:30:15 Just do if(file.exists()) { file.delete() } or.... if(!file.exists()) { file.mkDirs(); } May 23 04:31:10 Doesn't that risk a race condition? May 23 04:31:23 race condition? May 23 04:31:31 All it does is returns a true/false May 23 04:31:43 file.mkdirs makes the directory path May 23 04:31:46 file.delete deletes it. May 23 04:31:52 There was a comment on that subject at the URL I linked. May 23 04:32:07 "Version #1 has a race condition. If some external process deletes the file at roughly the same time, you could end up with file.exists() returning true, and then the FileInputStream constructor throwing FileNotFoundException. This is the kind of race condition that can be exploited to break security if the file in question is security critical. (Actually, there's a second race condition May 23 04:32:08 too, where the file is being created and file.exists() returns false when a subsequent attempt to open it would succeed. But that race condition is probably harmless.)" May 23 04:32:47 then i won't store security-critical content ;) May 23 04:32:48 Is it security data? May 23 04:32:48 Of course, that's if one is using FileInputStream. May 23 04:33:03 i'd rather just have a simple way to read the file into a string May 23 04:33:06 but hey... May 23 04:33:11 beggers can't be choosers May 23 04:33:18 It's Java. May 23 04:33:20 Google it. May 23 04:33:24 yep May 23 04:33:30 You can find an example for just about anything. May 23 04:33:36 True that. May 23 04:34:08 GIYF **** ENDING LOGGING AT Wed May 23 04:35:22 2012 **** BEGIN LOGGING AT Wed May 23 04:36:15 2012 May 23 04:36:26 Because it was what you just read lol. May 23 04:36:58 I see I'm not the only one that engages in wordplay. Excellent. May 23 04:40:21 lol May 23 04:47:39 w00h00! May 23 04:47:46 something's finally working the way i want it to May 23 04:54:43 does anyone here understand how wifiteather access control is supposed to work? i have it enabled yet someone is connected to me and has access May 23 04:55:00 under access control only my mac is selected. both are visible, mine is selected. i can ping his ip May 23 04:55:28 You have it enabled or disabled? May 23 04:55:34 enabled May 23 05:02:56 hello May 23 05:03:11 any hints on getting adb to see a S2 in linux? May 23 05:03:40 add the vendor id to udev? May 23 05:03:48 you can get it from lsusb if it's not in the docs May 23 05:03:49 i was about to ask that May 23 05:03:54 already tried, either I have the wrong id or it doesn't work May 23 05:04:01 check the id against the output of lsusb May 23 05:04:06 right, probably the issue is that I don't see it in lsusb May 23 05:04:18 you don't even see the phone in lsusb? May 23 05:04:19 use the one from lsusb, that one is guaranteed to not be wrong May 23 05:04:23 I enabled usb debugging but the device still shows up as a media device May 23 05:04:33 a 'media device' will be in lsusb. May 23 05:04:40 any USB device you plug in will be there. May 23 05:04:54 I see it in the virtual machine usb device list as connected, but not in lsusb May 23 05:05:10 virtual machine? May 23 05:05:26 hub 1-0:1.0: unable to enumerate USB device on port 1 May 23 05:05:31 yeah, vmware fusion May 23 05:05:49 well that sounds like your problem May 23 05:05:57 right May 23 05:06:06 tga dump vmware May 23 05:06:13 dump it like the abomination it is. May 23 05:06:20 install virtualbox May 23 05:06:33 they've both got their uses May 23 05:06:40 vmware is so last millenium May 23 05:06:51 it's not a vm issue as far as I can tell, my desire worked just fine May 23 05:08:05 and you dont even need to reinstall May 23 05:08:05 virtualbox can boot your vmwares virtual disks May 23 05:08:56 tga: you can't call it a problem with linux until you test it on an actual install May 23 05:10:02 it seems to be a driver thing May 23 05:10:20 what linux distro is the vm running May 23 05:10:23 hmm or maybe not May 23 05:10:25 ubuntu May 23 05:10:36 :/ May 23 05:10:45 looks like you may have a point here, I see suggestions of passing options to vmware May 23 05:10:59 try installing something thats not trying to be a microsoft product May 23 05:11:29 personally if you actually want to learn linux at all i would suggest DUMPING ubuntu and installing gentoo May 23 05:11:53 ubuntu is fine when it "just works" but when it doesnt its a bitch to get it to do so May 23 05:11:59 thanks I440r, I'm trying to get something done here, not funroll my loops May 23 05:12:01 sounds just like windows May 23 05:12:06 gentoo is a massive waste of time May 23 05:12:34 but yeah, funny enough you had a point about vmware, it's a vm issue May 23 05:12:39 no. May 23 05:12:42 * tga shuts everything down to mess with the vm May 23 05:12:45 yes. May 23 05:14:23 building a little static wrapper class that handles basic file io crap... exists, deletes, read to string, write from string, etc. will make this pretty convenient. May 23 05:14:53 lol gentoo May 23 05:14:59 says the guy that can't figure out how git works May 23 05:17:02 here's a tip: don't take seriously people who have numbers for letters anywhere :p May 23 05:17:42 he sounded.. young May 23 05:18:54 pragma-, i concur May 23 05:24:11 Hi May 23 05:24:53 Mornin' May 23 05:37:28 i must say, this is now working wonderfully. thank you all for the guidance over the past vew days. May 23 05:37:44 ...at least, what i have finished is working well :) May 23 06:01:06 do you have to explicitly stop an asynctask? May 23 06:01:50 An async task will preexecute -> onbackground -> postexecute May 23 06:02:08 If your onBackground never stops by itself, then you may have a larger problem May 23 06:02:24 i'm monitoring threads with ddms and i see them starting, i see them hit postexecute, but i'm not seeing them go away May 23 06:02:42 AsyncTasks will stick around in a pool May 23 06:02:49 Nothing to worry about May 23 06:03:07 ok, that's probably what i'm seeing May 23 06:03:45 thanks, Knossos May 23 06:04:08 No problem May 23 06:05:54 alright, i made excellent progress tonight. it's 2 am. i better quit while i'm ahead. May 23 06:05:56 nite! May 23 06:13:53 hey if I remember correctly, there was a website with a lot of device frames, i.e. images of devices that can be used in a webpage? May 23 06:13:57 something I can overlay my screenshots on May 23 06:14:07 anyone know of a good source? May 23 06:14:35 http://android-ui-utils.googlecode.com/hg/asset-studio/dist/device-frames.html ??? May 23 06:14:45 * readme derps May 23 06:14:46 i'm there May 23 06:14:53 hello May 23 06:14:55 should have googled before asking, instead of after May 23 06:15:07 Handy. May 23 06:15:12 * Knossos gives alex_PP a gold star. May 23 06:16:57 the icon generator's dead usful too May 23 06:17:01 *useful May 23 07:21:06 I saw it's possible to use "font size" html in string ressources which is not possible in Html.fromHtml. How to use my string in Java code keeping html format? May 23 07:36:13 JulienDev: string resources are just for text. They can contain anything, you can use XML cdata to embed HTML in them. May 23 07:36:42 JulienDev: you shouldn't use inline styles or attributes in HTML that specify how it looks. HTML is supposed to be a semantic language for defining the structure of the hypertext document, not how it looks. May 23 07:36:53 (you should use CSS to define how it looks) May 23 07:37:11 you can get string resources in code with getString()/getText().. See Resources doc. May 23 07:38:55 readme: My goal is to have a RadioButton with styled text. Indeed, I need two differents heights in the RadioButton text. Do you think it's possible? May 23 07:40:59 you should be able to use an android style May 23 07:41:10 use android:textSize on the RadioButton May 23 07:41:41 readme: Yes, but textSize is for the whole text isn't it? May 23 07:42:05 I need one word big and the second small May 23 07:42:22 in the same label May 23 07:42:24 I see May 23 07:42:33 JulienDev: have you tried or tags in your string resource and use getText May 23 07:43:20 JulienDev: you can always use a spannable with RelativeSizeSpan set May 23 07:43:26 JulienDev: http://stackoverflow.com/questions/1529068/is-it-possible-to-have-multiple-styles-inside-a-textview May 23 07:43:30 that should just about answer it May 23 07:44:19 Napalm: Just tried

but I got a margin-bottom too important May 23 07:44:28 readme: Thanks, I will check it ;) May 23 07:44:28 yes because your doing a header May 23 07:44:43 i am hiding the quit/join messages soooooo much better May 23 07:46:11 Napalm: Ok May 23 07:53:51 I have a , I want the textView's textColor property when I click on the LinearLayout. How can I do that? I tried to put a drawable for the textView but that doesn't work (because the LinearLayout is clicked in fact, not the TextView). I tried to put the same drawable on the android:textColor of the layout but that doesn't work. May 23 07:54:11 s/property/property to change/ May 23 07:55:03 pcboy_: just set an onClickListener on the LinearLayout, and in the callback set the text color of the TextView May 23 07:55:46 That what I thought. But I supposed you could directly do that in the .xml files. Ok thanks. =) May 23 07:56:27 you can always write your own custom layouts with custom attrs if you are brave enough May 23 07:56:30 but that is advanced May 23 07:57:26 Yeah I've seen that in the docs. But that's too much for a such a simple thing. May 23 07:57:40 am just starting with android app dev. Am on ubuntu with an ssd and 16gb of ram. Bootup of an avd takes forever. Anyone got any suggestions on how to speed it up? May 23 07:58:03 doc|home: i only have 4gb and it works fine here May 23 07:58:10 Couldnt you set android:onClick? May 23 07:58:11 use snapshot setting so it only has to boot the hard way once May 23 07:58:14 readme: how long does it take? May 23 07:58:24 the first time ever is the longest, for any new avd May 23 07:58:30 ah, ok, that's good to know May 23 07:58:31 usually I end up restarting it before it even finishes :) May 23 07:58:44 subsequent starts are faster, and starts with snapshot are instant May 23 07:59:30 yeah, subsequent builds are, though the app menu loading is slow May 23 07:59:35 doc|home: get a real device May 23 07:59:51 the android emulator is a lot slower than the real hardware May 23 07:59:55 hrnt: I have two, a galaxy nexus and a transformer prime, I'd just rather not have them hooked up :/ May 23 07:59:56 yeah.. the emulator is only good when you want to use the emulator control features i.e. inject lat/long, and fake calls May 23 08:00:00 otherwise it's a burden May 23 08:00:23 doc|home: trust me, the alternative is worse ;) May 23 08:00:31 Knossos: Ooh, I didn't know you could directly called the method from the xml. Cool I'll try. Thanks. May 23 08:00:38 ok, thanks guys May 23 08:00:48 doc|home: i built a stand for my phone out of cardboard May 23 08:00:52 so I don't have to look over to see it May 23 08:01:11 readme: hehe, thanks, will look into that ;) May 23 08:17:13 * tga investigates getting serial comm over the usb port without additional hardware May 23 08:17:22 that ioio board is so overpriced May 23 08:20:06 They set android:onClick but not the other events. What a deception. May 23 08:29:54 Anyone have any experience with large layout performance? May 23 08:36:33 readme: I found a nicer (I think?) way! android:duplicateParentState="true" on my TextView child. =) May 23 08:36:49 pcboy_: very interesting May 23 08:37:57 yeah, that should work. May 23 08:38:03 then you can use StateListDrawable May 23 08:38:49 Yep works perfectly May 23 08:50:04 * pragma- just spent the last 10 minutes editing github's sprite to create his own custom .apk download icon May 23 08:50:07 http://pragma-.github.com/networklog/ May 23 08:50:15 * pragma- likes. May 23 08:50:28 looks so professional May 23 08:51:01 (that sprite image actually includes the .zip and .tar.gz images in it, feel free to copy) May 23 08:51:49 pragma-, what do you use for drawing your graphs? May 23 08:52:17 jjoe64's graphview with a few modifications May 23 08:52:34 cheers May 23 08:52:40 any good? May 23 08:52:52 sure, with a few modifications May 23 08:53:03 could use a few more modifications too May 23 08:53:40 the pinch-zoom could use a tweak to not scroll when you lift your fingers May 23 08:54:11 and it could use the ability to fling scroll May 23 08:54:39 two things I just may go ahead and do myself! May 23 08:54:56 i'll have a fiddle tonight, been looking for a graph for a whole now May 23 08:55:00 *while May 23 08:55:25 if you want to be able to use it from XML, you'll have to add a constructor that takes a Context and AttributeSet May 23 08:56:23 openFileOutput() -> Creates the file if it doesn't already exist. But how I can just check if a file exist? May 23 08:56:41 Anyone knows if modern cellphones can get screenburn? May 23 08:57:36 psychuil: hmm, well from what i understand LCDs lose contrast as time goes on May 23 08:57:49 according to samsung anyhow May 23 08:58:14 yeah, that's their so-called excuse for going with a "cheaper" display for their new phone, right? May 23 08:58:18 * pragma- nods knowingly. May 23 08:58:27 haha, yes it is May 23 09:02:37 is there any screen that works decent in the sun :| May 23 09:02:40 I don't think there is May 23 09:02:57 eInk :) May 23 09:02:59 so I usually just avoid the sun May 23 09:03:16 except for the other day, I went swimming in the ocean and I am pretty sunburnt May 23 09:03:24 :| May 23 09:03:28 not painful May 23 09:06:41 my kindle looks pretty good in the sun :) May 23 09:06:51 (and I don't mean the Fire) May 23 09:09:27 there's supposed to be this super-duper anti-glare anti-fog screen May 23 09:09:44 I would like to calculate the number of items visible and should be simple: numItems = displayWidth / ItemWidth. But I am not. For example, this formula returns me 5, but the items are visible 7! May 23 09:10:00 http://dl.dropbox.com/u/278026/device-2012-05-23-103208.png May 23 09:10:35 obviously either your displayWidth or ItemWidth is wrong then May 23 09:11:00 both of which we know nothing about the details of calculation, because you haven't told us them May 23 09:11:11 How I can check if a file exist? May 23 09:11:25 lmgtfy May 23 09:12:05 sukramTM: google it May 23 09:12:11 readme, this is the code that i use http://ideone.com/T7Zqw May 23 09:13:14 the bitmapItemWidth is equal to width passed to LayoutParam of ImageView May 23 09:13:35 ech0s7: what is ss May 23 09:13:56 the value to calculate May 23 09:14:03 the number of visible items May 23 09:14:19 why do you multiply times m.density May 23 09:15:02 you realize that the width passed to LayoutParam in many cases will be either WRAP_CONTENT or FILL_PARENT, right? May 23 09:15:17 you need to get the view's actual width, which is not known until after it is drawn May 23 09:15:43 although I suspect there's a better way than this to solve the actual problem at hand. May 23 09:15:53 it might be sufficient to use the view's measured width. May 23 09:15:58 which is known after onMeasure is called. May 23 09:16:55 ech0s7: maybe getWidth() does not return pixels, but dip May 23 09:17:03 getWidth() returns pixels May 23 09:17:04 and he's not using it May 23 09:17:25 readme, i need to calculate this value before that items are drawn May 23 09:17:33 you can't. May 23 09:17:38 you can only get the measured width May 23 09:17:48 which is not guaranteed to be the views width when it is drawn May 23 09:17:56 readme: you sure? this seems to suggest otherwise: http://stackoverflow.com/questions/6058711/android-display-getwidth-height-returning-wrong-sizes-for-device May 23 09:18:15 dada: oh, you're referring to display metrics May 23 09:18:15 Working on a tablet-app.. how can I make the actionbar a bit transparent? May 23 09:18:21 I thought you were referring to view.getWidth() May 23 09:18:31 like in google earth/maps, where the map is underneath the actionbar May 23 09:18:42 readme: int width = wm.getDefaultDisplay().getWidth(); isn't this metrics? May 23 09:19:05 yes, it is. May 23 09:19:16 so he should probably try width * m.density / bitmapItemWidth May 23 09:19:18 then this could be the problem May 23 09:20:01 bitmapItemWidth should be a px value obtained from getMeasuredWidth() May 23 09:20:17 width * m.density will give you px if width is in dp May 23 09:21:17 i want to get RRC State infomation. How to get it? May 23 09:30:48 how can I know the no of children of a View May 23 09:33:25 olie: http://developer.android.com/reference/android/view/ViewGroup.html#getChildCount() May 23 09:33:57 Views that have children are ViewGroups, IIRC. May 23 09:34:57 is there a good way of recording how long a user stays in an application. I know I could override the on resume and on pause for each activity in my app but I was wondering if there was a more elegant method that could be applied in the application class to track how long the application is in focus May 23 09:35:51 ActivityManager is also of interest May 23 09:35:58 I used that before to track how long the user was in *every* app; May 23 09:36:14 readme: thats ViewGroup May 23 09:36:30 I seee May 23 09:36:34 olie: how do you add a child to a View that is NOT a viewgroup? May 23 09:37:30 I guess you don't :) May 23 09:37:44 are you writing a treemap? May 23 09:37:54 is it possible to build some apps using android as a host/target May 23 09:38:11 cactux: i would answer that but I don't understand the question May 23 09:38:17 yeah..I just switched from objC to Java and I freaking confused May 23 09:38:31 anyway May 23 09:38:39 i haven't learnt obj-c yet but when I looked at it a few weeks ago it looked confusing to me May 23 09:38:44 not very much like java. May 23 09:38:57 its neither objective nor C May 23 09:39:06 I have my android tablet and I would like to use it to develop and test my android apps May 23 09:39:13 yeah, I saw hardly any C idioms in it May 23 09:39:31 cactux: read the "developing on a device" doc on d.android.com May 23 09:40:21 so in a couple words yes is possible or not? May 23 09:41:02 readme: its pretty simple May 23 09:41:49 a little headache in a few areas : (1) no proper namespace support, (2) somewhat verbose and (3) … without arc, memory management required some real thinking through May 23 09:41:59 #3 is mostly gone now May 23 09:42:07 1 and 2 .. oh well May 23 09:42:23 i like it more than java. its more dynamic May 23 09:43:20 g00s: and its freaking fast May 23 09:43:43 i'm sure i'll learn it fast. it's just not like any other language i've used. May 23 09:43:45 i'm ignorant in that aspect May 23 09:43:49 the syntax is very different May 23 09:44:25 readme: the real difference between obj-c and stuff like java, is that in obj-c you send messages to objects, in java you invoke methods May 23 09:44:42 at least to me, that is the fundamental difference May 23 09:45:00 so for example, if you have a class which does not handle a message, it can forward it May 23 09:45:21 i run into this problem a lot in java, it happens often when composing behavior May 23 09:47:25 readme: I want to build an application using my android device and generate the apk. Once the new apk is generated I want to installed in the same device May 23 09:48:00 cactux: yes you can do it May 23 09:48:16 any docs? May 23 09:48:32 there's an IDE on play May 23 09:48:37 cactux is this what you want https://play.google.com/store/apps/details?id=com.aide.ui May 23 09:49:04 Hi, anyone know if i need to download something to get the Android samples to work? I'm trying to test the NFC example but can't beuild because a bunch of the imports such as "com.google.common.base.Charsets" don't exist. I've set up the project to use Google APIs May 23 09:50:10 ClockworkAnt: yes that is exactly what I need thx a lot :-) May 23 09:50:44 amazon suspended the acer icon a510 as having problems May 23 09:50:54 this, i must say i like about amazon May 23 09:52:00 "TechCrunch has apparently gotten word that Motorola and Google will be laying off around 30% of Motorola’s employees sometime after the sale is complete." ouch May 23 09:53:01 well, they have to, because of microsoft's stupid lawsuit. May 23 09:53:13 I hate microsoft so much. May 23 09:53:19 Almost as much as oracle. May 23 09:53:42 what did ms do? i didn't make the connection May 23 09:53:56 they caused motorola imports to be BANNED from the US May 23 09:54:05 with a patent on "scheduling a meeting" May 23 09:54:15 essentially they patented meetings, I'm not even kidding May 23 09:54:29 there's little more to it than probably some XML and a stupid date picker May 23 09:54:46 the htc import ban seems to be getting resolved pretty quickly, i bet moto will be ok May 23 09:54:53 i hope so May 23 09:54:58 i don't think this is responsible for the layoffs May 23 09:54:59 I like my motorola May 23 09:55:08 probably not directly May 23 09:55:16 but I wouldn't be surprised if it was some sort of factor. May 23 09:55:34 hopefully, they are laying off the motoblur bugs XD May 23 09:55:38 in any event I'd like to direct the hatred towards companies that are more deserving of it May 23 09:55:39 *guys May 23 09:55:41 Google is my hero May 23 09:56:04 no company is my hero :) May 23 09:56:12 that i can thikn of right now 9.9 May 23 09:56:42 http://www.salon.com/2012/05/21/googles_darkening_agenda/ May 23 09:57:59 hm, I totally forget how to get the default shared preferences outside of PreferenceActivity May 23 09:58:02 do you know? May 23 10:00:30 PreferenceManager.getDefaultSharedPreferences ? May 23 10:01:04 oh nice, its static May 23 10:01:16 I didn't realize that May 23 10:03:09 can I somehow make some libraries generated by ndk-build go into some other directory? May 23 10:03:20 i have a coyote howling outside my window :) May 23 10:03:59 =o May 23 10:09:28 Would it be safe to pass "Context" through Intent.extras() ? May 23 10:10:05 I don't believe that is actually possible, is it? May 23 10:11:02 It isn't May 23 10:22:26 SimonVT: do i need maven to build abs ? May 23 10:22:33 no May 23 10:22:37 phew :) May 23 10:22:45 It uses the regular android project layout May 23 10:23:06 i saw all these poms May 23 10:23:32 It just supports maven out of the box, since that's what Jake uses May 23 10:24:24 ok, and i see in library/libs/ there is the support lib, do i have to use that one, or can i use my own (in my project libs/) … or am i supposed to take out the one in my project libs/ ? May 23 10:25:29 Whichever one you want May 23 10:25:56 ant/adt handles it automatically May 23 10:26:14 ok, thans May 23 10:26:16 *thanks May 23 10:56:02 is it possible to draw SVG on a canvas? May 23 10:58:47 there are some libraries ... May 23 10:58:50 ymmv May 23 11:04:49 if anyone is interested they should apply http://campus.carnationgroup.com/ May 23 11:04:57 I went for the first one it was pretty cool May 23 11:10:07 isnt czech republic technically the heart of central europe :0 May 23 11:10:21 Do Google actually test any of their sample apps?! May 23 11:10:48 xorgate: I think so May 23 11:11:11 although I think its just 12 hours from Hungary (train) May 23 11:11:52 if anyone is applying let me know May 23 11:15:57 XeruX: android-svg-library May 23 11:16:02 not sure if it uses a canvas, I think it does May 23 11:16:20 it doesn't support many SVG features, thoughh May 23 11:16:25 SVG is a really complicated spec. May 23 11:22:26 canadiancow ?!?! http://www.engadget.com/2012/05/22/amex-zynga-farmville-card/ May 23 11:23:23 every minute a new sucker is born May 23 11:24:53 Can I just check something - if I add an external jar from the Android sdk folder, and the project compiles ok - it should run on the physical device? It's ok in the emulator, and crashes on the phone because a class is missing. Is this a bug with the phone software? May 23 11:36:24 sometimes when i call wedview.loadurl() for some reason it doesnt appear then it calls finish on my activity, anyone got any ideas why this might be? May 23 11:37:36 storkme hi May 23 11:37:48 pastebin some code gaz May 23 11:38:05 i only found out about that yesterday May 23 11:38:55 icant really pastebin anything May 23 11:39:00 its just somethign ive noticed May 23 11:39:03 this project is huge May 23 11:39:24 but yeh somehow my webview activity gets destoryed May 23 11:40:05 gaz`: then post your code related to webview.loadUrl() May 23 11:40:21 gaz`: totally don't understand your situation.. May 23 11:41:09 me neither May 23 11:41:18 but its just a switch statement that loads different urls May 23 11:41:34 no errors nothing goes straight from loadurl to ondestroy May 23 11:41:54 what if you comment out the loadurl, will it call ondestroy? May 23 11:42:13 good point May 23 11:42:15 checking May 23 11:45:05 hmm it only happens sometimes May 23 11:45:08 this is well weird May 23 11:45:11 its all i need right now :-/ May 23 11:45:34 gaz`: doesn't related to loadurl()? May 23 11:48:43 yeh it doesnt seem related! May 23 11:48:52 so bloody weird May 23 11:51:11 Been looking at http://developer.android.com/design/building-blocks/text-fields.html , how do you get that X on the right side of the textfield? May 23 11:52:50 At what point, in relation to the other activity lifecycle methods, does onActivityResult() get called? May 23 11:53:45 Knossos: before onResume() May 23 11:53:48 as it says in the doc May 23 11:54:13 so if you do stuff in onResume() you have to duplicate it in onActivityResult() if called in that order and not do it later -- kind of a bummer May 23 11:54:17 I didn't see it in there May 23 11:54:56 o ok May 23 11:55:06 Alright, thanks for the info May 23 12:02:55 damn im uterrly confused May 23 12:03:01 ondestory is getting called for NO reason May 23 12:03:20 what are you using onDestroy for? May 23 12:03:29 it seems to me like a fairly useless method May 23 12:03:33 heh May 23 12:03:37 i somewhat agree May 23 12:03:38 :) May 23 12:03:38 im just letting it clean some stuff up May 23 12:03:45 there is no guarantee it will be called May 23 12:03:51 but if i remove it itll still get called anyway May 23 12:03:59 ? May 23 12:04:03 i thought it always got called eventually May 23 12:04:07 no May 23 12:04:08 it doesnt May 23 12:04:12 what are you cleaning up -- , once the activity ref is gone all the members will get GC'd too May 23 12:04:16 read the lifecycle docs May 23 12:04:39 well its the age old bitmap recycle nonsense May 23 12:04:43 im recycling bitmaps in there May 23 12:04:45 ah, I see May 23 12:05:01 shit May 23 12:05:07 i just took that method out and all works!!! May 23 12:05:09 wtf May 23 12:05:09 dont manuallyr ecycle them May 23 12:05:24 haha May 23 12:05:32 well first question here is how well do u know bitmaps May 23 12:05:34 in android? May 23 12:05:38 ive had this issue since day one May 23 12:05:40 pretty well May 23 12:05:42 mem doesnt come back seemingly May 23 12:05:48 it does May 23 12:05:51 not here May 23 12:05:54 it just takes ~3 GC passes prior to honeycomb May 23 12:05:56 gaz`: why do you run into trouble recycling bitmaps in onDestroy? May 23 12:06:01 if i go in and out and in and out, i run out of memory May 23 12:06:23 takes maybe 30 or40 attempts but if i keep going into an activity and back and it uses bitmaps May 23 12:06:27 i eventually reun out of memory May 23 12:06:38 gaz`: when do you create new bitmaps? May 23 12:06:58 data is downloaded along with thumbnail urls so i make them when i grab the data May 23 12:07:25 and i grab the data in onresume May 23 12:07:30 stick a dialog up get data make bitmaps May 23 12:07:43 gaz`: then you need to recycle your bitmaps in onPause May 23 12:07:52 ah onpause, nice one May 23 12:07:53 cheers May 23 12:08:05 onpause is like ondestory but guranteed to get called right? May 23 12:08:14 gaz`: yes, http://developer.android.com/guide/topics/fundamentals/activities.html#Lifecycle May 23 12:08:17 uhm, onPause is probably the wrong place to do that May 23 12:08:23 because the activity might still be visible when paused May 23 12:08:28 onStop is probably a better place May 23 12:08:37 onStop is the new onDestroy, ok cool May 23 12:08:54 the lifecycle methods remind me of a camel :) May 23 12:08:55 hrnt: but then he needs to change his logic in onResume May 23 12:09:01 oh well May 23 12:09:10 designed by a commity May 23 12:09:23 can service callbacks on the same service ever interleave? May 23 12:09:29 well my prob is fixed by simply removing onDestroy May 23 12:09:37 or should I make them synchronized if I am worried about that May 23 12:09:38 and ill remember onStop form now on thx guys May 23 12:10:26 man I bet you guys didn't know that yngwie malmsteen covered the legend of zelda music May 23 12:10:40 gaz`: what you really need is probably a more thought through caching strategy for your bitmaps :) May 23 12:11:16 appel1 - possibly, altho its suposed ot grab new data each time, and its not my fault that somehow my memory never comes back :) May 23 12:12:41 gaz`: seems like a waste of battery to download the same bitmaps over and over again :) May 23 12:12:51 yeh May 23 12:12:53 well actually i dont May 23 12:12:56 thats just an example May 23 12:13:00 ok May 23 12:13:04 of how i can run out of memory due to the mystery oif bitmaps May 23 12:13:53 gaz`: it's not a mystery, bitmaps takes a lot of memory and if you don't recycle them when done or load to many you'll run out of memory May 23 12:14:08 well half the channel would disagree with that May 23 12:14:15 and say theres no need to manually call recycle May 23 12:14:27 It completely depends on the situation May 23 12:14:42 ifind it baffling the gc doesnt do all the work for u May 23 12:14:45 If you have 500 large bitmaps to load at certain points. You will not want that ALL in your memory. May 23 12:14:47 isnt that why we use java May 23 12:14:52 That is just common sense. May 23 12:15:38 Plus, I am pretty sure I read somewhere that everyone should recycle bitmaps themselves because Android doesn't deal with them so well. But I could just be remembering something that never happened... May 23 12:15:48 yeh no that the way it seems to be May 23 12:15:49 i think that changed in some android version May 23 12:15:55 gaz`: but the memory allocated by bitmaps isn't actually managed by java, it just counts towards your heap limit by default ;) May 23 12:15:59 the older ones didn't take the bitmap size into account when calculating the heap size May 23 12:15:59 im stuck on 2.3.6 May 23 12:16:45 hye louie May 23 12:16:47 hey May 23 12:17:06 its like meeting an old friend at a pub u never go to May 23 12:17:07 hrnt: the only thing I've seen is that they removed a hidden flag that allowed you to tell the bitmap to not count the memory towards the heap limit in some version May 23 12:18:23 looks like it changed in honeycomb May 23 12:18:26 http://dubroy.com/memory_management_for_android_apps.pdf May 23 12:20:00 hrnt: thanks May 23 12:20:31 good link that hrnt May 23 12:23:09 http://www.youtube.com/watch?v=_CruQY55HOk here is the associated youtube video May 23 12:23:46 Got a problem guys, trying to debug my app on my Galaxy Nexus while developing on a Macbook. However, my macbook won't recognize the phone. Is there a driver I need to install or something? :) May 23 12:26:17 <`z> Madito, you don't need a driver to connect most android phones to most computers running on unix based OSes, iirc May 23 12:26:21 <`z> but you might have to set a rule May 23 12:26:21 Madito: the obvuous question: you turned on USB debugging on the phone? May 23 12:26:22 <`z> lemme check May 23 12:27:21 USB debugging is turned on. Please tell me more about setting a rule. May 23 12:28:05 and the adb service is running? May 23 12:28:09 on the mac May 23 12:28:19 though it should start itself if not May 23 12:29:45 wongk: I suppose it is, but how can I check? :) May 23 12:30:10 well, i don't know enough about macs to answer that question :P May 23 12:31:02 ps -ef | grep adb wfm :P May 23 12:32:22 Madito: nope May 23 12:32:25 try adb kill-server May 23 12:32:27 adb start-server May 23 12:33:25 like wongk said that should restart adb service, sometimes it will hang on my mac May 23 12:35:37 vavirta: How do I set my terminal to recognize the command "adb"? May 23 12:36:51 add it to the bashrc May 23 12:37:06 do you think a BroadcastReceiver is good as OnSharedPreferenceChangeListener? May 23 12:38:01 iKb: probably not, but we don't know your code May 23 12:38:51 <`z> Madito, you can either move adb to /usr/bin or /bin, or you can just go to the place where adb is and use ./adb instead of adb May 23 12:39:55 wongk, i have a bootreceiver that start an alarm that every X seconds fire an alarmreceiver that start a service May 23 12:40:25 i have to restart the alarm with new X seconds if user change preferences May 23 12:40:38 Madito: put this to your .bash_profile May 23 12:41:15 export PATH=$PATH: May 23 12:41:50 and then restart your terminal May 23 12:42:24 or if you want just to try my suggestion you can found adb from your android-sdk-macosx/platform-tools/ director May 23 12:42:29 and then ./adb kill-server May 23 12:42:32 ./adb start-server May 23 12:46:49 hi all May 23 12:47:37 it's possible to reverse touch sense of Gallery ? May 23 12:48:20 or scrollview May 23 13:05:34 it's possible to reverse touch sense of Gallery ? May 23 13:05:36 or scrollview May 23 13:11:08 ech0s7 why would you do that May 23 13:11:51 canadiancow|work, end user of the app has requested this May 23 13:15:53 tell them they're wron May 23 13:15:55 wrong May 23 13:16:40 why ? I do not think a request absurd .... May 23 13:16:59 they want it to scroll the wrong way? May 23 13:17:04 I do not know whether it is feasible May 23 13:19:08 yes canadiancow|work, if he happy in this way :) May 23 13:19:18 no May 23 13:19:23 he is wrong May 23 13:19:27 you need to tell him that May 23 13:20:04 I told him, but do not listen to reason May 23 13:20:16 so fire him :) May 23 13:20:48 first I am paid :) May 23 13:22:46 canadiancow|work, about his request, do you think that it's feasible ? May 23 13:22:54 i odnt care if its feasible May 23 13:22:55 its stupid May 23 13:22:57 dont do it May 23 13:23:16 why do you think it's stupid ? May 23 13:25:07 Hi guys, I'm trying to implement the pinch-to-zoom gesture on Froyo. After a bit of googling I found out that I only need to use ScaleGestureDetector, but the problem is how exactly do I enlarge my LinearLayout for it to be "zoomed"? All the tutorials use either setMatrix, setScaleX, or setScaleY which are all not available in Froyo. May 23 13:25:55 i generally wouldnt zoom a view look that May 23 13:26:18 canadiancow|work: why not? May 23 13:26:33 because there are technical challenges May 23 13:26:36 what exactly are you zooming? May 23 13:26:37 how can i add a menu at the botton of my application screen that stays always visible on top through out the whole lifetime of my application? May 23 13:26:56 canadiancow|work: Text, to make it more readable in some cases where people can't see well May 23 13:27:11 the system does that autokmatically based on user settings May 23 13:27:24 and it has things like talkback or wahtever its called May 23 13:27:49 canadiancow|work: Yeah, but my app is text-intensive, I predict there will be times where the user will really want to zoom in on the text May 23 13:28:25 id still say the accessibility feautres that come with android are more than enough May 23 13:28:28 but if you cant use those, im not sure May 23 13:28:41 id never pinchzoom something other than a canvas May 23 13:28:49 or like... a surfaceview May 23 13:28:51 or something like that May 23 13:40:05 any good book to master the UI with android? May 23 13:44:45 very nice! http://googleplusplatform.blogspot.com/2012/05/sharing-rich-content-from-your-android.html May 23 13:47:20 ocx, well what do you mean by UI? you mean understanding how to use the views and widgets? or do you mean design guidelines? May 23 13:47:36 yea design guidelines May 23 13:47:42 to make the GUI nice and friendly May 23 13:47:50 what buttons to use , which layouts etc May 23 13:50:26 Guys, is it possible to implement the "Fling" gesture to animate the TextViews in the SAME activity? Because I'm aware it can easily be used to navigate from one activity to another, but can I use it to change the content of a text view and make it look like the old content is sliding out while the new content is sliding in? May 23 13:51:10 Seems like I would need some sort of hacks to implement changing the X coordinate of a few views May 23 13:57:07 Might not be the best place to ask this, but does anyone know if there are any plans to incorporate speed limit information in google navigation? I've looked at a few things online, but most is outdated by a year or so, so I figured I'd ask in here. May 23 13:57:15 having some trouble with drawing on a canvas.. I'm drawing three bitmaps (1. A map of a city 2. a location-indicator (for device-user) 3. Another location-indicator (store/whatever) .. Now, when panning around, the two indicators are "lagging", but when I stop panning (or scaling) they end up exactly where I want them to.. It's like looking at the mouse-trail in windows 95, and even though it was quite popular, I'm trying to prevent it from happening May 23 13:58:41 you are aware that the canvas is double buffered, right? May 23 13:59:03 which means? May 23 13:59:07 wiki it May 23 13:59:13 basically, if you draw something on one frame May 23 13:59:18 it must be drawn on the next frame as well May 23 13:59:30 you will have to play around with an example to truly understand it May 23 13:59:35 the buffers are drawn to then swapped May 23 13:59:38 for a smoother transition May 23 13:59:43 but if you do it wrong May 23 13:59:46 you'll see choppy May 23 14:00:10 It's not TOO bad, but it does look and feel kind of lame May 23 14:00:35 i would put my money on your implementation not correctly handling the double buffering of the canvas. May 23 14:01:32 how can i make a frame to my imageview/? May 23 14:02:10 readme: 1. lock-canvas 2. ondraw 3. unlockandpost, isn't that all I need to do? May 23 14:02:21 no May 23 14:02:34 that's what you need to do with the apis May 23 14:02:41 but your draws need to be replicated May 23 14:02:45 read up on double buffering May 23 14:03:40 each time you unlockAndPost May 23 14:03:46 you are swapping the buffers May 23 14:03:55 the next buffer does *not* automatically have what you drew to the previous buffer May 23 14:04:35 k May 23 14:04:38 found a nice article on it May 23 14:06:04 can i create a canvas to my imageview in xml? or better to include in coding? May 23 14:06:07 using canvas May 23 14:14:51 has anyone worked w/ ksoap2? May 23 14:22:30 I have bunch of static data, not sure if it appropiate for database or just place in string.xml May 23 14:22:51 Any suggestions? May 23 14:23:30 where is the activity layout? I'm newbie and I want to play with some tutorials.. May 23 14:23:39 the tutorial told me that I need to include some lines of code in the activity layout. What it mean? May 23 14:23:49 the code which I need to include is a XML code.. May 23 14:23:59 rgb247: res/layout May 23 14:24:13 all layout in that folder May 23 14:24:17 layouts* May 23 14:25:11 thanks you May 23 14:25:34 some reasons why i don't get the graphical editor under ubuntu ? May 23 14:26:30 t432: static data i think should in res/xml May 23 14:27:32 ixc: how would you distinguish between the 2? May 23 14:28:31 hello friends does this post http://androidforums.com/samsung-galaxy-s2-international/522418-upgrade-sgs2-ics-india.html#post4143844 confirms that ICS for india is released and my kies is asking to upgrade with CSC INU so is it ICS , should i proceed with upgrade for ICS http://i45.tinypic.com/33e6bgi.jpg May 23 14:28:34 t432: what u mean? May 23 14:28:43 i tought u just want store some static data May 23 14:29:10 ixc: when would you use a database instead of strings.xml? May 23 14:29:33 database has many feature that xml not May 23 14:30:01 and sqlite is a native app on devices May 23 14:30:41 so if its static and u only read for config, etc should xml May 23 14:30:49 http://pastebin.com/ebSuEyHw (this is on the client side) why does the program freeze on row 5? giving me a sockettimeoutexception, I successfully wrote from the socket.. but I can't read back on the same one? (I know nothing about sockets, just trying to follow an easy example I found) May 23 14:31:08 if u store like a list of user's items (e.g. magazines from web that user saved) May 23 14:31:14 should database May 23 14:31:14 I want to do a table layout where a TextView is on the left and an EditText is on the right. I played with gravity and layout_gravity, but I could not produce the correct effect. This is the basic layout http://pastie.org/3955844 can anyone help me on that? May 23 14:31:29 u can easy order, filter from database May 23 14:31:36 not programatically from java May 23 14:32:06 ixc: I guess a list of locations is appropiate for databases May 23 14:32:24 sebastiandeutsch: use weight and weightsum May 23 14:32:52 set a weightsum for the tablerow and then set the individual weights for the components in the row May 23 14:32:58 t432: i dont know context, but yeah example its should store in db May 23 14:33:35 ok thx May 23 14:34:03 but it also depend :) May 23 14:34:33 if u want save 5-6 koords that u always get back and dont work with it xml May 23 14:34:47 if u store koords where are shops and user want filter or put more May 23 14:34:48 database May 23 14:35:03 what about my query I am helpless May 23 14:35:20 I am waiting for answer since last 1 day May 23 14:36:03 dabbe: Do you still get the SocketTimeoutException if you instantiate the BufferedReader before you use the write to your printWriter? May 23 14:36:10 let me try May 23 14:36:13 If you move line 4 to line 2 May 23 14:36:17 ? May 23 14:36:48 If you do, can you paste the server side as well? May 23 14:37:04 It looks like SureLock does something to prevent a device from running in Safe Mode. I try to get it to boot in safe mode, but it looks like it's overridden somehow. May 23 14:37:14 Does anyone have a clue how that could happen? May 23 14:38:11 jennie: its development channel u should ask on a samsung or root chanel May 23 14:39:54 jennie: you're in the wrong channel. May 23 14:40:03 They use "modify global system settings", "prevent tablet from sleeping" and "retrieve running applications", but I don't see how that could override the safe mode... May 23 14:41:20 would any of you guys read an iOS dev book for android devs? May 23 14:42:25 mheld: That's like asking if any chess geeks read any romance novels. "Maybe, but why?" May 23 14:42:45 Jonathan_Eyre: I'm thinking about writing a book May 23 14:43:29 mheld: "Swahilli for Eskimos"? May 23 14:44:52 I'm trying to play with WebView in android May 23 14:45:01 when I declare: WebView mWebView; May 23 14:45:08 I receiver this error: WebView cannot be resolved to a type May 23 14:45:10 why? May 23 14:45:26 I follow this guide: http://developer.android.com/resources/tutorials/views/hello-webview.html May 23 14:46:15 dabbe: Thx I've done it with android:layout_width and android:layout_weight but it works May 23 14:46:25 ok May 23 14:46:27 rgb247: are you importing it? May 23 14:46:52 rynojvr I don't think .. May 23 14:48:06 rgb247: import android.webkit.WebView; May 23 14:48:21 rgb247: what is your IDE? May 23 14:48:28 Eclipse May 23 14:48:44 I've found in documentation where belongs this class.. May 23 14:48:46 thanks you May 23 14:48:55 Tried ctrl-shift-o? May 23 14:49:07 ctrl + shift + O will automatically import May 23 14:49:24 o or 0? May 23 14:49:29 o May 23 14:49:41 or hover over, and the Eclipse dialog will have an option you can click to import the package May 23 14:49:41 is it possible to pre-populate an EditTextPreference manually? May 23 14:49:41 thanks you for the trick May 23 14:49:55 and yeah, as dabbe said, o May 23 14:50:26 rynojvr, I pasted the code in PM to you in case you didn't see (sorry for being all needy) May 23 14:51:46 dabbe: PM? personal message? how do I see those? This is my first time on IRC May 23 14:52:12 ill post it here :) May 23 14:52:14 don't know if it's asking too much if i'm asking you to check my code, but I sat for 6 hours trying to understand all this >< but here is the code anyhow: http://pastebin.com/U2ZFvTRL May 23 14:52:58 k. give me a sec May 23 14:53:12 thank you a lot May 23 14:54:46 Why I receiver this error: The application ... (process com....) has stopped unexpectedly. Please try again May 23 14:54:59 the IDE told me that there are no errors May 23 14:55:08 dabbe: what's the problem with this code? May 23 14:55:10 open LogCat and check May 23 14:55:48 umm, the program gets stuck on "while ((lin = in.readLine()) != null) " May 23 14:56:41 if I remove the "server -> client" reading part of the client.. it works (but I also want to be able to send data from server to client of course) May 23 14:56:56 rgb247: Syntactical correctness has nothing to do with operational correctness. Look at the logcat output and see what's crashing, and start debugging from there. May 23 14:57:06 dabbe May 23 14:57:23 readLine() always return non-null value iirc May 23 14:57:41 ooohhhh.... May 23 14:58:10 if it is a file operation (stream operation) ..... then it could only be EOF May 23 14:58:15 Hi people, does someone have experience on Bluetooth SPP connections? May 23 14:58:16 wait a sec May 23 14:58:23 let me grab gcc document first May 23 14:58:52 ulyssessouza: yes May 23 14:59:04 but anyway, it doesn't reach row 122 May 23 14:59:06 UnknownzD: nah, readLine returns null if the end of the stream has been reached May 23 14:59:07 "readline ... Returns:A String containing the contents of the line, not including any line-termination characters, or null if the end of the stream has been reached" May 23 14:59:08 ulyssessouza: actually just implemented that May 23 14:59:49 dragorn, I'm implementing an application but the problem is that I cannot connect with the SPP port May 23 14:59:51 dragorn: I don't have logcat, is first time when I hear about.. can you guide me please how to use/install it? May 23 15:00:04 UnknownzD: http://docs.oracle.com/javase/1.5.0/docs/api/java/io/BufferedReader.html#readLine() May 23 15:00:05 rgb247: it's part of the android sdk and eclipse May 23 15:00:13 dragorn, do you have some tip on it? May 23 15:01:01 dabbe: do you get anything in the log from Log.d("ServerActivity", lin); ? May 23 15:01:08 ulyssessouza: I guess it depends what you mean by "can't connect". I haven't had any trouble getting it to work, based off the examples and the blueterm open source project. Pretty much you iterate the bt devices, present a picker, and use the SPP UUID in your connection May 23 15:01:23 dalvik VM is depending on Java language 1.5? May 23 15:01:56 ulyssessouza: private static final UUID SPP_UUID = UUID.fromString("00001101-0000-1000-8000-00805F9B34FB"); May 23 15:02:04 dabbe: Does it help to move the PrintWriter instantiation on line 127 to line 116? Before you read from the BufferedReader? May 23 15:02:10 ulyssessouza: and consocket = device.createRfcommSocketToServiceRecord(SPP_UUID); May 23 15:02:19 dragorn, this is the problem... May 23 15:02:38 So I started making an app by setting up eclipse and starting a new "android project". After that, I put in some code, but when I compile it and run it on my device, it doesn't run my code, it just runs puts out Hello world, and the name of my activity May 23 15:02:43 ulyssessouza: those are the two key bits for connecting to it. And the user needs to have already associated and put in a pin, of course. May 23 15:02:45 UnknownzD: http://docs.oracle.com/javase/7/docs/api/java/io/BufferedReader.html#readLine() May 23 15:02:48 dragorn, I can connect using createInsecureRfcommSocket by reflection May 23 15:03:09 ulyssessouza: you don't need to do that. Use sockettoservice and the SPP UUID May 23 15:03:17 ulyssessouza: there's no need (under 2.3 anyhow) to mess with reflection May 23 15:03:35 dragorn, tablet does the pairing without asking any PIN May 23 15:03:44 ok dabbe I will try to help you to solve the problem as well May 23 15:04:02 but don't expect much :\ I usually due with lower-level codes than Java one :\ May 23 15:04:12 ulyssessouza: it may automatically try the simple pins like 0000 or 1234, or it's got a pin you told it in the past, but yes, that's outside of your application May 23 15:04:29 dragorn, it refuses the connection when using the API exposed method May 23 15:04:31 thanks everyone for the help, i'm trying to reconstruct the code after your recommendations May 23 15:04:54 dragorn: my application have 4 rows.. In the LogCat I didn't find something useful for debbuging May 23 15:04:58 ulyssessouza: I suspect it may not be paired properly then? Try nuking the record in your bt prefs and reconnecting to it May 23 15:05:16 it looks like this atm: http://pastebin.com/mbLm7dw6 May 23 15:05:20 dabbe: on line 184, are you sure that IP is correct? May 23 15:05:40 only lines like: java.lang.RuntimeException: unable to start activity ComponentInfo(com.vsapps.firstapp/com.vsapp...) java.lang.NullPointerException May 23 15:05:47 ulyssessouza: I'm connecting to dirt-simple rfcomm to ttl serial modules with my stuff, the firmware is about as crappy as you can get but it "just works" w/ the exposed methods May 23 15:05:58 rgb247: There you go. Null pointer exception. May 23 15:06:03 dragorn, ahuauaha... I tryed 300 times... I connect only with this reflection May 23 15:06:14 rgb247: now go look at your code at that line and figure out what you're not initializing May 23 15:06:37 and this is the Logs from both the android units May 23 15:06:37 http://pastebin.com/XgpcVZ8e May 23 15:06:48 rgb247: also, no offense, but it seems like you may want to go invest in some "intro to java" books, or look around online for some tutorials. May 23 15:07:08 ulyssessouza: that's odd. I don't know offhand where I put my SPP keyboard May 23 15:07:11 ulyssessouza: or I'd try that May 23 15:07:24 is there a way to determine in an activity whether it was started with startActivityForResult or not? May 23 15:07:26 ulyssessouza: get 'blueterm' from the market and see if you can talk SPP to your device that way May 23 15:07:33 Anybody know why my android would output "Hello world," and then the name of my Activity instead of running my activity's code? May 23 15:07:44 dabbe: only 10 lines for the logs? 0.o May 23 15:08:03 ulyssessouza: if it works with that, it's your code. If it doesn't work with that, then you've indeed got somethign that won't connect w/ the stock service stuff May 23 15:08:08 (it should be spamming Sent message from server to client, but it is stuck somewhere - i'm guessing the host is stuck at writing and the client is stuck at reading) May 23 15:08:15 ulyssessouza: might save you some bashing your head on the wall, anyhow May 23 15:08:35 rynojvr: yes, I would assume is it stuck somewhere May 23 15:08:46 dragorn: this is my code. It have few lines. Can you help me please, what I miss to initialise May 23 15:08:50 http://pastebin.com/ajewch2W May 23 15:09:16 dragorn: yes, I know that.. I already reading some books about.. May 23 15:09:29 sonicrules1234: The default project usually has a layout setup with a textview that writes out a default hellow world string from strings.xml May 23 15:09:44 rgb247: well considering you didn't include a stacktrace of where it fails, I can only guess it's not finding webview May 23 15:09:45 It depends what you have put in your code / xml May 23 15:09:58 Knossos: Want a pastebin? May 23 15:10:01 Go for it May 23 15:10:22 dragorn, blueterm cannot connect also May 23 15:10:49 dragorn, I've tested a lot of other bluetooth terminals May 23 15:10:51 Knossos: https://gist.github.com/2775804 May 23 15:10:56 dragorn, none can connect May 23 15:11:10 It won't even print test May 23 15:11:27 I usually have it setText to str May 23 15:11:29 Ok, there are a few problems there. May 23 15:11:31 ulyssessouza: huh, ok, so your device isn't behaving right... Maybe it doesn't publish the SPP channel w/ the proper UUID? May 23 15:11:37 mmm, i searched the Intent docs and the activity docs.. i found no clue how to detect if an activity was started for a result or not.. May 23 15:11:51 ulyssessouza: unfortunately, my devices work fine w/ the normal connect option, so I haven't explored reflection to hack it in May 23 15:11:57 ulyssessouza: sorry. ;/ May 23 15:12:07 i guess i can encode it into extras.. or create a separate activity for it.. May 23 15:12:34 1. The content view is being set to R.layout.main (not a problem in itself, but if you goto /res/layout/main.xml you will find a textview with a reference to a string in /res/values/string.xml May 23 15:12:52 This is the default project setting. May 23 15:12:52 Ah May 23 15:12:58 hi May 23 15:12:59 That would explain it May 23 15:13:10 oh man :d May 23 15:13:15 getCallingActivity() :D May 23 15:13:17 2. You are creating a a TextView in code, but never actually adding it to your layout structure May 23 15:13:32 hi all, did anyone work with mongoose web server? May 23 15:14:29 I guess the example I was following was whack May 23 15:14:34 tapas: only works with startActivityForResult() May 23 15:15:11 Try starting out creating your layout in XML. For a lot of layout work, you won't need to create anything yourself directly in Java. May 23 15:15:22 I'm having trouble adding elements to an arrayadapter, would anyone mind checking out my code plz? http://pastebin.com/AZg0wCUp (the conflicting instr. is newGalAdapt.add(e); on line 31 May 23 15:15:47 Knossos: pretty much if you ever find yourself doing e.g. new TextView(..), you did it wrong May 23 15:15:54 Knossos: Ok, I'll try that May 23 15:16:01 Knossos: Thanks btw May 23 15:16:01 If you want to make your example work better, change line 17 to use = (TextView) findViewById(int); May 23 15:16:03 evancharlton: yes.. which is exactly what i need it for: detect whether my activity was started with startActivityForResult or not :D May 23 15:16:05 No worries. May 23 15:16:11 hm, improvement, it seemed to be stuck in the while-loop May 23 15:16:22 tapas: why not just always set a result? but okay :) May 23 15:16:26 i tried doing the .add() in the canal (baseadapter) too, after line 69, but it crashes with nullpointer exception in both cases May 23 15:16:53 also don't get the base context. Simply remove that and use getPackageManager(); on its own (you are in an Activity, which is a Context itself) May 23 15:16:59 evancharlton: well, i do set the result always, but if there's a calling activity i just check some state and finish.. if not, i display a GUI, etc.. May 23 15:17:33 hi, I want to update my app on the market an update Preference. How my app can know that is an update ? (For displaying news with a popup for example) May 23 15:17:46 rynojvr: I tried one execution with in.readLine() and one without and it is definitely that method that freezes the system May 23 15:18:47 dragorn: I uploaded the LogCat. Can you suggest me please how to fix this problem? May 23 15:18:50 http://pastebin.com/di3UMTuK May 23 15:19:52 What is at line #19 of VsAppActivity? May 23 15:20:37 this are 19#: mWebView.getSettings().setJavaScriptEnabled(true); May 23 15:20:38 When dev update application on the market, what they do on the code to display a news with a popup ? I just want to update a database with an update on the market. May 23 15:20:43 dabbe: It should May 23 15:20:56 Knossos: he's using mwebview, which, as I said before to him, implies it's not being resolved from the layout correctly May 23 15:20:59 mWebView probably can't be found then May 23 15:21:05 dabbe: I'm close. I think I know what is wrong, but I'm trying it out, so I don't shove my foot in my mouth May 23 15:21:15 Verify that you have the ID correctly set May 23 15:21:16 etc May 23 15:21:31 Knossos: here are the entire code: http://pastebin.com/YTyLw6gB May 23 15:21:45 S0lign0c: your sqlitehelper class should handle detecting the version of your db and you can write an onUpgrade override for it May 23 15:21:55 Knossos: you reffer to this ID from line 18#? mWebView = (WebView) findViewById(R.id.webview); May 23 15:21:56 Post also your layout/main.xml May 23 15:22:03 ok, a second May 23 15:22:17 S0lign0c: you could at the same time send yourself a message to display to the user that they've upgraded... or even just store a value in sharedprefs May 23 15:22:35 rynojvr: tyvm May 23 15:22:38 http://pastebin.com/sgVcdEsZ May 23 15:24:12 Hmm. Well that looks normal. I don't usually put Views like that as the only element. I usually would put it in a LinearLayout or something. May 23 15:24:25 I don't know if that would cause this error though. May 23 15:24:52 I followed this tutorial: http://developer.android.com/resources/tutorials/views/hello-webview.html May 23 15:25:12 the tutorial suggest me to make the main.xml in that way.. May 23 15:25:49 I'm having trouble adding elements to an arrayadapter, would anyone mind checking out my code plz? http://pastebin.com/AZg0wCUp May 23 15:25:57 dragorn: Thank, I will do it with Build.VERSION.RELEASE or PackageInfo. May 23 15:26:00 the conflicting instr. is newGalAdapt.add(e); on line 31 , i tried doing the .add() in the canal (baseadapter) too, after line 69, but it crashes with nullpointer exception in both cases May 23 15:26:21 Konassos: any ideea about my problem? May 23 15:26:52 S0lign0c: yeah if you just want to present the user w/ a notice then you can just store a sharedpref of the last version which ran, and if it's != the current, notification dialog May 23 15:27:03 rynojvr: i have no idea why it jumps out of the while(true) in the server thread May 23 15:27:06 ddreamer0: perhaps you would like to assign something besides null to newGalAdapter May 23 15:27:08 i removed the break May 23 15:27:11 S0lign0c: if you're using sql databases, there is a version & upgrade function you can/should override May 23 15:27:23 rgb247: http://pastebin.com/HYBQm48G May 23 15:27:34 try that (importing where necessary) May 23 15:27:44 You will at least see where the nulls are then. May 23 15:28:10 I don't see why the WebSettings would be null, but that is also a possibility. May 23 15:28:38 wongk: newGalAdapt gets assigned an adapter inside CanalAdapters getView: newGalAdapt = new myGalleryAdapter( context, R.layout.row, eventosModel ); May 23 15:29:43 Knossos: I see that in LogCat I found this: TEST | Is mWebView null? yes May 23 15:29:47 ddreamer0: wow, that's a mess... and getView will not be called before onCreate finishes May 23 15:30:18 rynojvr: i found something very interesting, i moved the serverSocket.accept() out of the while(true), now it loops at least May 23 15:30:22 Well I must be having a dense moment, because I can't see why that would be null. May 23 15:30:43 Anyone had a webview simply not go to the url u ask for? May 23 15:30:47 Could you try wrapping your WebView in a LinearLayout, just to try it? :P May 23 15:31:09 ok, I do that.. May 23 15:32:07 works in all instance sin my app May 23 15:32:08 bar one May 23 15:32:21 just trying to visit a twitter mobile page and nothing happens May 23 15:32:31 wongk: i also tried calling the .add() within myGalleryAdapter, after line 69 May 23 15:32:40 but again nullpointer except. May 23 15:32:56 Knossos: same result May 23 15:33:39 ddreamer0: you're saying you got an NPE call a method on an object you just new'd? May 23 15:33:51 And you don't have any other layout xml files? May 23 15:34:11 I.e the one you put in pastebin is the absolutely correct one May 23 15:34:46 I have only main.xml in res/layout; a moment and I upload it on pastebin May 23 15:35:14 Knossos: http://pastebin.com/0gsx6azt May 23 15:35:41 Knossos: ahh, a moment, there are an error May 23 15:35:45 in main.xml May 23 15:35:54 You still have the outer LinearLayout May 23 15:37:18 Knossos: it works!! May 23 15:37:28 Wrapping it in a LinearLayout? May 23 15:37:37 Knossos: it works with this version of main.xml http://pastebin.com/TzuQt5yF May 23 15:37:49 There you go May 23 15:37:57 yes.. but the tutorial suggest me to just paste the code without LinearLayout, I don't know why May 23 15:37:58 You will want to remove the second xmlns though May 23 15:37:58 thanks you a lot May 23 15:38:00 god damn webviews May 23 15:38:10 Only the root element requires that May 23 15:39:24 dabbe: does this help? http://pastebin.com/iTKJtN1J May 23 15:39:27 which are the second xmlns? May 23 15:39:34 On the webview May 23 15:39:45 You are setting a namespace on the webview that isn't required May 23 15:40:16 I changed it so that it uses Scanner instead of BufferedReader, the .nextLine() looks for a delimiter, and when you send the message on one side, when you are done, it sends that delimiter. May 23 15:40:58 There also seems to be some funkyness in terms of program flow. What is it you are trying to accomplish? May 23 15:41:36 dabbe so is it working now? May 23 15:41:41 after removing the socket part May 23 15:42:16 rynojvr: believe it or not, an actual bi-directional connection is created! May 23 15:42:21 i can send data forward and back May 23 15:42:33 :D May 23 15:42:50 i didn't look at your lastest paste, but i will May 23 15:43:00 but anyway, thank you SO MUCH (and everyone else) for helping, it means alot! May 23 15:43:05 If you want to have true full-duplex communication, you will need to put the reading in it's own thread. May 23 15:43:20 yeah May 23 15:44:39 Anyway, you are very welcom dabbe. Gotta go get lunch now. Best of luck! May 23 15:48:57 wongk: xcuse me i was out May 23 15:49:04 <_20Syl_> Yo May 23 15:49:38 Hello! I create in Outer class simple static Inner with reference on Outer class. Inner class have callback onNotifyComplete(). I send this inner class to Service and when service finished handling - onNotifyComplete method called. From implemetation of onNotifyComplete in my Inner class I show dialog using reference on Outer class. ref.showDialog(). It means i call showDialog from non UI thread? May 23 15:49:50 wongk: i get the exception only when adding ( myGallery.add(Elemento) ) to myGalleryAdapter i intantiated May 23 15:50:35 <_20Syl_> About Device Administration, is there any hack to revent the application to be removed from Device Administrator by the user ? May 23 15:50:43 <_20Syl_> kiss May 23 15:52:01 And in general, is it possible succesfully showDialog from nonUI thread May 23 15:52:03 ? May 23 15:53:02 no May 23 15:54:11 ok. and what about my case, described earlier? May 23 15:55:16 Yauhen90: I don't know, I'm not going to try and parse that. Either use pastebin to show us a test-case or just try it and see May 23 15:55:45 Okay.jpg May 23 16:10:57 Does anyone know how reliable android bluetooth is? Or how far two devices can connect using it? May 23 16:11:50 Knossos: Well, I got my app working after looking at a few examples, but now when I try to install it using the apk I generated, the package manager crashes when I hit install. May 23 16:12:01 Rich787, that's hardware dependent May 23 16:12:06 android bluetooth in general is reliable May 23 16:12:44 okay, I've never had great experiences with it on .. dumb-phones, so I wasn't sure May 23 16:14:35 can anyone check out my embeded adapters please? i'm trying to populate a gallery, embeded in a listview: http://pastebin.com/g9d1r4hr May 23 16:33:19 Does anyone here have experience in using the Air Native Libraries? I am trying to start an Activity from a FREContext object. Here is a Stack Overflow question describing exactly what I am trying to do by someone having the same problem. May 23 16:33:25 http://stackoverflow.com/questions/10710094/how-to-start-activity-from-frefunction May 23 16:33:32 AIR Native Extensions is what I mean, sorry. May 23 16:37:19 IntelliJ or Eclipse? May 23 16:37:25 Eclipse May 23 16:38:11 tylo: have you used both? Do you actually like eclipse? May 23 16:38:20 haven't used both, i do like eclipse May 23 16:38:51 tylo: Do you use eclipse for all of your development? May 23 16:39:19 tylo: Like for instance would you use eclipse if you were going to be programming in python or ruby May 23 16:39:34 I'm pretty new to this, I thought you were asking me a question about my question, but now I see you just recently entered the room, so you can pretend I didn't say anything. May 23 16:40:22 tylo: hahah o alright May 23 16:49:11 IntelliJ > Eclipse May 23 16:51:04 hwrdprkns, what is the editing command for movign the selected lines up a line in the file? May 23 16:52:11 if eclipse alt + up (arrow) May 23 16:52:32 gridbag: I dunno, never use it. May 23 16:53:19 i'm very happy with Idea. at least since the beginning of this year its been better for me. May 23 16:56:00 I'd like to use Eclipse when developing Android, becuaes of google's plugins May 23 16:56:06 otherwise vim May 23 16:59:08 http://xkcd.com/378/ May 23 17:03:36 without looking the comic, I'd say it is good ol' butterfly May 23 17:03:56 :P May 23 17:04:01 yup, correct :D May 23 17:04:09 Personally, I prefer the magnetized needle May 23 17:04:54 but that's so old school... May 23 17:05:07 So am I :P May 23 17:05:15 :D May 23 17:09:36 hello, I have a couple of editviews in a table, and wanted to know, how do i get the "next" on the keyboard (IME) to go to the next entry? May 23 17:10:00 can I somehow define the order, as it goes to the next tablerow editview instead of the one in the same row atm May 23 17:17:12 hi May 23 17:17:18 anyone using google analytics? May 23 17:17:21 for android May 23 17:18:28 I've been using for almost a year, May 23 17:18:52 and today I found out there's quota limit May 23 17:19:50 and my pageviews exceed the limit for over 100 times, May 23 17:20:03 analytics works just fine May 23 17:20:07 wth? May 23 17:21:44 Maybe the quota isn't enforced May 23 17:24:00 but analytics on some other website blocked today May 23 17:24:19 that's why I learned about quota May 23 17:25:51 o.O May 23 17:40:19 ms office for ios / android ? http://www.bgr.com/2012/05/23/microsoft-office-ipad-android-launch/ May 23 17:42:37 http://www.theverge.com/2012/5/23/3038125/nvidia-reveals-kai-199-quad-core-reference-design May 23 17:48:51 how can i use something like overridePendingTransition for when the activity is popped? i only see it work when starting activity, but not when pressing BACK May 23 18:07:22 can anyone check out my embeded adapters please? i'm trying to populate a gallery, embeded in a listview: http://pastebin.com/KT2yHztL May 23 18:08:23 is this the right approach ? May 23 18:10:05 I would say a listview of gallery rows is never the right approach May 23 18:13:47 evancharlton well it's working quite smooth for now, i've made it work with baseadapters May 23 18:14:16 but now i wanted to use an array adapter but it gives me nullpointerexceptions on the .add() instruction May 23 18:14:32 (line 31) May 23 18:14:42 I'd guess something is null, then May 23 18:16:05 what is the preferred way of handling custom dialog layouts for EditTextPreference May 23 18:16:31 ddreamer0 you never initialised newGalAdapt.... May 23 18:16:36 intialized May 23 18:17:10 at least not during onCreate at all May 23 18:17:39 ddreamer0 I have a feeling you have no idea how adapterviews work May 23 18:19:30 http://www.explosm.net/db/files/Comics/Rob/jobsearch.png May 23 18:19:41 t0mless ok you're right about that May 23 18:20:17 t0mless i'm trying to learn, i was doing this with baseadapters and it was working but now i changed to arrayadapter and i start to get these nullpointers May 23 18:21:06 your NPE there is a no brainer May 23 18:21:20 you're calling a method on newGalAdapt during onCreate May 23 18:21:30 but you don't initialize it until your other adapter's getView May 23 18:21:54 meaning newGalAdapt is only ever going to be the object created with the most recent list item created May 23 18:22:00 which during onCreate, is none May 23 18:22:11 t0mless yes i know, i used to do it within "CanalAdapter" May 23 18:22:17 but got the same problem May 23 18:22:23 i was playing around with it May 23 18:22:36 i also did the .add() within the parent adapter May 23 18:22:58 just think about what you're trying to do, logically May 23 18:23:06 and then realize what is called when in your code May 23 18:23:15 and you'll see why that code explodes May 23 18:23:22 then sit and think how it SHOULD work, logically May 23 18:23:52 will a finally { } get called even if I return from the try {} and no exception was thrown May 23 18:24:04 yes May 23 18:24:09 nice May 23 18:24:18 that's the whole point of finally -_- May 23 18:24:19 I know I read it always gets called but I am wary anyway May 23 18:24:24 I don't want to screw it up May 23 18:25:55 is there a way to mix up something that i compile for ndk with my normal sdk application? to get that file running.. May 23 18:26:11 for example mongoose web server to get started programatically May 23 18:26:18 thats the default mode of operation for NDK apps. May 23 18:26:21 called through JNI May 23 18:26:50 t0mless ok, that's what i'm trying to do. do you think it makes sense to call one adapter from within the other? May 23 18:27:07 i have it like this.. compiled my ndk web server, got it to /libs/armeabi/mongoose May 23 18:27:13 t0mless that's what i was doing at first, like this http://pastebin.com/MJJr0mC5 May 23 18:27:19 ddreamer0 sure, if the second adapter is supposed to be embedded in the other May 23 18:27:25 i can push it to /data/local and get it running.. May 23 18:27:31 and i passed the context from one to the other May 23 18:27:31 how can i do that through app? May 23 18:27:39 ddreamer0 what doesn't make sense is trying to modify your embedded adapter from outside the outer adapter May 23 18:27:42 In the android browser, is there a separate BrowserActivity for each tab? May 23 18:28:01 mbarisa: call through JNI May 23 18:28:18 you can also invoke processes with java, posix style May 23 18:28:26 t0mless yes, i want them to embed because i want to populate a gallery (that scrolls horizontally), which is embeded within a list view May 23 18:28:51 Right... so why you trying to add stuff to the embedded adapter during onCreate? May 23 18:29:50 Anyone know how to take screenshots in recovery? May 23 18:30:09 ddms May 23 18:30:17 just like you take screenshots normally May 23 18:30:24 t0mless sorry i was just trying everything desperately by that point, the original version populated myGalleryAdapter from CanalAdapter like this: http://pastebin.com/MJJr0mC5 May 23 18:30:57 readme: sorry internet connection.. did you answer me something? May 23 18:31:36 ddreamer0 that one is at least in the right direction May 23 18:31:49 ddreamer0 have you watched the ListView google IO talks? May 23 18:32:54 t0mless nop, not at all May 23 18:32:58 let me search May 23 18:37:01 t0mless for some reason line 63 isn't a good place to do the .add because it generates a nullexception May 23 18:39:49 that doesn't necessarily mean it was a bad place for it, it just means you're doing something wrong. May 23 18:40:04 +1 May 23 18:40:42 figure out what is null, and why May 23 18:41:13 try { /* all your code */ } catch (NullPointerException e) { /* Fixed! */ } May 23 18:41:23 HA May 23 18:41:31 with that, it's lunch time May 23 18:44:36 Can anybody tell me how I could _replace_ a tab's content at runtime in this example? http://stackoverflow.com/a/10082836/1244280 May 23 18:44:51 I'm able to do it with a fragment transaction, naturally, but that breaks this infrastructure. May 23 18:47:59 Chronax: I'd say stick each new tab object into a variable, then use setText May 23 18:48:51 canadiancow|work: :( i hate code like that. I have to remove all the try catch because it's impossible to debug. May 23 18:49:37 i hate even worse the cdoe that wraps the exception and returns a boolean or null :) May 23 18:49:40 anyone who codes like that should have their eyes gouged out with a rusty spoon May 23 18:49:59 that was a bit graphic May 23 18:50:07 you might want to consider a psychiatrist May 23 18:50:23 I think that is actually from Sam and Max May 23 18:50:31 though they might say mellon baller May 23 18:50:37 I need to actually replace the fragment at runtime, though. May 23 18:50:48 Why is that an issue? May 23 18:52:43 Chronax: Heh, I'm just a beginner in Java and in developing android apps, so all I can really help you with is that setText. I have no idea what fragments mean in this case :p May 23 19:14:05 t0mless turns out my nullpointer comes from PopulateForm (line 131) : http://pastebin.com/MJJr0mC5 May 23 19:14:32 my advice is the same May 23 19:14:40 find out what is null, and WHY May 23 19:14:45 i don't understand why but if i comment it at least it populates an empty list May 23 19:14:50 i'm doint a try catch May 23 19:15:03 Chronax: 1. Create method to remove tab 2. create method to insert tab at position 3. override getItemPosition and return the right constant, based on the position of the item you receive May 23 19:15:13 4. ??? 5. profit May 23 19:15:42 guys I am getting keytool error java.io.ioexception keystore was tampered with or password was incorrect eclipse when trying to export apk from eclipse any tips? May 23 19:16:02 type your password correctly? May 23 19:17:43 for debug key it is android May 23 19:18:46 t0mless, i did type my password correctly I created new key and eclipse has the password validation May 23 19:18:53 and this is for release May 23 19:19:27 heh, thanks Simon. May 23 19:19:28 Already there./ May 23 19:19:47 I can obviously just use the getSupportFragmentManager.replace, but then the tabs are no longer selectable. May 23 19:19:57 If that makes sense. May 23 19:20:22 The jury found Android doesn't infringe Oracle's patents May 23 19:20:26 Why would you do that May 23 19:20:32 \o/ May 23 19:20:35 Replace the data in the adapter May 23 19:20:39 call notifydatasetchanged May 23 19:20:44 And update your tabs May 23 19:20:56 ViewPager does the rest May 23 19:21:34 I'm trying to replace one of the fragments that's associated with a tab with another fragment. May 23 19:21:50 User makes a selection, and I replace one tab's content with another fragment. After that, the other tabs are no longer selectable. May 23 19:22:07 Does anyone here have experience in using the Actionscript Native Libraries? I am trying to start an Activity from a FREContext object. Here is a Stack Overflow question describing exactly what I am trying to do by someone having the same problem. http://stackoverflow.com/questions/10710094/how-to-start-activity-from-frefunction May 23 19:22:21 Again, why would you do that, and not just update the data backing the adapter May 23 19:22:44 Hi everyone, i just want to learn: what is the best screen size to develop android? May 23 19:23:03 All of them May 23 19:23:17 ^ This. May 23 19:23:22 Because I just need to update the view for one of the tabs? May 23 19:23:31 robrhaylo: I think what he means is just pick one to learn in, preferably the one your phone currently has (considering you have a phone) May 23 19:23:51 I'm not really trying to change the tab behavior, I just want to swap out a fragment that's associated with one of the tabs. May 23 19:24:04 robrhaylo: you should support all screen sizes. May 23 19:24:20 if you think you need to learn for one screen size, take a step back and just start learning, then you will see. May 23 19:24:54 So no one really has much experience using Actionscript Native Libraries I take it? May 23 19:24:55 tylo that is horrible advice May 23 19:24:58 Chronax: If you need to update the view in position 2 in a ListView, would you call yourListView.addView(..), or would you update the adapter? May 23 19:25:05 t0mless: ok... May 23 19:25:10 You should learn how to make dynamic layouts from the start May 23 19:25:11 ok fine, but i think two alternative; that is 320x480 and 480x800. But i dont know May 23 19:25:14 not pick a screen size May 23 19:25:23 I didn't mean target that screen resolution, my mistake May 23 19:25:35 robrhaylo: a well crafted layout will work fine on both sizes. May 23 19:26:05 I see. May 23 19:26:24 Unfortunately, the fragment I need to swap out needs to be instantiated and... decorated. I can't just swap the "class" out in the adapter in this case. May 23 19:26:28 robrhaylo: do NOT code to fixed screen sizes. Your app will randomly look like shit on a lot of devices which are slightly different. Use layouts, detect resolution, etc. May 23 19:26:44 Then re-make your adapter so it fits your need May 23 19:27:14 hi guys, i am trying to create a bar at the buttom of my UI and that will remain there for the whole time May 23 19:27:16 how can i do that? May 23 19:28:31 Alright. Thanks for pointing me in the right direction. May 23 19:28:45 G'day May 23 19:29:20 Chronax: You might have to modify FragmentPagerAdapter to allow removing Fragments, it's kinda crappy that way. Or manually remove (FragmentTransaction.remove...) the Fragment you wish to replace May 23 19:30:34 dragon readme: thanks your ideas, right What else can you tell about fixed size May 23 19:32:13 t0mless, btw the problem was that I did not run eclipse as administrator May 23 19:32:29 lol May 23 19:32:33 stupid May 23 19:32:38 * t0mless doesn't use eclipse May 23 19:33:00 I just build and sign with ant May 23 19:39:56 ocx: less preferable - tabactivity, ideal - fragments May 23 19:40:59 How can i support all screen sizes? Such as, i have 320x480 assets, and edited manifest "normal screens is set true." But, i confusing alot, just want to all devices, how can? May 23 19:42:02 I also highly doubt any modern phones will be shipping with 320x480. May 23 19:42:19 http://developer.android.com/guide/practices/screens_support.html May 23 19:42:34 For one, stop thinking in resolutions May 23 19:42:35 In general, use layouts which scale in size. For drawables, make multiple resolutions and do best fit. There's a whole section of the developer guide on doing this May 23 19:43:24 Doesn't matter if it's 320x480, or 800x480.. Only matters if it's ldpi, mdpi, small, normal, etc May 23 19:52:26 even if you only include one set of drawables, the system will scale them for you May 23 19:52:33 the bigger issue is a 3" screen vs a 10" screen May 23 19:56:17 dmalice: to work with fragment would be best if i create a core activity with the fragment and then extend the rest for the rest of the activitites? May 23 19:56:51 well, for example, in project there are 320x480 assets. I made it, I want to run it Device is galaxy s2 (480x800). Is system scale it? May 23 20:01:50 can't wait to see Florian Mueller's face hahahahaha May 23 20:02:30 hi, what is the best way to write a network server running on android? May 23 20:02:32 robrhaylo, you dont make full screen assets like that? May 23 20:02:33 this isnt ios May 23 20:03:06 burn! May 23 20:03:39 fire! fire! fire! May 23 20:04:02 pufff May 23 20:04:08 uh, huh huh hugh May 23 20:06:22 snug i did see a little java async network server, lemme see if i can find it May 23 20:06:26 *snuy May 23 20:06:35 it was pretty adorable May 23 20:06:42 Guys how to find out easily what is the lover neccesery andriod verions for my APP? May 23 20:06:48 once it is done May 23 20:06:53 thx g00s May 23 20:07:18 in low resolution, is it "Use layouts, detect resolution" best choice? May 23 20:07:57 if you are "detect[ing] resolution", you're doing it wrong May 23 20:09:29 have scaled assets in drawable-ldpi, -mdpi, -hdpi, -xhdpi and dynamic layouts, then let the system pick the correct assets and scale them as requires May 23 20:09:32 required* May 23 20:09:49 simple svg icons ftw ! May 23 20:11:26 snuy: For android-specific, you probably want to put it in a service May 23 20:11:26 hi May 23 20:11:41 snuy: since it needs to be independent of disruptive events like flicking to the home screen, or rotating May 23 20:12:01 i have created a custom Drawable class, how can i reference it from xml layout file ? i have tried with android:drawable="@com.hello.custom.drawable:drawable/TextDrawable" May 23 20:12:10 but i get error at compile time May 23 20:12:23 dragorn: is there a chance to make it running all time and even restart it in case android kills the app's process? May 23 20:12:28 snuy: apart from that it's more or less "basic java server code". I don't have any good references offhand, but make a service, make connection threads, etc May 23 20:12:32 Description Resource Path Location Type May 23 20:12:32 Error: No resource found that matches the given name (at 'drawable' with value '...' May 23 20:12:47 @drawable/TextDrawable May 23 20:12:51 snuy: if you make it a service (and go through all the service hoops of giving it a statusbar icon, etc) then it'll mostly stay alive May 23 20:12:53 As far as I understand that it cannot be logical to code to fixed screen sizes May 23 20:13:49 snuy: if it gets killed you'd have to re-start it from the UI. I don't THINK you can set persistent timers that survive your activity/service being killed, but investigate timers or alarms May 23 20:14:06 SimonVT, TextDrawable is a class (class TextDrawable extends Drawable {…}9 May 23 20:14:19 snuy: this is what i was thinking about, not sure it applies at all for you http://www.infoq.com/presentations/Play-I-ll-See-Your-Async-and-Raise-You-Reactive May 23 20:14:31 system scale assets in where app running device. May 23 20:14:38 snuy: in general android is pretty good about not nuking services, if you set it up with a notification and all May 23 20:15:00 ech0s7: Then you're out of luck May 23 20:15:04 Gotta do it from code May 23 20:15:09 dragorn: thx. i'll give the service approach a shot May 23 20:15:13 be a good developer and decide, if you really need a foreground service. many times it is not required May 23 20:15:38 SimonVT: I'm not using a FragmentPagerAdapter. May 23 20:15:51 Oh, wait. May 23 20:15:54 le sigh. May 23 20:16:11 :) May 23 20:17:43 So I'm going to need to roll my own inherited FragmentPagerAdapter you think? May 23 20:19:21 If it's needed. At least you gotta FragmentTransaction.remove(...) the fragment somewhere May 23 20:20:05 If you need to modify FragmentPagerAdapter, copy the source. It's a hassle to try and override certain methods to make it fit your needs May 23 20:21:44 it's impossible because they made some stuff private... May 23 20:21:50 might as well have made the class final May 23 20:22:32 Can't extend final classes :p May 23 20:23:49 Yuck. May 23 20:24:09 I'm still totally confused though. Can't I just swap out the item in the collection and call notifyDataSetChanged() ? May 23 20:24:57 vagina! May 23 20:25:04 man just when i thought i had fragments figured out... May 23 20:25:36 Nope, you can't ^_^ May 23 20:25:59 FragmentPagerAdapter gives each added fragment a tag based on position May 23 20:26:17 Before calling getItem, it does findFragmentByTag May 23 20:26:32 If findFragment returns a fragment, getItem is never called May 23 20:27:33 Since FragmentPagerAdapter never calls .remove(fragment), even if getItemPosition indicates it's no longer in the list, findFragmentByTag will always return a Fragment after the initial add May 23 20:28:03 seems like my fragments are saving instance state when i don't want them to :/ May 23 20:29:14 Easiest for you will probably be to, in your method for removing a fragment from the adapter, do the transaction as well. And then FragmentTransaction.executePendingTransactions before calling notifyDataSetChanged May 23 20:29:34 I have no idea if that's going to work, but it's a start May 23 20:30:12 it might complain later when it tries to detach the fragment from destroyItem May 23 20:30:32 Yikes. This is a mess! Might it make more sense to simply blow all the tabs away and re-add them as necessary? May 23 20:30:59 Then you can always copy fragmentpageradapter and make sure detach is only called on added fragments May 23 20:31:08 Well, that's also a solution :p May 23 20:31:40 Wait. I can totally remove the item from the ArrayList, and it won't be in there anymore. May 23 20:32:09 Yeha, but your fragment is still added to the activity May 23 20:32:12 Chronax: you can has cheeseburger too May 23 20:32:21 :) May 23 20:32:22 Try what I said May 23 20:33:05 Your ArrayList is like the data backing a listview adapter May 23 20:33:09 You update that May 23 20:33:17 Then do the extra stuff to make fragmentpageradapter behave May 23 20:33:22 Right. May 23 20:33:44 Can't I simply modify the collection of ArrayList and notifyDataSetChanged()? Boom! Problem solved. :) May 23 20:33:48 http://rootzwiki.com/news/_/articles/htc-revises-android-40-update-list-r800 May 23 20:33:55 No, for the reasons I just stated May 23 20:34:41 based on that i'll be lucky to see ICS by my upgrade date :P May 23 20:36:33 I wish there was a way with this IRC client to filter the noise and only see messages from SimonVT. May 23 20:36:53 you could ignore everyone else ;) May 23 20:37:19 Or you could do a pm May 23 20:39:46 good lord onSaveInstanceState gets called a lot. May 23 20:41:29 I dunno about a lot May 23 20:41:43 it gets called everytime the fragment isn't going to be visible anymore May 23 20:41:48 i'm probably doin' some funky communist shit in my app. May 23 20:41:51 if you're flipping fragments often, it'll do that May 23 20:42:06 and i am flipping fragments a good bit. May 23 20:42:06 or if you're backing out and coming back into your activity often May 23 20:42:11 it'll do it once for each fragment May 23 20:42:25 each fragemnt in the layout? May 23 20:42:45 so i have a service that handles mediaplayback with a MediaPlayer. Turns out, i'd like to buffer the next track for playback as soon as I start a track. But the logic in my service is coupled with handling the state of one mediaplayer, obviously. anyone have any ideas/clever suggestions for how to add buffering another track and managing the state without gutting the entire service? May 23 20:42:54 i'm talking about the fragment's onSaveInstanceState May 23 20:43:02 not the Activity's. May 23 20:54:32 moonlightcheese: stop watching fox news; your fragments are not communists May 23 21:01:31 great win for android in the court room today then. ;) May 23 21:01:34 I need to create an animation where I translate a bitmap drawn on a canvas, and have it accelerate at the beginning, or first half of the animation and decelerate the last half May 23 21:01:38 any thoughts? May 23 21:02:31 XeruX: use math May 23 21:02:43 pragma-: no shit May 23 21:02:48 it's super effective May 23 21:02:50 but I guess I have to take FPS into consideration May 23 21:03:00 never done this before May 23 21:03:01 math is hard, let's go shopping May 23 21:03:20 shopping involves math unless you're using a credit card May 23 21:03:26 swipe and forget! May 23 21:11:06 huh? math? what? May 23 21:11:07 no way May 23 21:11:18 money just appears out of nowhere and I don't need to add it up when I use my credit card! May 23 21:11:26 https://plus.google.com/102150693225130002912/posts/TZsT2BP3TDh May 23 21:11:36 linus is cursed, indeed May 23 21:12:37 i have a problem: my app could send async notification on notification bar, as pendingIntent when user click on notification i set HomeActivity and i'm constrained to set as flag FLAG_ACTIVITY_NEW_TASK. The problem is that if a previous instance of HomeActivity is present in background, when user click on notify on activity stack i have two instance of HomeAcvitiy, how can i fix this situation ? May 23 21:13:12 add another flag May 23 21:13:14 like SINGLE_TOP May 23 21:13:50 @room advice on good android programming? May 23 21:13:59 read the dev guide May 23 21:14:06 read the resources -> android training May 23 21:14:08 learn java May 23 21:14:10 actually learn Java May 23 21:14:14 not in any particular order May 23 21:14:17 == ctate May 23 21:14:48 it's a little dismaying how many people come through this channel with no firm understanding of how java works May 23 21:14:53 evancharlton == ctate? May 23 21:14:58 and without that you're gonna have a bad time May 23 21:15:02 @room is html5 the future though? May 23 21:15:03 or learn scala May 23 21:15:04 ;-) May 23 21:15:17 canadiancow|work: no. May 23 21:15:17 and have a fun time working on android May 23 21:15:17 ruh roh May 23 21:15:20 oh yeah, also ignore the scala claque in the corner May 23 21:15:22 IT EXCEPTIONS WHEN I DO: MyClass m = (MyClass)new Object(); May 23 21:15:41 we need a lint rule for that May 23 21:15:46 adt 21 May 23 21:17:26 best Os to lean java = ubuntu? May 23 21:17:55 anything is fine May 23 21:17:56 best os to learn java on is the os with which you are most comfortable working May 23 21:18:09 Linux! May 23 21:18:25 what about android? best os? May 23 21:18:27 Ubuntu isn't an OS per say. Its a linux distro May 23 21:18:33 billdollar, same May 23 21:18:49 speaking of ubuntu, i was just reading about how to use LXC on 12.04 LTS ,,, pretty cool May 23 21:18:55 what's lxc May 23 21:19:06 like gnome? May 23 21:19:07 oh, zones, like solaris May 23 21:19:07 pfn: http://www.stgraber.org/2012/05/04/lxc-in-ubuntu-12-04-lts/ May 23 21:19:24 except not as nice as zones May 23 21:19:30 I guess more like bsd jails May 23 21:19:33 solaris had some nice parts May 23 21:19:39 *has* May 23 21:19:43 thanks for the advice all May 23 21:19:51 SunOS galactica0 5.11 11.0 i86pc i386 i86pc Solaris May 23 21:20:09 :) May 23 21:20:19 heh, i used usonOs before it was solaris May 23 21:20:24 *sunOS May 23 21:20:36 it was renamed solaris in sunos5 May 23 21:20:37 pft, I was cool before it was cool to be cool May 23 21:20:46 canadiancow|work: don't worry man, that joke will never stop being hysterical. every time, it's funnier than the last. May 23 21:20:49 not just renamed May 23 21:20:59 i thought it was merged May 23 21:21:01 well, it went from bsd-like to svr4 as well May 23 21:21:02 iirc Solaris5 was SysV based, abandoning the earlier BSD codebase May 23 21:21:23 err, Solaris 1.5 May 23 21:21:29 or something like that May 23 21:21:44 evancharlton i had to think aobut that for a second May 23 21:21:57 i hated those damn sun mice though with the reflective pads May 23 21:22:03 becuase that was 5 minutes ago May 23 21:22:05 those were cool May 23 21:22:15 and the laser discs May 23 21:22:18 optical mice were win May 23 21:22:30 mine always had too much stiction May 23 21:22:31 pfn: more like completely replaced May 23 21:22:55 and then it would drag the whole mat on the table May 23 21:22:58 ctate: classic SunOS was retroactively named Solaris 1.x May 23 21:23:04 it was more like a laser mouse May 23 21:23:14 yeah, you could strap it too your head May 23 21:23:16 ctate: Solaris 2.x = SunOS 5.x May 23 21:23:17 (which is a type of optical mouse, sure) May 23 21:24:11 What's the difference between an OS and a distribution, exactly? May 23 21:24:39 tools May 23 21:24:48 OSync: depends on OS and distro ;) May 23 21:24:56 p_l: err, yeah, that May 23 21:25:02 i knew there was some wacky renumbering May 23 21:25:25 OSync: yeah, "OS" is a slippery term May 23 21:25:37 technically "Linux" means *only* the kernel May 23 21:25:56 well, kernel and few userland tools that are done by the kernel team May 23 21:26:14 products like Fedora Core or Ubuntu are "Linux distributions," packaged deployments of the kernel plus a whole boatload of userspace stuff that e.g. presents some kind of UI May 23 21:26:33 I see... May 23 21:27:10 any bundle of code that runs the computer from bare metal up through user interaction is an "operating system" May 23 21:27:14 so, conceivably, the OS is ubuntu, or fedora, etc. May 23 21:27:19 they vary widely in complexity May 23 21:27:27 since a kernel by itself isn't much of an operating system May 23 21:27:35 "Unix" is a formally specified operating system May 23 21:27:47 rather tightly specified in fact, programming APIs and behavior guarantaees and so on May 23 21:28:19 linux distributions these days are pretty much all implementations of the "Unix operating system" as formally specified May 23 21:28:31 'cept they aren't Unix still May 23 21:28:41 sadly, OSX /is/ Unix May 23 21:28:45 but linux isn't May 23 21:28:48 * pfn scratches head May 23 21:28:57 are you sure? i know that Linux distros have been moving closer to SUS compliance May 23 21:29:05 Apple did the work and forked out the money, GNU/Linux hasn't May 23 21:29:05 I mean as in certification May 23 21:29:15 Apart from their history, how similar is Unix and Linux? May 23 21:29:16 ==bankai_ May 23 21:29:16 just like android phones that don't pass cts can't be passed off as android, or something May 23 21:29:28 OSync: careful; Unix is an operating system and Linux is just a kernel May 23 21:29:33 OSX used bsd, no? May 23 21:29:42 OSync, the code base is completely unrelated May 23 21:29:43 ctate: Oops ): lol May 23 21:29:45 so you're comparing two very different scales May 23 21:29:47 sonicrules1234, the userspace is bsd May 23 21:29:49 the kernel is mach May 23 21:29:53 Ah May 23 21:29:58 OS X uses PARTS of the FreeBSD code May 23 21:30:15 BSDs cross-pollinate all the time May 23 21:30:20 also OSX doesn't care much about the common Unix userspace UI implementations like Xwin, preferring to use its own May 23 21:30:21 [ May 23 21:30:22 thank May 23 21:30:23 god] May 23 21:30:27 * g00s wonders what is going on with gnu hurd these days May 23 21:30:31 I like X11 a lot May 23 21:30:35 I'm thinking linux is POSIX compliant May 23 21:30:37 there's really no decent replacement for it May 23 21:30:39 g00s: snrk giggle giggle bwahahahahaha May 23 21:30:45 pfn: sure ther eis. OSX. May 23 21:30:46 :) May 23 21:30:59 ctate, you can't remote cocoa without it being caca May 23 21:31:03 you mean for non-Macs? that's true, and i've been waiting for something decent to replace X11 for twenty years. May 23 21:31:15 ctate: Heard of wayland? May 23 21:31:20 x11 is the only protocol that does a decent job at handling remote systems May 23 21:31:22 but at this point it's choked under its own inertia May 23 21:31:33 pfn: false. windows remote desktop, for example, is excellent. May 23 21:31:37 Wayland doesn't do remote though May 23 21:31:40 windows remote desktop is only /ok/ May 23 21:31:45 it is for full-on VDI May 23 21:31:47 not app-hosting May 23 21:31:49 remote is relatively unimportant. May 23 21:32:05 I dunno, it's a use-case of windowing systems that I encounter all the time May 23 21:32:05 right; full-on VDI is fine May 23 21:32:06 ctate: Look into wayland then May 23 21:32:12 pfn: only if you only work on X :) May 23 21:32:19 i dunno, i think remote could be useful for tablets May 23 21:32:21 ctate: I actually quite like some bits of X11... except that instead of fixing what's wrong, people went with "let's force square peg in round hole" method, ended with shitty situation, then decided to cut the round hole into square (Wayland) May 23 21:32:24 I use windows as my desktop May 23 21:32:27 hello. i need to have a ListView that can display rows using two different layouts. in my custom adapter.getView (derived from BaseAdapter) if convertView == null i am able to create the layout i need based on getItemViewType. what happens if convertView is not null? is it always the right recycled layout..does it check getItemViewType internally before giving me the convertView ? May 23 21:32:32 I /always/ wish I could get a remote-hosted app to display May 23 21:32:35 rather than entire vdi May 23 21:32:47 then /maybe/ I'd use eclipse more often May 23 21:32:49 i basically never want that May 23 21:33:00 I want to remote only the apps that I want to use May 23 21:33:00 but i want remote display reasonably often May 23 21:33:03 not my whole desktop May 23 21:33:17 I want to remote my explorer window, or eclipse, or my browser window May 23 21:33:29 x11 satisfies that use-case, no other desktop system does May 23 21:33:44 j0p: yes May 23 21:33:53 i only use eclipse through a an X forwarded session May 23 21:33:55 thank you May 23 21:34:13 j0p: (the documentation is a bit confusing regarding that) May 23 21:34:14 see, someone else that is somewhat like-minded May 23 21:34:18 Hm, does android use x11? May 23 21:34:22 sonicrules1234: no May 23 21:34:23 sonicrules1234, no May 23 21:34:27 What does it use? May 23 21:34:31 Some framebuffer? May 23 21:34:42 hrnt : i have to say it is confusing/poor in many places for newbies like me :) May 23 21:34:43 sonicrules1234: absolutely not May 23 21:34:53 it has its own UI implementation May 23 21:35:09 with support for hardware compositing of overlapping windows, etc May 23 21:35:33 sonicrules1234: essentially framebuffer that you paint on through the framework May 23 21:35:40 p_l: Ah May 23 21:36:32 Just curious if there are any xorg builds for android... May 23 21:36:36 except that the framework might divert to some other mechanism May 23 21:37:02 KaiSforza: I was thinking the same thing May 23 21:37:05 not sure xorg would run all that well on an android device :S May 23 21:37:10 KaiSforza: Atrix and Droid 4 have them ;) May 23 21:37:42 bankai_: I don't see why not. They have all the hardware requirements (at least the more modern ones do) in spades. May 23 21:38:02 there's a couple of forum threads that talk about installing the entire ubuntu distribution onto the sdcard and running it on an emulator in android or some such nonsense May 23 21:38:24 I was just wondering, because gnome3, unity, and one of the KDE builds seems to be built for touch devices. May 23 21:38:39 and that would be freaking nice to have on an android device. May 23 21:38:58 http://my20percent.wordpress.com/2012/02/27/android-x-server/ May 23 21:39:00 I dislike all 3 of those May 23 21:39:25 gnome3 has never worked for me. :P May 23 21:39:27 i wouldn't mind seeing all the QT stuff on android, it has some awesome functionality May 23 21:39:40 Is there an easy way to create a layout that arranges views in rows? I can think of using a grid, but in a grid the width of the columns must be the same May 23 21:39:40 bankai_: and would be annoying to get running May 23 21:39:55 p_l: deps would be May 23 21:39:57 sonicrules1234: yeah. i'm not a fan of gnome 3 or unity, and i don't use kde because of the weight. May 23 21:40:05 zambo, a linearlayout... May 23 21:40:12 KaiSforza: Indeed May 23 21:40:14 sonicrules1234: but on a touch device, that's what they're really made for. May 23 21:40:15 bankai_: no, using Qt on android would be... it would be a right mess, IMHO May 23 21:40:22 Yeah May 23 21:40:27 pfn: linearlayout is only one row May 23 21:40:37 I guess my hate translates too easy xD May 23 21:40:37 hello May 23 21:40:49 how can one stop a webview from antialising a zoomed image May 23 21:40:55 zambo: sure, but you can put a bunch of horizontal linearlayouts in a single vertical linearlayout May 23 21:41:04 that could get pretty heavy though May 23 21:41:15 I want to be able to add/remove items, which gets tricky May 23 21:41:37 there's always one more "but I want to" May 23 21:41:50 =) you are right it is doable with linearlayout I think May 23 21:42:01 and it's not really that tricky, just get references to the views/layouts and show/hide them May 23 21:42:50 when publishing an app to google play, is there any check made on the app before showing in the market ? May 23 21:42:55 f00bar80, no May 23 21:42:58 yes May 23 21:43:06 gr8 :D May 23 21:43:19 is there a horizontal scrollview anywhere? >.< May 23 21:43:29 Check yourself before you wreck yourself May 23 21:43:30 it checks that the versioning is correct and it checks the permissions and the feature requests May 23 21:43:44 oh May 23 21:43:47 nevermind... May 23 21:44:00 pfn, in an app can i use webview to show youtube videos with no issue? May 23 21:44:28 f00bar80, that depends on TOS May 23 21:44:41 depends on what you consider to be an issue May 23 21:44:51 you can publish the app, certainly May 23 21:45:01 but if you're violating content policy or terms of service May 23 21:45:02 pragma-, copyrihgts May 23 21:45:05 Zharf: there's no approval required, if that's what you're asking May 23 21:45:07 your app can, and will be pulled down May 23 21:45:17 ctate, mis-target May 23 21:45:27 err, f00bar80 May 23 21:45:38 stupid fingermeats May 23 21:45:40 Zharf, horizontalscrollview seems rather... non-obvious May 23 21:45:42 ;-) May 23 21:45:46 typeracer anyone? ;-) May 23 21:45:56 what I'm trying to make is something like the list of tags on SO questions: http://stackoverflow.com/questions?sort=votes May 23 21:46:10 yeah, I decided that I don't want to speed up the development of carpel tunnel May 23 21:46:17 arranging views of variable width in rows, and moving to a newline when the current row is full May 23 21:47:13 pfn, i saw lot of app showing porn even ... and never pulled down May 23 21:47:42 f00bar80, it will be, eventually May 23 21:47:45 yes, google play is sin city and god will strike down upon it with great veangeance May 23 21:47:53 pfn, I know, right May 23 21:48:04 though I might be more interested in a horizontal listview May 23 21:48:12 that's a terrible idea May 23 21:48:48 why May 23 21:48:53 horizontal scroll is probably a terrible idea too May 23 21:49:22 nah :p May 23 21:49:23 pfn, is there a way to monitor the app how many users checked/installed and how google are checking it as well May 23 21:49:24 Zharf, poor use of real estate May 23 21:49:35 Zharf, too few visible items May 23 21:49:37 it'd only be horizontal in landscape mode May 23 21:49:45 f00bar80, no May 23 21:49:47 speaking of which May 23 21:49:57 why hasn't play store added google analytics support like chrome webstore does May 23 21:50:05 I really like being able to see analytics on visitors to my chrome extension page May 23 21:50:17 but the play store, which should be much more mature, imo, doesn't have anything remotely similar May 23 21:50:20 you could have your app phone home May 23 21:51:02 i find the developer console timeline graphs to be largely useless as i cannot rearrange them the way I want May 23 21:51:07 but good thing there's the export May 23 21:51:23 I agree that horizontal scrolling wouldn't work for most usecases, but I think it would work in mine and I'm going to give it a shot, if it doesn't work, that's fine May 23 21:51:38 anyway, the view recycling of listview would be awesome :E May 23 21:51:43 play needs private betas, and enterprise distribution before anything else May 23 21:52:28 enterprise distribution, like apple enterprise program May 23 21:52:40 Guys how to find out easily what is the lover neccesery andriod verions for my APP? once it is istalled May 23 21:52:45 g00s: and more licensing options May 23 21:52:46 enterprise distribution is easy May 23 21:52:54 "employee, do this, or else" May 23 21:53:03 though that falls under enterprise distribution, I guess May 23 21:53:36 Has anyone heard of someone running a full blown linux OS on their phone, not just emulated with local VPN? May 23 21:53:49 (specifically a galaxy nexus...) May 23 21:53:58 i've heard of ubuntu with android May 23 21:54:25 g00s: so have I. I was looking, and the ubuntu team put together an omap-4 ubuntu build May 23 21:54:42 I was wondering if anyone here had actually tried it... May 23 21:55:06 "Adobe has given Microsoft the source code to Flash, so that Microsoft could fully integrate it into Internet Explorer 10 for Windows 8. " …. nooooooooo May 23 21:55:17 lol May 23 21:55:45 hi all. where are the stock ICS wallpapers located in the file system? May 23 21:56:05 Cant find them anywhere.. -_- Reckoned they were in the framework-res.apk, but doesnt seem like it May 23 22:04:04 g00s: that's really amusing, given Silverlight.... May 23 22:07:47 afaik silverlight is dead May 23 22:07:55 (won't be ported to metro) May 23 22:09:10 silverlight is just another way of describe a flash May 23 22:09:17 this happens whenever I reach a place in the app where I need Internet, http://dl.dropbox.com/u/19390574/log.txt May 23 22:09:26 and it never connects May 23 22:09:35 there's internet on the emulator May 23 22:10:04 s/of/to/ May 23 22:12:45 Untouchab1e: the default static wallpapers are in Launcher2 May 23 22:13:35 Guys how to find out easily what is the lover neccesery andriod verions for my APP? once it is istalled May 23 22:15:42 WAT May 23 22:18:54 Steve Blank wrote an interesting article about VC money and social startups; but this one is also interesting … specifically i remember "don't build an app, build a business" … but maybe this should be refined to don't build an app, build a big data app + business May 23 22:19:02 http://gigaom.com/cloud/innovation-isnt-dead-it-just-moved-to-the-cloud/ May 23 22:19:10 (steve's original article is a good read) May 23 22:19:19 ctate: ah, really? Thanks May 23 22:19:26 and this thing is cool http://gigaom.com/cloud/skin-scan-wants-to-fight-cancer-using-iphones-and-big-data/ May 23 22:21:43 I'm trying to (for 2 hours now -_-) to serialize: ArrayList lines, (Line class contains PointF (float x, float y) start and stop). I'm doing it with ObjectOutputStream and I'm controlling that my coordinates are valid before serializing it, but when I read it with my ObjectInputStream.. all my PointF of the Lines (of the arraylist) are (0, 0) May 23 22:21:46 I successfully serialized a string, but when I shoved in my arraylist containing those lines.. I can't seem to get it to work May 23 22:22:19 hi May 23 22:24:38 I'm trying to implement a countdown timer May 23 22:25:02 whats the appropriate type of view for displaying a countdown? May 23 22:25:06 is there a sane way to debug sqlite databases ? I mean, can I somehow connect to the database externally and view its content ? May 23 22:25:22 Is it possible to tell ActionBarSherlock to use a drawable as the overflow icon? May 23 22:25:23 rvsjoen: on the emu, yes via dab shell & sqlite3 May 23 22:25:30 damn it, *adb May 23 22:25:46 on the phone, if it is not rooted, it would need to be copied off the phone May 23 22:25:59 and inspected with sqlite3 on your desktop May 23 22:26:03 I guess that could be arranged somehow, i'm testing on my galaxy tab May 23 22:26:17 the emulator is slow as shit May 23 22:26:26 i'll give it a go, thanks May 23 22:26:42 do try setting up a hw-accelrated AVD in the emulator, see if it helps enough May 23 22:27:06 rvsjoen: motodevstudio has an sqlite browser built in, but it still needs to access it from a public place - like external storage May 23 22:27:56 I need to figure out where the file is. I only specify the database name May 23 22:28:04 in the extension of SQLiteOpenHelper May 23 22:28:29 its in /data/data/your_package/databases/ May 23 22:28:33 it's in the app's private data subtree May 23 22:28:35 ==g00s May 23 22:34:12 could I possibly use adb push or sync to copy the file ? May 23 22:34:39 rvsjoen: your app will have to put it in a public place, and then you can use adb pull May 23 22:34:54 this is for an unrooted phone May 23 22:35:06 i've almost rooted my phone just for this :( May 23 22:35:29 hehe May 23 22:36:18 being able to install apps on an ext partition on your sdcard is a great reason to root your phone May 23 22:36:32 though I suppose these days thats more applicable to the older phones that had significantly smaller internal storage May 23 22:36:53 (such as my current phone which has only 70MB or so free for apps) May 23 22:37:21 created 2gb ext partition, now I have 500+ apps instead of only 20 apps May 23 22:37:34 That's... a lot of apps... May 23 22:38:17 yeah, on a side note, the manage apps setting takes forever to load May 23 22:39:53 * p_l is getting fed up with the whole "cloud" thing May 23 22:40:35 especially since a big part of it isn't really cloud, just demand-scaled client-server May 23 22:40:46 p_l: that reminds me, I just noticed the other day that sourceforget.net seems to be trawling my code.google.com projects and secretly creating a sf project page with the same title and description under my sf account, but minus any repos or downloads May 23 22:40:57 Does anyone know if you can detect when something is unresponsive (the popup) and kill the process / restart it? May 23 22:41:08 (yes it has root access) May 23 22:41:12 I haven't even logged into sourceforge.net since 2008 May 23 22:41:23 Nijikokun: you can hack into event queue May 23 22:41:33 though OS already has that May 23 22:41:36 is there docs on event queue? May 23 22:41:44 programatically i mean May 23 22:41:45 No, it's internal part May 23 22:42:00 alright, i'll look into it May 23 22:42:13 basically, a process becomes unresponsive and gets signaled an ANR if it doesn't react to event in specific time May 23 22:42:27 alright May 23 22:43:03 (same logic is used in Windows for the "application is not responding" btw) May 23 22:43:26 except windows takes like 2 hours to before they decide it's frozen, and android takes 2 seconds May 23 22:43:36 unless you REALLY screw up May 23 22:43:39 :P May 23 22:43:44 haha May 23 22:43:52 2 seconds is great May 23 22:44:07 bah May 23 22:44:09 it's 5 seconds May 23 22:44:17 30 for broadcasts May 23 22:44:59 but all of that is handled internally to the Android framework May 23 22:45:10 choreographed between input dispatch and the activity manager May 23 22:45:28 yeah but this doesn't have a user using it May 23 22:45:39 so the popup just kind of… stays there forever May 23 22:46:52 so move stuff off the ui thread May 23 22:47:08 can't its the camera May 23 22:47:35 everything else is threaded correctly May 23 22:49:39 i'm pretty sure the ANR dialog will be auto-dismissed eventually May 23 22:49:49 nah May 23 22:50:12 it stays for hours May 23 22:51:09 gah im bored. I want to start an RPG. But if I do that, it'll never end May 23 22:51:30 ah, i'm thinking of the crash dialog May 23 22:51:30 sigh May 23 22:53:03 ok this is probably just me being a turd, but using the adb shell; sqlite3; .databases; shouldn't my database show up in that list ? May 23 22:53:50 rvsjoen: on the emu, you have to supply the name of the qb to sqlite3 May 23 22:54:05 yeah, the argument to the sqlite3 app is the path to the db file May 23 22:54:06 damn it colloquy May 23 22:54:18 but the shell user doesn't have rights to read app files May 23 22:54:39 if you're on a rooted system you can 'su' then do it May 23 22:54:41 there we go May 23 22:54:52 (i don't remember; is the emulator ROM a root-capable system?) May 23 22:54:53 i'm just testing with the emulator May 23 22:55:05 so yeah that'll work May 23 23:07:55 Guys how to find out easily what is the lover neccesery andriod verions for my APP? once it is istalled May 23 23:08:48 huh? May 23 23:09:31 you find that out by setting the target sdk May 23 23:13:13 yeah, that's defined in your own manifest; why would you need to query it at runtime? May 23 23:16:24 ctate, kanelbulle I dont want to query it for runtime I need to know it for documentation and my problem is that I do not know what is lowest sdk I can work on. I May 23 23:17:00 I mean yeah I set the sdk but I dont know Android Api that well to know what is lowest SDK I can use if you know what I mean May 23 23:18:13 o hai May 23 23:28:59 What are some reasons why getSupportActionBar().setTitle() wouldn't work? It's just not displaying anything... Don't think I've messed with the themes or anything, I'm just using @style/Theme.Sherlock. May 23 23:29:25 cc: JakeWharton ;) May 23 23:29:35 getSupportActionBar().setDisplayShowTitleEnabled(true); May 23 23:31:24 Isn't that true by default? May 23 23:32:05 Still didn't work. May 23 23:32:07 Very strange. May 23 23:34:55 Anybody else? May 23 23:35:14 hm, so yahoo is a browser company now? releasing axis tonight :| May 23 23:36:17 Yikes. May 23 23:36:33 Chronax what are you passing to setTitle? May 23 23:36:53 Where can I get the 2.3.3 emulator image? It is not showing up in the SDK manager. I think http://developer.android.com/sdk/android-2.3.3.html is implying it should be. May 23 23:37:44 A CharSequence. May 23 23:37:47 Like "Testing..." May 23 23:38:43 Nevermind, found it. May 23 23:38:44 My fault. May 23 23:38:46 Of course. ;) May 23 23:38:57 Was doing this: actionBar.setDisplayOptions(0, ActionBar.DISPLAY_SHOW_TITLE); May 23 23:41:07 i wonder if the i/o talk on multi version UIs is going to talk about abs, or some other way like actionBarCompat / TabCompat May 23 23:41:43 Just asked my evangelist at Google that same question and he said no. May 23 23:42:03 Chronax: so, its not about abs ? May 23 23:42:36 i didn't quite follow what part no applied to :) May 23 23:53:27 I asked if there would be any major announcements around ABS or another backwards-compatible ActionBar implementation and they told me no, and that I should still consider using ABS. May 23 23:53:50 Chronax: oh thanks, thats useful info for me. May 23 23:54:10 i'm having serious problems debugging android applications using a real device (samsung galaxy s2 unrooted). eclipse 3.7.2 64bit. i read lots of posts on forums with my same problem but i still havent found a fix. the phone is visible and the debug starts but after a few seconds it disconnects. any ideas please ? May 23 23:54:59 j0p: What OS? May 23 23:55:07 win7 64bit May 23 23:55:17 Have you restarted ADB as Administrator? May 23 23:55:28 yes. didnt work May 23 23:55:30 Otherwise it could be the driver for your specific device. May 23 23:55:32 Hrm... May 23 23:55:48 i can't find any other driver beside kies ones.. May 23 23:55:53 Man. May 23 23:56:22 I had to actually re-write a part of an .ini file and use it to reinstall the device's driver to get debugging to work. May 23 23:56:26 Let me see if I can dig that up for you. May 23 23:56:40 that would be great, thanks:) May 23 23:56:47 romainguy: http://shop.oreilly.com/category/deals/photography-owo.do May 24 00:04:04 Hello, i'm looking for a how to build a rest app on android. Do you know anyone to recommend ? (just googling but it's incredible the 'noise' there are around android) May 24 00:04:25 r0ver: i guess you could start with the i/o video May 24 00:04:33 it could be a book also, i'm willing to pay for good material May 24 00:04:33 2010 i think May 24 00:04:46 g00s: thanks a lot, yes i already watched the talk May 24 00:04:50 great material May 24 00:05:09 hah, yeah after i watched that i wanted code examples :/ May 24 00:05:59 what's the name of that view element that gets dragged in things like lock screens? May 24 00:06:41 it's just part of the lock screen implementaion, not a standard framework widget May 24 00:06:45 some folks at stackoverflow recomended to take a look at iosched app, which i'm getting right now but well... code is not a howto :), in fact i would be willing to buy a book if i find one with this subject May 24 00:07:05 ctate: ah, gracias May 24 00:07:25 reasons to get the AOSP code, #243 :) May 24 00:08:00 r0ver: that app is good, but it just reads - no updates, authentication, etc May 24 00:08:35 g00s: good to know, thanks again! May 24 00:11:07 Programming Android by Zigurd Mednieks et.al. seems to be the answer, anyone have read it ? May 24 00:13:09 hmm, i have the 1st ed May 24 00:13:13 not the 2nd ed. May 24 00:13:55 g00s: was the 1st edition good enough for that time ? May 24 00:14:56 hmm, i think reto is all you need if you want a book - don't remember if he covered rest though May 24 00:15:04 i thought android in practice had something about rest May 24 00:15:32 in 2011 edition there's a whole chapter for rest apps May 24 00:15:57 i have it open, lemme look at it May 24 00:18:18 r0ver: so you saw the i/o presentation? they cover one of the later options : activity -> content provider -> service May 24 00:18:36 without reading it too fully, it seems an adequate discussion May 24 00:19:12 i have to say though, i thought activity -> service -> cp made more sense to me , i think virgil even mentions you have to break the contract for cp some for the 3rd architectural approach to work May 24 00:19:23 let me know how it goes :) May 24 00:19:39 g00s: man, how can i send you a beer ? :) May 24 00:19:49 r0ver: no worries :) May 24 00:20:02 thanks a lot May 24 00:25:19 hey stupid question, when I'm making a livewallpaper do I have to specify the main activity in the manifest still May 24 00:27:12 or can I just point it at xml/wallpaper and then declare it all there May 24 00:36:17 new version of chrome; update! May 24 00:52:59 quick question: Does ContentResolver hold onto a reference to the Activity context or ApplicationContext? May 24 00:53:10 * ctate | Intel just released its ICS system image for the Android SDK emulator. Get it through the SDK Manager! May 24 00:53:33 herriojr: yes May 24 00:53:44 i think to use that i have to install a next on my mac May 24 00:53:48 *kext May 24 00:54:05 ctate: yes to which? :P May 24 00:55:30 ctate: as in if it were called from an Activity May 24 00:55:34 i believe it internally retains a pointer to the context it was created against May 24 00:55:45 sorry, I guess I have to state which started it May 24 00:56:02 so if you call an activity object's getContentResolver(), that will internally retain a pointer to the Activity May 24 00:56:12 ctate: damn... May 24 00:56:25 ctate: fixing bad code one bit at a time... May 24 00:56:26 content resolvers run within a Context May 24 00:56:44 so yeah, don't leak them :) May 24 00:56:44 yes, I just didn't know if it was an ApplicationContext reference May 24 00:57:11 basically -> I inherited really bad code May 24 00:57:42 alright, thanks May 24 00:58:07 I need something that'll allow me to scroll horizontally through a timeline, that will change the views depending on the horizontal position. Has anyone heard of any such widgets made or has experience making it? May 24 01:04:16 is there a viewgroup that can coherently "wrap" some of its children while the other children "match" up to the wrapped size? I keep wanting this over and over and keep coming up with strange ways around the problem... "background" is too much of a hack -- I want full featured views. May 24 01:04:54 bloop: you should probably write it explicitly as a custom layout May 24 01:05:08 [which is not as awful as it sounds :) ] May 24 01:05:34 ctate: I hope you're right about that... May 24 01:05:54 trust me May 24 01:06:01 i'm an op. :) May 24 01:06:39 haha ok. But I don't want to reinvent the wheel... May 24 01:08:02 there is really no framework-provided general layout that does that May 24 01:08:20 Facebook's authorize() method is needed only once ? I mean what have to do when i need to upload a photo and to post a comment...i only have one authorize() with one Listener, that means only one onComplete() method... May 24 01:08:28 ok thanks! May 24 01:08:46 hey op, help me too :) May 24 01:09:24 * t0mless sets mode ( -o ) ctate in #android-dev May 24 01:11:18 ctate: just as a reference, I found a bit on master that has a static reference to a ContentResolver obtained from an Activity: packages/experimental/AndroidVendorSecurityTool/src/com/android/vending/sectool/v1/GservicesValue.java so either the assumption that it holds an Activity context is wrong or that code needs to be fixed May 24 01:12:28 ctate: woot for the info on the intel image of ICS May 24 01:12:49 just curious, are service binders still leaked ? May 24 01:13:47 ancanta: some old examples of how to upload a photo using the FB SDK: http://stackoverflow.com/questions/3109283/android-upload-photo-to-facebook-with-facebook-android-sdk this uses the old REST API photos.upload function (http://developers.facebook.com/docs/reference/rest/photos.upload/), not sure if that's what you intended. May 24 01:14:22 ancanta: based off the examples, i think authorize() only needs to be called once to make sure the proper permissions are obtained from the user May 24 01:14:35 herriojr: smells like a bug to me May 24 01:14:45 ContentResolver has a 'Context' pointer member May 24 01:14:59 that points to the context instance used to construct the ContentResolver May 24 01:15:06 so, fill in the dots. May 24 01:15:53 keith_hyfn, hey i believe the same ( authorize needs to be called only once ) ...let me see the examples May 24 01:16:04 I'm not disagreeing that it points to a Context, I was just trying to go through the instantiation code to determine whether it is done with an Application object or an Activity May 24 01:16:36 ancanta: ok, good luck buddy gotta go May 24 01:16:43 thnx May 24 01:17:40 what i dont understand is how im gonna use the oncomplete() method in more than one events IF authorize which includes the oncomplete runs only once!! :S May 24 01:18:57 ctate: sorry, I didn't mean to be an ass about it May 24 01:21:16 having a static reference to it isn't something I usually do, but I was hoping I could take that short cut as to not have to refactor as much of the person's code as possible May 24 01:21:55 anyways, thanks May 24 01:22:05 herriojr: oh sorry, i didn't mean to sound snarky May 24 01:22:14 i think that code you cited has a bug May 24 01:22:34 and from a quick look at the relevant source (in ics) it looks to me like it retains the specific context pointer it was constructed against May 24 01:22:44 and i think that's the only thing that makes sense May 24 01:23:21 short version: treat a ContentResolver as being fundamentally tied to its associated Context, and off you go May 24 01:23:43 hey ctate, any ideas where i can get vectored logos of the android versions? they are not on the branding page or in the source tree that i can find May 24 01:24:24 ctate: if your going to be at I/O i'll give you a t-shirt with them on May 24 01:24:26 :D May 24 01:26:47 I'm trying to make some changes in the frameworks and need to pass extra information to topAppWindowChanged in StatusBar, I tracked back to focusChangedLw where I have the information I need and passed it down but I never hit that function, anyone know what I'm doing wrong? May 24 01:48:54 alright, put on a little Daft Punk and i'm ready to code... May 24 01:58:40 someone here who works with intellij idea for android development and might share his/her experiences? May 24 02:20:38 ctate do you know what would cause audio manager May 24 02:21:16 what would cause playback to randomly cut off? May 24 02:21:23 it doesn't fully play the sound May 24 02:22:44 ctate isnt still around May 24 02:22:47 it's past his bedtime May 24 02:23:51 is it possible to edit an APK file without an .odex file? May 24 02:24:31 what? May 24 02:24:34 you dont edit an apk May 24 02:25:56 nevermind May 24 02:26:00 i had the deodex concept wrong May 24 02:33:16 I've found a really fun game I want to port to android, it's a rogue-like-ish game built in c++ using ncurses for its rendering engine... Is anyone aware of something roughly analogious to ncurses in java? May 24 02:33:25 specifically java on android May 24 02:34:07 I've found a few links where people have recompiled the ncurses c library for android, but I don't think that'll be so useful for my app May 24 02:34:21 I wonder if there's any good resource on Android C++ via JNI and localization May 24 02:35:05 Or maybe one does not currently exist... May 24 02:38:56 When you connect to a url via android, what is it's header? May 24 02:39:19 I tried to compare it to "Java" and it returned false. May 24 02:40:48 "connect to a url" ? May 24 02:41:24 compare it to Java? May 24 02:41:47 T-Dub|DlolPics You can put whatever header's you want in your URLConnection May 24 02:42:03 im looking at a page that is reporting a stable cm7 for thunderbolt has been released by slayher but the download links it gives are bogus. is this just a bs blog? May 24 02:42:06 I thought there was a default one, I see that in the docs now. Awesome. May 24 02:42:23 The last API I coded for had Java for default. I wasn't sure if that was a universal thing. May 24 02:42:33 Guys hwo to find ouy quickly the lowest version of Adk on which my app would run? May 24 02:42:52 I440r try asking in #cyanagen May 24 02:42:55 adk? May 24 02:42:57 ! May 24 02:43:02 didnt even know that existed lol May 24 02:43:04 or maybe it's #cyanogen-mod? May 24 02:43:05 theres more than one adk? May 24 02:43:06 good thunking :P May 24 02:43:06 or maybe it's #cyanogenmod? May 24 02:43:15 one of those May 24 02:43:43 t0mless, dead channel May 24 02:44:08 I meant version of andriod May 24 02:44:47 it's #cyanogenmod May 24 02:45:42 Trudko, thats a dumb question May 24 02:45:47 it will run on whatever you want it to May 24 02:45:57 whatever version you designed it to run on May 24 02:47:36 canadiancow, that is dumb answer. I already created program and I bet I could change the andriod verion for which it could run. I did not design it in front for certainversion I just created it with whatever I needed May 24 02:47:39 T-Dub|DlolPics, are you talking about user-agent string? May 24 02:47:47 Yes May 24 02:48:00 if (strpos($Agent, "Java") === false) { May 24 02:48:06 That's php, but that is how I'm using it. May 24 02:49:11 http://android-developers.blogspot.com/2010/12/android-browser-user-agent-issues.html May 24 02:49:13 Boom. May 24 02:51:11 You're amazing t0mless. I'm pretty sure that is exactly what I needed. Thanks. May 24 02:51:33 all I did was search for user agent on d.android.com May 24 02:51:41 bear in mind that user-agent is almost never reliable May 24 02:51:52 Why not bln0ry? May 24 02:52:04 I just double check in my php file that it contains Android and I'm good. May 24 02:52:12 because any client can set their user agent to whatever they want May 24 02:52:14 Just another form of security on my highscores updater. May 24 02:52:21 It's within my app though. May 24 02:52:23 i could hit your web server 100 times on my PC in firefox and if you based on my user-agent, i could make you think i just hit you with 100 different browsers May 24 02:52:41 in fact, i could hit your web server and make you think my firefox was a Samsung Galaxy II based on user-agent May 24 02:52:56 I'm using it for my php file that is used to update a Mysql file. May 24 02:53:02 curl -H "User-Agent: ... Android ..." ... May 24 02:53:07 sweet May 24 02:53:22 It isn't to display anything, just to help prevent against injection. May 24 02:53:22 I'm going to post a request to your php script to delete everything May 24 02:53:28 right May 24 02:53:30 canadiancow, did I make my point clearer? May 24 02:53:36 with that in mind, i can put injection strings -in- my user-agent string ;) May 24 02:53:43 curl -H "User-Agent: my fake Android phone" -x POST -d "my fake data to game" May 24 02:53:49 I strip my posts May 24 02:54:01 webscarab is good at that kind of thing too :) May 24 02:54:13 mysql_real_escape_string May 24 02:54:27 And I have athentication keys required. May 24 02:54:34 php is the most terrible web language ever May 24 02:54:45 Still possible to inject, but gotta know what you are doing. May 24 02:55:00 yep, by passing double encoded nulls May 24 02:55:24 oops, did i post that out loud? May 24 02:55:39 You would also need to know the url though :P. May 24 02:56:04 aka, use the debugger May 24 02:56:06 and monitor the thread May 24 02:57:19 http://stackoverflow.com/questions/2353666/php-is-mysql-real-escape-string-sufficient-for-cleaning-user-input May 24 02:57:42 mind showing me how to use the debugger to do that? I tried myself and I don't see anywere, where it shows my url or evenn connecting to the internet. May 24 02:58:27 Guys once i created app how can I find ouy fast what is lowest verion of Andriod it can run on? May 24 02:58:31 its extremely simple to sniff on the device's data, especially if its using wifi May 24 02:58:40 I am tryig to get minimum requirements.. May 24 02:58:46 T-Dub|DlolPics, here's an easy way... http://code.google.com/p/android-os-monitor/ May 24 02:59:23 oh yeah, that works too... i could just connect via wifi and check my router log May 24 02:59:37 sometimes the simple ways work very well... **** ENDING LOGGING AT Thu May 24 02:59:58 2012