**** BEGIN LOGGING AT Mon Mar 05 02:59:58 2012 Mar 05 03:00:03 page = activity Mar 05 03:00:31 is there an example of actionbar sherlock in maven? Mar 05 03:00:45 jeric, it has samples Mar 05 03:00:47 they all use maven Mar 05 03:01:06 thanks Mar 05 03:01:13 JakeWharton: thanks but how do i add an activity then? i don't see it on the add button Mar 05 03:01:24 o_O Mar 05 03:01:24 lol Mar 05 03:01:38 let me mention total noob Mar 05 03:01:46 http://developer.android.com/guide/topics/fundamentals/activities.html Mar 05 03:01:49 each activity is its own Java file Mar 05 03:01:51 then read the rest of the topics Mar 05 03:04:22 out of beer :( Mar 05 03:04:51 * JakeWharton looks in fridge Mar 05 03:04:56 6-pack of Mad Elf Mar 05 03:05:02 win Mar 05 03:07:37 from harrisburg i see.. didn't they have a nuclear issue a while back? :0 Mar 05 03:08:16 JakeWharton on native ICS has same behavior Mar 05 03:08:25 so, native bug? Mar 05 03:08:28 Thinking so Mar 05 03:08:34 that the actionView isn't being removed Mar 05 03:08:37 when a new one is set Mar 05 03:08:40 but my example behaves correctly when using native stuff Mar 05 03:08:47 I know -_- Mar 05 03:08:49 I don't get it Mar 05 03:09:31 if I keep a handle to the menuItem and then do invalidateMenu() followed by setActionView in the onClick of the button Mar 05 03:09:37 we get the overlapping spinning behavior Mar 05 03:09:50 if I do setActionView followed by invalidate() Mar 05 03:09:54 nothing happens Mar 05 03:09:58 doesn't even start spinning once Mar 05 03:10:04 Explain that. Mar 05 03:10:17 well Mar 05 03:10:23 setActionView will change the view to the ImageView Mar 05 03:10:29 then invalidate will recreate it Mar 05 03:10:38 hmm Mar 05 03:10:42 but you're saying it should create both Mar 05 03:10:50 since that's what we're essentially doing Mar 05 03:10:55 Yup Mar 05 03:10:58 is there a way to get the 2.3 source downloaded and not the 4.0.3 Mar 05 03:11:03 did you see my messages earlier? Mar 05 03:11:07 no Mar 05 03:11:12 ssfdre38, you can repo clone with a tag Mar 05 03:11:17 you need a better nick alert script Mar 05 03:11:25 i just didn't bother scrolling Mar 05 03:11:30 half drunk Mar 05 03:11:38 I have one that puts all nick alert messages into a new window Mar 05 03:11:41 ssfdre38, you can also checkout a tag if you've already cloned Mar 05 03:11:53 but anyway Mar 05 03:11:54 don't think xchat supports that Mar 05 03:11:54 what is the latest 2.3 version and no i didnt yet Mar 05 03:12:16 using the emu with show display changes Mar 05 03:12:20 has some weird ass behavior Mar 05 03:12:28 the action view is still being animated when it's hidden Mar 05 03:12:39 only on non-native ICS or lower Mar 05 03:12:41 ssfdre38, android-2.3.7_r1 Mar 05 03:13:03 weird ass-behavior?!? Mar 05 03:13:08 and on the ICS with ABSNative implementation... it invlidates the whole fucking window Mar 05 03:13:22 but on like GB it only invalidates the action menu item Mar 05 03:13:39 turn on show display changes in your emu Mar 05 03:13:42 and watch it Mar 05 03:13:53 compare GB to ICS with ABS and ICS native Mar 05 03:14:10 ICS with SherlockFragmentActivity that is Mar 05 03:14:38 it's like the actionView gets saved as the MenuItem's root view Mar 05 03:15:48 * t0mless needs to learn how to use gh-pages to make some sweet ass project webpages before sending off his resume Mar 05 03:16:27 quit reminding me i need to do documentation Mar 05 03:16:45 get me a job in the bay and I'll write your docs Mar 05 03:16:58 you good? Mar 05 03:17:03 Always. Mar 05 03:17:09 haha Mar 05 03:17:29 * Leeds pictures t0mless in a wetsuit with a waterproof laptop Mar 05 03:17:48 with a jetpack Mar 05 03:17:59 Ya know, just in case. Mar 05 03:18:41 good point Mar 05 03:18:53 i think i'm just going to update the existing site Mar 05 03:18:56 rather than write a new one Mar 05 03:19:10 but for now I'm going to watch an ep of Ninja Warrier Mar 05 03:19:39 You might be watching too much Ninja Warrior if you're spelling it like that Mar 05 03:24:07 I think it's more that I'm drinking too much beer Mar 05 03:24:09 is that like takeshi's castle? Mar 05 03:24:41 is the android speech input stuff suitable for longer conversations? Mar 05 03:26:07 ie a 10-20 minute phone conversation Mar 05 03:28:20 ie Mar 05 03:28:24 i hate internet explorer Mar 05 03:29:35 everybody does Mar 05 03:29:37 what does id est have to do with internet explorer? Mar 05 03:30:15 even its mother hates it Mar 05 03:32:20 I'm having some troubles with a mediaplayer and an if statement. doesn't anyone think they might be able to help? Mar 05 03:32:38 http://stackoverflow.com/questions/9551878/android-if-mediaplayer-isplaying-freezes-app Mar 05 03:32:47 "[21:26:05] ie a 10-20 minute" i saw "ie" & was filled with rage Mar 05 03:32:58 Jug6ernaut, .... Mar 05 03:33:06 that doesnt even sense make Mar 05 03:33:11 ie Mar 05 03:33:16 ie = internet explorer Mar 05 03:33:25 internet explorer just die Mar 05 03:33:33 amen Mar 05 03:33:59 must die* same difference tho Mar 05 03:34:33 ie == id est Mar 05 03:35:04 https://www.google.com/search?rlz=1C1CHFX_enUS446US446&ix=sea&sourceid=chrome&ie=UTF-8&q=ie Mar 05 03:35:08 google disagrees Mar 05 03:35:54 JakeWharton when I make a bunch of the ActionView images and let them go for a while Mar 05 03:36:01 they eventually sync up Mar 05 03:36:24 you can still tell there are multiple of them, but they're less skewed Mar 05 03:36:30 finally finished my calc essay Mar 05 03:36:38 stupid ap test prep Mar 05 03:36:50 EddieRingle, help t0mless un-suck your bug Mar 05 03:37:04 JakeWharton: where does it stand? Mar 05 03:37:12 It broke. Mar 05 03:37:23 And makes no sense. Mar 05 03:38:01 has it at least been isolated to a specific file? Mar 05 03:38:14 Eeeeeeeeeh Mar 05 03:38:18 no Mar 05 03:38:22 we have a small reproducible test case Mar 05 03:38:22 Thought so for a bit Mar 05 03:38:26 but not anymore Mar 05 03:39:48 it works with native though Mar 05 03:39:56 if i change to Activity and fix menu imports it works fine Mar 05 03:41:42 change to SherlockFragmentActivity and fix menu imports and it shows the bug Mar 05 03:44:57 is there a way to get the Menu from the action bar methods? Mar 05 03:45:02 or Activity methods Mar 05 03:45:10 no Mar 05 03:45:17 you have to cache via onCreate Mar 05 03:45:22 onCreateOptionsMenu, that is Mar 05 03:45:24 that's what I thought Mar 05 03:50:10 t0mless, think i found it! Mar 05 03:50:13 maybe Mar 05 03:50:15 :O Mar 05 03:50:17 Explain Mar 05 03:50:20 hold Mar 05 03:50:22 i have to verify Mar 05 03:50:25 EXPLAIN YOURSELF Mar 05 03:50:30 Sorry Mar 05 03:51:41 is it something with setting the mActionView in MenuItemImpl? Mar 05 03:51:55 simpler Mar 05 03:52:10 MABYE Mar 05 03:52:15 also, MAYBE Mar 05 03:55:47 the MAYBE is turning into a MAYBeeeeee.... into a Maybeeeee..... Mar 05 03:56:00 maybeee..... may.... well....... Mar 05 03:56:41 also this Pandora cover image of Tool's 10,000 Days album does not do it justice Mar 05 03:57:06 <3 Tool Mar 05 03:57:19 the artwork in that album is amazing Mar 05 03:57:27 10k days isn't my fav though Mar 05 03:57:32 still quite good Mar 05 03:57:40 JakeWharton: found it? Mar 05 03:57:45 maybe Mar 05 03:57:47 Laturalus is my fav album I think Mar 05 03:57:51 yeah same Mar 05 03:57:58 which also had some nice artwork Mar 05 03:58:03 but nothing like 10k days Mar 05 03:58:11 JakeWharton: hurry up man, I was this -> <- close to getting the test case back up and running Mar 05 03:58:28 my test case? Mar 05 03:58:31 it's like, 4 lines of code! Mar 05 03:58:40 like 8 Mar 05 03:58:50 i have a mapactivity and from there i want to tweet my location, i use a webview to login to tweeter but the webview never seems to show up... the user never gets to login and the app explodes Mar 05 03:58:50 and you have to get the drawable and layout! Mar 05 03:59:12 he already has that Mar 05 03:59:18 JakeWharton: yes, but I'm getting tired and threw it into hubroid again instead Mar 05 03:59:23 it was his patch to the original app that found this problem Mar 05 03:59:37 konam why don't you use the twitterAPIs instead? Mar 05 03:59:49 there's some java library that will let you do all that shite Mar 05 04:02:21 t0mless, when using SherlockActivity, on the invalidation that does not show an action item onCreateOptionsMenu returns false Mar 05 04:02:27 in SherlockFragmentActivity it returns true Mar 05 04:02:33 for the same case Mar 05 04:02:57 Interesting Mar 05 04:03:04 on ICS and GB? Mar 05 04:03:11 or on GB does it return true always? Mar 05 04:03:15 on ICS Mar 05 04:11:16 the silense is off-putting Mar 05 04:11:25 silence, too Mar 05 04:12:33 SILENSE! Mar 05 04:18:42 t0mless i know, i'm using one of those. twitter4j Mar 05 04:18:51 then why a webview? Mar 05 04:19:39 also, why not just use an intent to fire the Twitter app? Mar 05 04:19:45 let that app do the work for you Mar 05 04:20:03 t0mless the turorial i read used a webview but i'm not aware of how to do it directly through the twitter4j api Mar 05 04:20:27 t0mless i know, but it's part of a course i'm taking and the tweet has to be made kind of in-app Mar 05 04:20:56 t0mless, i got it Mar 05 04:21:03 don't know the exact cause Mar 05 04:21:07 but i know what the issue is Mar 05 04:21:15 it's exactly as i described Mar 05 04:21:31 03-04 23:18:18.679: E/dalvikvm(323): Unable to open stack trace file '/data/anr/traces.txt': Permission denied Mar 05 04:21:35 ^ how do i fix that Mar 05 04:21:42 when SherlockFragmentActivity dispatches to the superclass implementation of onCreatePanel its getting 'true' as a result despite the menu being empty Mar 05 04:22:08 I tried Mar 05 04:22:22 but it didn't do anything. Mar 05 04:22:22 that's an internal dir Mar 05 04:22:30 /data/anr/traces.txt would not be external... Mar 05 04:22:35 stackoverflow lied to me -.- Mar 05 04:23:03 the internets lie?! Mar 05 04:23:07 t0mless, if you comment out "result |= super.onCreatePanelMenu(...)" it works Mar 05 04:23:09 in SFA Mar 05 04:23:14 hrm Mar 05 04:23:33 so FragmentActivity is returning true on ICS Mar 05 04:23:35 I know that the FragmentActivity will return true always if t0mless, so would i just change External to internal? Mar 05 04:24:17 I don't think that's what I would do because i tried it and it didn't work. Mar 05 04:24:55 there is no write_internal_storage permission Mar 05 04:25:03 well darn Mar 05 04:25:08 why would anyone give an app explicit permission to fuck with the system files? Mar 05 04:25:34 idk lol Mar 05 04:25:37 Teh, you should write to a directory that you have permission to write in. Unix permissions. Which ismtomsay, generally, a directory owned by your app. Why are you trying to writr into that one? Mar 05 04:26:55 not to mention writing weird things to the anr log might cause issues Mar 05 04:28:05 apparently my vpn doesnt like being connected for 34 hours Mar 05 04:28:13 :( Mar 05 04:28:26 Im making a form that it goes from page 1 to page 2 so on so forth and im having it save strings. demonview Mar 05 04:28:47 ... why are you trying to save them to the ANR stacktraces? Mar 05 04:29:43 TehRealBeast, http://developer.android.com/guide/topics/data/data-storage.html#filesInternal Mar 05 04:30:05 ty demonview :) Mar 05 04:30:10 ugh Mar 05 04:30:17 why isn't the support lib a GitHub repo Mar 05 04:30:22 so convenient to browse there Mar 05 04:30:29 I know right Mar 05 04:30:36 I have it open Mar 05 04:30:41 want me to pastebin it? Mar 05 04:31:02 nah i have AOSP cloned Mar 05 04:31:14 figured you did Mar 05 04:34:02 how is SherlockActivity returning false? Mar 05 04:34:04 that seems wrong Mar 05 04:34:20 because you return false from the activity Mar 05 04:34:28 do I? Mar 05 04:34:41 well, from the TestActivity Mar 05 04:34:56 ah yeah Mar 05 04:34:58 or whatever's it's called Mar 05 04:36:32 so it's a FragmentActivity bug? Mar 05 04:36:33 I'm debuggering now Mar 05 04:36:51 no Mar 05 04:36:53 it can't be Mar 05 04:36:56 JakeWharton: compare to ICS source? Mar 05 04:38:03 JakeWharton: should it be returning true or false? Mar 05 04:38:08 in what case Mar 05 04:38:30 switching back to the fragment with the rotating item Mar 05 04:38:49 should be true Mar 05 04:38:56 the problem is the one before that Mar 05 04:39:05 the case where the menu item is not present Mar 05 04:39:38 we return false from the activity but SherlockFragmentActivity is returning true Mar 05 04:40:03 it's returning false at the Android Activity level Mar 05 04:40:28 wait Mar 05 04:40:30 no it's not Mar 05 04:40:37 I'm returning false because there's no menu Mar 05 04:40:49 but when we're using SherlockFragmentActivity it ends up returning true Mar 05 04:43:25 -.- there is nothing saving in my app anymore and im still getting stack trace error Mar 05 04:43:27 boolean result = onCreateOptionsMenu(menu); Mar 05 04:43:29 in SFA's onCreatePanel: 'boolean result = onCreateOptionsMenu(menu);' is returning false from our activity when the menu isn't present Mar 05 04:43:35 which is correct Mar 05 04:43:59 then, we dispatch to the super's native onCreatePanelMenu with the mule and OR its result to ours Mar 05 04:44:00 oh right, because our activity overrides it Mar 05 04:44:07 and doesn't call to the super Mar 05 04:44:09 it returns true Mar 05 04:44:24 so that method right beneath that in SFA never gets called Mar 05 04:44:32 correct Mar 05 04:44:41 that's the default, as per native Activity Mar 05 04:45:50 which is a little... weird isn't it? Mar 05 04:46:14 but anyway Mar 05 04:46:45 let's look at FragmentManager and see what it's default it Mar 05 04:47:26 it must be false Mar 05 04:47:55 hmmm Mar 05 04:48:14 why are we OR-ing that, the fragments don't return a boolean Mar 05 04:48:29 I think that's the error Mar 05 04:48:35 t0mless, I'm not saving any data anymore I took out all the saveData and im still getting a stack trace Mar 05 04:48:43 SFA shouldn't be OR-ing the super Mar 05 04:49:02 why? Mar 05 04:49:09 because it's only dispatching to fragments Mar 05 04:49:12 and we don't care about their results Mar 05 04:49:25 We don't? Mar 05 04:49:33 nope Mar 05 04:49:35 they don't return a boolean Mar 05 04:49:48 we're getting true from above where we override the native onCreateOptionsMenu and return true Mar 05 04:49:51 where the fuck is FragmentManagerImpl.java in the support lib Mar 05 04:49:54 but it's a final override Mar 05 04:49:59 it's in FragmentManager.java Mar 05 04:50:03 below the interface Mar 05 04:50:08 ahh Mar 05 04:50:19 that's not annoying at all Mar 05 04:50:38 TehRealBeast, treat this like a fresh problem and ask a question about your stack trace. Mar 05 04:51:15 guys Mar 05 04:51:22 i coded a facebook app for android Mar 05 04:51:29 it matches the official one 100% Mar 05 04:51:31 https://m.facebook.com/ Mar 05 04:51:34 :) Mar 05 04:51:46 JakeWharton even if the Fragments don't return a boolean, the dispatchCreateOptionsMenu does Mar 05 04:51:47 t0mless, that fixes it on ICS... Mar 05 04:52:39 which returns what Mar 05 04:52:47 if any of the fragments have setHasOptionsMenu(true)? Mar 05 04:53:20 JakeWharton: you stopped setting result from the super in onCreatePanelMenu and it works? Mar 05 04:53:21 interesting... the fragment manager calls all the fragments onCreateOptionsMenus if it has that setHasOptionsMenu to true and puts all the created menus into an arraylist Mar 05 04:53:39 and then calls all the fragments that had menus onDestroyOptionsMenu right after Mar 05 04:53:41 demonview, I'm trying to run my application there are no errors in any of the files. When I run it with the emulator I get "The application has stopped unexpectedly" When I look at the debug console I get E/dalvikvm(387): Unable to open stack trace file '/data/anr/traces.txt': Permission denied Mar 05 04:53:51 then stashes the created menus into a variable Mar 05 04:53:56 then returns true if it has at least one menu Mar 05 04:54:10 ugh Mar 05 04:54:21 ass backwardsness Mar 05 04:55:04 oh wait Mar 05 04:55:08 missed an if check in there Mar 05 04:55:23 Teh, so, stop trying to write to that file. Mar 05 04:55:57 it only calls onDestroyOptionsMenu if the menu is in the old cache of menus but not in the new cache Mar 05 04:56:02 so that makes more sense Mar 05 04:59:04 demon Mar 05 04:59:07 im not writing to any file Mar 05 04:59:08 at all Mar 05 04:59:35 and you're getting no other errors in the log? Mar 05 05:00:50 JakeWharton but with no fragments it should return false Mar 05 05:00:59 unless you're on which is why we see the problem Mar 05 05:01:30 Teh, then you're either misreading the log, or running a stale version of your app. Mar 05 05:01:45 well... unless the super class is true Mar 05 05:02:15 what's the default return value for Activity.onCreatePanelMenu(featureId,menu) ? Mar 05 05:04:13 hmm Mar 05 05:04:39 not sure why it's calling up to super there Mar 05 05:04:55 demonview, what do you mean stale version? Mar 05 05:05:21 t0mless, that's for context menu Mar 05 05:05:24 boolean show = onCreateOptionsMenu(menu); in Acivity on ICS would still call our version of onCreateOptionsMenu() yes? Mar 05 05:05:27 options menu will never call to super Mar 05 05:05:36 i have ICS fixed Mar 05 05:05:41 pre-HC seems to be the problem Mar 05 05:05:42 a version built from your code when it still attempted to write to that file. Mar 05 05:05:45 because it always returns true Mar 05 05:05:49 boolean show = super.onCreatePanelMenu(featureId, menu); <-- support lib Mar 05 05:06:03 oh Mar 05 05:06:07 yeah that'll call onCreateOptionsMenu Mar 05 05:06:18 i fixed that to return whatever we return from our onCreateOptionsMenu Mar 05 05:06:28 not sure WHY it's doing that though to be onest Mar 05 05:06:36 honest* Mar 05 05:06:45 because then it continues to just do what the super class does Mar 05 05:07:06 because its compat fragments Mar 05 05:07:08 not native fragments Mar 05 05:07:38 so that is just to appease the native fragments that might also be around? Mar 05 05:08:12 whats your guys favorite porn? Mar 05 05:08:12 yeah Mar 05 05:08:17 which there won't be Mar 05 05:08:26 That's what I was thinking Mar 05 05:08:29 i cant decide if mine is backdoor slut 9 or schindler's list.. Mar 05 05:08:36 why would you also use native fragments if using support fragments Mar 05 05:08:42 you wouldn't Mar 05 05:08:47 i need access to that show variable Mar 05 05:08:51 fffffuuuuuuuu Mar 05 05:09:28 my hatred for the lack of an event bus to dispatch shit along grows Mar 05 05:09:37 the support-lib is the perfect place to implement one Mar 05 05:09:43 along with Jiggly Bean Mar 05 05:10:01 Android 5.0: Jigglypuff! Mar 05 05:10:11 Google announces purchase of Pokemon rights. Mar 05 05:11:20 so it's returning true always for that variable because you only get one shot to create a menu pre=HC Mar 05 05:11:22 right? Mar 05 05:11:27 except with ABS Mar 05 05:11:36 yes Mar 05 05:11:50 fuck Mar 05 05:11:51 so it returns true just in case you don't create one initially Mar 05 05:11:54 but want to later Mar 05 05:12:18 and if you create one in a fragment it won't get attached to that menu object? Mar 05 05:13:36 well... it passes the menu on to the fragment Mar 05 05:14:07 so if less than HC check if the menu is empty? Mar 05 05:14:21 instead of relying on their result Mar 05 05:14:35 i guess Mar 05 05:14:52 but it was even broken when you stopped relying on the super result, yes? Mar 05 05:15:09 for non ICS Mar 05 05:16:29 yes Mar 05 05:16:41 hrmmmmm Mar 05 05:16:44 and why is that Mar 05 05:16:48 hrm Mar 05 05:17:04 because i hate EddieRingle Mar 05 05:17:10 <3 Mar 05 05:17:10 that's why Mar 05 05:17:15 soooo Mar 05 05:17:18 murder EddieRingle Mar 05 05:17:20 fixt! Mar 05 05:17:25 he can't get to me Mar 05 05:17:27 I'm safe Mar 05 05:17:31 EddieRingle, yet... Mar 05 05:17:36 thats what osama said Mar 05 05:17:40 JakeWharton, in SF already huh, how's your apt Mar 05 05:17:41 haha Mar 05 05:17:50 pfn, it's good Mar 05 05:17:51 small Mar 05 05:17:54 but all set up finally Mar 05 05:18:01 and with 100% more internets than when I showed up Mar 05 05:18:18 so then I take it you have your own place and not with roommates Mar 05 05:18:25 JakeWharton: can I bunk there when I visit this summer? :P Mar 05 05:18:41 Just said murder.... Mar 05 05:18:56 all the more reason for him to agree Mar 05 05:19:00 You're like the clueless people in horror flicks Mar 05 05:20:25 JakeWharton, what kinda connection you got there? Mar 05 05:20:37 JakeWharton, vzw lte is pretty damn good, just about good enough not to need a wired line ;-) Mar 05 05:20:47 true but I have AT&T Mar 05 05:20:50 pity Mar 05 05:20:55 cheap Mar 05 05:20:56 Galaxy Nexus Mar 05 05:21:00 FTW Mar 05 05:21:05 the real one Mar 05 05:21:10 pity the GN on ATT doesn't have LTE Mar 05 05:21:11 :p Mar 05 05:21:13 real, phe Mar 05 05:21:14 h Mar 05 05:21:24 no but it has a SIM card Mar 05 05:21:27 and no contract Mar 05 05:21:27 Some of us are on Sprint 3G, speaking of pity :P Mar 05 05:21:32 so does the vzw GN Mar 05 05:21:41 the vzw sim doesn't count Mar 05 05:21:48 it's still a sim card Mar 05 05:21:48 :p Mar 05 05:21:53 it's a fake sim card Mar 05 05:21:56 :p Mar 05 05:22:07 Could someone help me with making my phone beep for 3 seconds at 440 Hz? :) Mar 05 05:22:13 t0mless, if you take it out, the phone don't work :p Mar 05 05:22:34 t0mless, if you take the sim card and put it in an lte mifi, the mifi works :p Mar 05 05:23:01 It turns out to be surprisingly non-trivial, to the point of having to generate your own PCM stream with bitmasks and shifts and whatnot Mar 05 05:23:53 create a 440Hz media file and use MediaPlayer? Mar 05 05:24:35 pfn, it's 20/5 i think Mar 05 05:25:09 t0mless: goddammit, I wish I asked you that 6 hours ago :) it's probably a much better solution Mar 05 05:26:01 Currently, I'm able to generate a PCM file just fine, but when I play it with AudioTrack in a separate thread, it cuts short Mar 05 05:26:04 demonview, do you think you could Teamview me? Mar 05 05:26:21 I really have tried all the debugging methods and it isn't pulling from any old place. Mar 05 05:26:32 It's all doing it correctly just failing to launch. Mar 05 05:26:48 I have a thread that does heavy-duty sensor data gathering, and when that's active, my tone lasts for maybe 0.3 seconds instead of 3... I'm quite perplexed Mar 05 05:27:16 Sorry, no. Mar 05 05:27:51 TehRealBeast if it's on the emulator just go into /data/anr/ and look at the permissions Mar 05 05:29:27 I would uninstall the app, build an APK, walk it to the device/emulator, start a fresh logcat, run it, get the error as it happens, and then trace it back to the offending code. Mar 05 05:31:09 TehRealBeast might also want to just delete the AVD and create a new one Mar 05 05:31:23 since you're complaining about an error that refers to something you say you're not trying to do anymore, you should be very carefull about the process. Mar 05 05:31:50 im loading it to my device to see if it works Mar 05 05:32:13 and infomercials just came on Mar 05 05:32:15 thats a sign its bedtime Mar 05 05:32:29 t0mless, still broken on pre-HC Mar 05 05:32:31 wtf Mar 05 05:32:38 :( Mar 05 05:33:08 what did you change, just remove the or in the SherlockFragmentActivity Mar 05 05:33:10 ? Mar 05 05:33:23 canadian, how can you sleep now? Don't you know that girls are going wild? Mar 05 05:34:15 on preHC I now OR menu.hasVisibleItems() Mar 05 05:34:41 which returns false Mar 05 05:34:43 correctly Mar 05 05:34:58 is that in the ActionBarSherlock callback? Mar 05 05:35:16 demonview: lol Mar 05 05:35:20 noooo... Mar 05 05:35:22 there it is Mar 05 05:35:26 that's the line i'm looking for Mar 05 05:37:16 whats a good tv series i havent seen Mar 05 05:37:26 downton abbey Mar 05 05:37:33 Better off ted Mar 05 05:37:40 Kitchen Confidential! Mar 05 05:41:47 JakeWharton that doesn't fix this btw Mar 05 05:41:48 http://pastebin.com/uVFZNQn0 Mar 05 05:41:57 which I think is really the underlying issue Mar 05 05:42:18 is there any way to control bluetooth on the native level? Mar 05 05:42:26 through ndk or other ways Mar 05 05:43:02 not sure when anyone would activate an action view like that... but it still is tweaked Mar 05 05:43:30 but it's also tweaked on ICS Natively so that's a framework thing Mar 05 05:45:20 alright Mar 05 05:45:25 it's fixed on 3.0+ with what I just pushed Mar 05 05:45:30 still broken on pre-HC Mar 05 05:47:59 hirarchyviewer does not like that I have my phone plugged in, tablet connected via wifi and an emu running Mar 05 05:48:39 fixed it :) Mar 05 05:48:39 woo Mar 05 05:49:06 what should i use for a big paragraph of text? Mar 05 05:49:20 i assume a textView Mar 05 05:49:23 lots of letters Mar 05 05:49:26 but what parameter hsould i use Mar 05 05:49:34 Isplorm whatever it is Mar 05 05:49:39 lorem ipsum Mar 05 05:49:43 that one Mar 05 05:49:51 webview Mar 05 05:49:55 ew Mar 05 05:50:11 double ew Mar 05 05:50:13 dandaman what do you mean what parameter? Mar 05 05:50:18 just put the text into the textview Mar 05 05:50:19 done Mar 05 05:50:31 ok Mar 05 05:50:38 why the hell won't hirarchyviewer attach to the emulator Mar 05 05:50:41 i was just wondering if there was something i should keep in mind Mar 05 05:50:42 thank you Mar 05 05:50:46 webview = html tags Mar 05 05:50:57 textview can interperete html tags Mar 05 05:51:03 nu uh Mar 05 05:51:05 some of them anyway Mar 05 05:51:10 unsupported in previous versions Mar 05 05:51:11 webviews Mar 05 05:51:18 almost as bad as TabActivities Mar 05 05:51:29 Tabbed Webviews? Mar 05 05:51:32 tv.setText(Html.fromHtml(...)); Mar 05 05:51:34 * JakeWharton dies Mar 05 05:51:53 anyone have experience with bluetooth apps, is cross-device compatibility a pain? Mar 05 05:52:01 09:51:28 E/hierarchyviewer: Unable to get view server version from device emulator-5554 Mar 05 05:52:04 epic fail Mar 05 05:52:04 demonview tried that Mar 05 05:52:45 Ok guys, apparently I have no idea how to properly play a sound file in a background thread Mar 05 05:53:54 t0mless, I tried your idea of MediaPlayer, but as long as I have my data collection thread running, my audio cuts off after a second or so. What gives? Mar 05 05:54:15 * t0mless shrugs Mar 05 05:54:46 JakeWharton is kramdown pretty much the same syntax as the github markdown? Mar 05 05:54:57 mostly Mar 05 05:55:09 there's no fun stuff like syntax highlighted code blocks Mar 05 05:55:14 or cross-repository links Mar 05 05:55:30 does gh-pages support javascript? Mar 05 05:55:38 ... Mar 05 05:55:45 take that as a no Mar 05 05:55:50 javascript is client-side Mar 05 05:56:06 hrm... then I might be able to put syntax highlighting Mar 05 05:56:20 use google code prettifier Mar 05 05:56:20 but I also don't need it Mar 05 05:56:32 t0mless, see: http://nineoldandroids.com Mar 05 05:57:04 that is pretty Mar 05 05:58:11 i tried html tags with textview Mar 05 05:58:16 and no, it doesn't work Mar 05 05:58:20 your argument is invalid Mar 05 05:58:21 :P Mar 05 05:58:32 yeah but you use webview Mar 05 05:58:35 so you automatically lose Mar 05 05:59:15 https://gist.github.com/1976945 Mar 05 05:59:26 can anyone help explain why line 10 is causing that error? Mar 05 06:00:09 because there's no TextView in your view hierarchy with an ID of fullItemViewText Mar 05 06:00:46 but there is :( Mar 05 06:01:09 wait Mar 05 06:01:16 you're right, forgot to put dialog.findviewbyid Mar 05 06:01:21 woops Mar 05 06:01:32 you should use showDialog() Mar 05 06:01:35 JakeWharton, okay i admit it Mar 05 06:01:38 you have an onclick inside of an onclick Mar 05 06:01:45 INCEPTION Mar 05 06:01:47 consider refactoring Mar 05 06:01:53 ugh, the internet people are always right Mar 05 06:02:02 have any of you guys tried zxing without using intents? Mar 05 06:02:07 what's the difference between showDialog and show? Mar 05 06:02:32 JakeWharton: so, problem fixed? Mar 05 06:02:35 no Mar 05 06:02:41 fixed on 3.0+ Mar 05 06:02:47 showDialog() is a method in Activity that will let you not have inceptionOnClicks Mar 05 06:02:51 not sure why it's still broken on pre-3.0 Mar 05 06:02:56 but it is Mar 05 06:03:24 what's inceptionOnClicks? Mar 05 06:03:29 haha Mar 05 06:03:43 onclicks inside onclicks inside onclicks inside onclicks inside onclicks... Mar 05 06:04:20 oh, i see Mar 05 06:04:26 ty Mar 05 06:08:40 t0mless, there's still a disconnect in behavior on ICS Mar 05 06:10:20 for your test case? Mar 05 06:10:23 yean Mar 05 06:10:25 if you always return true Mar 05 06:10:30 in the create Mar 05 06:10:34 it still works natively Mar 05 06:10:44 but not with SFA Mar 05 06:10:48 correct Mar 05 06:10:52 fuck Mar 05 06:10:57 I cannot explain it Mar 05 06:11:41 not sure if it has something to do with that test case I pasted Mar 05 06:12:01 works with SherlockActivity though Mar 05 06:12:05 when always returning true Mar 05 06:12:22 Which again makes me point at the support lib Mar 05 06:12:57 this is why I modified it Mar 05 06:12:59 because it's easier Mar 05 06:13:01 and it fucking works Mar 05 06:13:06 but everyone gets all up in arms Mar 05 06:13:39 I wonder how many of these action view animations I can post before I get a stack over flow Mar 05 06:18:07 * jasta yawns Mar 05 06:18:13 too much engineering of late. my brain is melting... Mar 05 06:20:54 there isn't a parameter i can set for a textView to have the last 3 characters as elipses when it hits the maxLines parameter Mar 05 06:21:08 PS: sorry i'm asking so many questions, there is just too much to know :( Mar 05 06:21:16 its impossible to stop learning Mar 05 06:21:30 android:ellipsize or something of that sort Mar 05 06:22:08 "If set, causes words that are longer than the view is wide to be ellipsized instead of broken in the middle." .. not sure if applicable to maxLines Mar 05 06:22:52 ty Mar 05 06:23:00 readme: its good enough Mar 05 06:23:17 oh wait Mar 05 06:23:21 no its not Mar 05 06:24:42 This is kind of fancy, and admittedly not something i'd think of doing but http://developer.android.com/reference/android/text/method/TransformationMethod.html Mar 05 06:24:57 you can write one of those and set it to your textview with setTransformationMethod Mar 05 06:25:06 then you can perform display logic on the text Mar 05 06:25:30 personally, i'd just make a MyTextHelper class and do the work in there, but this is probably a better design. Mar 05 06:25:57 all you have to do is count newlines and truncate Mar 05 06:27:38 what's the unit dp?? Mar 05 06:27:44 decipixels? Mar 05 06:28:05 read the "Supporting multiple screens" tutorial on d.android.com Mar 05 06:28:10 it is essential reading, don't skip it Mar 05 06:32:15 dp is short for dip which stands for device-independent pixels Mar 05 06:33:03 I thought it was density-independent Mar 05 06:33:31 it is density independent Mar 05 06:33:55 https://www.google.com/search?client=ubuntu&channel=fs&q=density+independent+pixels&ie=utf-8&oe=utf-8 Mar 05 06:34:21 that's what i said Mar 05 06:34:23 you misread Mar 05 06:34:26 hey guys Mar 05 06:34:27 oh sorry Mar 05 06:34:34 must be all the lack of beer I've had Mar 05 06:35:03 you have any photoshop/gimp tutorials for making icons/android layout designs? Mar 05 06:37:34 romain nurik does Mar 05 06:39:22 sorry, roman* Mar 05 06:39:50 if I want to define my own namespace for view attributes, do I need my own DTD? Mar 05 06:40:10 http://www.youtube.com/watch?v=XtyzOo7nJrQ chups Mar 05 06:40:47 nice Mar 05 06:40:48 thanks man Mar 05 06:54:22 t0mless, what if I add a state to MenuMule and dispatch everything through prepare rather than create.... Mar 05 06:54:51 just a thought Mar 05 06:54:58 Except that already happens Mar 05 06:55:13 oh wait Mar 05 06:55:21 confusing createPanel with createOptions Mar 05 06:55:36 though you were saying to use panel instead of options Mar 05 06:55:46 thought* Mar 05 06:55:57 and I was like ??? Mar 05 06:56:48 i'm not sure that would help the invalidate issues Mar 05 06:57:13 ellipsize appears to be broken, anyone ever use it? Mar 05 06:57:24 dandaman: ellipsize is not broken Mar 05 06:57:41 did you read the documentation blurb I pasted on what ellipsize does? Mar 05 06:57:43 should work as long as you have maxLines set Mar 05 06:58:32 https://gist.github.com/1977142 Mar 05 06:59:35 bah Mar 05 06:59:37 i'm done for the night Mar 05 06:59:58 dandaman: you only have one line of text in your "android:text" attribute. Mar 05 07:00:46 http://pastie.org/3524022 Mar 05 07:01:19 (Defuera) Guys, where i can find a designer for my project, any ideas? Cause mine is a lazy jerk... Mar 05 07:02:08 perhaps not broken, but definitely poorly documented Mar 05 07:02:35 Nah, it's documented fine Mar 05 07:02:44 Ellipsize had no value in my code snippet, only maxLines did. Mar 05 07:03:00 so to get your ellipsis, my original statement stands. you need custom code. Mar 05 07:03:08 (which I am currently writing) Mar 05 07:03:49 readme: ty, trying that Mar 05 07:04:04 dandaman: you should really thank t0mless, he told you about maxlines a while ago Mar 05 07:04:30 i have multiple lines Mar 05 07:04:35 still problems Mar 05 07:04:46 i thin k ihave layout issues where the textviews are going off the screen Mar 05 07:08:32 Hm... how can I check that inflating a layout worked? my dialog is coming up rather "blank" Mar 05 07:11:20 dandaman: we aren't psychic. You'll have to show us a proper test case. Mar 05 07:11:55 i'll paste my xml file Mar 05 07:12:15 http://pastie.org/3524071 Mar 05 07:12:25 also, i'm pretty sure half of you are psychic Mar 05 07:19:29 android:shrinkColumns Mar 05 07:19:31 got it Mar 05 07:19:34 ! Mar 05 07:22:28 dandaman: sorry, I wasn't paying attention Mar 05 07:22:44 I'm coding a novelty textview :D Mar 05 07:23:19 novelty? Mar 05 07:23:22 wut? Mar 05 07:24:51 dandaman: shrinkColumns isn't even documented. How did you find it? Mar 05 07:25:21 co-worker :D Mar 05 07:25:37 did you test it? Mar 05 07:25:43 the resource I go to when #android-dev doesnt work :) Mar 05 07:25:46 yep, works just find Mar 05 07:25:51 cool Mar 05 07:27:29 shrinkColumns, stretchColumns and collapseColumns are awesomes Mar 05 07:28:39 t0mless: can TextView make all my text 1337? Mar 05 07:29:52 sure Mar 05 07:30:01 android:inputType="number" Mar 05 07:30:18 nah Mar 05 07:30:24 I'm working on an inputType="leet" Mar 05 07:30:24 ;) Mar 05 07:30:33 actually just display logic Mar 05 07:30:36 I fear for the world Mar 05 07:30:37 but inputType.. that's a good idea Mar 05 07:30:40 pheer Mar 05 07:43:53 hello people Mar 05 07:44:46 he's a psicho! Run! Mar 05 07:46:07 I use the AlarmManager to periodically trigger an Intent which is received by a broadcast receiver which does a little work . If I manually change the time/date in the Android OS I can see that the intent is triggered as expected Mar 05 07:46:52 but if I leave the phone on the table just like that and wait until the time period elapse , the Intent is not triggered .... any idea what could be the problem ? Mar 05 07:47:25 this is how I use the AlarmManager: myAlarmMgr.setRepeating(AlarmManager.RTC_WAKEUP, System.currentTimeMillis()+TIME_ONE_SECOND, TIME_ONE_HOUR, pendingIntent); Mar 05 07:48:32 Is there a minimum time difference there needs to be between now and alarm time? Mar 05 07:49:01 don't Mar 05 07:49:20 it's kind of sad that my Android phone can access my network files faster than an i7 8gb Mac book Mar 05 07:54:16 Napalm: Android should already run on the pi. Do they not provide that as standard? Mar 05 08:08:16 hi Mar 05 08:10:49 TextView tv = new TextView(this); tv.setText("Hello, Android"); setContentView(tv); Mar 05 08:11:19 Description Resource Path Location Type TextView cannot be resolved to a type Korean.java /KoreanArray/src/com/fabrizio/korean line 19 Java Problem Description Resource Path Location Type TextView cannot be resolved to a type Korean.java /KoreanArray/src/com/fabrizio/korean line 19 Java Problem why it doesnt work? Mar 05 08:11:28 tykimi83: pastebin please.... Mar 05 08:11:42 ho Mar 05 08:11:49 how can i do that? Mar 05 08:11:58 pastebin.com Mar 05 08:12:04 ah ok Mar 05 08:12:06 tnx Mar 05 08:13:06 http://pastebin.com/RC4aJ7bi Mar 05 08:13:36 the TextView gives me problem and I don't know why Mar 05 08:14:00 I did it like a tutorial in a website but Mar 05 08:14:07 which site? Mar 05 08:14:33 o Mar 05 08:14:34 http://developer.android.com/resources/tutorials/hello-world.html try this one :) Mar 05 08:16:47 uhm Mar 05 08:17:08 tnx i get another problem now but ill try myself first Mar 05 08:30:21 t0mless: https://github.com/tom-dignan/EnhancedViews 1337 Mar 05 08:31:01 is that you readme? Mar 05 08:31:06 yeah Mar 05 08:31:10 power of the toms! Mar 05 08:31:17 tom! Mar 05 08:32:32 just fixed docs, weren't showing examples Mar 05 08:32:59 Am i sort of dumb or is there no way to lock screen orientation on adobe reader for android? Mar 05 08:33:20 my tablet has a screen lock Mar 05 08:33:31 I think they added an orientation lock on HC+ too Mar 05 08:33:40 I'm using samsung note Mar 05 08:33:42 in the little menu down there, if you didn't have a hardware one Mar 05 08:34:21 menu button only has About Adobe Reader and Adobe CreatePDF, and theres no obvious lock button on the screen like on kindle Mar 05 08:37:43 Well thats on way to do it Mar 05 08:37:53 Disable automatic screen rotation in phone settings Mar 05 08:38:55 yea, I have a hardware switch that does that on my tablet Mar 05 08:40:24 http://ompldr.org/vY3hzeQ, what does this means, are there some one good at ddms? Mar 05 08:41:13 In a custom made ImageView, is there any way to reposition the buttons of a ZoomButtonsController other than bottom center? Mar 05 08:43:35 what do you mean by custom imageview? a zoomcontrol cam ne Ã¥psotionated like anything else http://stackoverflow.com/questions/7294598/set-android-zoombuttonscontroller-alignment Mar 05 08:45:53 kannibal: That's a very similar issue to mine. The only difference being that I'm adding the controller through code. Mar 05 08:47:18 allright, you have already added the ZoomButtonsController and positionated it with code and then change the rule by code? Mar 05 08:48:15 or does the         layoutParams.addRule(RelativeLayout.ALIGN_PARENT_TOP); layoutParams.addRule(RelativeLayout.CENTER_HORIZONTAL); Mar 05 08:48:15 just don't work? Mar 05 08:48:25 what would be a good design pattern for adding a 'waiting' element to my dialog? the validation requires a network request, so it can take a while or even fail. would sticking the progressbar on it somewhere do? Mar 05 08:50:23 kannibal: I actually posted a question about this on SO: http://stackoverflow.com/questions/9557798/how-do-i-position-zoombuttonscontroller-in-custom-imageview Mar 05 08:56:24 hii Mar 05 08:56:25 in C# one can do this: LoginUser(string name, string password, out User user) .. the 'out' .. how can that be represented in a REST service on the client? Mar 05 08:57:58 hii Mar 05 08:58:00 in C# one can do this: LoginUser(string name, string password, out User user) .. the 'out' .. how can that be represented in a REST service on the client? Mar 05 09:10:38 tykimi83: did you import Textview? Mar 05 09:11:17 bestKoderEver, you just return the User object. error codes are translated into HTTP error messages normally Mar 05 09:22:14 good morning everybody :) anyone online to help? :) i got a problem with a cursor in my SQLDB Mar 05 09:22:45 test Mar 05 09:22:48 QaDeS so your saying i should rewrite the C#/.net method, so it returns just a user object? since its not possible to get two return parameters in JSON? Mar 05 09:25:11 ah ok...you want to connect to a C# REST service? take a look at the HTTP traffic then to find out how the data flows Mar 05 09:27:17 QaDeS hmm..oki.. thankz Mar 05 09:27:18 not two retu what? Mar 05 09:27:42 in C# ..one can have several return statements from a method.. Mar 05 09:27:56 which now causes me trouble.. Mar 05 09:27:59 :-/ Mar 05 09:28:23 yet you think JSON can only hold one return? Mar 05 09:28:30 er, return value Mar 05 09:28:33 well, it will probably be translated to a return object containing a field per return value, or an array Mar 05 09:29:14 Hi. I am running android on an ARM full-system simulator. I want to use an img file as a sdcard in my simulated system, but adding "mount -o loop /system/sdcard.img /mnt/sdcard" to the init.rc doesnt work. Mar 05 09:29:18 Right... Mar 05 09:29:39 the http stream is the key. REST is REST, and whatever comes back shouldn't be hard to parse...json or xml probably Mar 05 09:29:40 Can someone tell me the right way to use an img file as an sdcard? Mar 05 09:29:47 (not on the emulator) Mar 05 09:34:30 Leeds you cant call on REST method (.net/C#) which contains an 'out ref' as parameter.. Mar 05 09:34:53 bestKoderEver: I don't give a flying fsck what you can and can't do in C# - that's Microsoft's problem, not #android-dev Mar 05 09:35:05 Leeds shut t f u then Mar 05 09:35:10 :D Mar 05 09:43:31 hi, i'd like to achieve something like that: http://bit.ly/xX3kJy (on the right). i'm able to use ActionMode but i can't figure out how to highlight the selected item. this is the code i use for starting the action mode: http://pastebin.com/QTuEicfq Any advice? (if needed i can post more code) Mar 05 10:04:31 Hmm so did Roboguice make Guice a lot cooler than regular Guice? Seems normal Guice adds a lot of boilerplate. Mar 05 10:33:17 Hi. I am running android on an ARM full-system simulator. I want to use an img file as a sdcard in my simulated system, but adding "mount -o loop /system/sdcard.img /mnt/sdcard" to the init.rc doesnt work. Mar 05 11:07:41 How can I make a list, that has edits in it? Mar 05 11:12:47 o Mar 05 11:27:04 hey guys im trying to pass an object to an activity using i.putExtra, but its saying i need to pass a boolean Mar 05 11:28:48 Gaz`: there's no String, Object signature, this is because Intent can't handle complex objects (which I'm assuming you're trying to insert) Mar 05 11:29:29 Gaz`: You can send Serializable or Parcelable extras. Rework the object class you're sending. Mar 05 11:29:44 aha Mar 05 11:29:47 ok cheers Mar 05 11:29:59 finally started reading a book on android :) Mar 05 11:30:10 so my stupid questions will get less and less thanks folks Mar 05 11:38:40 Morning All... I have been looking at the ApiDemos MediaPlayerDemo_Video - I have been trying to get the mediaPlayer to stream from http an .mp4 video file and play it while its downloading it. But I cant get that to work. The mediaplayer seems to wait until the movie has been downloaded Mar 05 11:39:17 I have changed the code to do mediaPlayer.Asyncprepare Mar 05 11:42:10 ouch Mar 05 11:42:16 way more complex than it shoudl be htis Mar 05 11:42:18 to simply pass an object Mar 05 11:42:29 til now i was using Statics but i wanted to do it right this time Mar 05 11:43:29 its not easy. the easiest way is to save it on the applicationcontext Mar 05 11:43:59 you got an example? Mar 05 11:44:26 yeh its weird eh we are so used to throwing objects around then this Mar 05 11:45:41 Gaz: check this post http://stackoverflow.com/a/708317 Mar 05 11:45:52 Well, I think that it isn't wo weird after all Mar 05 11:46:15 I've got a service which can have up to two clients - one an Activity displaying live data from the service and one a started service logging the data. Should I use a Binder or a Handler? Mar 05 11:46:21 Because when you are putting the extra, ofcourse the other activity needs to reconstruct the object Mar 05 11:46:25 thx kannibal Mar 05 11:46:40 Gaz: no problem :) Mar 05 11:46:47 and that is where serializable comes in picture Mar 05 11:47:29 vavirta im getting confused at some point tho mostly public Message createFromParcel(Parcel in) { Mar 05 11:47:38 im doing parcelable as its supposed to be faster or something Mar 05 11:52:06 :( Mar 05 11:53:53 why do you need serializing to be faster? Mar 05 11:54:32 Hi There! Mar 05 11:55:09 ohi there Mar 05 11:55:23 hey guys, can anyone please tell me what's the rgb hex for ICS Holo Light background color? Thanks! Mar 05 11:58:06 data transfer through the USB port is not possible without some third-party chip like FTDI? Mar 05 11:58:52 dr1337: #ffffff ?? Mar 05 11:59:02 it dosn't seem to be the case Mar 05 11:59:07 it's darker than white Mar 05 11:59:35 http://stackoverflow.com/questions/9392596/android-theme-holo-light-on-galaxy-nexus-has-grey-background-when-emulator-does Mar 05 11:59:52 look at the screenshot-links Mar 05 12:00:30 #f8f8f8 Mar 05 12:00:42 The answer seems to have a comment with an approximated hex value as well. Mar 05 12:00:53 nice Mar 05 12:00:55 thanks for the link Mar 05 12:04:05 vavirta i dont need speed at all actually just looking for an elegant soltion that doesnt blow my mind Mar 05 12:05:51 well then you can use serializable for sure Mar 05 12:06:00 what is the type of the object you need to put to the extras? Mar 05 12:06:17 its an object of my own "Message" contains some strings and a bitmap Mar 05 12:06:40 hi guys! Do you know any way to count the UDP packets for an API level of 8? I know that there's getUidUdpRxPackets() for the TrafficStats class, but it's for API level 12 and higher... Mar 05 12:07:06 ok, then you need to implement serializable interface to your object Mar 05 12:07:16 I ment to your Message-class Mar 05 12:07:21 http://java.sun.com/developer/technicalArticles/Programming/serialization/ Mar 05 12:07:39 thx dude Mar 05 12:07:43 I would appreciate any help... Mar 05 12:07:47 there is also few words about why the serialization was invented Mar 05 12:10:47 parcelable Mar 05 12:11:28 you're passing an object between components? yeah, use parcelable Mar 05 12:12:10 oh Mar 05 12:12:11 lol Mar 05 12:12:22 triede both and both give me weird errors, serialize gives java.lang.RuntimeException: Parcelable encountered IOException writing serializable object (name = org.developerworks.android.Message) Mar 05 12:12:43 yeah this is lolable Mar 05 12:14:37 don't use serializable on android, it's slow as hell Mar 05 12:15:50 hmm Mar 05 12:15:56 damn confusing Mar 05 12:17:27 Gaz`: You have a broken serialization. Probably some of the object fields are not serializable. Mar 05 12:18:36 do i have to declare the variables in some special way to make them work? Mar 05 12:18:43 some are String, Date, Bitmap etc Mar 05 12:19:00 Gaz`: Bitmap is a whole lot of mess. Mar 05 12:19:07 damn right Mar 05 12:19:27 its easy if u cheat and use Statics Mar 05 12:19:33 but it feels wrong Mar 05 12:20:12 Gaz`: Well... Within the boundaries of your application it's not _THAT_ bad. Well at least not until you need to have more than one instance of an Activity. Mar 05 12:20:26 yes there wont really be more than once instance Mar 05 12:20:40 but i thought this time id do it "right" Mar 05 12:20:47 each time im put off by ridiculousness Mar 05 12:20:51 Then create a sub-class of the Application, and do the heavy-lifting there. Mar 05 12:21:19 Consider the Application instance (it's one instance) as an Application State. Mar 05 12:22:03 In the AndroidManifest.xml declare the Mar 05 12:22:24 And then: ((YourApplicationClassName)Activity.getApplication()).getWhatever() Mar 05 12:23:06 Activity is the pointer to the activity, not the class name... Like : ((YourApplicationClassName)this).getCurrentBitmap() Mar 05 12:23:07 hmm Mar 05 12:23:11 ok thanks ill look into that Mar 05 12:23:16 why the hell they made it so hard i dont know Mar 05 12:24:00 Gaz`: Consider the possibility, that you;re going to call an Intent, that gets processed by an Activity from a different application. Then what? Mar 05 12:24:17 Gaz`: Cross-Application Class-Loading is a murder! Mar 05 12:24:45 Gaz`: I know it's hard, but the alternative would wreak havok on the OS itself. Mar 05 12:25:25 I've hit this time and again, B*tching around until I get the idea, that what I'm doing is wrong in the first place :) Mar 05 12:25:59 yep Mar 05 12:26:01 The Intent should contain minimum data, and the processing activity should obtain the necessary information otherwise. Mar 05 12:26:09 its just hard to really know what to do, everything i try crashes Mar 05 12:27:04 basically at a loss here Mar 05 12:28:09 i think ill give up and cheat Mar 05 12:28:12 using Statics Mar 05 12:28:14 Gaz`: Try to limit the data you send to IDs only. Mar 05 12:28:15 :-/ Mar 05 12:28:26 IDs? like strings? Mar 05 12:28:29 Let the receiving activity load whatever it needs to work. Mar 05 12:28:59 absolutely insane that u cant just pass an object Mar 05 12:29:01 Gaz`: Well.. I am pretty sure you can replace the Bitmap with some text/id of the resource the bitmap holds. Mar 05 12:29:09 its been grabbed from the web tho Mar 05 12:29:16 Gaz`: Not insane, just not that obvious... Mar 05 12:29:28 Gaz`: Url to the grabbed image instead? Mar 05 12:29:38 yeh but i need it first, i need to display it on a list Mar 05 12:29:40 And grab the image from the called Activity? Mar 05 12:29:42 then again when u go in to view item Mar 05 12:30:02 Lachezar: Sorry for interrupting/joining the conversation. Are you suggesting that the image resource be saved somewhere (on SD-card) and just pass a reference to the called activity through the Intent? Mar 05 12:30:04 Gaz`: Even easier: grab to a local file, and send the URI to the local file... Mar 05 12:30:41 drlaban: Yes, I suggest that. Keeping humongous data in memory is not a good thing in an OS, that has limited resources to start with Mar 05 12:30:57 drlaban: Probably not the SD card, but the «cache» Mar 05 12:31:19 damn it man Mar 05 12:31:22 so frustrated Mar 05 12:31:36 coding android is the opposite of rapid prototyping Mar 05 12:31:56 Gaz`: I feel your pain, been there, done that! Stored to the cache and came out victorious! Mar 05 12:32:03 hehe Mar 05 12:32:10 what do i google to find out how to do that Mar 05 12:32:37 Gaz`: http://developer.android.com/guide/topics/data/data-storage.html Mar 05 12:32:54 jesus wept Mar 05 12:33:02 why did they throw out the window passing objects properly Mar 05 12:33:13 http://developer.android.com/guide/topics/data/data-storage.html#InternalCache Mar 05 12:33:29 Lachezar: Agreed. Sounds like something I would have done myself in one way or another. Didn't know about the cache though. Looks interesting. Mar 05 12:34:51 Lachezar: I would use Internal Storage instead (eg. file opened with Context.MODE_PRIVATE flag) Mar 05 12:35:21 well i will go with statics for now Mar 05 12:35:33 Lachezar: otherwise you have to consider, in the receiving activity, that the file could not exists anymore Mar 05 12:35:38 once i have a simpler object with just strings i can do it "right" ie write hundreds of lines of nonsense i shouldnt have to Mar 05 12:35:38 hello Mar 05 12:36:13 Hey guys Mar 05 12:37:13 dada: You're generally right... However I generally send the original URI, and I have a common naming convention, so that sub-activities can check if there is a cached version of the original resource, and reload if it's not there. Mar 05 12:37:30 dada: works VERY well. Mar 05 12:37:50 I'm wondering how can I add buttons to my canvas directly from the code and not from the xml. the reason for that is that in certain point I'm using setContentView which runs over the XML, so I want the button to be implemented in the view which is called in setContentView... Mar 05 12:38:05 Lachezar: yup, if the sub-activity can reload, yes. but in Gaz` case I think he prefers to be sure that the file is actually on disk Mar 05 12:38:09 so does CurrentNewsStoryHolder.myMessage = msg; :-x Mar 05 12:38:22 sasson: You probably need a layout, and a canvas inside the layout, so you can add buttons to the layout over the canvas. Mar 05 12:38:27 i really dont care its just to display some text and an image!! Mar 05 12:38:43 this is the sort of thing that makes me fleetingly glance at iphone coding Mar 05 12:39:23 Lachezar, where do I set the layout? it won't be overran by the setContentView? Mar 05 12:41:41 Gaz`: I think that when you say "Why the make passing the object so hard" that you are thinking that putExtra is just simple function call? Mar 05 12:41:59 Then it would be as easy as normal just to pass the address of that object Mar 05 12:42:07 Well... You should call the setContentView() with the ID of the layout (an XML file). Mar 05 12:42:26 (Like you do when you call some function with an object as a argument) Mar 05 12:42:55 vavirta yes that is what im thinking, if there was one simple example out there i could learn Mar 05 12:43:01 however when you are putting extras, android needs to construct your object again when calling getExtras Mar 05 12:43:11 and in that place, it might be not in the memory anymore Mar 05 12:43:18 so simple just pass the object's address isn't enough Mar 05 12:43:36 that's why it is made like that, or atleast I think it is, not sure though :) Mar 05 12:44:10 either way i personally think its lame Mar 05 12:46:22 hi! say does it depend on the apps if they use AGPS or not? Mar 05 12:48:19 Gaz`: ok :) Mar 05 12:48:21 Flexmaen: no Mar 05 12:48:46 Flexmaen: appls only get to choose between coarse and fine location, i.e. 3g/wifi and gps Mar 05 12:53:18 Hello! I query from process ¹1 for bitmap. Provider wich i query stored in porcess ¹2. How i can return bitmap to process ¹1? I try to use parcel but receive exception ( http://pastebin.com/x0xuzdd6 ). Mar 05 12:55:03 Yauhen90: See how Camera does that: in reverse. Mar 05 12:55:28 Yauhen90: Activity¹ creates a world-writable file in its folder. Mar 05 12:55:47 Yauhen90: Activity¹ sends the URI to Activity² Mar 05 12:56:08 Yauhen90: Activity² writes the bitmap in the supplied URI and returns. Mar 05 12:56:30 Yauhen90: Activity¹ knows where to look for the image, since it created it in the first place. Mar 05 12:56:51 Yauhen90: I've done that for an activity that captures user's signature on a touch-screen. Mar 05 12:58:50 Ge0rG: because i have a problem with a very bad GPS behaviour of Android. Now I changed the GPS-Server with FasterGPS and now it seems to be faster Mar 05 12:59:03 there are no way to send bitmap in cursor& Mar 05 12:59:10 ? Mar 05 13:00:27 plus i have the feeling that some appes are much slower when trying to get the signal Mar 05 13:00:52 i wonder why there are apps like "agps injector" then. or are they for older versions of android? Mar 05 13:01:53 What is the idea way for creating a menu like this : http://3.bp.blogspot.com/_GTM_W5mVPTU/S-rlV2NLU0I/AAAAAAAAAD0/fQUmdTS6cdA/s1600/home01.png Mar 05 13:02:01 Yauhen90: Bitmaps are heavy objects, and should be carefully managed. Also Intents are limited in size... Mar 05 13:12:24 I have been tryying to build an android OS for my ARM 11 board,my basic generic image build sucessfully , but during the boot up time at the console it shows only this error or warning "init: untracked pid 918 exited " "request_suspend_state: wakeup (0->0) at 260155583507 (2011-04-12 10:40:42.865187348 UTC) " Mar 05 13:13:17 how do i solve this error , is there any debugging mode in android where i can check which script is making it do this , Mar 05 13:14:21 erwt: it's less android specific, more kernel specific Mar 05 13:14:45 napster: it is Dashboard UI pattern. You can find a lot of information related to implementation of this Pattern like Dasboard View Mar 05 13:15:12 Yauhen90: ok, thank you Mar 05 13:15:23 http://pastebin.com/xKqcyWiW Mar 05 13:15:51 p_l, how is it kernel specific Mar 05 13:16:25 erwt: "request_suspend_state" looks to me like error message from the kernel Mar 05 13:16:27 p_l, any good reasons i have posted the entire log Mar 05 13:17:02 is it that the lernel is not patched properly Mar 05 13:18:14 no idea. I'd probably start with checking the whole thing and possibly adding tracing and similar to have a better view of what is happening Mar 05 13:19:30 p_l, thanks at least some great souls did answer my query Mar 05 13:19:33 to me it looks like either a bug in your kernel behaviour, or a bug in power management interface from userland Mar 05 13:20:04 hmm Mar 05 13:20:46 erwt: I suspect most people here wouldn't know much in this area. Theoretically, #android was for this purpose, but failed, and there's too much mess with "modding" that everyone gets thrown to #android-root, which is a no man's land Mar 05 13:21:28 there are, however, a couple of mailing lists (i.e. google groups) which may be more appropriate Mar 05 13:21:42 p_l, in #android people never answered Mar 05 13:22:08 erwt: because #android got overrun by plain users ;) Mar 05 13:22:42 I am literaly stuck at this point Mar 05 13:22:44 yeah #android is not for this :P Mar 05 13:22:55 I've tried to start #android-platform which might be slightly more appropriate but that's basically dead Mar 05 13:23:04 I'd strongly recommend posting on either stackoverflow or the google groups Mar 05 13:25:45 erwt: theoretically, you could find some people in cyanogenmod-related channels with necessary expertise, as it has probably the highest number of real developers (instead of just "fiddle with binaries and packages") Mar 05 13:26:51 p_l, any names Mar 05 13:27:02 erwt: unfortunately not Mar 05 13:27:19 p_l, kk Mar 05 13:42:37 Is it possible to launch Android app from web-page in Android browser (perhaps, with ) and then get some data back from that app? Client wants web-app for Android with NFC and Barcode reader integration. Mar 05 13:44:27 shal3r: ZXing Barcode Generator has Web Page Scanning abilities. http://code.google.com/p/zxing/wiki/ScanningFromWebPages Mar 05 13:45:01 shal3r: I have no clue as to how to do a similar thing with NFC. Probably a similar Android applicaiton needs to be developed. Mar 05 13:46:24 Lachezar, this barcode scanner returns user to callback URL. But what's about getting data back in browser without reloading web-page? Is that even possible? Mar 05 13:46:53 shal3r: there probably needs to be some sort of javascript callback Mar 05 13:46:55 shal3r: I don't see how. Something should process that... Mar 05 13:47:11 I don't know whether the stock browsers will support propagating the onActivityResult content Mar 05 13:48:08 shal3r: Technically ZXing opens a new page after completing the scanning process. Mar 05 13:48:27 oh, huh Mar 05 13:48:28 shal3r: What that page does is in your hands. Mar 05 13:48:30 that's a good way :> Mar 05 13:48:42 that could be a solution, but direct callback to javascript would be much better Mar 05 13:49:00 shal3r: sorry, AFAIK there is no way to do that. Mar 05 13:49:18 Lachezar, there are many web-forms where some fields can be filled by NFC or hardware barcode readers Mar 05 13:49:19 shal3r: apart from building your own browser that is ;) Mar 05 13:50:39 shal3r: Well... Maybe there could be an IME that would use the NFC to «read» user input into a text field... Far-fetched though. Mar 05 13:51:09 shal3r: With bar-codes it's even harder, because the user must see the camera input so that s/he can point the camera at the bar-code. Mar 05 13:52:59 is it possible to remove some hmtl tags from hmtl that u want to put on a textview? its working quite well using Html.fromHtml but there are too many
that at times leave a gap and images are showing up as aquare boxes with the alt text showing etc Mar 05 13:53:20 wow typing went mad there :) *html Mar 05 13:54:26 Lachezar, what about displaying web-app in using some kind of webview element (i'm sorry, but not very familiar with Android development, i'm just a web-dev guy) and calling javascript functions from that web-element or altering DOM? Mar 05 13:56:07 shal3r: I am not sure I read your question correctly. Mar 05 13:57:42 shal3r: AFAIK there is no way to invoke an intent from a web page in the standard browser. Mar 05 13:58:04 Lachezar, can i alter DOM or call Javascript functions in WebView? Mar 05 13:58:13 shal3r: Instead applications register handlers for specific URLs, allowing the browser to open an application INSTEAD OF opening a page. Mar 05 13:58:34 shal3r: WebView is a (pretty) full-fledged browser. Mar 05 13:58:52 shal3r: But you need to build an application to use it. Mar 05 13:59:27 shal3r: With that said, WebView allows the developer to register NEW JavaScript objects, that can access other applications. Mar 05 13:59:42 shal3r: I got the impression you do not have an Android application. Mar 05 14:02:18 Lachezar, no, i don't. I just need to offer a solution for this problem Mar 05 14:05:22 Lachezar, thanks for consulting. I will just tell them that they need to create simple web-browser with ability to fill some fields with data from barcode reader or NFC. Mar 05 14:07:19 shal3r: For bar-code it's not that uncommon to have a button next to the field, that invokes the ZXing bar-code scanner. Check the Google Product Search page (with an Android phone). I suspect a similar application could be found for NFC. Mar 05 14:07:32 shal3r: That's how to avoid creating a native applicaiton. Mar 05 14:16:17 Lachezar, i just creating simple example with web-page using ZXING and it's working great Mar 05 14:17:21 shal3r: Verry happy for you. Mar 05 14:21:11 shal3r: how does that work? Mar 05 14:21:40 Zider, http://code.google.com/p/zxing/wiki/ScanningFromWebPages Mar 05 14:21:59 thanks Mar 05 14:34:38 Hi! Is powertop available for Android in some repositories, for instance for AMD Fusion processor ? Mar 05 14:37:07 djszapi: http://projects.androidfan.ru/projects/powertop/files Mar 05 14:56:29 Does anyone have any pointers as to how to create an list view that the user can edit stuff in. Mar 05 14:57:08 Lachezar: does it work on AMD Fusion processor, too as it is supposed to work on Intel processors ? Mar 05 14:57:22 As far as I have been told, Intel did not really any efforts to get it work on other processors than Intel. Mar 05 14:57:23 djszapi: I have no idea to be honest. Mar 05 14:57:41 *nods*, but hey thanks :) Mar 05 14:57:46 I will investigate, how good it is. Mar 05 15:00:35 anyone good with regexes Mar 05 15:00:42 trying to remove just Gaz`: Well... Regexp does not work well with XML... Mar 05 15:01:12 never user regex for markup languages Mar 05 15:01:16 hehe Mar 05 15:01:18 Yeah I'd feed it to a DOM parser Mar 05 15:01:19 and xpath it Mar 05 15:01:22 never use regex more like :) Mar 05 15:01:29 sed -e s/ anyway Mar 05 15:03:22 hello Mar 05 15:03:44 haiiii Mar 05 15:03:46 HEy Guys - how can i draw an arrow at the end of a drawLine() ? Mar 05 15:04:18 Do you guys recreate everything when you rotate your screen and the activity gets reCreated ? Mar 05 15:04:28 it sounds a bit hard to believe performance wise Mar 05 15:04:53 screen rotations are fairly rare Mar 05 15:04:58 well i found anexample for removing divs so this must be possible for imgs - Pattern tags = Pattern.compile ("
[^(
)]+"); Mar 05 15:05:25 Gaz`: Won't catch stuff like tho Mar 05 15:05:34 shroomyreader, i think there are 2 ways to deal with it, either I set everthing down - lock rotation but watch the prientation my self - and then redraw, or simply get as much main() as i can into onCreate... Mar 05 15:05:49 ah Mar 05 15:05:51 what a mare Mar 05 15:05:51 Gaz`: regex is good for filtering when you created the html and know they're not doing wacky order, spaces, etc Mar 05 15:05:52 Gaz`: I would enjoy the benefits of valid XHTML being XML, and run http://stackoverflow.com/questions/321860/how-to-remove-elements-from-xml-using-xslt-with-stylesheet-and-xsltproc on it. Mar 05 15:06:28 yeah but I still find it hard to grasp that rotation just kills it and restarts it. its a bit weird Mar 05 15:06:29 Gaz`: otherwise, do a DOM and use xpath. Or ndim's, which is the same idea differently done; depends if you want to extract or you want to kill the image tags Mar 05 15:06:56 shroomyreader: it's annoying, but that's how it goes. Mar 05 15:06:57 hii Mar 05 15:07:13 i cant go to this adress on my mobile browser..: http://tdxandroidtest.tdxweb.se/VehicleService.svc Mar 05 15:07:26 i get a 502 error.. why?? Mar 05 15:07:33 shroomyreader: it doesn't kill it, it restarts the activity, subtle difference. Most of your stuff runs in the activity so it's effectively killing you. Mar 05 15:07:40 if i go there from my laptop it works fine.. Mar 05 15:07:57 i dont get regex much but this seems to remove image tags but not the alt= that goes with em Pattern tags = Pattern.compile("]+>"); Mar 05 15:08:20 ive cleaned cache and deleted cookies.. Mar 05 15:13:48 why does the emulator with 3.2 not have any nav buttons? Mar 05 15:16:37 03-05 10:15:38.909: E/ReceiverRestrictedContext(13321): Operator : Product yakju: Model Galaxy Nexus not supported NOT_SUPPORTED Mar 05 15:16:44 thats from wallet :( Mar 05 15:17:42 :o Mar 05 15:17:47 maguro? Mar 05 15:17:51 toro? Mar 05 15:18:01 i thought they were offically supported now? Mar 05 15:18:12 Gaz`: No matter how you decide to do it, what you should keep from this conversation is that regex for HTML is generally not recommended. If you use it excessively, ZALGO WILL COME Mar 05 15:18:14 how can I use a canvas that is changing doring the run in a XML layout? Mar 05 15:18:41 See http://stackoverflow.com/a/1732454 Mar 05 15:21:26 kakazza what is recommended? Mar 05 15:22:20 See above (dragorn, ndmin). Mar 05 15:22:32 * Jug6ernaut does that Mar 05 15:23:26 Also, the stackoverflow link I posted pretty much sums it up. Mar 05 15:24:20 However, in some cases it might be "ok", as dragorn noted. If you are the one generating the HTML and you know what you're doing. Mar 05 15:24:47 HTML/XML is *so* flexible that parsing it like a string is almost definitely going to cause you misery Mar 05 15:24:53 parse it as a structured document, which it is Mar 05 15:25:47 Well said Mar 05 15:25:53 "like a string"? Mar 05 15:26:17 And by flexible, he means "people suck and write spaghetti code" Mar 05 15:26:31 have fun w/ quirks mode Mar 05 15:26:32 lol Mar 05 15:28:07 Gaz`: ]*(/>|>) Mar 05 15:29:08 Gaz`: not tested though :( Mar 05 15:30:20 you're trying to find images? Mar 05 15:30:39 image tags and what's between? Mar 05 15:33:04 jeppy: Image tags, closed in wither method... Mar 05 15:33:12 wither=either Mar 05 15:33:44 ]*?(/>|>*) Mar 05 15:34:02 IMG tags are (generally) empty. Mar 05 15:34:20 they have attributes Mar 05 15:34:45 That's why [^>]* is Mar 05 15:34:58 >* does something different. Mar 05 15:35:21 it should be .* Mar 05 15:35:58 idk i shouldn't have jumped in without looking at an tag reference Mar 05 15:36:25 jeppy: NVM. Gaz` asked a question, I was late to answer ;) Mar 05 15:38:25 what is the best practice for connecting to a service in an activity Mar 05 15:38:29 hello - i have one question: I am working inside a ContentProvider. How can I get the name of the process/the app currently using the content provider (inside the content provider itself) ??? Mar 05 15:38:32 as you bind it with a callback .. Mar 05 15:38:42 hii Mar 05 15:39:15 i get a 502 error..when using my browser .. but from the emulator it works fine..why?? Mar 05 15:39:40 my app cant GET info from the ws,, but my emulator can.. Mar 05 15:39:43 hmm! Mar 05 15:42:14 bestKoderEver: Can you access the website through the Android browser on your phone/device? Mar 05 15:42:24 err Mar 05 15:42:26 sorry, misread Mar 05 15:42:40 Hey guys how can I make my application Tablet only? Mar 05 15:42:52 bestKoderEver: Is it only this one website you can't access? Mar 05 15:43:20 drlaban no i get a 502 from my phones browser Mar 05 15:43:40 CurrentlyCurrent, use a manifest requirement for (extra) large screens Mar 05 15:43:42 drlaban but i can access it from my laptops browser.. Mar 05 15:43:46 CurrentlyCurrent: http://developer.android.com/guide/topics/manifest/supports-screens-element.html Mar 05 15:44:17 bestKoderEver: Are you connected to a Wifi-network with your device? Mar 05 15:44:21 anyone knows how I cant get the name of the calling process Mar 05 15:44:30 drlaban yes.. i can access other site as well.. no.. no wifi.. Mar 05 15:44:41 jeppy: x-large means tablet? mandatorily? Mar 05 15:45:11 wow Mar 05 15:45:18 im getting a deadlock in a method in GLSurfaceView Mar 05 15:45:27 bestKoderEver: Do you have wifi access that you could try out? Mar 05 15:45:34 hey guys i have a listactivity that shows an image and text, images are downloaded when it is created, some of them dont show until i scroll down and back up again - is there some way of programatically refreshing the list Mar 05 15:45:39 CurrentlyCurrent, no Mar 05 15:45:54 drlaban i think so, 1 sec.. Mar 05 15:45:55 use lov's link Mar 05 15:46:20 it has the min requirements for each screen size Mar 05 15:46:39 Has someone some code for drawing an arrowhead at the endpoint of a drawLine() please? Mar 05 15:46:56 kazoooka: seriously? Mar 05 15:47:02 kazoooka: can you not just figure out how to draw it yourself? Mar 05 15:47:16 I mean this is like simple algebra at worst Mar 05 15:47:37 I'm too confused by all the stuff. Mar 05 15:47:44 ..... Mar 05 15:47:46 seriously? Mar 05 15:47:49 Embarassing? :/ Mar 05 15:47:50 drawLine takes two points Mar 05 15:47:52 drlaban nopp.. no wifi in this place.. Mar 05 15:47:54 point A and point B Mar 05 15:48:39 yeah, i draw a lot of lines with drawLine- the lines have all different angles and directions Mar 05 15:48:49 .... ok Mar 05 15:48:55 so you can figure out the angle of the line you're drawing Mar 05 15:48:56 using simple maths Mar 05 15:49:22 and you can preconcat a matrix with a certain angle Mar 05 15:49:38 so figure out the angle, push a matrix with a rotate, draw the arrow, pop the matrix Mar 05 15:49:52 or do the math yourself to figure out where the points should be with the angles Mar 05 15:50:05 in any event this isn't really android specific, this is some pretty simple graphics stuff Mar 05 15:50:25 http://developer.android.com/reference/android/graphics/Canvas.html#save() Mar 05 15:50:27 yeah i guess i just have to do the maths myself... i just thought - i could find some good code which is already in use, before i implement my own stuff.... Mar 05 15:50:36 http://developer.android.com/reference/android/graphics/Canvas.html#rotate(float, float, float) Mar 05 15:50:42 http://developer.android.com/reference/android/graphics/Canvas.html#restore() Mar 05 15:51:42 I was there already but i appreciate the help lov. Mar 05 15:52:21 drlaban any more ideas?.. Mar 05 15:52:22 I'm already doing a lot of drawing stuff on canvas and stuff but im new to this... well, thx anywaY =) Mar 05 15:55:45 can any of you access this site from your phone? and who can not? (i cant, but i can from my emulator): http://tdxandroidtest.tdxweb.se/VehicleService.svc Mar 05 16:10:29 sorry but is there a way to get the name of the process that uses the contentprovider (i want my content provider to act differently depending on the app name) Mar 05 16:14:09 Pinas: why on earth do you want that? Mar 05 16:15:42 Pinas: it seems like you should have two different contentproviders which share a base class Mar 05 16:15:59 and are protected by separate permissions Mar 05 16:16:21 Pinas: do you want it to act differently based on whether your app or another app uses it? Mar 05 16:16:26 if so, what evan said Mar 05 16:16:38 if you want to just append the packagename to each result or something, you might look at the Binder class or something Mar 05 16:17:25 yeah, or just specify whatever extra data you want in a query parameter, for example Mar 05 16:20:27 well actually i am altering the Contacts Content Provider and I want to give back different contacts depending on the calling process/app Mar 05 16:27:50 Pinas: didn't really answer our question. Mar 05 16:28:16 Pinas: Do you want to respond differently whether the binding app is your app or another app? Or do you want it to be more granular and have different responses for multiple external apps? Mar 05 16:29:28 lov: sorry, I want It to act differently based on a list of identifiers (ids, packagename, ?). So e.g. wenn the Contacts App is calling everything shoud be "normal" but when so strange app wants to read data the content provider should act differently Mar 05 16:29:46 s/so/a/ Mar 05 16:29:51 use the Binder class, see if that will give you info on the calling uid Mar 05 16:30:07 there's some clear and restore methods you need to use Mar 05 16:30:09 good luck Mar 05 16:30:16 thx :) Mar 05 16:41:01 lov it seems that a content provider already contains a Binder instance - so calling Binder.getCallingPid should work fine :) Mar 05 16:41:03 Pinas: that sounds like a recipe for disaster. I really doubt you should be doing that. Mar 05 16:41:18 wait. Mar 05 16:41:25 Pinas: are you trying to modify the framework? If so, why? Mar 05 16:41:49 lov yes I modify the framework - i need to do this for my master thesis :) Mar 05 16:41:54 evancharlton: why ? Mar 05 16:42:38 Pinas: because you're probably going to break all kinds of shit in horrible, terrible ways. You're changing public APIs. Mar 05 16:43:15 evancharlton: yes but I don't change how a developer uses the api Mar 05 16:43:24 but you're changing what the results are Mar 05 16:43:28 yes Mar 05 16:43:32 developer queries the API, expects X, gets Y Mar 05 16:43:33 and thats what I want to do Mar 05 16:43:38 be very, very, very careful what you are doing here. Mar 05 16:44:06 well finding out what can go wrong/what effect this has on different apps is exactly what I want to do Mar 05 16:44:21 ... Mar 05 16:44:48 :) should be some kind of security "research" and it is really interesting to get into the framework a bit :) Mar 05 16:46:37 Pinas: I'm trying to understand your thought process here. 1) break API 2) verify that apps break. <-- that doesn't really sound like research Mar 05 16:46:51 it's totally valid Mar 05 16:46:56 hypothesis: breaking the api will break apps Mar 05 16:47:03 experiment: break the api Mar 05 16:47:06 result: apps break Mar 05 16:47:11 conclusion: SECURITY???? Mar 05 16:47:13 A++ Mar 05 16:47:19 would use posterboard again Mar 05 16:47:57 no it is about: Modifying the ContentProvider in order to prohibit that "evil" apps read the real content Mar 05 16:48:19 oh wow Mar 05 16:48:20 good app --> access to the real contacts, bad app --> read crappy data Mar 05 16:48:24 nothing i said came tot his channel Mar 05 16:48:27 solution: don't use evil apps Mar 05 16:48:47 i bet hes making a virus and he works for gosms Mar 05 16:48:47 and hes going to make the contact pictures for all other sms apps be big floppy penises Mar 05 16:49:00 i dont understand why users insist on using apps they dont trust Mar 05 16:49:21 mikedg_ no using evil apps is great - but how to guarantee this, the android permissions are not really a good security feature :) Mar 05 16:50:19 Pinas: Cyanogenmod already allows you to modify what permissions an app can have Mar 05 16:50:31 Pinas: I'm awaiting your article on PCWorld with baited breath Mar 05 16:50:39 "ANDROID IS RIDDLED WITH HACKERS AND VIRUSES" Mar 05 16:50:51 "Did you know: Android lets you install malware? IT IS TRUE! BAD JOB GOOGLE >:(" Mar 05 16:51:03 lov: yes but when I simpley remove the permissions the app might crash Mar 05 16:51:04 (300 pages of circlejerk comments) Mar 05 16:51:23 how are permissions not a good security feautre? Mar 05 16:51:32 if it accesses something you dont like, dont install it Mar 05 16:51:58 compare this to ios where an app can do anything Mar 05 16:52:00 and when you falsify the permissions the app might crash Mar 05 16:52:02 except for location and push Mar 05 16:52:08 falsify? Mar 05 16:52:16 give it a fake sdcard and pipe everything to /dev/null, woops you just lost all your data Mar 05 16:52:18 canadiancow this is something that you can say because you are propably a android developer/professional - most people don't care about the permissions or dont understand them Mar 05 16:53:28 i think that it is good of people dont have to worry if some crappy app steals their data Mar 05 16:53:35 s/of/if/ Mar 05 16:54:12 that happens on ios all the time though Mar 05 16:54:19 except there, there arent even permissions for people who DO care Mar 05 16:54:27 Pinas: how are you going to let the user know whether the app is a "good" app or a "bad" app? Mar 05 16:54:52 canadiancow: I never said that iOS is better - in fact it is worse. Mar 05 16:55:10 well my view has laways been to make uses-permission like uses-feature Mar 05 16:55:17 i require the location permission, but it's optional Mar 05 16:55:23 if you dont grant it, i cant move the map to your location Mar 05 16:55:28 you will have to pan it yourself Mar 05 16:55:43 s/require/want/ Mar 05 16:55:50 lov: I use some kind of "deny-all", initially every app has only access to crappy data and when a user "sees" this he can modify the permissions. Mar 05 16:55:55 =fuck u and your forward thinking Mar 05 16:56:48 ^^ Mar 05 16:56:49 Pinas: there's a nexus-s ROM that does that, I don't know if they ever got it going on other systems, that what you're using? Mar 05 16:57:32 Pinas: i got a better idea for your thesis Mar 05 16:57:52 "how smartphones are contributing to the college sex crisis and how to exploit that via apps and gamification" Mar 05 16:58:04 this is actually an excellent idea Mar 05 16:58:10 dragorn: there are several approaches implementing this - I trie to make mine a bit "special" even though I don't know how (not know) :) Mar 05 16:58:30 hypothesis: Smartphones allow loose women to sext me Mar 05 16:58:36 experiment: get hot women to sext me Mar 05 16:58:41 result: no one sexted me : ( Mar 05 16:58:51 from sext to sexed! Mar 05 16:58:55 conclusion: women are worthless objects Mar 05 16:59:01 lol Mar 05 16:59:38 questions raised for future research: why do women say that they want nice guys like me but only date jerks???????? Mar 05 17:00:45 *yawn* Mar 05 17:01:48 Hello. Is there any simple way to shift elements in a TableRow? Mar 05 17:01:56 Well, not simple, but built in Mar 05 17:39:32 Is it possible to put my in app purchases in sandbox mode? I'd like to test in app purchasing with out issuing refunds Mar 05 17:39:51 Hi i am pretty new to java, can i have some help. Im building a gallery wich is based on a gridView and a imageadapter wich gets all the thumbnails from the mediaStore. Here is my proplem: Whenever i scroll the thubnails either scramble or repeat. How can i solve this? Mar 05 17:40:01 pretty new to Android* Mar 05 17:40:15 Medjai: yes Mar 05 17:40:26 How do I go about doing this evancharlton? Mar 05 17:40:40 http://developer.android.com/guide/market/billing/billing_testing.html Mar 05 17:41:59 evancharlton: these are based off of reserved line items though correct? Mar 05 17:42:31 i have a license system that needs to speak to google checkout and needs to pass some things to a server and generate a license back Mar 05 17:42:47 Duke_Puke: pastebin your adapter Mar 05 17:43:16 i don't think i can do that with this Mar 05 17:45:49 synic: http://pastebin.com/iRnM13xM Mar 05 17:46:22 Can i make a Gallery circulate? So that if i scroll past the last image it gets back to the first position? And when i scroll back behind the first image, it gives me the last? Or am i better of writing my own View for that? Mar 05 17:51:10 Hmm. Easy question for someone that knows. Android on the dev site specifies screen sizes into the four categories, so i'll make 4 layouts, that's ok. The categories are: Mar 05 17:51:10 xlarge screens are at least 960dp x 720dp Mar 05 17:51:10 large screens are at least 640dp x 480dp Mar 05 17:51:10 normal screens are at least 470dp x 320dp Mar 05 17:51:10 small screens are at least 426dp x 320dp Mar 05 17:51:11 But my question is, these are "min screen size in dip", does anyone know where I could find the max? If one phone is particularly wide it could mess with my layout a bit ( empty spaces at edges ) Mar 05 17:51:26 when supporting handsets and tablets, would it be "normal" to use the old resource directory qualifiers (-small, -normal, ...) and the new ones (-w720dp, -sw600dp) combined? Mar 05 17:51:35 Ie... for large, what's the max widths? Mar 05 17:52:00 hmm, i think i found a critical issue with adt17 Mar 05 17:52:14 I have alternate layouts for landscape mode in layout-land folder. It works when I move from vertical to horizontal. But the activity does not re-orient when I tried ctrl+f11 again. What could be wrong? Mar 05 17:53:20 if the device reorients but the activity doesnt, you must be handling it yourself, probably by a manifest setting Mar 05 17:53:41 Hello everyone Mar 05 17:53:42 orientation change is a configuration change Mar 05 17:54:11 jeppy: ok, but it was working fine before I have this layout-land folder Mar 05 17:54:18 I am an android noob coming in from C++, C#, Actionscript and Java Mar 05 17:54:32 and I am trying to get my "Hello world" application to work Mar 05 17:54:46 I seem to be having some problems on my devices in Eclipse Mar 05 17:54:53 jeppy: You got a good read on it? Mar 05 17:55:04 a link will be fine Mar 05 17:55:20 http://developer.android.com is pretty good by now Mar 05 17:55:41 but, whenever I run my project Mar 05 17:55:44 napster, http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources Mar 05 17:55:54 jeppy: ok Mar 05 17:57:03 instead of the normal outcome I've saw on http://developer.android.com/resources/tutorials/hello-world.html I see a black screen with a big "A N D R O I D" on it Mar 05 17:57:12 does anyone know what I might be doing wrong? Mar 05 17:57:39 loopuleasa: You have to wait a little bit while emulator boots up Mar 05 17:58:40 oh, let me see Mar 05 17:59:19 a minute? Mar 05 17:59:38 op Mar 05 17:59:39 what android version is your emulator running? Mar 05 17:59:40 here we go Mar 05 17:59:43 2.3.3 Mar 05 18:00:30 I have a flashy "android" now Mar 05 18:00:37 still booting Mar 05 18:01:04 there we are Mar 05 18:01:12 thanks, nap Mar 05 18:02:35 np Mar 05 18:06:06 how do i have my textview change background and text color on its state change? Mar 05 18:06:15 I'm using a selector now but only 1 changes Mar 05 18:08:07 snooplsm create two selectors, one for textColor, one for background Mar 05 18:09:34 thanks iivvoo Mar 05 18:16:44 hi Mar 05 18:17:07 hi Mar 05 18:19:37 i'm having trouble defining colors and then using them in an xml layout,i define translucent_black and then try to set my buttons background to that color: Mar 05 18:19:42 android:background="@android:color/translucent_black" Mar 05 18:20:13 and i get: no resource found that matches the given name Mar 05 18:20:30 but translucent_black shows up in R.java Mar 05 18:20:44 can anyone help? Mar 05 18:21:28 ddreamer, you need to refer to it as @color/translucent_black Mar 05 18:21:36 @android:... is for built-in resources Mar 05 18:28:57 Mavrik yeah that fixed it thanks++! i copied it from some messed up tutorial Mar 05 18:30:23 ddreamer: moral of the story: android tutorials are usually garbage, and may be dangerously wrong. Mar 05 18:34:43 yes Mar 05 18:34:46 a million times yes Mar 05 18:35:51 the first book i read about android was mostly wrong Mar 05 18:51:33 http://www.h-online.com/open/news/item/MIT-opens-App-Inventor-Beta-Preview-to-the-public-1463405.html Mar 05 18:51:47 doubt anyone here uses it though :P Mar 05 18:52:16 does anyone have an article on when to create a mobile app and when to settle for a website? Mar 05 18:52:36 being in my early days of development, I seem to get into that argument a lot. Mar 05 18:52:51 its like the emacs vs vi argument of today Mar 05 18:52:57 g00s, yeah it really is. Mar 05 18:53:11 simon: it depends on a number of factors, most of which are fairly easy to recognize Mar 05 18:53:20 ie, do I need native code for performance or special features Mar 05 18:53:29 do I want this app to run on a lot of mobile platforms Mar 05 18:53:35 those kinds of questions Mar 05 18:53:55 MDijkstra, have you seen an article that iterates through those factors? Mar 05 18:54:11 not really, but isn't this just common sense? Mar 05 18:54:36 if you need to convince a boss, make a nice scoring checklist out of it Mar 05 18:55:08 MDijkstra, with my experience, a lot of common nonsense is involved when deciding if you should have an app. i.e. many want one without knowing if it's beneficial. Mar 05 18:55:33 MDijkstra, for example, the statistics on app adoption isn't obvious to beginners like me. Mar 05 18:55:47 MDijkstra, I'm sure once you have an app out there you can gather statistics, but until then... :) Mar 05 18:55:56 most of the apps I build are for prestige, nothing more Mar 05 18:56:03 yeah, exactly Mar 05 18:56:03 not very practical at all Mar 05 18:56:12 people who just want an app so they can say they have one? Mar 05 18:56:16 exactly Mar 05 18:56:31 easy money, though Mar 05 18:56:45 once you get rolling I suppose Mar 05 18:56:55 I can't seem to figure out how to know if a device supports GLUtils.texSubImage2D or not. Mar 05 18:56:56 MDijkstra: Is it worth it? I mean, is it just a little extra or would you actually call it income? Mar 05 18:57:37 fyi, unity 3d for mobile is temporarily freee Mar 05 18:58:02 well, this is just a student job for me Mar 05 18:58:20 but it's certainly better than web development, which is what most CS students do Mar 05 18:58:45 Do you develop your own apps and live of Ads, or do you work as a contractor? Mar 05 18:58:53 contractor Mar 05 18:59:14 kakazza: people make enough money off purchases Mar 05 18:59:29 i havent heard anyone making enough off of ads that already waasnt an eestablished publisher Mar 05 19:00:20 mikedg_: lol 500 internal server error >.> Mar 05 19:00:33 DigitalKiwi: yeah its gonna be down for a while Mar 05 19:00:43 Do Android people actually buy apps? Mar 05 19:00:53 do you have to buy a unity license first ? Mar 05 19:01:08 I read that Americans buy more than Europeans, who basically want things for free but are fine with ads. Mar 05 19:01:22 i hate in-app ads. Mar 05 19:01:38 DigitalKiwi: nope, you can use the regular version Mar 05 19:01:50 I'd rather have a limited functionality app, or one with ads, that I can pay to remove them (by adding the -Pro app). I like what NewsRob did that way. Mar 05 19:01:52 you get stuck with the splash screen Mar 05 19:01:52 i saw a review on a free app "this app sucks it doesn't have anything in my area, i wasted 3 minutes of my life!" one star Mar 05 19:01:56 fuck free apps :( Mar 05 19:02:12 so is google wallet going to die Mar 05 19:02:20 or are they going to open it up to other carriers/devices/countries/cards Mar 05 19:02:25 Yeah, comments on apps are shit. Mar 05 19:02:56 "App didn't have the feature I wante (which the description clearly said it didn't have)! SUCKS" Mar 05 19:03:23 users are stupid, someone spent thousands of dollars or hours of time on an app, they give it to people for free, and they bitch when it's not angry birds Mar 05 19:04:00 oh yeah, I built a reference app only meant for doctors Mar 05 19:04:09 (it requires activation) Mar 05 19:04:24 and I get all these 1-star comments with "App doesn't work", "information wants to be free" Mar 05 19:04:43 Anyone knows how to use setColumnShrinkable on an App (homescreen) widget? Mar 05 19:04:54 Because TableLayout isn't supported on app widgets Mar 05 19:05:05 yeah, great idea for someone without medical training to read this kind of stuff Mar 05 19:05:11 will make a lot of sense to them, not Mar 05 19:06:18 mikedg_: so if people get this unity3d mobile thing, is that license good for a while? Mar 05 19:07:11 DigitalKiwi: as far as i can tell, its good forever Mar 05 19:07:30 you wont get a license for 4.0, but all the minor versions you will have a license for and it wont expire Mar 05 19:07:40 hrm Mar 05 19:07:56 3.5 just came out so i imagine 4.0 wont be out for a long time Mar 05 19:08:13 does anyone know where I can ask about a apache class BasicNameValuePair? Mar 05 19:08:16 I have no idea where to ask Mar 05 19:08:21 I have a 1920x1080 image in /res/drawable, and when I load it as a resource the size I get is 2880x1620... any ideas why? Mar 05 19:09:07 O_O; Mar 05 19:09:16 because you're loadin gan mdpi image on an xhdpi device Mar 05 19:09:38 canadiancow|work: well, the image isn't in /res/drawable-mdpi, so why would it assume it is mdpi? Mar 05 19:09:47 because drawable is mdpi Mar 05 19:09:58 ah Mar 05 19:10:11 well where should it live then, to be loaded as is always Mar 05 19:10:18 -nodpi Mar 05 19:10:23 <3 Mar 05 19:10:28 but i would argue that you dont want that Mar 05 19:10:31 what is this for? Mar 05 19:11:18 canadiancow|work: I'm loading the image in and scaling/zooming it within an opengl context, fitting the canvas Mar 05 19:11:28 ah ok Mar 05 19:11:32 id probably put it in assets then Mar 05 19:11:37 but that's just me Mar 05 19:11:39 ^^ Mar 05 19:11:51 anyone else going to the google tv dev lab wed? Mar 05 19:12:15 in canada? Mar 05 19:12:18 Why google provide too complex and just a few examples of libraries? Mar 05 19:12:24 toronto Mar 05 19:12:33 waltercool: what? Mar 05 19:12:44 i still find it odd that they're hosting a dev lab in a country where you cant buy the product Mar 05 19:13:05 not that shocking; they're focusing on the developers, not end users Mar 05 19:13:09 what's shocking is that they're still pushing google tv Mar 05 19:13:11 canadiancow|work: Sometimes developer.android.com doesn't provide examples for some objects or functions Mar 05 19:13:32 canadiancow|work: or are just too complex sometimes... Mar 05 19:13:32 ... Mar 05 19:13:38 cool story bro. Mar 05 19:13:50 here's an idea; type in the name of the object in the little box in the top right corner of developer.android.com Mar 05 19:13:53 and press enter Mar 05 19:13:54 lov: but as a developer, i cant buy the device to test on Mar 05 19:13:56 holy shit search results?!?!?! Mar 05 19:14:05 this channel is too negative lately Mar 05 19:14:11 we need more drugs Mar 05 19:14:12 mikedg_: you started it Mar 05 19:14:16 canadiancow|work: buy it from the states, have it imported Mar 05 19:14:18 and i'm ending it! Mar 05 19:14:21 canadiancow|work: surely zynga can swing that one Mar 05 19:14:26 lov: thats complicated Mar 05 19:14:29 oh we have them in the office Mar 05 19:14:33 i want this channel to be ful of hugs and kisses before dinner Mar 05 19:14:34 but for a small developer Mar 05 19:14:43 <3 Mar 05 19:14:50 im not sure how to do a kiss emoticon Mar 05 19:14:55 stop Mar 05 19:14:58 8==D Mar 05 19:14:58 hammer time Mar 05 19:14:59 hammertime? Mar 05 19:15:00 now Mar 05 19:15:00 mikedg_: nah, just a friendly critic ;) Mar 05 19:15:25 :* Mar 05 19:15:27 kiss emoticon Mar 05 19:15:31 hope this helps Mar 05 19:15:36 How can I System.out.println() in android for debugging Mar 05 19:15:37 ? Mar 05 19:15:47 doesnt that work? Mar 05 19:16:01 that's java, no? Mar 05 19:16:18 loopuleasa: System.out.println logs out to the System.out tag Mar 05 19:16:20 loopuleasa: http://developer.android.com/guide/developing/debugging/debugging-log.html Mar 05 19:16:23 but better yet Mar 05 19:16:27 http://developer.android.com/guide/developing/debugging/debugging-projects.html Mar 05 19:16:30 learn how to ACTUALLY DEBUG. Mar 05 19:16:42 lmfgtfy Mar 05 19:16:47 see i added an extra f Mar 05 19:16:56 Can anyone help me with the concept of fragments, tabs and backwards compatibility? First time i'm looking at it but i've developed a few apps in the past just not with fragments or the new action bar. http://developer.android.com/reference/android/app/TabActivity.html From this page and the "trick" to make it backwards compatible is the content of each tab a single fragment? Mar 05 19:17:10 dont use a tabactivity Mar 05 19:17:10 fuck Mar 05 19:17:14 tabs are so failboat Mar 05 19:17:20 Hi i am pretty new to java, can i have some help. Im building a gallery wich is based on a gridView and a imageadapter wich gets all the thumbnails from the mediaStore. Here is my proplem: Whenever i scroll the thubnails either scramble or repeat. How can i solve this? Mar 05 19:17:25 it just screams "IM AN IOS PORT" Mar 05 19:17:36 It's not tabactivity being used as it's depreceted. It just so happens the info is on that page. Mar 05 19:17:42 oh Mar 05 19:17:43 ok :) Mar 05 19:17:51 pretty new to Android* Mar 05 19:17:55 so theres a guide on fragments Mar 05 19:18:08 http://developer.android.com/guide/topics/fundamentals/fragments.html Mar 05 19:18:09 read that Mar 05 19:18:30 Duke_Puke: are you loading the images asynchronously? Mar 05 19:18:33 Yeah i get fragments alone i think. It's just when it's in a tab. I want the tab to contain a view that has fragments rather than the content of the tab to be a single fragment. Mar 05 19:18:47 Define: DDMS Mar 05 19:18:55 But also to be compatible if you don't have the actionbar Mar 05 19:18:58 MDijkstra: I dont know how do i do that? Mar 05 19:19:10 Duke_Puke: are you implementing your own Adapter? Mar 05 19:19:14 Duke_Puke: how are you loading the images in the adapter? Mar 05 19:19:24 Duke_Puke: if so, your getView method gets that recycled view. That view MAY NOT BE NULL. Mar 05 19:19:30 Im using a ImageAdapter Mar 05 19:19:36 Duke_Puke: if it's not null, it doesn't mean that it's correctly populated; you have to populate it yourself. Mar 05 19:19:55 synic: http://pastebin.com/iRnM13xM Mar 05 19:20:05 http://pastebin.com/iRnM13xM there is my adapter Mar 05 19:20:17 Okay, at my wits' end here (to pile on to the questions being asked), does anyone have any idea why a WebView containing HTML generated in my code would be displaying a "Web page not found" error, but only in the Android emulator, not on a device? Mar 05 19:21:01 Can someone explain to me what DDMS stand for? Mar 05 19:21:02 Duke_Puke: a) you're not clearing the imageview if you can't load the bitmap Mar 05 19:21:08 I have switched to that perspective in Eclipse Mar 05 19:21:20 canadiancow|work: a small question of the same Mar 05 19:21:37 c'est what Mar 05 19:21:42 loopuleasa: http://www.google.nl/search?q=DDMS Mar 05 19:21:46 2nd hit Mar 05 19:22:10 canadiancow|work: I'm trying to replace setRetainInstance instead getOnConfigurationsomethingican't remember Mar 05 19:22:14 canadiancow|work: it's too hard? Mar 05 19:22:19 MDijkstra so how do i clear a imageView? Mar 05 19:22:31 google it? Mar 05 19:22:33 canadiancow|work: "getLastNonConfigurationInstance()" Mar 05 19:22:35 You know you get owned when someone links you to google Mar 05 19:22:38 thanks mate Mar 05 19:22:51 canadiancow|work: yeah, i'm trying to use google, but examples aren't everywhere Mar 05 19:23:03 IAmAboutUs: Check the browser in the emulator...see if you can load a page. It's known to drop connection after a while. Mar 05 19:23:03 imageView.setImageBitmap(null); Mar 05 19:23:06 but that's IIRC Mar 05 19:23:30 or simply set a placeholder drawable Mar 05 19:23:32 I would .setImageResource(0); Mar 05 19:23:34 MDijkstra Thanks, and i should put that in the "if bm = null" statement? Mar 05 19:24:02 you could add an else case Mar 05 19:24:14 or simply always do it Mar 05 19:24:21 above moveToPosition Mar 05 19:24:26 ok but wont that just display a blank clickable box? Mar 05 19:24:54 the image'll get overwritten immediately after that if the bitmap can be loaded Mar 05 19:25:02 mikedg_: thanks for the heads up btw Mar 05 19:25:07 np Mar 05 19:25:13 afreq: Okay, thanks, trying that. Mar 05 19:25:15 now stop trying to download so I can get it :) Mar 05 19:26:00 mikedg_: haha Mar 05 19:26:11 mikedg_: i'm not :P Mar 05 19:26:13 MDijkstra Thanks it works but now i end up with loads of clickable black thumbnails under the sucessfully loaded ones Mar 05 19:26:21 have until like april 8th right? Mar 05 19:27:11 Duke_Puke: then the code that fetches the images probably returns null when it shouldn't Mar 05 19:27:35 ie "MediaStore.Images.Thumbnails.getThumbnail(mContext.getContentResolver()," Mar 05 19:28:06 Ok i'm just reading about http://actionbarsherlock.com/samples.html . Anyone used this before? Mar 05 19:28:24 the guy who wrote it is in here, I think Mar 05 19:28:36 MDijkstra: It does on my phone but not on the emulator. Is there a way i can writ in the adapter that if a image is null it wont be written out Mar 05 19:28:52 not really Mar 05 19:29:24 I am getting this error in logcat: "Couldn't get connection factory client". Googling shows that this error occurs when supplying the wrong API key when creating a MapView. I have a MapActivity but I am not using any MapView yet. Any idea what might be wrong? Mar 05 19:29:27 you should return a smaller getCount() if you want it to skip invalid images Mar 05 19:29:38 where are you getting the count from anyway? Mar 05 19:29:42 isn't that simply too high? Mar 05 19:30:26 hey heisenmink Mar 05 19:30:31 if you have a mapactivity, you have a mapview. Mar 05 19:30:32 afreq: Yeah, emulator's browser seems to be working. Not sure why the WebView wouldn't show the HTML I'm generating and passing to it. Mar 05 19:30:36 count = imagecursor.getCount(); Mar 05 19:30:49 just put in the right key ffs. Mar 05 19:30:53 lov, no, I didn't spawn one yet. Neither my code nor my layout containst a mapview at the moment Mar 05 19:31:14 Duke_Puke: there's simply something wrong with the code fetching the images from the store Mar 05 19:31:27 put logging in and see where it returns strange values Mar 05 19:32:22 MDijkstra Sorry for the code i posted it came out wrong. Havn't really reached the logging knowledge yet Mar 05 19:32:58 MDijkstra Is there a way to just filter out working images in a managed query? Mar 05 19:33:09 heisenmink: oh, ok, this must be a magical error unrelated to your maps. Don't put in a new key then, that surely couldn't hurt. Mar 05 19:33:20 Hey guys, which method is preferred? Mar 05 19:33:20 Duke_Puke: of course, but I'm willing to bet the images are just fine Mar 05 19:33:23 lov: where would I put the key? Mar 05 19:33:26 Duke_Puke: it's the loading code which is wrong Mar 05 19:33:30 Designing UI using the xml or code? Mar 05 19:33:50 Duke_Puke: or simply render a 'broken image' drawable Mar 05 19:33:59 instead of nothing Mar 05 19:34:13 heisenmink: in your manifest. Mar 05 19:34:14 Also, is there a way to get rid of the "X has quit/entered #android-dev" in this irc? Mar 05 19:34:27 heisenmink: STOP. Read the documentation on the maps stuff before you continue. Mar 05 19:34:34 MDijkstra wow i wish how to do that Mar 05 19:34:53 Duke_Puke: it's much easier to look up how to do that Mar 05 19:34:57 lov: I have done it before, and back then I didn't need to supply the API key before actually creating the mapview Mar 05 19:35:00 than to implement adapter filtering :) Mar 05 19:35:25 MDijkstra can you take a look at my loading code http://pastebin.com/u37Wxn8D Mar 05 19:36:14 not much there's to debug without running it, sorry Mar 05 19:36:41 MDijkstra just if you saw any great faults in it Mar 05 19:36:42 lov: I cannot find anywhere in the documentation how to supply an api key in a MapActivity except for the MapView constructor and inside a layout xml file Mar 05 19:36:58 http://news.ycombinator.com/item?id=3667716 Mar 05 19:38:37 heisenmink: hmph. Are you calling setContentView at all? It may default to some mapView if you don't set one. Mar 05 19:38:51 it also probably pulls the api key from a mapview, if one exists; if one doesn't, it won't know what to use. Mar 05 19:39:10 MDijkstra Thanks for the help :) Mar 05 19:39:34 np Mar 05 19:39:41 lov, I am calling setContentView to load a "loading" layout while the app connects Mar 05 19:40:11 * lov shrugs Mar 05 19:40:31 heisenmink: consider letting your "loading" layout either be a separate activity, a dialog, or a view which you set as "GONE" when you connect. Mar 05 19:40:33 I have an activity base class which defines a few common methods and defines the communication between the activites and the service, and that base activity class extends MapActivity. Might that be the problem? Mar 05 19:40:49 no, probably not. Mar 05 19:41:03 Honestly, I'm assuming that MapView expects to have a MapView with an api key as its first view. Mar 05 19:45:46 lov, I added a mapview with a correct api key to the layout, samme error. Still, the map works fine. So I have no idea what to make of this Mar 05 19:45:56 I'm just going to ignore the error then Mar 05 19:45:59 thanks for helping Mar 05 19:46:09 Is there a faster way to emulate my device when I test my phone? Mar 05 19:46:33 loopuleasa, what do you mean? Mar 05 19:46:43 loopuleasa: yes, fall asleep every 100ms and then wake up, things will seem to go faster everywhere ! Mar 05 19:46:53 it takes 50 seconds for a test Mar 05 19:47:13 I mean, is there a way like keeping the emulator open or something Mar 05 19:47:22 When I hit "Run" Mar 05 19:47:28 to run and test my app Mar 05 19:47:34 Eh, just don't close it Mar 05 19:47:43 it works that way, then? Mar 05 19:47:56 Do you reboot your phone every time you want to launch a new app? Mar 05 19:49:12 In Eclipse, when I test my App it takes a while Mar 05 19:49:30 loopuleasa: You don't need to close your emulator every time. Also, enable snapshot. That way when you boot it up again it loads from the last point where you shut it. Mar 05 19:49:31 the simulator isn't fast, if that's what you mean. Mar 05 19:49:36 And I was wondering if there were any methods to decrease that wait time when I hit "Run" Mar 05 19:49:56 ok, thanks Mar 05 19:51:13 loopuleasa: invest in an actual device. Your life while be easier! Mar 05 19:51:21 I have a HD2 Mar 05 19:51:24 Locked Mar 05 19:51:32 so, it isn't a phone Mar 05 19:51:48 I use it as a mini-laptop ^.^ Mar 05 19:52:03 Apart from that I have another HTC, Wildfire Mar 05 19:52:07 this one unlocked Mar 05 19:52:18 GALAXY SII baby! Mar 05 19:52:38 * waltercool Galaxy Nexus: Lol baby Mar 05 19:52:44 Ugh, that WebView doesn't even look like it's generating an exception Mar 05 19:52:52 Ravenheart: nice Mar 05 19:54:10 Does anyone know why I can't add UI elements directly into the Graphical Layout view of my main.xml? Mar 05 19:54:15 A minute ago I could Mar 05 19:54:26 now I only can modify the main.xml through code Mar 05 19:55:00 In essence, I can't drag and drop, let's say, a text field Mar 05 19:55:09 from the Pallete Mar 05 19:55:18 the ui may or may not be buggy Mar 05 19:55:26 just get used to editing xml; it will let you know what you're actually doing too. Mar 05 19:55:37 wrong layout type probably Mar 05 19:55:48 Yeah, maybe, but I wanted to play around first Mar 05 19:56:09 Also, a warning: The resource R.layout.main appears to be unused Mar 05 19:57:43 I'm loading the html string in with this function call: mWebView.loadData(html, "text/html", "utf-8"); Mar 05 19:57:55 Maybe an encoding issue? Mar 05 19:58:47 Honestly wouldn't be worried about it if it weren't for the fact that I'm trying to have another developer run it on his computer. Ugh. Mar 05 20:02:30 How can I get rid of the annoying spam of messages that keeps popping in this #irc chat ? The ones where "X leaves/joins chat" Mar 05 20:03:04 loopuleasa: depends on your client, really Mar 05 20:03:15 freenode? Mar 05 20:03:17 loopuleasa: that's not an android question. join #help or something Mar 05 20:03:32 freenode is a network, not a client Mar 05 20:03:48 I know, but I just wanted to get it out of my system, because I don't usually hang on irc's Mar 05 20:03:57 will visit #help though Mar 05 20:03:59 your client is qwebirc Mar 05 20:04:02 whatever the fuck that is Mar 05 20:04:25 TF2 Doctor: I have no idea Mar 05 20:05:01 Hi does anyone know how I can have an activity in my application that runs when the user hits "open" from the market but doesn't appear in the launcher? Mar 05 20:05:16 Aaronds, action MAIN, no category launcher Mar 05 20:05:33 pfn: pretty sure that's what I've already done >_> Mar 05 20:05:42 Aaronds, then it doesn't appear in the launcher Mar 05 20:06:08 but pfn: there is no option to open from the android market Mar 05 20:06:09 what's the best alternative for pushing updates swiftly to devices; having a background service with a constantly connected socket thread or having a timmer that polls once every ~30 seconds? Mar 05 20:06:21 Aaronds, pastebin your manifest Mar 05 20:06:42 heisenmink, how swiftly is swiftly Mar 05 20:06:53 ok hold on pfn Mar 05 20:07:00 heisenmink, use c2dm to tell the device to initiate a connection, then send data over a tcp connection Mar 05 20:07:08 heisenmink, after some period of inactivity, kill the socket Mar 05 20:07:12 rinse, repeat Mar 05 20:07:22 I dont really know, but it has to be faster than one minute, I'd like faster than 20s Mar 05 20:07:32 15:07:09 < pfn> heisenmink, use c2dm to tell the device to initiate a connection, then send data over a tcp connection Mar 05 20:07:35 15:07:16 < pfn> heisenmink, after some period of inactivity, kill the socket Mar 05 20:07:38 15:07:21 < pfn> rinse, repeat Mar 05 20:08:11 is it ok for data to NOT come in while your app isn't running? If so, yes, a service with a long lasting tcp connection. Mar 05 20:08:17 otherwise (and probably anyway) use c2dm. Mar 05 20:09:31 pfn: http://pastie.org/private/ojrgiw2uyinhju2vpgz1w Mar 05 20:11:31 I want to update the server with the device location once in a while, and keep the client ready to react to server messages (that are based on the location)... Right now I have a constant tcp socket to a node.js server, and it's extremely responsive and fast, but I worry about device battery usage... but being constantly registrered to the gps manager should drain the battery too Mar 05 20:12:05 Aaronds, looks right, update the version and check in market again Mar 05 20:12:40 pfn: it was launched with this manifest, why would that change anything? o.O Mar 05 20:12:58 you should say so Mar 05 20:13:10 maybe helperactivity isn't in your apk Mar 05 20:13:18 aapt d badging on your apk maybe? Mar 05 20:13:43 Ah yeah maybe ProGuard destroyed it >_> Mar 05 20:14:37 don't you have -keep for all activities? Mar 05 20:15:18 hi, i am using an asset xml file parsed for retriving a link. everything is done good, but the link contains a get request page.php?var1=3&var2=6 and i can't get the url. the url seen from the activity doesn't contain var2..i searched about url encoding but this doesn't help...who can give me an hand? thanks Mar 05 20:17:43 pfn: shouldn't -keep public class * extends android.app.Activity have stopped it being deleted? Mar 05 20:17:51 Aaronds, should have Mar 05 20:17:59 Aaronds, jar tf obfuscated.jar | grep HelperActivity Mar 05 20:18:04 alexxio que? do you not get the proper string from the xml or ? Mar 05 20:18:24 yes, i doesn't get the proper string Mar 05 20:18:44 ok so pastebin relevant code and xml Mar 05 20:19:10 i have something like page.php?var1=3&var2=6 but only page.php?var1=3 is returned, Mar 05 20:19:20 i tried also with & instead of & Mar 05 20:19:46 here's a stupid question... if I register a URI scheme in my intent filter, and I generate a URI using that scheme in the browser, will it direct to my app? Mar 05 20:19:51 pfn: sorry but where is obfuscated.jar & I'm not on linux Mar 05 20:19:55 ie, could I implement telnet:// and get telnet links in a browser to go to me? Mar 05 20:19:58 Aaronds, in bin/proguard Mar 05 20:20:00 alexxio ok so show us the code Mar 05 20:20:09 Aaronds, you can run that command just fine on windows and mac Mar 05 20:20:13 as long as the jdk is in your path Mar 05 20:20:18 Aaronds, alternatively, unzip -t Mar 05 20:20:26 or look at it in some file explorer Mar 05 20:20:31 who the hell doesn't know how to use the commandline... Mar 05 20:20:33 :p Mar 05 20:21:26 xorgate: i have a simple XML handler extending defaulthandler Mar 05 20:22:11 & needs to be encoded Mar 05 20:22:11 xorgate: then i override characters() function, end element and start element Mar 05 20:22:38 SimonVt: how to encode it? Mar 05 20:23:03 how many devices do you think are out there support nfc and will not be getting a 4.0 upgrade? im wondering if its worth only supporting beam, and not the traditional nfc Mar 05 20:23:26 pfn: I just got an ass load of errors from jar tf obfuscated.jar | grep HelperActivity (i needed to prefix both with java) Mar 05 20:23:50 alexxio: I'm sure that can be googled Mar 05 20:24:10 oh, you're on windows, I guess you need to have gnu tools to do grep Mar 05 20:24:22 maybe jar tf obfuscated.jar | find "HelperActivity" Mar 05 20:24:33 and no, you don't prefix jar with java Mar 05 20:25:54 hm, works fine if I use loadUrl instead of loadData Mar 05 20:26:30 but that doesn't really help me. Mar 05 20:27:19 SimonVt: thanks, i'll try Mar 05 20:27:21 Well, actually, it does. Going to try this http://stackoverflow.com/questions/8421670/webpage-not-available-with-webview-loaddata-only-in-emulator Mar 05 20:28:28 pfn: HelperActivity.class is in obfuscated.jar Mar 05 20:28:40 Aaronds, hmm, dunno then Mar 05 20:28:55 so the answer is: yes, you can register arbitrary schemes in your intent filter, and the browser will send you them. Nice. Mar 05 20:28:56 Aaronds, how about aapt d badging yourfile.apk Mar 05 20:29:23 has anyone used FragmentTransaciton.setCustomAnimations(int, int) Mar 05 20:29:25 successfully Mar 05 20:29:42 * pfn doesn't grok animations yet Mar 05 20:31:18 pfn: I don't see anything about the activity in the output Mar 05 20:31:21 somebody's been forgetting to update http://developer.android.com/resources/dashboard/platform-versions.html Mar 05 20:31:44 I have a bunch of data pulled from a database and each row is a button on my activity. Can I somehow split 2 fields into 2 -like HTML tags in my button text? Mar 05 20:32:23 http://www.fiercedeveloper.com/special-reports/android-app-discovery-akin-needle-haystack Mar 05 20:32:39 Anyone know of a reliable, cheap host with decent allotments (CPU, RAM, space) that lets you install your own software? Mar 05 20:32:49 dreamhost Mar 05 20:32:51 * lov ducks Mar 05 20:33:00 hehe Mar 05 20:33:25 in my experience dreamhost offers great storage and bandwidth, but the moment you make your first database query it all starts going downhill Mar 05 20:33:30 static flat files are great Mar 05 20:33:45 I went to the dreamhost homepage and it timed out Mar 05 20:33:46 so Mar 05 20:33:47 uh Mar 05 20:34:41 o_O Mar 05 20:34:48 huh, the page is timing out. Mar 05 20:34:52 well that's odd. Mar 05 20:35:09 http://www.downforeveryoneorjustme.com/dreamhost.com Mar 05 20:35:11 welp! Mar 05 20:36:33 http://www.dreamhoststatus.com/ Mar 05 20:36:38 i have a listview and wish to launch a dialog from when the item is selected but wish to use the onCreateDialog method, how would i pass the index of the item clicked to onCreateDialog? Mar 05 20:38:39 Yep, that fixed it. Thanks for letting me talk at you. Mar 05 20:39:46 FatCookies, save the value in a member variable Mar 05 20:41:06 Just had to figure out the right thing to type into Google, really Mar 05 20:41:28 FatCookies: is this the Activities onCreateDialog or the Dialog's if its a Dialog Fragment? Mar 05 20:42:03 i'm working with api 7, so no fragment drpenguin Mar 05 20:42:13 FatCookies: you can use fragments with ACL ^^; Mar 05 20:43:25 isnt that over-complicating it a bit? Mar 05 20:43:33 chrome, gotta love it. http://screencast.com/t/b3jA6LzE Mar 05 20:43:44 FatCookies: what? using the ACL? im not telling you to, I am just saying you can use Fragments if you wanted Mar 05 20:44:14 tophyr: doesnt it also say somewhere "He's Dead Jim!" Mar 05 20:44:48 i think i've got an idea Mar 05 20:45:40 JakeWharton, do you know if FragmentTransactions.setCustomAnimations works in the compat lib? Mar 05 20:47:06 is there a way to have a gallery view open up into the actual gallery application on click or something so users can scroll through the full size images there? Mar 05 20:49:37 sure, set an onclick handler that opens an intent to Gallery Mar 05 20:51:50 what do i pick in the setClass() method Mar 05 20:51:59 just Gallery.class? Mar 05 20:52:10 Well, continuing with my line of questioning...for those of you who have websites for your applications (other than the market site), where do you host them? Mar 05 20:52:13 will it know to go into the gallery application Mar 05 21:11:21 what would be a good design pattern for adding a 'waiting' element to my dialog? the validation requires a network request, so it can take a while or even fail. would sticking the progressbar on it somewhere do? Mar 05 21:12:26 does anyone have any knowledge behind the Notifications History API, outside of the Java environement? Mar 05 21:13:16 anyone have a copy of the standard google nda you sign when you visit? Mar 05 21:13:41 IM trying to use some of the api functions in vb.net, just using the http auth, only to pull, nothing to make changes.. as Notifications History is structured around Mar 05 21:15:29 nope Mar 05 21:15:46 I don't even remember signing ndas, heh Mar 05 21:16:09 or is this some official business visit that needs ndas? Mar 05 21:16:30 developer lab Mar 05 21:16:32 im fine signing it Mar 05 21:16:41 its more to see what it covers if i share anything about my work :P Mar 05 21:16:51 "We hope some of you will choose to participate in a public design review, where the group will look at your apps and discuss what needs to change to make it a great TV application." Mar 05 21:17:04 i.e. if i get up in front of 50 people and tell them about something, does the google nda cover that Mar 05 21:17:05 vadi2: probably Mar 05 21:17:21 * pfn has no clue on that matter Mar 05 21:17:24 * pfn would assume no Mar 05 21:17:56 I mean, the whole point of presenting in front of a group is to disseminate knowledge... Mar 05 21:18:15 did you read my quote? :P Mar 05 21:18:29 its more about unreleased products or features Mar 05 21:18:37 if i share technical knowledge, thats fine Mar 05 21:18:52 if i share words with friends 2.0 with friend-generation feature, thats more of an issue Mar 05 21:19:03 so my assumption is that whatever you present will not be protected under non-disclosure Mar 05 21:19:21 maybe I'm wrong Mar 05 21:19:33 meaning unreleased products and features Mar 05 21:19:49 ive seen what i think are copies of the nda, and im not hopeful Mar 05 21:20:11 the nda is mostly just to cover google's assets Mar 05 21:20:14 yea Mar 05 21:20:16 :( Mar 05 21:20:17 not the participants' Mar 05 21:20:21 but like Mar 05 21:20:26 if you go visit the android team Mar 05 21:20:29 you might see a new phone Mar 05 21:20:32 made by not-google Mar 05 21:20:36 that MUST be covered Mar 05 21:20:37 canadiancow|work: then that person should be fired :-/ Mar 05 21:20:46 canadiancow|work: all sensitive areas have bit NO VISITORS BEYOND THIS POINT Mar 05 21:20:52 s/bit/big/ Mar 05 21:21:04 heh Mar 05 21:21:06 T_T Mar 05 21:22:21 evancharlton: I think Google is less anal about such leaks than Apple Mar 05 21:22:23 Hey, I'm using an IntentService. How do I stop this service? Mar 05 21:22:29 stopService doesnt stop it... Mar 05 21:22:45 p_l: in which regard? Mar 05 21:23:00 well if you get hold of information about an iphone Mar 05 21:23:06 apple impersonates police Mar 05 21:23:09 knocks down your door Mar 05 21:23:12 and rummages through your shit Mar 05 21:23:25 ctate: yo! Mar 05 21:23:28 om4r: stopSelf() ? Mar 05 21:23:32 ctate! long time! Mar 05 21:23:36 yeppers Mar 05 21:23:42 ctate, so ive been seeing rumours lately Mar 05 21:23:44 about key lime pie Mar 05 21:23:46 ctate: we have been talking about Google NDAs and policies about leaks ;) Mar 05 21:23:48 i thought we had agreed on kulfi Mar 05 21:23:49 i'm sure you have, canadiancow|work Mar 05 21:24:19 evancharlton: I have to call stopself from within the service? Mar 05 21:24:25 * Gumboot likes kulfi. Mar 05 21:24:28 i just love how the Android blogboi community thinks they figure this stuff out before we do Mar 05 21:24:35 om4r: yes Mar 05 21:24:42 * Gumboot also likes key lime pie. Mar 05 21:24:50 I want to stop it from another activity Mar 05 21:24:56 so ctate, kulfi then ;) Mar 05 21:25:11 om4r: I don't think IntentServices are supposed to be started and stopped like that Mar 05 21:25:15 I don't care about these early releases, though. I'm lobbying for mandelbrot in the more distant future. Mar 05 21:25:19 kulfi pie? Mar 05 21:25:27 minus pie? Mar 05 21:25:28 kittens. Mar 05 21:25:32 I vote 'kittens'. Mar 05 21:25:33 om4r: I would guess that your use-case is more along the lines of a Service with a Thread Mar 05 21:25:34 o.O Mar 05 21:25:37 kittens kebab Mar 05 21:25:39 i am not eating kittens Mar 05 21:25:49 'M' is 'Meatloaf' Mar 05 21:25:53 no one tell you I told you Mar 05 21:26:03 erm, what? Mar 05 21:26:04 That's not even sweet. Mar 05 21:26:09 brain, that doesn't even make sense Mar 05 21:26:27 my brain is an idiot; sorry guys Mar 05 21:26:30 pfn: I've changed my ProGuard setup, what should I look for in the aapt d badging output? Mar 05 21:27:02 ctate: meanwhile, I got myself into recruitement process at google \o/ Mar 05 21:27:41 ctate i had something to tell you but i forgot. should have just posted it on + Mar 05 21:27:43 Aaronds, pastebin it Mar 05 21:27:48 Aaronds, mention of your helperactivity Mar 05 21:27:54 p_l: bonne chance! Mar 05 21:29:27 hmm I can't see anything pfn, http://pastie.org/private/ojrgiw2uyinhju2vpgz1w. I decompiled the APK and the activity is in there. Mar 05 21:29:42 yeah, this week I'm doing second technical interview (theoretically my first phone talk with recruiter was also a technical screening, since the guy was previously a techie) Mar 05 21:30:03 Aaronds, unless you filtered it out, there's no mention of any activity in there Mar 05 21:30:17 either your manifest is malformed, or you're packaging using a different xml Mar 05 21:30:32 talking to the recruiter doesn't really count as the proper phone screen, however techie they were in a past life Mar 05 21:30:55 Aaronds, you should have other-activities: in that output Mar 05 21:31:29 Gumboot, pfn and canadiancow|work DON'T EAT ME Mar 05 21:31:34 That's strange. pfn should I be referencing the activity in the manifest by it's full package name (com.test.test.activity.MyActivity) Mar 05 21:31:41 ctate: true Mar 05 21:31:54 ctate, if two non-googlers go to google and sign the nda, and then talk to each other about their own non-google stuff, does the nda cover that? :) Mar 05 21:32:03 Aaronds, nevermind, you have main in there Mar 05 21:32:14 Aaronds, I misread... dunno why it isn't showing up then Mar 05 21:32:23 canadiancow|work: about their *non* google stuff? i'm no lawyer. ew. Mar 05 21:32:24 ctate: but so far, I got good results (already had one phone screen with engineer - I'm going for SRE/SWE in Dublin) Mar 05 21:32:36 canadiancow|work: NDAs don't cover things that don't relate to the NDA Mar 05 21:32:52 in general i would think ==Kittens Mar 05 21:32:58 I've been in a few different NDAs and am in two right now. Mar 05 21:33:07 oh god Mar 05 21:33:11 are you a bibliomancer Mar 05 21:33:14 get out of here witch Mar 05 21:33:22 well the example i gave was that if i went to visit my best friend ctate, and i saw some of samsung's new products, the google nda would cover that, right? Mar 05 21:33:29 i couldnt just go tell the world about samsung's new shit Mar 05 21:33:32 .... Mar 05 21:33:33 bibliomancer? Mar 05 21:33:40 canadiancow|work: well, yes, but ctate would be in deep shit Mar 05 21:33:43 how do you know that samsung is making devices that google would be using right now? Mar 05 21:33:49 evancharlton stop hating on my example :( Mar 05 21:33:50 Kittens: how did you get inside of an nda Mar 05 21:33:52 pfn: when I add , the activity starts fine but then it's in the launcher.. Mar 05 21:33:54 s/samsung/htc/ Mar 05 21:33:57 s/samsung/lg/ Mar 05 21:33:59 do you have fights with gerunds and adjectives? Mar 05 21:33:59 s/samsung/asus/ Mar 05 21:34:08 canadiancow|work: my point is that visitors, no matter what NDAs they've signed, should be exposed to anything confidential Mar 05 21:34:17 Aaronds, I dunno why market isn't seeing your MAIN, it's supposed to Mar 05 21:34:22 then whats the point of the nda? Mar 05 21:34:22 :P Mar 05 21:34:35 hell if I know, I'm not a lawyer Mar 05 21:34:37 evancharlton: should NOT be exposed to anything confidential. FTFY. Mar 05 21:34:40 lov: I work with developers on different programming assignments and my company is currently contracting me to manage 2 projects with other companies Mar 05 21:34:45 lol Mar 05 21:34:58 Kittens: cmon dude play along a little, it's wordplay Mar 05 21:34:58 ctate: hahah yeah well I just like to keep the security team busy <_< Mar 05 21:35:10 lov: I don't get it Mar 05 21:35:18 sorry Mar 05 21:35:18 you're IN an NDA Mar 05 21:35:23 hi, how to encode an & in xml file? & does not work Mar 05 21:35:32 as in inside of the textual contract Mar 05 21:35:41 hex code maybe? Mar 05 21:35:48 alexxio: pretty sure & is how to do it Mar 05 21:35:49 how come users are much more likely to +1 an app than rate it? Mar 05 21:35:56 as in physically in the paper? (or in this case PDF) Mar 05 21:36:07 Kittens: yes, as in you've physically inserted yourself into the document Mar 05 21:36:13 you're IN two NDAs Mar 05 21:36:17 lov: & is not read by sax parser :( Mar 05 21:36:19 that would be painful Mar 05 21:36:26 and you've been IN many before Mar 05 21:36:29 damnit lov now i need to reread _The Eyre Affair_ Mar 05 21:36:37 haha Mar 05 21:36:38 [and following] Mar 05 21:36:40 friday next is the best Mar 05 21:36:42 evancharlton best person ever <3 Mar 05 21:36:42 are you sure you need to encode & in android xml Mar 05 21:36:43 Thursday. Mar 05 21:36:44 lov: you're making me sound like a male whore Mar 05 21:36:45 er Mar 05 21:36:47 .... >_< Mar 05 21:36:48 yes. Mar 05 21:36:49 lol Mar 05 21:36:55 canadiancow|work: yeah well I do what I can Mar 05 21:37:08 Kittens: well I said "bibliomancer" so I was obviously going for a more arcane angle but ok Mar 05 21:37:37 lov: I meant on your explanation Mar 05 21:38:04 alexxio, of course & works Mar 05 21:38:07 that's by definition of xml Mar 05 21:38:25 there are 3 entities defined in basic xml, those are for & < and > Mar 05 21:38:49 Hey guys. How can i make automatically run init.d script after OS boots? Mar 05 21:39:07 BadCow_, use a rom that auto runs init.d scripts Mar 05 21:39:27 Is that the only way? Mar 05 21:39:40 BadCow_: what exactly are you trying to do Mar 05 21:39:42 anyone have an HTC thunderbolt that can look at a market page for me quickly? Mar 05 21:40:06 BadCow_, that is the only way Mar 05 21:40:11 I have a script that sets RGB values Mar 05 21:40:23 pfn: it's strange because i can retrieve the xml content but not the part after & it is like deleted...maybe the String cast deletes it? Mar 05 21:40:41 alexxio, probably because it's split into multiple text nodes Mar 05 21:41:30 pfn: text nodes? Mar 05 21:41:31 seems like all is quiet in android land Mar 05 21:42:01 g00s, the android land is waiting for you to buy a new android handset :p Mar 05 21:42:17 heh Mar 05 21:42:19 http://www.theverge.com/2012/3/5/2846170/android-ice-cream-sandwich-delay-editorial Mar 05 21:42:49 oh now i see where you guys got the Key Lime Pie thing Mar 05 21:42:49 http://pastebin.com/3GgHByEE that's content of my script. Any other ways to do that? Mar 05 21:42:58 And thanks for replying Mar 05 21:43:07 that just rolls off the lips 9.9 Mar 05 21:44:01 g00s: I think that article is actually kinda decent Mar 05 21:45:05 so, it's march already Mar 05 21:45:10 where are the IO12 ticket sales? Mar 05 21:45:27 +1 Mar 05 21:45:37 +googlers Mar 05 21:45:38 * pfn wanna go Mar 05 21:47:35 june 27-29 is what google tells me Mar 05 21:47:35 would love to go to IO, but it's in states... so even if I had money, it would be weird experience Mar 05 21:47:47 thats when it is anyway Mar 05 21:47:59 though yeah you would think ticket sales would be now Mar 05 21:48:03 p_l: i have a feeling you are on some sort of 'list' Mar 05 21:48:04 p_l, lots of people come from interntaional Mar 05 21:48:26 you know, the kinds of lists you never know you are on until you fly or do something Mar 05 21:48:38 :) Mar 05 21:48:47 good afternoon Mar 05 21:48:54 I'm sure it doesn't matter when the tickets go on sale. they won't be available long Mar 05 21:49:06 that's the point Mar 05 21:49:14 i hope i get early access Mar 05 21:49:14 need to know when so that we're not stuck in the cold Mar 05 21:49:17 i'll wait for canadiancow to announce it here since he gets all of the news first Mar 05 21:49:23 LOL Mar 05 21:49:34 oh hey, i just got an email from google io... Mar 05 21:49:36 g00s: kinda suspect there might be some entry for me after some of my words in monitored areas ;) Mar 05 21:49:40 * pfn got lucky with being able to go last year Mar 05 21:49:45 I don't want to count on luck this year Mar 05 21:50:20 after 2010 they said wed be able to buy tikcets early since we had gone before Mar 05 21:50:26 but that was never offered to me or my friend for 2011 Mar 05 21:50:34 luckily i was still able to get a ticket Mar 05 21:50:39 canadiancow|work, yea I don't think that will be the case Mar 05 21:50:40 yeah dude I'm gonna go out on a limb here Mar 05 21:50:43 and say that google just doesn't like you Mar 05 21:50:46 lol Mar 05 21:50:47 just flat out Mar 05 21:50:57 :( Mar 05 21:53:37 how much are tickets usually based on past years? Mar 05 21:53:50 like -$100 once you factor in swag Mar 05 21:53:57 which is why they're impossible to get :( Mar 05 21:54:00 yeah Mar 05 21:54:16 but like actual $ how much should I be expecting? I'd like to be able to go but I doubt I'll have the $ Mar 05 21:54:36 student $150 Mar 05 21:54:39 early bird $450 Mar 05 21:54:41 normal $550 Mar 05 21:54:46 except everyone got the early bird Mar 05 21:54:54 so me being a student is a good thing Mar 05 21:54:57 they need to fucking jack it up to like $1500 so fucktards stop going Mar 05 21:55:03 so the io 2012 is going to announce stuff we'll see in 2014 or so, yey Mar 05 21:55:05 is that high school or college "student" Mar 05 21:55:08 HAY LOOK WHAT I GOT FOR $450 Mar 05 21:55:16 raymonddull, dunno Mar 05 21:55:22 * raymonddull hopes high school Mar 05 21:55:25 canadiancow|work: or making the tickets non-transferrable would be a start Mar 05 21:55:29 no Mar 05 21:55:35 but shit, I graduate in may Mar 05 21:55:35 because im a high school student in the bay area Mar 05 21:55:38 i get a ticket for 150 Mar 05 21:55:41 go, pick up my $600 tablet Mar 05 21:55:45 get my $500 chromebook mailed to me Mar 05 21:55:48 but never attend a session Mar 05 21:55:48 :o Mar 05 21:55:52 :OOOOOO Mar 05 21:56:02 oh and the $300 verizon hotspot Mar 05 21:56:03 canadiancow|work: I said a start Mar 05 21:56:09 maybe Mar 05 21:56:15 seriously holy shit Mar 05 21:56:16 the worst were the ticket scalpers Mar 05 21:56:16 but shit comes up at work where you need to transfer it Mar 05 21:56:20 yea Mar 05 21:56:28 canadiancow|work: same-company transfers should be allowed Mar 05 21:56:31 IMO Mar 05 21:56:44 oh well Mar 05 21:56:45 I wonder when the cutoff would be, I graduate in may, thats in july :/ Mar 05 21:56:47 prove that it is (or isn't) the same company :P Mar 05 21:56:51 id rather they just jack the prices Mar 05 21:56:53 raymonddull: it's in june Mar 05 21:56:56 whatever Mar 05 21:56:57 $swag < $ticket Mar 05 21:57:29 either way, word of mouth the companies sponsoring it are getting paid back anyway Mar 05 21:57:33 canadiancow|work: make the tickets $1500 and you get reimbursed for $300 for every session you attend :P Mar 05 21:57:42 that could work Mar 05 21:58:01 its not like they're losing money on tickets with devices and stuff Mar 05 21:58:13 ij ust know way too many REAL devs - the kind google definitely wants at IO, who couldnt get tickets Mar 05 21:58:15 they're making money just because of the huge attraction it is Mar 05 21:58:17 but scapers were more than able Mar 05 21:58:20 and bay area HS students Mar 05 21:58:34 scalpers* Mar 05 21:58:43 * raymonddull lives on the east coast, but has family in the bay area Mar 05 21:59:02 the problem for me is that i flew in from toronto Mar 05 21:59:04 stayed in a hotel Mar 05 21:59:06 bought a ticket Mar 05 21:59:09 and i broke even Mar 05 21:59:27 evancharlton, what about people that buy individual tickets :p Mar 05 21:59:31 otherwise id say "well if you're coming from afar, you must actually want to attend" Mar 05 21:59:33 or people that happened to also win tickets Mar 05 21:59:46 tbh if I can get a ticket I'll drive there and probably stay in my car to save $ Mar 05 21:59:50 I'm 18 and jobless Mar 05 21:59:50 evancharlton, can't intra-company transfer for individual tickets Mar 05 22:00:04 maybe they should just have a technical test Mar 05 22:00:23 thats not hard to cheat... Mar 05 22:00:27 e-test ftw Mar 05 22:00:31 unless its like code jam Mar 05 22:00:40 that could actually work Mar 05 22:00:51 but there are also sessions targetted at project managers Mar 05 22:00:53 marketing Mar 05 22:01:03 so you cant assume everyone is a pure dev Mar 05 22:01:09 for the ADLs you have to give details of an app you've written Mar 05 22:01:44 ? Mar 05 22:01:49 oh Mar 05 22:01:56 no Mar 05 22:01:56 not really Mar 05 22:02:02 the one i just signed up for wants project managers as well Mar 05 22:02:14 they just want to know that "you" have "worked on" an app Mar 05 22:02:36 "Participants should strictly be developers, engineers, designers, or product management." Mar 05 22:03:04 i.e. no fanbois pls thx Mar 05 22:03:23 there were definitely too many fanboys at io11 Mar 05 22:04:22 there were like a bunch of highschool/college kids and their gf's going Mar 05 22:04:26 they looked so bored.... Mar 05 22:04:37 so so very bored Mar 05 22:05:02 * raymonddull wants to be a dev but needs to focus and actually learn some programming languages Mar 05 22:05:16 whats the resource that displays the spinny progress thing? Mar 05 22:05:37 [17:04:22] there were like a bunch of highschool/college kids and their gf's going Mar 05 22:05:39 this!!!!!!!!!! Mar 05 22:05:43 stop giving a student discount Mar 05 22:05:46 make the tickets 3x the price Mar 05 22:05:52 and you'll get a real dev crowd Mar 05 22:05:52 I dunno about 3x the price Mar 05 22:05:54 :p Mar 05 22:05:59 I won't go if the tickets cost 3x as much Mar 05 22:06:09 but I guess I'm not a real dev Mar 05 22:06:11 ticket cost has to exceed free swag :( Mar 05 22:06:18 or you get the students going for the free swag Mar 05 22:06:40 Microsoft Developer conferences attract me by giving me free Windows 8 DVDs Mar 05 22:06:41 if they cost 3x as much, I'd pin my hopes on winning contests to go Mar 05 22:06:42 :) Mar 05 22:06:56 canadiancow|work: s/the students/everyone/ Mar 05 22:06:59 but as soon as I get the disc, I'm out of the conference, unless it's interesting Mar 05 22:07:25 didn't they give out free WP7 phones like a year or so ago Mar 05 22:07:36 ctate: true :) Mar 05 22:08:07 and they gave out Visual Studio, Windows Vista, etc, etc. Mar 05 22:08:15 but thats the problem Mar 05 22:08:20 or its a problem if hte conference sells out Mar 05 22:08:37 when a real dev who wants to go for the sessions cant because other people are going for free stuff Mar 05 22:08:50 I wouldn't go to a session that charged me to attend. Mar 05 22:08:54 I have google, you know. Mar 05 22:10:30 Also, IRC. Mar 05 22:10:31 the free stuff is my motivating factor in wanting to go Mar 05 22:10:38 secondarily, it's meeting some of you assholes :) Mar 05 22:10:55 but I didn't meet anyone from #android-* last year Mar 05 22:10:56 I'm not interested in meeting any of you. Mar 05 22:10:59 just some #appengine people Mar 05 22:11:10 canadiancow|work, or maybe they don't need to give away devices Mar 05 22:11:21 ok Mar 05 22:11:26 that owrks too Mar 05 22:11:32 but at least put em on sale for attendees :) Mar 05 22:11:39 i want to buy devices :) Mar 05 22:11:41 well maybe Mar 05 22:11:43 if it's good Mar 05 22:11:45 like the tab Mar 05 22:11:48 not so much the chromebook Mar 05 22:12:04 the chromebook wasn't so great as much as I tried to like it Mar 05 22:12:33 im still tring to sell mine Mar 05 22:12:35 no one wants it :( Mar 05 22:13:07 * pfn ebayed his a couple months after getting it Mar 05 22:13:19 my lte mifi is worthlessly gathering dust, though :( Mar 05 22:13:23 I wanted to use that pretty badly Mar 05 22:13:35 shoulda sold that Mar 05 22:14:57 hmm I've got a gridview with recycled imageview's, what do I do when I want to change the size of them? (that i set via setLayoutParams) Mar 05 22:18:21 apoc: does it not do the right thing to just change the sizes then invalidate the gridview? Mar 05 22:18:23 tools r17 preview 3 Mar 05 22:20:06 fuck it still doesnt work on windows Mar 05 22:20:09 they broke the bat file Mar 05 22:20:10 find_java Mar 05 22:21:28 do i have to set any "flag" to be able to change an alertdialog each time i'm calling? my onPrepare method is never used Mar 05 22:21:57 Surfer2010: ... what? Mar 05 22:22:35 AlertDialogs are one-shot. Mar 05 22:23:33 i read that using the AlertDialog builder ... the "onCreate" is run only at the very first time ... after this no matter what you write in it, it will stay the same (titel, ...) Mar 05 22:24:07 and in that text it said you need to use the onPrepare to change the AlertDialog everytime you call it (if you want that) Mar 05 22:25:52 there is no onPrepare() method on AlertDialog or on Dialog; what are you actually trying to do? Mar 05 22:26:37 each time the AlertDialog is called it should show basically a different Text in it Mar 05 22:27:07 you need to create a new alert each time Mar 05 22:27:11 Surfer2010: are you looking for onCreateDialog(int, Bundle) ? Mar 05 22:27:19 you can't just hold the old AlertDialog or Builder references and reuse them Mar 05 22:27:56 yes you can o.O Mar 05 22:28:02 well i dont know about builder Mar 05 22:28:06 but you can sure as hell reuse a dialog Mar 05 22:28:22 well, usually for alerts you go through a Builder and get a one shot thing to display Mar 05 22:28:33 true Mar 05 22:30:22 you can probably make it work right if you redo all the state you need directly on the AlertDialog object you get from show() Mar 05 22:30:39 remember that at that point the builder is history Mar 05 22:32:07 evancharlton: this is my DialogBuilder Mar 05 22:32:07 http://pastebin.com/15B8YWtB Mar 05 22:32:38 and in Line 6 the same "Text" is shown every time even if the "actionPlayer.nick" changes each time which i checked with a system.out Mar 05 22:32:56 System.out.println? Mar 05 22:33:00 wat. Mar 05 22:34:10 why not pragma_ Mar 05 22:34:33 Please use Log and Logcat Mar 05 22:34:36 not System.out Mar 05 22:34:38 also Mar 05 22:34:44 please use a debugger instead of print statements Mar 05 22:36:40 lov: if i would know how to i would do that ;) but that System.out works just fine what is so bad about it? Mar 05 22:37:24 i'm trying to build an android APK via command line, but 'ant debug' is skipping some jars. even when I point to them via CLASSPATH Mar 05 22:37:47 ctate: i try but I can't get it to work. I change the layoutparams and call .invalidateViews() on the gridview Mar 05 22:37:47 anyone know how to get past this? Mar 05 22:38:14 Surfer2010: because for every thing you want to inspect you now need to modify your code, recompile, repush, and return to that state Mar 05 22:38:17 but my adapter doesn't get any getView() calls Mar 05 22:38:22 Surfer2010: learn to attach and use the debugger. This is very important. Mar 05 22:39:07 anyone know how to adjust the buildpath when building apks view command line? Mar 05 22:39:11 via* Mar 05 22:39:45 i want the gridview to throw away all its cached views basically Mar 05 22:40:22 can you not do IAB from an app signed with a debug key? Mar 05 22:41:00 hi. Anyone know if the NDK or elsewhere has samples on loading floating point texture in OpenGL? Mar 05 22:42:28 panda81: the NDK has a couple of gl samples; at this layer any gles tutorials will show you what need be done. Mar 05 22:44:12 FUCK they said they fixed this bug in preview 3 Mar 05 22:44:13 lov: the only non-helloworld one I see from r7 is the 'san-angeles' sample. Mar 05 22:44:59 panda81: doesn't really matter. Mar 05 22:45:17 panda81: you're going to be including gles libs, and the functions will be named the same on Android as they will on iOS Mar 05 22:46:09 i'm hoping we haven't seen any updates to the compat library for a while because google is hard at work adding lots of really cool stuff; for me at this point, the compat lib is the most exciting thing going on in android land because thats the only new stuff i can use Mar 05 22:46:50 well, and new tools also Mar 05 22:47:27 lov: And that sample is OpenGL ES 1.0 based. Preferably I'd be able to avoid writing one myself. I just need to see for myself how slow is floating point textures on my Android device. Mar 05 22:47:40 * lov shrugs Mar 05 22:50:03 yeah no easy solutions. I think I must use the NDK for floating point texture. The Java OpenGL ES binding probably doesn't support it Mar 05 22:51:13 If I was migrating from svn to git or hg, which one would (the channel) suggest? Mar 05 22:51:36 personally, I'd recommend git, partially because of existing migration support Mar 05 22:51:42 no idea what is available for hg Mar 05 22:51:50 I'd recommend git, because it's git. Mar 05 22:52:35 http://www.osnews.com/story/25678/Next_Android_OS_Called_Jelly_Bean Mar 05 22:52:39 migrate from svn to p4 so that we can be misery brothers Mar 05 22:52:53 we can hi five each other as we sob into our drinks Mar 05 22:53:00 lov: you are in misery with p4 ? Mar 05 22:53:26 yay it's a pity party Mar 05 22:53:53 MalRD: a newer blog http://blogs.atlassian.com/2012/02/mercurial-vs-git-why-mercurial/ Mar 05 22:54:01 can't wait for the second part Mar 05 22:54:19 if you are on windows, its probably a tougher choice to go with git. Mar 05 22:54:37 no Mar 05 22:54:40 git works fine on windows Mar 05 22:54:40 the msysgit shit has been a preview since like 2008 Mar 05 22:54:41 not really Mar 05 22:55:02 canadiancow|work: non-cygwin git? Mar 05 22:55:15 i dont know...is the default git bash cygwin? Mar 05 22:55:24 probably Mar 05 22:55:26 why is jelly bean going to be 5.0? there's plenty of room left in 4! It hasn't been that long, how big of a change is it going to be? Mar 05 22:55:31 They should have planned the version names so that they would never go backwards in taste. I'd much rather have an ice cream sandwich than a jelly bean. Mar 05 22:55:35 jeppy: it's a rumour Mar 05 22:55:40 the name itself is still a rumour, is it not? Mar 05 22:55:49 i love how people have decided the version number of J before the Android team has Mar 05 22:55:54 g00s: Thanks. Mar 05 22:56:00 Should've been Jelly Babies Mar 05 22:56:11 canadiancow: ctate has confirmed the rumor ! Mar 05 22:56:12 canadiancow, click goos link Mar 05 22:56:19 (the version number is picked basically *last*, when everything is basically done.) Mar 05 22:56:20 http://www.osnews.com/story/25678/Next_Android_OS_Called_Jelly_Bean Mar 05 22:56:35 jeppy, read ctate's comments Mar 05 22:56:47 ctate: you should now release it with different name, just to spite them Mar 05 22:56:47 oh :\ Mar 05 22:56:52 "After Android 4 comes 5" Mar 05 22:56:52 (state confirming stuff in an ongoing joke) Mar 05 22:56:56 i've been resisting but that sounded credible Mar 05 22:56:56 because it's hard for 5 to come before 4 Mar 05 22:57:04 didnt' say it came *immediately* after 4, did he? Mar 05 22:57:13 android 3.0 came after android 2.0 :) Mar 05 22:57:18 ctate: I recommend Jelly Babies, UK would love you ;) Mar 05 22:57:28 canadiancow|work: what is this android 3 you speak of Mar 05 22:57:31 ok, withdrawn. I blame g00s Mar 05 22:57:42 4.0 came before 3.0 for a lot of people :3 Mar 05 22:57:46 heh Mar 05 22:57:47 sigh Mar 05 22:57:49 hehe Mar 05 22:58:02 2.3.6 still comes after 4 according to some samsung devices Mar 05 22:58:09 g00s: All of the other developers on this are on Windows (I use msysgit). You're saying hg would probably be easier for them? Mar 05 22:58:21 more importantly what's K gonna be Mar 05 22:58:28 Kake. Mar 05 22:58:46 *rumor* is key lime pie Mar 05 22:59:07 MalRD: i'm not sure if easier is a better word, but hg supports windows as a first class platform, git is kinda hacked Mar 05 22:59:27 who even cares what it's called? we don't even know what's in it yet Mar 05 23:00:06 Alright, I'll go with hg then. If it is close enough to svn, they might not even notice it changed. Mar 05 23:00:22 (command wise, anyway). Mar 05 23:01:14 K is certainly not named yet. Mar 05 23:01:15 ctate has some things to say about git :) Mar 05 23:01:37 17:53:11 < g00s> lov: you are in misery with p4 ? Mar 05 23:01:37 git is superpowerful and very hard for beginners to use safely Mar 05 23:01:48 i have experienced this Mar 05 23:01:49 g00s: it is literally the worst scm I have used, with the exception of VSS Mar 05 23:01:50 i have heard that Hg is easier in that front Mar 05 23:01:57 VSS is the worst SCM simply by virtue of being VSS Mar 05 23:02:00 lov hates p4 but i'm rather fond of it Mar 05 23:02:06 p4 makes me physically ill Mar 05 23:02:20 "yo dawg i heard you want to scratch your armpit but you gotta tell the server first" Mar 05 23:02:31 hehe Mar 05 23:02:43 "wanna look at the repo with a graphical tool? HOLD UP, gotta pull LITERALLY EVERY SINGLE POSSIBLE CHANGELOG FROM THE ENTIRE SCM" Mar 05 23:02:55 vss was sooo bad … like corrupting data bad Mar 05 23:02:59 (I don't mean in the project, I mean EVERY. SINGLE. CHANGELOG. FOR. ANYTHING.) Mar 05 23:03:10 lov: as opposed to the git situation: "wanna look at the repo with a graphical tool? 80 CHARACTERS WAS ENOUGH FOR PUNCHARDS IT IS ENOUGH FOR YOU N00B" Mar 05 23:03:32 git's support tooling is a joke Mar 05 23:03:43 haha Mar 05 23:03:57 support tooling? what's that Mar 05 23:04:04 even the for-pay commercial git support toolsets aren't as good as p4v/p4merge Mar 05 23:04:06 p4 does some cool stuff but they are just now, JUST NOW, implementing a "recursive" flag Mar 05 23:04:09 I mean Mar 05 23:04:10 what the fuck Mar 05 23:04:20 "recursive"? for what, stuff like p4 add? Mar 05 23:04:26 yes Mar 05 23:04:31 p4v does that for you Mar 05 23:04:36 modified your workspace while offline, and want to know what you did? Mar 05 23:04:39 RUN A SHELL SCRIPT. Mar 05 23:04:47 [drag directory into window => p4 adds the contents] Mar 05 23:04:52 ctate: oh, hold up. Mar 05 23:04:55 no? Mar 05 23:04:57 p4v actually doesn't run on my ubuntu box Mar 05 23:04:58 maybe that's p4win Mar 05 23:05:02 as in physically cannot run Mar 05 23:05:07 ha ha ha ubuntu broke Qt? nice. Mar 05 23:05:10 because it's too busy trying to pull EVERY. SINGLE. COMIT. Mar 05 23:05:12 *commit Mar 05 23:05:17 wtf dude Mar 05 23:05:24 And this is just pressing "ok" to start the app. Mar 05 23:05:24 how do i accept a signature from a stylus through an android tablet via a webform? Mar 05 23:05:25 sounds like you're complaining about your p4 admins having screwed the pooch Mar 05 23:05:29 like that's not possible with git? ha. Mar 05 23:05:53 ctate: today's fun was a cryptic error because I forgot to sync my workspace Mar 05 23:05:57 all that said, when it comes to branch/merge git is so hugely featureful that it's a serious win Mar 05 23:06:03 it complained that the file I was deleting was deleted. Mar 05 23:06:04 if only it had a decent 3-way merge tool, sigh Mar 05 23:06:24 xdiff!!!! Mar 05 23:06:27 [and i still miss p4v's time lapse view UI at least once a week] Mar 05 23:06:34 hey ctate Mar 05 23:06:34 wabz: like i said, "decent" Mar 05 23:06:35 lets swap Mar 05 23:06:39 ;) Mar 05 23:06:41 you can take p4 and I can take git Mar 05 23:06:46 we will both be happier Mar 05 23:06:48 maybe jquery? Mar 05 23:07:10 im scar3 Mar 05 23:21:08 hm, if asus can do a nexus tablet for $200, i would get one for testing Mar 05 23:22:18 huh. the mayan calendar didn't account for leap years.. so the world has already ended Mar 05 23:22:30 oh no! Mar 05 23:22:37 we're like the last season of lost Mar 05 23:22:49 that explains Adam Sandler Mar 05 23:23:37 Hello. I have a GLSurfaceView that is child of an inflated LinearLayout, and then this layout is addView'ed to another layout. Then later this layout does removeAllViewsInLayout() and addView's it again, but the GLSurfaceView rejects to render anymore. Any hint? Mar 05 23:29:53 does the manifest's versionCode have *any* bearing other than to serve as a unique identifier of version, and to determine if Market's versionCode > installed versionCode --> should upgrade? Mar 05 23:29:58 pfn: in reference to earlier, Mar 05 23:29:58 was exactly what I needed. Took a while to find :p Mar 05 23:30:08 ie, can they be arbitrary as long as newCode > oldCode? Mar 05 23:30:34 Aaronds, interesting, is that something new... Mar 05 23:30:46 Not that I'm aware of. Mar 05 23:30:49 I was always under the impression that a single main should do it... I guess INFO is needed to Mar 05 23:30:55 pfn: since api 3 Mar 05 23:31:01 I guess there's no way to disambiguate multiple MAINs otherwise Mar 05 23:31:27 Eh well without knowing exactly what I was looking for it was hard to find. Mar 05 23:33:01 holy crap Mar 05 23:33:04 some guys been email me all day Mar 05 23:33:08 "HOW DO I DONWLOA DYOUR APP" Mar 05 23:33:14 blah blah Mar 05 23:33:24 sounds like the kinda guy you don't wanna have as a user Mar 05 23:33:25 finally "the market wont let me install it on my plabook" Mar 05 23:33:29 playbook* Mar 05 23:33:33 canadiancow|work: lmao Mar 05 23:36:41 tophyr: that's pretty much it Mar 05 23:38:21 lov: i'm trying to figure out if a generated versionCode using the versionName (in format maj.min.sub) would be a good design idea.. something like versionCode = maj * 10000 + min * 100 + sub Mar 05 23:38:47 tophyr, sounds like that'd work fin if you wanna do maj.min.pat Mar 05 23:39:02 just a little heavy on the brain to have to think about it, unless you autogenerate it Mar 05 23:39:53 i've got the project set up in my team so that release builds are built only ever from ^/tags/releases/// and i've got a script that inserts versionName based on the path in the repo Mar 05 23:40:00 canadiancow|work: ugh I got some jackass emailing me this weekend saying "hey bro, I'm uploading your app to RIM for a free playbook. Let me know if that's not cool." Mar 05 23:40:07 cool, i'll just have that script calc versionCode from that pattern then Mar 05 23:40:09 canadiancow|work: I don't know why he thought I'd be okay with that Mar 05 23:40:10 lol Mar 05 23:40:24 evancharlton, that's pretty hilarious Mar 05 23:40:35 pfn: hysterical. Until I start getting support emails. Mar 05 23:40:53 you could probably sue RIM :P Mar 05 23:40:57 unauthorized distribution Mar 05 23:41:35 canadiancow|work: that's exactly how I want to spend my time Mar 05 23:41:47 in an international lawsuit for copyright infringement Mar 05 23:42:20 if i have an ArrayList with ... lets say 10 object in it ... and now i wanna insert 4 new on the beginning ... what is the best way? to add 4 new empty objects and then move all 4 back and then insert 4 new ones at the beginning? Mar 05 23:42:33 Surfer2010, .add(obj, 0) Mar 05 23:42:43 Surfer2010: insert()? Mar 05 23:42:47 or pfn's Mar 05 23:43:00 that's the fun of ArrayList, it handles moving crap around for you Mar 05 23:43:25 .add only adds at the end Mar 05 23:43:29 or insert Mar 05 23:43:35 look up the available apis on arraylist Mar 05 23:43:36 never mind pfn Mar 05 23:43:37 :D Mar 05 23:43:39 sorry Mar 05 23:44:08 there is an add(obj) and an add(obj, position) Mar 05 23:45:06 i would suspect add(x, 0) to do a bunch of copying Mar 05 23:45:18 if you could do that once instead of 4 times Mar 05 23:45:22 then again, 10 items Mar 05 23:45:26 xorgate: it would Mar 05 23:45:28 it's an array Mar 05 23:45:36 of course it's gonna do copying if you insert at the front Mar 05 23:45:45 but for a smallish list, it's effectively whocares Mar 05 23:45:47 even for a largish list Mar 05 23:45:56 copying a chunk of memory isn't slow Mar 05 23:52:19 damnit, why don't google voice notifications ever auto-dismiss Mar 05 23:52:27 ok so my app is download images and sounds from a server, am i correct that in order to play the sound i -must- save it to disk first, then read it back as a mediaplayer source? also, there is no way to share an instance of that media file (like i could with a bitmap, by reading the bitmap then sharing the single bitmap instance/reference across multiple classes that use it) Mar 05 23:53:21 ideally i'd be able to do something like mediaobject mymp3 = readfromfile(); and then share mymp3 across multiple classes/mediaplayers, but im pretty sure there is no way, just want to make sure Mar 06 00:00:38 evenin' Mar 06 00:02:47 sup guys? Mar 06 00:06:59 is "one star spamming" a myth or does it really happen? Mar 06 00:07:33 typically, when the NDK is used, what files does are generated in the android project? Mar 06 00:08:37 I'm seeing a java.lang.SecurityException: Permission Denial: getTasks() from pid=29771, uid=10027 requires android.permission.GET_TASKS Mar 06 00:08:50 from a simple startActivity Mar 06 00:09:07 the activity runs fine, but this SecurityException is showing up in logcat Mar 06 00:09:14 any idea why that happens? Mar 06 00:09:39 does it get all of the tasks? Mar 06 00:09:43 is it showing up from your app's process? Mar 06 00:09:59 is your app calling getTasks() ? Mar 06 00:10:22 no it isn't calling getTasks Mar 06 00:10:43 okay. so what app is being refused? is it yours? Mar 06 00:11:02 'adb shell ps' will tell you the pids of all app processes, of course Mar 06 00:11:44 yeah, from my app's pid Mar 06 00:12:26 I'm trying to copy/patse teh exception stacktrace Mar 06 00:12:30 but having problems with logcat :p Mar 06 00:12:49 when I pause it, it copies the wrong lines Mar 06 00:12:53 terminal is your friend :) Mar 06 00:13:00 "adb logcat -v threadtime" FTW Mar 06 00:14:04 http://pastebin.com/SwYbi47S Mar 06 00:16:42 so it's originating from my startActivity() with an extremely standard Intent Mar 06 00:21:00 ctate: any ideas? does this even matter? Mar 06 00:21:39 so wabz works at y! huh Mar 06 00:21:44 I added GET_TASKS to my permissions which fixes it, but I'd like to remove it if it doesn't matter Mar 06 00:21:45 scary news comin' out of there, heh Mar 06 00:21:56 wabz, what version of android is it? Mar 06 00:22:06 running on a device with 2.3.6 Mar 06 00:24:01 line numbers don't match up for 2.3.6_r1 Mar 06 00:24:17 I noticed :p Mar 06 00:24:47 samsung's doing? Mar 06 00:25:13 * pfn shrugs Mar 06 00:25:20 I dont get how so much shit changed from android 4.0 on panda to 4.0.3 on panda es Mar 06 00:27:02 are there any alternatives to AudioTrack to play raw PCM data? Mar 06 00:27:20 wabz, doesn't look like it's something that'd happen on a non-samsung device then Mar 06 00:27:34 pretty annoying. I might just remove the permission and be done with it Mar 06 00:27:50 JakeWharton You around? Mar 06 00:28:25 wabz, find a non-samsung device and see if it happens :p Mar 06 00:29:43 How would one go about changing the actionbar background color for that small underlining bar under the ActionBar Mar 06 00:30:04 pfn: were you referring to the allthingsd article? Mar 06 00:30:13 wabz, no idea what that is Mar 06 00:31:09 JoeTheGuest, set android:actionBarStyle Mar 06 00:31:17 pfn this one: http://allthingsd.com/20120305/yahoos-new-ceo-preps-major-restructuring-including-significant-layoffs/ Mar 06 00:31:41 wabz, oh, dunno about that particular one, but yeah, that general layoff Mar 06 00:31:49 there's a lot to be said for allthingsd, but an awful lot of info seems to leak out to this kara person Mar 06 00:32:02 indeed Mar 06 00:32:03 we're a bit more immune to all that stuff here in .au Mar 06 00:32:09 ah, is that where you are Mar 06 00:32:10 where we're a joint venture with a tv channel Mar 06 00:32:22 might affect us a little, who knows Mar 06 00:32:32 * pfn worked at y! for a little while Mar 06 00:32:39 ah really Mar 06 00:32:49 when? ;p Mar 06 00:32:50 yeah, a couple of years with the zimbra acquisition Mar 06 00:32:51 pfn I know that much but i'm not sure what to change in that Mar 06 00:32:57 ahh right Mar 06 00:33:08 I started here 5 yeras ago, my stock options are completely useless ;) Mar 06 00:33:25 I was pretty excited when z got bought by y! Mar 06 00:33:36 I shoulda struck at like 15 or 16, and then the msft offer came in Mar 06 00:33:41 then yang said no Mar 06 00:33:43 and we all said wtf Mar 06 00:35:33 is there a way to programmatically tell if ellipsize was actually needed to be used? Mar 06 00:35:55 i want to set an onclick listener to expand the textview if it was ellipsized Mar 06 00:36:08 tbh that whole zimbra thing was pretty frustrating Mar 06 00:36:22 completely Mar 06 00:36:29 could have been awesome Mar 06 00:51:16 hmm, program before ME3 arrives, or play games and relax so that i have energy to stay up all night when ME3 arrives Mar 06 00:51:31 take a nap so you can play longer Mar 06 00:52:51 it wont arrive today or tomorrow probably, i intentionally did free shipping instead of the $1 release-date shipping, so that it wouldnt ruin my work week lol Mar 06 00:53:10 but yeah, not gonna work, just gonna end up watching trailers and crap Mar 06 00:54:12 i may try to do my audio coding tonight though, if i can figurte out the answer to my question from earlier Mar 06 00:55:03 I seem to be having trouble with an if statement and a mediaplayer Mar 06 00:55:39 whats your issue? Mar 06 00:55:49 I'm trying to make the mediaplayer stop the current sound when another is triggered, but whenever the if (mp.isPlaying()) { is triggered, eclipse highlights that line and the app frezes Mar 06 00:56:23 Logcat shows no errors and the debug tab says mp$1.onClick(View): line 30 Mar 06 00:56:49 maybe a state issue? Mar 06 00:57:30 sounds like you set a breakpoint Mar 06 00:57:44 remove the breakpoint, or run, not debug Mar 06 00:57:44 But I didn't set a breakpoint Mar 06 00:58:08 Also, I just found that if another sound is playing and I trigger it, it works, but if no other sound it playing it freezes Mar 06 00:58:32 freeze = paused Mar 06 00:58:34 paused = breakpoint Mar 06 00:59:11 I never set any breakpoints though Mar 06 00:59:24 but you did Mar 06 00:59:31 click run, not debug Mar 06 00:59:49 paste up a screenshot Mar 06 00:59:51 to prove otherwise Mar 06 01:00:26 is there a system to request google to feature an app? Mar 06 01:00:44 pfn, the app force closes when i run Mar 06 01:00:55 then pastebin the logcat Mar 06 01:01:40 if there's a force close, there's a stack Mar 06 01:02:33 http://dl.dropbox.com/u/3270519/log.txt http://dl.dropbox.com/u/3270519/pics/Screenshots/Capture.PNG Mar 06 01:02:51 you have a null pointer exception in glados.java line 30 Mar 06 01:02:56 so fix the null pointer Mar 06 01:03:28 this is line 30: if (GLaDOS.isPlaying()) { Mar 06 01:03:34 then glados is null Mar 06 01:07:56 I change it to if (GLaDOS.isPlaying() && GLaDOS != null) but the same thing with the same error Mar 06 01:08:39 how would that fix the npe Mar 06 01:08:49 learn about short circuit operations Mar 06 01:09:52 test for null before calling a method on possibly null? Mar 06 01:19:11 Is there some sort of override I could do so that my overriden FragmentPagerAdapter can "cache" let's say... 5 "views", instead of just the 3: [#1]+[#2 (ACTIVE)]+[#3]? Mar 06 01:22:19 i have a question regarding java programming in android Mar 06 01:23:13 n20, modify fragment pageradapter so that it doesn't destroy/detach any of them Mar 06 01:24:32 May I request advice regarding signing an update.zip file for the stock recovery? I have studied forums, blogs, and the Android Dev Guide with the same result "Signature Verification Failed". Mar 06 01:24:38 pfn: I guess it's a method I shall override? :-) Mar 06 01:25:44 pfn: Oh, that's nice. There's even a method for this mViewPager.setOffScreenPageLimit(int) Mar 06 01:25:56 indeed Mar 06 01:28:32 what can i to refresh a view? Mar 06 01:28:43 what can i call Mar 06 01:30:28 gnarlycs: go ahead and ask.... Mar 06 01:30:36 What is appropriate etiquette for how much duration should pass before I repost a request? Mar 06 01:31:12 ctate. i'm a five year java programmer but i know absolutely nothing about android development. i want to know where i can find the java source files in the android os so i can play around with the UI Mar 06 01:32:35 can anyone link me to an arrow like you see on this listview, http://1.bp.blogspot.com/-_2N126HCNTc/ThXAOgv9JqI/AAAAAAAAAeA/ma0Mzx_IM4Q/s320/andPic1.jpg I need it to have a transparent background(it doesnt need to look exactly the same), I can't seem to find one anywhere Mar 06 01:35:22 what up nerds Mar 06 01:35:58 hello all Mar 06 01:36:04 hi Mar 06 01:36:26 dandaman pretty sure there is an arrow like that in the android source Mar 06 01:36:31 nice nick RoadKillGrill Mar 06 01:36:38 ty :p Mar 06 01:36:43 t0mless: donde? I googled Mar 06 01:36:51 gnarlycs: the source code to Android itself? http://source.android.com/ Mar 06 01:36:58 android.R.drawable. look around Mar 06 01:37:04 right? Mar 06 01:37:05 ive used it for a good long time quake 2 Mar 06 01:37:39 or github.com/android if you want to just poke around for something Mar 06 01:39:46 Some help with Signing Applications? Mar 06 01:39:49 t0mless: that's pretty incomplete, iirc Mar 06 01:39:57 but yes Mar 06 01:40:14 can i have the imageView in my xml file Mar 06 01:40:19 and have it link to the drawable Mar 06 01:40:28 of course Mar 06 01:40:42 learn about all the tags avail to you Mar 06 01:41:13 android:src="@drawable/mydrawable" Mar 06 01:41:27 where do i get a list of the drawables? Mar 06 01:41:42 obviously the ones in my res/drawable* folders are mine Mar 06 01:41:46 dandaman: you want to access the Android drawables? Mar 06 01:41:47 and not the ones that come with android Mar 06 01:42:00 QubeZ: well that's where the arrow i need is Mar 06 01:42:00 I have been working on signing an update.zip for the E3 Recovery and it continues to fail, why? Mar 06 01:42:21 dandaman: then its like @android:drawable/ i believe Mar 06 01:42:24 http://developer.android.com/reference/android/R.drawable.html Mar 06 01:42:31 and yea Mar 06 01:42:31 you have to google it but ya, its accessible via xml Mar 06 01:42:33 it would be like that Mar 06 01:42:35 yeah that's what im looking at right now Mar 06 01:42:49 trying to find that over arrow Mar 06 01:42:50 i see arrow up and arrow down Mar 06 01:42:53 not arrow right :( Mar 06 01:44:02 Please, I would greatly appreciate any advice. Mar 06 01:44:28 * ctate | So today, we’re expanding the Android app size limit to 4GB. Mar 06 01:44:33 http://android-developers.blogspot.com/2012/03/android-apps-break-50mb-barrier.html Mar 06 01:45:13 nice. Mar 06 01:46:22 sweet, my 4gb of chuck norris jokes app is now market compatible Mar 06 01:46:26 the APK itself is still limited to 50 MB, but this formalizes support for associated asset container files ("expansion files") Mar 06 01:46:48 * ctate | On most newer devices, when users download your app from Android Market, the expansion files will be downloaded automatically, and the refund period won’t start until the entire download completes. On older devices, your app will download the expansion files the first time it runs, via a downloader library which we’ve provided below. Mar 06 01:49:29 android:src="@drawable/ic_media_play" Mar 06 01:49:39 says no resource found Mar 06 01:49:56 Application Signing? Mar 06 01:50:04 you need android prefix dandaman Mar 06 01:50:20 what android prefix? Mar 06 01:50:24 android:src="@android:drawable/ic_media_play" Mar 06 01:50:36 Please help, my phone has been out of commission for weeks and I'm desperate to fix it. Mar 06 01:51:23 Guido_: #android-root Mar 06 01:51:30 ty Mar 06 01:52:40 Thank you gratefully bankai_ Mar 06 01:53:50 damnit eclipse, behave! Mar 06 02:00:17 code in eclipse, build in maven Mar 06 02:00:21 who does it like i do? Mar 06 02:05:20 nobody? Mar 06 02:05:25 nobody builds in maven? :c Mar 06 02:05:31 ant Mar 06 02:05:33 some do Mar 06 02:05:34 I use ant Mar 06 02:09:01 wooo zynga.com went live :D Mar 06 02:10:10 there wasn't a website before? Mar 06 02:10:46 oh i hate how clicking opens a new tab/window Mar 06 02:10:47 yea but now thats like company.zynga.com Mar 06 02:11:01 isn't that old school way? to target new windows instead of the current one? Mar 06 02:11:51 i dont really know what you're talking about Mar 06 02:12:04 click on a link at the bottom like FAQ, it opens in a new tab Mar 06 02:12:07 kinda annoying Mar 06 02:12:21 QubeZ: so you want it to spawn its own window? Mar 06 02:12:27 that should be browser behavior you can define Mar 06 02:12:32 no, it should take me to the content in the same window Mar 06 02:12:34 OH Mar 06 02:12:35 hmm Mar 06 02:12:36 OHHHHH Mar 06 02:12:37 a jump Mar 06 02:13:04 ya, websites should stop doing that Mar 06 02:13:16 hmm it says i have 422 friends Mar 06 02:13:19 that seems...high Mar 06 02:13:26 canadiancow|work: you're lovable Mar 06 02:13:31 <3 Mar 06 02:17:41 I had like 500ish friends before I cut my fb, but I talked to 0 of em Mar 06 02:17:41 zynga always reminds me of zombo.com Mar 06 02:18:21 i only have like 70 FB firends Mar 06 02:18:26 so im not sure where my zFriends are from Mar 06 02:20:24 where is zynga based out of? Mar 06 02:20:34 SF Mar 06 02:20:46 that's where you are or remote? Mar 06 02:21:25 we have like >9000 offices Mar 06 02:21:29 im in the toronto office Mar 06 02:24:08 they even have an office here in Tokyo Mar 06 02:25:12 I've got a bunch of icons displayed in a list. The no side on any icon exceeds 75px, but not all of them are square. I'm trying to convert my combo to use a compound drawable. Mar 06 02:25:42 How can I set the bounds so that the drawable doesn't attempt to scale both sides of the icon? eg making a 75x50 a 75x75? Mar 06 02:28:03 guys Mar 06 02:28:03 http://d.pr/oaDJ Mar 06 02:28:03 Nighthawk: muh dok Mar 06 02:28:31 omfg Mar 06 02:28:35 Nighthawk I OWN DAT SITE Mar 06 02:33:46 hmm, how to draw a spannable string to canvas :( Mar 06 02:34:09 * BrockSamson opens the firefox Mar 06 02:34:17 lolfirefox Mar 06 02:35:27 http://d.pr/oaDJ Mar 06 02:35:28 http://the-beach.co/wp-content/uploads/2012/01/mac-mini-nigga-nigga-nigga-muh-dik.mp3 Mar 06 02:36:19 How many of you are completely self taught in Java/Android development? Mar 06 02:36:39 * t0mless is Mar 06 02:36:48 i am Mar 06 02:36:58 How long did it take you to really get a grasp on it Mar 06 02:37:11 maybe a couple months for java, another couple for android Mar 06 02:37:25 I AM RETARD IN JAVA Mar 06 02:37:30 I knew java pretty well before starting in Android Mar 06 02:37:32 COOL STORY BRO Mar 06 02:37:35 if you have a basic understanding of programming, java is easy to pick up Mar 06 02:37:37 but I hadn't used it in like 4 years Mar 06 02:38:26 I was never very good at distance learning Mar 06 02:38:43 distance learnin? Mar 06 02:39:47 anyway, when it comes down to it, if you can do one language, picking up another should be trivial Mar 06 02:39:53 Basically teaching myself Mar 06 02:39:56 Anyone having any experience with raw PCM and Android? Mar 06 02:40:22 Saban: ive pretty much taught myself the majority of what I know, school doesnt always teach you the good stuff Mar 06 02:41:21 How can I set the bounds of a drawable without modifying the underlying images aspect ratio assuming I don't know beforehand the ration of the asset/resource? Mar 06 02:41:24 I keep switching from java into android when i should just be focusing on Java, i think. Mar 06 02:41:54 I pirated a book I found on amazon Mar 06 02:41:59 about android development Mar 06 02:42:02 I'm going to read it Mar 06 02:42:06 its a .pdf Mar 06 02:42:08 =3 Mar 06 02:42:10 razorfish: please don't boast about that here Mar 06 02:42:12 pirit Mar 06 02:42:15 ilegal Mar 06 02:42:16 Saban: do you know how to program in any other language? Mar 06 02:42:26 Nighthawk: u r fukking ilegel Mar 06 02:42:31 Leeds: y pay for book Mar 06 02:42:36 I think there is a ring in hell for pirates, especially butt pirates Mar 06 02:42:40 I did some C#, but nothing really serious. Mar 06 02:42:42 book free at library Mar 06 02:42:45 Nighthawk: commonsware.com Mar 06 02:42:50 DrPenguin, i fuk but 2 Mar 06 02:42:50 Saban: oh man if you can do C# you can do Java Mar 06 02:43:01 razorfish: really... chill Mar 06 02:43:06 I finished most of Java 7 for the absolute beginner, and i just bought Sams teach yourself java Mar 06 02:43:17 See, growing up, I never had a father to teach me java. So I feel entitled to free information in pdf.... Mar 06 02:43:20 Saban: I am not convinced those Sams teach yourself books are good Mar 06 02:43:55 Leeds: yeah, mark's books are good and 40 bucks a year is pretty cheap Mar 06 02:44:05 the was working through Beginning Java 7, from Apress, same publisher as java 7 for absolute beginner Mar 06 02:44:08 DallaRosa: particularly for regular updates Mar 06 02:44:13 yeah Mar 06 02:44:15 but their code samples arent really clear when one example ends and another begins Mar 06 02:44:19 its pretty confusing Mar 06 02:44:25 Oh wow! I forgot I had a commonsware book thing.. I dont know if I have a subscription still.. Mar 06 02:44:43 I don't think it auto renews Mar 06 02:44:46 but i'm not sure Mar 06 02:44:49 it doesn't Mar 06 02:44:50 Yeah I dont think so either Mar 06 02:44:54 would you guys recommend this book Mar 06 02:44:54 http://www.amazon.com/Android-Absolute-Beginners-Wallace-Jackson/dp/1430234466 Mar 06 02:45:15 just about the only thing I know is perl and php Mar 06 02:45:21 Saban: best way to learn is to get your hands dirty and start coding :) lot sof great examples online Mar 06 02:45:38 wrong Mar 06 02:45:42 u should all learn C Mar 06 02:45:48 like real mann Mar 06 02:45:49 bankai_: exactly Mar 06 02:46:00 Nighthawk: perl is \( *¯∇¯)ノ ☆FABULOUS~☆ Mar 06 02:46:01 sry Mar 06 02:46:02 you need a certain minimum level of understanding before you can do anything useful - otherwise you're just banging your head against a wall Mar 06 02:46:02 Been doing that for a week now, I just need some imagination when it comes to trying out my own programs i think Mar 06 02:46:08 C is good too.. I used to religiously be a Java guy, but now im a C convert Mar 06 02:46:20 and my router is playing up and won't load websites Mar 06 02:46:25 brb Mar 06 02:46:31 Nighthawk; I made an app for NoTrollPlzOrg. http://i.the-beach.co/var/albums/Screenshot_2012-02-09-21-28-09.png?m=1331001955 Mar 06 02:46:38 Nighthawk, i approve Mar 06 02:46:54 razorfish: lol Mar 06 02:47:09 Nighthawk: worst part is I don't remember how i did it Mar 06 02:47:10 !! Mar 06 02:47:53 and I think anyone doing Android (or anything java related) should really take time and read "Effective Java" Mar 06 02:48:02 anybody use ndk? Mar 06 02:48:57 I think my main wall in android development is how awful java is, but I tell myself it's okay because the java implimentation in android isn't the same as a pc... Mar 06 02:49:54 that statemet makes me want to stab my eyes, repeatidly Mar 06 02:51:19 lol Mar 06 02:52:05 Yeesh, had to flush my dns server that time Mar 06 02:55:44 morning all **** ENDING LOGGING AT Tue Mar 06 02:59:58 2012