**** BEGIN LOGGING AT Thu Sep 06 02:59:58 2012 Sep 06 03:10:44 is the play store having issues with publishing updates? I seem to have pushed all the right buttons, but the play store page still shows the old version Sep 06 03:12:11 * Komak57 ponders for a bit Sep 06 03:12:32 Is there any EASY way of collecting all of the address information for all the home depot locations to add to a database? Sep 06 03:14:59 I'm trying to add a specialized store locator for home depots to my app. Our company is a Home Depot contracted vendor, meaning we go to their store and help out. It would be very helpful if I could bulk add the stores to the list, rather than the small list only our district maintains. Sep 06 03:15:55 Komak57, have you looked at http://sd.site88.net/thd_store_list.pdf ? You could just cut and paste... Sep 06 03:16:18 fantastic! Sep 06 03:16:28 that's exactly what i was using for my district (only got 1 page) Sep 06 03:17:54 -needs to organise the data he has a little better before he starts on that whopping list- Sep 06 03:35:14 http://m.mobilenapps.com/articles/4061/20120903/android-users-cheap-more-apps-now-bought.htm Sep 06 03:39:32 \o/ Sep 06 03:40:28 oh wait, this is only for SwiftKey ? Sep 06 03:41:50 "We're aware of the reports that installs data displayed in the web view of Google Play store has stopped updating." Sep 06 03:42:03 why do they keep having these stat update problems ? Sep 06 03:42:26 you know, stats is a hard problem in scalable systems Sep 06 03:42:58 hard for some, i guess Sep 06 03:43:06 it's fundamentally centralized. decentralization is the way you scale. Sep 06 03:43:32 so you kind of have these after thought design problems in scalable systems to tackle stats usually Sep 06 03:44:34 its actually surprising how many companies I worked for in the past 5 years that had absoultely 0 clue on how to make things scale Sep 06 03:44:40 including current employer Sep 06 03:44:58 well, it's currently a specialized skill. Sep 06 03:45:03 that won't be true for much longer. Sep 06 03:45:03 they were complaining about hwo slow reports were because this table had thousands of rows... I was like... what?! Sep 06 03:45:07 thats database tuning 101 Sep 06 03:45:17 I've seen sql server perform WELL with BILLIONS of rows in a table Sep 06 03:45:34 actually, a co-worker of mine just recently said the same thing. and i was like dude, thousands isn't a large number anymore. this isn't 1995. Sep 06 03:45:47 honestly even in 95, it wasnt that much Sep 06 03:45:58 btrees have been in use in database indexing for quite some time Sep 06 03:46:09 I remember my uncle boasting to me around then, that his company central database had thousands of products in it... Sep 06 03:46:25 and how it was a massive database they needed to run on a serious IBM computer Sep 06 03:46:44 and thinking, even then, than a PC running Linux could probably handle it Sep 06 03:47:53 maybe late 90s... the company no longer exists. Sep 06 03:48:00 well either way, if anyone thinks thousands of records is a problem today they're fucking clueless. Sep 06 03:48:01 last company I worked for build a cms that was a complete and utter PILE OF SHIT Sep 06 03:48:09 in 95 i was still playing lemmings, oblivious to all this Sep 06 03:48:14 I am not exagerating this baby couldnt handle two simutaneous connections Sep 06 03:48:18 i think my android app gets 10k records easily :) Sep 06 03:48:29 so their solution? use FUCKING LDAP AS A CMS! Sep 06 03:48:31 wtf? Sep 06 03:48:43 I just sat there and was like uhhhhhhhhhhhhhhhhhhhhhh Sep 06 03:48:57 ron_frown: we have a web service that has the exact same problem. they solved this by adding machines in the load balancer which basically just worked around QA's test script that showed the failure Sep 06 03:49:06 but if QA Just modified the script to make 3 requests instead of 2, it would fail again Sep 06 03:49:07 I'm all for creative solutions, but there would never be a point in my thought process ldap would have come up for a solution to slwo cms Sep 06 03:49:07 Button info = new Button(this); info.setPadding(-50, 0, 0, 0); this moves the button left 50 pixels, right? or is this an improper way of setting Margins? Sep 06 03:49:13 such an lol moment i just walked away from the problem Sep 06 03:49:17 those schmucks are on their own Sep 06 03:50:02 Komak57: seriously don't do this. if you want custom layout behaviour, create a custom layout. Sep 06 03:50:02 ~trying to place a button on the right side of some text programmatically and the google script snippets don't exist~ Sep 06 03:50:21 when you say things like "layout programmatically", what you really mean is "i want a custom layout", btw. Sep 06 03:50:44 my old company used to contract to just about every major mobile developer having a serious part of their software... Sep 06 03:50:49 in most cases you can do what you're looking for in a very understandable, very logically straight forward way with like 10 lines of non-boiler plate code and extending FrameLayout Sep 06 03:50:59 so one of our MAJOR clients wanted us to be able to service their 100mil mobile customers Sep 06 03:51:24 my genius coworkers put together a design and as we got close to having to report our milestones Sep 06 03:51:38 we started benchmarking performance and could get about 10 simutaneous users Sep 06 03:51:53 on db server that had 256 gb ram, tons of processors etc Sep 06 03:52:18 they were actually ok reporting 10 simutaneous users to customer after 1yr of dev Sep 06 03:52:25 alternatively, i suppos i can just set the layout params display.getWidth() - 30 Sep 06 03:52:36 Komak57: you really, really don't want to play that game. Sep 06 03:52:57 it's a kludgey, terrible pattern that will only explode on you at some point. Sep 06 03:53:15 it's like saying to yourself "hey, how can i avoid understanding anything about layouts in order to do layouts?" Sep 06 03:53:31 jasta, i have to list a filterred amount of items from a list of (possibly) thousands? Sep 06 03:53:46 and i want the text, then a button on the right XD Sep 06 03:53:54 this method has worked for me so far >_> Sep 06 03:54:04 I still can't find an answer to this problem, although it seems other have had similar issues. http://stackoverflow.com/questions/3354955/onactivityresult-called-prematurely Sep 06 03:54:16 Komak57: whatever, i'm off. Sep 06 03:54:22 I do not have any specified android:launchMode in my manifest Sep 06 03:54:32 jasta, what exactly are the hazards? Sep 06 03:55:02 Komak57: of manually fiddling with layout params? Sep 06 03:55:15 o.O i have no layout XML Sep 06 03:55:26 I'm manually creating the layout Sep 06 03:55:44 well, for starters, your code running in a fragment or activity has _no idea_ what state the view hierarchy is in. the view system goes through a layout and measure pass that unless you participate in it directly (as in, you create custom views), you have no way to understand its state Sep 06 03:55:49 or participate in that state Sep 06 03:55:50 Zds comment in my link dictates the exact order of calls that I'm seeing via logcat. Has anyone else experienced this? Sep 06 03:55:52 for example, dynamically relaying crap out Sep 06 03:56:16 "state" Sep 06 03:56:18 a great example of this is if you try to do things like getWidth() on a control in onCreate or onResume. the width is 0. Sep 06 03:56:18 ? Sep 06 03:56:29 because it hasn't been measured or laid out yet. Sep 06 03:56:58 Komak57: use an xml layout, it helps a lot. completely separates the view logic from your code Sep 06 03:56:59 oh, and worse, if you use a handler and callback, sometimes when you call getWidth() you might get 50, then sometimes you might get 80, depending on where the view hierarchy is in its layout process. Sep 06 03:57:04 well, the first place i used it was in the main activity class, and it does that on button press. Sep 06 03:57:38 but if you want to go down that rabbit hole of misunderstanding, go for it. but you have a very experienced android developer telling you to learn about layouts. i think you should listen :) Sep 06 03:58:31 farkerhaiku: how do you suggest I go about filtering a list of (lets just go and say) 500 custom class items including Store number, Store name, Phone number, Address, and make sure the user finds only the ones he was looking for? Sep 06 03:59:29 I'm generating this manually because it's a fair bit easier to throw all the store data in an ArrayList, run through the list and filter specifications, and display them in an organised fassion Sep 06 04:03:12 I use an XML view when I set up any decent amount of data that doesn't need to go away (ever). Sep 06 04:03:48 Komak57: uhm, you can still use XML but create them dynamically with LayoutInflater Sep 06 04:04:34 and you should. because creating and manipulating views in code is an error prone, hideous pain in the ass. Sep 06 04:04:36 rather than doing Layout.addView()? Sep 06 04:04:52 no, rather than new SomeView(...) Sep 06 04:05:05 though layoutinflater will also do addView for you if you want. Sep 06 04:05:07 Layout.addView(info); Sep 06 04:05:45 I haven't really had any issues with it what-so-ever >_> though it's only been tested on 2 different phone models. Sep 06 04:05:48 whatever man. if you want to be crude, you go right ahead. Sep 06 04:06:02 i'll choose to be elegant, though. Sep 06 04:07:13 jasta: any chance you know anything about my setActivityResult problem? Sep 06 04:07:32 setResult rather? I've had a long night trying to figure this stuff out... Sep 06 04:07:42 I'm listening to your argument, but your method seems like such a ton of additional code that doesn't seem to truely add any additional stability >_> I'm only using the display.getwidth - 50 to tell my new view that there needs to be some space on the right for a button? Sep 06 04:10:13 farkerhaiku: sorry, gotta run Sep 06 04:10:18 Komak57: lol, are you really using a constant of 50? Sep 06 04:10:25 farkerhaiku: komak is baiting me, i can't help it :) Sep 06 04:10:34 The Imagebutton is only 45 pixels wide XD Sep 06 04:10:43 wow. Sep 06 04:10:45 thank you though jasta Sep 06 04:10:47 except that it's not. Sep 06 04:10:56 are you not familiar with dip units? Sep 06 04:11:02 jasta: no worries.... someone is wrong on the internet, i totally understand Sep 06 04:11:06 info.setLayoutParams(new LayoutParams(40, 40)); Sep 06 04:11:12 LayoutParams uses pixel format Sep 06 04:11:16 yes it does Sep 06 04:11:21 why, i have no idea Sep 06 04:11:22 guess what you're not supposed to use? Sep 06 04:12:04 jasta, go on now XD I'll take heed of your advice if anything bugs in a later date. Sep 06 04:12:08 http://developer.android.com/intl/zh-TW/guide/practices/screens_support.html -- dp is what you want. Sep 06 04:12:14 I still don't even know if ill be allowed to publicise this app Sep 06 04:12:18 and yes, using a constant will be buggy. Sep 06 04:12:22 seriously, SERIOUSLY buggy. Sep 06 04:12:28 just bring in my galaxy nexus, and i'm sure it'll fail hard. Sep 06 04:13:00 dp's are such a pain to use in code, too. in XML, it's just the difference between typing px or dp. Sep 06 04:13:02 i'd love to have you test it Sep 06 04:13:10 except that i won't. Sep 06 04:13:18 XD Sep 06 04:14:04 I suppose the biggest problem i would have here, is the icon would be super small on very high resolution phones.. Sep 06 04:25:32 bah ok in the event that this is scraped and someone googles my question, the problem was in launching the new intent. I had "intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);" which seems to break out of the setActivityForResult flow Sep 06 04:28:42 Hi All -- I know there are many ways to do animations in Android. I'd like to know what approach you would recommend for doing the following: within a rectangular region that occupies only part of the screen, animate the translation, rotation, and color of various shapes using parameters that are known only at runtime. Sep 06 04:28:50 The animation details would be loaded from persistent storage, but wouldn't be affected by any user input while it plays. The shapes can either be a polygonal "path" object or a rasterized image -- I'd use whichever one would be easier. Sep 06 05:12:10 I'm looking at the LunarLander example that comes with the SDK, trying to get a handle on how Layouts work ... in that sample, the basic setup is: . They do this so the TextView can be centered horizontally. Is there any difference at all in what they did -vs- making the outer Layout be a RelativeLayout and getting rid of the inner layout? Sep 06 05:14:51 I saw a statement that FrameLayout is fast because it's very simple, but no explanation or example was given as to how there would be a speed difference. If I had to guess, I'm guessing they did this because of a potential speed issue from using RelativeLayout to wrap the view ... anyone wanna take a stab at an answer? Sep 06 05:16:19 I tried switching it as I described, and I don't see an obvious speed difference, but that isn't to say it wasn't done out of habit or whatever Sep 06 05:25:43 how can I intercept a incoming call and activate my own activity or something like that? Sep 06 05:39:20 What is the difference between lockCanvas() and lockCanvas(null)? Sep 06 06:42:25 Can I expect any trouble having both the Android plugin and Web Tools installed in Eclipse? Sep 06 06:42:44 Can you restart a loader without calling initLoader first? Sep 06 06:49:27 [Starts a new or restarts an existing Loader in this manager Sep 06 06:49:32 yup Sep 06 06:49:39 oh cool thanks Sep 06 06:51:36 fucking eclipse Sep 06 06:52:16 it says that isEmpty() is undefined for the type String and the method setRoundingMode(RoundingMode) is undefined for the type DecimalFormat Sep 06 06:52:26 tried to fix project properties but it didn't help Sep 06 06:52:32 how on earth can i fix this absurdity Sep 06 06:52:33 fucmk Sep 06 06:52:41 clean & restart? Sep 06 06:52:47 do you have the java version set to 6+? Sep 06 06:53:01 http://stackoverflow.com/questions/1483534/java-isempty-undefined-for-string Sep 06 06:53:40 i have jre7 Sep 06 06:53:52 good. that wasn't the question Sep 06 06:54:44 where can i find the version? Sep 06 06:55:26 no idea - apart from that stackoverflow link I just gave you Sep 06 06:56:01 is there a way to change the to parameter of simple cursor adapter, like if i am pulling from a different table in a loader? Sep 06 07:00:11 projection determines which fields from the db to populate the cursor with, and it always has to include the primary key, but I can not include other fields as to make it faster? Sep 06 07:00:34 and if I do so, does the projected columns still retain the column indexes from the database? Sep 06 07:06:54 fuck Sep 06 07:06:57 didn't solve it Sep 06 07:07:25 changed compiler compliance to 1.6 but didn't help a thing Sep 06 07:18:00 If I have a database table with fields: id, name, score; is there some way where if I making a call to the list of all names I can avoid getting any further instances of a name? Sep 06 07:20:11 lasserix: DISTINCT Sep 06 07:20:58 so String selection = "DISTINCT" Sep 06 07:21:21 or * distinct? Sep 06 07:22:16 select distinct name from yourTable Sep 06 07:22:34 I guess sqlite offers the disctinct keyword Sep 06 07:22:51 Thanks I see that but I'm using a cursorloader so I got to figure out how to fit in among the parameters Sep 06 07:31:35 Doesn't look like you can with a cursorloader Sep 06 07:31:55 *can't Sep 06 07:33:27 Oh joy more tables! Sep 06 07:45:06 What's the best-easier way to send a data from android to an website? Sep 06 07:45:44 HTTP Sep 06 07:45:47 duh :) Sep 06 07:46:16 Leeds Does it have something to send directly to a mysql server? Sep 06 07:46:22 nope Sep 06 07:47:53 I'll try http://www.androidsnippets.com/executing-a-http-post-request-with-httpclient, thanks Leeds Sep 06 07:48:39 you might also find http://android-developers.blogspot.hk/2011/09/androids-http-clients.html helpful Sep 06 07:49:24 nice, ty. Sep 06 07:51:38 libmysql :)) Sep 06 07:52:10 I have a ViewPager which I supplied with a pageAdapter containing 3 fragments. Everything works fine. Now I want to "disable" one of the fragments from time to time, what would be the easiest way to achieve this? Sep 06 07:56:04 hey everybody Sep 06 07:56:16 i am facing an issue with the listview Sep 06 07:56:50 i have a view in which there are 2 child. one is the imagebutton while the other is the textview Sep 06 07:57:14 onclick of the imagebutton i change the imagebackground as the checked image Sep 06 07:57:47 but when i scroll it i can see the 10th or the 9th item getting selected automatically in the listview Sep 06 07:58:23 also sometimes while scrolling back to the previous position the image is again replaced automatically by unchecked image Sep 06 07:58:30 how can i resolve this issue ?\ Sep 06 07:58:32 please help Sep 06 08:00:41 remember that Android is reusing the table cells Sep 06 08:01:21 Leeds java.net.SocketException: Permission denied Sep 06 08:01:24 ok Sep 06 08:01:32 hamcore: got INTERNET permission? Sep 06 08:01:37 ah, nevermind, manifest Sep 06 08:01:39 thanks. Sep 06 08:03:32 vavirta: so how can i show the correct selection while scrolling Sep 06 08:03:43 Isn't this possible to store doubles using BasicNameValuePair? Sep 06 08:03:48 vavirta: if its using the same table cells Sep 06 08:04:23 data.add(new BasicNameValuePair("temperatura",(Double)location.getLatitude())); Sep 06 08:04:56 hi, i need some help with opengl & android ? Sep 06 08:05:31 tabman: are you sure ? Sep 06 08:05:47 i'm not sure if this is the appropriate channel for that ? Sep 06 08:05:48 vavirta: you there ? Sep 06 08:06:08 tabman: it is Sep 06 08:07:11 g00s: ok Sep 06 08:07:45 I have a texture loaded and it renders the texture fine, while the code is running I need to replace it with another texture, I load the new texture into it the same way the first time was done but it doesn't replace it with new texture Sep 06 08:08:16 hi g00s Sep 06 08:08:29 for some reason the old texture is not replaced with new texture, how could I debug this Sep 06 08:08:41 hi sunny_slls Sep 06 08:08:51 g00s: the usage of same table index in listview is arising issue for me Sep 06 08:09:18 tabman are you remembering to call bindTexture before calling txcoordpointer? Sep 06 08:09:20 g00s: on selecting the first index, the 10th index gets selected automatically Sep 06 08:09:38 which i can see while i scroll down Sep 06 08:10:14 also when i scroll up , sometimes the 0th position which i had selected earlier gets deselected automatically Sep 06 08:10:26 g00s: how can i resolve this ? Sep 06 08:10:49 i haven't played with opengl in a while but the sequence i have from last working stuff goes ... glGenTexture, glBindTexture,glTexParameter,GLUtils when loading the texture Sep 06 08:11:20 lasserix: I'm able to load the texture fine first time & it works, the issue is replacing it with another texture so I assume the method calls are all fine cause it works first time Sep 06 08:11:47 sunny_slls: i dunno :( Sep 06 08:11:59 then in ondraw you use glEnable(tex2d), glBindTexture, glEnableClientState(texcoorarray), glTexCoorpoint Sep 06 08:11:59 g00s: oh~! ok Sep 06 08:12:04 no problem Sep 06 08:12:07 don't assume with opengl Sep 06 08:12:27 that order of function calls worked for me Sep 06 08:12:34 assuming you are 1.0 es Sep 06 08:12:58 some guy had the same problem a long long time ago and it turned out he forgot to call bindtexture again in the onDraw Sep 06 08:13:54 but i guess you have to make two calls to glBindTexture once when you load it and then again when you draw it Sep 06 08:14:22 otherwise just make sure you are correctly referencing the right texture handle Sep 06 08:14:34 lasserix: let me check that Sep 06 08:17:19 lasserix: I don't make a call to bind in ondraw but bind is called when the next texture is loaded Sep 06 08:17:30 yeah Sep 06 08:17:34 you have to call it in onDraw Sep 06 08:18:20 or so i believe, it's been a while but that is the method sequence in my working texture animator Sep 06 08:20:35 the reason is is because since its a functional pipeline you have to "reinitialize" the texture to be bound otherwise it doesn't know Sep 06 08:20:46 ie texcoor is not sufficient Sep 06 08:21:04 lasserix: I'm not sure if that is the problem Sep 06 08:21:17 did you try? Sep 06 08:23:28 http://pastebin.ca/2201700 - What's wrong here? Sep 06 08:23:29 well i am probably wrong anyways check out the texture portion: http://www3.ntu.edu.sg/home/ehchua/programming/android/Android_3D.html#zz-2.8 Sep 06 08:23:58 oops, minus the + before lat and lon Sep 06 08:24:23 "lat",lat and "lon",long are being rejected Sep 06 08:25:23 lasserix: they code is not that simple that I could change the method calls just like that Sep 06 08:25:59 according to this tutorial: http://blog.uncle.se/2012/02/opengl-es-tutorial-for-android-part-vi-textures/ Sep 06 08:26:03 my original statement was correct Sep 06 08:26:17 you need to make a call gl.glBindTexture(GL10.GL_TEXTURE_2D, textures[0]); Sep 06 08:26:20 in the ondraw method Sep 06 08:26:28 which is why it is not changing textures Sep 06 08:27:02 since it is a functional pipeline you have to "flag" opengl to use the new texture, by calling gl.glBindTexture EACH time you use the texture in onDraw Sep 06 08:27:21 gl.glTexCoordPointer is not sufficient for using the new texture in the onDraw, Sep 06 08:27:41 lasserix: thanks for the tutorial, that might help to learn some opengl stuff, I don't know much about it Sep 06 08:27:45 tabman not so simple what do you mean? Sep 06 08:27:48 use the second link Sep 06 08:28:03 it's more user friendly for newbies Sep 06 08:28:23 what do you mean your code is not as simple you can't change it!?! Sep 06 08:28:32 lasserix: yes Sep 06 08:28:36 lasserix: 2nd link ? Sep 06 08:28:45 http://blog.uncle.se/2012/02/opengl-es-tutorial-for-android-part-vi-textures/ Sep 06 08:28:54 make sure to read part i through vi Sep 06 08:29:08 very good introduction Sep 06 08:29:45 what do you mean you can't change your code though?!? Sep 06 08:30:46 lasserix: I mean its quite big code Sep 06 08:31:02 you are using eclipse? Sep 06 08:31:16 lasserix: but this link you gave me I think it'll give me enough knowledge to get upto speed with opengel & then debug the problem myself, thanks a lot Sep 06 08:31:22 lasserix: yes eclipse Sep 06 08:31:35 the problem of why it won't change textures is because Sep 06 08:31:41 if you look in your ondraw method Sep 06 08:31:57 you need to call gl.glBindTexture before calling gl.glTexCoordPointer Sep 06 08:32:13 lasserix: i'm not calling glTexCoordPointer in ondraw either Sep 06 08:32:37 are you doing opengl es 1.0 or 2.0? Sep 06 08:32:43 lasserix: 2.0 Sep 06 08:32:47 oh thats why! Sep 06 08:32:52 sorry i was talking about 1.0 Sep 06 08:33:14 IN that case, here don't bother with that link that's all 1.0 stuff Sep 06 08:33:22 I haven't gone thru it all but here's a link for 2.0 http://www.learnopengles.com/android-lesson-one-getting-started/ Sep 06 08:33:36 you can also try #opengl Sep 06 08:33:50 most of those guys do stuff not for opengl es but sometimes they do Sep 06 08:34:34 anyways sorry i couldnt be of more help, good luck! Sep 06 08:36:30 tabman: here is about http://www.learnopengles.com/android-lesson-four-introducing-basic-texturing/ texturing for 2.0 Sep 06 08:36:48 lasserix: thanks a lot Sep 06 08:38:58 hahaha. I give boss new version of apk, he starts installing and then I got idea how to fix another issue and laughed out loud. He realized that new version was coming and moaned "don't tell me you are going to give me yet another version". Haha. Taste of your own medicine! ;) Have lost count how often I have started compiling and testing only for him to give me yet another version of Sep 06 08:38:58 pictures to use. Sep 06 08:50:27 I keep getting "undefined" as line 14's output! how is this possible? http://pastebin.com/H9H1ywXz Sep 06 08:50:34 I am asking a

