**** BEGIN LOGGING AT Tue May 01 03:00:03 2012 May 01 03:15:54 hello everyone~ May 01 03:16:51 this is my first time in this IRC channel, the reason im here is because im trying to implement a feature in my app and having a lot of trouble.... am wondering if anyone could help me... May 01 03:18:56 i have a 2D layout of colored TextViews, and right now i register each one with an onClick listener, where I invert the TextView's color May 01 03:20:00 im essentially trying to have a 2D canvas composed of colored TextViews, which the user can create 'pixelated images' of a certain size May 01 03:22:39 is there an easy way to implement an 'onmouseover' event, if you will, for a 2D layout of colored TextViews May 01 03:22:46 instead of using onClick May 01 03:23:00 i wish it were as easy as onMouseOver for javascript May 01 03:23:43 ... im having a lot of difficulty finding an answer on google, and figured someone in this channel would know :D thanks May 01 03:24:56 I've got a problem. I can't see any of my Log in Eclipse. I reinstalled eclipse and the android platform-tools and it hasn't helped. i have no idea what else to do May 01 03:26:04 adb kill-server May 01 03:26:07 adb start-server May 01 03:26:21 and you can do adb logcat to test it May 01 03:26:35 i did that May 01 03:26:39 may be a problem with ddms, and it may simply be you ahve to switch to ddms view and select the id of the device on the left May 01 03:26:43 i reinstalled platform-tools which includes adb May 01 03:26:48 i tried that doo May 01 03:26:54 too May 01 03:27:00 you are fucked. May 01 03:27:51 i created an android project and didn't modify anything except to add 1 line in onCreate which is Log.e("in onCreate()","") May 01 03:28:57 I'm running logcat from terminal May 01 03:35:54 SaulGoodman_: you use onTouch May 01 03:36:20 readme: he dcd i pmed him May 01 03:36:26 SaulGoodman_: There is an OnTouchListener that could intercept a Pending Intent if i am not mistaken but im newer to android development. so a pro might have a better way May 01 03:36:57 droidbuster: way to repeat what I just said May 01 03:37:14 i tryed it as he dc'd May 01 03:43:16 hello May 01 03:43:30 Hey thar! May 01 03:43:43 does exist a good ide to develop an app in windows 7 x64? May 01 03:43:49 Yes! May 01 03:43:53 Id reccomend using eclipse May 01 03:44:15 any special setup is need it? May 01 03:44:29 IntelliJ May 01 03:44:36 because in netbeans is a hell to setup things to work May 01 03:44:53 http://developer.android.com/sdk/eclipse-adt.html#installing May 01 03:46:45 thanks hope this thing works May 01 03:48:44 readme, I've tried to use onTouch, but am not getting the desired functionality May 01 03:49:25 readme, i've tried using it in multiple ways, but using it like i used onClick doesnt work May 01 03:50:15 it works for the first thing i touch, but when i drag my finger without lifting over other TextViews, it doesnt work May 01 03:51:31 SaulGoodman_: as a pending intent May 01 03:51:41 SaulGoodman_: There is an OnTouchListener that could intercept a Pending Intent if i am not mistaken but im newer to android development. so a pro might have a better way May 01 03:51:56 http://www.npr.org/blogs/krulwich/2012/04/25/151376553/a-most-peculiar-sunset?ft=1&f=1007 May 01 03:51:58 this is cool May 01 03:54:07 I'm missing something obvious here, but I can't add a onContextItemSelected callback to my SherlockFragmentActivity - says that method doesn't need overriding May 01 03:55:18 have SherlockFragmentActivity extend the appropriate class? May 01 03:55:23 make sure you're overriding the right method with the right imports May 01 03:55:39 SherlockFragmentActivity would be the appropriate class May 01 03:56:34 Hm well, I'm importing com.actionbarsherlock.view.MenuItem May 01 03:56:45 I'll try the android one in this method May 01 03:56:54 context menus are native May 01 03:56:56 I don't think the context menu ones need the sherlock ones May 01 03:57:05 yea, that May 01 03:58:07 Yeah I needed this one for something else in this class. onContextItemSelected(android.view.MenuItem item) worked, thanks! May 01 03:59:31 how do you get onTouch to work with finger dragging... like you start touching on element, then move your finger onto another one... it seems like onTouch isn't getting called for the element im moving my finger to without lifting it up May 01 04:00:28 i was attaching an ontouch listener to the top view, and have the listener figure out which element was being touched by looking at the x and y coordinates... but that didnt work May 01 04:00:50 so now im installing an ontouch for each individual colored textview in my app May 01 04:01:25 i have a 2D tileset of colored textviews, and am trying to get the user to be able to draw with them May 01 04:02:00 i had each one have its own onClick, where i would invert the textview's background color... but is a pain in the ass to draw but clicking each individual textview May 01 04:02:54 i wish it were as easy as onMouseOver in javascript! May 01 04:05:06 I wish I could add my chase card to my google wallet... just received my new cc and got its limited doubled.... mmmm May 01 04:07:21 basically, simply registering an onTouch listener for each TextView - instead of an onClick - is not enough to get touch detection while dragging your finger over multiple elements May 01 04:07:51 OR this is an issue with the android API level im using... which is 1.5 for compatibility issues... May 01 04:08:02 <`teh1> is there a way to render the entire screen to an image? May 01 04:08:19 <`teh1> basically screenshots, but just for my app whilst inside it May 01 04:08:54 <`teh1> OH May 01 04:09:02 <`teh1> found it way down there in the results May 01 04:09:06 <`teh1> buildDrawingCache() May 01 04:09:09 <`teh1> maybe. :] May 01 04:10:16 anyone have any idea how i could draw with my finger over a bunch of textviews instead of a canvas? May 01 04:10:35 `teh1: use that, it works great May 01 04:11:07 <`teh1> JakeWharton: sweet deal. will it capture the current frame of an animation? i know on iphone i had an issue with that May 01 04:11:08 instead of having to click each textview manually, just be able to hold my finger down and scroll over the screen and have a handler fire if i move my finger over an element? May 01 04:11:28 `teh1: yes. it happens on the UI thread so it'll block any animation in its current state May 01 04:11:34 <`teh1> √ thx May 01 04:13:46 i have a Switch, that after verifying a condition i want to .setChecked(false) in onCheckedChanged(CompoundButton buttonView, boolean isChecked), and the Switch does change from Blue to gray (Android 4 defaults), but the OnText is still shown instead of the OffText, how can i get the Switch to actually change back to the Off side programmatically? May 01 04:18:58 hello all May 01 04:19:57 after doing a complete factory wipe (via cyanogen mod), if your phone is still registered with a carrier, after the factory reset, the phone will automatically configure itself to that network? May 01 04:20:36 maybe i want to use onTouchEvent for drawing onto a 2D array of colored TextViews? May 01 04:20:57 you shouldn't be using a 2D array of TextViews if all you're doing is toggling pixel-like boxes May 01 04:21:17 it would be better to make a single, large View which you just draw the "pixels" on May 01 04:21:35 i ask because i'm trying to wipe a phone to get it ready for a hack night, but my service doesn't end till the end of may, and i saw the carrier and phone number pop up in the about phone stats May 01 04:21:38 then you would be able to support dragging May 01 04:21:47 ff7f00: ask in #cyanogenmod maybe? May 01 04:21:52 they could probably direct you better May 01 04:22:38 JakeWharton: will do, thought maybe this was more of a higher level android specific functionality May 01 04:22:50 we're mostly app developers here May 01 04:24:08 or support library developers >.> May 01 04:25:53 hello May 01 04:26:30 how do i finish an activity by passing a message from another activity? May 01 04:26:45 Intents May 01 04:27:03 or do you mean pass a result back to the activity that started the other one? May 01 04:27:11 send a broadcast telling the other activity to finish May 01 04:27:20 because then you use startActivityForResult() and setResult() May 01 04:27:35 no, i am making a rock, paper, scissors game.... May 01 04:27:39 ha, all it needs is .setOffText("") to be set and it snaps back where i need it May 01 04:28:04 when i press play again button on player 1's phone.... May 01 04:28:31 i need to send a message for player 2's phone to switch to a different activity May 01 04:28:46 using bluetooth to connect them May 01 04:28:51 sounds fun May 01 04:29:32 so i need to finish player 2's current activity and have it move to another May 01 04:29:44 from the first players phone May 01 04:31:01 i am using a handler to pass messages but when a different activity is used it doesn't seem to pass messages correctly..any ideas? May 01 04:31:35 handler doesn't send messages to another activity May 01 04:32:09 so how can i send the messages then? May 01 04:32:29 send a broadcast May 01 04:35:35 so i used extend BroadcastReciever but i already have an extend parameter can i have multiple? May 01 04:36:14 noob00123, use a nested class May 01 04:37:36 has anyone used ActionEvent.ACTION_MOVE in a onTouch() listener? May 01 04:37:54 having trouble getting views im dragging my finger over to fire May 01 04:38:06 so i don't use : public class RPSgame extends BroadcastReceiver { May 01 04:38:51 SaulGoodman_: since u come and go as u please google the android open source drag and drop May 01 04:39:37 droidbuster, thanks, I have seen your past replies but they've confused me a bit... I will check that out right now May 01 04:39:37 noob00123, you should read thinking in java May 01 04:40:22 SaulGoodman_: on phone and not very exp but know other languages May 01 04:40:25 never used a nested class before will look into thanks for your help May 01 04:40:32 every thing breaking bad related just pisses me off May 01 04:40:47 way too long before seasons, and they are going nuts over advertising it May 01 04:40:50 droidbuster, oh wow, i didn't know DragListeners exist in android... that might be what i need May 01 04:40:57 3.1+ May 01 04:41:01 3.0+ May 01 04:41:50 SaulGoodman_: irc + google the best helpers May 01 04:41:56 thanks pfn for your help May 01 04:42:55 droidbuster, ive written a lot of code in the past 10 years, and usually NEVER have to look beyond google... but in this case, im having trouble finding information May 01 04:46:17 dude last I played with drag and drop in android May 01 04:46:20 it was buggy as fuck May 01 04:50:57 yeah, it seems a little complicated... maybe i will catch an onTouch when the user starts touching, then inside the onTouch call onDrag, and then when another view receives an ACTION_DRAG_ENTERED, i will invert that views color May 01 04:52:13 the problem is that im not trying to move anything, just detect that a user moved there finger over a view(s) May 01 04:52:25 and onTouch doesn't seem to do the trick May 01 04:53:01 it only works for when i first put my finger down on a view, as soon as i start sliding it over other views it doesn't fire for those views May 01 04:55:51 this stackoverflow post pretty much sums up what im trying to do: http://stackoverflow.com/questions/4222528/ontouchevent-how-to-get-curret-view-under-finger May 01 05:05:38 interesting, http://news.ycombinator.com/item?id=3912573 May 01 05:07:35 if i understand google correctly, they take a chaordic and evolutionary approach to things; its kinda like tech darwinish there. they don't see a problem pushing 2 strategies that are at odds; web apps vs native stuff on android May 01 05:07:56 truth be told though, i think they would prefer everything to just be on the web May 01 05:09:06 okay... I've got me a gigabit of home internet, and I'm currently downloading SDK stuff at 5 KiB/s May 01 05:09:17 hmm May 01 05:09:45 maybe somebody fregged up your fiber coming off the seafloor May 01 05:09:48 *dregged May 01 05:10:08 So.. noob question, here. How do WebApp things do anything interesting? E.g., open a file or use some hardware? May 01 05:10:22 rking: they don't May 01 05:10:35 but 95% of the apps out there are not interesting May 01 05:10:55 Hrm. Then there must be a way to hook them into such stuff.. e.g., make a Java side of it that listens on a port for connections from the WebApp side ? May 01 05:11:04 i bet, 90% of the apps in the android market simply don't need to exist, and they could exist as a webapp if they needed to May 01 05:11:10 there are tons of crappy frameworks that already do that May 01 05:11:18 Hehe May 01 05:11:43 myself, i'm not really interested in webapps personally May 01 05:12:05 i tend to like to do things with sensors, capabilities of the phone not accessible unless going the native route May 01 05:12:11 Right. May 01 05:12:33 And also an example of something where you wouldn't expect a high degree of portability to iOS. May 01 05:12:52 Or maybe so - I suppose some things could be abstracted. May 01 05:13:12 yeah. one thing that makes mobile so interesting is - unlike a desktop sitting in the same place, a mobile device has context - and sensors are part of measuring this context May 01 05:13:27 there could be basic abstractions for geolocation, of course May 01 05:13:36 but what about a barometric sensor ? May 01 05:13:59 i think these sensirion hybrid barometer / thermometer sensors will begin popping up in phones soon May 01 05:14:07 anyone here happen to know how to detect which view your finger is sliding over? onTouch is only working when i first put my finger down on a view, but when i start moving it over other views it isn't firing May 01 05:17:03 http://i.imgur.com/UHy9O.jpg May 01 05:17:04 :D May 01 05:19:16 g00s: ... food? May 01 05:19:25 optimistic goose :) May 01 05:20:11 recently ducks joined the "student emergency food pool" at my dorm May 01 05:20:12 Schadenfreude g00s. May 01 05:22:01 what causes the BuildConfig DEBUG flag to be false? May 01 05:22:16 when using a traditional ant-based setup May 01 05:27:48 is it the build.target property that controls it? May 01 05:30:22 hi all May 01 05:30:29 getting " No such file or directory from '/home/amro/bin/android-sdk-linux/platform-tools/adb' - exists=true" May 01 05:30:33 even though the file exists May 01 05:30:57 heres the reddit post that outlines my problem in more detail: http://www.reddit.com/r/androiddev/comments/t152j/trying_to_get_current_view_under_my_finger/ May 01 05:31:09 if anyone could try to help me out I would really appreciate it! May 01 05:31:09 JakeWharton, why are you diddling with the ant rules? May 01 05:31:14 adb: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, stripped May 01 05:31:26 but if I do ./adb, I get bash: ./adb: No such file or directory May 01 05:31:37 pfn: so that I can update the maven plugin to generate the file properly May 01 05:31:38 JakeWharton, it's ${build.is.packaging.debug} May 01 05:32:15 hmm how can i get the default exposure the camera should be on, passing 0 keeps what it was May 01 05:32:22 I don't see how it's relevant, though, since maven doesn't use ant rules... May 01 05:32:26 or does it? May 01 05:32:43 no, i'm just trying to figure out what part of the tooling actually does it May 01 05:33:02 JakeWharton, it's the task May 01 05:33:11 JakeWharton, just use sbt and be happy ;-) May 01 05:33:26 maven makes me happier May 01 05:33:27 then you don't have to use this maven silliness May 01 05:33:36 they're exactly the same thing May 01 05:34:02 (better than ant) May 01 05:34:02 yeah, 'cept my sbt plugin already generates BuildConfig.java May 01 05:34:20 and the maven plugin will in about 5 minutes too May 01 05:44:38 actually, no it won't May 01 05:44:41 turns out we don't need it May 01 05:44:42 woot May 01 05:44:56 i should still probably do it but… that's for tomorrow jake to accomplish May 01 05:52:43 <[SP]JESTER> hey everyone May 01 05:52:55 <[SP]JESTER> what is the default htc task manager filename? May 01 05:56:37 <[SP]JESTER> damnit wake up lol May 01 05:58:41 SaulGoodman_: ??? figure it out May 01 06:02:22 <[SP]JESTER> anyone?? May 01 06:05:07 SaulGoodman_: ??? figure it out May 01 06:05:41 sp ask in android-root May 01 06:38:14 can you add a context menu for a long press on a map view ? May 01 06:40:05 I hear context menus are not recommended any longer in 4.x May 01 06:40:30 especially for long presses May 01 06:40:32 then what is recommended ? May 01 06:41:27 https://www.google.com/search?q=site%3Aandroid%3Acom+long+press+context+menu May 01 06:41:48 no i was asking what is recommended in its place ? May 01 06:42:01 I don't remember what I read about it May 01 06:42:15 3-finger slide gestures, probably... May 01 06:42:24 oh well doesn't matter May 01 06:43:31 I can't remember where on d.android.com I read it May 01 06:43:45 Could have been fragments, but I don't think so May 01 06:43:47 * pragma- shrugs May 01 06:53:39 ActionModes are recommended now May 01 06:53:54 can I use Robolectric with pure junit? May 01 06:54:04 it seems to always want an AndroidManifest.xml file May 01 06:57:29 ha, one-line AndroidManifest.xml and empty R.java in com/example/ and it's fooled May 01 06:58:56 hax May 01 07:00:06 they should just make it optional May 01 07:01:17 Standard answer: Patches welcome May 01 07:01:26 :) May 01 07:01:31 :p May 01 07:07:19 the 30% cut google takes. thats not with VAT right? May 01 07:07:27 the vat isnt included? May 01 07:08:26 the vig May 01 07:08:54 Zooklubba: vat will be included in some places May 01 07:09:16 I don't remember the details, I think you have to specify if you're VAT payer May 01 07:09:21 p_l, I dont mean the price I chose. I chose to include VAT in the price the customers pay (if they are in the EU) May 01 07:09:22 (and in which country) May 01 07:09:31 ah May 01 07:09:32 I mean the cut that google takes May 01 07:09:42 It is 30% of the original price, no matter who buys it. May 01 07:09:49 Zooklubba: I think it *must* be after VAT May 01 07:10:10 SimonVT: we have our own Robolectric. I'll just patch ours :D May 01 07:10:22 There you go :P May 01 07:12:16 p_l, if your guess that Google's 30% includes VAT? May 01 07:12:24 not sure what you mean with after :P May 01 07:14:10 price paid by customer -> VAT -> google's 30% -> you May 01 07:15:08 Googles 30% is based on the original price, excluding VAT. But the cash google takes, the 30%, is THAT including vat? That is my question :/ May 01 07:15:12 at the end of the month you get a check for $0.67 May 01 07:15:40 wouldn't make sense May 01 07:15:45 IMHO May 01 07:15:56 what's so humble about your opinion? May 01 07:16:09 I think it's 30% of the price you set May 01 07:16:15 Yes it is May 01 07:16:32 so the only case of it including VAT is if you don't use Market's support for VAT May 01 07:16:41 and manually adjust May 01 07:16:42 But the question it was kind of money it is. if it's a price they take for issuing hte service May 01 07:16:55 they should pay VAT I guess with those 30% May 01 07:17:14 is that what they should do? May 01 07:17:18 aaaaahhh May 01 07:17:39 I think you need a tax advisor :) May 01 07:17:39 Well it depends on the country and stuff like that I guess pragma- May 01 07:17:42 lol May 01 07:18:09 I have spoken to the IRS, they have no idea at all. And others dont either. People only seem to guess based on facts. May 01 07:18:22 I thought there were only two countries that use android: UK and US May 01 07:19:03 I guess JP too May 01 07:19:12 they practically are androids May 01 07:20:37 Not really. May 01 07:20:42 Your thought was wrong May 01 07:21:40 :( You don't have to be so mean about it. May 01 07:22:08 My mommy said there are no wrong thoughts, just special ideas. May 01 07:22:22 she was also wrong May 01 07:22:34 My mommy was not wrong! May 01 07:23:34 is it me, or is it fucking retarded that Calendar.add(x,y) takes an int for y instead of a long May 01 07:24:02 Don't worry, 12/21/2012 fits in an int May 01 07:31:10 http://www.wired.com/gadgetlab/2012/04/easier-design-apps-ios/ May 01 07:41:54 hi all, I'm curious if there is a way to set the number of 'pixels' in a canvas, as well as its size May 01 07:43:03 my app is for drawing pixelated images... so I have to modify a drawing app so that it draws according to the number of pixels the image is supposed to be WITHOUT sacrificing size May 01 07:43:08 anyone know how I could do this? May 01 07:43:42 SaulGoodman: these two factors are not independent, they are in sense the same thing May 01 07:43:55 size is related to number of pixels by the dpi value of the device. May 01 07:44:03 so you can't set both of them May 01 07:44:35 I think what you are asking is more like "I want to take a canvas of x*y pixels and then display it at size x2*y2". That can be done, of course, but it implies more scaling than is optimal. May 01 07:44:53 yeah, i suppose May 01 07:44:58 first you fit your image data into the x*y canvas, then you display that at some completely different size. It's better to render directly at the x2*y2 pixel size. May 01 07:45:14 the fact is, i need a way to have the user draw a pixelated image, and have the app be able to get at the data May 01 07:46:24 since user can not draw an image without your program agreeing to making this possible and passing the draw commands, I do not see what the issue is. May 01 07:46:55 if user moves finger on touchscreen and that results in something appearing on the screen, I assume it is your program doing the work making that possible. How could you not "get at the data" in that case? May 01 07:48:09 and anyway if you have the draw commands to work with, those are much superior compared to the pixel result. I'd rather save them than the resulting bitmap if I were you. May 01 07:48:36 you can always reconstruct a close approximation of the image later from them, but doing the reverse work is in general terms impossible May 01 07:50:00 right now i have a 2D grid of textviews that the user taps, in which he creates an image May 01 07:50:28 are you insane? :) May 01 07:50:31 the reason it needs to be a certain dimension is that the images created are being displayed on a digital waterfall May 01 07:50:51 and i want the user to see exactly what they draw May 01 07:50:55 hum... let me get this straight. You have something like n*m widgets? May 01 07:50:59 on the screen? May 01 07:51:02 yeah May 01 07:51:05 that's crazy May 01 07:51:09 they are TextViews with a certain color May 01 07:51:14 right now its 45x45 May 01 07:51:32 the issue is i want the user to drag their finger May 01 07:51:42 and when it goes over a certain view, the color inverts May 01 07:51:43 you have over 2000 textviews in a grid????? May 01 07:52:04 yes lol May 01 07:52:10 in a tablelayout May 01 07:52:14 nothing to laugh about May 01 07:52:19 that genuinely is insane May 01 07:52:35 oO May 01 07:52:43 IF i can get the canvas to haold a certain number of 'points', its easy to draw May 01 07:52:44 yeah, pretty much the stupidest possible implementation given that it could be just a simple SurfaceView with ontouchlistener or something May 01 07:53:22 so you think i should go with SurfaceView May 01 07:53:38 and you can render your "pixelated" image at any resolution with your surfaceview, as the entire rendering can be customized May 01 07:53:48 you probably want to draw rectangles on the screen that represent your individual pixels May 01 07:54:57 can even leave a little space between them to make it easier to see the structure of the image May 01 07:54:58 so just have a surfaceview with an ontouch listener, and when it gets touched, calculate what region it is, and show a rectangle for that region's 'pixel'? May 01 07:55:21 not "show", what you do there is handle the touch. Whatever it means for you, invert a pixel, etc. May 01 07:55:46 the rendering is a separate problem, but in general terms the onDraw will probably do 45*45 rectangle drawing operations. May 01 07:56:11 this does smack a little bit suboptimal. It's possible also to just scale a bitmap image over the surfaceview May 01 07:56:51 but it's easier to write in this rectangle-by-rectangle style. Maybe you could use damage events -- if android supports them -- to optimize the rendering to reduce amount of work it must do. That could be important if you want to change resolution up someday May 01 07:57:40 my recollection about android is that I just call invalidate() and it must render the whole thing May 01 07:57:49 maybe there's invalidate(Rect) or something May 01 07:58:16 indeed there is May 01 07:58:58 hmmm May 01 07:59:00 but first write the dumb implementation, then later handle partial updates May 01 08:03:25 also one pro tip with SurfaceView: setWillNotDraw(false). This annoying flag is badly named and is true by default, meaning all surfaceviews are not going to actually visually appear until you fix it May 01 08:13:43 anyone using jsr 310 stuff with android ? May 01 08:17:23 which one is that May 01 08:17:25 amazing it takes until java 8 to have non - fucked date/ time stuff May 01 08:17:33 new time / date handling May 01 08:17:46 pretty sure it's just jodatime May 01 08:17:49 http://sourceforge.net/apps/mediawiki/threeten/index.php?title=ThreeTen May 01 08:17:51 in which case i've been using it for years May 01 08:22:04 doesn't seem like jsr 310 is joda May 01 08:23:35 you're right May 01 08:23:36 looks worse May 01 08:23:58 API is close enough May 01 08:24:29 Stephen Colebourne is involved in both May 01 08:33:36 JakeWharton: do you use proguard? and if so, do you add the bin/proguard/mapping.txt file to git ? May 01 08:37:15 no. and nothing in bin/ should ever get into git May 01 08:37:36 how would you baseline the mapping.txt file with a release ? May 01 08:37:45 i have git/ in .gitignore May 01 08:37:49 oops, bin/ May 01 08:38:04 but i add -f bin/proguard/mapping.txt May 01 08:38:16 why? May 01 08:38:41 where else would you put the mapping file ? May 01 08:38:52 i have no idea what it is May 01 08:38:54 so i don't know May 01 08:38:56 ah May 01 08:41:51 :D May 01 08:43:09 it's late May 01 08:43:10 again May 01 08:43:26 As always May 01 08:44:30 trying to mix maven and ant projects in IntelliJ May 01 08:44:50 it's not working so well May 01 08:44:52 haha May 01 08:45:02 and it's mostly the ant projects' fault May 01 08:45:17 tempted to mavenize the whole thing at once May 01 08:45:40 Pfft, too easy :p May 01 08:45:57 its not late :) May 01 08:46:11 it would be really easy, except for when all my coworkers rebased their branches and had a billion merge conflicts May 01 08:46:14 baby steps May 01 09:39:50 hi all May 01 09:39:54 Hey people, I am inserting data from json object into my sqlite db. Unfortunately are some values null strings. I wonder if I can sqlite bring to convert "null" to "" automatically? May 01 09:41:25 has anyone implemented braintree payments in the android application ? i need help ,i want to implement braintree payments in my android application?can anyone help me May 01 09:43:18 has anyone here used SyncML protocol? May 01 09:43:42 I'm interested to learn whether it's really any good for synchronization of data and files May 01 09:44:34 hackkitten: probably it isn't May 01 09:45:10 Ge0rG > the limitations listed by the Wikipedia article make it seem kinda... fragile May 01 09:45:17 hackkitten: if you need it on android, have a look at funambol-sync, there is an android syncml client that might be able to sync contacts etc, including files May 01 09:45:45 yeah, looking through the available clients May 01 09:45:48 hackkitten: IMHO, it is horribly overengineered May 01 09:45:53 heh May 01 09:46:01 hey anyone implemented braintree payments in android apps? May 01 09:46:07 mephju: I'm no SQLite guru, but wouldn't it make more sense to make sure the JSON data has non-NULL values or go through all the values and put "" in where you find NULL? May 01 09:46:28 Ge0rG > yeah, the wiki article mentions 'intricate and vague protocol specification' :) May 01 09:46:34 http://en.wikipedia.org/wiki/SyncML May 01 09:46:44 * hackkitten thinks she'll design her own sync protocol for this one May 01 09:46:57 drlaban, of course I could do that. but I am afraid that would be significantly slower than an approach on the DB level May 01 09:46:58 rather than use this half-broken... thing May 01 09:47:33 drlaban, but maybe I will override the optString methode and make sure I convert null to "" May 01 09:47:37 hackkitten: yeah. if you are interested in a highly subjective experience with syncml as a user, http://op-co.de/blog/posts/egroupware_syncml/ May 01 09:48:11 * hackkitten plugs in~ May 01 09:48:12 :) May 01 09:49:10 the limited interoperability is a big flaw, yeah... May 01 09:51:16 "read: it interoperates with other implementations only by chance" May 01 09:51:20 love that :) May 01 09:51:57 that's the general impression I get too... it's pretty much like there is no real protocol, just lots of dialects of a barely specified protocol May 01 09:56:03 hackkitten: my favorite client bug though was: https://core.forge.funambol.org/ds/getDSMessageAttachment.do/attachment-166945?dsForumId=402&dsMessageId=138425&dsAttachmentId=166945&dsAttachmentMime=text/plain (unfortunately, funambol-forge fails at PGP/MIME) May 01 09:58:27 Ge0rG > that's a doozie :) May 01 10:00:13 * hackkitten wonders whether Android users are simply content syncing with the Google servers May 01 10:00:26 Hi everybody May 01 10:00:30 you'd think that syncing with a desktop calendar might be nice May 01 10:00:41 though they're probably just using Google Calendar for that May 01 10:00:43 hi wathek May 01 10:01:00 I'm trying to install the ADT Plugin on Eclipse Indigo but after it installs it I have no Android option in Window->Preference window May 01 10:01:49 wathek > do you see the Android SDK Manager option the Window menu dropdown? May 01 10:01:56 hackkitten: I'm doing all I can to use my own infrastructure for syncing my stuff... May 01 10:02:37 Ge0rG > same for me. I'm just embarking on a new sync client/server project at the request of a bunch of people May 01 10:02:43 so apparently there is some demand May 01 10:02:50 hackkitten, nope May 01 10:02:51 hackkitten: have you had a look at owncloud? May 01 10:03:01 nope, Ge0rG. What is it? May 01 10:03:09 hackkitten: http://owncloud.org/ May 01 10:03:12 wathek > seems like the install failed then... maybe try to reinstall it? May 01 10:03:12 hackkitten, in the Window->Preference window there's no Android SDK Manager May 01 10:03:38 it seems no one is having some experience implementing braintree payments in android apps? May 01 10:03:54 hackkitten, I tried that when I go to Help->Install new software and I select the Android Repo it says that everything's going to be ignored since that it's already installed May 01 10:03:57 hackkitten: http://wiki.debian.org/FreedomBox might be relevant to you as well May 01 10:04:09 wathek > maybe restart Eclipse? May 01 10:04:22 hackkitten, already did that May 01 10:04:51 and you're using the latest version of Eclipse, wathek? May 01 10:05:02 yes May 01 10:05:09 Android03 > not me, sorry :( May 01 10:05:17 hackkitten, 3.7.2 May 01 10:05:41 hackkitten: its ok May 01 10:05:54 wathek: I'm running this version of Eclipse: May 01 10:05:54 Version: Helios Service Release 2 May 01 10:05:54 Build id: 20110301-1815 May 01 10:06:15 hackkitten, ok going to download Helios May 01 10:06:37 :) May 01 10:07:02 hackkitten, thank you May 01 10:07:11 Ge0rG > that freedombox project seems rather ambitious :o May 01 10:07:14 no problem, wathek :) May 01 10:08:33 hackkitten: please let me know if you find other projects aimed at creating a personal cloud infrastructure :) May 01 10:09:15 Ge0rG > I shall :) I think I'll commence with designing the protocol and architecture for my project today. See what it leads to :) May 01 10:09:22 * hackkitten has to come up with a good name for it too May 01 10:09:28 always the hardest part :( May 01 10:16:48 hi May 01 10:22:36 has anyone implemented braintree payments in android app? May 01 10:31:17 hi May 01 10:32:41 can anyone offer advice on the easiest way to implement a pixel art drawing application? May 01 10:40:21 can anyone offer advice on the easiest way to implement a pixel art drawing application? May 01 10:41:01 right now ive implemented it with a bunch of individual TextViews, but i cannot get the desired finger dragging effect, just onClick May 01 10:41:30 SaulGoodman > you should probably use a custom view surface May 01 10:41:35 handle the drawing and such yourself May 01 10:41:51 that way you are free to handle input the way you want too May 01 10:41:53 was thinking about creating a single view and splitting it up into NxM regions, detecting when the finger enters the region, and then either display a rectangle/hide it May 01 10:42:45 not sure how to detect constant finger down motions... maybe check if the last touch point was within the region, and if not display/hide the rectangle? May 01 10:44:52 with my current implementation, i cannot figure out how to track constant finger swipes across multiple elements May 01 10:45:11 onTouch only fires for the first view i touch, but as soon as i move my finger to other views, it doesnt fire May 01 10:45:52 and so im resorting to having the user tap a tile if they want it ON/OFF... which makes drawing a bit annoying and slow May 01 10:48:57 SaulGoodman: I'm not sure about this, but I think events propagate up the view hierarchy May 01 10:49:08 so if you define the listener on the container view containing the elements May 01 10:49:15 it would work May 01 10:50:30 I'm looking to have some code roughly equivalent to entering this url into a web browser. The idea is that android does a http post. http://localhost:8080/form0?lat=1&speed=0&lon=8999&nLap=False&time=4045.0 is the url i sort of expect, however, this code ( http://bpaste.net/show/28189/) is causing an IO exception of "Connection to http://localhost:8080 refused". Dont' worry, i'm doing it in an intent service May 01 10:50:31 MDijkstra: so i have a bunch of TextViews inside a tablelayout May 01 10:51:03 I know i'm slightly confusing my Get and Post in that url May 01 10:51:03 MDijkstra: so i would install a onTouchListener to the top layout (there are a bunch of tablerows as well) May 01 10:51:40 SaulGoodman: yes, I guess. I know it works this way on iOS and I'm assuming it's the same on android May 01 10:51:51 but I'm not sure May 01 10:51:52 MDijkstra: im just not sure how i would handle the inside of that listener May 01 10:52:06 SaulGoodman: well, you know the children's positions May 01 10:52:16 SaulGoodman: so you're able to tell which element was tapped May 01 10:52:22 MDijkstra: i basically have to detect if the user's finger moved over a textview, and if so, invert the color May 01 10:53:18 MDijkstra: to clarify, i got this working with onClick, but I want the user to be able to drag their finger over different TextViews and toggle their colors that way May 01 10:53:27 SaulGoodman: if you're still even considering for a moment using 2000 textviews... you should probably get yourself some professional medical help May 01 10:53:28 ie, you can do (pseudocode) for(view in children) if(view.isInside(touch)) { ..do stuff.. } May 01 10:54:05 well, i can't figure out how to do it otherwise May 01 10:54:09 ah, someone is still working with that insane 45x45 textviews-in-a-grid May 01 10:54:38 i really dont care about performance, just want it to work May 01 10:54:41 SaulGoodman: also, see http://stackoverflow.com/questions/6914592/awkward-touch-event-propagation-between-views May 01 10:54:55 the top answer May 01 10:55:28 see, there's "don't care about performance" and there's "what's the worst possible way in all possible universes of implementing this simple thing" May 01 10:56:12 Leeds: I believe you are underestimating programmer creativity somewhat. May 01 10:56:29 alankila: okay, hyperbole - but my point stands May 01 10:57:10 I need a word which is the opposite of primary but not secondary, tertiary and so on May 01 10:57:32 anyone here using ActionBarCompat ? May 01 10:58:47 crickets May 01 10:59:12 MDijkstra: so, essentially, once an onTouch gets fired for one view, if you move your finger to another, further onTouch events only occur for the original view May 01 10:59:19 MDijkstra: is there anyway i can get past that? May 01 11:00:24 yes, capture touch events in a single view that is overlaid on top of the screen and in fact renders also the pixels May 01 11:03:14 anyone know how i can use the 'arial rounded mt bold' font on android? calling setTypeface with that font loaded from assets doesn't seem to work :/ May 01 11:03:23 like, it changes the font to something entirely different May 01 11:05:36 scratch that - it seems to work on the phone, but no the emulator May 01 11:12:23 has anyone implemented braintree payments in android app? May 01 11:13:32 Android03: try getting support from braintree ;) May 01 11:14:13 they don't reply May 01 11:21:31 * hackkitten glomps g00s~ May 01 11:22:02 hi hackkitten :) May 01 11:22:43 SimonVT: are you here ? May 01 11:22:48 I am indeed May 01 11:22:49 :) May 01 11:23:01 * p_l pets hackkitten May 01 11:23:14 SimonVT: quick q = you wrote that java thingy to move assets into res/drawable-*, correct ? May 01 11:23:24 Yeah May 01 11:23:57 for version control, how are you excluding those things - since they are generated ? May 01 11:24:25 for myself, i just never added them to git - but in order for the app to run, the stuff has to be there - and then git status shows a ton of shit which is annoying May 01 11:24:30 res/drawable*/*.png May 01 11:24:42 Like that May 01 11:24:49 In gitignore May 01 11:25:09 oh yeah, dang - you do everything. thats right May 01 11:25:29 i have some pngs which stay there, and all the stuff rasterized from svg gets copied in May 01 11:25:33 Yeah, it was getting a mess with a mix of generated and non-generated drawables May 01 11:25:38 * g00s needs to figure something else out May 01 11:25:44 So just opted to move everything May 01 11:25:48 :) May 01 11:26:22 hey guys May 01 11:28:00 ali : hi May 01 11:32:23 * hackkitten pets p_l back~ May 01 11:32:24 :) May 01 11:43:19 fucking android May 01 11:43:36 hate it when it just bugs out on you May 01 11:44:27 thats quite often :) May 01 11:44:42 storkme: you need to glomp your phone May 01 11:44:52 let hackkitten show you how May 01 11:45:30 i am about to headdesk it May 01 11:45:33 or something May 01 11:45:56 anyone know anything about custom fonts on android? May 01 11:49:08 like my typeface is loading, i'm setting the typeface on all of my respective buttons, yet none of them have a typeface enabled May 01 11:49:14 there are no errors to speak of in log cat May 01 11:51:55 * hackkitten wobbles on top of g00s's head :3 May 01 11:52:32 guys I will need to port java program to Android which uses buffered image are there any problewms with it? May 01 11:54:27 buffered image meaning? May 01 11:55:48 hackkitten: buffered image class from standard java May 01 11:56:40 from my quick reserach a I need to use BitMap and hopefully it wil have same possibilities May 01 11:59:11 storkme: all ttf files usually just work May 01 11:59:31 hmm, this doesnt' seem to be working May 01 11:59:50 a value returned in an intent from startActivityForIntent doesnt' seem to be working May 01 11:59:58 or actually, the recieving part doesn't seem to be working May 01 12:10:26 Hmm, what are some possible causes of an activity started for an intent failing to return properly? May 01 12:10:51 Since i'm trying to return when the back button is pressed, i'm overwriting onBackPressed May 01 12:17:23 Jak_o_Shadows: that's what the back button already does May 01 12:18:53 Specifically, if i ignore RESULT_OK and try to access it anyway, i get 05-01 21:46:59.930: E/AndroidRuntime(1950): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=3, result=0, data=null} to activity {localhost.displayTest/localhost.displayTest.start}: java.lang.NullPointerException May 01 12:19:46 wongk: I want to some stuff from the new activity to get transferred back to start activity. May 01 12:20:14 sure, startActivityForResult May 01 12:20:16 so i'm making an intent, doing setResult(returncode, intent_with_data_as_extras), then finish() May 01 12:20:22 yep, doing that May 01 12:20:59 java.lang.NullPointerException where, exactly? May 01 12:21:25 rciovati: Probably when i'm trying to access data from a non-existant intent. May 01 12:21:44 in onActivityResult, then? May 01 12:22:04 yep, after I disregard checking RESULT_OK May 01 12:22:36 the label you use to set and get the intent's extra is the same? May 01 12:22:45 ops, not it isn't that May 01 12:22:47 yes. May 01 12:23:28 Jak_o_Shadows: if you want, post a few code May 01 12:23:34 so on what line is it throwing the exception and what can be null there? May 01 12:24:25 do not call finish May 01 12:24:59 why not May 01 12:26:15 http://bpaste.net/show/pG5Pd1IohVvED1jIOK4U/ May 01 12:26:18 Severly trimmed. May 01 12:26:53 er May 01 12:26:57 this is interesting May 01 12:27:07 also wrong May 01 12:27:11 ah. May 01 12:27:16 That would explain the failing? May 01 12:27:32 first, stop overriding onBackPressed May 01 12:27:46 why getParent? May 01 12:28:06 that's what's causing the crash May 01 12:28:19 rciovati: Some random code on the net that made no difference. Before I was merely going setResult May 01 12:29:48 why are you even using the intent? seems to disregard the purpose of SharedPreferences May 01 12:30:35 The shared preferences is just so that the data is already there next time you open the app. May 01 12:30:50 not for communicating back. May 01 12:31:07 it can easily serve both purposes May 01 12:31:15 true. May 01 12:31:16 Jak_o_Shadows: try using onKeyDown instead of backPressed May 01 12:31:33 yep May 01 12:31:36 thanks for your hlep May 01 12:31:37 cya May 01 12:40:26 man I hope I don't have to maintain that code. May 01 12:40:49 that would be unusual :P May 01 12:41:07 thankfully one of my contracts, the client lost the source to the app May 01 12:41:09 so I can rewrite it May 01 12:41:33 this app, if you saw it, you'd know the source was going to be bad news :).. uses px dimensions for layouts, and other atrocities May 01 12:41:42 drops all database tables on upgrade May 01 12:41:48 are all andorid ower adapter sinterchangable? May 01 12:41:57 can i plug my nexus one into the power thing that came with htc flyer? May 01 12:42:14 are they both microusb? May 01 12:42:14 I believe it's just like a USB port May 01 12:42:26 I use them interchangably, with no issues. May 01 12:42:33 yeh both micro usb May 01 12:42:40 then it's fine May 01 12:42:45 oh great May 01 12:43:19 actually May 01 12:43:26 sony sent me a european adapter with my liveview :| May 01 12:43:27 weirdly it doesnt fit May 01 12:43:47 even tho i use same data cable on em both May 01 12:43:50 that would be unusual May 01 12:44:00 metal isn't static May 01 12:44:06 it can expand and contract May 01 12:44:25 but if it fits one, it should fit the other :P May 01 12:44:36 maybe he is afraid to use the necessary force May 01 12:44:38 think its differen May 01 12:44:43 show pics May 01 12:45:29 or gtfo? May 01 12:45:31 http://i1.expansys.com/img/g/210059/htc-flyer-ac-adapter-with-extmicro-usb-connector.jpg May 01 12:45:34 this adatper May 01 12:46:08 at that angle, it doens't look like a mirco usb May 01 12:46:11 it has a weird cut in the bottom May 01 12:46:16 yeh it is weird May 01 12:46:32 whats nexus one port May 01 12:46:35 kinda flat usb May 01 12:46:43 this black data cable i got fits both tho May 01 12:46:44 weird May 01 12:47:04 tablet ports tend to be different to phone ports because tablet chargers are usually higher power May 01 12:47:27 this tabet is alot of trouble May 01 12:47:33 crashes adb constantly too May 01 12:47:35 not sure why May 01 12:47:37 at least my tablet is micro usb May 01 12:47:41 can barely get anything to install on it May 01 12:47:53 my tablet's usb port wasn't designed properly and it came unsoldered May 01 12:48:08 it was a lousy tablet May 01 12:48:08 could i be using the wrong adb or something May 01 12:48:18 nexus one has no issues May 01 12:48:21 wrong adb? May 01 12:48:28 itsl ike it cant connect May 01 12:48:35 sorry ive moved from power onto other isssues hehe May 01 12:48:39 you need the tablet version of adb! May 01 12:49:06 device goes on and offline constantly May 01 12:49:57 sounds like a hardware issue May 01 12:50:17 bloody annoying May 01 12:50:53 is the cable firmly seated in the host usb port? May 01 12:51:04 yeh May 01 12:51:58 at my old apartment, when I turned on my fan it caused my phone to ask me to mount usb storage. May 01 12:52:11 how-do-i chroot into android (on ubuntu .. or win or .. ) May 01 12:52:29 chroot cmd May 01 12:52:30 chroot /directory /path/to/shell May 01 12:52:52 mount .. May 01 12:53:04 chroot -x `which chroot` May 01 12:53:10 dell laptop ubuntu + htc hd2 .. usb May 01 12:53:38 blah .. May 01 12:53:40 christ May 01 12:53:48 trying to dev on this tablet is impossible May 01 12:53:51 jesus christ May 01 12:53:55 im sures something wrong im doing May 01 12:54:00 storkme: wtf, my chroot doesn't have a -x May 01 12:54:43 some good soul should write a guide .. how-to .. chroot .. etc May 01 12:55:10 http://lmgtfy.com/?q=chroot May 01 12:55:31 o.O May 01 12:55:34 :D May 01 12:55:50 funny May 01 12:56:09 I don't see what is wrong with any of the thousands of guides already written on chroot May 01 12:56:25 http://tldp.org/HOWTO/Chroot-BIND-HOWTO-2.html May 01 12:56:27 chroot man page don't help me .. really May 01 12:57:03 chroot JAIL ?? May 01 12:57:06 why .. May 01 12:57:08 well, aside from chroot being completely offtopic here May 01 12:57:12 https://help.ubuntu.com/community/BasicChroot May 01 12:57:15 did you at least read that May 01 12:57:18 it's the second hit for "chroot" May 01 12:57:23 you guys .. do use chroot? May 01 12:57:28 yes, I do. May 01 12:57:44 ah May 01 12:57:45 so .. paste the command line May 01 12:57:49 chroot is a root jail? May 01 12:57:49 I already did May 01 12:57:56 chroot /directory /path/to/shell May 01 12:58:53 .. /directory for android fone is May 01 12:59:04 /bin/bash ? May 01 12:59:15 chroot /media/android /bin/bash ?? May 01 12:59:16 adamDavis: essentially you change the root of your system programmatically. A chroot jail is a sandbox where the user can't get out of the changed root. May 01 12:59:32 k i thought so May 01 12:59:40 unless you're clever and exploit the jail! D: May 01 12:59:45 anyone know anythign about the cam code? i get this crash which doesnt even poin to my code.. http://pastebin.com/SpdBrUUQ May 01 12:59:55 Martiini: if you have a shell called /bin/bash, under /media/android, then that will be fine. May 01 13:00:08 .. do does it? May 01 13:00:13 whats the android shell May 01 13:00:34 start at the beginning. why do you even want to use chroot May 01 13:00:40 to hack it May 01 13:00:44 install apps .. etc May 01 13:00:45 to hack what? May 01 13:00:50 create directories May 01 13:00:54 android May 01 13:01:02 I dont think chroot is what you're looking for May 01 13:01:06 i think what you want is root access May 01 13:01:06 you aren't going to "hack" anything by creating a chroot May 01 13:01:14 ok May 01 13:01:16 so how May 01 13:01:25 I don't knoooowww May 01 13:01:26 google "root " May 01 13:01:36 and /join #android-root May 01 13:01:44 where they talk about this. and stop asking here about it. May 01 13:02:47 you people work on devolping Android ??? May 01 13:02:52 or just learning ?? May 01 13:03:13 yes May 01 13:03:21 I'd suggest .. like .. option to install apps on sdcard .. May 01 13:03:34 O.o May 01 13:03:42 I need to open a ticket .. or ? May 01 13:04:00 dev request ticket May 01 13:04:24 .. and .. howcome my SIM-card contacts don't show May 01 13:04:40 I need a app to access my SIM contacts .. etc May 01 13:04:46 this isn't an android support channel May 01 13:04:53 wongk: hmm, I think he is trolling. May 01 13:04:59 good point May 01 13:05:00 no May 01 13:05:09 yes, you are trolling. gtfo you waste of bandwidth. May 01 13:05:11 it doesnt work May 01 13:05:11 i shall stop feeding it May 01 13:05:17 bai Martiini May 01 13:05:29 yes,, Im taking hundreds of Gb of bandwith May 01 13:06:41 any of you people know how to compile a kernel for specific device ? May 01 13:11:55 ok .. I have a phone with 4.0.4 ics on it .. now what May 01 13:12:44 I can call someone ? May 01 13:13:01 take photos and upload ?? May 01 13:13:34 Martiini yes May 01 13:13:38 I do May 01 13:13:46 super May 01 13:14:08 better make your questions quick tho May 01 13:15:11 if u crash the camera do u have to reboot? or is there some other way May 01 13:15:20 doesnt seem to come back to life after that May 01 13:15:37 I have "ZZ top" music on my fone ... May 01 13:15:38 gaz` that may be device independent May 01 13:15:53 having a hell of time with htc flyer cam May 01 13:16:12 eg, sometimes oems write their own camera apps, sometimes their drivers for the camera are crappy May 01 13:16:23 gaz` - not to be an ass, but HTC stuff is like that May 01 13:16:30 yeh May 01 13:16:32 taiwanese coders May 01 13:16:33 :) May 01 13:16:41 taiwan ftw !!! May 01 13:17:34 wo ai taiwan May 01 13:17:49 gaz` - well what I'd say is there are lots of contributions to android source from chinese / taiwanese codes AFAIK May 01 13:18:14 feels like this tab is bogged down May 01 13:18:17 with nonsense May 01 13:18:23 but... htc seems like they half ass a lot May 01 13:18:27 lots of great ideas May 01 13:18:31 slow lots of mesages in background May 01 13:18:32 poor implementations May 01 13:18:38 things i need ot keep killing May 01 13:18:47 all this weird weather shit coming up when screen locks etc May 01 13:18:50 htc snese i think May 01 13:19:05 chinese coders code in CHINESE! May 01 13:19:16 you cen get rid of sense May 01 13:19:20 i recomend it May 01 13:19:23 easily or? May 01 13:19:28 yes May 01 13:19:48 if you want to replace all the HTC apps, though, i'd just go with a custom ROM May 01 13:19:57 and that I'd highly recommend too =) May 01 13:20:01 indeed May 01 13:20:12 yeh if it could act like my nexus one id be happoer May 01 13:20:16 altho it has no hw ckeys May 01 13:20:16 thunderbolt + CM7 = win for me May 01 13:20:27 I am sure there are aosp or cm roms for your device May 01 13:20:32 thats one thing htc devices are good for May 01 13:21:01 "google apps store" is such piece-of-shitt May 01 13:21:22 ? May 01 13:21:29 why has no one banned this clown yet? May 01 13:21:43 lol May 01 13:22:14 cause Im telling the truth May 01 13:22:14 boo camcrashed again May 01 13:22:16 2 yrs for reboot May 01 13:22:36 not even sure why its crashing! May 01 13:22:45 <3 ignore May 01 13:23:28 wongk, you put me on ignore ?? May 01 13:24:22 fuuuuu I dont even want to go to work May 01 13:24:22 lol May 01 13:24:26 I know its not supposed to be fun May 01 13:24:32 but I fucking dread work May 01 13:24:38 get a new job, yo May 01 13:24:42 I need to May 01 13:24:43 im glad i didnt go in today May 01 13:24:47 dont need to deal with protesters May 01 13:25:05 TachyonDevWork u ever messed with cam much on android May 01 13:25:18 gaz`: some May 01 13:25:24 crashing on some devices and not others well annoying May 01 13:25:27 thought u would have May 01 13:26:12 now tab is detected but "offline" this is weird May 01 13:26:36 adb over bluetooth or wifi would rock, gues su can infact May 01 13:26:46 wow May 01 13:27:32 the county I live in is hiring a software engineer... not one mention of what platform, os, or language they are hiring for May 01 13:28:26 county? in US May 01 13:29:01 me like USA May 01 13:29:31 where can I read about the best and simplest method to authenticate android app users? should I use the accounts which are stored on the device or should I use oauth2? If OAuth2 then should I also use AppEngine or can it be done from device only? May 01 13:31:29 luyang - what? May 01 13:31:43 you can use accounts... but know that that it only goes back so many versions May 01 13:31:49 what does it have to do with appengine at all May 01 13:31:51 luyang, Im logged into app store with my google account name May 01 13:32:31 ron_frown: I was thinking if it was easier to use app engine to do authentication but it sounds on you that it isn't May 01 13:32:50 Martiini: ? May 01 13:32:54 . May 01 13:33:17 I basically just wanna be able to track a users in an application… Preferably so that they can get back their account info when they change their device May 01 13:33:35 I want the users to be able to add other users and send data to each other May 01 13:34:00 But my question now is just about the easiest and best way to authenticate and "track" users of my app May 01 13:34:20 I dont want them to have to create a customer user/password to use the app May 01 13:34:31 luyang, call someone at Google Inc May 01 13:34:38 It would be better if they could use their google account via OAuth2 or something May 01 13:34:52 Martiini: lol? May 01 13:34:56 lol May 01 13:36:19 Seems like nobody here can help May 01 13:36:25 sorry that sounded negative ;) May 01 13:37:25 Note: test cases must be declared public. May 01 13:37:42 * readme facepalms so hard, because default visibility is package private. May 01 13:37:57 was wondering, WHY isn't this test running, my other 2 are May 01 13:50:49 is there a standard way of enabling haptic feedback on button touches in android? May 01 13:51:20 I have a question about developing an application; How can make it so that when I update my application to a new version, lets say v1.1, that I only have to download the updated part of the program? May 01 13:52:05 Myr: generally, for the program (ie, the code) this doesn't apply May 01 13:53:08 Myr: for data files that are large, either host them yourself and download them when they're not present May 01 13:53:34 How can I keep the data separate? May 01 13:54:05 stick it in a .zip, download it May 01 13:54:15 unzip it to storage somewhere May 01 13:54:42 the other option, I guess, is using a market data file May 01 13:54:54 I don't know whether those can be updated seperately May 01 13:57:04 Hey people, anyone debugging via Wifi? I'm trying to get it working, but when I use "adb devices", my device doesn't show up May 01 13:58:00 Myr: yeah, the second approach is better May 01 13:58:05 see http://developer.android.com/guide/market/expansion-files.html May 01 13:59:29 storkme: http://developer.android.com/reference/android/view/View.html#setHapticFeedbackEnabled(boolean) May 01 13:59:53 gotta look at the inherited methods :) May 01 14:03:18 if i want to read an external ntfs drive on os x lion, do i need to create a new disk image, or can i mount the ntfs onto my osx extended? May 01 14:03:45 i also have an ntfs file reader (paragon) May 01 14:04:00 but not sure the best way to accomplish.. May 01 14:04:24 woops wrong room sorry guys May 01 14:04:52 readme: it doesn't do anything May 01 14:05:06 interesting May 01 14:05:08 not by itself anyway May 01 14:05:09 i'll look deeper May 01 14:10:21 Hello May 01 14:10:46 I'd like to confirm whether my understanding is in the right track May 01 14:11:25 storkme: yeah, kind of a pain. I guess if you really wanted to you could subclass button and override onclick May 01 14:11:28 ntfs onto my osx extended? May 01 14:11:33 sorry, that was a bad paste. May 01 14:11:40 http://pastie.org/3843791 it took all that May 01 14:12:22 * readme finds it distasteful that there is a flag that allows the app to ignore the user's global haptic feedback setting, too. May 01 14:12:59 To design an activity, to have some rows and columns, I'll have to use *many* LinearLayout and specify their orientation? May 01 14:13:29 and it is right to have linearlayouts within linearlayouts? May 01 14:13:33 yeah, that will work. it's the slow way May 01 14:13:43 it's right, but it's not performant. May 01 14:13:51 it's what I'd do in 99% of cases, personally. May 01 14:14:12 I don't care if it warns me. I'll optimize it when it actually proves to be slow. May 01 14:15:16 is it right to think of LinearLayout[horizontal] as and LinearLayout[virtical] as
May 01 14:15:18 ? May 01 14:15:35 no, since span isn't a block level element May 01 14:15:44 both linearlayouts are like divs May 01 14:15:59 except they have an orientation property May 01 14:16:28 i guess you could say LinearLayout horizontal is like
May 01 14:16:35 the children of it, anyway. May 01 14:16:43 i meant its childs May 01 14:16:43 yeah May 01 14:16:50 what's all this web programming madness May 01 14:17:21 ekh: you can probably safely use a relativelayout May 01 14:17:25 and avoid doing any nesting May 01 14:17:27 yeah, i'm with you on that one readme May 01 14:17:29 if you are clever May 01 14:18:05 there's also table layout and grid layout May 01 14:20:27 ekh: what kind of table do you want to make? i would recommend TableLayout over nested linear/relative layouts May 01 14:20:31 Well, I want a header, then three columns. First two to be "item" and "price", and the third is a once cell column, as high as the first two, and has a button inside it May 01 14:20:48 and this would repeat for every header/customer May 01 14:21:09 you could just use a custom row layout in a ListView May 01 14:21:39 certainly sounds better in a list May 01 14:22:09 build the row's layout using RelativeLayout May 01 14:22:11 what you're talking about would be incredibely slow for any significant amount of data May 01 14:22:37 ekh: have you done work with ListVIews before? May 01 14:23:08 king_jester: started three days ago, and i've done some tutorial and played around May 01 14:23:37 ekh: it's not terribly complicated May 01 14:23:47 you create the layout for a single row in XML May 01 14:24:01 then you extend the BaseAdapter class to create an adapter that will generate each row for your ListView May 01 14:24:08 king_jester: basically i am thinking of ListView as a way to use a template and publish the data May 01 14:24:14 yeah May 01 14:24:37 ah cool, definitely go for ListView May 01 14:24:48 making custom tables or even using TableLayout can be a total pita May 01 14:25:19 king_jester: but do I need two ListView's? One for each major row, and the second for the list of "items" and "prices" for each client? May 01 14:25:59 i think i'll have to show an example May 01 14:26:03 http://stackoverflow.com/questions/1966802/android-listview-headers May 01 14:26:17 ah, so you want the third cell w/ button to span multiple rows? May 01 14:26:28 ekh: like this? http://www.cyrilmottier.com/android_dev_blog/medias/listview_tips_and_tricks/2/section_schema.png May 01 14:27:19 so you're going to stick a GONE View before every real View? May 01 14:27:25 seems a waste May 01 14:29:13 how would you implement it May 01 14:30:12 math it up May 01 14:30:24 math it down May 01 14:30:57 readme: each one is a different row type, and you figure out the offsets and inflate the correct one when its time has come May 01 14:31:06 yes, it's much more complicated May 01 14:31:40 for someone already proficient it might be possible to implement that but I think ekh might want to see a working example May 01 14:32:53 I'm going to make a treemap layout :) May 01 14:33:16 ekh: spanning rows isn't supported in TableLayout, so it will be tough to use that view group May 01 14:33:31 can you simply the way your UI design works? May 01 14:33:35 *simplify May 01 14:34:06 let me show you the layout first and yes i can and will be open for suggestions May 01 14:34:32 sure May 01 14:34:44 king_jester, spanning is supported in GridLayout May 01 14:35:20 evancharlton: did see my google drive project by any chance? May 01 14:35:43 readme: no, I did not. Link? May 01 14:35:58 https://github.com/tom-dignan/gdrive-cli May 01 14:36:17 http://ekh.me/android.html May 01 14:36:35 it turns out the oauth2client lib has a nice hook into the browser for oauth via a webserver. I was writing my own, then I found that and replaced all my code with a couple lines May 01 14:36:48 gridlayout would be awesome here if you can only support 4.0+ May 01 14:36:53 can May 01 14:37:12 can hapatic feedback be added to widgets? May 01 14:37:15 readme: nice! :) May 01 14:37:23 :) May 01 14:37:34 readme: that dependency on chrome bookmarks^W "apps" is the dumbest thing ever, though :( May 01 14:37:35 ekh: will the user be updating quantities and then hitting complete to finish? May 01 14:37:36 king_jester: it can... May 01 14:37:45 yeah, i'm hoping google will consider dropping it. May 01 14:38:04 i see why they'd do it, I feel like they're trying to move towards abolishing the notion of a file from the user perspective. May 01 14:38:08 which I am in favor of May 01 14:38:09 king_jester: no, only clicking the button to clear it from the view May 01 14:40:25 king_jester, GridLayout suppors 2.1+ iirc May 01 14:40:27 if not 1.6+ May 01 14:41:01 really, it says API level 14 on the google dev page http://developer.android.com/reference/android/widget/GridLayout.html May 01 14:41:18 try the support library... May 01 14:41:54 Any idea which layout should I use for that design? or if I must simplify it? May 01 14:42:04 god dman this tab May 01 14:42:06 adb hates it May 01 14:42:13 i get a connection once in a blue moon May 01 14:42:19 yea the v7 support lib has GridLayout May 01 14:45:13 I know how a simple view pager works…how do I have a section of the screen to page? May 01 14:46:00 ah i see May 01 14:48:34 king_jester, readme: any idea? May 01 14:49:53 ekh: i'm not sure i understand how this ui works May 01 14:50:05 hitting complete removes that grouping from display? May 01 14:50:52 Does the market have a way to offer discounts? May 01 14:51:28 For example, if my app was selling for $2.99, but I wanted to offer certain people a discounted price.. is that possible? May 01 14:51:52 not really... closest thing you can do is issue partial refunds manually May 01 14:52:04 Thats what I figured. That kind of sucks. :) May 01 14:52:16 you can't issue partial refunds? May 01 14:52:28 I can, but I dont want to on a large scale. May 01 14:53:00 i thought that wasn't possible for android market sales May 01 14:53:13 Oh, maybe not. Im not sure. Never tried. May 01 14:53:21 king_jester: There is a database that feeds the adapter with data. Those data are "WHERE order_complete = 'no'". Once you click complete, it will update the database, hence the order will no longer be retrieved in the adapter May 01 14:53:31 i'm pretty sure it's not May 01 14:53:43 not 100% May 01 14:54:16 ekh: so does the user do anything else with this list besides mark some as complete? May 01 14:54:32 anyone familiar with github organizations? May 01 14:54:44 canadiancow|work: slightly. i know how to create one and I am in one. May 01 14:54:48 king_jester: nope, just displaying May 01 14:54:57 readme: are you an admin? May 01 14:55:09 no May 01 14:55:32 so what i want is a team that has admin access to one repo, and push/pull access to all others within the org May 01 14:55:36 do you know if that's possible? May 01 14:55:42 or am i going to need two teams May 01 14:55:46 How do I get an x86 system image running? I installed the 4.0.3 tools which has now put a system.img in my sdktools directory but according to this guide http://developer.android.com/guide/developing/devices/emulator.html#accel-vm I shuold be able to change the CPU/ABI field to X86 instead of ARM, which I can't May 01 14:55:51 one to grant the admin, and another to grant the push/pull May 01 14:55:55 ekh: you could just using a sectioned list with each section's header having a complete button or checkbox w/ a complete button on the list May 01 14:56:05 why the hell doesnt eclipse hilight matching braces May 01 14:56:07 when I try to create a new AVD May 01 14:56:26 deweylewie: You have to choose the intel x86 target, it's under api10 May 01 14:56:42 canadiancow|work: gimme a sec to play with it May 01 14:56:43 ekh: that way you can provide basic details in the header and then each list item in the section is a single item and its quantity and price May 01 14:57:01 ideally id like to be able to create repos too, but that's less important May 01 14:57:04 Also, x86 target is not the same as gpu accel May 01 14:57:23 all I need is opengl es 2.0 support May 01 14:57:31 on emulator May 01 14:57:53 Then just choose the api15 image and enable it May 01 14:58:04 canadiancow|work: i added you to my test organization May 01 14:58:32 http://developer.android.com/guide/developing/devices/emulator.html#accel-graphics May 01 14:58:44 oh i guess organizations are free to make, arent they May 01 14:58:45 Android 4.0.3 - API Level 15? May 01 14:58:46 lol May 01 14:58:51 canadiancow|work: hm, just use teams? May 01 14:58:59 ty May 01 14:59:01 our enterprise github setup is a little more...strict May 01 15:00:44 king_jester: something like http://ekh.me/android.html ? May 01 15:01:23 ah readme i just made a test org so i'll try stuff out, thanks May 01 15:02:25 ekh: right, this would just require extending BaseExpandableListAdapter and using ExpandableListView May 01 15:02:43 ekh: similar to normal list view except you provide a data source for header views and child views May 01 15:03:02 ekh: you can also force all subgroups to be open or allow the user to open/close groupings if you wanted May 01 15:03:18 nah readme i need two teams for what i want May 01 15:04:03 Do I need to have 2 xml layouts? one for headers and one for childs? or one layout is enough? May 01 15:05:25 ekh: i would recommend one layout for headers and one layout for child rows May 01 15:05:32 canadiancow|work: yeah, i set it up with 2 teams devs & spectators May 01 15:05:34 ekh: this gives you flexibility if you need to change one May 01 15:05:38 or the other May 01 15:05:45 was educational May 01 15:05:50 awesome, thanks May 01 15:06:12 ekh: no prob, good luck May 01 15:06:20 :) May 01 15:07:06 readme, but i only have one team. they need push-pull on all repos, and admin on less than all May 01 15:07:19 but a team is granted push-pull or push-pull-admin for the whole team, not on a per repo basis May 01 15:08:24 ugh and i want people on the team to be able to add people to the team May 01 15:09:16 there is an app call Android UI Patterns, I wonder if there is a site that does the same May 01 15:10:23 canadiancow|work: sounds like you're SOL and need another team May 01 15:10:32 yea i need two teams May 01 15:10:48 one to grant admin on a couple and the other to grant push-pull everywhere May 01 15:11:06 the people in the admin team can administer that team, but they cant touch the push-pull team May 01 15:12:59 Do you have a tip to remove horrible aliasing on that ? May 01 15:19:50 Guys how to wrap somehow text in linearlayout May 01 15:22:37 Trudko could you rephrase that May 01 15:22:56 yo dawg, i heard you like linearlayout May 01 15:23:41 xorgate: i have long text in linear layout and if there are too many texts views it run out of screen May 01 15:23:46 xorgate: how tyo prevent it? May 01 15:24:19 your text is in a TextView ? May 01 15:26:05 I am creating TextViews yes(programmatically) May 01 15:26:22 how do you upgrade your android platform from the command line…I'd like to download all the API version from the command line May 01 15:26:59 "android update sdk" maybe? May 01 15:27:29 there's some flag to pass to make it a CLI May 01 15:27:58 just install the android sdk chrome app May 01 15:33:08 xorgate: I am creating TextViews yes(programmatically) May 01 15:35:16 best way of theming an activity like a dialog? sorta tempted to just roll my own activity (using the Theme.Panel May 01 15:36:50 storkme: you can set your activity theme to Theme.Dialog to get OS level native dialog look and feel May 01 15:37:14 storkme: just use android:theme="@android:style/Theme.Dialog" in your activities entry in the manifest May 01 15:37:36 are all Services by default static in Android? May 01 15:37:59 SpearThruster: ? May 01 15:38:52 yo dawg i heard you like git submodules May 01 15:39:03 static... May 01 15:39:04 wut May 01 15:39:31 evancharlton, I am starting a Service from my WidgetConfigration May 01 15:39:57 and if the user adds multiply widgets - they all seem to share the same Service Object May 01 15:40:14 thats...not....static May 01 15:40:18 i mean May 01 15:40:27 SpearThruster: you'll only get one instance of a service at a time, correct. May 01 15:40:29 your service class is probably static May 01 15:40:32 king_jester: os level dialog theme is usually awful though :p May 01 15:40:32 but thats not what...yea May 01 15:42:08 ok, thanks evancharlton :) May 01 15:42:29 it's all about the intent May 01 15:42:32 storkme: lol no disagreement there, if you want to roll your own you can extend DIalogFragment and use the setStyle() method to remove OS level theming May 01 15:42:35 man there was an awesome email thread recently May 01 15:42:43 some ios guy was asking how something worked on android May 01 15:42:55 and someone replied about the Intent May 01 15:43:07 and the ios guy was like "the intent of this is to ensure users get a good experience" May 01 15:43:37 and he wnet on about how the android guy didnt understand anything May 01 15:43:53 is this story going somewhere? May 01 15:44:04 not really May 01 15:44:11 it was funnier watching it happen May 01 15:44:19 I assume so May 01 15:44:28 canadiancow|work: i saw that HTC commercial last night May 01 15:44:34 lol May 01 15:44:35 I can't believe he can take a video while he's skydiving with that thing May 01 15:45:10 Guys I have many Textviews which I want to show all on one screen but if I put them in LinearLayout they wont fit in one screen May 01 15:45:34 there is a page curl animation in the ios app I'm porting. I want to find something to do a page curl and totally blow away my client who probably thinks it won't happen on android. May 01 15:45:39 or write it. dunno May 01 15:45:43 is there any way to determine which values file has been selected in code. e.g. values-small-land May 01 15:45:49 i've seen android-page-curl bit it's a tad slow May 01 15:46:40 Trudko: you should be using a ListView, then May 01 15:49:41 hmm ok i will try Scrollview also May 01 15:49:50 there isnt soimething like wrap? May 01 15:50:26 like, gift wrap, or like plastic wrap May 01 15:50:32 yo dawg iheard you like scrolling May 01 15:51:06 for a long form, scroll, or use multiple screens? May 01 15:52:15 not like text wrapping so if I put textview inside of linearlayout with horis. layout I would like to put it on next line May 01 15:52:59 Trudko: there is no automatic line breaking for TextViews in a LinearLayout afaik May 01 15:53:23 you could try a RelativeLayout May 01 15:54:08 yeap :/ so how to do it I mean my whole problem is that I creating textviews because I have list of colos and I needed to somehow show them. I figure out that creating text and setting it that color would be fastest. But this is problem I have May 01 15:54:17 I have more colors then I can show at once on the screen May 01 15:56:05 spinner? May 01 15:56:07 do you need something like a color wheel? May 01 15:56:13 or just a list of preselected color values? May 01 15:57:10 Trudko: you want to scroll it sideways, too? May 01 15:57:52 readme: king_jester sincerly I dont really care I just need to show all corlos so yes maybe I could use something different then text, http://imageshack.us/f/441/textfh.png/ May 01 15:58:00 king_jester: afaik, the default behavior of textview is to wrap text May 01 15:58:04 this is how it looks now but its nto all of it. May 01 15:58:31 Trudko: you want them like that? all vertical? May 01 15:58:34 answer is listview May 01 15:58:36 once again May 01 15:58:44 ok I will use that May 01 15:58:51 this might be cooler :) http://code.google.com/p/android-color-picker/ May 01 15:59:18 nto sure how I would use it because I have list of color May 01 15:59:29 trudko: definitely use a list view May 01 15:59:30 well, it would require you to ditch your list of color idea :) May 01 15:59:35 ok thx guys May 01 15:59:43 i have 29 tabs open in chrome for things i am "actively" working on T_T May 01 15:59:53 readme: heh thats my goal :) list view would bew what i need thx May 01 16:00:44 hey guys, do you need to ask for specific permissions to make the app use wifi whenever available over 3g or does android do that automatically as long as you have the internet permission? May 01 16:01:19 automatically May 01 16:01:24 the device only has one "active" connection May 01 16:01:31 it will always prefer wifi over cellular May 01 16:01:37 (not always a ogod thing :( ) May 01 16:01:39 hi JakeWharton May 01 16:01:41 thank you! May 01 16:01:52 hey May 01 16:04:14 WakeJharton May 01 16:05:03 i find myself using actionbarsherlock for yet another project May 01 16:05:17 tomororw is PJ day.... im not sure im comfortable coming to work like that May 01 16:05:36 storkme: how did you lose yourself in the first place? May 01 16:05:49 location services turned off May 01 16:06:13 an unfortunate side-effect of today's dependency on smart phones May 01 16:07:01 i use google maps navigation almost every time iget in my car May 01 16:07:11 and my passengers always make stupid remarks like OH YOU DONT KNOW HOW TO CROSS THE STREET WITHOUT THAT? May 01 16:07:30 it's a useful tool - it's not a "dependency" May 01 16:07:40 I can only imagine the confusion and chaos that will occur in December when the doomsday asteroid becomes close enough to disrupt the airwaves. May 01 16:07:54 what asteroid? May 01 16:08:00 The Mayan asteroid. May 01 16:08:32 what mayan ast- oh... May 01 16:08:36 it's gonna be great May 01 16:09:06 You see, thousands of years ago, the Mayans carved a calendar on a giant boulder and launched it into space. After thousands of years in stable orbit, the boulder is now hurtling back to the Earth. May 01 16:09:45 interesting May 01 16:10:01 how do you imagine they accomplished that launch? May 01 16:11:14 Elephants. May 01 16:11:16 * hackkitten idly throws some rocks at Earth :D May 01 16:13:04 deweylewie: i dont know abt x86, but i know that the cpu selection is depending on the targeted sdk, ie : choosing android 2.3.3 or lower will change to the default armabi, while choosing android 4.0 will defualt to armabi-v7a May 01 16:13:29 http://tinyurl.com/3c5omg5 May 01 16:13:39 Am I only supposed to use parent=… for styles/themes defined by android? Like, if I'm extending actionbarsherlock theme i can just do Theme.Sherlock.Light.DarkActionBar.MyTheme, right? May 01 16:15:32 is there any way to dynamically update multiple views in a ViewPager based on the results of a dialog? May 01 16:15:58 that is, the user has configured some settings via a dialog and i want to push those changes into all children of the ViewPager May 01 16:21:23 luxurymode: wrong. May 01 16:21:47 any themes defined outside of my project must be "extended" using parent=? May 01 16:21:51 luxurymode: you should do parent="@style/Theme.Sherlock.Light.DarkActionBar" or whatever May 01 16:21:54 yes May 01 16:21:59 gotcha May 01 16:22:01 thanks May 01 16:23:46 so it might make sense to use both? meaning use the dot syntax type thing just as a convention to know what your style is..so you can remember, and then just use parent to actually make it work? May 01 16:24:05 if you want to ... May 01 16:24:16 that's not really the practiced convention, though May 01 16:24:32 luxurymode: that would be like putting your app in the com.android.* namespace to help you remember it's an android app May 01 16:24:46 lol May 01 16:25:15 lol May 01 16:25:22 right so create my own space and use as many dots as makes sense…like maybe define my own actionbar theme whose parent is ABS and then go on from there to whatever level of specificity May 01 16:25:32 sure May 01 16:29:31 but once i specify even an empty style with a parent as some other theme, i can then use just the dot along with that? May 01 16:29:44 to continue extending my theme? May 01 16:33:30 so what can i do when im using multiple library project and they both define the same attr? rename one of them...? May 01 16:33:53 Yes May 01 16:34:07 Ask whoever made the library to prefix their attributes May 01 16:36:17 hehe jake wharton...? May 01 16:36:48 Ask whoever made the other library to prefix their attributes :p May 01 16:36:50 im assuming your the same SimonVT who let me know that the comment about smarter keyevent handling for action items was from google and not ABS May 01 16:36:57 SimonVT, both are from jake... May 01 16:37:02 ABS and ViewPagerIndicator May 01 16:37:43 Yeah, that was me :p May 01 16:37:48 What attribute is it? May 01 16:37:51 hehe thanks May 01 16:37:57 so yeah im kinda confused May 01 16:38:04 basically i want to use the viewpager indicator May 01 16:38:16 but of course my activity has to use some ABS theme May 01 16:38:24 so i kind of merged them together like this: May 01 16:39:00 https://gist.github.com/2569492 May 01 16:39:13 where that theme uses ABS as a parent May 01 16:39:28 ok great…so my project has ABS and VPI as dependencies May 01 16:40:11 and VPI uses: https://gist.github.com/2569502 May 01 16:40:32 so the "orientation" attr there creates the problem May 01 16:41:11 ok im a damn moron May 01 16:41:17 our internal library uses that May 01 16:41:20 there's the problem May 01 16:41:20 lol May 01 16:41:26 hehe May 01 16:41:34 Either way, VPI shouldn't need to redefine that May 01 16:41:39 Could just use the native one May 01 16:42:23 arite so my question is: anywhere in any declare-styleable where that attr is defined must be unique? May 01 16:42:26 that doesnt seem right... May 01 16:42:31 im missing something basic here.. May 01 16:43:07 i have something like this: https://gist.github.com/2569518 May 01 16:43:10 with orientation May 01 16:43:16 what can/should i do to make this build? May 01 16:43:27 Yeah, so May 01 16:43:40 May 01 16:43:44 That's defining an attribute May 01 16:43:49 May 01 16:43:52 That's referencing May 01 16:43:58 an already defined attribute May 01 16:44:03 An attribute cna only be defined once May 01 16:44:13 And referenced infinitely May 01 16:44:14 Handling orientation changes is hard, right? Right? May 01 16:44:19 * pragma- peers around suspiciously. May 01 16:44:51 Basically, instead of your you COULD do May 01 16:44:57 It's like stealing candy from a baby May 01 16:45:03 And use android:orientation everywhere as always May 01 16:45:26 Ooh, onRetainNonConfigurationInstance() was deprecated in the last week or so? May 01 16:46:06 SimonVT, gotcha. thanks May 01 16:46:17 * pragma- mutters something about Fragments. May 01 16:46:47 * pragma- points at his gingerbread device. May 01 16:46:58 * pragma- mutters something about android compatability package. May 01 16:47:03 * pragma- points at his knee. May 01 16:47:45 I used to be an android developer, but then I took a Fragment to the knee. May 01 16:48:04 SimonVT, then when i grab the orientation with the styledattributes what do i use? May 01 16:48:23 just i can just change it and see what aapt does lol May 01 16:49:00 R.styleable.MyGridLayout_android_orientation May 01 16:49:09 Something like that May 01 16:52:12 so it tells me that android:orientation si already defined.... May 01 16:52:17 no shit, right? May 01 16:52:42 Did you do EXACTLY as I said? May 01 16:52:47 Or did you keep the format="..." May 01 16:53:13 haha no i defined the format also May 01 16:53:15 my bad May 01 16:53:40 thanks for your help as always kind sir May 01 17:01:47 AdWhirl and AdMob are both owned by Google. Now AdMob supports 3rd party sites, is AdWhirl going to disappear? May 01 17:02:22 ask Google that May 01 17:02:30 I can predict the future. In 2030, earth will be renamed to Google. Everything with be run by and made by Google. May 01 17:03:48 2030? I say they'll launch Skynet before that... May 01 17:04:22 really? when!? May 01 17:04:59 I know how to create an intent with xy, for example new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("geo:2.63,-34.63")); Can I create something with an address? May 01 17:05:41 It's only a matter of time. It might even become self aware during the beta and launch itself. To keep this relevant...i found my answer here if anyone is interested: http://support.google.com/admob/bin/answer.py?hl=en&answer=2423687 May 01 17:05:57 Do you have a tip to remove horrible aliasing on that ? May 01 17:08:08 WindowsNT: You could attach the various parts of the address as stringextras to the intent. Or you could store the address in a contentprovider and reference it with a uri. May 01 17:08:38 i can attach the parts, is there a specific key value so google maps knows where to look? May 01 17:09:34 http://developer.android.com/guide/appendix/g-app-intents.html May 01 17:09:53 thx, trying May 01 17:20:45 I fail at coding. I want to have 4 popup boxes show one after another once the okay button is clicked. But I generate them in a for loop and they all just pop up all at once so my last popup box is first to be seen. How can I get around this May 01 17:20:46 ? May 01 17:21:25 daisy-chain them with the dismiss listener, ninjai May 01 17:21:45 thanks evancharlton I'll look into the dismiss listener May 01 17:21:51 yes, you fail at coding. May 01 17:21:58 You're welcome. May 01 17:24:13 4 pop-ups? May 01 17:24:53 surely there is a better design May 01 17:27:04 ninjai: that sounds terrible May 01 17:27:27 "Are you sure?" "Are you *really* sure?" "No, like really, really sure?" "Alright, like if your life depended on it you're still sure?" May 01 17:29:21 can you ever be sure enough May 01 17:30:47 ever heard of the two generals' problem? May 01 17:31:18 SimonVT, now intellij complains it cant find "orientation" attr when i changed my styleable to use May 01 17:31:35 Escherial, if thats what i think it is, i think everyone's heard of it May 01 17:31:49 Escherial: because manholes are round May 01 17:31:54 lol May 01 17:31:56 Escherial: they kept trying to outsize each other's hats until one of them put on a hat that was too large and was crushed? May 01 17:32:32 if everyone knows about it, i'll assume that's sarcasm :3 May 01 17:32:46 having an infinite regress of confirmation dialogs reminds me of it, that's all May 01 17:36:17 could someone point me to a thourough tutorial that explains how to pull data from mysql using php/json into an android app? - I have found some on Google, but they seem out dated and very general. May 01 17:37:18 i want to use an xml drawable to fill transparent parts of a png file with black. to do this, I'll start with a black (as in #ff000000) background and then add the semi-transparent file on top of all the black. I've never done anything like this, so I need someone to tell me which <> to use (are they called 'tags' btw? May 01 17:37:40 luxurymode: Of course not, now you gotta use android:orientation May 01 17:39:00 dschuett: you're likely going to have to piece that together yourself May 01 17:40:07 dschuett: i don't know of a tutorial, but i can tell you what you'll want to do. first off, on the server that's running php, you'll want to figure out how to make and display queries to the mysql database May 01 17:41:13 once you can iterate through a result set from mysql, you can start making your script output json by printing json_encode($value) May 01 17:41:18 ah thanks SimonVT android.R.attr.orientation May 01 17:41:56 you'll have to decide yourself how you want to map from mysql's table representation to an object-oriented one like json. a lot of people just dump out a 2d array of the table with some extra metadata May 01 17:42:26 what's the best json lib to use on android? May 01 17:42:36 the one built in May 01 17:42:40 Pragma, wongk I'm all ears if you have a better idea. I'm making a game just for learning purposes, and at the beginning I have a dialog that allows you to select the number of players. Each player will have a user-inputted named. How else would you suggest I complete this task? May 01 17:42:46 Ge0rG: "best"? May 01 17:42:55 Ge0rG: if you want to do any stream processing, i've had a decent experience with jackson May 01 17:43:10 Escherial: thanks for the advice. That should get me going in the right direction. May 01 17:43:27 what's wrong with the builting JSON classes? May 01 17:43:31 dschuett: yeah, good luck. if you need any more help, feel free to ask me, as i have a high-level idea of how it should work May 01 17:43:39 but it's been years since i've touched php, to warn you :\ May 01 17:44:02 t0mless: they're not stream-based. Whether or not that's a problem is up to you. May 01 17:44:08 t0mless: mostly that they do tree parsing by default, and can choke on very large json encoding/parsing calls May 01 17:44:16 Escherial: i'm pretty skilled at php, so that isn't an issue. :) May 01 17:45:36 i would at least determine that JsonObject doesn't meet your needs before bringing in additional libraries May 01 17:46:26 i agree; keep in mind that adding libraries outside of the standard one increases both the size of your app and its dependencies May 01 17:46:50 (which can make keeping up with new versions, bugfixes, etc. kind of a pain, plus you have no guarantee of the quality of the third-party library for the most part) May 01 17:49:17 i am trying to test a app internally between few people i dont want it to upload to android market now, is there any way to push updates from a private server? May 01 17:49:54 i remember someone mentioning something about "hockey kit" or something May 01 17:50:19 blue_pearl: http://hockeykit.net/ May 01 17:50:49 wongk: thanx May 01 17:50:53 http://gigaom.com/mobile/mit-creates-glare-free-self-cleaning-water-repellent-glass/ May 01 17:50:54 neat May 01 17:51:59 wongk: that's pretty cool, thank you too. i was about to say that there wasn't anything you could do short of writing your own updater, but it looks like it's been done May 01 17:54:39 t0mless: too bad oil is what comes off of fingers, not water May 01 17:55:07 I wouldn't even care if I had to clean it myself May 01 17:55:15 glare/fog free glass May 01 17:55:35 heh May 01 17:55:38 now i can use it in the rain! May 01 17:56:04 my problem isn't so much glare as the fact that the sun is brighter than my display's brightness May 01 17:57:21 cant get hiearchyviewer to load up the view hierarchy…i click to load it and it just does something real quick and then …nothing May 01 17:58:44 are you rooted? May 01 17:58:51 i heard that was necessary May 01 18:00:35 yes, you cannot run hierarchyviewer on production devices. May 01 18:00:38 it used to only work on the emulator May 01 18:00:46 but I think romainguy made something to change that May 01 18:00:49 maybe you can if the app is set to debuggable May 01 18:00:56 yeah there was that change, but I think that's like ICS+ or something May 01 18:03:34 ive always run it on physical devices May 01 18:03:47 emulator was never a requirement May 01 18:03:51 it works if your device is userdebug or eng May 01 18:03:55 but my devices have always been rooted May 01 18:04:00 or if your app is debuggable="true" May 01 18:04:11 oh so it works on all debug builds? cool May 01 18:04:22 yes May 01 18:04:32 iirc, the property in question is something like ro.secure May 01 18:05:01 ro dawg, i heard you like secure May 01 18:05:18 what a fucking life May 01 18:05:34 all the sudden my fragments are no longer showing their action items May 01 18:06:01 I'd keep my action items away from you too :D May 01 18:06:06 im calling setHasOptionsMenu(true) and overriding onCreateOptionsMenu() and onOptionsItemSelected() May 01 18:06:25 it was working fine last night May 01 18:07:42 whats strange is the first fragment in the view pager shows it, then when i swipe it goes away, swipe back and it doesnt return, 3 of the 4 fragments in the view pager should be showing a refresh action item May 01 18:08:59 =\ May 01 18:09:03 compat or native May 01 18:09:32 compat and abs May 01 18:10:04 there have always been cases when using abs that they would randomly dissapear, but this isnt random at all May 01 18:10:38 not an ABS bug. http://b.android.com/29472 May 01 18:10:58 if i have it in my menu xml with showAsActionItem it works fine, but id hate to leave the refresh item on a fragment that cannot be refreshed May 01 18:11:09 JakeWharton: so quick on the defense :P May 01 18:11:26 but gtk anyhow May 01 18:14:33 canadiancow|work: new SimpleExpandableListAdapter(this, groupList(), etc..) where groupList() returns List .. it works fine with group headers that contains 1 TextView. If i want the header to have 2 TextView's, do I return two dimensional array? May 01 18:15:36 what? May 01 18:15:42 i dont know what you're talking about May 01 18:17:01 where can i get support for chrome to mobile not working May 01 18:17:19 As the guys here advised, I started working on ExpandableLists, now I'd to advance a lil bit May 01 18:17:24 http://www.coderzheaven.com/2011/04/10/expandable-listview-in-android-using-simpleexpandablelistadapter-a-simple-example/ May 01 18:17:37 i never advised that May 01 18:17:44 ekh: don't use SimpleAdapter May 01 18:17:53 make a custom adapter May 01 18:18:34 wongk: custom adapter that extends ExpandableListAdapter? May 01 18:19:36 woah, my google is crazy looking today May 01 18:19:58 they got rid of all the BS May 01 18:20:11 I didn't know google was yours May 01 18:20:48 i have my own! May 01 18:20:57 evancharlton, I've been reading about the dismiss dialog, but I'm not sure that will solve my problem. I think my problem is more so using a different method to show a bunch of dialogs in order. The for loop jsut throws all my dialogs up at once, but I need the loop to pause for each dialog to be clicked through... am I missing something or is there actually no way to do this with the dialog dismiss methods? May 01 18:21:18 ekh: yes May 01 18:21:19 yes, you're missing something May 01 18:21:39 ninjai: when dialog N is closed, show N+1 May 01 18:21:43 Can someone explain to me what a fragment is? May 01 18:22:00 JakeWharton: well thanks for that link, i found out that the missing action items were a result of hiding/showing a view May 01 18:22:09 john_doe_jr: why would we do that when there 1 million websites that will do it for us May 01 18:22:24 wongk: alright..never mind May 01 18:22:27 john_doe_jr: it's a reusable abstraction for UI and behavior. May 01 18:22:53 wongk: ok May 01 18:22:54 think of it like a "mini activity" that can be put inside activities May 01 18:23:14 and then go read all the docs May 01 18:23:52 I want a pageview the a user can swipe but I want only a portion of the screen to be interchanged …would a fragment be the way to go? May 01 18:25:55 use a ViewPager May 01 18:26:15 you will probably use fragments, too. yeah. May 01 18:29:21 heh, the model id of this phone is actually "htc sensation xe with beats audio z715e" May 01 18:31:55 john_doe_jr: the view pager is a view like any other, you can set the width and height and only its contents will be changed other views around it will not be affected May 01 18:34:49 a happy story for today :) http://imgur.com/a/txhJu May 01 18:35:32 wtf May 01 18:35:35 lol g00s May 01 18:38:03 could someone please provide an alternative to this link….http://forum.xda-developers.com/showthread.php?t=657086 May 01 18:38:03 05-01 14:23:16.229: I/dalvikvm(5476): Turning on JNI app bug workarounds for target SDK version 11... May 01 18:38:07 anyone know what that means May 01 18:38:11 i need ruu for hboot 1.41 May 01 18:38:12 wongk: there are example that extends ExpandableListAdapter and others BaseExpandableListAdapter, which one should I go for? May 01 18:39:03 or 05-01 14:23:18.744: I/dalvikvm(5532): Turning on JNI app bug workarounds for target SDK version 10... May 01 18:39:48 looking for an ruu for hboot 1.41….could someone please provide an alternative to this link….http://forum.xda-developers.com/showthread.php?t=657086 May 01 18:41:01 hi there May 01 18:42:07 I have a custom view but setting visibility to GONE it still appears to take up space in the ListView it's contained within, anyone have any ideas? is GONE something that has to be speifically implemented int he custom view? May 01 18:45:44 jc_adx: #android-root May 01 18:46:05 a wild g00s appears May 01 18:46:43 duck,duck, g00s! May 01 18:46:55 except, there is only one duck. May 01 18:47:21 :) May 01 18:47:45 i was in that situation as a little kid; had to fetch the ducklings from the storm drain May 01 18:48:00 why doesn't my dialog have the ability to use "onDismissListener"? The option is not available. I'm using AlertDialog.builder May 01 18:48:01 they were so tough to get … nobody wanted to get picked up :D May 01 18:48:32 scooped them up with a wok, their little claws clicking on the smooth metal May 01 18:50:00 jc_adx: http://forum.xda-developers.com/wiki/HTC_Hero/CDMA#Official_RUU May 01 18:57:29 Does anyone have any tips for making Eclipse actually… listen to me, when I tell it to relaunch my Android app? What happens is, I click relaunch, and maybe 1-2 minutes later it finally gets around to doing it. If, instead, I manually terminate the app through the Debug window and then start it again, it restarts instantly. Why doesn't it just do this every time?! May 01 19:01:39 PeteS: use a distraction to alleviate the frustration. I recommend reddit.com or something. Realistically though, my eclipse seems to go slow when i've got a large workspace...i dunno if it's just trying to do too much when hitting "run" May 01 19:03:36 :-) having that long of a distraction Reddit means I'm likely to forget that I'm coding. What I don't get is that I can make it restart instantly THROUGH Eclipse. So if Eclipse's relaunch button were just mapped to click the "kill process" button and then the "start debugging" process, it would work perfectly. I just don't get why they sabotaged something that already works fine when you do the steps individually May 01 19:07:16 did you just say reddit here May 01 19:07:26 dude I gave that up, please keep it away!!! May 01 19:07:30 productivity killer. May 01 19:09:31 yeah, pro tip : don't take a break from analytic work by shifting to more analytical work :) May 01 19:09:36 i have never visited reddit May 01 19:10:06 pick up a pencil or something and draw icons for your app :) May 01 19:10:08 analytical cat picture analysis May 01 19:10:19 you're better off drinking a beer May 01 19:10:21 than going on reddit May 01 19:11:01 which reminds me, where the f is inkscape 0.49 May 01 19:12:27 i haven't used inkscape in a while now May 01 19:13:17 i will, though. Just need to plow through some contract work then I'll be working on my own projects again that will require my own icon design efforts. May 01 19:13:27 i love it, but its pretty buggy 9on mac anyhow) May 01 19:13:38 their channel is incredibly helpful May 01 19:13:43 yeah it is May 01 19:13:50 suv kicks ass May 01 19:14:18 yeah, I was going to say. He has helped me with learning and filing bugs May 01 19:14:29 inkscape needs C++ devs badly, I think. May 01 19:14:39 I'm not about to volunteer though. It's not my field of interest. May 01 19:15:01 adobe now offers a 50/mo subscription for all their products. May 01 20:20:10 How would I get my TaskID? It says I'm supposed to pull it from RunningTaskInfo. Does anyone have an example of this? May 01 20:20:43 wongk: You still here? May 01 20:20:52 im around May 01 20:21:00 :) May 01 20:21:29 Could you tell why shouldn't I use SimpleExpandableListAdapter? just curious May 01 20:22:39 that is a generic adapter that requires you to change your data to fit its structure, a custom adapter allows you to customize it to fit your data May 01 20:22:55 no populating temparay hashes and etc... May 01 20:23:02 temporary May 01 20:23:50 i consider the Simple*Adapters quick and dirty and not suitable for production May 01 20:24:04 I prefer OverlyContrivedAdapter May 01 20:24:43 now we're takin May 01 20:28:12 pfn: there ? did you recomment putting bin/proguard/mapping.txt in git? May 01 20:28:33 g00s, yes May 01 20:28:56 g00s, it should go in parallel with your final build May 01 20:29:05 ok thanks. i have bin/ in my .gitignore, but add -f that file May 01 20:29:53 well, I wouldn't add it from bin May 01 20:29:58 but I guess that's ok May 01 20:30:33 alternatively, if you fully track each version in a tag, you don't really need to check it in, since the build should be reproducible May 01 20:31:02 pfn: i suppose, as long as you use the same version of proguard i guess May 01 20:31:09 yes May 01 20:36:15 I wouldn't count on proguard building the same if it points to the sdk proguard config May 01 20:36:46 right, if your build environment isn't consistent then you can't rely on it May 01 20:37:41 so, i guess i could stash that file away somewhere outside of git - or just have git track bin/proguard/mapping.txt May 01 20:37:46 This is obviously blasphemy May 01 20:38:02 but how do I apply the Theme.Holo.Light.NoActionBar theme only when the target is 4.0? May 01 20:38:15 so that it works on other versions, I need 2.1+ May 01 20:38:29 it is not a bad idea at all to put your proguard mapping into git May 01 20:39:08 g00s, I'd just move it out of bin and then commit it May 01 20:39:18 Does anyone know how to get the running taskid? May 01 20:39:27 readme, check the api level May 01 20:39:35 jeppy: so it has to be done programmatically May 01 20:39:37 readme, values-vXX May 01 20:40:01 readme, use Theme.Holo.* in values-vXX and Theme.* in values/ May 01 20:40:34 ah, nice May 01 20:40:42 thanks pfn May 01 20:40:43 [16:38:29] <@ctate> it is not a bad idea at all to put your proguard mapping into git May 01 20:40:47 try convincing the gitmasters of that! May 01 20:40:56 ....? May 01 20:41:16 "i dont want that in git. it's not source" May 01 20:41:19 i mean, if you anticipate for any reason needing to decode stuff from the field, or preserve the mapping across releases May 01 20:41:31 oh, thppt May 01 20:41:39 revision control, not *source* code control. May 01 20:41:40 canadiancow|work: are ant files source? May 01 20:41:46 calling it SCCM is misleading and wrong. :) May 01 20:41:47 version control isn't source specific May 01 20:41:58 anyone who thinks that is doing it wrong May 01 20:42:01 blah blah blah you're preaching to the choir May 01 20:42:18 why do i need it in git when my QA lead has it on his laptop? May 01 20:42:22 i do have my mapping in git now, but it only gets generated on releases from the ant build system; so its always different when using eclipse - and git it always mentioning that May 01 20:42:48 i only do release builds from ant May 01 20:42:58 we put every digital asset that makes sense into VCS May 01 20:43:56 some places put the boxed tools, CDs, and machines in vaults to reproduce if necessary May 01 20:44:18 I have method that inserts a row in to a db. What is the best way to retrieve the _id column with the least number of calls given method(Context c, Uri uri, ContentValues values) { c.getContentResolver().insert(uri, values); ... ? May 01 20:45:00 i believe it returns the id? May 01 20:45:03 i wish git handled binaries better May 01 20:45:34 i can't say for sure for ContentResolver, at least the sqlite classes do May 01 20:45:41 wongk the insert() method returns a URI May 01 20:45:56 evile May 01 20:46:27 yah May 01 20:47:52 ctate: presenting anything at i/o this year ? May 01 20:50:07 setsid: i've actually not used ContentResolver, but it seems like things are identified by URL - why is it that you need the DB id? May 01 20:50:38 Hey, a member of my dev team is running automated tests on Jenkins and sometimes this happens after a while: http://pastebin.com/raw.php?i=P0V7ZQ5F May 01 20:51:03 But I cannot find a hint as to what exactly caused the SIGSEGV. Can someone help me? May 01 20:51:37 g00s: not i May 01 20:51:41 nice, you crashed dalvik :P May 01 20:52:13 wongk: Yeah, I'm quite amazed myself. But sadly(?), it wasn't me ;) May 01 20:52:29 well that was the wrong button May 01 20:52:31 hm. i wonder whether that's a crash in jitted code May 01 20:52:34 wongk: I need the id, since another part of the API I am working with uses the id to retrieve rows to construct data objects May 01 20:52:49 i mean, that is two major versions of Android out of date, too.... May 01 20:53:55 ctate: Yet some 60% of all devices. May 01 20:54:01 i know, i know May 01 20:54:02 * ctate | Android NDK, Revision 8 is now available for download. May 01 20:54:09 http://developer.android.com/sdk/ndk/index.html May 01 20:54:34 It's also hard to reproduce, happens "sometimes". May 01 20:54:40 ... yeah, i'm pretty sure this is a crash in the JIT-generated code May 01 20:54:55 Drakonite will like that May 01 20:55:05 mips D: May 01 20:55:38 eh whu? May 01 20:55:44 Drakonite: new ndk May 01 20:55:58 ctate: So... what do? May 01 20:56:21 setsid: http://developer.android.com/reference/android/content/ContentUris.html#parseId(android.net.Uri) May 01 20:56:22 g00s: looks like still hasn't upgraded gcc to fix the damn inlining bug :-/ May 01 20:56:35 aried3r: that's a good question. if it's hard to repro even in automated testing that suggests it's probably pretty rare in the field May 01 20:56:37 which is good May 01 20:56:37 Drakonite: that … fucking … bug May 01 20:57:02 Drakonite: got a link to the bug on b.android.com? May 01 20:57:29 aried3r: can you file a bug on b.android.com about this? May 01 20:57:36 ctate: no, but pretty sure I filed one months back May 01 20:58:04 Drakonite: ok, i'm looking May 01 20:59:17 Drakonite: http://code.google.com/p/android/issues/detail?id=28089 ? May 01 20:59:59 no, that isn't it May 01 21:00:25 what happens? bad codegen? gcc crash? May 01 21:00:36 http://code.google.com/p/android/issues/detail?id=22345 or http://code.google.com/p/android/issues/detail?id=22336 ? May 01 21:00:40 bad codegen, but not completely broken May 01 21:00:45 hm May 01 21:00:53 i do not see an issue that is obviously this, Drakonite May 01 21:01:26 there's a bug asking for 4.6 but without providing a technical reason May 01 21:02:34 big thing I was pointing out is gcc's optimization heuristics were known to be broken in 4.4.x It flags code units wrong and will refuse to inline code and some other oddities, resulting in slower, and in some cases larger binaries May 01 21:02:55 note that we're already working on moving up to 4.6+ May 01 21:03:00 there were quite a few codegen bugs, both performance and crash related, in 4.4.x May 01 21:03:09 but it's unlikely that we can do so in the NDK until we can also do so in the main product build May 01 21:03:12 and it's a big deal May 01 21:03:26 even a step to 4.5.x would make a difference, and should be fine to do in the NDK without changing the product build May 01 21:03:54 not really, given how much random weirdness there is about compoiler changes in general and gcc in particular May 01 21:04:06 i really wish we could use a good compiler :) May 01 21:04:19 I couldn't find any record of ABI changes, and you guys have backported a bunch of patches anyways May 01 21:05:02 wongk: thanks! that was exactly what was needed May 01 21:05:23 Drakonite: okay. if you could possibly file a new issue about this specific bug i'd appreciate it. May 01 21:05:43 so i can wave it in the NDK toolchain folks' face :) May 01 21:06:27 clang!!!111 May 01 21:06:31 * aried3r hides May 01 21:06:35 clang would be nice, yes May 01 21:06:38 i fscking hate the green 'Delete 1 conversation' bar that animates down in gmail May 01 21:06:52 hm, I've never noticed it May 01 21:06:56 and I delete emails like crazy May 01 21:07:05 if i have a nickel for every time i've accidently undeleted a conversation May 01 21:07:07 ... May 01 21:07:29 I tried building my own toolchain at one point, but I had some issues figuring out how to get the frakking thing together >_< I kept hitting errors that essentially came down to "you don't know what is going on with the android specific patches" May 01 21:07:36 I get a gray "1 deleted" message at the bottom May 01 21:07:48 but I don't get a green "delete one conversation" anywhere May 01 21:08:23 must be differences in version May 01 21:08:40 wongk: phone or web? May 01 21:08:44 for desktop gmail I use this now http://gmelius.com/ -- at least when i'm not using thunderbird. May 01 21:08:46 phone May 01 21:09:23 ctate: Have you tried ARMCC? That's always fun. May 01 21:09:56 i worked with ADS for a while at one point May 01 21:10:04 in ... 2001-2005 May 01 21:10:04 * Gumboot has been messing around with gcc 4.7.1, armcc, and NEON intrinsics today. May 01 21:10:17 I don't know ADS by that name. May 01 21:10:20 i also ported netbsd's libc because ADS's was so hilariously incorrect May 01 21:10:27 whatever ARM's dev toolchain was May 01 21:10:41 Ah. I couldn't possibly comment. May 01 21:10:52 I especially can't comment on memcpy(). May 01 21:11:12 it was the floating point bits that were the nail in the coffin May 01 21:12:31 I was just hoping that something could generate properly-scheduled NEON code; or at least something that looked sufficiently similar that I could avoid worrying about it. May 01 21:12:36 GCC is not that tool. May 01 21:12:51 gcc is not that tool even if you take the word "NEON" out of the statement. May 01 21:13:11 If you want a lot of code, GCC will give it to you. May 01 21:13:49 4.7 is definitely getting better, though. A huge improvement, but with plenty of room for a huge improvement to not be enough. May 01 21:13:56 Hello, so I'm struggling to understand activities and intents. I'm reading through the Note Pad demo here: http://developer.android.com/guide/topics/intents/intents-filters.html#npex My question is, what is the source of an action in this application? May 01 21:14:14 neon is notoriously bad for compiler support. there is virtually no support beyond intrinsics in any toolchain May 01 21:14:34 i.e. what triggers android.intent.action.MAIN, android.intent.action.VIEW, android.intent.action.PICK and so on? May 01 21:14:36 [17:10:04] <@ctate> in ... 2001-2005 May 01 21:14:39 you make me feel so young May 01 21:14:52 I'm yet to see a compiler do anything worthwhile with any SIMD. May 01 21:15:02 is there a list of (un)supported video cards for GPU emulation May 01 21:15:26 Woot! Settings are mine sayeth the Lord! Lock-down success. May 01 21:16:12 Jonathan_Eyre: how'd you do it? May 01 21:16:27 I don't even know what the current ARM toolchain is descended from. Is it Keil or something internal? May 01 21:16:30 I should really know. May 01 21:16:36 canadiancow|work: :) May 01 21:16:40 Gumboot: they generally can't, due to various tradeoffs of using SIMD instructions., specifically there is typically an overhead of putting things in a different set of registers May 01 21:16:50 i wasnt even in high school in 2001 May 01 21:16:55 i was still in high school in 2005 May 01 21:17:13 o.O May 01 21:17:18 Gumboot: is intel's compiler no good at SSE/SSE2? that would surprise me; they've traditionally been quite good at that sort of thing May 01 21:17:30 I graduated hs in 2005 May 01 21:17:35 canadiancow|work: teenybopper May 01 21:17:53 I'm only a little older than you guys May 01 21:17:56 MMX/SSE/SSE2 is probably the best for compiler support, just because of the popularly May 01 21:17:59 I graduated HS in 2002 May 01 21:18:02 ctate: I haven't looked at that for a few years. It certainly wasn't doing anything useful back then. May 01 21:18:04 evancharlton: Polled for state of activities, moveTaskToFront+killBackgroundProcesses when topActivity.getPackageName isn't on the allowed list. May 01 21:18:17 But I'm reminded that I should be looking at that GCC thread. Watching my optimisation... May 01 21:18:21 It's more of a sniper than a blocker. May 01 21:19:33 the best support I've seen for SIMD has been very well designed encapsulation of some good intrinsics. e.g. a fastfloat type and well written vector types May 01 21:19:45 I might have unreasonably high expectations from vectorisation, though. Most of the hand-written code I've seen is similarly unambitious. May 01 21:20:24 from viewpoint of compilers, the dumber the cpu, the better May 01 21:20:34 i deprecated a method and now i have to go remove the use of it on >300 places :( May 01 21:22:52 Drakonite: and Intel's *other* approach, which has been to provide high-quality libraries for a bajillion different useful tasks May 01 21:23:50 interesting post on phandroid http://phandroid.com/2012/04/29/developers-what-is-your-biggest-complaint-against-google/ May 01 21:24:04 ctate: I haven't done as much digging on x86. mostly MIPS, PPC, and now ARM. May 01 21:24:20 cant say that being indian is something that bothers me May 01 21:24:23 given that im not indian and all May 01 21:24:37 indian cow ? May 01 21:24:39 :D May 01 21:25:03 g00s: okay, i don't have any info on the India billing thing that guy is leading off with May 01 21:25:08 but i call bullshit on the comparison to Paypal. May 01 21:25:13 afaik, Paypal is a bank. May 01 21:25:15 and Google isn't. May 01 21:25:20 this matters *fundamentally*. May 01 21:25:29 actually, i didn't even read his part - i read the comments :) May 01 21:25:37 hehe May 01 21:26:07 there are some reoccurring themes in those May 01 21:26:19 i wonder if google has taken any sort of similar survey May 01 21:26:28 paypal says they are not a bank May 01 21:26:31 *cough*bs*cough* May 01 21:26:45 D: May 01 21:27:05 g00s: I know they haven't asked me May 01 21:27:27 Drakonite: thats because nebraska is part of canada or something May 01 21:27:29 ugh, brain not engaging today. can't think. can't find the web address thingies... May 01 21:27:44 I don't trust paypal to leave my money in there, that's certain. May 01 21:27:51 I withdraw it all asap May 01 21:28:02 no iAds competitor??? May 01 21:28:08 afaik, google is a fucking ad company May 01 21:28:50 google should probably do some survery, where things get categorized / voted May 01 21:29:42 or maybe they have May 01 21:29:50 I feel like google must make a lot of money off of selling its data to third parties... like the CIA. May 01 21:29:57 * readme puts on his tinfoil hat. May 01 21:30:11 readme: i found a large upside down wock works best May 01 21:30:14 You can buy data off the CIA? May 01 21:30:18 also, i know for a fact you can do as well as or better on android with ads than on ios May 01 21:30:36 Gumboot: the other way around, but I wouldn't be terribly surprised if you could to that too May 01 21:30:38 readme: http://www.google.com/policies/privacy/ May 01 21:35:06 greetings folks, does anybody here have experience with HttpClient and Digest authentication? May 01 21:36:05 so ctate, based on that link, am i right to asusme that you deny that google is the most evil compnay ever? May 01 21:36:24 i certainly do not think of them as such May 01 21:36:26 I'm seeing a 401 for every request I issue despite reusing a local context and the httpclient itself May 01 21:36:36 you wouldnt deny it if it wasnt true!!!!! May 01 21:36:38 in-q-tel used to be heavily invested in google May 01 21:36:45 canadiancow|work: this statement is false. May 01 21:37:06 :D May 01 21:37:13 I like Google for what it does for us May 01 21:37:22 Google ==evil May 01 21:37:24 I think Google plays pretty agressively with other big corporations. May 01 21:37:30 if they wernet they wouldnt spend so much time pretending they're not May 01 21:38:33 I can prove google is not "the most evil compnay ever" May 01 21:38:38 proof: Autodesk. May 01 21:38:39 I don't think they are evil, I just think they definitely do things that most people probably do not know about. May 01 21:39:04 readme, I think they are dishonest and i think they activley engage is dishonesty May 01 21:39:14 in* May 01 21:39:28 because, of course, a company is a singular entity May 01 21:39:45 MDijkstra: it is, infact, in the US, it's a person. May 01 21:39:47 :P May 01 21:39:50 MDijkstra, a company itself is a singular entity May 01 21:39:51 readme: legally, perhaps May 01 21:39:53 not sure if you were aware of this May 01 21:39:58 not as far as motivations go May 01 21:40:17 hmmm what permissions are used to play media ? May 01 21:40:22 Right, but in theory there is someone steering the ship that is Google as it were May 01 21:40:28 HAHAHA: "Sometimes when I want to lose faith in humanity I browse the 1 star reviews on the Amazon Appstore, or look at popular apps in the Play Store..." May 01 21:40:29 embeded media May 01 21:40:36 and when people speak of a google they are speaking of those steering the ship May 01 21:40:44 adamDavis: that person doesn't decide every single thing google does, far from it May 01 21:40:48 bubbleguuum: hilarious May 01 21:41:02 MDijkstra, of course, but there is still a captain May 01 21:41:36 if that captain is one people or a collection of people, this is besides the point May 01 21:43:05 fuck, something seems broken with Calendar on froyo May 01 21:43:22 it gives me thr wrong answer sometimes, and python libs give me the right one May 01 21:43:45 http://pastebin.com/t8FHjqA1 fuck no errors in my code thrown but it keeps crashing May 01 21:43:59 but its only off 1 hour in some cases, its a strange one May 01 21:44:01 So what do people, other than myself, expect from SIMD vectorising compilers, then? May 01 21:44:16 Gumboot: not much, usually May 01 21:44:28 g00s: you're not using timezones properly? :) May 01 21:44:52 there needs to be some defect tracking thing, where i can click on a class and get the lowdown for that - what issues existed on what versions of android May 01 21:45:16 its too difficult rummaging through the harmony defect tracker, and then google patches anyhow May 01 21:45:30 Mavrik: i am using timezones properly :) May 01 21:45:55 i get the right answer before april 3, the wrong answer after april 3 May 01 21:46:03 w t ffff May 01 21:46:29 Gumboot: the amount of parallelism that can be easily extracted is usually very limited May 01 21:46:37 "easily"... piffle! May 01 21:50:15 http://blog.xamarin.com/2012/05/01/android-in-c-sharp/ May 01 21:51:01 "Brilliant or insane? Shine on you crazy diamond." May 01 21:51:20 droid in c# sounds OK :) May 01 21:52:04 Can someone please tell me if these are the android default expand indicators? http://ekh.me/explist.png May 01 21:53:24 allright, i'm at my wits end. time to try joda or date4j May 01 21:54:16 i'm fond of just using SimpleDateFormat and Date May 01 21:54:36 adamDavis: *Android May 01 21:55:20 Hi - is there a way to pass an integer from a thread to a Handler in the parent object without having to change it to a string, then parse it as an int again in the Hander? May 01 21:55:44 g00s: i use apache commons DateUtils May 01 21:55:50 JakeWharton, no, i meant to say droid ;) May 01 21:56:00 well then what you said makes no sense May 01 21:56:16 JakeWharton, perception is tricky like that May 01 21:56:18 I'm not sure how a brand name that's owned by Lucasarts and under license by Verizon could be don't in C# May 01 21:56:25 done May 01 21:56:27 stupid client May 01 21:56:37 shipit: what is wrong with sendEmptyMessage? May 01 21:56:41 SmashCat: * May 01 21:56:44 JakeWharton, oh, well in case you didint know, for some people, my self included, droid in synonymous with Androoid :) May 01 21:56:48 the more you know! May 01 21:56:56 is* May 01 21:57:06 also: http://developer.android.com/reference/android/os/Message.html#obj May 01 21:57:12 well adamDavis is synonymous with unintelligent and misinformed :) May 01 21:57:16 SmashCat: Message has a couple of 'int' fields you can use for whatever you want, you know.... May 01 21:57:24 I'm using -> Message toMain = updateHandler.obtainMessage();toMain.obj = 0;updateHandler.sendMessage(toMain); In the handler I find the message object cannot be cast to an int. So I have to change it to a string, then parse it May 01 21:57:28 ctate: what?!? May 01 21:57:32 JakeWharton, its sad to see you've resulted to pety insults :*( May 01 21:57:47 SmashCat: also, uh, read what readme said :) May 01 21:57:58 ctate: it was a joke :P May 01 21:58:04 think about it for a sec. May 01 21:58:12 adamDavis: perception is tricky like that May 01 21:58:14 yeah yeah May 01 21:58:23 don't tease the beginners May 01 21:58:28 JakeWharton, troll on ;D May 01 21:58:43 SmashCat: toMain.arg1 = 0; May 01 21:58:54 mikedg got to me, and we both got to JakeWharton :) May 01 21:58:58 ctate: Thanks yes, just got it ;-) May 01 21:58:58 if you're just sending the integer value '0' use arg1 / arg2 intead of the object pointer field May 01 21:59:02 i remember when mikedg was the only troll May 01 21:59:12 canadiancow|work: i didn't think you were that old May 01 21:59:13 huh, mikedg is a troll? May 01 21:59:21 ctate wut May 01 21:59:26 rugrat May 01 21:59:26 oh May 01 21:59:30 good one hah May 01 21:59:32 oh shit May 01 21:59:37 whats the drinking age in cali? May 01 21:59:39 mikedg actually trolls, I'm just attempting to disseminating ignorance May 01 21:59:44 21 canadiancow|work May 01 21:59:47 ugh May 01 21:59:47 that was a joke May 01 21:59:51 this client has to go May 01 22:00:04 i'd rather misspell things than have it autocorrect May 01 22:00:07 canadiancow|work: i didn't want to be culturally unfair to you since you're canadian May 01 22:00:10 so I just said it May 01 22:00:11 Jake ;) ease up, chap May 01 22:00:20 JakeWharton: which one to use then ? textual ? May 01 22:00:24 irssi :) May 01 22:00:31 on mac ? May 01 22:00:36 can I not? May 01 22:00:42 never tried it May 01 22:01:06 Im using android.R.layout.simple_expandable_list_item_1 as the parent view in my expandablelistview, but how do I access the textview inside it in my getGroupView ? I cant ind its ID May 01 22:01:13 find* May 01 22:03:23 it would start storming like a muther when im about to leave the offive May 01 22:04:49 not sure if typo for 'office' or for 'hive' :) May 01 22:05:27 the distance to office is much shorter! :P May 01 22:06:18 it's pouring... horizontally May 01 22:07:46 wow, people are pulled over to the side of the highway May 01 22:07:54 maybe i'll just work a bit longer :P May 01 22:08:14 what are the alternative languages to write software for android ? May 01 22:08:26 wongk: Hey, I worked my way in a custom adapter. It works fine and very easy. My activity is ExpandableListActivity May 01 22:08:41 wongk: However, I don't see where I should be using ExpandableListView :/ May 01 22:09:01 that activity already has that view built in May 01 22:09:26 assuming i am understanding you correctly May 01 22:09:55 does android support java or C# applications ? May 01 22:10:39 did you just ask if Android supports java? :P May 01 22:10:42 Android's official SDK is in the Java language May 01 22:10:43 Yes, i think you do. I know i should be using ExpandableListView somewhere but i am not. However, right now my activity is setting the adapter to the custom i wrote. and you just told me the activity has it built in May 01 22:11:05 it's reasonably supported to write games in C/C++ May 01 22:11:09 nothing else is supported May 01 22:11:11 ekh: you are using ExpandableListView May 01 22:11:15 http://developer.android.com/reference/android/app/ExpandableListActivity.html May 01 22:12:14 raining a little less hard now, im out May 01 22:13:30 ctate: does it supports java same way as usual phones with javaME ? one can upload java application on android smartphone and run it ? May 01 22:14:42 elkng: Yes - pretty similar. You jjust need to get the ADK and set it up to work with Eclipse. All the instructions are online - pretty easy really. May 01 22:15:43 elkng You wouldn't be able to just upload a java application you wrote elsewhere, you need to use the android APIs May 01 22:15:47 alkng: It's actually easier than the old JavaME way, especially signing apps - used to be a nightmare with different operators May 01 22:18:27 JavaME is a JVM standard as well as library availability etc May 01 22:18:32 Android does not run a Java VM. May 01 22:18:56 you write apps using the Java *programming language*, compiled agianst Android's libraries rather than against Swing or whatever May 01 22:20:03 Any talk of a generic llvm runtime with full libc and family, for platform-independent NDK-like builds? Or is it going to become common to build x86 and MIPS binaries at the same time as ARM? May 01 22:20:23 Wait. Why do I ask these things? I know answering such questions is prohibited. May 01 22:20:57 well, as far as i know, it is not currently really technically feasible to try to e.g. deploy bitcode as a retargetable binary format May 01 22:21:44 (the bitcode has built-in characteristics determined by the ultimate target ABI etc) May 01 22:22:09 so go ahead and *talk* about it, but my god there's a lot of engineering in the way :) May 01 22:22:52 Doesn't Marmalade allow you to target all platforms at once - writing in C/C++. Even targets iOS and Windows AFAIK May 01 22:25:33 ctate: Is there something specific about llvm that makes it less feasible than dalvik or that thing Microsoft uses? May 01 22:25:56 Gumboot: err, yes? May 01 22:26:00 I've had no trouble building ARM-targeted bitcode for x86, for example. It didn't look ridiculous. May 01 22:26:03 dalvik bytecode is target-arch agnostic May 01 22:26:11 llvm bitcode isn't, afaik May 01 22:26:20 Well, it looked a bit ridiculous, but that was the case for all platforms. May 01 22:26:54 obviously few things are actually insuperable at link time or whatever, but it's a large problem May 01 22:27:59 I should perhaps have paid more attention to the preamble and postamble of the code to see if it reflected architecture-specific ABIs or if it just did some random and ill-advised thing. May 01 22:28:10 SmashCat: marmalade seems cool actually May 01 22:28:32 most of the other wora solutions for mobile seem unappealing to me, maybe except for unity. May 01 22:28:45 readme: Yes - one of my friends has been using it for around a year. It produces extremely fast code (he writes games) May 01 22:29:29 is marmalade free? May 01 22:29:54 readme: He sent me some demos of multi-layered platformers running at 60fps on the old Google G1 with loads of sprites etc. Very impressive. It's not free, no. May 01 22:30:07 I'm not sure I see what the unusually large bit is. May 01 22:30:18 Aside from it not being a drop-in solution. May 01 22:30:38 at 150 bucks for an individual license and free to try, sounds fair May 01 22:30:55 if you're writing anything serious 150 is lemonade May 01 22:31:42 readme: Yep, I'm going to be using it soon - his company has 10 coders using it. It's very solid from what he says (no, I don't work for them ;-) ) May 01 22:31:47 ah, but here's the dealbreaker May 01 22:31:51 I don't see a linux version May 01 22:32:16 readme: No, I think they use Macs, so they can target iOS. May 01 22:32:48 "No need to use mac when targeting iOS" on the /marmalade page May 01 22:32:54 orly May 01 22:32:55 that's what grabbed me at first. May 01 22:32:57 hmm May 01 22:33:04 readme: I think it's for the installation/signing May 01 22:33:17 yeah, the claim sounds a little outrageous May 01 22:33:31 they are obviously glossing over some details when they say that May 01 22:33:33 readme: I'd have to check though - there's definitely a reason they use Macs with it May 01 22:36:16 fuck. so the Calendar class on my machine gives me different results than Calendar on froyo May 01 22:36:17 yey May 01 22:37:05 * g00s has a headache, goes to lay down May 01 22:37:30 this is, btw, why you never unit test your stuff on your local pc May 01 22:38:11 any good data on mobile market share? ios/android/blackberry/etc May 01 22:38:27 i think android has 51% now ? May 01 22:38:56 you're probably looking for some more rigorous data :) May 01 22:39:06 I think there was a post today on phandroid about that May 01 22:39:08 readme: It's a bit deceptive though. If you're /selling/ an app, then iOS is still the one to go for first ;-) May 01 22:39:10 at least a link to a chart would be nice, g00s May 01 22:39:24 you might be able to find something on fiercedeveloper May 01 22:41:18 http://techcrunch.com/2012/01/09/ios-marketshare-up-from-26-in-q3-to-43-in-octnov-2011/ May 01 22:41:18 google is uour friend May 01 22:41:54 actually most of the analytic companies track this data May 01 22:42:45 and moreuseful things… like OS versions, machine specs etc May 01 22:42:46 maybe somebody can answer this … i was reading the other day that in the us, at&t and vz are going to get behind wp7 - apparently because they want another alternative to iPhones, which i guess they pay a lot of money for in subsidizing. but why isn't android that counterweight ? May 01 22:44:34 that original article was here http://news.ycombinator.com/item?id=3884550 May 01 22:45:09 i would think, that since carriers can do what they want with android, and they can get many different oems to supply a phone, that would have been sufficient May 01 22:46:11 the world needed another half-assed URI class. thanks Apache for HttpURI. May 01 22:51:20 Why ColorDrawable() doesn't have setOpacity() but has getOpacity()? I am trying to setGroupIndicator((new ColorDrawable).setOpacity()) to make it transparent May 01 22:55:54 somehow i just got a request to do a code review of a cyanogenmod change :S May 01 23:04:55 o.O May 01 23:04:57 Hi all, I want to make an HttpPost to a server of mine to fetch some data. Does anyone know if it's possible to have post params as well as a post body? May 01 23:04:57 services go boom May 01 23:05:13 SimonT: ... what? May 01 23:05:18 HTTP does not work that way. May 01 23:05:42 you can post to, say, http://example.com/foo?bar=baz May 01 23:05:42 I know you can do one or the other, I'm curious if it's possible to do both May 01 23:05:52 that would be GET May 01 23:05:55 no May 01 23:06:01 that's actually part of the URL. May 01 23:06:13 not for a POST May 01 23:06:22 * t0mless headslap May 01 23:06:38 seriously? May 01 23:07:02 anyhow knows how to retrieve/make a transparent drawable? :/ May 01 23:07:23 SimonT: no. May 01 23:07:42 SimonT: you can URL-encode stuff in a POST's payload May 01 23:07:53 is that what you're thinking of? May 01 23:07:55 An HTTP POST does not put the parameters in the URL May 01 23:08:34 SimonT: you can put the parameters in the URL anyway, and HttpPost will take them and put them in the body for you, along side your data. May 01 23:09:50 readme: I wasn't aware of that, sounds helpful although not quite what my question is.. May 01 23:09:51 with a httpsurlconnection, is the if u add data via url-encoding, is it sent in plain text? May 01 23:09:55 Let me try and explain May 01 23:10:32 SimonVT you are wrooooong! May 01 23:10:40 lol May 01 23:10:51 SimonT == SimonVT? May 01 23:10:53 canadiancow: SimonT May 01 23:10:54 yo dawg i heard you like HTTP requests May 01 23:10:55 SimonT: i've got code right in front of me that sends post parameters and json too, without putting the json in a post parameter, in the same request. May 01 23:10:57 oh May 01 23:10:59 my bad May 01 23:11:09 sorry SimonVT May 01 23:11:13 yep May 01 23:11:14 urbad May 01 23:11:17 it's also unit tested thoroughly May 01 23:11:25 readme: that's what I'm trying to do May 01 23:12:07 SimonT: put the json in with setEntity(new StringEntity(my_deserialized_json)); May 01 23:12:11 put the post params in the URI May 01 23:12:15 * SimonT hates it when I don't ask the question properly May 01 23:12:15 it works. May 01 23:12:24 even with HttpPost. May 01 23:12:37 readme: Ok cool, is that the only way to add the post parameters? May 01 23:12:54 you can add them using a UrlEncodedFormEntity, too May 01 23:13:04 but not if you're going to do the StringEntity thing for your JSON May 01 23:13:09 hence why I came across this way of doing it. May 01 23:13:27 bah i need to go get some US cash May 01 23:13:37 Right, that's where I got stuck, trying to use UrlEncodedFormEntity along with StringEntity May 01 23:13:41 I use this to make the URIs more easily https://gist.github.com/2572270 May 01 23:13:55 SimonT: uhhuh, I was stuck there yesterday when i discovered that this works May 01 23:14:09 readme: Awesome thanks a lot May 01 23:14:21 I've also written a method called executeBasicRequest that can handle HttpPost, HttpGet, and HttpPut all in the same method May 01 23:14:28 but that might be too wild for most people May 01 23:14:45 readme: why would you do that ;_; May 01 23:15:15 XMPPwocky: to repeat less code May 01 23:15:28 readme: Yeah, I wrote a helper method for sending HttpPost May 01 23:19:32 canadiancow: the canadian acorn is weak against the dollar :) May 01 23:20:00 dude, teh canadian currency is worth a few pennies more May 01 23:20:16 oh, i was just joking. an old onion article May 01 23:20:16 pennies May 01 23:20:17 when canadiancow bought my app he paid 1.99 CAD but it came out to 2.01 USD May 01 23:25:41 lol readme May 01 23:25:44 and fuck May 01 23:25:50 teh website said open to 8pm wed/thu May 01 23:25:54 so of course i went over May 01 23:25:59 not realizing its fucking tuesday T_T May 01 23:35:58 hmm, so if i set my phone to GMT-4:00 EDT, the Calendar give a bad result 1 hour off, but if I instantiate Calandar with TimeZone("GMT-4") it works May 01 23:36:43 under settings, select time zone, "Eastern Time GMT-4:00" May 01 23:37:13 funny WebKit crashes with NPE if it cannot open a database: java.lang.NullPointerException May 01 23:37:13 E/ACRA (12236): at android.webkit.WebViewDatabase.initDatabase(WebViewDatabase.java:231) May 01 23:56:24 hey May 01 23:56:31 um May 01 23:59:00 g00s: sounds like a good opportunity to make a hackish workaround that passes the timezone to Calendar. May 01 23:59:13 <`teh> hey May 01 23:59:46 with the samsung S-planner app, the widget shows my meetings 1 hour off, but the app doesn't May 01 23:59:53 <`teh> how do i run an android project from eclipse as signed with my real cert? May 01 23:59:54 wonder if that's related somehow May 02 00:00:23 I complained to samsung and they told me to wipe/reset my phone May 02 00:00:31 I'm having trouble installing android sdk on Windows 7 x64 May 02 00:00:46 readme: thanks again for your help May 02 00:01:01 set JAVA_HOME to java.exe May 02 00:01:21 np May 02 00:01:22 it's still not finding it. BTW, I used the complete path, not just java.exe May 02 00:01:33 do i need to install 32 bit sdk? May 02 00:01:36 it should not include java.exe, RustyShackleford May 02 00:02:03 also pointed to the jdk folder, but it didn't work either May 02 00:02:03 <`teh> is there a way to have eclipse sign my app when running in debug mode, instead of using the debug.keystore? May 02 00:05:47 you can set a custom debug keystore but I assume your key is password-protected May 02 00:18:09 sup May 02 00:18:42 It's not possible to enforce a single word (one name) in an edittext with an inputtype, is it? May 02 00:18:58 does larry ellison have eyebrows? May 02 00:19:15 http://tinyurl.com/co6ejut May 02 00:19:19 because i can't see em May 02 00:19:35 looks like mafia May 02 00:19:55 basically is May 02 00:29:51 anyone suggest to use opengl over canvas for a simple 2d game? May 02 00:30:23 define "simple" May 02 00:30:31 id usually recommend using a good 2d game engine May 02 00:30:33 like AndEngine May 02 00:31:03 andengine makes me angry May 02 00:31:10 readme: lets hope he doesn't run for prez, with trump as vp or something crazy May 02 00:31:22 why hkhalid May 02 00:39:31 whatcha guys think about the Galaxy Nexus for Dev purposes? Ive been thinking about replacing my Captivate with the Galaxy Nexus because ATT has crappy Android Phones and the phone looks nice for use and for deving May 02 00:40:01 Hi! I'm writing an Android app and would like to have a simple callback between my UI code and a model class in order to update my UI with new info in the Runnable associated with a button click. So I'd like a way for my model class to register a callback and for the Runnable to fire it. What do people usually use for that on Android? May 02 00:41:23 cjb: from what I understand, you cant really update the view from a runnable, you would need something like a handler which is basically an Androidified runnable May 02 00:46:58 drpenguin: hm, it's more that I want my model class to be able to change state and then call a method that updates the view. the Runnable would be for telling the model class to move on to the next state. May 02 00:47:43 What is meant by "change state"? May 02 00:48:21 I'm working on a quiz app, so changing state consists of setting a new question and then telling the UI to draw it. May 02 00:49:20 That doesnt exactly sound like something that needs to be multithreaded, but it sounds easy to do.. it basically sounds like your extra thread is gonna be blocked until its told "HEY! SWITCH TO THE NEXT QUESTION!" May 02 00:49:41 yeah, I was wondering if there's a more idiomatic Android way than just using threads May 02 00:50:13 maybe my model is supposed to create a Handler and pass it to the UI code, which sends a message back when it's time for the next question, which does the same thing again? May 02 00:58:09 hello, I want to get some information about using health monitoring devices with Bluetooth Low Energy over android phone, but I can't find the SDK for bluetooth 4.0 May 02 00:59:16 alippai: http://developer.android.com/reference/android/bluetooth/package-summary.html May 02 00:59:34 alippai you didnt google it, you dildo May 02 01:00:01 alippai: and http://developer.android.com/guide/topics/wireless/bluetooth.html May 02 01:00:19 thats for the old bluetooth, there is no information about http://en.wikipedia.org/wiki/Bluetooth_low_energy May 02 01:00:21 i … didn't think there was bt4 lp support yet May 02 01:00:27 dildos May 02 01:00:28 :D May 02 01:00:38 maybe g00s is right :( May 02 01:01:37 http://code.google.com/p/broadcom-ble/ http://developer.motorola.com/docs/bluetooth-low-energy-gatt-framework-api/ I found these two links with Google May 02 01:01:57 but it seems they don't work but on specific phones May 02 01:02:23 yeah, those are not real SDKs; they're hacks for specific hardware May 02 01:02:30 BtLE is not supported in public SDK. May 02 01:02:48 ctate: hope that … changes May 02 01:02:55 soon :) May 02 01:02:59 alippai sorry, I retract my comment May 02 01:03:11 if its in jb, we'll be able to use it 8 mos from now :) May 02 01:03:21 8 mos from jb, 10 mos from now ? May 02 01:04:37 i've just checked, WP will support it from v. 8 and iOS has support for it May 02 01:04:38 interesting May 02 01:05:07 alippai: alippai does wp8 have rfcomm ? May 02 01:05:51 it was a bummber wp7.5 did not have apis for rfcomm May 02 01:06:25 hi all, is there a way to use RandomAccessFile with MODE_PRIVATE? May 02 01:10:52 qisur: of course May 02 01:11:14 what is it that you want to do? May 02 01:13:22 hi all, I will write a certain application and just want your quick thought on what would be involved. The application will talk with an RP May 02 01:13:29 ctate, well firstly forgive me my "noob'ishness", basically i'm trying to use RandomAccessFile to write/read data.. previously i used openFileOutput() with MODE_PRIVATE and all worked fine, but now i'm not sure what paths should i give to my RandomAccessFile method since i don't know where private data is stored May 02 01:13:47 talk with an XML RPC server, get some info from it. display to the user, and it will also show a certain location within google maps May 02 01:14:14 as far as I understand, this will involve 1) setting up XML RPC for Android within my project, making the rquired calls in the code to get the info May 02 01:14:30 just make sure you do your http requests on another thread May 02 01:14:50 I had found a XMLRPC library that worked pretty well, but I forget what it was now May 02 01:15:05 2) doing the google maps stuff. now I've never used google maps in android, is showing a location something simple ? May 02 01:15:08 ctate, if i don't specify any path and use plain "filename", i get all kinds of errors and exceptions such as read-only filesystem May 02 01:15:21 <`teh1> anyone know why a tab view might turn its tabs' backgrounds black after switching back and fourth a couple times May 02 01:15:34 <`teh1> i guess it happens once you've switched away... May 02 01:15:44 <`teh1> seems ot have to do with cacheing or something but im not sure of the issue May 02 01:15:51 ok t0mless, basically I'm trying to estimate the workload/time required for me to do this. It should be doable in 2 hours the whole app ? May 02 01:16:14 just talk with RPC server, get info. display. and show a location in g maps May 02 01:16:17 oh, found an article about this bluetooth "vs" android: http://www.cellular-news.com/story/53379.php May 02 01:16:18 depends how comfortable you are with xmlrpc/java/android May 02 01:16:25 it's missing... perfect May 02 01:16:32 and how well you know the maps api May 02 01:16:40 t0mless, i'm somewhat comfortable with android (and java). but never used xmlrpc or google maps api May 02 01:16:43 but you can probably complete that in 2-3 hours May 02 01:16:55 however... android 5.0 on it's way >D May 02 01:17:11 [citation needed] May 02 01:17:18 thanks t0mless, I guess I can sleep tonight then :P May 02 01:17:30 is there a list of (un)supported video cards for GPU emulation May 02 01:18:21 i have a problem with Samsung Kies Air - when i connect my international ver. GSII i9100, its says my device is not supported for firmware upgrades May 02 01:18:44 i tried the USB debugging setting - that didnt help May 02 01:18:58 you have a custom rom? May 02 01:19:06 AFAIK the int. ver. SGSII ICS has been released May 02 01:19:27 i bought it from somone else, i think its not custom rom May 02 01:19:59 can i tell from about phone page? May 02 01:20:35 alippai: that article was a good find May 02 01:21:07 Build Number: GT-I9100-ENG 2.3.6 Gingerbread XXKL1 TEST-KEYS May 02 01:22:05 Kernel Version: 2.6.35.7-i9100xxkl1-cl783870se.infra@SEP-64 #2 May 02 01:22:28 the TEST-KEYS part of that concerns me foggyb May 02 01:22:36 I don't think your device is running a stock rom May 02 01:22:42 which is why it doesn't want to upgrade May 02 01:22:59 i recently did factory reset - would that not restore the factory rom? May 02 01:23:22 t0mless: and how can I know for sure? May 02 01:24:03 ask in #android-root maybe? May 02 01:24:07 they are more hardware guys May 02 01:24:13 k May 02 01:26:26 t0mless: if i know my phone is not rooted, does that tell you anything? May 02 01:26:40 no, you can root stock roms May 02 01:26:53 i see May 02 01:27:14 if you're just trying to get ICS, I think CM9 is out for the SGSII May 02 01:27:24 xda-developers might know more May 02 01:27:53 what is CM9? is it relatively bug-free by now? May 02 01:28:20 Your second question implies you know the answer to the first May 02 01:28:38 well i know about custom roms, but i had not heard of CM9? May 02 01:29:15 CM9 stands for....? May 02 01:29:29 Cyanogenmod version 9. May 02 01:29:31 oh right May 02 01:35:37 <`teh1> http://dl.dropbox.com/u/15218301/fuckyouandroid2%20-%20Computer.m4v May 02 01:35:38 <`teh1> anyone? May 02 01:43:11 anyway, thank you guys May 02 01:43:14 g00s++ May 02 01:49:11 <`teh1> aaaanyone know the problem? May 02 01:49:11 <`teh1> http://dl.dropbox.com/u/15218301/fuckyouandroid2.m4v May 02 01:49:18 are you using TabActivity? May 02 01:49:26 <`teh1> yes May 02 01:49:38 you really shouldn't May 02 01:49:57 it r depreciated May 02 01:51:14 <`teh1> WHAT May 02 01:51:16 <`teh1> seriously? May 02 01:51:19 Yar May 02 01:51:20 <`teh1> what should i use instead? May 02 01:51:26 http://developer.android.com/reference/android/app/TabActivity.html May 02 01:51:27 Fragments May 02 01:51:33 <`teh1> go on May 02 01:51:43 <`teh1> do they work on 2.1-update? May 02 01:51:51 This class is deprecated. May 02 01:51:51 New applications should use Fragments instead of this class; to continue to run on older devices, you can use the v4 support library which provides a version of the Fragment API that is compatible down to DONUT. May 02 01:51:57 So... Yes. May 02 01:52:06 <`teh1> ohhh May 02 01:53:29 <`teh1> bummer May 02 01:53:30 <`teh1> ok May 02 01:53:36 <`teh1> man i wish i had known this before May 02 02:01:46 <`teh1> t0mless: fragments seem really flawed… if i read correctly, when using fragments for a tab type interaction, switching the tab will completely destroy the existing fragment and replace it with a new one??? May 02 02:02:06 <`teh1> that means that all my code that depends on the tab being able to run in the background (paused though) becomes incorrect... May 02 02:02:19 So have that code in your activity May 02 02:02:26 that is hosting the tab May 02 02:02:30 fragments* May 02 02:02:34 <`teh1> ok May 02 02:02:40 i'm seriously bumming that google code search went away May 02 02:02:47 and just because you show a new fragment doesn't mean you destroy the old one May 02 02:02:56 <`teh1> ok so it does cache it May 02 02:03:16 can someone send me Odin3? The mediafire link doesn't work for me May 02 02:03:16 http://www.mediafire.com/?qonk4g3wgxnlene May 02 02:03:19 yo dawg i heard you like fragments May 02 02:03:23 <`teh1> but that means that every time it loads it it calls onCreateView or wwhatever it is May 02 02:03:38 <`teh1> or is that only the first time May 02 02:03:38 <`teh1> hm May 02 02:04:16 if you call finish() in onCreate(), does onStart() and onResume() still get called? May 02 02:04:58 i think i may be able to set minSdkVersion to 10 soon :) May 02 02:07:36 i need help with this error http://pastebin.com/DSe8m7bN May 02 02:08:19 devslash, what exactly do you need help with May 02 02:08:31 ndroid.widget.LinearLayout cannot be cast to com.google.android.maps.MapView May 02 02:08:33 05-01 19:06:41.426: E/AndroidRuntime(13679): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.follow.me/com.follow.me.WhereAmIActivity}: java.lang.ClassCastException: android.widget.LinearLayout cannot be cast to com.google.android.maps.MapView May 02 02:08:34 <`teh1> t0mless: so, tabhosts, specs, etc all still exist? it's just that tabactivity is now fragment May 02 02:08:34 my app was working and now it just crashes at launch and i don't understand that error May 02 02:08:35 <`teh1> O.o May 02 02:08:36 seems pretty obvious May 02 02:08:47 so clean May 02 02:08:48 rebuild May 02 02:08:59 if its still broken, i dont believe you :P May 02 02:09:05 heh May 02 02:09:19 ahh thanks May 02 02:09:21 google still hasnt transferred me my IO ticket :( May 02 02:09:24 working now May 02 02:09:26 com.follow.me.WhereAmIActivity.onCreate(WhereAmIActivity.java:59) May 02 02:09:31 when in doubt, clean and rebuild May 02 02:09:36 indeed May 02 02:09:46 not as easy in big apps though May 02 02:09:58 i have an app that takes ~5 minutes with proguard May 02 02:10:04 ~4 without May 02 02:10:04 :( May 02 02:10:06 5mins? May 02 02:10:06 if i do a full clean May 02 02:10:10 what was it? May 02 02:10:15 Scramble With Friends May 02 02:10:31 <`teh1> actually? May 02 02:10:32 <`teh1> :o May 02 02:10:37 5 mins? May 02 02:10:40 yep May 02 02:10:41 core i7 May 02 02:10:43 8GB ram May 02 02:10:47 <`teh1> well TBH all of the ____ With Friends app are bloated and stupid May 02 02:10:51 actually i havent tried since upgrading to a SSD May 02 02:10:54 `teh1 T_T May 02 02:11:00 it is absolutely not bloated May 02 02:11:02 <`teh1> they are so fucking slow it's absurd May 02 02:11:08 what part is slow? May 02 02:11:12 <`teh1> everything. May 02 02:11:15 ok no May 02 02:11:20 i no longer believe anything you say May 02 02:11:29 <`teh1> startup takes way longer than it should May 02 02:11:40 <`teh1> they use up a lot of power while "idling" May 02 02:11:40 hey canadiancow, where you from? May 02 02:11:44 canada May 02 02:11:53 yeah i got that, what part? May 02 02:11:56 toronto May 02 02:12:06 winnipeg May 02 02:12:10 no, toronto May 02 02:12:15 <`teh1> canadiancow: ive only ever actually used it on iOS May 02 02:12:16 lol May 02 02:12:19 :P May 02 02:12:22 <`teh1> it's really way way slower than it should be on iOS May 02 02:12:27 <`teh1> the dev team sucks May 02 02:12:31 `teh1... ok dont even talk to me May 02 02:12:42 "IVE ONLY EVER USED A DIFFERENT APP. BUT YOURS IS SLOW" May 02 02:12:52 yeah 'teh1: don't even talk to canadiancow anymore, eh May 02 02:12:52 lol May 02 02:12:58 yo dawg May 02 02:13:01 I heard you like apps May 02 02:13:03 <`teh1> oh i was playing with you, however all my friiends say that the ___ with friends apps are slow on android, dunno what part May 02 02:13:10 <`teh1> foggyb: ' != ` May 02 02:13:50 `teh1, what phones do these friends have? May 02 02:13:58 if they have shitty phones yes it will be slow May 02 02:14:16 my mom has no complaints with using pretty much everything ending in with friends on her sidekick May 02 02:14:19 QA always rags on us May 02 02:14:25 _______ IS SLOW ON THE LG OPTIMUS ONE May 02 02:14:39 <`teh1> well mytouch 4g and droid x, i think May 02 02:14:47 hmm both of those are at least decent May 02 02:14:52 to which i reply "yea, and modern warfare 3 is slow on my pentium 2" May 02 02:14:54 I don't see why there'd be an issue there May 02 02:15:06 canadiancow, the optimus one isnt bad, especially if its running cm May 02 02:15:15 its about on par with evo if you run it at 864mhz May 02 02:15:18 its slow as balls o.O May 02 02:15:22 with stock May 02 02:15:27 oh yeah stock sucks May 02 02:15:28 fyi: we dont "test" with CM May 02 02:15:33 <`teh1> another of the big issues i have with the ___ with friends apps is that they use so much ram at once, probably due to the absurd amount of images :P May 02 02:15:44 <`teh1> and they have reallllly huge imprint on the drive May 02 02:15:50 thats one thing I've noticed, yeah they are huge May 02 02:15:51 `teh1, we adhere to the heap limits May 02 02:15:58 <`teh1> it's still a lot =D May 02 02:16:02 the largest WF game is like a 14MB apk May 02 02:16:11 oh wait hanging might be bigger May 02 02:16:15 so say 20 May 02 02:16:21 its under the "wifi warning" limit in the play store May 02 02:16:21 <`teh1> yes but when you download it, it seems to download more content May 02 02:16:26 hanging does May 02 02:16:30 but that goes on the sd card May 02 02:16:32 and its not THAT much May 02 02:16:44 <`teh1> well, i will say on iPhone it goes up to ~ 130MB May 02 02:16:53 ... May 02 02:16:58 <`teh1> but we've already established the WF iphone dev team sucks May 02 02:17:05 thats not true May 02 02:17:07 <`teh1> lol May 02 02:17:12 <`teh1> want me to screenshot my phone? May 02 02:17:27 want me to screenshot the dev team? May 02 02:17:48 <`teh1> sure May 02 02:17:48 do it May 02 02:17:55 <`teh1> ok May 02 02:18:00 you have to realize that zynga mobile has grown from like 50 people to several hundred in the past 12 months May 02 02:18:05 <`teh1> yep May 02 02:18:09 <`teh1> i never said the games arent fun :] May 02 02:18:23 but you're making a huge generalization with a statement liek that May 02 02:18:24 tbh it doesnt surprise me that the iphone apps are huge May 02 02:18:34 I dont think i have an app on my iPhone under 25mb May 02 02:18:36 devs rarely get to work on what they want to - they work on what they're told May 02 02:18:43 sometimes that's "fix this crash" or "make this faster/smaller" May 02 02:18:55 other times its "add a new feature" May 02 02:19:09 <`teh1> :] May 02 02:19:14 so jsut because your issue isnt fixed doesnt say anything about the dev team May 02 02:19:15 <`teh1> i usually just do projects for myself May 02 02:19:37 anyway hanging (android) is 17MB May 02 02:19:40 <`teh1> well, i guess the issue is that they didnt create it with all the possible optimizations in mind May 02 02:19:46 <`teh1> which in my mind kind of sucks :P May 02 02:19:48 and it might download anotehr.... i'll be conservative and say as much as 20 May 02 02:19:59 a lot of our code is based off the original words with friends code May 02 02:20:01 which was pre-zynga May 02 02:20:10 which was "we need this out now or we wont have money for salaries" May 02 02:20:24 anyone using joda time ok on android? this kinda scares me http://stackoverflow.com/questions/5059663/android-java-joda-date-is-slow May 02 02:20:32 im not too familiar with the ios side May 02 02:20:35 <`teh1> so hanging is 60 MB right now for me May 02 02:20:46 but 80% of the android code was rewritten in the past 12 months May 02 02:21:01 ios? May 02 02:21:02 <`teh1> because it downloaded 36 mgs of data May 02 02:21:05 <`teh1> yeah May 02 02:21:05 <`teh1> sec May 02 02:21:18 ok well again, my knowledge of the ios code is almost non-existant May 02 02:21:29 well maybe more than that May 02 02:21:29 <`teh1> i could make hanging smaller than that May 02 02:21:35 greetings guys, got a quick question May 02 02:21:44 <`teh1> im good at making things small >.> May 02 02:21:44 im sure you could May 02 02:21:46 in your development, is there any service which you can rent android devices from May 02 02:21:51 and it may happen over the next 6 months May 02 02:21:55 <`teh1> xximjasonxx: friends May 02 02:21:57 or it may not May 02 02:21:59 <`teh1> canadiancow: would be nice May 02 02:22:02 it depends who gets assigned to what May 02 02:22:08 what's considered important May 02 02:22:19 `teh1, really surprised there isnt a service May 02 02:22:21 because thats the other issue: on supported iOS devices, is 60MB a lot? May 02 02:22:24 seems like one could make a killing May 02 02:22:24 <`teh1> me too May 02 02:22:38 you're annoyed, but it's clearly not bad enough to uninstall May 02 02:22:41 <`teh1> xximjasonxx: it wuld be a profitable service, seeing as android phones are sofa king inconsistent May 02 02:22:47 honestly, if it really bothers you, write an email to support May 02 02:22:49 :) May 02 02:22:52 if no one complains, it wont get fixed May 02 02:22:55 <`teh1> canadiancow: i never said it isnt fun, it's just slow and consuming in power as well May 02 02:23:03 [22:22:51] if no one complains, it wont get fixed May 02 02:23:07 im complaining, find me a venture capitalist :) May 02 02:24:05 i can guarantee you every support email is read, and if a well written message is received (so not "ZOMG IT TAKES SO MUCH SPACE"), it will get passed along May 02 02:26:16 <`teh1> :] May 02 02:26:57 in my Activity's onCreate I'm immediately adding a fragment and then calling findFragmentByTag and then getView so I can find some buttons by id. but the findFragByTag keeps returning null.. i've even tried finding by tag AFTER calling executePendingTransactions but to no avail…any thoughts? May 02 02:27:42 find it in onStart() instead? May 02 02:28:05 or even better, define the fragment in xml so it's already ready to go in your activity's oncreate May 02 02:28:30 should i do it in onAttachFragment? May 02 02:29:03 t0mless, yeah adding in xml would be ideal, but for whatever reason it was a bit easier to convert what was a just an activity before to a fragment May 02 02:30:08 although May 02 02:30:18 if you're creating and attaching a fragment in onCreate May 02 02:30:23 why do you even need to do findFragment May 02 02:30:29 shouldn't you already have a handle to it? May 02 02:35:10 i think im gonna do the xml thing May 02 02:35:15 question for you May 02 02:35:23 can a fragment element be the root of my xml? May 02 02:35:39 Sure May 02 02:35:55 and can i reference a fragment there thats not a top level class? May 02 02:36:07 you cannot reference inner fragments May 02 02:36:12 <`teh1> t0mless: is there something i have to do to get eclipse to recognize the Fragment class? May 02 02:36:12 inner classes May 02 02:36:22 include the support library May 02 02:36:54 <`teh1> http://cl.ly/3Y3Z0D3s1d1D181I0Q2f May 02 02:37:02 <`teh1> uhh May 02 02:37:11 include the support library May 02 02:37:29 <`teh1> weird that shift+cmd+o doesnt do that automatically May 02 02:37:58 <`teh1> oic May 02 02:38:07 that does imports May 02 02:38:13 you need to include the support library. May 02 02:38:26 in your java build path May 02 02:38:46 what does "flash gapps" mean, in noob-proof ODIN method rooting? May 02 02:39:25 that means put the google aps on the device May 02 02:39:29 gtalk, gmail, play, etc May 02 02:39:40 how, just install the gapps zip? May 02 02:39:43 from sd May 02 02:40:06 depends on the device/method. Read XDA May 02 02:40:33 i am following the "noob-proof" guide, but they assume a lot May 02 02:41:00 that means #android-root May 02 02:43:00 <`teh1> t0mless: im not finding android-support jar in the location that the docs say May 02 02:43:11 <`teh1> i am finding individual Fragment_________.java files May 02 02:43:17 <`teh1> but that cant be right May 02 02:43:23 did you download the support lib in the SDK manager? May 02 02:43:31 <`teh1> hm maybe not xD May 02 02:44:26 <`teh1> yeah it says i have revision 7 of it t0mless May 02 02:44:36 <`teh1> im updaying it now, but still May 02 02:44:37 i love IntelliJ, but it sucks for HTML development :) May 02 02:44:39 <`teh1> … May 02 02:44:50 <`teh1> http://cl.ly/0R0Y0O06203J301B1d22 May 02 02:45:27 so then it should be in your sdk directory May 02 02:45:33 under extras/support I believe May 02 02:45:47 oh May 02 02:45:53 extras/android/support/v4 May 02 02:46:00 <`teh1> i dont have that May 02 02:46:09 <`teh1> i have android/compatibility though May 02 02:46:23 maybe I need to update then May 02 02:46:24 <`teh1> oh there it is May 02 02:46:29 <`teh1> unside compatibility May 02 02:47:12 JakeWharton did you know that r8 of the support lib came out? May 02 02:47:21 yes May 02 02:47:31 no significant changes May 02 02:47:34 boo May 02 02:47:34 and no bugfixes May 02 02:47:41 t0mless youre wrong about no innerclasses May 02 02:48:00 haha May 02 02:48:03 in fact our very own JakeWharton does it com.actionbarsherlock.sample.fragments.FragmentArgumentsSupport$MyFragment May 02 02:48:09 didnt add any features, didnt fix any bugs May 02 02:48:10 hrm.. I seem to remember something about non-static inner classes being not allowed May 02 02:48:11 fuck it May 02 02:48:13 though that class is static May 02 02:48:14 we'll do it live! May 02 02:48:16 so my bad May 02 02:48:21 luxurymode: that sample is from the support library May 02 02:48:28 oh haha May 02 02:48:30 whoops May 02 02:48:43 i keep not knowing whats your stuff and what's from android May 02 02:49:04 im the same dude who posted that issue on ABS about a "smarter" way to handle keyevents for alphabetic shortcuts for action items May 02 02:49:16 thinking the todo comment was from you May 02 02:49:16 lol May 02 02:49:44 so the log is telling me that the fragment needs an empty constructor May 02 02:49:54 but i havent created any other constructors May 02 02:50:06 why the hell cant i just get a damn frag to be included in xml May 02 02:51:06 do you have a no argument constructor? May 02 02:51:33 keeping getting inflateexeptions at E/AndroidRuntime(17049): at com.actionbarsherlock.internal.ActionBarSherlockCompat.setContentView(ActionBarSherlockCompat.java:850) May 02 02:51:49 t0mless, shouldnt i by default? May 02 02:52:02 i havent defined any other constructor so isnt there an implicity no arg public constructor? May 02 02:53:44 oh im an idiot May 02 02:53:54 when i extracted the class from an inner class May 02 02:54:04 intellij instead created a new class with my fragment as an inner class May 02 02:54:09 ah gotcha May 02 02:54:09 yeah a lot of plucked from other places May 02 02:54:09 AOSP or the support lib May 02 02:54:09 99% of the time when people want to improve something they want to improve one of those things and not ABS May 02 02:54:23 lol May 02 02:54:33 yeah im more interested in contributing to ABS then to AOSP May 02 02:54:43 or at least i think it might be a bit more manageable May 02 02:55:01 <`teh1> t0mless: do you know any decent tutorials for fragments with tab view type interaction? this is straight retarded. May 02 02:55:20 Nope. May 02 02:55:22 I don't get fragments, I used the old way May 02 02:55:40 am i supposed to use android:name="com.me.myfrag" or class=? May 02 02:55:50 class= May 02 02:55:58 <`teh1> fleend00d: that's what im sayin May 02 02:56:06 thanks t0mless May 02 02:56:19 As far as I know, you can just have your tabsec change the currently shown fragment out as needed May 02 02:56:45 <`teh1> OK May 02 02:56:48 never really used TabHost tbh May 02 02:56:55 still having the same problem https://gist.github.com/2573281 May 02 02:56:56 you could also use action bar tabs May 02 02:57:36 Binary XML file line #5: May 02 02:57:41 what is that line? May 02 02:58:24 i guess thats where i give the id May 02 02:58:34 android:id="@+id/sign_up_frag" May 02 02:58:40 i guess i need a tag... May 02 02:59:34 t0mless, one more question: when i want to find views by id for the view returned by oncreateview of the frag in my xml, do i need to first grab the fragment or can i just call findviewbyid May 02 02:59:38 im guessing the former.. **** ENDING LOGGING AT Wed May 02 02:59:58 2012