**** BEGIN LOGGING AT Tue Sep 04 02:59:58 2012 Sep 04 03:03:14 Can I use shadow layer with alpha in a paint? I only can set one. If I set both, the alpha doesn't apply. Why is that? Sep 04 03:03:44 briswolf: there is adb forward to forward ports: http://developer.android.com/tools/help/adb.html#forwardports than you can do simple tcp Sep 04 03:04:07 praveenmarkandu: previous message was meant for you Sep 04 03:04:45 praveenmarkandu: if you want to do something like kies, than it will only work on such devices. if with adb, people have to enable debugging. Sep 04 03:11:24 pboos: actually i dont want to use kies. im just using adb Sep 04 03:25:57 ohhh, google's gesture search is using neural networks to do gesture recognition.... Sep 04 03:36:09 hey people Sep 04 03:36:10 s Sep 04 03:42:00 thebishop: hi Sep 04 03:43:12 briswolf, just answered a noobish java question for myself. can't extend a class whose only constructor is private Sep 04 03:44:53 thebishop: what if it is the default constructor? can you do it then? Sep 04 03:45:04 I could try but I'm lazy Sep 04 03:46:54 briswolf, that's the case here, and it looks like the answer is no. To be less cryptic, i'm specifically talking about the Html class: http://developer.android.com/reference/android/text/Html.html#escapeHtml(java.lang.CharSequence) Sep 04 03:47:58 what are you trying to add by extending html? Sep 04 03:48:06 I wish java had extensions/categories Sep 04 03:48:23 (c# extensions, obj-c categories) Sep 04 03:49:26 briswolf, i'm not really trying to add anything, just compartmentalize the use of ImageGetter and TagHandler Sep 04 03:50:16 is the default constructor always private? seems like it would have to be, right? Sep 04 03:50:23 no Sep 04 03:50:31 it can be anything Sep 04 03:50:44 if you don't write it though, I think it is internal? Sep 04 03:50:46 so how do you specify if you never define it? Sep 04 03:50:56 this is what I don't understand Sep 04 03:51:11 specify it? as in use it? Sep 04 03:51:30 specify the visibility Sep 04 03:51:51 the visibility will be default (I think, looking for reference) which is package visible Sep 04 03:52:53 i.e. for any method or constructor, if you don't specify private, protected, public, you end up with "package visible" Sep 04 03:53:01 hmm Sep 04 03:53:15 or "package private" - meaning only classes in the same package can use that method/constructor Sep 04 03:53:34 so if Html has a default constructor, maybe you need to write a class in the same package Sep 04 03:53:37 that extends Sep 04 03:53:57 i guess that makes sense, and if you're writing an android app, you wouldn't want to do that Sep 04 03:54:13 http://docs.oracle.com/javase/tutorial/java/javaOO/accesscontrol.html Sep 04 03:54:18 why not? Sep 04 03:54:34 it doesn't hurt to write a class in somebody else Sep 04 03:54:36 's package Sep 04 03:54:42 well.. it could Sep 04 03:54:50 wouldn't the package be "android.text.Html"? Sep 04 03:54:52 but if you aren't sharing your code as a library than it shouldn't Sep 04 03:54:59 yeah, that's ok Sep 04 03:55:06 nothing illegal or wrong about that Sep 04 03:55:14 AFAIK Sep 04 03:55:30 Does it differ in performance between writing Android apps in python and java ?? Sep 04 03:56:04 right, nothing illegal, but in this case, it's modifying a package which is part of the OS. Sep 04 03:56:29 thebishop: no, not modifying any existing classes or anything Sep 04 03:56:42 adding a new class, in your own application, as part of the package Sep 04 03:56:48 package is just about namespacing Sep 04 03:56:51 it does little else Sep 04 03:57:28 you could write your whole app in android.text package, as long as you didn't conflict with any names, and then android didn't add any conflicting names Sep 04 03:57:52 so perhaps when you put your extension into that package you should give it a fairly unique name like TheBishopHtmlUtils Sep 04 03:58:08 or something equally as unlikely to be used by android Sep 04 03:58:27 or, you could just wrap up your convenience functions in a static class in your own package right? Sep 04 03:58:28 briswolf, but does anyone actually do this? it seems quite ugly, even if valid Sep 04 03:58:45 well... probably not, unless you have a good readon Sep 04 03:58:50 I've not had need to do it Sep 04 03:59:03 can you make a wrapper class? Sep 04 03:59:11 something that just holds the Html instance inside Sep 04 03:59:14 and works on it? Sep 04 03:59:37 briswolf, that was my 2nd attempt, but Html functions want to be called statically Sep 04 04:00:01 I made a class member h of Html type, and got compiler errors when calling h.fromHtml() Sep 04 04:00:26 ok right Sep 04 04:00:31 anyway, it's not a big deal, i can do what I want. Sep 04 04:00:38 well html makes strings and spanned's Sep 04 04:00:46 not Html instances Sep 04 04:00:52 yep Sep 04 04:01:11 ok so in your class, make your functions call the Html functions statically Sep 04 04:01:18 yeah, that's the solution Sep 04 04:01:34 still, any guess why no constructor is mentioned in the official documentation? Sep 04 04:01:42 it sounds pretty valid - the Html class is a static class, it has only static members, extending it actually makes no sense Sep 04 04:01:52 because you never need to construct it Sep 04 04:01:55 right Sep 04 04:01:58 it has no instance methods or variables Sep 04 04:02:09 it is like, a bunch of global functions with no state behind them Sep 04 04:02:19 yep Sep 04 04:40:39 hey peeps Sep 04 04:41:28 evening Sep 04 04:41:59 omg wtf Sep 04 04:51:30 :DDD gotten a lot of progress on my app for work. Recently i've been working with the HTTPClient protocols and trying to login to a web page. First page I go to grabs a uniquely created weblink to the login page. The next page has the form data. I get the first page, parse the weblink properly. Then I use the next weblink with http://sarangasl.blogspot.com/2011/06/android-login-screen-using-httpclient.html example and it faults. Sep 04 04:51:37 no login errors, no extra data... just the webpage as if nothing happened. Sep 04 04:51:44 Question: Am I missing some important piece of the puzzle? Sep 04 04:52:01 Komak57: you also might find http://android-developers.blogspot.hk/2011/09/androids-http-clients.html helpful Sep 04 05:01:24 compatibility lines added, no change. Still no apparent error messages. Goes from AND to http://173.192.173.204/login/indexip.php?home=ip (login page as well as form input page) without the proper error lines (reading returned data) Sep 04 05:05:34 i suppose this is hinting that my POST data isn't even being sent? Sep 04 05:23:01 found, and added cookie settings, still notta. Sep 04 05:50:00 also tried seeing if there was just some glitch and attempted to access the login main page. Sends me to the invalid page link (as it should when im not logged in). So i have indeed identified that I am NOT sending post data using the popular methods. Sep 04 05:50:38 Aside from the fact that I'm trying to send the data as pre-determined strings ("likethis"), I have NO clue what I'm missing Sep 04 06:26:23 hello Sep 04 06:33:35 aanyone here aware of emulator images for samsung devices for testing :/ ? Sep 04 07:07:24 Anybody has experience in using bitmapdrawble? I set a bound to it, and gravity on a bitmapdrawable object, but it doesn't work. The bitmap in the drawable won't start at the left of the bound even I set the gravity to be left. How can I figure out what happens? Sep 04 07:12:31 "If the alleged attack and subsequent UDID leak is legitimate, it is unclear how or why the FBI secured the Apple UDIDs." Sep 04 07:12:48 why? you've got to be kidding :) Sep 04 07:14:53 I have array row forming 3x2 grid. On bottom row there's 3 edittext. Is it possible to have them adjust their width so that each takes 1/3 of available width automatically? Sep 04 07:15:39 Hmm, is there a reason "frigg" does a ctcp version when you join the channel? Sep 04 07:18:36 "breached using the AtomicReferenceArray vulnerability on Java" hehe Sep 04 07:18:37 tneva82_: You can set the weight sum of the parent to 3, and assign weight of 1 to each of the views Sep 04 07:19:41 yes Sep 04 07:26:44 weight sum? Sep 04 07:27:24 oh bummer. now the elements that were with layout with gravity bottom jumped somehow up. I hate making UI Sep 04 07:34:23 tneva82_: Incidentally, if you do that, you will need to set layout_weight to 0 Sep 04 07:34:25 er Sep 04 07:34:29 layout_width to 0, sorry Sep 04 07:45:12 goedemorgen iedereen! Sep 04 08:14:44 if I want to have both gravity and tile mode set in a bitmapdrawable, how can I do that? Sep 04 08:18:14 okay is it possible to make textlabel to work like button Sep 04 08:18:27 don't ask me why you would want to. boss said let's make buttons look like text fields so there ya go Sep 04 08:18:33 I tried to say "bad idea" but failed Sep 04 08:22:17 tneva82_, yes in xml android:clickable = true Sep 04 08:23:16 then myEditText.setOnClickListener(…… Sep 04 08:25:23 ok Sep 04 08:25:31 getContentResolver().query gives me a nullpointerexception with Unable to start activity ComponentInfo Sep 04 08:25:33 any ideas? Sep 04 08:25:34 i want to send some UDP packets to my AVD emulator... how can i do this? Sep 04 08:25:35 you can't set the onclicklistener on xml? Sep 04 08:25:49 still think that's lousy idea. buttons should look like button and not like text Sep 04 08:25:51 but boss is boss Sep 04 08:26:15 tneva82_, no. Sep 04 08:26:22 xml is layout Sep 04 08:26:26 java is your commands Sep 04 08:26:41 you can set onclick listener for buttons in xml Sep 04 08:26:46 ye Sep 04 08:26:47 same doesn't work with textfields then? Sep 04 08:26:58 but you shouldn't Sep 04 08:27:12 what you mean you shouldn't? Sep 04 08:27:54 keep your logic and your gui seperate Sep 04 08:28:54 umm. the function is still in the java code. what difference does it make if name is in xml? Except java code is shorter and cleaner Sep 04 08:30:22 if you don'twant to follow convention, that's all up to you Sep 04 08:31:23 if it's convention why does android developer site give opposite examples then? Sep 04 08:31:41 good enough for http://developer.android.com, good enough for me Sep 04 08:32:48 … ask for help get help throw it in face. good luck with that thing called life then…. Sep 04 08:34:09 lol. just trying to understand why would I put more code on java side. makes code messier and is opposite of what developer.android.com is showing Sep 04 08:34:20 you are saying that developer.android.com is flat out wrong then? Sep 04 08:34:35 better site to replace that then? Sep 04 08:35:56 the code is annoying enough to browse through as it is without intentionally making it even messier by going against developer.android.com's style. Sep 04 08:36:04 and where is this correct style documented then? Sep 04 08:39:33 im starting to hate eclipse and the layout graphical editor Sep 04 08:39:47 making stuff align is too hard... Sep 04 08:40:05 and the shitty thing lags every few operations Sep 04 08:40:18 eclipse is slow Sep 04 08:40:36 anything better out there? Sep 04 08:40:59 you can try intellij, it has android support in the free version Sep 04 08:41:17 you can use any editor and manually compile it with ant Sep 04 08:41:45 but only eclipse and intellij have official built in android support Sep 04 08:41:48 i want to send some UDP packets to my AVD emulator... how can i do this? Sep 04 08:41:49 disable auto build in eclipse, speed up things quite significantly Sep 04 08:42:03 which editors are available for editing layouts? Sep 04 08:42:36 none Sep 04 08:42:41 how on earth do i get an emptyview working in a list view? (note: I am not using listactivity or listfragment) Sep 04 08:42:47 only eclipse with ADT does that for now Sep 04 08:44:06 Blou_Aap: where do i disable auto build? project settings? Sep 04 08:44:31 project->build automaticly? Sep 04 08:44:45 yes Sep 04 08:44:48 uncheck it Sep 04 08:45:06 then just use build now and then after you make big changes Sep 04 08:45:12 'build' Sep 04 08:45:49 thanks Sep 04 08:46:22 there is a few other things you can do to speed it up even more Sep 04 08:46:33 but it always helps if you have a nice PC Sep 04 08:47:57 is google sync down or something ? Sep 04 08:48:04 oops wrong chan Sep 04 08:48:12 im trying to implement a parcel and when i do out.writeTypedList(myList); Sep 04 08:48:13 i (think) it writes just fine, but when i do in.readTypedList(myList, MyList.CREATOR); i get a null exception, any ideas? Sep 04 09:04:09 got it Sep 04 09:09:32 Apparently you're meant to use getRotation() to determine the orientation of the device, which is a value relative to the "natural" orientation of a device Sep 04 09:09:59 however the docs don't actually specify if the device's "natural" rotation is actually portrait or landscape? Sep 04 09:10:21 if it can differ, isn't the method actually useless to telling me if the device is currently landscape or portrait Sep 04 09:12:57 heh, i didn't realize google + NFC was such a trainwreck http://arstechnica.com/security/2012/07/android-nokia-smartphone-hack/ Sep 04 09:17:45 g00s: i think i heard the nexus7 also has a vulnerability in nfc Sep 04 09:18:30 my n7 is my first android device, first thing i did was turn that nfc stuff off Sep 04 09:18:37 it would be nice if we could have secure programs. But the cost... I wonder what all we would lose Sep 04 09:18:53 no worries, i wouldn't let google anywhere near my (digital) wallet Sep 04 09:19:36 here in the uk they're trying to push these contactless/rfid credit cards, i can't believe i'm the only person i know who seems worried they're a complete risk Sep 04 09:19:53 yeah, fuck everything about that Sep 04 09:19:54 only good for purchases up to 20UKP, but even so Sep 04 09:20:29 imagine having a scanner in a briefcase and just wandering round a packed train station or something, i bet you could get close enough to a few of these cards to just skim small payments with NO user authentication at all Sep 04 09:20:53 on the plus side, stocks on aluminum foil manufacturing companies are bound to rise, so invest now Sep 04 09:21:09 ashH: its the credit card companies risk, I wouldnt really care Sep 04 09:21:13 yeah i guess Sep 04 09:21:29 on a debit card though... Sep 04 09:21:35 i thought problems were demonstrated with rfid passports also Sep 04 09:21:36 but it's still hassle if you get fraudulent transactions, having to call them, sort it out Sep 04 09:21:39 yeah Sep 04 09:21:53 i have an rfid passport, and the scanners at the airports are bloody useless Sep 04 09:21:58 it's faster to go in the manual line Sep 04 09:22:30 last time i landed at gatwick airport i tried to tell them why their 'fast track' passport system was so flawed but they weren't interested Sep 04 09:22:58 they have cameras which take your picture and compare to that on the passport, but the cameras face OUT into the main airport concourse so there's a VERY busy image behind you Sep 04 09:23:15 my gate took SEVEN attempts to get a picture of me without rejection Sep 04 09:23:24 hopeless Sep 04 09:23:49 you could literally see the software working and why the system was struggling Sep 04 09:24:15 in Hong Kong (?) they have "Octopus". Can be put in anything, a card, wallet, phone, watch etc. Can pay for anything without any verification. Sep 04 09:24:17 ashH: next time try CV Dazzle paint and see how that works :D Sep 04 09:24:17 so screw all this stupid RFID and NFC stuff, if they can't actually implement it in a half sensible way Sep 04 09:24:21 A bit worrying Sep 04 09:24:28 my passport, drivers licence and id all have pictures that are like 10 years old Sep 04 09:24:32 wouldnt work at all :P Sep 04 09:24:38 heh Sep 04 09:26:49 this apple UDID leak is pretty damn amazing though Sep 04 09:27:01 what's that? Sep 04 09:27:27 http://news.ycombinator.com/item?id=4472897 Sep 04 09:27:40 from an FBI laptop? Sep 04 09:27:47 now THAT is depressing Sep 04 09:27:51 NCFTA if its to be believed Sep 04 09:28:24 via a java vulnerability, sigh Sep 04 09:28:43 i miss the old c64 days, it was so much safer back then Sep 04 09:28:54 hehe, i had a c64 :) Sep 04 09:29:01 i used one once Sep 04 09:29:11 was my first commercial game dev system so fond memories for me Sep 04 09:29:12 the porn wasn't as great Sep 04 09:29:47 i think i went half blind reading off the blue / light blue screen on the TC Sep 04 09:29:49 *TV Sep 04 09:30:14 and GEOS was pure awesomness for such a machine :) Sep 04 09:31:17 did you code c64 at all? Sep 04 09:31:27 yeah, basic and 6502 Sep 04 09:31:33 neat Sep 04 09:31:36 i miss 6502 :) Sep 04 09:32:17 do any games or anything? Sep 04 09:32:27 no, just silly stuff Sep 04 09:32:47 i think i plugged in a few things to its i/o port. its been a long time Sep 04 09:33:22 LDA #0; STA $D020 Sep 04 09:33:55 hehe, i remember having a little book which had a listing of all the locations and what they did Sep 04 09:34:01 poke 53280,0 Sep 04 09:34:02 :) Sep 04 09:34:08 yeah, that's $D020 :) Sep 04 09:34:15 haha Sep 04 09:34:34 and that little 4k block at 49152 Sep 04 09:34:40 i want to use SimpleDateFormat, but i want to do AM/PM for USA and 24 hour for Europe, is there an if statement i can use or is there some sort of format that already handles that information Sep 04 09:34:47 most of my c64 work was audio, i wrote music players then some commercial music/sfx work Sep 04 09:34:54 oh cool Sep 04 09:35:05 g00s: guess you might be about as old as me then ;) Sep 04 09:35:15 very likely :) Sep 04 09:36:05 Bear10: yeah, SDF is a POS Sep 04 09:36:26 g00s, heh any recomendations in that case? or what i can do to solve this "simple" task Sep 04 09:36:42 you are better off getting a format string from the android utils that respects the user's preferences Sep 04 09:37:07 if the user has 12/24 or 24h, it will give you the right format string Sep 04 09:37:11 (set in prefs) Sep 04 09:37:33 g00s, well sure but there's a specific format / way id like to output it Sep 04 09:37:44 such as "Tuesday, Oct, 15 @ 10:00" Sep 04 09:37:49 g00s, ashH: Atari 800/65xe/130xe was better :P Sep 04 09:37:57 or "Tuesday, Oct, 15 @ 10:00 AM" Sep 04 09:38:06 p_l: yeah, i would have loved an atari 800 Sep 04 09:38:24 but at the time i had a sinclair spectrum, then when the time came to switch the c64 was looking more popular Sep 04 09:38:57 Atari had huge tons of docs in Poland, so that's what I learned my first assembly from Sep 04 09:39:06 the books available included even full OS listings :) Sep 04 09:39:08 still 6502 Sep 04 09:39:11 or 6510? Sep 04 09:39:18 Hi, what is the best practice for adding a dynamic button in a linear layout? I have a drawable xml where I define shape; also an styles.xml where I define the android:textColor and so one. In my layout folder, I got a linear layout where I want to add this special buttons multiples times. If I do via the xml it goes well. But I wanna add them programmatically depending the answer that I got from my server. Sep 04 09:40:08 just get the linear layout by using findviewbyid() and add new instances of buttons to it Sep 04 09:40:22 ashH: 6502 with some interesting extra chips (including bank-switch for memory and external bus) Sep 04 09:41:29 seemed like things were so simple back then. i could call up Zilog support and say i was in school learning this stuff, and they would just send me tubes of z80s and stuff Sep 04 09:41:46 40 pin dips, so easy to solder Sep 04 09:42:43 indeed. i recall motorola sending me half a dozen 680x0 references for myself and friends after writing to ask if they had any inexpensive guides Sep 04 09:42:55 :) Sep 04 09:43:06 but still, computing is also fun today so can't complain Sep 04 09:43:12 :D Sep 04 09:44:02 ashH: get these ? http://www.atarimagazines.com/compute/gazette/ Sep 04 09:44:32 brilliant quote: "Does Your Computer Need A Cassette Recorder?" Sep 04 09:44:39 XD Sep 04 09:44:40 kids today would look at you like you were crazy Sep 04 09:44:53 the answer is of course, "yes" Sep 04 09:44:56 zerribert: it seems not possible when using customization and styles. Sep 04 09:45:22 I remember playing games with cassettes on the BBC. It took about 30 minutes to an hour to actually load a game Sep 04 09:45:27 At least, that is how long it felt. Sep 04 09:45:46 LOAD "foo",1,1 Sep 04 09:46:00 That is where I started programming, silly little maze games Sep 04 09:46:10 another 6502 based system :) Sep 04 09:46:20 turns out this was a very interesting channel to join :) Sep 04 09:46:22 Go north. You got stomped in the face. You are dead. Sep 04 09:46:42 full of veteran coders! Sep 04 09:46:53 :) i remember Zork Sep 04 09:47:01 Heh Sep 04 09:47:05 :3 Sep 04 09:47:09 It is dark, you are likely to be eaten by a grue. Sep 04 09:47:11 Z80 <3 Sep 04 09:47:14 hehe Sep 04 09:47:31 hello all Sep 04 09:47:52 Pinas: you have joined android-z80 Sep 04 09:47:56 :D Sep 04 09:48:00 g00s ? Sep 04 09:48:06 XD Sep 04 09:48:07 Android doesn't run on z80 Sep 04 09:48:14 not yet it doesn't! Sep 04 09:48:20 but we'll get there Sep 04 09:48:21 eventually Sep 04 09:49:01 i have a question. Does anybody ever reported an App to Google (be it malicious or whatever) and can tell me how log it took that google reacted on the report (answer, app removal, ?) ? Sep 04 09:49:03 http://developer.android.com/sdk/RELEASENOTES.html Sep 04 09:49:14 Frigolit: nope, it's explicitly not supported Sep 04 09:49:40 A few christmases ago, I was programming on the BBC again for nostalgia... We found it hidden away. I made a looping program writing out random x/y/colour lines on the screen... Apparently that was so taxing for the machine that the chips melted and released lots of lovely toxic smoke. Sep 04 09:49:44 Leeds: ;__________; Sep 04 09:49:51 MY HOPES AND DREAMS! CRUSHED! Sep 04 09:50:05 Knossos: omg Sep 04 09:50:22 Knossos-: noooo~ Sep 04 09:50:26 * Leeds has to mention beebdroid Sep 04 09:50:37 i think i still have my c64, tape recorder, and that damn disk drive - which i always had to align the head on Sep 04 09:50:43 Leeds: BBC emulator for Android? Sep 04 09:50:49 by smacking it with a screw driver or something Sep 04 09:50:49 yup Sep 04 09:51:03 Harr! I know what I'm downloading after work :> Sep 04 09:51:24 any of you guys developing with the NDK/GL? Sep 04 09:51:48 that's the main reason i'm hanging out here, some time v soon i plan to port my ios games over (c++/gl) Sep 04 09:52:30 just wondered if anyone had any advice/tips etc related to NDK, any pitfalls, that kind of thing Sep 04 09:53:52 Drakonite knows the NDK well, when he's around Sep 04 09:54:00 (and c++/gl) Sep 04 09:54:09 k, cool Sep 04 09:54:43 all i know so far is that debugging etc can be a bit of a pain, but i guess i'll know more when i actually start to port Sep 04 09:55:08 Noone of you has experience with google developer support ? Sep 04 09:55:26 woe to you if you need "support" Sep 04 09:55:55 Pinas: only a tiny bit, we were working on Native Client a while back and had a 'direct line' to someone at Google for that Sep 04 09:56:29 Pinas: reporting apps in the market is nothing to do with developer support Sep 04 09:56:33 what I am interested in is how "good" the support is when the conventional route is taken Sep 04 09:56:50 Pinas: What g00s said. I needed support once because of a DMCA takedown request. Took several months to actually get through to someone. Sep 04 09:57:05 holy sh*** Sep 04 09:57:17 i read reports where google removed reported apps within minutes Sep 04 09:57:19 how come dismissDialog(int) doesnt work even though I definitely have used showDiaog(int) ? Sep 04 09:57:23 Really depends on the kind of support you need. Sep 04 09:57:28 are there some tricks needed Sep 04 09:57:37 Some things will be done a lot faster than other things Sep 04 09:57:58 Pinas: are you interested because you're still writing your report on anecdotal evidence of how crap the market is? Sep 04 09:58:40 Google has to remove Apps in a timely manor, because they are responsible for the content on Google Play. Sep 04 09:59:09 Leeds well I usually don't rely on anectodal evidence, but currently I have no other possibility. And i am not writing about how crappy the market is but on the security problems with the market. Sep 04 09:59:20 yeah, that's what I meant Sep 04 09:59:36 :) Sep 04 10:00:04 that is, you're looking for problems to report, not an objective view of the situation Sep 04 10:00:58 google is very hand off with the play store Sep 04 10:01:02 much more than apple/msft Sep 04 10:01:06 well currently i write about security features of the play store and one feature is the reporting system - and I even need to write something about how good this feature works :) Sep 04 10:01:47 I do have a good research paper about the security/effectiveness of bounce but nothing about the reporting system Sep 04 10:01:57 *bouncer Sep 04 10:02:07 thats why I ask :) Sep 04 10:02:08 Can i have a ListPreference open a new layout? Sep 04 10:02:28 because the reporting system is part of the commercial operations of Google Sep 04 10:02:59 anyone who knows how their processes work is very unlikely to be able - or even willing - to tell you Sep 04 10:03:36 Guys, how to make horizontal swipe in widget? Sep 04 10:03:45 scrolling horizontal Sep 04 10:03:49 with finger Sep 04 10:03:54 but on a widget Sep 04 10:04:35 Leeds - you are absolutely right. That's why i have to rely on anectodal evidence :) Sep 04 10:04:49 Pinas: or just admit that you don't know enough to be able to report Sep 04 10:06:50 hi Sep 04 10:07:23 when I install an apk of my app com.myhome.myapp, where should be stored the image in the resources ? Sep 04 10:07:30 -s Sep 04 10:07:53 maxagaz: why do you want to know? Sep 04 10:08:16 Leeds you are right. I am student writing a masters thesis - i have never worked in a company developing professional android apps - so i don't have any practical experience. I still want to write my thesis as practical as possible so I need to get information from somewhere. Sep 04 10:09:00 maxagaz: that is, why does it matter? Sep 04 10:09:03 Leeds: I want to know to debug my app **** ENDING LOGGING AT Tue Sep 04 10:09:37 2012 **** BEGIN LOGGING AT Tue Sep 04 10:12:19 2012 Sep 04 10:12:33 u no need access resources of an app for debug it Sep 04 10:13:41 ixc: maybe, but still, I'd like to be able to check it Sep 04 10:13:47 maxagaz - the resources of an app are stored at /data/data/app-name/... but the images are not stored there. I think that the images are located in the applications apk file located under /data/app Sep 04 10:13:56 ixc: to check its integrity Sep 04 10:14:45 maxagaz: just in case, or because you think there is a problem? Sep 04 10:14:49 Pinas: indeed, they are in the apk file, but I thought this file was not used anymore after the installation Sep 04 10:15:02 that really shouldnt be necessary. But you could probably copy the files you want to check by getting the resource through your activity, instead of through the file system Sep 04 10:16:57 maxagaz - are you sure that the apk file is not used after installation ?? I am not aware of any other location on the file system where app realted information are stored (if the apk is not used any more such a location needs to exists) Sep 04 10:17:11 with a debugger i think u can check when u use R, so u can check when resolv a id Sep 04 10:17:36 hi Sep 04 10:17:38 maxagaz: again - are you trying to do this because there is a problem you want to fix, or just because you think it sounds like fun? Sep 04 10:18:32 i think he want to test, how easy make nullpointer exception in apps :) Sep 04 10:19:11 from the context i think he want to remove some resource after installation for save some more space Sep 04 10:19:18 well, he can't do that Sep 04 10:19:21 If he wants to make a checksum, that would be quite simple, right? Sep 04 10:19:56 maxagaz: ? Sep 04 10:20:06 Hi, anyone done an apple-slide-to-unlock type of button? Sep 04 10:20:08 my initial thought would be to copy images to sd, checksum, check, delete image Sep 04 10:21:08 Leeds: because I have a problem I want to fix, not for fun at all Sep 04 10:21:17 and what is that problem? Sep 04 10:21:41 Leeds: I have a problem with a file that I encrypt Sep 04 10:21:49 Knossos-: for this i recommend expansion files Sep 04 10:21:50 Leeds: I'm trying some other solution Sep 04 10:22:09 wait, so is this an image, or a raw file? Sep 04 10:22:19 maybe assets? Sep 04 10:22:37 right Sep 04 10:26:13 if u have some encrypted data in images, be carefull, at compile its recompressed :) Sep 04 10:28:02 Very good point Sep 04 10:39:49 Is it possible to add a key listener to the action bar? I am trying to better guide the UI in special cases. Sep 04 10:41:09 Knossos-: elaborate please Sep 04 10:41:54 I am trying to listen for up/down key presses from the action bar so that I can redirect focus to the correct place. Sep 04 10:42:43 For example, if you are running your App on a TV. You often have a bluetooth keyboard style device, where using arrows is more comfortable than the touchpad. Sep 04 10:47:43 Focus should already be handled properly in the action bar Sep 04 10:48:07 It is almost Sep 04 10:48:10 But no, you can't.. You don't have any way of getting the views in the action bar Sep 04 10:49:24 Ok, thanks for the info. I'll look for an alternative. Sep 04 11:08:01 Some devices have 32-bit colors by default but some have 16-bit. How can I check it from the code? Sep 04 11:20:55 Hi! Is there a callback for views when the view is no longer visible? E.g. views in a listview when they are no longer visible because the user scrolled down? Sep 04 11:26:28 hi Sep 04 11:27:40 kr1d: afaik no. although the view should become recycled quite shortly afterwards Sep 04 11:28:51 ok, then i have to use the moment when the view gets recycled Sep 04 11:29:50 Might be shortly after, might be a lot later Sep 04 11:32:40 yes that's the problem :) Sep 04 11:32:48 I'm guessing the listview maintains a pool whose size is the maximum number of listview items that were ever visible of each listitem type Sep 04 11:33:22 picks the first free one from that pool, or asks to create a new one and then stores that in the pool if all were visible Sep 04 11:33:29 i think it is a little bit more than the number of items that are visible Sep 04 11:33:39 but only 1-3 Sep 04 11:34:25 hmm. Well, could be an optimization for slow scroll speeds, ensuring there's some items that are about to be displayed ready to go Sep 04 11:34:47 Really getting to hate samsung Sep 04 11:35:51 Please, do anyone know how to approach disabling ViewPager scroll for certain views contained in ViewPager's Fragments? For example if there is a ImageView in the fragment how to disallow page scrolling started from this ImageView? Sep 04 11:39:09 it appears that my galaxy s2 cpu's single arm core has the computing capability that equals 10 % of one core of my macbook, or close enough. Sep 04 11:39:20 which is some 1.8 GHz i5 Sep 04 11:40:02 alankila: http://www.phoronix.com/scan.php?page=article&item=gentoo_arm_x32 Sep 04 11:40:06 tested on some native code I built. It's fairly reliable, I change the program & if it takes 5 seconds on the host it will take 50 seconds on the phone, with some variability Sep 04 11:43:06 OK, requestDisallowInterceptTouchEvent(true); is the answer if anyone cares. Sep 04 11:44:49 are there any training videos which explain android powermangement Sep 04 11:44:58 so that it is easy to understand Sep 04 11:50:05 how to know which apps will be started automatically when i boot android device? Sep 04 11:50:07 listview doesn't keep a pool of views larger than it needs. Before calling getView, it just tries to retrieve a view from the recycler. If none is available, you get null as convertview. So the amount of views in the recycler is the max visible items it has shown so far - current visible items Sep 04 11:50:13 http://stackoverflow.com/questions/12261093/how-to-know-which-apps-will-be-started-automatically-when-i-boot-android-device Sep 04 11:51:16 bigmeow: wrong channel, dude Sep 04 11:56:52 bigmeow, #android-root is your channel Sep 04 12:07:12 is there a recommended process for central class that contains nothing more than static definitions for varous strings? Sep 04 12:07:41 mbrevda: it's called R? Sep 04 12:08:16 alankila: hmm - so your saying use resource strings to hold them. Interesting Sep 04 12:08:48 it's a possibility, assuming you can stomach doing getString(R.string.foo) instead of Globals.FOO. Sep 04 12:09:03 hmm - would MUCH rather not Sep 04 12:09:05 but solves any localization issues you might have. Sep 04 12:09:47 I dont need a localization solution, I just want a convent and central way to refere to static definitions (i.e. table data in a content provder, etc) Sep 04 12:10:59 well, for that sort of strings, I tend to just make them private to the class that needs them. I'm loathe to expose a garbage dump of all strings there are somewhere. Different strokes for different folks, though. Sep 04 12:11:00 ? Sep 04 12:11:09 ah Sep 04 12:11:19 make singleton class? though singleton is frowned by some. Sep 04 12:11:59 I have no idea why people dislike statics though. a singleton just to get an instance to access some final values ... Sep 04 12:12:21 I really dont care how many times its instantiated Sep 04 12:12:33 although there might be a reason for this superstition, which is to do with a lamentable compiler optimization done by the javac, if it sees a public static final reference it inlines that at compile time Sep 04 12:13:04 this optimization can be defeated in the class itself, and in any case doesn't really matter for android I guess. Sep 04 12:14:12 Leeds: lol, nice to meet you here:) Sep 04 12:16:54 how can i make my Spinner smaller? when i try to set height = 35dp it starts rendering funky Sep 04 12:17:55 custom background Sep 04 12:18:27 hmm that could work lets see Sep 04 12:19:16 stork, do i set that on my spinner or on the android.R.layout.simple_spinner_item Sep 04 12:19:25 on your spinner Sep 04 12:19:28 dont make too small spinner, its against UX Sep 04 12:19:39 ^ Sep 04 12:19:42 i have a gridview and a button on some column, when i set it to colspan=2 i want it to expand on the 2 columns in the same row. wrap_content keeps it's size minimal, match_parent makes it as big as the parent. how do i make it strech? Sep 04 12:19:56 right Sep 04 12:21:21 will a service have two instances if I do startService(new Intent(this, FooService.class)); twice? Sep 04 12:21:38 socket: Have you tried using weights? Sep 04 12:21:58 I personally don't use GridView, but weights tend to solve all my stretch related requirements Sep 04 12:22:02 GridView doesn't have weight Sep 04 12:22:09 Only linearlayout does Sep 04 12:22:15 Scratch that then. Sep 04 12:26:35 tables do though Sep 04 12:26:46 TableLayout might help? Sep 04 12:30:05 rigid: http://developer.android.com/reference/android/app/Service.html#ServiceLifecycle Sep 04 12:31:18 ixc: ahh... so just the onStartCommand() is started twice... Sep 04 12:31:49 ixc: thank you... i somehow got lost in the api guides Sep 04 12:32:28 im trying to create a "modal" class wrapping a content provider. How do I provide it with a context? Sep 04 12:32:48 Pass it one? Sep 04 12:33:28 tried that, getting a null pointer Sep 04 12:33:33 (not sure the context is at fault) Sep 04 12:35:08 check the exception and try to fix it Sep 04 12:42:32 hello, I need to parse two dimensional json array, http://pastebin.com/JyUghpPB... first I get the array from the json like this JSONArray progListObj = responseObj.getJSONArray("prog"); then I try to go through each element and get sub json but I get error.. here is the part of code responsible for it: http://pastebin.com/S0dAYkts Sep 04 12:42:54 I think I am not doing it right.. could you suggest a right way to parse json Sep 04 12:44:17 Do you have sample JSON? Sep 04 12:44:28 And what specific error Sep 04 12:45:31 i'm overriding the back button u mad? Sep 04 12:45:42 torniker: what error u got? Sep 04 12:45:57 here is jsonhttp://pastebin.com/JyUghpPB, here is error http://pastebin.com/ATfNizVz Sep 04 12:46:21 and where is begining of error? :D Sep 04 12:47:12 here: http://pastebin.com/bn7XBnc6 Sep 04 12:49:01 json is valid? Sep 04 12:49:14 btw u try to get a object from prog array Sep 04 12:49:20 but it containts other arrays Sep 04 12:49:36 responseObj.getJSONArray("prog"); there is no "prog" ? Sep 04 12:49:45 ah wait Sep 04 12:49:48 Reading wrong thing :D Sep 04 12:50:09 nah, dont read code Sep 04 12:50:14 first problem at not valid json Sep 04 12:51:26 Yeah, thats it. Array inside array Sep 04 12:51:32 ixc, json is valid iphone application already using same json and working Sep 04 12:51:44 it isnt Sep 04 12:51:50 Knossos-, yes there is array in array Sep 04 12:52:34 I would like to parse it so I get kind of one level array Sep 04 12:54:06 believe me, its not valid Sep 04 12:54:18 thats why u get this exception now Sep 04 12:54:33 later u will get, because array in array, and u try to use object Sep 04 12:55:20 Heya folks - would anyone here know if there is any sort of automated testing tool for android apps? Sep 04 12:55:31 An equivalent to Watir essentially Sep 04 12:55:46 invalid, because in array u have comma after last object Sep 04 12:55:54 ixc, so what shall I use when there is array in array Sep 04 12:56:14 He could make it would though, I believe. Just use getJSONArray, on the initial Array Sep 04 12:56:24 u can do it, but you need remove comma after last objects, parser wil lwait for next object after comma Sep 04 12:56:38 ixc, thats not actual json I've deleted some items because actual one is quit big Sep 04 12:56:54 ixc, its just me forgot to delete that comma Sep 04 12:57:41 if are you sure about it, then try getjsonarray instead of getjsonobject where u want to get an array Sep 04 12:58:00 ixc, thanks I'll try Sep 04 13:01:03 ixc, thank you It works now :) thank you very much Sep 04 13:01:37 -pops his head in- i have a few minutes before work, felt I would ask while everyones more... well, awake XD I'm working on an HTTPClient login process to a website at my work. Difficulty seems to be that I'm not sending POST data what so ever... compatibility has been added, cookies have been enabled (and disabled). my List nameValuePairs; just isn't being recognised as $_POST data? Sep 04 13:03:12 anyone know why when i set android:background on my Spinner in my xml i get a: "android.widget.RelativeLayout cannot be cast to android.widget.TextView" ? Sep 04 13:03:41 because (TextView) findViewById... Sep 04 13:03:52 dont think i have that anywhere Sep 04 13:04:16 defeinitely not Sep 04 13:04:25 Komak57: You are using something similar to: http://pastebin.com/h2NUkwUR ? Sep 04 13:04:33 Bear10: which is in the line where u get the error? Sep 04 13:04:44 ixc, android:background="@drawable/spinner_background"/> Sep 04 13:04:48 Komak57: http headers are ok? encoding? Sep 04 13:05:10 ahh Sep 04 13:05:12 i know where it is then Sep 04 13:05:26 i think its: mAdapter = new ArrayAdapter(mContext, R.layout.spinner_textview, mQuantities); Sep 04 13:05:51 Knossos-: yes, very similar Sep 04 13:06:36 ixc, got it Sep 04 13:06:38 And you are certain that it isn't being picked up on the other end? You have dumped the $_POST? Sep 04 13:06:38 nvm Sep 04 13:07:17 Knossos-: I don't have access to the web content. But the behavior is saying as such. http://pastebin.com/7xMYRe0h Sep 04 13:07:34 Try making a local test Sep 04 13:07:45 after thorough reading, it seems people have a hit and miss issue with this particular field Sep 04 13:08:41 It may be your cookie implementation that has issues, for example. As opposed to the POST. Sep 04 13:11:47 I was thinking that, but I should still be getting the content of the forwarded webpage, not the login page (without login errors) Sep 04 13:14:20 Something to bear in mind, is that your cookie store is not persistant Sep 04 13:15:05 Everytime your client is destroyed, so are your cookies Sep 04 13:15:15 You will want to make sure that you persist your cookies yourself Sep 04 13:15:33 (I just jam the cookies into json in sharedpreferences) Sep 04 13:18:07 Knossos-: I only need the data in one stream. I have to go to the login page, send my credentials, get forwarded to another site, jump to another site, login with more credentials, get forwarded, press a button (clock in or clock out) then i'm done and nothing is needed anymore. I understand the use of cookies, but I've tried any methods i've come across with no change. Sep 04 13:18:26 Ah I see Sep 04 13:18:53 I just keep coming back to the likely possibility that the $_POST data isn't being sent at all. Trying to make my own login page and see what happens, but getting a slight... error XD Sep 04 13:20:08 Komak57: This should suffice:
Sep 04 13:21:14 ehh, doing it a little more complicated. Turns out i put the file in the wrong htdocs root Sep 04 13:23:38 hrmmm... so the $_POST data sends to my custom page, but not to the page i need ._. does $_GET data in the weblink have any effect on the login precedure? Sep 04 13:24:22 i have an android activity from which i want to pass the context to my phonegap plugin extended class. How can i do that ? Sep 04 13:24:59 The website probably sends its login data over POST, so you will need to do the same. GET won't cut it Sep 04 13:26:52 Knossos-: check the code snippet i sent earlier. The data is sent to a "*.php?home=ip" and given POST data... though it really shouldn't effect the process... Sep 04 13:27:14 That should be fine Sep 04 13:27:58 check my login page if you feel i'm missing some credentials or something >_> http://173.192.173.204/login/indexip.php?home=ip Sep 04 13:28:42 anything telling in here? http://pastebin.com/E3R9qBx8 Sep 04 13:33:46 There really isn't a whole lot there... why it would be failing is beyond me =.= Sep 04 13:35:38 ok, lets back up: is there anything I need to keep in mind when wrapping a content provider in a class? Sep 04 13:35:55 can I call getContentResolver() from said class? Sep 04 13:38:21 Knossos-: take it you didn't see anything? Guess I'll have to make an inquiry to my boss about getting in touch with our web developer. Was hoping to do this behind the scenes XD Sep 04 13:38:53 mbrevda: why does your class have a contentprovider istead of being one? Sep 04 13:38:54 I had a look, I don't see anything leap out at me. Sep 04 13:39:10 If the POST is reaching your test code, then it is probably reaching the login server. Sep 04 13:39:25 Which could mean that your str.contains code is not matching correctly. Sep 04 13:40:29 I'm looking for the login form tag, since a successful login would forward me to another page, then parsing the failed page for the error messages. Sep 04 13:42:17 suppose I WAS having a problem with cookies... You've seen my code >_> what else would I need? I've read a few different tutorials and guides, everything SHOULD be there. Sep 04 13:42:59 All I know, is the POST data must be getting through. The POST system is pretty foolproof. Sep 04 13:44:32 Hi, does anybody use csv with an android project on eclipse? I couldn't check out an android project and I haven't found anything useful online. Sep 04 13:44:42 Just to state, I have a MetroPCS Samsung Admire (Admiral Beast) running on Android 2.3.4 trying to debug with wifi. Sep 04 13:45:03 vudu: I'm not really sure what your question is. csv is just a file format. Sep 04 13:45:14 *did you mean: cvs? Sep 04 13:45:22 ah. Sep 04 13:45:27 Why are you using cvs? Sep 04 13:45:34 lov I mean cvs Sep 04 13:46:03 I have no idea whether Android would have any sort of problems with CVS, but assuming that the file permissions and directory structure remains the same it shouldn't matter at all. Sep 04 13:46:32 If you don't plan on committing back to that same repo, do a command line checkout and run like hell (and put it in git afterwards). Sep 04 13:46:49 lov I use it at work. Sep 04 13:46:52 lov, that was 2 different posts about 2 different subjects XD Sep 04 13:47:51 I have to change somebody elses project. So I need the commit back. The problem is I can get the java code but directories are messed up Sep 04 13:47:58 vudu: Your workplace needs to step into the 21st century. Sep 04 13:48:10 At any rate, this is a CVS question, not an Android question. Sep 04 13:49:43 trying to use this (http://stackoverflow.com/a/4911268/747749) to get a context from anywhere, but Im just getting a null pointer error Sep 04 13:50:01 I agree with you but every workplace have this kind of out of date problems Sep 04 13:50:04 lov this is an android question too. I believe people over here have better chance to know about this Sep 04 13:50:22 vudu: Two things. Sep 04 13:50:29 1) If your workplace still uses CVS, you should run, not walk, away. Sep 04 13:50:38 2) Your version control software isn't an Android problem Sep 04 13:50:58 Besides, all the cool kids use GIT. Sep 04 13:51:06 I don't understand how "My antiquated SCM won't check in my directories" is an Android issue, at all. Sep 04 13:51:07 lov this is an android application development problem Sep 04 13:51:17 it's really not. Sep 04 13:51:25 this is like saying that a broken SD card is an Android development problem Sep 04 13:51:29 it's not; it's a broken SD card. Sep 04 13:51:52 If the directories are messed up, un-mess them up. Sep 04 13:51:55 My phone is broken when it fell out of my pocket, therefor there's a bug in the frameworks. Sep 04 13:51:58 Or mess them down, or whatever. Sep 04 13:52:08 vudu: what do you mean with "directories are messed up"? Sep 04 13:52:10 It's going to be fun. Sep 04 13:52:24 when creating a new project, there's minimum SDK, and Build SDK. if i choose minimum api 8 (2.2) and build sdk 15 (4.0) will my application run on 2.2 machines? Sep 04 13:52:29 socket: yes Sep 04 13:52:36 lov frameworks and libraries are not the only thing you use for development Sep 04 13:52:40 socket: read the documentation on backwards compatibility Sep 04 13:52:40 hah... anyways, thanks for the attempt Knossos. I have to head to work now, I'll see if i can't pair up with our software developer and get this problem cleared out later. Sep 04 13:52:56 vudu: You're doing development on your computer. Would you like to file a bug with Dell about CVS? Sep 04 13:53:07 vudu: note that CVS does version directories Sep 04 13:53:09 You're sitting on your chair too, maybe you should get a new chair. Sep 04 13:53:25 hrnt only thing I am getting from cvs is src folder Sep 04 13:53:30 Good luck Komak57 Sep 04 13:53:55 vudu: and there's no res/ folder anywhere? If that's the case, it seems not the entire project is in cvs. Sep 04 13:54:04 lov if there is a spesific bug I would submit. Sep 04 13:54:18 vudu: the bug is that your SCM repo is buggered Sep 04 13:54:23 vudu: no, CVS does not version directories. you are getting files from that src folder. Sep 04 13:54:30 vudu: which is why the src folder gets created. Sep 04 13:56:37 hrnt I can see all the folders on the cvs explorer. But when I create a project from cvs I just get the src folder Sep 04 13:57:03 are you sure that you're not just checking out the src directory? Sep 04 13:57:10 vudu: Seriously. You should go to #cvs or something Sep 04 13:57:21 this is in no way, shape, or form an Android specific issue. Sep 04 13:57:25 Ask your co-worker who created the repo to help you? Sep 04 13:57:29 this too Sep 04 13:57:36 since you guys are still using CVS, ask your coworkers. Sep 04 13:57:47 also, ask them how 1990 is doing Sep 04 13:57:48 lov If you dont want to answer about it just dont. Sep 04 13:57:59 vudu: I'm telling you this because it's completely off topic. Sep 04 13:58:49 this is an android development question. you are just creating arguement and keeping the channel busy. Sep 04 13:59:53 Explain to me how it is an Android development question aside from the fact that it's an Android project that you're trying to check out Sep 04 14:00:00 what, specific to Android, is the problem with your source control? Sep 04 14:00:07 Is there a certain type of file that CVS doesn't handle correctly? Sep 04 14:00:20 Is there a known issue where CVS does not export the res directory correctly? Sep 04 14:00:43 Explain to me how you couldn't just substitute "Android" with "iOS" and have the same reasoning here Sep 04 14:00:44 vudu: Issuing orders to people on IRC rarely goes well. Sep 04 14:01:00 Lets say that this was happening with a win32 project; is windows buggy as shit because of this? Sep 04 14:02:25 I really would love to know how this is, specificially, an Android issue aside from this being an Android project that your SCM is failing to check out. Sep 04 14:02:28 lov that is the problem I am checking out an Android project Sep 04 14:02:35 and? Sep 04 14:02:40 what else? Sep 04 14:02:45 what makes this ANDROID SPECIFIC? Sep 04 14:02:55 What makes this different from you failing to check out a win32 project? Sep 04 14:02:55 lov: Could you help me with my Android problem? I use Android and my car was broken into last night. Sep 04 14:03:14 Hodapp: you obviously should have left your device in the car. Sep 04 14:03:56 vudu: in particular, why is this NOT a CVS issue? Sep 04 14:03:57 what else should make id Android spesific. there is Android code in it Sep 04 14:04:15 explain to me, explicitly, how Android is causing this issue and not CVS. Sep 04 14:04:30 this is not android channel Sep 04 14:04:39 this is android-dev Sep 04 14:04:43 and? Sep 04 14:05:02 My graphics card is acting up, and I use my graphics card in my computer to display my IDE Sep 04 14:05:05 should I ask for help about it here too? Sep 04 14:05:26 Also, my keyboard is a little dirty and I use my keyboard to develop android Sep 04 14:05:31 Now look what you've done. lov is all fired up now. Sep 04 14:05:31 I can check out anything from cvs like java project, c++ project that is more generic thing Sep 04 14:05:42 Let us all discuss keyboards since it is what this channel is about Sep 04 14:05:46 this channel is now about keyboards. Sep 04 14:05:51 if your graphics card causing issues in emulator you should ask Sep 04 14:05:57 vudu: no, not the emulator. Sep 04 14:05:57 vudu: what do you see if you do "cvs ls " Sep 04 14:05:58 the IDE. Sep 04 14:06:15 if you only see a small number of files there, then that's all you're going to get FROM the repository Sep 04 14:06:19 ^^ Sep 04 14:06:20 you dont go to the nvidia and ask about your emulator Sep 04 14:06:27 that's the approach you're taking. Sep 04 14:06:32 vudu: do what ashH said. Sep 04 14:06:35 it really just sounds like your repository does not contain the complete project Sep 04 14:06:43 what is the output of cvs ls ? Sep 04 14:06:45 in which case, this is a problem caused by your colleagues Sep 04 14:08:12 lov that is what you should tell in the first place. "I don't know/I dont want to answer. go ask somebody else" Sep 04 14:08:38 vudu: what is the output of cvs ls ? Sep 04 14:09:09 vudu: i can only repeat what others have said - the first issue is that you may simply not have everything you need IN YOUR REPOSITORY. in which case, this is not initially an Android-specific problem Sep 04 14:10:15 ashH I can see all the folders and files in the cvs explorer Sep 04 14:10:25 ok, now we're getting somewhere Sep 04 14:10:45 so did you check out your repository using eclipse, or cvs/cvs explorer? Sep 04 14:11:47 I used eclipse. Sep 04 14:12:22 so Sep 04 14:12:32 my R file is somehow gone, any idea what might have happen? Sep 04 14:12:41 try checking out the SAME location in the repository but using cvs itself Sep 04 14:13:02 socket: your project probably has an error in the res directory Sep 04 14:13:11 alternately, your project hasn't been built Sep 04 14:13:16 but it does kind of sound like it may have checked out just the src subfolder Sep 04 14:13:27 the marvel about R is not that it's gone, but that it exists in the first place. Sep 04 14:13:44 windows 8 is the bomb Sep 04 14:13:46 vudu: afraid i don't use cvs OR eclipse so i'm not sure how much help i can offer Sep 04 14:14:02 s/the/a/ Sep 04 14:15:00 I actually used eclipse a few years ago last time, from eclipse no less. It has done a lot to make CVS just work as version control. Almost humane to use. Sep 04 14:15:08 sorry, used cvs Sep 04 14:15:09 ashH: what do you use? Sep 04 14:15:43 Hodapp: svn at work, git for everything else Sep 04 14:15:45 one guy in an open source project I was involved with told me that he doesn't want to change version control because cvs already works. I had to agree, it did just work. Sep 04 14:15:56 although i tend to use git-svn at work to talk to our svn repos Sep 04 14:16:16 yeah i use git svn Sep 04 14:16:23 much esier to manage branches Sep 04 14:16:35 but damn it's slow. I hate these things that rely on server so much. SVN is the worst of the bunch, usually taking a https connection per file to download something. And the dozen files/directories per one checked out file. :-/ Sep 04 14:16:36 it would be for us, if our svn repo layout wasn't all over the shop Sep 04 14:16:46 Quick question: Using Android:onClick and "public void (View view) {}", isnt it possbile to then do a ((EditText) view).getText()? Sep 04 14:17:06 Yep Sep 04 14:17:07 rynkan: probably Sep 04 14:17:11 try it and see! :D Sep 04 14:17:17 rynkan: if it truly is an EditText Sep 04 14:17:18 awsum Sep 04 14:17:29 ^^ Sep 04 14:17:30 (it should be, of course, if it's EditText callback) Sep 04 14:17:52 you should probably do if(view instanceof EditText) { ... cast ... } else { Log.e(...); } Sep 04 14:17:58 You can do it even if it isn't, it just might crash :p Sep 04 14:18:05 lov: I prefer my ClassCastExceptions raw Sep 04 14:18:21 great now i can aviod fidnViewById Sep 04 14:18:56 alankila: like my coffee and women? Sep 04 14:19:12 cooked women sounds a bit too cannibalistic to my taste. Sep 04 14:19:30 lov: ground up and in your belly Sep 04 14:19:46 ground up, boiled, and shit out Sep 04 14:20:49 gross Sep 04 14:21:32 ashH: Thank you very much. Sep 04 14:21:43 I will have to try something else Sep 04 14:22:13 ashH: I mean, what do you use instead of Eclipse? Sep 04 14:22:13 vudu: check it out with cvs or cvs explorer itself Sep 04 14:22:30 Hodapp: for Android - nothing, i haven't started my android dev proper yet Sep 04 14:22:32 "The copy protection feature will be deprecated soon". What happens to my paid app if this feature becomes deprecated, and im not using the licence service? Sep 04 14:22:40 but i'll likely build my workflow around sublime text or textmate Sep 04 14:22:48 i have no intention of using eclipse Sep 04 14:22:51 elye: perhaps people can freely copy your application between devices. Sep 04 14:23:06 alankila, even for older versions Sep 04 14:23:09 ? Sep 04 14:23:11 elye: don't worry, though. the license code is so easy to patch out that there exists programs that do it, to help piracy. Sep 04 14:24:08 okay :/ Sep 04 14:25:05 elye: I doubt google is going to actually change anything regarding existing apps. It's just that maybe you can't make new APKs that are encrypted when that checkbox goes away Sep 04 14:25:45 alankila: heh, we used to use CVS not that long ago. it took 15-20 minutes to run a CVS update. Sep 04 14:26:04 now with git pull is about 5-10 seconds Sep 04 14:26:13 ashH: it didn't work either. I will remote connect the server and get it from there. Sep 04 14:27:18 elye: so when that happens you'll have to integrate the google play licensing code. Unfortunately android leaves too much control in hands of users to truly be particularly secure with respect to paid applications Sep 04 14:27:25 man, i love git, i really do, but i seriously don't understand its defaults Sep 04 14:27:36 like why is git pull --rebase not the default when pulling from a tracking branch? Sep 04 14:27:44 the licensing stuff, like the encryption stuff, only prevents casual piracy at level of "I took that apk file from one device and copied it to another" Sep 04 14:27:49 and why is push.default = tracking not set by default? Sep 04 14:28:27 that's already a good step Sep 04 14:29:04 elye: yes, but the problem is that the call sites in apk that perform licensing using the play library are so methodically compiled into dalvik bytecode that programs can identify these sections and patch them out Sep 04 14:30:05 so it's only a matter of time Sep 04 14:30:49 the licensing checks could be pushed up a notch, straight into the framework, or the device could be properly locked down, like apple's stuff. Neither option is very palatable though. Sep 04 14:31:51 the neckbeards would revolt if you tried to push the DRM into the SDK. It also wouldn't help with CM and the like. Sep 04 14:31:58 in the first case, I imagine play store would call google's servers for every non-system application user wants to run to determine its status, and all apk files would have to be signed with keys that are google-generated to ensure that there's nonbroken PKI chain of trust. Sep 04 14:32:12 If you pushed it into the hardware, then you've got OEM fuckups preventing legit users from using their apps. Sep 04 14:32:41 in the second case, it'd be just like apple after people already got used to the somewhat lower walls of the google's garden. The backlash would be immense. Sep 04 14:33:30 personally i'd like to see something more integrated, but then i'm coming from an ios background Sep 04 14:33:31 so android lives with fairly easy to achieve piracy for now. Sep 04 14:33:43 pros and cons to each side i suppose Sep 04 14:33:54 if I want a background thread that handles various events, should I prefer starting it from a service or could I start it directly from an activity? Sep 04 14:34:18 rigid: what are the various events? Sep 04 14:34:55 hrnt: like executing commands from clients, regular events etc. Sep 04 14:35:13 rigid: rigid you may wish to use a service Sep 04 14:35:14 i guess threads could be killed when the activity process is removed Sep 04 14:35:27 the big concern is the activity being finished from under the thread Sep 04 14:35:30 rigid: there's not exactly an activity process Sep 04 14:35:58 ah Sep 04 14:36:00 rigid: at least not in normal application. It's all one-process image. But for the objects whose lifecycle is managed by android, you should be careful not to retain references to them. Sep 04 14:36:30 so i'll go with a service Sep 04 14:36:41 also you may have to take wakelocks and prevent your application's death by running some kind of foreground service Sep 04 14:36:50 rigid: Or use the application Context Sep 04 14:36:53 i have to read about that sticky/non-sticky thing again... i'm not completly aware about that Sep 04 14:36:57 intentservice is a fairly nice design for detached processing Sep 04 14:36:57 it depends on how rigorous you need to be :P Sep 04 14:37:25 but don't keep reference to an Activity-Context for an application life-time Thread Sep 04 14:37:41 intentservice + wakelock is what I use in one incredibly unpopular application I wrote recently. I don't think 10 people have installed it yet. Sep 04 14:38:08 alankila: which app? Sep 04 14:38:13 "live mandelbox" Sep 04 14:38:14 alankila: i thought about using an IntentService but I'm not sure if I can communicate in a way so I can use the service to draw into the view of an activity (if the Activity is active) Sep 04 14:38:27 it's a simple raytracer that renders reprojectable image to use as wallpaper Sep 04 14:38:36 it appears to turn in 3d sense when you switch between homescreen pages Sep 04 14:38:56 lov: it depends on how much you love your users, Android and everything related to it ^^ Sep 04 14:39:00 the reprojection is performed by opengl using some glwallpaperservice hack Sep 04 14:39:20 cyrilmottier: zing Sep 04 14:39:28 but it's literally just a few static textures being twisted in way that constructs a planar projection in the given view direction Sep 04 14:40:09 I want to get a string form strings.xml outside an activity-class (missing context), how would i do that? (it's a helperclass) Sep 04 14:40:23 alankila: it's a neat projection I guess but it doesn't really DO anything. Sep 04 14:40:28 By passing it a context Sep 04 14:40:33 not animated = not worth a live wallpaper Sep 04 14:40:49 yeah, im stupid. Sep 04 14:40:52 indeed not. It's just a wallpaper. I can't personally tolerate background activity, so I can't use any "live" wallpapers Sep 04 14:41:09 I thought there might be more people like me, but probably not. Sep 04 14:41:29 * lov shrugs Sep 04 14:41:36 I wouldn't have even thought it was a GL projection until you mentioned it Sep 04 14:42:24 It depends a bit on the device's aspect what it looks like. Portrait-oriented devices have 90 degrees field of view in the y direction, but the x is significantly narrower by requirement of having square pixels Sep 04 14:42:52 I might enhance it to 100 degrees to emphasize the rotation, or something. I haven't really given the matter any serious thought. Sep 04 14:43:43 in case of landscape, the view tends to cover something like 130 degrees which gives a very twisted rotation. That also is a problem, but a lesser one. Sep 04 14:45:19 my fault for fixing the y field of vision to 90 degrees. I'll work harder on it on some future version. Sep 04 14:45:54 I will also look into ways of adding some mild animation to these things. The mandelbox is probably hopeless because of the computational cost of it all. Sep 04 14:46:22 I'll experiment with dynamic lighting though. It's just about within feasibility. Sep 04 14:49:04 soft shadows, though, not so. It takes a minute to calculate them on the phone as is. Anyway, that's probably more than anybody wanted to know about it. Sep 04 14:58:16 Hello there, is there anyway to program an app to have diferent UI in phone and in TV (connected via HDMI cable)?? Sep 04 14:58:25 complicated real-time rendering is very soon totally feasible on the phone though. They have a large enough fraction of desktop's resources, which means good things for games. I've some prototypes brewing that I will try to evolve into games in due course. Sep 04 14:58:27 Why would a CursorLoader work the first time, (ie onFinished is called), but on an orientation change, will not work (created is called, but onfinished is never called). It will continue to work in orientation original, but fail to work in other orientation... Sep 04 15:01:24 lasserix: post your loader code Sep 04 15:05:01 One sec Sep 04 15:11:40 http://pastebin.com/FqC4KZAC Sep 04 15:12:10 lint is bitching about code inside if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { Sep 04 15:13:41 canadiancow: and? Sep 04 15:13:47 canadiancow: use the annotation saying "This is fine thx" Sep 04 15:14:03 actually Sep 04 15:14:17 it might not be fine, unless you're using reflection Sep 04 15:14:47 canadiancow: yeah I've noticed that too. I moved the code to it's own method and annotateded with @SupperessWarning("NewApi"), dont quote me on the exact annotation Sep 04 15:14:48 iirc if Class X is defined in SDK 10 and you're using SDK 9, and Class Y has a reference to class X in its code, class X might have classloader issues Sep 04 15:15:08 g00s: what? Sep 04 15:15:10 which is why I'd recommend moving any API specific code into its own class, and using a factory to determine whether to use it, etc. Sep 04 15:15:11 no lov that was fixed in 2.0 or something Sep 04 15:15:15 orly? Sep 04 15:15:17 yea Sep 04 15:15:19 hmm! Sep 04 15:15:21 yarly Sep 04 15:15:28 I was not aware. Sep 04 15:15:30 but the annotation isnt available for an if block Sep 04 15:15:33 only a method Sep 04 15:15:38 so then i have to make a whole method for it :P Sep 04 15:15:51 boo hoo. You should have a method anyway. Sep 04 15:15:55 yo Sep 04 15:15:58 unless it's like 1 line Sep 04 15:15:58 your face should have a method Sep 04 15:16:02 it is :P Sep 04 15:16:03 my face has a method Sep 04 15:16:14 while(true) { awesome(); } Sep 04 15:16:20 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { Sep 04 15:16:20 setPreserveEGLContextOnPause(true); Sep 04 15:16:20 } Sep 04 15:16:32 thats not a method Sep 04 15:16:34 it's a loop Sep 04 15:16:43 FINE Sep 04 15:16:56 void myFace() { while(true) { awesome(); } } Sep 04 15:17:26 you gonna complain that you can't get out of myFace now>? Sep 04 15:17:36 eww? Sep 04 15:17:45 haters gonna hate. Sep 04 15:18:02 :P Sep 04 15:18:16 less than 4 days until freedom! Sep 04 15:18:20 anyway, if you have that line more than, like, once in your codebase you might want to make a little factory just to abstract this out Sep 04 15:18:34 void meh() { color.me(Sate.UNIMPRESSED); } Sep 04 15:18:48 bah. s/Sate/State Sep 04 15:18:49 Sate class not imported. Sep 04 15:18:55 compiletime burn. Sep 04 15:29:23 Is there any sense of backlash that the Android community experiences since the Apple suits? Sep 04 15:29:42 (or does it expect backlash to come from that?) Sep 04 15:29:43 not... really? Sep 04 15:29:49 what kind of backlash do you expect? Sep 04 15:29:57 OH GEE APPLE SUCKS IM GOIONG TO GO...SUE THEM Sep 04 15:30:03 well no Sep 04 15:30:04 im a canadian Sep 04 15:30:05 I've had people throw rotten apples at me in the street... Sep 04 15:30:05 so im too nice Sep 04 15:30:14 but I'm not sure that's anything to do with any legal issues Sep 04 15:30:23 I'm just asking :p Sep 04 15:30:29 I suspect he means FUD about the platform, developers leaving, etc Sep 04 15:30:36 oh Sep 04 15:30:38 meh Sep 04 15:30:40 yeah, dragorn Sep 04 15:30:45 that sort of things Sep 04 15:30:48 android is mired in fud anyway Sep 04 15:30:53 DID YOU KNOW THAT ANDROID CAN READ YOUR SD CARD??????????? Sep 04 15:30:56 (yes, actually) Sep 04 15:30:59 lol Sep 04 15:31:10 THEY CAN STEAL ALL UR PICTURES Sep 04 15:31:12 LOOK AT ALL OF THESE THINGS THAT APPS CAN DO WITHOUT PERMISSIONS ZOMGGGGGGGGGGGGGGGGGGG Sep 04 15:31:19 also, there were 532465346754345 security leaks on Android yesterday Sep 04 15:31:26 don't laugh it's a serious issue Sep 04 15:31:31 someone selling security software said so, it must be true Sep 04 15:31:32 the FBI recommends iPhones :p Sep 04 15:31:35 android does have some serious issues. but so does everything. Sep 04 15:31:40 BUY OUR STUDY FOR $5000 TO LEANR MORE Sep 04 15:31:42 McAffee reports that Android is the most insecurestest OS ever!!! Sep 04 15:31:47 belgianguy: I'd imagine if anything they recommend blackberry Sep 04 15:31:48 IF I MAKE AN APP WITH IN-APP BILLING I'LL BE SUED BY APPLE Sep 04 15:31:50 You can protect yourself with McAffee! Sep 04 15:31:54 belgianguy: that's what they give their agents Sep 04 15:32:07 dragorn: or maybe they just give the UDID databases ;P Sep 04 15:32:08 belgianguy: and those are still only linked to nonclass systems Sep 04 15:32:12 belgianguy: dw i thought it was funny :p Sep 04 15:32:21 hrnt: yeaaah that's a whole other thing Sep 04 15:32:30 hrnt: I'm pretty curious how that works out Sep 04 15:32:43 is Belgium the Canada of Europe? Discuss! Sep 04 15:33:00 I don't know but I love their waffles Sep 04 15:33:06 but look at all of the holes between the ridges! Sep 04 15:33:10 ARE BELGIAN WAFFLES INSECURE?!?! Sep 04 15:33:22 okay, now I'm got waffle yearnings Sep 04 15:33:30 BELGUM PRIMED TO FALL FROM SECURITY!!! Sep 04 15:33:57 tbh I have a whole box of waffles here Sep 04 15:34:06 isn't belgium hosting the eu council? oh fuck we're doomed Sep 04 15:34:06 usually I dont Sep 04 15:34:08 belgianguy: inspect them carefully for security holes, report back please Sep 04 15:34:22 let us know if there's any backlash from pouring maple syrup on them Sep 04 15:34:37 I dont know, can backlash be good? Sep 04 15:34:54 lasserix: what two adults get up to in the privacy of their own home... Sep 04 15:35:03 well, I think it can be, provided that a third party doesn't profit from it Sep 04 15:35:15 eg MS Sep 04 15:35:21 Karo! Sep 04 15:35:24 Of course, I knew it! Sep 04 15:35:25 with WP8, wooing the HW manufacturers Sep 04 15:35:25 See I'm even more liberal, the whole "privacy in their own home" why not simply "in privacy"? Sep 04 15:35:31 They had the most to profit from the fall of maple syrup! Sep 04 15:35:35 I should decompile some apps to see if there are some which use serialization for communication like my first (non-released) draft did x) Sep 04 15:35:45 Canada has a strategic reserve of Maple Syrup Sep 04 15:35:47 why? Sep 04 15:35:55 why do you think? Sep 04 15:35:56 and million gallons were stolen Sep 04 15:36:06 it's yummy Sep 04 15:36:08 ? Sep 04 15:36:10 exactly Sep 04 15:36:27 Threaten your enemies to make them crepes Sep 04 15:36:42 butter your friends, but butter your enemies more Sep 04 15:36:45 and if they don't surrender immedeatly, you'll add maple syrup? Sep 04 15:36:56 y'all know about the great molasses flood, right? Sep 04 15:37:02 lov how does maple syrup relates with android? Sep 04 15:37:10 vudu: about as much as CVS does Sep 04 15:37:22 but you're right. Sep 04 15:37:35 less (delicious) syrup chat, more android chat Sep 04 15:37:52 Both are sold at your local walmart? Sep 04 15:38:45 one of them is both the same Sep 04 15:38:54 sorry, anyone have an idea about what the Nexus Q is slated to become? Sep 04 15:39:13 perhaps when it gets to Android version, letter M, we will have a Maple Syrup version Sep 04 15:39:31 belgianguy: a doorstop? Sep 04 15:39:37 lol Sep 04 15:42:09 Knossos-: I think it should be Marzipan instead. Sep 04 15:42:51 No it'll be Macaroon Sep 04 15:43:09 if I were to want to use physics, would it matter a lot if I used the NDK with a C++ engine or should I find a Java Physics engine? Sep 04 15:43:24 belgianguy depends on how complicated your game is going to get Sep 04 15:43:53 well I was thinking of making some simple bowling game to try it Sep 04 15:43:56 But i've seen a few with a port of box2d Sep 04 15:44:08 for java Sep 04 15:44:22 Why would the complication of the game matter? Sep 04 15:44:46 because c++ code would typically be more performant Sep 04 15:44:51 Ndk is faster so if it is fairly physics intense game you'd want to optomize state processing? Sep 04 15:44:59 ah, I have built some examples in my emulator (Part of Bullet Physics, called PhysicalEffects IIRC) Sep 04 15:45:10 what ashH and lasserix said. Sep 04 15:45:16 using the NDK Sep 04 15:45:25 Using the NDK offers a few advantages; cross platform compatibility as well as raw performance Sep 04 15:45:27 if you're comfortable using the ndk why not? Sep 04 15:45:31 ah okay, then I'll hold on to that Sep 04 15:45:55 The only downsides to the NDK is increased complexity, and having to support different device types (arm vs armv7a vs armv8 vs x86 vs mips) Sep 04 15:45:56 lasserix: was wondering if there were any penalties associated with it Sep 04 15:46:00 does anyone know why memory-intensive operations are much slower in java than ndk? Sep 04 15:46:14 Lack of const and pointers Sep 04 15:46:27 lov: I noticed, my poor ARMv6 cannot run it, it needs ARMv7 + NEON Sep 04 15:46:33 belgianguy: ddms does not work with native code and you don't get that fancy "your program crashed in line x" Sep 04 15:46:54 belgianguy: in that case, you have to consider the size of the market. Sep 04 15:47:09 e.g. you ok with only running on devices from 2012 and newer? Sep 04 15:47:13 Waynes: true, that one might be a true obstacle, esp when using beta products Sep 04 15:47:48 lov: well if the machine can't supply the CPU/GPU, the experience might be below par anyway Sep 04 15:47:57 but it's a choice, that's true Sep 04 15:49:25 well I found out the hard way why it wouldn't run on my phone Sep 04 15:49:29 if you are dealing with more than 500 objects I'd recommend to use ndk, it's waaay faster Sep 04 15:49:35 belgianguy: you can always take compatibility routes. Based on device horsepower render fewer objects etc Sep 04 15:50:03 lov: true, you could perhaps scale some parameters Sep 04 15:50:33 hi all Sep 04 15:50:43 and I believe you can in fact compile for more than one cpu architecture into a single APK Sep 04 15:50:48 but it'll bloat the size Sep 04 15:50:55 yes but! Sep 04 15:50:55 Bowling game sounds okay unless you are doing some crazy graphical effects for disco bowling night setting. Sep 04 15:51:10 you can make multiple builds, each with a different architecture, and upload them all to Play Sep 04 15:51:16 Play will determine what build goes to what device Sep 04 15:51:33 ah, good to know! Sep 04 15:51:38 I need to examin files on real device, but i have no permissions to /data/data/packageName Sep 04 15:51:44 take a look at the split.density property in project.properties Sep 04 15:51:51 rootty: root your device. Sep 04 15:52:15 I remember that there is a way to run adb with parameter something like adb as 'package-name' Sep 04 15:52:18 rootty: alternately, write a broadcast receiver that will listen for some debug broadcast and then copy all of the content in your app private dirs to the sdcard Sep 04 15:52:28 No,no Sep 04 15:52:35 I had already did it Sep 04 15:52:52 but I forgot how I did it) Sep 04 15:52:56 lov: interesting idea Sep 04 15:54:00 lov, it was something like adb shell as package.name, and after that i have all the permissions that my application has. Sep 04 15:54:11 Is there a way to disable LoaderManager from retaining a loader? Sep 04 15:54:44 rootty: I don't believe that this is a thing, but maybe it is. Sep 04 15:56:08 lov, be sure that it is possible, I've already did it while making my Uni project. But it was a half of year ago, and i don't remember how i did it =( Sep 04 15:57:59 has anyone done anything with GLSurfaceView#setPreserveEGLContextOnPause(boolean) ? Sep 04 15:59:11 lov, "adb shell" and in device console "run-as package.name" Sep 04 15:59:27 Good afternoon all. I've run into an odd behavior in error detection within Eclipse. I pulled code from here http://code.google.com/p/android-misc-widgets/source/checkout which yields a bunch of errors related to the R object not being created. Within eclipse, the res/values folder has a red X indicator presumably meaning there's an error in a file within that directory, but none of the files (XML arrays, attars, colors, strings, sty Sep 04 15:59:28 and themes files) have any errors indicated, and all appear sane. Can someone suggest an approach to identifying the error? Is there a typical meaning when a directory has an error indicator but none of the files within it do? Sep 04 15:59:39 test Sep 04 15:59:46 canadiancow: setPreserveEGLContextOnPause ? Sep 04 15:59:47 hello, can anyone help me? can android print to wifi printer directly? if it can, how to do it? Sep 04 15:59:53 damn copy&paste Sep 04 16:00:00 canadiancow: http://stackoverflow.com/questions/5741257/how-to-prevent-glsurfaceview-from-recreating-the-the-opengl-surface-frequently Sep 04 16:00:11 lifeform: that's funny… anything more meaningful? Sep 04 16:00:47 lov, and after that you are in /data/data/package.name, and you have all the access to /database, /cache, etc Sep 04 16:00:48 Waynes, that doesnt seem to cover the issue i forsee Sep 04 16:00:49 hillct: did you try to restart eclipse? x) Sep 04 16:00:54 i want to talk to someone who's used it Sep 04 16:01:00 and isn't just blindly claling the method Sep 04 16:01:28 Waynes: I've cleaned the project several times, and restarted twice. will restart against to be certain Sep 04 16:01:53 emm i need print to printer that have wifi connecttion. the printer is use esc/pos code to command. but i do not know how to connect to the printer. i searching this information and could not find any usefull information. sorry my bad english. Sep 04 16:03:06 @hillct, sorry for my bad english. hope you understand what i mean. Sep 04 16:03:15 rootty: neat! Thanks for sharing that. Sep 04 16:03:17 hillct: sometimes if things appear to be broken for no reason it might work to copy all resources to a new project and delete the old one Sep 04 16:03:25 lifeform: would you not be able to use Google Cloud Print? Sep 04 16:03:26 lov, ^-^ Sep 04 16:03:31 and it's API? Sep 04 16:03:35 its* Sep 04 16:03:57 i need print it with locally. cause it must be can use with out internet connection Sep 04 16:04:15 belgianguy, i need print it with locally. cause it must be can use with out internet connection Sep 04 16:04:27 lifeform: SOrry, I was commenting on your 'test' statement whig I thought was a suggestion to resolve my issue. It was bad timing. I realize now that you were merely testing your IRC client Sep 04 16:05:32 @hillct:oh ic. no problem ha ha. i test cause i cannot post to the forum. until i realize i must register the nickname ha ha Sep 04 16:06:01 Waynes: yeah, could be. Restart didn't do it It makes sense that the project might not have imported successfully as it was possibly setup using some entirely different environment (pulled from the OSS project http://code.google.com/p/android-misc-widgets) Sep 04 16:07:16 Waynes: re-assembling the project again, as you suggest. we'll see if that works Sep 04 16:12:58 I have a java.util.Date object. I would like to print it in the following format : "Jun 13, 9:40PM" What is the best way to do this? Sep 04 16:15:48 napster: I have no idea what I am talking about but this seems nice http://docs.oracle.com/javase/1.4.2/docs/api/java/text/SimpleDateFormat.html Sep 04 16:16:48 @napster: or might be from android reference : http://developer.android.com/reference/java/text/DateFormat.html Sep 04 16:17:01 Actually SimpleDateFormat from java.text is here : http://developer.android.com/reference/java/text/SimpleDateFormat.html But I'm looking for if there is a better way Sep 04 16:17:17 ah lifeform you types faster than me :) Sep 04 16:19:44 and I'm not sure either if it does format the date in this format "Sep 4, 9:49 PM" Sep 04 16:27:44 Waynes: the issue was the project contained a resource inherited from a private resource as described here http://stackoverflow.com/questions/7511395/android-adt-r12-for-mac Sep 04 16:34:40 wow gameloft pump out games like there is no tomorrow .. Sep 04 16:35:28 Ìû Sep 04 16:38:53 Good afternoon #android-dev Sep 04 16:42:20 sup Sep 04 17:10:23 Hi, has anyone veer used the AutoResizetextview before? Sep 04 17:10:24 http://stackoverflow.com/questions/5033012/auto-scale-textview-text-to-fit-within-bounds Sep 04 17:10:57 after I apply this class to my textviews they have all scaled down to a very small font size. Why is that? Sep 04 17:17:08 or…. does anybody know of any existing code that autoscale texts to fit screen resolutions? Sep 04 17:17:29 because I have tried a few and none of them works when I test my app on a smaller resolution Sep 04 17:18:50 What are you trying to achieve Sep 04 17:20:26 SimonVT: I have my app with some textviews , and if I load the same app onto a device with a smaller screen I want it to scale down accordingly Sep 04 17:20:50 calvinchan, you can use different layouts? Sep 04 17:20:54 That doesn't make a whole lot of sense Sep 04 17:21:20 People with smaller devices can read smaller text? Sep 04 17:21:37 Yes. That's why the bought the smaller phone. Sep 04 17:21:44 Good point though! Sep 04 17:21:54 lol Sep 04 17:22:05 You want to just use sp units so the text is the same physical size on all devices Sep 04 17:22:09 lasserix: SimonVT: I have a layout that sets my textview's text size to be 70sp. The activity's layout is designed based on 1024 x 600 tablet screen resolution Sep 04 17:22:19 I mean I have such bad eyesight I had to put a 10" inch tablet before I could use android os. Sep 04 17:22:20 yeeah Sep 04 17:22:41 I want to load the same app onto a 480x320 or whatever smaller resolution, and the text size would scale downa ccordingly Sep 04 17:22:41 \ Sep 04 17:23:27 so I found the code on stack overflow written by the guy chase, the class AutoScaletextView Sep 04 17:24:15 lasserix: I wish to achieve this by not making a second layout, because android devices have so many different types of resolutions Sep 04 17:25:29 have you guys done anything similar before? Sep 04 17:26:27 Umm you could use one of the methods that sees how big text is going to be drawn too, and use a runnable to keep increasing the size till it fills the desired dimension. Sep 04 17:26:40 then set it Sep 04 17:27:39 That's kinda what the view he linked does Sep 04 17:27:49 Oh i didn't see a link Sep 04 17:28:08 http://stackoverflow.com/questions/5033012/auto-scale-textview-text-to-fit-within-bounds Sep 04 17:28:26 the first answer of the post Sep 04 17:28:37 by chase Sep 04 17:29:16 I have read through the code and the thing I don't understand is why it would automatically shrink my text size to very small, even if I am on a 1024 x 600 Sep 04 17:30:52 Are you setting all the textsize bounds? Sep 04 17:31:55 you mean when I am using it in my app? Sep 04 17:32:15 yeah Sep 04 17:32:45 yes Sep 04 17:33:11 also, should the text fill the textview bounds? Sep 04 17:34:41 I dont know, I just thought if you were settings the textsize parameters in that class it might have no bounds hence shrink to really small Sep 04 17:35:41 lasserix: Have you dealt with scaling stuff for multiple screens before? Sep 04 17:35:50 A little bit, Sep 04 17:36:15 for now I know how to scale image view and image buttons Sep 04 17:36:23 but textveiw is pain in the butt Sep 04 17:36:34 any opinions on good android news resources? Sep 04 17:36:46 androidpolice? Sep 04 17:36:58 That's why I was saying there is a method that will see how big a rect is based on the text you give it, you could just have a loop in a runnable that decrements (or increments) testing against your view rect and when it finds the right size finally set it Sep 04 17:37:04 with all of the news sites, you really have to give a very skeptical eye to everything you see. Sep 04 17:37:24 lov: yeah, they're usually quite alright (except for that Mueller spat) Sep 04 17:37:44 but the author gave a good reason why he quoted him, and he had a point Sep 04 17:37:45 is that method already int eh code that I am using? Sep 04 17:37:51 autoscaletextview.java? Sep 04 17:37:54 no Sep 04 17:37:57 i mean any view Sep 04 17:38:09 belgianguy: i like phandroid, android community is ok Sep 04 17:38:32 android central and android police are also in my news reader though Sep 04 17:38:35 in the onDraw method of a custom view (or overriden view) there is a method that will give you a rect if you feed it some text with a paint Sep 04 17:38:43 lasserix: have you heard of a way that you can scale the layout as a whole? Sep 04 17:38:47 birbeck: ah, I haven't checked that one out yet, thanks! Sep 04 17:38:49 without scaling each individual elements? Sep 04 17:38:54 but by the time i read phandroid and android community, it gets pretty repetitive Sep 04 17:38:56 Why are you even scaling your ui ;O That's just a bad approach Sep 04 17:38:59 No idea sorry Sep 04 17:39:27 has anyone read retro miers book? Sep 04 17:39:48 i just started it and man that book is full of errors and lacking in detail Sep 04 17:40:41 Haven't read it, but.. examples? :p Sep 04 17:40:43 SimonVT: are there any other ways that I can make my buttons and texts appear at right size and position in a smaller screen? Sep 04 17:40:49 birbeck: yeah, I've heard that Sep 04 17:40:54 birbeck: on the plus side, there's a T-800 on the cover Sep 04 17:41:03 I mean that counts for something right? Sep 04 17:41:16 SimonVT: just little stuff, like a vertical linear layout with multiple textviews set to fill_parent Sep 04 17:41:27 inconsistent use of fill_parent and match_parent Sep 04 17:41:44 a few compile errors that are very noticeable without typing any code Sep 04 17:42:17 hello! I've installed Android SDK on Windows 8 (RTM). I had to run it in compatibility mode (Windows 7) to install. Now that I try to run the SDK Manager, the prompt closes immediately, then nothing. Using the cmd.exe prompt and executing the executable, nothing happens. How may I fix this? Thanks Sep 04 17:42:39 can anyone tell me if any of these permissions would keep my app off the market for tablets? pastebin.com/917e2eXi Sep 04 17:42:43 P.S. already set the environment variable "JAVA_HOME" Sep 04 17:42:55 hhmmm my DialogFragment seems to always be full height, is that normal/ Sep 04 17:43:02 im only on chapter 5, but ive yet to learn anything from it, have seen lots of places where there should be side notes or more detail... with all the errors though i dont know if i want to continue through it Sep 04 17:43:27 i thought about making notes and comparing it to the errata so i can send him some bugs Sep 04 17:44:55 Hi Sep 04 17:45:25 someone knows how to convert float array to jfloatArray in JNI? Sep 04 17:45:26 oh and a quote from steven fry saying it doesnt matter if it works as long as its beautiful, obviously talking about the iphone Sep 04 17:45:27 choijuho: hi Sep 04 17:45:34 vudu : hi Sep 04 17:45:55 My class extends SherlockActivity, but i can't override the method "onCreateOptionsMenu(Menu menu)" Sep 04 17:46:17 make sure you're importing the right Menu Sep 04 17:46:36 here is my code. Sep 04 17:46:37 http://stackoverflow.com/questions/12268306/fmod-getspectrum-how-to-convert-float-array-to-jfloat-array Sep 04 17:47:32 calvinchan: Not every device has the same aspect ratio or the same physical size.. What you're trying to do, I imagine, is make every component take up the same % of the screen on every single device.. That's a horrible approach. What you generally do is specify a size for header/footer components, and then make the content in the middle fill the rest. For example, when using listviews it might di Sep 04 17:47:32 splay 5 items at a time on some devices, 4 on others. That would then depend on their physical size/aspect ratio Sep 04 17:48:03 Yo Sep 04 17:48:24 huh, LinearLayouts inside of a dialogfragment always go full height :/ Sep 04 17:48:30 You then also want to make separate layouts for phones and tablets Sep 04 17:48:35 Anyone can help me with figuring out how to implement leadbolt ads? Sep 04 17:48:38 And you want to forget about resolution Sep 04 17:48:57 or airpush ads Sep 04 17:49:18 SimonVT; I see, so I can't get away with this without making separate layout....... Sep 04 17:49:39 someone knows JNI well? Sep 04 17:50:07 at least than me, I'm new about JNI. Sep 04 17:50:23 http://stackoverflow.com/questions/12268306/fmod-getspectrum-how-to-convert-float-array-to-jfloat-array Sep 04 17:50:28 choijuho: I haven't played with JNI in years. You can usually search around for this. Sep 04 17:50:31 SimonVT; I see, so I can't get away with this without making separate layout……. Sep 04 17:50:39 calvinchan: Not if you want to make a decent app Sep 04 17:50:43 choijuho: https://www.google.com/search?q=jni+convert+float+array+to+jfloatarray&sugexp=chrome,mod=12&sourceid=chrome&ie=UTF-8 Sep 04 17:50:55 see http://stackoverflow.com/questions/8541568/c-and-jni-how-to-pass-an-array-into-a-jfloatarray as the first result Sep 04 17:51:02 SimonVT: thanks Sep 04 17:51:31 or this: Sep 04 17:51:37 http://stackoverflow.com/questions/6143134/return-a-2d-primitive-array-from-c-to-java-from-jni-ndk Sep 04 17:53:08 lov : I couldn't understand after watching those codes. :( Sep 04 17:53:18 lov : thx Sep 04 17:53:43 choijuho: try harder. find some JNI tutorials to help things make sense. Sep 04 17:53:51 Anyone can help me with figuring out how to implement airpush ads? Sep 04 17:54:37 choijuho: take a look at http://docs.oracle.com/javase/1.4.2/docs/guide/jni/spec/functions.html if you haven't already Sep 04 17:55:09 Monkey_: no, sorry. airpush is a scummy network anyway. Sep 04 17:55:49 lov: And u would probably recommend admob right? -__- Sep 04 17:56:42 I don't really recommend a particular network Sep 04 17:57:12 but I would say that airpush is really only something you want to use if you're targetting the basement in terms of intelligent users Sep 04 17:57:20 you're basically getting people who literally don't understand what they're doing Sep 04 17:58:01 and I am SO INCREDIBLY pleased that JB is showing who actually sent notifications, so that airpush apps can be properly identified and killed Sep 04 17:58:16 +1 Sep 04 17:58:33 And that it lets you completely disable notifications for apps Sep 04 17:58:34 hmm, I don't know what Airpush is, but I can clearly see lov has it shitlisted Sep 04 17:58:47 Hodapp: ad notifications Sep 04 17:59:52 Hodapp: advertising via notifications Sep 04 17:59:59 The cause of 3 of my 1star ratings and uninstalls Sep 04 18:00:00 that sounds shitty Sep 04 18:00:09 you start to loath it when customers start blaming YOU for ads that other apps have shit upon the user Sep 04 18:00:16 With the new ad network sdk, they show the app name at bottom. No need for JB Sep 04 18:00:44 It's required by the google play policy Sep 04 18:00:53 yeah, that's the ONLY reason that it's there. Sep 04 18:01:01 :P Sep 04 18:02:34 hello! I've installed Android SDK on Windows 8 (RTM). I had to run it in compatibility mode (Windows 7) to install. Now that I try to run the SDK Manager, the prompt closes immediately, then nothing. Using the cmd.exe prompt and executing the executable, nothing happens. How may I fix this? I've already set the environment variable "JAVA_HOME". Thanks Sep 04 18:03:39 elegos: what happens if you try running android.bat at the command line? Sep 04 18:03:54 actually, what happens if you run java -version at the command line? Sep 04 18:04:01 elegos: install a VM, run windows 7 Sep 04 18:04:10 porten: not a solution Sep 04 18:04:24 porten: ha ha. Sep 04 18:04:27 install a VM, run ubuntu? Sep 04 18:04:36 porten: not a solution any VM Sep 04 18:04:38 INSTALL LINUX, PROBLEM SOLVED Sep 04 18:04:41 lols Sep 04 18:04:41 * lov strokes neckbeard Sep 04 18:04:52 lov: \Android\android-sdk\tools\lib\\find_java.exe non atteso. (non atteso = not expected) Sep 04 18:05:10 find_java.exe? huh? hmm Sep 04 18:05:19 using JDK 7 Sep 04 18:05:21 elegos: what happens if you run java -version ? Sep 04 18:05:36 elegos: oh, uh, incidentally, you should probably downgrade to java 6 until oracle gets their shit together and fixes that 0 day :P Sep 04 18:05:57 lov: isn't Java 7 out by a while now? Sep 04 18:06:16 my understanding is that the 0 day came out, oracle put out a fix, but the fix didn't actually solve the problem. Sep 04 18:06:35 I'm talking about the exploit, not java 7 itself :P Sep 04 18:06:43 anyway, NOT IMPORTANT! Sep 04 18:06:48 what's the output of java -version ? Sep 04 18:07:11 java version "1.7.0_07" Sep 04 18:07:16 ok, hmm. Sep 04 18:07:40 not a problem to install JDK6 and relative JRE Sep 04 18:07:48 if that fixes thigns Sep 04 18:07:50 things* Sep 04 18:07:53 what happens if you run that find_java.exe file itself directly? Sep 04 18:07:56 (from the command line) Sep 04 18:08:09 for me, it prints my jdk location and quits Sep 04 18:09:12 the program exited with an error code Sep 04 18:09:22 ok, I'm assuming that's the root problem. Sep 04 18:09:24 (stopped working windows) Sep 04 18:09:28 yes I think too Sep 04 18:09:33 trying to set compatibility mode Sep 04 18:09:34 You might have to put these exes into compat mode as well Sep 04 18:09:43 hopefully there'll be a new SDK with Win 8 compat Sep 04 18:10:27 ok, now it finds it: H:\Program Files (x86)\Java\jre7\bin\java.exe Sep 04 18:10:34 still, same error on android.bat Sep 04 18:13:16 if I call lib\find_java.bat it writes the same error Sep 04 18:14:08 it seems to be this line: for /f %%a in ('%~dps0\find_java.exe -s') do set java_exe=%%a Sep 04 18:14:18 somehow it won't recognize the path or similar Sep 04 18:14:23 * lov shrugs Sep 04 18:14:32 You could hardcode this if you're feeling saucy Sep 04 18:14:39 otherwise, I'm not sure what to suggest Sep 04 18:14:46 you could ask the fine folks in #windows what to do here Sep 04 18:14:57 yeah, gonna try there Sep 04 18:15:00 thanks for the effort :) Sep 04 18:15:04 no problem! Sep 04 18:15:42 Hey y'all. Is there any way to display the MyLocationOverlay on a map, but also stop receiving updates (IE: powering down the chip)? It looks to me like there's no way to simply display the first fix, but also stop searc hing. Any ideas short of manually displaying the blue dot? Sep 04 18:17:10 man, all the little quirks and one off bugs in androids layout XML reminds me of the early days of web dev Sep 04 18:17:30 like, LinearLayouts, when inside of a DialogFragment, don't respect their height setting Sep 04 18:21:37 i hate seeing backslashes when they are not escaping something Sep 04 18:23:07 Anybody? Sep 04 18:23:32 Chronax: I'm not sure it's possible without manually displaying a blue dot overlay yourself. Sep 04 18:23:46 That's kinda what I thought, and certainly what it looks like. Sep 04 18:23:47 You could look into subclassing the mylocation overlay, but eh. Sep 04 18:23:54 Yeah, heh. Sep 04 18:24:16 Actually not sure I can. It's probably marked final, and it isn't open-source. Sep 04 18:24:30 Seems silly that this isn't possible, right? Sep 04 18:27:01 * lov shrugs Sep 04 18:27:10 this is kind of a one-off thing that was made several years ago, and hasn't really been updated since Sep 04 18:27:33 Right. Sep 04 18:27:49 It's a bit silly that the iOS library for Google maps is much more full-featured than the Android equivalent. Sep 04 18:27:57 The speech-bubble overlays, tap to dismiss, etc. Sep 04 18:28:50 Wavesonics: You're inflating your view in onCreateView? Sep 04 18:29:00 SimonVT, ya Sep 04 18:29:12 Well there's your problem :p Sep 04 18:29:12 it's a known bug Sep 04 18:29:22 what really? Sep 04 18:29:29 thats where the docs say to do it :P Sep 04 18:30:38 What they don't tell you is that the viewgroup passed is null Sep 04 18:31:09 And I'm pretty sure the layoutinflater isn't the dialogs either Sep 04 18:31:28 So it can't inflate your linearlayouts layoutparams, since it doesn't know the parent type Sep 04 18:31:46 And theming might fuck up Sep 04 18:31:50 iinntteerreessttiinngg Sep 04 18:31:55 What you can do Sep 04 18:32:20 After super.onActivityCreated(...) call getDialog().setContentView(R.layout.something) Sep 04 18:32:29 Or override onCreateDialog and do it all yourself Sep 04 18:32:47 cool thx Sep 04 18:33:01 There is a bit of Dark Art to Android layouts :/ Sep 04 18:34:03 however, it has allowed me to do this awesome Phone/Tablet all in one UI that morphs to what ever screen it is on :P Sep 04 18:34:07 so thats pretty damn awesome Sep 04 18:34:19 Well, I don't really think you're supposed to specify a height anyway :p But if you need to.. Sep 04 18:34:39 oh I'm not specifying an exact height Sep 04 18:34:43 just wrap_content Sep 04 18:36:37 Ah alright Sep 04 18:45:11 hhmm in eclipse can u swithc which device LogCat is monitoring? Sep 04 18:45:50 Dont you just select it in the device tab? Sep 04 18:46:10 ah i do not have a device tab :P Sep 04 18:46:30 now i do :) Sep 04 18:47:58 ah no, doesn't seem to effect the logcat view Sep 04 18:54:38 restated eclipse and it works now Sep 04 18:56:05 Wavesonics: story of my life. Sep 04 18:56:09 hehe Sep 04 19:00:42 Has anyone used the Resting Rest API library http://code.google.com/p/resting/ ? I'm seeing an issue where I can't get it to be recognized, after adding it to my build path. I've not had this problem with any other libraries, but it still feels like I must be doing something wrong in the way I'm including it. I've tried both by using their android JAR file, and by building Resting as a library project and including it that way. In the Sep 04 19:00:43 latter case, it doesn't generate errors at build time, but does at runtime. Can anyone shed some light on this? Am I just using Eclipse incompetently? Sep 04 19:09:58 how do i disable checkins (latitude?) from showing up in my g+ page Sep 04 19:10:05 Sep 04 19:22:06 who's tom lynch Sep 04 19:23:43 hey Sep 04 19:23:59 oh nevermind Sep 04 19:24:20 im just starting out with android dev.. but i deleted a file called "activity_main.out.xml" because i thought it was just some sort of cache file Sep 04 19:24:41 now my app doesnt run Sep 04 19:24:52 its not even a cache file Sep 04 19:24:54 its just like Sep 04 19:24:55 garbage Sep 04 19:24:58 oh Sep 04 19:25:17 im getting activity_main.out.xml: Premature end of file Sep 04 19:25:21 this is in eclipse Sep 04 19:25:21 :-D Sep 04 19:25:38 delete it Sep 04 19:25:42 delete *.out.xml Sep 04 19:25:48 that was bad, i almost said 'delete *.xml' Sep 04 19:26:12 seriously Sep 04 19:26:20 it works Sep 04 19:26:32 so what i thought was the problem was actually the solution Sep 04 19:26:51 thanks moo Sep 04 19:34:57 I am trying to draw a line but with OpenGL it takes a noticeable ammount of time until it can be seen on the screen while it is instand with canvas/paint/bitmap, is it possible to make OpenGL instant, too? Sep 04 19:38:14 er Sep 04 19:38:23 Waynes: have you flipped your surface? Sep 04 19:38:31 GLES is going to be the fastest drawing route, period. Sep 04 19:38:40 find some tutorials on doing gles. Sep 04 19:41:00 er, s/flip/swap/ Sep 04 19:41:34 consider using GLSurfaceView if you're still a little new with GLES. Sep 04 19:47:44 hi, in Dalvik Debug Monitor I can't see the processes under my device, what's wrong? Sep 04 19:47:49 lov: I am using a GLSurfaceView (I already tried issuing rendering manually (render when dirty)) but there is a delay between motion and drawing (throughput is not the problem, opengl renders MORE than canvas, but canvas is instant while opengl seems not to be Sep 04 19:56:59 I guess OpenGL on android just sucks :/ Sep 04 20:00:37 Waynes: I strongly suspect that you're doing something wrong. Sep 04 20:00:49 You say that there's a delay. How long is it? Sep 04 20:00:55 is it possible that it's just because of double/triple buffering? Sep 04 20:01:41 low: enough to be noticed, I'll try to disable buffering Sep 04 20:02:29 Waynes: is it possible that you just have a crummy device? :( Sep 04 20:02:40 Waynes: if you're using the emulator, you will DEFINITELY have performance problems. Sep 04 20:03:13 I have a samsung I9001something and canvas works fine Sep 04 20:05:34 new question: how to disable double buffering of opengl? Sep 04 20:08:58 lov: performance problems? even with GPU accel? Sep 04 20:09:33 I've gotten my physics examples to work quite well in the emulator once the gpu acceleration was enabled Sep 04 20:09:48 (without it indeed was a painful experience) Sep 04 20:13:02 only people asking how to enable double buffering on google but noone asks for turning it off Sep 04 20:13:33 and a few who whine about "opengl responsiveness" as I do but don't even get answers on stackoverflow so I guess it can't be helped Sep 04 20:16:13 hi. what's the best solution for rsyslog remote logging on android? I want to gather log events on a central server. Sep 04 20:17:17 belgianguy: the emulator is very slow, because it's an actual arm emulator instead of a simulator. Sep 04 20:17:24 Even the x86 emulator image was kind of pokey Sep 04 20:17:43 i want a user to be able to take a photo and align it with a previously taken photo. id like to overlay the previous photo transparently over the photo being currently taken. any idea how i would start going about this? Sep 04 20:17:51 oh, I see, didn't know that! Sep 04 20:18:16 hwit: what kind of logs are you trying to collect? Sep 04 20:18:59 Waynes: I really don't know what the issue is to help you with it, sorry. Generally everyone considers the performance of opengl acceptable. Pick up a Nexus 7 if you want a good example of how performant android can be, with properly written apps. Sep 04 20:19:05 ciwolsey: with opengl you can use all kind of blending options Sep 04 20:19:14 lov: I want to send some JSON and have rsyslog write it to logfiles on my server. I want to avoid writing my own server software for that task. Sep 04 20:19:53 lov: as I already said, performance is fine but delay is too high, as in "my internet has many many megabytes but the ping is too high" Sep 04 20:20:10 no simpler way than opengl? i just got started with development so ogl is just gonna soak up even more time Sep 04 20:20:32 Waynes: yes, I get it, your problem is latency not throughput. Sep 04 20:20:51 Waynes: I'm not really sure that I've seen the same problem, at least not with well written apps and decent hardware. Sep 04 20:21:00 then again I'm one of the unwashed masses. Sep 04 20:21:19 the hardware is fine, as I already said, canvas works perfectly with no noticeable latency Sep 04 20:21:40 right, although canvas is really software drawing Sep 04 20:22:42 yes, I thought that might become a problem someday so I wanted to use opengl but it doesn't work good enough (also here is a link to a guy at stackoverflow who has the same problem http://stackoverflow.com/questions/8894003/android-opengl-responsiveness ) Sep 04 20:23:18 hmm. Sep 04 20:23:25 Is it possible that you're having the GC run or something? Sep 04 20:24:37 say, where's canadiancow Sep 04 20:24:43 no, there isn't Sep 04 20:24:46 canadiancow: you use them there opengls dontcha? Sep 04 20:24:52 wat Sep 04 20:24:56 i use an engine Sep 04 20:25:01 oh Sep 04 20:25:01 ive only traversed to "opengl" once or twice Sep 04 20:25:03 becuase im not insane Sep 04 20:25:07 haha Sep 04 20:25:13 and i dont want to go insane Sep 04 20:25:34 opengl on android is quite ....weird...indeed Sep 04 20:25:48 wonder when opengl es 3 will start showing up in devices Sep 04 20:28:03 hello all Sep 04 20:28:17 QubeZ: you have an operating system named after you now :) Sep 04 20:28:22 for values-v11 styles.xml, should I be using @android:style/Theme.Holo.Light or just Theme.Holo? Sep 04 20:28:47 ya but they spell it correctly and thats pretty lame j/k :) Sep 04 20:29:01 hehe Sep 04 20:29:10 I use to be RoundQube but then people thought I was the dev for RoundCube mail... had to change Sep 04 20:30:38 how's it going g00s -- i haven't been around for awhile Sep 04 20:31:27 pretty good :) how is todomapr doing ? Sep 04 20:31:46 not bad, 100 away from first 1,000 downloads and getting great feedback via the website's contact form Sep 04 20:32:17 you collect feedback via form on website? thats good … do you use google analytics in your app also ? Sep 04 20:32:34 still chugging away but now my focus is on the web service so architecting that now with my backend/ws guy. Still got a ton of UI stuff to do but slowly plugging away at it. Sep 04 20:32:39 g00s: I use Flurry Sep 04 20:33:18 im seeing a huge influx of users in Thailand... my wife thinks that some pimp over there is using it to do optimal path for his hookers (i might have mentioned this before) Sep 04 20:33:27 omg Sep 04 20:33:29 hehe Sep 04 20:34:17 still trying to get the app on the map (pun intended)... but no such luck yet. Still relying on word of mouth so far. Sep 04 20:34:50 QubeZ: maybe this will help http://news.ycombinator.com/item?id=4413277 Sep 04 20:35:01 haven't read through all of it myself yet Sep 04 20:35:22 will give it an overview, thanks Sep 04 20:36:27 http://www.theverge.com/2012/9/4/3291249/the-end-of-android-tablets-google-amazon-kindle-fire-microsoft-windows-8 Sep 04 20:39:54 i dont think this will end will for android tablets, but i never did. what i wonder - is to what degree the (lack of) performance in the tablet space will eventually effect the rest of the ecosystem Sep 04 20:39:59 *well Sep 04 20:48:31 g00s: ah, the load of FUD surrounding amazon's announcement is glorious Sep 04 20:49:18 I'm not even sure what the thesis of that article is Sep 04 20:49:26 that Amazon is destroying android by embracing it? Sep 04 20:49:45 i must be a simpleton … but i still don't understand why amazon doesn't just use stock android and put their market on there Sep 04 20:49:48 there's a lot of assumptions (New devices won't be compatible) that don't appear to have evidence. Skinning android is nothing new. Sep 04 20:49:58 g00s: differentiation, same reason you've got touchwiz and motoblur. Sep 04 20:50:19 not to mention that they're trying to sell an amazon device as a portal to amazon services, not just a random piece of hardware preloaded with amazon apps Sep 04 20:50:31 clearly, we should just use Windows 8. Sep 04 20:50:33 clearly. Sep 04 20:50:47 Of course, I am slightly biased. Sep 04 20:50:59 you are? Sep 04 20:51:02 I am! Sep 04 20:51:32 as the article says, amazon wants to compete on ecosystem not OS, not sure how that works practically Sep 04 20:51:34 i have a question.. that is sort of off topic but its related to coding/learning/remembering. am i allowed to ask? Sep 04 20:52:01 ciwolsey: sure, lets have it. Sep 04 20:52:03 lov: in what direction? Sep 04 20:52:07 ciwolsey: ask, if its really that off topic you might be directed elsewhere Sep 04 20:52:09 g00s: take a look at the kindle fire. Sep 04 20:52:26 i've actually never seen one :| Sep 04 20:52:27 it doesn't have the stock launcher; it has a custom launcher that features amazon services and applications Sep 04 20:52:34 ahh, ok Sep 04 20:52:39 the point is to drive the user towards using their own amazon content AND PURCHASING MORE. Sep 04 20:52:59 the user doesn't think of the device as an amazon tablet, they think of it as a Kindle. Sep 04 20:53:07 you know, I still have a $25 Play credit I've not even touched Sep 04 20:53:09 well.. im just trying to learn android development, but theres so much to remember. do you guys take down notes when learning new stuff? and if so.. what is your chosen way to record them? Sep 04 20:53:10 Hodapp: I work for Audible.com, which is owned by Amazon Sep 04 20:53:17 lov: YOU BASTARD Sep 04 20:53:22 :< Sep 04 20:53:25 so basically the launcher itself functions to funnel you into a sales completion cycle Sep 04 20:53:39 sort of. Sep 04 20:53:55 in the same way that amazon is optimized to get you to purchase things, by trying to find things relevant to your interests Sep 04 20:54:33 ciwolsey: I always have a bunch of old paper next to me and a pen to highlight issues/new things Sep 04 20:54:36 ciwolsey: generally bookmarks, but most of my learning is by doing and committing to my (terrible) memory Sep 04 20:54:41 ciwolsey: remember, like what... API stuff? We always reference API stuff we can't remember and go to d.android.com to look up etc... as for development in general, as you get more experience you will just remember things Sep 04 20:54:46 https://plus.google.com/u/0/107183866760258767566/posts/gsbPkumi6bs Sep 04 20:54:50 so lame Sep 04 20:54:51 occasionally I'll write things down if I'm debugging something complicated/tricky Sep 04 20:54:54 but making small examples and saving them to a snippets folder helps as well Sep 04 20:55:08 ciwolsey: for example, if you're really new to an API or language, just start a proeject (small enough for you to tackle and succeed) then from that you'll learn tons Sep 04 20:55:25 well.. my memory is terrible, so i want to make little "how tos".. just the basic stuff like how to send/receive intents, etc Sep 04 20:55:42 ciwolsey: intents are such a fundamental thing that I'd really recommend that you just learn them outright. Sep 04 20:55:53 the fundamentals are also reasonably simple Sep 04 20:56:04 true Sep 04 20:56:06 ciwolsey: try some tutorials that help build your memory... seems like you're trying to bypass your issue Sep 04 20:56:16 * lov shrugs Sep 04 20:56:18 yeah Sep 04 20:56:20 youre right Sep 04 20:56:31 making my memory worse by making it dependent :) Sep 04 20:56:35 the best thing you can do is use the little search bar at the top of d.android.com Sep 04 20:56:42 ciwolsey: you can also try mindmapping Sep 04 20:56:57 Also, make sure you know java Sep 04 20:57:20 thats another problem, i jump from language to language :) Sep 04 20:57:35 just dont write "android.R.attr" and then "." in Eclipse Sep 04 20:57:47 (it'll hang) Sep 04 20:57:53 ya just found that out Sep 04 20:58:06 does that still happen? i thought that was fixed loooong looong ago Sep 04 20:58:15 white is evil. Sep 04 20:58:21 happened twice in a row to me Sep 04 20:58:23 indigo on linux Sep 04 20:58:26 on the topic of Java: Head First Java (2nd Edition) I really liked Sep 04 20:58:57 and in the case of Android: Professional Android 4 Application Development Sep 04 20:59:14 suitable for a beginner to android dev? Sep 04 20:59:23 head first : beginner Sep 04 20:59:34 i also recommend http://shop.oreilly.com/product/0636920010241.do and 'android in practice' Sep 04 20:59:39 and once you've churned through that, the android book will make more sense Sep 04 20:59:47 it takes things slow as well Sep 04 20:59:54 when learning java, look at 'effective java' and 'java concurrency in practice' Sep 04 21:00:56 yeah im going to need something more, because im coming to the end of the basic tutorials on the android site Sep 04 21:01:08 I did those too Sep 04 21:01:16 its unlikely im gonna be going back and learning java from the ground up though Sep 04 21:01:50 ciwolsey: http://docs.oracle.com/javase/tutorial/ Sep 04 21:02:03 see the basics; those cover everything you ought to know, up to things like multithreading and collections Sep 04 21:02:09 and generics Sep 04 21:02:37 ill bm it and use it as reference :) Sep 04 21:03:52 but of the books mentioned which single one would you recommend for someone new to android? Sep 04 21:05:15 hey guys quick question, if i call fragmenttransaction.remove(fragment) on a fragment, but the fragment has already been removed, does anything bad happen or does it just do nothing? Sep 04 21:14:07 ok, as soon as I draw something which is not a line in canvas I get delay, too, so now I know why there are no good paint apps Sep 04 21:15:09 What's wrong with this? http://ideone.com/ki55b I'm getting a force close :/ Sep 04 21:15:17 The two functions are from different activities Sep 04 21:16:21 w33dy: are you getting the correct findViewById for your username and userPassword ? Sep 04 21:16:37 also where it force closes (which line) would be more helpful Sep 04 21:16:47 First error seems to be no reading the stack trace Sep 04 21:16:51 QubeZ: Thanks, lol, it was that. I can't believe I forgot that! Thank you :) Sep 04 21:16:59 s/no/not/ Sep 04 21:39:20 in my android-sdk on ubuntu 10.04, all the files in tools/ are executable but if i execute them i get a "bash: ./emulator: No such file or directory" error Sep 04 21:55:16 reenignEesreveR: Are you in Path? :) Sep 04 21:56:44 ofcourse i am in path Sep 04 21:58:24 im on 64-bit machine while the sdk is 32-bit ... could that be an issue? Sep 04 22:02:31 is their any tutorials on how to make my own settings.apk? Sep 04 22:04:58 Find an apk, rename it to settings.apk Sep 04 22:06:26 im trying to replicate ICS settings for my phone Sep 04 22:06:34 I need to know what layout they use Sep 04 22:06:50 hey, what are you guys using for twitter integration? Sep 04 22:07:02 for facebook, I used the Facebook Android SDK from their github Sep 04 22:07:23 which is nice, because it launches the actual FB app or a webview, depending on whether the user has it installed Sep 04 22:07:32 wondering if there's something similar for twitter Sep 04 22:08:54 you could have a look here https://github.com/lorensiuswlt/AndroidTwitter Sep 04 22:09:28 that uses twitter4j Sep 04 22:11:13 the main screen of settings.apk is that a ListPreference? Sep 04 22:13:50 No Sep 04 22:14:23 That's probably a preferenceactivity or preferencefragment Sep 04 22:14:26 Basically, it's a listview Sep 04 22:24:31 http://pastebin.com/9M3EMV8x Sep 04 22:24:40 here is what my preference.xml looks like Sep 04 22:24:47 I'm still editing it Sep 04 22:26:11 when it says this Sep 04 22:26:26 android:targetClass="com.android.settings.WirelessSettings" Sep 04 22:26:35 does that mean it opens that class? Sep 04 23:01:58 ladies Sep 04 23:04:48 hi could someone explain me why StrictMode.ThreadPolicy.Builder is running fine on android 2.1-4.0 annd not under 4.1 i get a crash without specific error take a look at the code http://eugeneciurana.com/pastebin/pastebin.php?show=45264 Sep 04 23:04:56 is it okay having my Sony Xperia S as much as possible connected to the power supply? Sep 04 23:05:13 elec29a, there are plenty of stricter android polices Sep 04 23:05:22 enforced on newer Android versions Sep 04 23:05:34 such as running network code on main thread (in 2.3 it will warn you, but still execute it) Sep 04 23:05:43 on 4.0 won't even buldge Sep 04 23:05:59 got my system recovery working... wooohooo Sep 04 23:06:08 now to just fix my random ass bluetooth problem Sep 04 23:27:08 Is there any reason not to use AlarmManager in an Activity? I know it's more complex than thread/AsyncTask with SystemClock but I'm thiinking I can reuse it if I ever add a widget or notifications to this REST client app/ Sep 04 23:34:26 hello? Sep 04 23:34:30 cool I think I'm in now Sep 04 23:34:34 I did that, and it worked well for me Sep 04 23:34:54 the advantage of using the alarmmanager is that you won't have to worry about your alarm being killed with your task Sep 04 23:35:22 it will run regardless of your task being alive or not (say someone with a task killer kills your app, a thread would die) Sep 04 23:42:19 does anyone know how to access the window manager for android? What's it called? Sep 04 23:51:08 lethjakman, thats not a concern in my case. I know AlarmManager in Activity can be done, just wondering if it was a bad design decision for some reason I've not thought of. Sep 04 23:51:54 I've not delved into Handler/AlarmManager just yet Sep 05 00:09:26 I would say not, I think it's a little more complicated, but as long as you keep your code clean it's a really good choice. Sep 05 00:10:15 I implemented my first program using one one in less than a day. Sep 05 00:10:19 how do you tag people like you just did? Sep 05 00:11:00 lethjakman, i just used your name, your IRC client hightlighted it for you Sep 05 00:11:41 Off for a bit. Bye. Sep 05 00:12:01 thank you saik0. Sep 05 00:34:28 hey, i have some weird issue here. using ubuntu + android 4.0.4. i had setup my dev environment as usual (eclipse->adt->udev rule->turn on usb-debugging) and everything worked fine and i deployed my app. now after a pc restart, adb won't recognise my phone. adb devices is empty. any ideas? Sep 05 00:37:16 dAnjou: tried doing that again? perhaps a setting somewhere didn't get persisted. Sep 05 00:37:46 tophyr: the udev rule is still there Sep 05 00:38:05 i just restarted the udev service and there it is again Sep 05 00:38:05 hrm Sep 05 00:38:11 well that's all i've got for ya Sep 05 00:38:11 weird Sep 05 00:38:42 thanks though Sep 05 00:45:42 anyone like cmake to build apk? Sep 05 00:47:26 d3x0r: haven't seen many (any) people using that. Eclipse or Ant, generally Sep 05 00:52:15 great, and now the installation of my app times out Sep 05 00:52:36 and my timeout is already at 20000 Sep 05 00:55:56 changed usb port, works Sep 05 00:56:15 android development, Y U SO WEIRD??? Sep 05 01:00:44 JakeWharton: ping Sep 05 01:00:52 wat Sep 05 01:01:10 getting started with robotium/instrumentation, wanted to pick your brain Sep 05 01:01:12 https://gist.github.com/3628684 Sep 05 01:01:41 seems like it's a major PITA to refer to onscreen views. does it have to be that hard? Sep 05 01:03:02 write a helper Sep 05 01:03:24 nothing better tho, huh Sep 05 01:03:53 nah, that's why robotium is an almost useless wrapper Sep 05 01:04:04 what i'd like to be able to do is what i mentioned in the comments - retain black box ideals, but say "find text X, now find Y view immediately in Z direction" Sep 05 01:04:05 they don't provide any of the really useful methods Sep 05 01:04:11 gotcha. Sep 05 01:04:12 and they reference crap by index rather than id Sep 05 01:04:15 <`z> dangit Sep 05 01:04:20 <`z> i keep getting highlighted Sep 05 01:04:30 /nick a-different-nick Sep 05 01:05:22 you should easily be able to write an editText(int id, CharSequence text) helper Sep 05 01:05:28 i looked around and read about that robolectric library you mentioned, seems interesting but not what i'm looking for in terms of functional, does-this-shit-actually-work-outside-dev-environment tests Sep 05 01:06:48 i also actually just googled *you*, and did not previously realize that you work at square, and thus are probably far more intimately familiar with the KIF iOS stuff which i'm trying to get to the same level of, basically Sep 05 01:07:15 well I do Android at Square so I know KIF about as well as you (probably less, actually) Sep 05 01:07:21 gotcha Sep 05 01:08:51 well anyway.. in terms of "hit that, enter this here, then make sure X dialog appears and we navigate to Y activity".. i've found just about the end of the road in terms of robotium's (or other library's) support, and rolling my own is the way forward from there? Sep 05 01:09:38 tophyr: abstract it as a standalone lib Sep 05 01:09:42 it's definitely a needed thing Sep 05 01:10:05 robotium offers a lot but they have questionable choices around their API they expose Sep 05 01:10:34 gotcha, kk Sep 05 01:10:48 yeah they definitely appear to be an improvement over raw Instrumentation Sep 05 01:10:57 but KIF i think has spoiled me Sep 05 01:11:48 what does KIF stand for? Sep 05 01:11:54 i'll make an Android version and make it even better! Sep 05 01:12:02 https://github.com/square/KIF Sep 05 01:12:12 haha well you and i can team up then cuz i have a feeling this is gonna bug the shit outta me Sep 05 01:14:08 quick steps to click a switch, then make sure one view disappears and one shows up: https://gist.github.com/3628791 Sep 05 01:14:50 it's in obj-c, which may be hard to read if you're not familiar, but the nice part about that code is that it doesn't have to know any internal IDs but still doesn't rely on indices or specific locations on the screen Sep 05 01:18:17 cool, i'll take a look tonight Sep 05 01:18:27 the android testing space is ripe for helpers Sep 05 01:18:38 we actually have a really amazing internal tool that i'm working on open sourcing around testing Sep 05 01:21:03 well i'd love to help, i'm right in the middle of this for our project, might as well knock out two birds with one stone Sep 05 01:22:29 JakeWharton: hello, remember how I was trying to setup tabs and viewpager with ABS 4.1? I was wondering if you have ever seen this error before: http://pastebin.com/UUgYBFwh - when I switch apps, and my abs based app tries to pause, it crashes somewhere deep down in the guts of things Sep 05 01:22:45 strangely it doesn't happen when you press the back button (when not switching apps) Sep 05 01:23:05 I can post my source code if you like Sep 05 01:23:15 I am sure it could just be me doing something stupid... Sep 05 01:24:41 anyone here own a Invicta watch? Sep 05 01:26:06 This is the code for my activity - mainly I am wondering about mixing and matching the support.v4 classes http://pastebin.com/r2nzL9pc Sep 05 01:27:43 i don't' see any ABS in that stack trace Sep 05 01:27:45 what's the question? Sep 05 01:28:02 that's probably a fragments+viewpager interaction problem Sep 05 01:28:34 I'm not trying to blame ABS, sorry, just wondering if you had seen this before Sep 05 01:28:39 I will try the same thing without abs Sep 05 01:30:13 sorry i'm extremely busy right now Sep 05 01:30:18 that's ok Sep 05 01:30:20 it doesn't jump out as something i've seen Sep 05 01:30:30 Does a content provider id have to be an int? Sep 05 01:30:53 wait, maybe it does Sep 05 01:31:08 what version of the support library are you using? Sep 05 01:31:38 v10 I think Sep 05 01:31:54 no v4 Sep 05 01:32:08 nvm I guess it is suppose to be a long Sep 05 01:32:11 revision 10 Sep 05 01:32:48 then it's not what I would have thought it would be Sep 05 01:32:52 ok Sep 05 01:32:59 what happens on that line that it's NPE-ing? Sep 05 01:33:11 it's not in my code Sep 05 01:33:17 afaik Sep 05 01:33:28 I have no code running in onpause Sep 05 01:33:41 unless it is getting a NP back from by pageradapter Sep 05 01:33:56 but surely it would throw an indexoutofbounds exception Sep 05 01:35:01 testing Sep 05 01:36:04 no it doesn't call my code before crashing Sep 05 01:36:48 what happens in FragmentManager though? Sep 05 01:38:20 JakeWharton: I am not sure - I didn't write it. Sorry, am I being dense? Should I go look at the google source code? I've never done that before. Sep 05 01:38:33 yeah Sep 05 01:38:37 T-Dub dont do it Sep 05 01:38:41 it'll help you diagnose what the problem is Sep 05 01:38:47 Why not ron_frown Sep 05 01:38:47 their movements are extremely inadequate Sep 05 01:38:48 ok thanks I'll do that Sep 05 01:39:04 you can find the code in an easy-to-browse fashion on https://github.com/android/platform_frameworks_support Sep 05 01:39:05 I had 2 russian divers and a nice steel one Sep 05 01:39:18 Aw crap a russian diver is what I'm looking at now Sep 05 01:39:21 pulled it apart to swap batteries and the movement looked worse than what you'd find in a swatch Sep 05 01:39:39 its about a dime in diameter, and just floating in the russian diver case Sep 05 01:39:45 This one is hand wound though Sep 05 01:39:52 russian divers are fucking HUGE Sep 05 01:39:56 60mm or something Sep 05 01:40:04 it says 47mm Sep 05 01:40:09 that aint TOO bad Sep 05 01:40:13 got a pic Sep 05 01:40:15 Case Diameter 47mm Sep 05 01:40:18 T-Dub: you lookin at that woot one? Sep 05 01:40:21 http://www.woot.com/offers/invicta-russian-diver-skeleton-watch Sep 05 01:40:25 haha yeah tophyr Sep 05 01:40:33 i almost pulled the trigger on the black/rose-gold-inside one Sep 05 01:40:40 thats not the same model Sep 05 01:40:42 reviews on woot don't seem to be very good, but the ones on amazon are good Sep 05 01:40:43 ended up not cuz i just bought a woot watch the other week Sep 05 01:40:45 definitely better movement already Sep 05 01:41:02 I'm thinking it's way to big for me though Sep 05 01:41:04 My wrist is small Sep 05 01:41:09 I can tell you invicta watches NEVER go for what their msrp is tho Sep 05 01:41:18 yeah everyone is saying that Sep 05 01:41:21 idc about that though Sep 05 01:41:22 I bet they never sold one of htose more thna 300 bucks Sep 05 01:41:35 still, 300 vs 90 Sep 05 01:41:36 everywhere else is selling for about 150, so still a decent deal Sep 05 01:41:57 tophyr: I got a pretty good idea on how to do this really easily Sep 05 01:42:00 not trying to distract you, but the russian divers are on sale at marshals, tjmax, ross etc ALL THE TIME Sep 05 01:42:20 for about $100? Sep 05 01:42:23 or less Sep 05 01:42:24 JakeWharton: word Sep 05 01:42:42 I've got some nice breitlings I spent way too mcuh on Sep 05 01:42:52 but I'd like to get a panerai pam Sep 05 01:43:14 1-2k not shabby, 15k? too much =) Sep 05 01:43:18 I've never worn a watch Sep 05 01:43:31 But wanted a nice one for special occasions Sep 05 01:43:49 that one is probably not bad Sep 05 01:43:49 90 bucks didn't seem like a bad start Sep 05 01:43:53 ron_frown: first watch i ever bought was a moroccan $10 special that i simply thought was cool Sep 05 01:43:55 with that movement I consider myself Sep 05 01:43:55 and i love the way it looks Sep 05 01:44:06 later i showed up to be a mechanic at a race i was helping a friend at Sep 05 01:44:11 but the size is concerning Sep 05 01:44:19 the chief mech on the team took one look at my watch and nearly bugged his eyes out Sep 05 01:44:26 tdub you got a costco near you? Sep 05 01:44:28 turns out it was a replica of some $30k watch i'd never heard of Sep 05 01:44:30 yeah Sep 05 01:44:39 haha nice tophyr Sep 05 01:44:40 they sell the russian dirvers, go check one out in person Sep 05 01:44:49 hmm Sep 05 01:44:51 for size et Sep 05 01:45:10 ron_frown: well the trick with this is, that particular watch he's looking at will be on sale for exactly 4.5 more hours Sep 05 01:45:19 then gone until the woot gods have more to sell Sep 05 01:45:38 4.25, rather Sep 05 01:47:18 im using your advice ron_frown Sep 05 01:47:27 going to costco right now Sep 05 01:47:28 bbl Sep 05 01:47:34 thanks Sep 05 02:02:18 I have a linear layout with a linear and frame layout in them ordered respectively. how come if the framelayout is first the linear one never shows? Sep 05 02:02:30 its like if i put the frame layout first it hogs all the space Sep 05 02:02:54 because of the size you gave it Sep 05 02:03:02 guys I am trying to build the v4 support library myself (so I can put breakpoints in it - correct me if there is an easier way) - am I right in assuming that since it is support-v4 library then it should build against android sdk v4? Sep 05 02:03:09 or level 4 Sep 05 02:03:38 how can i alter its size? Sep 05 02:04:15 briswolf: you can just attach sources to the .jar Sep 05 02:04:38 you might need to do some rearranging to consolidate them to a single src/ directory Sep 05 02:04:42 JakeWharton: when the jar is in the libs folder I seemingly can't, so I moved it and did attach the sources Sep 05 02:04:51 but can I then put breakpoints in them? Sep 05 02:05:10 the NPE line in the error log doesn't seem to match up to anything that would NPE in my source, unless I am being more stupid again Sep 05 02:05:22 well the line numbers from the git repo might not line up Sep 05 02:05:48 im getting numbers from my local HDD in the android-sdk extra dir Sep 05 02:05:50 nobody saw fit (nor sees fit) to tag the support repo with proper tags to correspond to the released revisions Sep 05 02:05:57 ah, ok Sep 05 02:06:13 I've not looked inside the android sources before so yeah, I have nfi if I am doing it right Sep 05 02:06:35 the line which supposedly NPEs is assigning one local variable to an ivar Sep 05 02:06:47 so it must be off by 1 or 2 lines Sep 05 02:06:50 well if you got them from your SDK/extras/support/v4/src dir you should be alright Sep 05 02:07:19 can I put a breakpoint in the saveFragmentBasicState function? why doesn't the debugger catch the exception there Sep 05 02:07:36 the debugger only catches the exception from the zygote type code Sep 05 02:08:26 not sure, I use Maven so I get source jars for free Sep 05 02:09:02 yeah, but even when you attach code, can you place a breakpoint in that attached code? Sep 05 02:09:09 that doesn't make much sense so I think not Sep 05 02:09:32 as long as it's not in android code I can Sep 05 02:10:19 what IDE do you use (since you hate eclipse) Sep 05 02:10:25 IntelliJ IDEA Sep 05 02:10:34 ok Sep 05 02:11:06 well I have nfi what I am doing unfortunately. I will go and write this code without ABS and see if it still crashes Sep 05 02:12:01 any easy way to get the customview in an actionbar (the one set via setCustomView) to the left of the navigation tabs if the navigation tabs are showing in the top part? Sep 05 02:12:43 wabz: no Sep 05 02:12:56 custom nav is always to the right of built-in nav Sep 05 02:13:21 you could include your own tab navigation as part of your custom nav Sep 05 02:13:29 but that gets messy and i highly recommend you don't :) Sep 05 02:13:41 yeah, that sounds hard :D Sep 05 02:14:04 plus it doesn't react to various display configurations like the built-in tabs do Sep 05 02:14:09 or, at least not automatically Sep 05 02:14:50 the issue is that if you use customview as secondary navigation, it appears above the tabs if the screen isn't wide enough for the tabs to be in the same row Sep 05 02:15:21 correct, when the screen is less than w480dp the tabs go into stacked navigation Sep 05 02:15:24 which is fine - it all work, but the UI breaks the feeling of primary/secondary Sep 05 02:15:50 makes sense Sep 05 02:29:29 JakeWharton: this looks like my error: http://code.google.com/p/android/issues/detail?id=19917 Sep 05 02:29:51 the title says "no adapter set" but the comments say otherwise. Anyway, I will try to work around Sep 05 02:30:04 sorry to waste your time, thanks for the help Sep 05 02:37:23 ok nope, still confused. Can anybody tell me what a FragmentActivity is for? is this useful ONLY when the layout for the activity has a tag in it? Sep 05 02:37:51 if my layout has only a viewpager, should the activity be a normal activity and not a FragmentActivity? Sep 05 02:40:43 I suspect that my fragments aren't being added to my fragment manager Sep 05 02:40:56 anybody know how this usually happens when you are using a viewpager? **** ENDING LOGGING AT Wed Sep 05 02:59:59 2012