element whose ID is "paragraph" to get focus, then I print out which element is focused, I get undefined Sep 06 08:50:47 this is for a Samsung TV app Sep 06 08:57:51 Sicp: really, this isn't the right place for samsung tv stuff Sep 06 08:58:12 Hi. If there's no WIFI available here right now is there an easy way to get internet with my notebook (linux)? It looks like android doesn't like my ad-hoc AP :-( Sep 06 08:58:41 argh Sep 06 08:58:48 there IS NO PLACE for that shit. Sep 06 08:58:58 I should be switching to dev for google tv Sep 06 08:59:02 as I asked last time, do they even have open development for it? Sep 06 08:59:17 I don't know what that means Sep 06 08:59:19 the SDK is there Sep 06 08:59:37 where? Sep 06 08:59:49 how do you deliver apps to the TV? Sep 06 09:00:14 what a question; postman go and install with adb Sep 06 09:00:18 you can upload it to your own tv Sep 06 09:00:24 hey, good question.. Sep 06 09:00:51 you mean where is their Store? Sep 06 09:01:01 where you can submit your own? that's open development? Sep 06 09:01:13 yes Sep 06 09:01:46 does Google TV have open development? Sep 06 09:01:57 yes Sep 06 09:02:10 just no users :) Sep 06 09:02:28 what do you mean? Sep 06 09:02:35 it isn't picking up yet? Sep 06 09:04:05 google fiber Sep 06 09:04:21 the takeup of first-gen GTV was terrible - Logitech wrote off millions in losses, and their CEO (I think) resigned over it Sep 06 09:04:38 gooogggllle fiiibbbeerrr Sep 06 09:04:38 i remember that Sep 06 09:04:43 second-gen has been rolling out over the past couple of months, but it's too soon to see if it will actually go anywhere Sep 06 09:05:26 2nd-gen certainly has more potential - the hardware is cheaper and more powerful, and hopefully Google have learned a bit of a lesson about content by now... Sep 06 09:05:41 gooooooggggllllleeee ffiiiiiibbbbbeeeerrrr Sep 06 09:05:58 lasserix: yes, can we help you? Sep 06 09:06:11 Oh no but gtv is just waiting on google fiber to take off Sep 06 09:06:35 er, no Sep 06 09:06:53 why not? Sep 06 09:07:22 because we're not talking about Google's TV-over-experimental-fibre service Sep 06 09:07:29 we're talking about the Android-on-TV platform Sep 06 09:07:46 what better way to serve up content than google fiber on any android-on-tv platform? Sep 06 09:08:02 lasserix: google fiber is facing some big roadblocks itself Sep 06 09:08:10 sign a two year less get a rebate on a gtv Sep 06 09:08:20 no doubt i am just saying the two could go hand in hand very well Sep 06 09:08:38 … profit ! Sep 06 09:08:48 underpants, ???, profit! Sep 06 09:08:49 hopefully they have bigger plans for GTV than one US city Sep 06 09:09:34 cannot get my head around viewpager Sep 06 09:09:43 goos what roadblocks anyway? Sep 06 09:10:02 why did they rewrite the adapter system (i.e. PagerAdapter) Sep 06 09:10:30 whats the problem stork? Sep 06 09:10:35 I am not getting anywhere with finding out if there is open development or not, Leeds; can you take your go? Sep 06 09:10:46 maybe you know what to search for Sep 06 09:10:46 viewpager is like a book the adapter loads the pages Sep 06 09:11:26 Sicp: um, no - I don't care, except that it's definitely nothing to do with Android, so off-topic here Sep 06 09:11:36 I thought you'd not care, yea Sep 06 09:11:44 presumably you know *something* about it, unless you're just messing around on your own TV Sep 06 09:11:45 ok I'll tell if I get to anything definitive Sep 06 09:11:58 where do you get the SDK? Sep 06 09:11:59 nah just using the emulator from their SDK Sep 06 09:12:05 i just tried removing a view from my pageradapter using destroyItem and it just left a blank space in my viewpager.. not all that helpful Sep 06 09:12:15 from SamsungDForum Sep 06 09:12:28 http://www.samsungdforum.com/ Sep 06 09:12:50 stork look for circular pager adapter it may help you understand Sep 06 09:12:51 fuck it, might just stick to using gallery Sep 06 09:13:17 there seems to be a big link there for "How to submit an app to the Samsung TV store" Sep 06 09:14:16 where.. Sep 06 09:14:33 on the front page of that site, in the revolving banner Sep 06 09:15:11 see, knew you'd figure it out Sep 06 09:15:12 haha Sep 06 09:15:16 yea that was shameful Sep 06 09:15:27 so there is open development for Samsung TV apps Sep 06 09:15:32 but it has nothing to do with this channel. Sep 06 09:15:37 no idea - it asked me to sign in before I could read that page Sep 06 09:16:36 yea I'm there now Sep 06 09:20:55 who's the schemer? Sep 06 09:22:28 hey guys, getting out of memory when reading content from the url, I am using https://gist.github.com/3653543 Is there anyway I could optimize this so as not to get out of memory? Sep 06 09:23:27 I am not a Schemer, but I have learned a little Scheme in the past Sep 06 09:50:25 hi guys, some1 know what happens with ccache inside ndk? Sep 06 09:57:22 how can i debug a slow layout? i've got a gallery with some custom views in it that oddly runs really butter-smooth on an old htc desire but really slowly on my gnex - ? Sep 06 09:59:58 hiearchyviewer Sep 06 10:03:53 ok Sep 06 10:07:02 how do i best store colors in a content-provider, for use with background color of rows in a ListActivity? Sep 06 10:08:22 hmm)) maybe I need to go on another channel related ti ndk, do you know something? Sep 06 10:10:33 http://developer.android.com/reference/android/widget/AutoCompleteTextView.html <- why straight copy&paste from this fails to work? No suggestions pop up. If I read page right this shouldn't even be case of too old api in use(like which ruined one good example from me) Sep 06 10:16:38 how on earth do you remove an item from a pager adapter Sep 06 10:24:58 i call destroyItem and then notifyDataSetChange - the item goes, but the adapter doesn't like refresh the data - there's just a blank space where that item was Sep 06 10:30:24 http://www.youtube.com/watch?v=Tyiw0K5HWeo nsfw Sep 06 10:35:22 stork why are you using destroyitem? Sep 06 10:35:58 what should I be using? Sep 06 10:36:35 hi Sep 06 10:36:49 destroyItem is called to remove views from the cache Sep 06 10:37:02 a pageradapter only creates adjacent views Sep 06 10:37:15 so 0, 1, 2, 3 Sep 06 10:37:32 when i go from 1 -> 2 destroyItem is called for 0 Sep 06 10:37:54 and the create is called for 3 Sep 06 10:38:46 i see Sep 06 10:39:18 why are you destroying this view? Sep 06 10:39:28 you want to remove it from the adapter? Sep 06 10:39:37 yeah Sep 06 10:39:49 i think i need to override getItemPosition Sep 06 10:40:18 i dont know to be honest but destroyitem is used by the adapter to release views not adjacent to the current "page" Sep 06 10:40:51 what's ems btw? Seems some sort of size but not sure what it does Sep 06 10:41:05 eclipse graphical UI designer slapped it so got curious Sep 06 10:42:13 ems is a relative metric Sep 06 10:43:52 "It relates text size to sizes of other things." not sure how it works on android Sep 06 10:46:02 stork u have to remove views from the viewpager not pageradapter here Sep 06 10:46:02 http://stackoverflow.com/questions/8060904/add-delete-pages-to-viewpager-dynamically Sep 06 10:47:06 to get around the remove item at 0 Sep 06 10:47:19 just never let the user get to position zero Sep 06 10:47:36 and "start" the list at position 1, forcing it back to zero with onpageselected Sep 06 10:48:40 *err us setOnPageChangeListener and if the position is 0 just set it to 1, and never populate the first item (won't matter since user cant get there) that way you can always delete Sep 06 10:49:23 doesn't work Sep 06 10:50:12 ? Sep 06 10:52:21 if i delete a view from the middle the views around don't 'reshuffle' Sep 06 10:53:14 Yes, the code should be like this: Sep 06 10:53:24 ie from 2 answer Sep 06 11:03:34 wow, a book on Bluetooth Low Energy coming out Sep 06 11:08:06 http://developer.android.com/reference/android/widget/AutoCompleteTextView.html <- okay this is almost what I want but problem is suggestion can't be directly figured from the typed text. User will be typing numbers(code number) and I would want it to show possible choises with plain text name. I would have table with code=>name so basically I would need to find possibilities there. Is Sep 06 11:08:07 this possible at all? Sep 06 11:11:42 Do you guys knows of any well done apps using In-App Billing besides games? Sep 06 11:17:56 gah. now the boss thought up buttons that would be vertical, ie text go top to bottom rather than left to right. groovy Sep 06 11:18:27 I made an app for the better part of this year, no im putting it on the market . the app is specifically aimed at hte 10.1 galaxy tab Sep 06 11:18:44 why does the developer console tell me it's not supported due to my manifest ? Sep 06 11:23:09 tneva82 sure why wouldn't it be possible? Sep 06 11:24:29 well yeah I'm sure it's possible but personally not fan of the idea Sep 06 11:25:08 btw yesterdays layout weight to divide screen equally to edittext. it seems it causes that when I type text the other 2 shrink in size. did I forget something? Sep 06 11:25:43 i dont know haven't used edit texts much Sep 06 11:25:54 im sure there is some xml flag to keep size constant Sep 06 11:27:33 stork any luck? Sep 06 11:27:43 yeah Sep 06 11:28:06 i had to override getItemPosition Sep 06 11:28:13 interesting Sep 06 11:28:21 hi, i'm a total java/android newb and i'm trying to implement http://marakana.com/forums/android/examples/40.html, but i keep getting java.lang.ClassNotFoundException: com.example.lurker.WifiDemo errors.. can someone look at my files with me? i messed a bit in the manifest but it stays the same Sep 06 11:30:16 brabo you can use logcat? Sep 06 11:30:37 the logcat will tell you what line number the error is stemming from Sep 06 11:30:41 yes, it is from logcat that i have the error Sep 06 11:31:02 at the end of that line is a number, find that number in your code and see if you can id the problem Sep 06 11:31:40 *line number Sep 06 11:32:05 you have to look in the logcat for the error line that is referencing your code, not the underlying android code Sep 06 11:32:21 you should be able to tell cause it'll reference the package or whatever Sep 06 11:33:22 brabo, have you compiled other apps before? I once had the ClassNotFoundException when my project was accidentally configured to java7, and eclipse basically ignored the dex error (though the "DDMS Console" in eclipse had some error message) Sep 06 11:33:22 okay thanks, i will try that Sep 06 11:33:41 jui-feng: no, i'm just starting out with java Sep 06 11:34:11 if you can't identify the line in your code where the exception occurs, then it might be a bad project setup Sep 06 11:35:34 sorry, the "Android Console" had the error message, not DDMS Sep 06 11:35:42 hm lasserix there is no line number at the end so to see, just line numbers at all the uhm java libs? that are failing Sep 06 11:35:48 lasserix: let me make a paste Sep 06 11:36:03 stacktrace or gtfo! Sep 06 11:59:44 brabo you figure it out? Sep 06 11:59:50 Ahh the infinite bundle. Sep 06 12:00:33 1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c1;2c Sep 06 12:12:40 hello guys, I'm trying to use the GPS in the emulator (with the "geo fix" command) to set some fake coords and get latitude and longitude values inside my app, but something is not working as expected (it looks like the values are not present), my code is here: http://pastebin.com/DGY4bYqe Sep 06 12:13:28 Does order by random work with cursorloaders? Sep 06 12:13:58 order by on database level Sep 06 12:14:25 cursor loader for load cursor(s) Sep 06 12:15:08 sigh, the developer console is so retarded Sep 06 12:15:30 i had to update my app like 50 times and I still cant get it to allow the device im targeting Sep 06 12:15:49 which is only one single ole' galaxy tab 10.1 p7500 Sep 06 12:16:20 ixc can i use RANDOM for the orderBy arguement on a cursorloader? Sep 06 12:18:10 ertl your app has correct permission? Sep 06 12:19:32 osxorgate: I'm using ACCESS_FINE_LOCATION, ACCESS_COARSE_LOCATION, ACCESS_LOCATION_EXTRA_COMMANDS, ACCESS_MOCK_LOCATION, CONTROL_LOCATION_UPDATES and INTERNET Sep 06 12:21:21 lasserix: orderby in sql, not on cursorloader Sep 06 12:21:52 i have to use the cursorloader for this since i have it attached to a listfragment Sep 06 12:22:02 can i throw random in the ORDERBY arguement ? Sep 06 12:22:14 ertl and you get null back? have you tried using a listener, and then after it's registered, send a geo fix command? Sep 06 12:22:16 or is there no way to randomize my cursorloader? Sep 06 12:22:29 *randomize the order by Sep 06 12:22:46 lasserix: short: u can; long: please read about sql, content provider, cursor and cursorloader Sep 06 12:23:11 do you happen to know if I can simply put "RANDOM()" as the orderBy arguement? Sep 06 12:23:29 osxorgate: yeah, with that code I'm always getting a null ... the listener is a mandatory thing? I thought I could use a geo fix command even without it Sep 06 12:23:39 because cursorloader queries don't correspond exactly to rawqueries (you cant do certain things like distinct) Sep 06 12:23:54 ertl yes i would think so as well.. try the code on your phone maybe Sep 06 12:24:05 lasserix: queries in content provider Sep 06 12:24:12 emu is always a bit sketchy in that regard Sep 06 12:24:20 sorry I dont know what that means Sep 06 12:24:20 cursor loader just a helper for load some cursor asynchronous Sep 06 12:24:41 I know but I am using a loader which has to return a cursorloader Sep 06 12:24:51 in the on create method Sep 06 12:26:43 you should read min. cursorloader and content provider (or if u not use contentprovider, must to know what u made in database 'manager') Sep 06 12:27:01 i have read both Sep 06 12:27:30 i have both implemented, I would like to know if I can use RANDOM as the order argument for the cursorloader constructor in my cursorloaders oncreate method Sep 06 12:27:50 *i am using contentprovider Sep 06 12:28:34 or do I have to make my own custom loader just to do that one thing? Sep 06 12:29:32 no Sep 06 12:29:49 Hi there. Is there any possibility to add Views to the UI from a second thread (via a Handler) or is this impossible? Sep 06 12:30:24 public CursorLoader (Context context, Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) ---> Can I pass "random" for sortOrder and get a randomized cursor? Sep 06 12:31:04 I tried to do so, but the UI does not get updated. It just stays blank. Sep 06 12:31:33 makubi ui operations must be performed on main/gui thread Sep 06 12:31:43 makubi: u need run on main thread ur ui operations Sep 06 12:31:46 lasserix: that's why I used a Handler Sep 06 12:32:16 I am initializing the Handler in the onCreate-method of the activity Sep 06 12:32:36 passing it to another class, where it gets updates after loading of data is finished Sep 06 12:33:28 the other class lives on the main thread? Sep 06 12:33:38 you could use Async task Sep 06 12:33:52 has convience methods for you to do just that kinda of thing Sep 06 12:34:36 from so " You need to create a Handler in the UI thread and then use it to post or send a message from your other thread to update the UI " Sep 06 12:35:48 or use async task Sep 06 12:36:13 lasserix: thats what I did: http://paste.coding4coffee.org/show.php?p=KVdjjq26 Sep 06 12:37:30 this is the ActivityWorker class: http://paste.coding4coffee.org/show.php?p=b0dRaY23 Sep 06 12:37:57 Sorry I don't know Sep 06 12:38:16 makubi: what about runOnUiThread? Sep 06 12:38:52 commands get put to a queue where it is obtained by the second thread. this thread dowloads data and then calls the worker to put the data to Sep 06 12:39:31 guys, wo you know here channel about NDK ? Sep 06 12:40:09 ixc: well I would have to pass a runnable, but this thread should not run on the ui Sep 06 12:40:23 the background thread has to run in background and then update the UI when it finishes Sep 06 12:40:30 that's why I am using Handler Sep 06 12:40:37 only run the ui specific commands on ui thread Sep 06 12:41:00 I do. I just pass it to the Handler Sep 06 12:41:13 http://developer.android.com/reference/android/app/Activity.html#runOnUiThread(java.lang.Runnable) Sep 06 12:41:46 so creating a third thread that updates the UI is the solution? Sep 06 12:42:19 there are several solutions Sep 06 12:42:24 use an asynctask Sep 06 12:42:43 use runOnUIThread to update from worker thread (i think thats how you use it) Sep 06 12:43:05 figure out how to implement a handler to update views (which for whatever reason is not as simple as it should be) Sep 06 12:43:35 lasserix: thats what I am trying to do Sep 06 12:43:39 hi! need some xpertise on how to rotate the simulator under ubuntu 12.04. 7 or 9 or ctrl/f12 or ctrl/f11 don't work. as test, the same android eclipse project's emulator rotates fine under windows Sep 06 12:43:53 http://stackoverflow.com/questions/4369537/update-ui-from-thread Sep 06 12:44:10 async taks seems to be the most straightforward Sep 06 12:44:40 I am using asynctask in other code fragments, but it does not fit to my design Sep 06 12:44:51 that is why I want to use Handler Sep 06 12:44:57 ahh Sep 06 12:45:19 one sec Sep 06 12:45:31 i got what you want working long time ago Sep 06 12:45:34 let me see if ic an find Sep 06 12:46:00 well everywhere it says that I just have to call sendMessage and override handleMessage Sep 06 12:46:11 yeah thats what i did Sep 06 12:46:14 handleMessage gets called, but the UI not updated... Sep 06 12:46:16 how do i call fragment function from an async task? i want to refresh the list fragment with data i fetched using async task. do i must go through the hosting activity? Sep 06 12:46:56 Strangebrew i think you can if you have a reference to the listfragment call one of its methods to invalidate and refresh Sep 06 12:47:24 Hello all Sep 06 12:48:03 yeah but the async task (and the listfragment) are not inner classes Sep 06 12:48:05 makubi move your handler initlization outside of the oncreate Sep 06 12:48:46 everything i mean, from uiHandler = new .... to }; move it above oncreate like a field declared in the activity scope Sep 06 12:49:37 during async task changing orientation gives me error... what is the best solution for it? Sep 06 12:49:48 i think i'll just do it using the activity, thanks lasserix Sep 06 12:50:29 np sorry i couldnt help more Sep 06 12:50:55 no worries Sep 06 12:51:20 lasserix: to accomplish what? Sep 06 12:51:29 torniker: http://commonsware.com/blog/2010/09/10/asynctask-screen-rotation.html Sep 06 12:51:57 if i were more proficient I could tell you why but that's the only difference between your code and my code that successfully updates ui using a handler message Sep 06 12:52:08 *that i can see Sep 06 12:52:54 lasserix: well that didn't do the trick. it just gets initialized earlier Sep 06 12:52:57 lasserix, thank you Sep 06 12:53:05 lasserix: thank you anyways Sep 06 12:54:43 lasserix: I forgot some initialization, just seen it now Sep 06 12:54:52 ahaha that's always it cool Sep 06 12:55:07 lasserix: :> Sep 06 12:55:43 lasserix: well, nevertheless I did read much about Android, because I couldn't find the error Sep 06 12:56:06 yeah programming learning curve is kinda like a game of shoots and latters Sep 06 12:56:17 nice, now it just works as expected Sep 06 12:57:13 lasserix: well, I just forgot to update the getters of my bean Sep 06 12:57:50 cool is this some sort of calender? Sep 06 12:58:02 so much boiler plate code... omg Sep 06 12:58:23 lasserix: nope, it will be some kind of timetable displaying app Sep 06 12:58:41 oh cool Sep 06 12:59:22 lasserix: like https://play.google.com/store/apps/details?id=edu.htl3r.schoolplanner Sep 06 12:59:55 ahh Sep 06 13:00:27 lasserix: you do much app development on android? Sep 06 13:00:48 individually, yeah most of my free time goes into it Sep 06 13:01:21 still a student tho, yet to land a job or anything Sep 06 13:01:39 well, I am trying to get roboguice up and running, but this does not work for custom objects. unittesting using it fails too Sep 06 13:01:41 hehe Sep 06 13:02:24 but I don't get why android does not use maven for dependencies Sep 06 13:02:44 I am still unable to start the project using eclipse Sep 06 13:02:55 always have to use mvn android:run, etc. Sep 06 13:04:02 think they were trying to go for lowest common denominator that's why they picked java Sep 06 13:04:20 well that's not the point Sep 06 13:04:26 java is fine, good choice Sep 06 13:04:42 but I'd like to have DI and so on, even if it's a smartphone Sep 06 13:04:52 DI? Sep 06 13:04:55 quad core power must be enough Sep 06 13:04:59 dependency injection Sep 06 13:05:11 oh yeah Sep 06 13:05:29 in the future! Sep 06 13:05:32 we can hope Sep 06 13:05:36 hello Sep 06 13:06:07 maybe, roboguice looks good, but does not perform 100% well Sep 06 13:07:40 well nice, now I've got my non-blocking gui Sep 06 13:40:25 ixc ahh random() does work as the arg to orderBy in cursorloader query Sep 06 13:40:56 cursorloader still dont make query, is just call contentprovider Sep 06 13:41:12 *cursorloader constructor Sep 06 13:41:27 right but you can't for instance use DISTINCT in cursorloader constructor Sep 06 13:41:44 *or that's why you cant Sep 06 13:42:10 distinct in database, cursorloader not on this level Sep 06 13:42:47 u can make distinct in database (ur query in content provider); cursorloader can use it Sep 06 13:43:26 ahh i see now okay Sep 06 13:43:36 just define a new URI for distinct Sep 06 13:43:54 oh well went through all the trouble of making and updating the database to include a new table Sep 06 13:44:08 if it gets too big i'll revert to that Sep 06 13:45:37 do you do android dev professionally? Sep 06 13:47:03 we develop for android and ios (maybe now start to wp8 too); but i dont think so its professionally Sep 06 13:48:00 cool you are part of an organization or company? Sep 06 13:48:18 a small company Sep 06 13:51:05 so is it still basically impossible to do a map in a tab using the actionbar? It looks this way. Sep 06 13:51:52 dragorn: http://stackoverflow.com/questions/8154205/fragmentmap-actionbar-tab Sep 06 13:52:43 lasserix: i tried a number of things people said worked, and didn't, but I'll check that one out - not sure that's the SO post I found, though I did go through a dozen yesterday Sep 06 13:53:10 seemed to work for at least 3 people Sep 06 13:53:13 lasserix: ah yeah I tried that one, doesn't seem to work anymore (or maybe I did it wrong) Sep 06 13:53:34 oh Sep 06 13:53:36 lasserix: it's based off a howto on a guys blog from a bit ago, which now just bails with "must be in a mapactivity" exceptions from mapview Sep 06 13:53:55 lasserix: which some ppl had said in his comments, but no update from him. I'll try this version of it again tho, can't hurt Sep 06 13:54:06 extending FragmentMapActivity? Sep 06 13:57:34 lasserix: thought so, not above personal retardation at this point tho so I'll go double check it all Sep 06 13:58:02 haha yeah i know what you mean i am getting close to that point myself sun just came up and i've been doing this since i got out of class last night Sep 06 13:58:13 and class was programming too! Sep 06 13:58:32 i'm just so glad moniters have brightness so i can code wearing sunglasses Sep 06 14:00:06 funny how bad developers are at supporting ICS when it's now ~20% marketshare Sep 06 14:02:43 lasserix: ah. fragmentmapactivity is for ABS 3.x, not the newer ones Sep 06 14:02:54 lost about NDK sorry))) so does any1 know NDK channel here? Sep 06 14:03:04 venik: what are you trying to do Sep 06 14:03:18 where is ccache inside NDK? Sep 06 14:03:28 are they delete it? Sep 06 14:03:37 Never tried to use ccache with ndk Sep 06 14:03:48 man 2.7in screens leave you very little wiggle room Sep 06 14:03:54 not sure if they're shipping with it; would kind of surprise me if they were Sep 06 14:03:55 venik: http://developer.android.com/support.html Sep 06 14:04:07 they was Sep 06 14:04:11 but now Sep 06 14:04:15 ./build/tools/build-ccache.sh Sep 06 14:04:30 Could not download http://android.git.kernel.org/pub/ccache-2.4-android-20070905.tar.gz Sep 06 14:04:47 ./build/tools/build-ccache.sh path_to_ndk Sep 06 14:05:04 you could file a bug w/ google, don't think anyone here controls that server Sep 06 14:05:23 edittext is so ugly big :( Sep 06 14:06:06 I wrote to the man who support this script (according git) Sep 06 14:06:15 but no answer for two days Sep 06 14:06:35 i think to connect it with externat ccache, but it;s pain Sep 06 14:06:53 is there like a max limit of elements in a relativelayout? my views (ina viewpager) scroll perfectly fine with like 20, but slow as hell with 22 Sep 06 14:07:56 http://source.android.com/source/building.html Sep 06 14:08:00 stork i believe you can heiarchy viewer to find out what's taking so long Sep 06 14:08:00 they had it Sep 06 14:08:28 hierarchy viewer isn't telling me much Sep 06 14:08:48 there's one of the tools that'll show you the time it takes to load views Sep 06 14:08:57 hieararchy viewer is the awesome Sep 06 14:09:19 hey guys, for some reason on android 4.0 my OnItemClickListener does not work after the first time… I have replaceview then coming back, but then the onitemclicklistener does not work, until I do some other things in the view. Sep 06 14:15:29 help! how flip the emulator portait/landscape in linux? Sep 06 14:17:15 Opariti, ctrl+f11 Sep 06 14:17:33 nope, it doesn't work Sep 06 14:17:56 jui-feng: i'm using ubuntu 12.04 Sep 06 14:18:11 it works for me (ubuntu 12.04 as well), but only left control key Sep 06 14:18:52 jui-feng: yes that's the one i'm using. but it's true i didn't try the other one ... Sep 06 14:18:59 strange :) Sep 06 14:19:18 maybe because I'm using the german keyboard layout Sep 06 14:19:45 jui-feng: and i'm using french kbd + ubuntu english ... Sep 06 14:20:28 jui-feng: on the same server, dual boot, under windows it works as per the book Sep 06 14:21:18 that sucks.. maybe try changing your keyboard layout (and then change back after screen orientation change)? Sep 06 14:22:03 jui-feng: thats' a good idea, i'll try that (now i'm on windows) Sep 06 14:22:23 jui-feng: thanks! Sep 06 14:23:00 hi, I've been fighting with this for a while, I'm trying to parcel my class and when unmarshalling I get android.os.BadParcelableException: ClassNotFoundException when unmarshalling: ...SearchSpecification$SearchConditionValue Sep 06 14:23:02 Can I cast a Drawable into a ShapeDrawable so I can setIntrinsicHeight, or will that just crash the app? Sep 06 14:23:10 it's pretty simple code but I can find the problem, does anyone see it? http://pastebin.com/vn1041hQ Sep 06 14:23:48 when debugging and inspecting the bundle doesn't seem initialized well or something Sep 06 14:27:21 the fuck is going on here Sep 06 14:27:30 13 views scrolls fine, 14 views does not Sep 06 14:27:31 stork: good question Sep 06 14:27:45 why would that even make a difference Sep 06 14:31:33 Ahh does it feel good to type an andless quantity of code and then run it and it works without flaw the first time. Sep 06 14:32:19 lasserix: that's not real life, you're watching hackers again. Sep 06 14:32:43 The first time I did that without getting runtime errors while first learning android sdk i felt like a god among men Sep 06 14:32:56 haha no the only thing i learned from hackers was that short hair worn by women can be very, very appealing Sep 06 14:33:06 haha Sep 06 14:33:28 9_9 Sep 06 14:33:36 lasserix: oh I dunno, I agree about the short hair but I never really got Angelina in that movie. Sep 06 14:33:50 is that winona ryder's character? Sep 06 14:33:59 Ankhwatcher: did it have something to do with her character seeming totally fake? Sep 06 14:34:21 i think i was like 10 or something when i saw it so i don't think i was digging deep on character building in that one dream scene Sep 06 14:34:54 Hodapp: yeah, probably she seems to spend a lot of time sort of staring blankly at people. Sep 06 14:35:32 Ankhwatcher: She is trying to understand how inferion beings work using her mighty intellect...? Sep 06 14:35:34 anyone have any online guides for designing / layout schemes? Sep 06 14:35:40 lasserix: http://www.imdb.com/title/tt0113243/ Winona Ryder wasn't in Hackers. Sep 06 14:36:13 hahahaha wow my mind is blown Sep 06 14:36:14 Ankhwatcher: also, the parts where she starts rattling off the specs of her laptop in ways that no one, female or otherwise, ever does. Sep 06 14:36:23 here i've been thinking it was winona ryder for the last so many years Sep 06 14:36:31 lol Sep 06 14:36:52 Wow angelina was originally cup size small then. hmm Sep 06 14:37:27 lasserix: maybe that's my problem with her character ;-) Sep 06 14:37:43 i wonder why i was convinced it was winona ryder hmm Sep 06 14:38:44 "P6 chip. Triple the speed of the Pentium." Sep 06 14:39:09 I don't know I actually hear people talk about their phones that way these days Sep 06 14:39:26 wow Sep 06 14:39:31 remember caring about speed? Sep 06 14:39:58 yeah like modem speed Sep 06 14:39:58 lasserix: it's not that she does, it's more the details that she gives. Sep 06 14:39:59 now it would be GTX560 100 times the cores of the Pentium Sep 06 14:41:06 and we'd be in the audience, trying to pretend they didn't just compare a GPU to CPU Sep 06 14:41:38 heh Sep 06 14:44:30 is there an xml add border ? Sep 06 14:46:22 Hello all, I'm experiencing a problem with apb-linux not recognizing my Kindle Fire, despite having added the device to 'etc/udev/rules.d/51-android.rules', increasing permissions to a+r in chmod, and having restarted. The device shows up in lsusb, and I'm running adb-linux as root. Does anyone know what I have missed? Sep 06 14:47:54 how do I set the color of a listfragment background? Sep 06 14:48:31 A noob here.. Sep 06 14:49:13 I want to set a eventlistener to an element from R.layout.simple_list_item or any other inbuilt xml file Sep 06 14:49:27 how do I select it? Sep 06 14:50:04 you have to make a reference to the view in code and use setOn* where * refers to the type of eventlistener Sep 06 14:50:24 zeptis: adb-linux? Huh? Sep 06 14:50:46 zeptis: there's adb, I've never heard of adb-linux... Sep 06 14:50:59 if it's a button you can use the xml 'android:onClick="myFunction"' and in the activity create a function public void myFunction but be sure to add (View view) as pararameter list otherwise it won't know Sep 06 14:51:20 zeptis: modify your ~/.android/adb_usb.ini file Sep 06 14:51:48 to reference a view from code in your activity usually in onCreate after you setContentView you can do something like Button mButton = (Button) findViewById(R.id.b_myButtonId); Sep 06 14:52:20 where b_myButtonID comes from the xml in the button as android:id="@+id/b_mButtonID" Sep 06 14:52:41 I use the prefix of the initial of the view (b for button) so i can use intellisense to filter for it more quickly Sep 06 14:52:45 Lov: I currently have 0x1949 and 0x0006 on each line in that file Sep 06 14:52:55 that answer your question pkp? Sep 06 14:52:59 lasserix: How do i use findViewById since its a inbuilt xml file.. should i edit the xml file? Sep 06 14:53:01 ok, but what's adb-linux? Sep 06 14:53:17 uhh Sep 06 14:53:18 lasserix, i dont know the id Sep 06 14:53:23 you set the id Sep 06 14:53:23 if it's a chmod or android.rules problem, the device would show as ????????????????? instead of not being present Sep 06 14:53:33 is that the case? or is it just not showing any device? Sep 06 14:53:45 like