**** BEGIN LOGGING AT Thu Jan 17 03:00:00 2013 Jan 17 03:14:57 hello all Jan 17 03:15:58 what's a good app to look at for ideas on properly implemented ActionBar? I have an activity with a few, maybe too many options which I may or may not simplify but Im curious how others have done it. Jan 17 03:16:45 actionbarsherlock Jan 17 03:18:27 yea i guess the demo's would work, thanks Jan 17 03:19:05 is there any way to turn on usb debugging if the screen tapping doesn't work? buddy broke his phone and I can't recall a way to turn it on without being able to go through the menu Jan 17 03:59:28 QubeZ, MAYBE you could flash a third party image that has it enabled already? dunno Jan 17 03:59:38 and for ideas of what to do for an actionbar, check out the official google apps Jan 17 03:59:55 thanks Jan 17 04:10:00 hello. :-) Jan 17 04:12:06 I'm having trouble reading files as the root user. Any ideas of how I can overcome this obstacle? Jan 17 04:13:01 I'm trying to write an RSS reader for a class project (I'm not asking anyone to do my homework), but you guys know how RSS results are limited to 20 items? Is there any way to increase this limit, or to view the NEXT 20 items? Jan 17 04:30:16 oi oi oi Jan 17 04:31:19 aussie aussie aussie Jan 17 04:32:20 anyone been driving the zamboni? Jan 17 04:33:57 yes Jan 17 04:39:06 i just installed svn on a new ubuntu vm Jan 17 04:39:12 when the only thing i need to check out is on github Jan 17 04:45:50 haha Jan 17 04:52:00 trying to learn the basics of using the google maps api, but the fragment is failing to inflate properly. I suspect it's an issue with project setup, but would someone mind looking at my pastebin of the log for some tips? http://pastebin.com/AXavN04b Jan 17 04:55:01 ive learned this is not a good channel for asking developer questions Jan 17 04:55:11 go to stackoverflow Jan 17 04:55:20 these people arent much help Jan 17 04:56:58 Sloofus: Is the maps support stuff in your project? Did you compile the maps fragment lib? Jan 17 04:57:28 Sloofus: (you need to make a project from the google play services source and build it as a library in eclipse, not just link the jar in the directory) Jan 17 05:00:42 canadiancow: do you use ec2? Jan 17 05:02:42 dragorn: thanks! ill give that a try here shortly. Im actually on intellij idea but same thing, right? Jan 17 05:02:56 is there a way to prevent FragmentManager from reinstantiating fragments after a process kill? Jan 17 05:03:17 (these fragments are created by a ViewPager Adapter on the activity) Jan 17 05:10:08 Sloofus: yeah; you don't just link the jar, you need to compile the lib and link it that way. It's non-intuitive. Jan 17 05:12:42 searchManager.getSearchableInfo(getComponentName()); always return null, but I have searchable.xml, where to debug? Jan 17 05:14:56 i have a translucent activity hosting a fragment that embeds a v2.0 google maps fragment in itself, but when it does, it does not draw the fragment's background and you can see through the activity to the activity below it for a brief second. any idea how to prevent this? Jan 17 05:30:50 * Onixs Bye! Jan 17 05:51:23 i might have to make a vm just to install inkscape, that piece of shit Jan 17 05:51:37 hahaha Jan 17 05:52:10 is it bad when I hear about a coworker releasing an app in the appstore and I wonder how much of the code was code I wrote, for the company Jan 17 05:52:41 i dont understand what they are doing; its as if they were doing everything on mainline and the mac stuff wasnt done but they decided to release Jan 17 05:52:56 so they just say "mac people, don't use it" Jan 17 05:53:08 Hey, any of you want to be on my list of "if you're looking for a contractor, try him"? Jan 17 05:53:17 well, not entirely true - i guess i could use the macports version Jan 17 05:53:19 (or her, I suppose) Jan 17 05:56:25 jeez, don't all sign up at once. Jan 17 05:58:22 you know it is 1 in the morning Jan 17 05:58:51 i'm not sure if i'm doing much more android work beside maintaining my (mostly) dead app. not sure what the hell i'm doing next Gambit- Jan 17 05:59:05 only 10 here, hip2p Jan 17 05:59:20 well Gambit-, Eastern Time is the "correct" time. ;) Jan 17 05:59:24 uh huh :) Jan 17 05:59:36 g00s, yeah, I just get /so many/ people coming to me looking to hire or recruit developers Jan 17 05:59:43 I get /no developers/ with that problem, though. Jan 17 05:59:45 Gambit- I do too Jan 17 05:59:45 kinda funny, really. Jan 17 05:59:55 I just tell them to try craigslist and to leave me alone basically Jan 17 06:00:04 hip2p, I run the seattle android developers meetup group, so it's not very surprising :) Jan 17 06:00:11 ah I see Jan 17 06:00:14 craigslist? really? You can recruit developers there? :) Jan 17 06:00:18 Gambit-: how is that going ? Jan 17 06:00:28 g00s, oh, well! Starved for content, as usual. Jan 17 06:00:31 well, the people who ask me live in NYC, where there may be a lot of craigslist activity Jan 17 06:00:55 Gambit-: i would think up in seattle there would be android devs falling out of the trees Jan 17 06:00:59 yeah Jan 17 06:01:05 Seattle seems like prime app dev country Jan 17 06:01:30 every time LinkedIn says there might be a job i'm interested in, its seattle or SF Jan 17 06:01:37 (because of android) Jan 17 06:02:20 g00s, well, sure, but they all have jobs already :) Jan 17 06:02:43 Gambit-: what have you been up to these days ? Jan 17 06:02:56 (development wise - still doing security research? ) Jan 17 06:03:07 finish your build system ? Jan 17 06:03:20 nope, that stalled because I couldn't get anyone else to be interested :/ Jan 17 06:03:28 Working on a Property Management Web Application Jan 17 06:03:38 got a couple people working for me on that, actually. Jan 17 06:05:09 Giving away mobile jobs? Anything involving financial systems? Jan 17 06:05:42 Only for my property management application, and not yet :) Why, is that what you do? Jan 17 06:06:20 Applications dev ... financial systems, mostly banking and transaction processing, some insurance Jan 17 06:06:30 does anyone feel like helping me tackle a fragments, translucent, maps v2.0 library issue? Jan 17 06:06:55 capella, I'll probably need a mobile application for my property management application, but not for 6+ months. Jan 17 06:07:34 meh - I can wait ... I've been working with Firefox for free for a year Jan 17 06:08:30 (though first c months was C++ in accessibility / desktop) Jan 17 06:08:39 s/c/6/ Jan 17 06:09:16 d0lph1nk1ng: translucent activities are kind of a pain and fragile. do you really need it to be translucent ? Jan 17 06:10:09 Working with firefox for free? Like, developing on the browser for free? Jan 17 06:10:42 Yes- 6 months C++ in a11y... last 6 months in mobile firefox "Fennec" Jan 17 06:11:19 kevinb, i have realized the fragility =). i am very close, except that its more of a google maps v2 library issue. since it is opengl-based, when it is loading, i briefly see the activity under it (if it were not translucent, i'd see just a black screen) Jan 17 06:11:23 why would you spend time working on that? :) Jan 17 06:11:57 Chicks dig it :P Jan 17 06:12:59 d0lph1nk1ng: you could try set the window background to black while loading the map, but 1) it defeats the purpose of a translucent activity and 2) it might not even work, i've played with opaque background translucent activities and sometimes their background gets removed anyway during animations Jan 17 06:13:43 And Google is our biggest supporter so fits nicely with mobile Jan 17 06:14:55 i've tried setting a million different view backgrounds, none work. also, the windowTranslucent=true, windowBackground=black still shows the activity underneath. i've also tried layering different fragments, but its like the OpenGL takes control of the whole activity's window n uses the activity underneath for the bg Jan 17 06:16:45 kevinb, but thx for the suggestion Jan 17 06:20:03 capella: maybe you know why Ff scrolling via gestures on mac for d.android.com is totally busted :P Jan 17 06:20:44 Umm .. I can find out ... asof the latest nightly? Or in general? Jan 17 06:20:53 10.0 Jan 17 06:20:55 *18.0 Jan 17 06:21:23 Last release ... lemme check bugzilla Jan 17 06:21:26 so if i go here in FF http://developer.android.com/reference/packages.html Jan 17 06:21:42 * capella listens Jan 17 06:21:58 and then put the mouse say, in the package list, then use a gesture on the pad to scroll, Jan 17 06:22:04 FF goes nuts. its hard to describe Jan 17 06:22:09 all the frames start scrolling Jan 17 06:22:09 * Onixs ["Textual IRC Client: http://www.textualapp.com/"] Jan 17 06:22:36 so i have to browse d.android.com w chrome for now Jan 17 06:22:54 safari and chrome are fine Jan 17 06:23:42 maybe i'll file a bug, do they have an irc channel ? Jan 17 06:24:26 Oh desktop FF not mobile/Fennec Jan 17 06:24:28 yah, many ! Jan 17 06:24:30 hmmm whats most appropriate .... Jan 17 06:24:40 yeah, desktop Jan 17 06:25:54 irc.mozilla.org.... Jan 17 06:25:56 #developers at this time of night will get you to the right place fast ... Jan 17 06:25:58 or bugzilla Jan 17 06:26:00 https://bugzilla.mozilla.org/query.cgi Jan 17 06:26:06 cool, thanks Jan 17 06:26:12 >) Jan 17 06:26:22 Whats that thing called where you scroll down, and it appears on the scrollbar that you can grab and scroll with that instead of flicking? Jan 17 06:27:18 hah that's a good question supercheetah Jan 17 06:27:21 er, superfluous Jan 17 06:27:26 the slider, perhaps? Jan 17 06:27:46 ah, im pretty sure thats it! Jan 17 06:27:58 thanks. Its tough to google when i dont know my words :( Jan 17 06:27:58 * Gambit- is smert Jan 17 06:28:03 seriously! Jan 17 06:28:06 thumb Jan 17 06:28:07 that'd be a hard one to trace down Jan 17 06:28:35 thumb tab, actually Jan 17 06:28:47 that might be true too, g00s Jan 17 06:29:04 there is a drawable for it Jan 17 06:29:04 android:scrollbarThumbVertical Jan 17 06:29:12 There you go, then! Jan 17 06:29:17 ah yes, so it is thumb Jan 17 06:29:18 thanks Jan 17 06:29:49 from SO : addandroid:fastScrollEnabled="true" to your list view Jan 17 06:30:10 yep, easy as that :) Jan 17 06:31:19 how strict are you guys when it comes to warnings? Jan 17 06:31:33 in particular..internationalization and using sp instead of dip/dp? Jan 17 06:33:08 "2012, Verizon blocked all access to irc.mozilla.org over cellular connections. Any connection attempts now get a 504 Gateway Timeout " <-- bastards ! Jan 17 06:34:41 ACTION  Jan 17 06:39:56 ??? Jan 17 06:40:38 I get there on my .... oh ... Verizon ... I'm Sprint Jan 17 06:45:03 ACTION  Jan 17 06:47:03 https://bugzilla.mozilla.org/show_bug.cgi?id=829952 Jan 17 06:47:30 i have a relativelayout with an imageview anda textview. I would like to overlap the textview onto the imageview. I'm using http://pastebin.com/fQg0ufR2 for the textview. My text never shows up. Why is this? Jan 17 06:48:08 capella: yeah, it is jankier in FF compared to chrome / safari; but thats more a subjective thing Jan 17 06:48:14 (thanks for looking it up though) Jan 17 06:48:39 hmm actually apparently it IS there...nm thanks. gotta find a different bug Jan 17 06:49:04 longer list |scroll touchpad frame| Jan 17 06:49:06 https://bugzilla.mozilla.org/buglist.cgi?list_id=5411520;short_desc=touchpad%20scroll%20frame;classification=Client%20Software;query_format=advanced;bug_status=UNCONFIRMED;bug_status=NEW;bug_status=READY;bug_status=ASSIGNED;short_desc_type=anywordssubstr;product=Firefox Jan 17 06:49:41 Yah ... that and #developers ... best bet once you get in via desktop or something Jan 17 06:50:08 thanks capella Jan 17 06:50:35 Or file a bug and wait for reply - that wont hurt Jan 17 06:50:36 https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox Jan 17 06:50:40 sure Jan 17 07:04:24 hello Jan 17 07:04:57 my question is that can i develop android apps in complete c??? Jan 17 07:05:37 the answer is yes, but you really (most often) don't want to Jan 17 07:05:50 plzz explain why?? Jan 17 07:05:57 if you want to use c just because you want to use c, then don't Jan 17 07:06:31 i dont get that... Jan 17 07:06:40 hehehe ... can we use COBOL? Jan 17 07:07:25 do c language apps will not run?? Jan 17 07:07:34 on a android machine?? Jan 17 07:07:52 I should've just answered no Jan 17 07:08:26 seems like i dont have a option than to learn java Jan 17 07:08:27 because you really don't want to unless it's absolutely necessary for performance issues *or* there's already a huge codebase that you can use Jan 17 07:08:28 :( Jan 17 07:08:46 http://www.zdnet.com/blog/burnette/program-for-android-in-cc-with-the-native-development-kit-if-you-dare/1284 Jan 17 07:08:48 you can't really build android UIs from C very easily at least Jan 17 07:09:14 but .... no Jan 17 07:09:16 ok,plzzz tell what is a good beginners book to learn java?? Jan 17 07:10:15 doesn't google know? Jan 17 07:11:19 yeah,i done that....all it has is "thinking in java" Jan 17 07:11:28 and "effective java" Jan 17 07:11:45 but 1st is very lengthy and demotivating Jan 17 07:11:48 hmmm ... it told me this http://www.google.com/search?hl=en&safe=off&tbo=d&complete=0&site=webhp&source=hp&q=good+introduction+to+java&oq=good+introduction+to+java&gs_l=hp.3...2553.8298.0.8444.0.0.0.0.0.0.0.0..0.0.les%3B..0.0...1c.1.VkDb9R4Qpas Jan 17 07:13:57 i would try the Oracle Tuts, if those aren't sufficient ... Jan 17 07:14:50 last enquiry...any have a link to download "java:a beginners guide,5 th edition"??,on good either 3rd edition is given or 4th Jan 17 07:15:33 *google* Jan 17 07:15:56 please wait 45 seconds Jan 17 07:17:01 u mean,rapidshare Jan 17 07:17:06 already tried Jan 17 07:17:31 ok,thnxxx Jan 17 07:18:01 iam not gonna find the link here Jan 17 07:18:08 huh, Sedgewick did a Java book :| Jan 17 07:18:21 thnxx btw for the help Jan 17 07:18:21 all I can say is: avoid the Dietel books Jan 17 07:18:59 hmmm... Jan 17 07:19:14 u learned from which book? Jan 17 07:19:23 $117.31 !!! Jan 17 07:19:29 actually, i learned from a book called Core Java Jan 17 07:19:44 that was some time ago Jan 17 07:20:05 i like to find books like the K&R when learning a language Jan 17 07:20:16 concise, no fluff, war stories, etc Jan 17 07:20:39 g00s: why avoid deitel? Jan 17 07:20:46 g00s: sometimes war stories are good :) Jan 17 07:21:01 (the ur-example, IMO, being Algorithm Design Manual) Jan 17 07:21:02 isn't there "K&R for c" standard book for java?? Jan 17 07:21:26 zoro202389: no, unless you count javadoc + spec documents Jan 17 07:21:27 how can i determine if any activities of may app are visible so i can know if i should suspend a global resource ? Jan 17 07:21:39 which would be equivalent to learning C by reading ISO C standard Jan 17 07:21:40 p_l: yeah, for other topics, sure. for languages, i just want something like K&R, C++ ARM, etc Jan 17 07:21:50 i don't want to use onstart and onstop and maintain a count, somethign might crash Jan 17 07:22:30 k0nichiwa: well... It seems to me you're doing something wrong, but I don't have enough detail Jan 17 07:22:41 zoro202389: try the Oracle Tutorials first. Then try either (Head First Java , Core Java, Thinking in Java) and move on to Effective Java 2e and then Java concurrency in Practice Jan 17 07:22:43 usually for global resources shared between activities, I go for Service Jan 17 07:22:48 there should be a all in one book for java like k&R Jan 17 07:22:50 hehe Jan 17 07:22:52 which handles such stuff automaticaly Jan 17 07:23:08 well how would a service determine if any activities are using it Jan 17 07:23:22 an activity could crash and fail to deliver a release invocation Jan 17 07:23:26 k0nichiwa: it's done for you by framework Jan 17 07:23:36 what is done for you ? Jan 17 07:23:40 including GC'ing it Jan 17 07:23:51 what ? what i s done for you ? Jan 17 07:24:12 k0nichiwa: releasing the resource >_> Jan 17 07:24:13 does the manifest have info that an activity usees a service ? Jan 17 07:24:21 no, and it doesn't need one Jan 17 07:24:35 well i could set up a weak reference Jan 17 07:24:49 that is bound by all activities, when it gets killed i know Jan 17 07:25:11 that seems like a good way to do it Jan 17 07:25:23 how do you tell if a weak ref gets nuked, ugh Jan 17 07:28:51 one of those areas thats unnecessarily complicated in android; the whole notion seems dubious going forward; seems like Ubuntu Phone apps and BB10 apps are just what you would expect on a desktop, no UI / service dichotomy Jan 17 07:29:17 g00s I think there is a method to the madness tho Jan 17 07:29:28 yeah, on those others you can just do crap like you're used to ;) Jan 17 07:29:30 :/ how do i refresh just like 1 or a few views in a gridview instead of notifying the dataset has changed? Jan 17 07:30:13 why is lint not more intellegent, I have a custom object that has setDimension, and for my purposes can get a dimension resource, lint seems to think my custom objects should never setDimension this way... the object is not a subclass of anything... is there any way to turn this off on custom things? rather than disable the whole check ? Jan 17 07:30:18 hm... java book.. I think the only one I ever read was effective java... Jan 17 07:30:31 Zharf: thats a good book :) Jan 17 07:31:46 k0nichiwa: btw, if you activity *crashes*, the whole process gets killed, so you probably won't have issues with it :) Jan 17 07:32:04 when you look at how seamless android can let you be... as far as having intents and activities and the fact the activies can for all intent and purposes be a part of your application Jan 17 07:32:08 I think there is a reason Jan 17 07:32:33 I do agree that google could have done a better job wrapping all that shit up into a nice pretty package Jan 17 07:33:31 g00s, it is Jan 17 07:33:38 but now thats kinda the name of the game thus far with google and android Jan 17 07:33:47 lots of great ideas, lots of ways to shoot yourself in the foot Jan 17 07:33:50 almost as much as c++ Jan 17 07:33:51 ron_frown: well, I think it's partly the fault of being "Java EE" of mobile Jan 17 07:33:52 g00s, but I guess it'snot really an introductory book to java Jan 17 07:34:01 but java doesn't need one, imo Jan 17 07:34:03 it's just so simple Jan 17 07:34:10 ron_frown: as time goes on and everyday computing power converges into a phablet form factor; all these weird things android did because of memory limitations years ago just become baggage Jan 17 07:34:21 ron_frown: and unfortunately binding it to Java doesn't help due to required explicit code Jan 17 07:34:30 g00s: the thing is, it's not about memory, IMO Jan 17 07:34:43 its native->java and vice versa Jan 17 07:34:54 and having overlapping memory spaces etc Jan 17 07:35:01 I mean how would you do it differently lol Jan 17 07:35:05 windows you'd build a service Jan 17 07:35:19 then you'd use dropboxes, or wcf, or tcp to communicate to it Jan 17 07:35:31 ron_frown: or write crappy app that is mysteriously hanging all the time when something takes a bit longer ;) Jan 17 07:36:05 yeah Jan 17 07:36:09 g00s: actually the design of android reminds me of asynchronicity-oriented construction, instead of "eh, let's wing it in event loop" Jan 17 07:36:17 dont even get me started on the saync shit in android/java Jan 17 07:36:23 async Jan 17 07:36:33 ron_frown: I mean in the scope of whole OS Jan 17 07:36:49 you get multiple components that can be reused and integrated between applications etc. Jan 17 07:37:17 with Ubuntu Phone it will be probably crap-bus that did such heavy damage to linux Jan 17 07:37:49 did such heavy damage? Jan 17 07:37:53 dbus ? Jan 17 07:38:14 if they can use clutter or wayland or something I think they may have something Jan 17 07:38:19 honestly I dont know how meego failed =) Jan 17 07:38:20 haha Jan 17 07:38:28 apple is a diff storey sure Jan 17 07:38:46 but you look at how much LESS hp a device required in ios la la land Jan 17 07:38:49 native is nice Jan 17 07:38:57 c++ is just rough Jan 17 07:39:03 g00s: yes, dbus. Badly integrated, badly documented bus ;) Jan 17 07:39:16 its undoubtedly using that Jan 17 07:39:17 my god eclipse is so slow Jan 17 07:39:28 k0nichiwa: try IntelliJ IDEA Jan 17 07:39:43 intelliJ++ Jan 17 07:40:07 yeah i should at some point Jan 17 07:40:16 like 100 people +'d my g+ post about why the FUCK doesnt google work with intellij vs eclipse Jan 17 07:40:28 because hnestly it is that night and day difference Jan 17 07:40:35 100 people I never talked to Jan 17 07:40:58 ron_frown: it might be because of licensing Jan 17 07:41:11 they are completely open source now with a platform dev kit Jan 17 07:41:22 you could pick up the framework and build a c++ ide and SELL it Jan 17 07:41:23 and be fine Jan 17 07:41:36 http://ak1.ostkcdn.com/images/products/3/L11450801.jpg Jan 17 07:41:38 thats eclipse Jan 17 07:41:42 a million and one uses Jan 17 07:41:46 non of them are any good Jan 17 07:41:56 it can do MANY MANY things Jan 17 07:41:57 none well Jan 17 07:42:30 u mean intellij isn't written in J ? Jan 17 07:42:37 ron_frown: we postponed out Eclipse vs IntelliJ debate yesterday because you weren't here Jan 17 07:42:47 we decided to go for hungarian notation on OO languages Jan 17 07:42:50 HAHAHAH Jan 17 07:42:52 k0nichiwa: it is, but you can make IDE for any language in any language Jan 17 07:43:00 k0nichiwa - it is, but its MUCH better code =) Jan 17 07:43:01 haha Jan 17 07:43:04 well they said it's so fast Jan 17 07:43:10 it is Jan 17 07:43:14 g00s: systems hungarian or apps hungarian? Jan 17 07:43:28 open source apps sometimes tend to die out Jan 17 07:43:37 after the original gropu who were excited about the project move on Jan 17 07:43:37 p_l: i dunno :| the m_ hungarian :) Jan 17 07:43:51 k0nichiwa: IDEA is commercial product that happens to be opensource Jan 17 07:44:05 yeah i kno w i was talking about eclipse Jan 17 07:44:11 eclipse ... won't die Jan 17 07:44:16 lots of people founded their apps on eclipse Jan 17 07:44:16 oh, 12.0.2 is out Jan 17 07:44:21 it's like cancer with unlimited feeding Jan 17 07:44:23 its getting a little buggy Jan 17 07:44:25 HAHAHAH Jan 17 07:44:45 intellij still uses googles visual renderers/preview Jan 17 07:44:58 I honestly don't know how IDEA can kick the shit so much out of Eclipse in terms of speed Jan 17 07:45:00 but seems to do a lot better job in general with java shit Jan 17 07:45:13 p_l you mean based on your observations, or saying we're full of shit Jan 17 07:45:16 maybe they use jni p_l Jan 17 07:45:17 i wish antlrworks wasn't in netbeans :| Jan 17 07:45:25 they might be using native maps for critical things etc Jan 17 07:45:30 ron_frown: based on observation Jan 17 07:45:36 netbeans has impressed me a lot more lately too Jan 17 07:45:36 * g00s wonders if there is an antlr plugin for intellij Jan 17 07:45:40 I use it for html5 projects Jan 17 07:45:42 ron_frown: my first reaction was "holy fuck, is that really java?" Jan 17 07:45:47 hahah Jan 17 07:45:51 god damn russians dude Jan 17 07:46:19 it's the vodka, it clears your mind Jan 17 07:46:29 vodka clears out all the toxins sos you think clearly Jan 17 07:46:37 k0nichiwa: there are ... 2 native libs in my IntelliJ install (both in two versions, x86 and amd64) Jan 17 07:46:38 completely unrelated and offtopic Jan 17 07:46:39 but Jan 17 07:46:40 http://imageshack.us/a/img688/4849/img20130113194043.jpg Jan 17 07:46:41 mmmmmmm Jan 17 07:46:43 * ron_frown pets. Jan 17 07:47:13 i just sold my bike :( Jan 17 07:47:19 but it's no good in the snow Jan 17 07:47:21 :) Jan 17 07:47:24 you ride the one all the way in the back right ? :D Jan 17 07:47:36 haha no I'm selling that one to a cowoker Jan 17 07:47:47 last time I rode that one I smelled like gas after numerous showers Jan 17 07:47:48 haha Jan 17 07:49:07 if a java object is eligible for GC how long might it take to be gC'd Jan 17 07:49:15 and is there a way to make that happen faster Jan 17 07:49:55 call gc() yourself Jan 17 07:50:09 looks like a honda magna in the background Jan 17 07:52:02 * capella owned one like the one in the back ... mean people stole it Jan 17 07:52:07 "The modern store is equipped with cameras that look at you, guess your tastes based on your gender, age and behavior, and send deals to your smart phone accordingly." fuck this man, i'm going to have to wear CV Dazzle just to go shopping Jan 17 07:52:15 question : eclipse : even with autobuild on I end up having to "clean" my projects to get library projects and app projects to have updated refs to each other... is that correct ? Jan 17 07:52:44 StingRay_: oh man, i thought they fixed that Jan 17 07:53:02 maybe I havent turned a feature on ? Jan 17 07:53:06 dunno Jan 17 07:53:12 capella - tis Jan 17 07:53:19 84 v65 Jan 17 07:53:25 well I'm on a mac atm, so maybe that has something to do with it Jan 17 07:53:29 Mine was a '91 V65 Jan 17 07:53:41 Knew it looked familiar! Jan 17 07:53:46 k0nichiwa: do *not* call gc yourself. If you do, you're probably *screwing up* the performance Jan 17 07:54:07 honestly android is generally pretty agressive about gc Jan 17 07:54:07 yeah i did it a different way Jan 17 07:54:19 ron_frown: it has also pretty shitty gc :3 Jan 17 07:54:27 (ok, maybe not so bad, but...) Jan 17 07:54:39 and if you are seeing out of memory issues, you are likely allocating a lot of shit VERY quickly Jan 17 07:54:52 or very wrongly Jan 17 07:54:54 rule #1 for fast android code seems to be the same rule as old realtime lisp :D Jan 17 07:54:54 strangely, when new versions of android come out, i never hear anything about improvements to dvm Jan 17 07:54:55 http://imageshack.us/a/img716/7200/drag12.png Jan 17 07:54:59 thats how I know all about that Jan 17 07:55:14 g00s - they are always working on it Jan 17 07:55:14 that is, write non-consing code Jan 17 07:55:19 no i was just setting up my kludge to dispose of this global resource when all activities dont need it Jan 17 07:55:20 im creating an app which needs users to be authorized over custom account in order to use the app - i dont want users to enter their username and password all the time - i want them to enter it upon installation and to save some access token which would give them the ability to use the service without needing to login again - anyone dealt with this and any advice on how to go about it? Jan 17 07:55:33 I'm quite pleased to have recently removed almost all instances of implicit news/allocations in my app Jan 17 07:55:36 cant tell you how many times google broke reliability by using head of public repo as dev Jan 17 07:55:37 to make sure the counts are maintained, i implemented a finalizer on an object the activities create Jan 17 07:55:43 nope - Mine was an '84 ... wrong bike ... Damn ! mine was stolen in Georgia ... lemme know so I can pick it up :D Jan 17 07:55:48 e.g., secret `new String()` calls in String.substring(), etc Jan 17 07:55:50 its like one constant broken build until they get it building which they tag/release =) Jan 17 07:55:51 haha Jan 17 07:55:51 that way if an activity crashes, the finalizer stil gets invoked Jan 17 07:56:03 not that my activity would crash .. but i guess it might Jan 17 07:56:27 finalizers are generally not recommeded, correct? Jan 17 07:56:42 yeah but its a tiny little class Jan 17 07:56:47 I thought that was one of those... deconstructors are there, but general use should never require it Jan 17 07:56:51 that just increments / decrements a global count Jan 17 07:57:06 are you trying to create your own reference counter... ? Jan 17 07:57:20 i have a global resource, should probably put it in a service Jan 17 07:57:26 the service is a singleton Jan 17 07:57:30 so that sovles the problem Jan 17 07:58:32 you could just make a singleton w/o the service :| Jan 17 07:58:48 pros and cons both ways Jan 17 07:58:54 you get isolated memory space for a service Jan 17 07:58:56 well i did actually Jan 17 07:58:58 well if its just data, i don't see the cons Jan 17 07:59:09 btu then have potentially have to deal with binding Jan 17 07:59:09 but now i also need a kind of ref count to see if it can be released Jan 17 07:59:20 it's needed after an actiivty goes to onstart, not needed after onstop Jan 17 07:59:29 ron_frown: isolated memory space for a service? wut ? Jan 17 07:59:37 you can do that, no? Jan 17 07:59:46 well a service doesnt have to run in a spearate process Jan 17 07:59:51 you mean a separate process? its discouraged Jan 17 07:59:58 nice Jan 17 08:00:06 that then is a very strange concept Jan 17 08:00:11 i dont know if there are difficulties in calling service methods if its in the same process Jan 17 08:00:12 a service that rusn in the same process =) Jan 17 08:00:25 can you just rreturn an object from a service method ? Jan 17 08:00:31 ron_frown: actually... it's kind of older than 'windows service' :P Jan 17 08:00:46 yeah Jan 17 08:00:47 you had "OS services" a long time ago as name for things like libraries and syscalls :P Jan 17 08:01:00 huh, the Scala compiler is getting a LLVM backend Jan 17 08:01:08 if a service is running in your process, android will try very hard not to kill your process Jan 17 08:01:24 as a whole Jan 17 08:01:26 i've used placeholder services for that while implementing background downloads in a klugy way Jan 17 08:01:45 k0nichiwa: yeah, aosp apps do that Jan 17 08:02:06 empty services Jan 17 08:02:30 what is an aosp app Jan 17 08:02:42 part of android os Jan 17 08:02:51 or at least distributed as part of it Jan 17 08:03:53 they probably stold the idea from me Jan 17 08:04:06 no, contacts did that all the way back to froyo Jan 17 08:04:22 aha, my first app was for froyo Jan 17 08:04:27 I ddint mess with them for very long, but I was fucking amazed at the implementation of contacts Jan 17 08:04:30 what a mindfuck Jan 17 08:04:30 haha Jan 17 08:04:54 yeah, the worst part of it is the content provider Jan 17 08:05:05 it was like way way abstract Jan 17 08:05:06 despicable Jan 17 08:05:09 iirc Jan 17 08:05:43 im creating an app which needs users to be authorized over custom account in order to use the app - i dont want users to enter their username and password all the time - i want them to enter it upon installation and to save some access token which would give them the ability to use the service without needing to login again - anyone dealt with this and any advice on how to go about it? Jan 17 08:05:58 most of the aosp content providers are very difficult to follow; calendar also Jan 17 08:06:05 reuf thats kinda up to you Jan 17 08:06:10 if you control the server Jan 17 08:06:17 build something that handles token authentication Jan 17 08:06:23 decide what sort of security you need Jan 17 08:06:43 if its more of just an identifier Jan 17 08:06:49 you could do something real simple Jan 17 08:07:05 if its highly secure accounts you will probably want to look into NONCE's Jan 17 08:07:47 maybe thats not the proper term for it =) Jan 17 08:08:01 ron_frown: thanks Jan 17 08:08:17 well whatever, these french tuner dudes arent gonna get back to me tonight Jan 17 08:08:23 must tune my bike tomorrow Jan 17 08:08:35 peace Jan 17 08:08:47 where do you get the code for the google apps like contacts Jan 17 08:08:52 from the repo ? Jan 17 08:08:56 yep Jan 17 08:09:04 they should distribute those as examples Jan 17 08:09:09 wtf is wrong w/these guys Jan 17 08:09:18 =) Jan 17 08:09:34 i've never seen the source because i'ts not that easy to find Jan 17 08:10:28 k0nichiwa: i'm not sure you want to see the code :| Jan 17 08:10:43 its sausages all the way down Jan 17 08:10:50 maybe not, but you need to see an example in order to understand how a complex class library is meant to be used Jan 17 08:10:59 mayb ethere are other examples of content provider and such Jan 17 08:11:20 yeah, but remember - even though google wrote those apps, they do some bad things here and there. Jan 17 08:11:41 but yeah, its good to see industrial strength apps Jan 17 08:12:09 k0nichiwa: a good example of a cp is iosched Jan 17 08:13:05 isnt the purpose of a content provider to provide content to multiple activities from a shared global resource Jan 17 08:13:14 so i supose that makes sense, android doesn't like globals Jan 17 08:13:29 i would say, its really more IPC for tabular data Jan 17 08:14:01 ive never seen a straightforward contentprovider Jan 17 08:14:07 the email one is like.... death Jan 17 08:14:24 email, contacts, calendar - the sql embedded in java is nuts Jan 17 08:15:11 im not famil with the others Jan 17 08:15:22 but im neck deep in the email provider atm Jan 17 08:17:29 i dont even really understand why Jan 17 08:17:39 the docs say "if only your app is going to access it, dont use a contentprovider" Jan 17 08:17:41 and yet... Jan 17 08:18:01 Dh discussed the +/- about local usage a while back Jan 17 08:18:11 remember AsyncQueryHandler ? Jan 17 08:18:13 no Jan 17 08:18:27 a lot of helper classes for doing async db stuff assumed CPs Jan 17 08:18:48 do if your data model was simple and the CP impl was easy, you could benefit by using these helpers Jan 17 08:18:52 *so Jan 17 08:19:36 but , otoh, as you know, the complexity of the cp might overshadow the benefits of using the helpers Jan 17 08:20:13 there was some nice machinery like the uri notification stuff Jan 17 08:24:13 the stuff im working on feels like it was hacked together Jan 17 08:24:18 like HEY LETS ADD A CONTENT PROVIDER! Jan 17 08:24:27 and "yo dawg, i heard you like content providers" Jan 17 08:24:49 but it definitely has some advantages Jan 17 08:24:59 depends what layer im looking at i guess Jan 17 08:25:03 "so i put a content provider in your content provider, so you can provide content while the content is provided" Jan 17 08:25:07 sorry, don't mind me Jan 17 08:25:23 and with that, i'm going to bed Jan 17 08:25:28 good night :) Jan 17 08:25:58 gnight canadiancow Jan 17 08:31:16 in my app, when i hit the home button, and then bring it back from the background Jan 17 08:31:20 my progress bar stops working Jan 17 08:31:38 well, dont do that ! Jan 17 08:31:39 its still there, not null, but it just doesnt show on screen Jan 17 08:31:55 i guess i could destroy an recreate it for on pause, resume, what a pain Jan 17 08:34:25 anyone having some nice tutorials or tips for making a live wallpaper scrollable? Jan 17 08:34:50 (the stuff google gives me is too overwhelming atm) Jan 17 08:35:40 I just wanted someones opinion. Someone has proposed the idea of taking their newspaper that they print out every month and showing it in the app. What are some possible ways I could go about this? Jan 17 08:35:46 How do I access my sqlite database if my phone is not rooted? Jan 17 08:35:57 For browsing in another app? Jan 17 08:36:36 EGamerHDK: the newspaper / magazine as apps thing is not succeeding Jan 17 08:36:36 bottiger: You can access the sqlite data if it's not set to private I believe. Jan 17 08:37:04 bottiger: you would make a content provider :P Jan 17 08:37:37 g00s: I guess, but that's not really an answer. lol heh. For me it's not a question about it being successful, it's just about being able to actually do it that's all. Jan 17 08:38:09 EGamerHDK, so what you want to do is basically just link to images? Jan 17 08:38:09 They have a pdf version of the newpaper, but it doesn't look that great on a phone. Jan 17 08:38:14 so a newspaper wants to go mobile, right ? Jan 17 08:38:42 they - a consumer or the paper ? Jan 17 08:39:04 Well, I'm open to suggestions. The only thing I could think of is to restructure the newspaper as pdf friendly. Something like one article per page sort of deal. Jan 17 08:39:13 EGamerHDK: but all the folders /data/data/... are unreadable Jan 17 08:39:24 EGamerHDK: again, who is "they" Jan 17 08:39:27 g00s: kind of inconvenient :) Jan 17 08:39:43 "They" would be the person that has this newspaper Jan 17 08:39:55 has, as in operates or runs, right ? Jan 17 08:40:02 yes Jan 17 08:40:12 then make it blog style Jan 17 08:40:21 Hm. Jan 17 08:40:36 well, i think the correct answer to this content heavy stuff is they want a mobile web site; the mobile content should be different than the full version Jan 17 08:41:06 I guess that's a good point. Jan 17 08:41:08 content for mobile should actually be /written/ differently than for the desktop Jan 17 08:41:18 it should be more concise Jan 17 08:41:29 so stories are actually shorter Jan 17 08:41:40 there should be a link to the full version if they want to go there Jan 17 08:41:55 if i need to scroll around or zoom in and out too much to read something i lose interest Jan 17 08:42:01 Okay, so I thought that would be the best idea... but I was afraid that would be the best idea... Jan 17 08:42:31 yeah, it's not as 'cool' as you probably wanted it to be, but it works Jan 17 08:42:46 Getting a pdf from a dropbox or something is so much easier than getting the data from a server I guess. Jan 17 08:42:50 EGamerHDK: you would enjoy chapter 2 of "mobile usability" by Nielsen Jan 17 08:43:02 there is no place for a pdf on a mobile device Jan 17 08:43:17 unless its a 10" or larger form factor Jan 17 08:43:19 I guess what I'm really saying is that I'm intimidated to do any kind of server to mobile stuff. Jan 17 08:43:25 I don't really know where to start. Jan 17 08:43:41 I've tried parsing html from a website, but that's difficult. Jan 17 08:43:59 I also learned that I should access my database directly from my app, so I'm kinda outta ideas. Jan 17 08:44:22 EGamerHDK: sorry, i dont think there should even be an android app. just a mobile web site Jan 17 08:44:48 possibly an app that opens a website? Jan 17 08:44:59 gah Jan 17 08:45:14 Well, the app idea is plenty good in my opinion. I think it would end up similar to the latest Android Design in Action show. Jan 17 08:45:29 good luck Jan 17 08:46:31 Any links/books/articles for how to pull data from a server database to an application? Jan 17 08:48:24 how do you typically prevent a button from being pressed twice before you can respond ? Jan 17 08:49:34 setOnClickListener to null? Jan 17 08:49:47 k0nichiwa I just set it to enabled/disabled or if there are many things have a boolean viewIsClickable Jan 17 08:51:15 its officially in. US is going down Jan 17 08:51:25 ic, i think there might be a way of disabling user interaction Jan 17 08:51:26 http://www.reuters.com/article/2013/01/17/us-usa-guns-orders-idUSBRE90G06S20130117 Jan 17 08:51:28 k0nichiwa: I usually create a method that set's all my onClickListeners=null and then in all of my onClickListeners I implement that method on every onClick. Jan 17 08:53:19 Also... Any links/books/articles for how to pull data from a server database to an application? Jan 17 08:53:36 Trinity well I have shotguns here in the uk, when you apply for a license you get a nice visit and a chat from the regional police firearms officer Jan 17 08:54:06 guess that works well to judge someones eligibility Jan 17 08:56:16 lol. shits going to go down soon Jan 17 08:56:24 "shits" ? Jan 17 08:56:40 civil war ? lol Jan 17 08:56:42 iono man, we'll see =| Jan 17 08:58:17 i just Trinity ppl often write a web service to help w/that Jan 17 08:58:32 its much easier to talk to a php backend with json then directly to an sql server Jan 17 08:58:52 i mean EGamerHDK Jan 17 09:03:49 oh, how come on a seek bar your cannot set a minimum value ? Jan 17 09:04:22 k0nichiwa: you just me ppl? Jan 17 09:04:33 oh Jan 17 09:04:34 nvmd Jan 17 09:12:33 i'm lazy.. how do i register when the finger hits the screen? Jan 17 09:15:20 myb a dumb question but i lost my micro usb cable which I use to charge my Nexus 7...can i just replace it with any old microusb cable? Jan 17 09:15:29 brx_: yes Jan 17 09:15:37 thanks Leeds Jan 17 09:15:57 just be careful you don't get a charge-only one Jan 17 09:16:14 hmm, whats the difference Jan 17 09:16:44 well... some cheap cables only have the power pins connected - particularly if they're multi-head ones, say with mini/micro/iPhone on the same cable Jan 17 09:16:57 ohhh i see Jan 17 09:18:57 flippin hell a fiver http://www.microdirect.co.uk/Home/Product/53793/USB-to-micro-USB-Cable-1m Jan 17 09:19:36 was expecting a couple of quid Jan 17 09:22:47 something like http://dx.com/p/usb-data-charging-cable-for-samsung-i9000-1m-length-54538 Jan 17 09:23:39 ok cheers, i might go market down the road instead of microdirect Jan 17 09:24:58 so the n7 specs still say android 4.1 ... Jan 17 09:25:51 can you update it to 4.2 officially? Jan 17 09:26:57 are there any popular devices running on intel processors? Jan 17 09:28:25 the only ones i know about are the RAZRr and K900 Jan 17 09:28:29 RAZRi Jan 17 09:29:32 there's some... ZTE? I think device showing up in stores Jan 17 09:29:36 not very popular Jan 17 09:29:47 g00s: fyi I got a works-for-me from a dev over here on our nightly build (v21) Jan 17 09:30:00 * p_l clones Google Dapper and calls it "Tapper" Jan 17 09:30:17 capella: hmm; wonder if i need to submit a video or something :| Jan 17 09:30:21 g00s: a new N7 will try to download and install the 4.2 update as part of the setup Jan 17 09:30:42 i'd forwarded your steps-to-reproduce ... Jan 17 09:30:46 Leeds: ah, ok. thx. weird, these are just fresh stock from asus - why they dont have 4.2 already Jan 17 09:31:03 and lots can change in 3 releases :) Jan 17 09:31:06 I think the 32GB ones might... Jan 17 09:31:47 g00s: logistics Jan 17 09:31:53 my 32 gb came with 4.2 Jan 17 09:32:09 but yah ... drop/file the bugzilla never hurts Jan 17 09:33:16 alright, so i changed the name of a .java file in my package ...and now my app stopped working (eclipse doesn't show any apparent mistakes) ...how dumb was this? Jan 17 09:33:29 i need a new dev device and $200 is the most i can spend; i guess the n7 should fit the bill Jan 17 09:33:45 slash, can i solve it without going back to the previous filename? Jan 17 09:34:16 lime: better to refactor. file name and class name need to change Jan 17 09:34:42 i did change the class name Jan 17 09:34:45 g00s, n7 + aide = pure filth Jan 17 09:34:57 aide ? Jan 17 09:35:06 ye, its an ide that runs on the device Jan 17 09:35:31 saves me lugging my laptop round everywhere, i love it Jan 17 09:43:02 alright, so i'm back with the original file/class name and it works again Jan 17 09:43:14 any suggestions as to what i did wrong? Jan 17 09:43:26 maybe you didn't refresh the workspace Jan 17 09:47:29 Alright, so did a refactor, F5'd.. still no luck Jan 17 09:49:05 ok, not completely.. Jan 17 09:49:49 it's a live wallpaper and when i open it from the list it works fine, but as soon as i set it as wallpaper it stops Jan 17 09:50:28 hi goos Jan 17 09:50:45 what is the use-case of using a ScheduledThreadPoolExecutor? Jan 17 09:52:16 I'm looking at timing a reaccuring task Jan 17 09:54:29 what is the best way of controlling and scheduling a reaccuring task? Jan 17 09:54:43 Timer, ScheduledThreadPoolExecutor, AlarmManager, Service? Jan 17 09:57:52 g'day Jan 17 09:59:09 I am attempting to show a pop-up display above my activity... something like the comment box on facebook... What would be the "normal" way of doing that? A dialog fragment? Jan 17 09:59:36 or perhaps an empty linear layout in my activity into which I can feed a view when I need it shown? Jan 17 10:04:57 Is it okay to change a ListView's adapter dynamically? I felt into choice: 1) use `newView() if (condition) inflate(layout222) else inflate(layout333)` 2) switch adapters ? Jan 17 10:06:09 squ: um, part of the point of an adapter is that it's perfectly fine to mix different layouts in one listview Jan 17 10:06:27 no Jan 17 10:06:36 I have 1 list view layout per ListView Jan 17 10:07:30 for example: two ListViews - one with apples, second only with cakes :) Jan 17 10:08:06 is should be refresh inside activity after user clicks right or left Jan 17 10:09:01 not sure will it refresh if I change adapter, and is it going? :) Jan 17 10:09:30 this asus padphone concept is interesting; a phone that docks with a tablet. never heard of this idea; maybe i'm not readind enough these days Jan 17 10:10:11 g00s: it's been around for a couple of years - they're advertising the Padfone2 on buses around here... Jan 17 10:10:46 hmm Jan 17 10:11:42 g00s: yeah, found it intriguing as well, would be even better if they made such slots in TVs or computer monitors Jan 17 10:12:18 apparently it's actually pretty good - the phone part is solid, it works well when docked, the PF2 dock is impressively tight even though it's just a plug-in dock, etc. Jan 17 10:12:47 with the GPU power ramping up, HD should hardly be an issue, wrt to Android I hope its GUI-sizing strategy improves Jan 17 10:13:00 there's a video from one of the launch events with a journo really shaking the thing around trying to dislodge it Jan 17 10:15:24 http://www.youtube.com/watch?v=AxE_Im20UZM Jan 17 10:15:41 skip to around 1 minute Jan 17 10:17:54 interesting Jan 17 10:18:30 I could see such things accelerate the BYOD culture, if they can guarantee security Jan 17 10:19:53 looking at $BIG_LOCAL_RETAILER, they've got the phone part for $4300 and the pad for $2300 - that's US$550 and $300, approximately... it's not cheap Jan 17 10:20:20 meant to be cheaper if you buy a bundle, I think Jan 17 10:22:00 $4300, where are you, Leeds ?? Jan 17 10:22:24 somewhere where the local $ is around 7.8 to the US$ Jan 17 10:22:47 I thought you were from the UK, eg £ Jan 17 10:23:06 from the UK, haven't lived there for over 7 years - I live in Hong Kong Jan 17 10:23:20 that explains things :) Jan 17 10:24:52 some things, anyway ;) Jan 17 10:27:35 leeds this is where you're from in the uk: https://maps.google.com/maps?hl=en&safe=off&q=Leeds&ie=UTF-8 Jan 17 10:29:09 k0nichiwa: and by your IP, I'd guess you're in https://maps.google.com/maps?hl=en&safe=off&q=Orlando&ie=UTF-8 :) Jan 17 10:30:55 pretty close, but not the correct city Jan 17 10:31:20 wihtin 100 miles Jan 17 10:31:21 not Belleview then? Jan 17 10:31:32 your map took me to orlando Jan 17 10:31:43 no not bellvue but thats closer Jan 17 10:31:44 yes, because that was my guess from a simple traceroute Jan 17 10:33:09 anyway, here in UTC+8, it's time for me to go get dinner Jan 17 10:34:00 does lcucache persist after a activity has been closed? i'm loading some images from a server into a gridview and i wish it could pull those images from the cache if i go back to the main activity and then open the gridview activity again Jan 17 10:34:22 lrucache* Jan 17 10:35:19 superlinux-hp: you here? Jan 17 10:35:26 belgianguy, yes Jan 17 10:36:20 ah, I had a question about the Juno installation, I have a seperate directory for it, but when I pull in ADT et al, would that not corrupt the current install? Jan 17 10:36:34 (eg modify files already in use by Indigo) Jan 17 10:38:43 belgianguy, I moved completely to juno Jan 17 10:39:10 and the same SDK downloads you can still use them. just point Juno to the SDK folder Jan 17 10:40:03 ah, I just saw this site, https://developers.google.com/eclipse/docs/install-eclipse-4.2 Jan 17 10:40:18 most of that I already have, so I should disregard it? Jan 17 10:49:09 gpu acceleration how? Jan 17 10:50:00 this sentence no verb Jan 17 10:50:37 i start emulator with gpu accel on but it seems the emulator does not load properly Jan 17 10:50:45 how do i fix this Jan 17 10:51:12 android-dev.ro has an article on that Jan 17 10:52:38 linuxuz3r: page 2 "configure a usable android emulator" Jan 17 10:56:37 I'm having trouble with margins. In short, I have to position a View in a FrameLayout that covers the whole screen. I tried using margins, and it works, but it is ignored on older devices. Jan 17 10:57:02 (The positioning is done programmatically btw) Jan 17 11:04:06 okay lruCache doesnt seem to persist after activity gets destroyed, will lruDiskCache do that? Jan 17 11:04:22 And as soon as I posted the question, I immediately get new ideas for fixing it. Jan 17 11:04:34 or is there any way to not destroy the activity when i go to previous activity from it Jan 17 11:11:24 startActivityForResult Jan 17 11:17:32 i need to implement proof of concept oath backend so that i can use ti to access it and get tokens for my android app. - any suggestions - links, ideas? Jan 17 11:22:56 monsti, thanks ;p Jan 17 11:23:04 linuxuz3r: yeah ;= Jan 17 11:23:08 Hi guys. I have a question on loading an app to the emulator. I observed that when I did Run as -> Android Application, it takes a lot of times before the app is launched on the emulator (this emulator is already opened). Is there any way to speed this up? On my other PC (very old PC), somehow the app loading is faster. IS there any parameter we can change for this? Thanks Jan 17 11:23:50 It's on Eclipse and the iamge is Android 2.3.3 Jan 17 11:23:54 *image Jan 17 11:25:30 Juno's on my system for about 15 minutes and has only crashed twice Jan 17 11:26:12 its C++ indexer goes OOM :(, as it did in Indifo Jan 17 11:29:29 after i set a bitmap for an imageview are the contents copied somehow somewhere and im free to recycle the bitmap, or is it kept as a reference? Jan 17 11:32:58 ok so the avd works with nexus devices Jan 17 11:33:25 does that mean nexus devices are easy to update properly with all features working and on a stable os? Jan 17 11:34:06 on my nexus i have an update button Jan 17 11:34:12 i pressed this once Jan 17 11:34:35 hip2p, how much power does it cost if I register the sensors and keep it running in the background? Jan 17 11:35:34 monsti whats your nexus device? Jan 17 11:36:05 nexus 7 with 32gb no 3g Jan 17 11:38:48 is the nexus s updated to run on jb? Jan 17 11:40:08 linuxuz3r google = http://www.pocket-lint.com/news/46602/nexus-s-jelly-bean-update Jan 17 11:46:37 ACTION_SCROLL: Constant for getActionMasked(): The motion event contains relative vertical and/or horizontal scroll offsets. Jan 17 11:46:45 i'm not sure i fully understand how to use this Jan 17 11:46:57 StingRay_, thanks Jan 17 11:47:09 thank google Jan 17 11:47:15 I did not know :) Jan 17 11:47:20 how do i push gapps to avd Jan 17 11:47:35 using push Jan 17 11:47:47 one by one? Jan 17 11:47:58 use the ddms file manager then Jan 17 11:48:11 think that does many Jan 17 11:51:26 Is there a way to keep an app from showing up under updates in the market other than giving the app another signature? Jan 17 11:55:26 plaisthos why wouldnt you want updates ? Jan 17 11:55:38 quite important sometimes Jan 17 11:55:43 :) Jan 17 11:57:26 Ha so apparently drawn text has default origin BOTTOM left, not top left like the rest of the world Jan 17 11:57:40 yet its not documented anywhere Jan 17 11:57:53 this is the shit I'm talking about Jan 17 11:58:34 on a drawn surface ? Jan 17 11:58:46 yep Jan 17 11:58:56 Origin y is bottom Jan 17 11:59:05 tell me ANY system 2d or 3d that works other than the way android does Jan 17 11:59:09 it draws northeast Jan 17 11:59:25 lol most have origin top left Jan 17 11:59:35 and draw southeast Jan 17 11:59:48 in 2d 3d world ? Jan 17 11:59:53 really? Jan 17 12:00:04 Yes obviously Jan 17 12:00:32 Android abides by this convention Jan 17 12:00:39 except for drawn text Jan 17 12:00:39 so a coordinate system starts 0,0 or 0,0,0 at the top left of the screen ? Jan 17 12:00:46 Yep Jan 17 12:00:56 always has been always will be Jan 17 12:00:58 so noone here has any experience in using LruDiskCache? Jan 17 12:01:05 its convention now Jan 17 12:01:08 Chilley I use Jan 17 12:01:26 StingRay_: beautiful widgets version 5 is completly broken. After waiting two months for a version which does not crash on my phone I reverted to the old version. But breaking the signature worked... Seem they don't do signature checking on the apk Jan 17 12:01:37 greatjustice well no 2d or 3d package, engine or dcc application has ever done that .... and I used lots Jan 17 12:02:27 StingRay_: postscript Jan 17 12:02:34 oh right Jan 17 12:02:39 not 2d 3d Jan 17 12:02:43 desktop publishing Jan 17 12:02:51 yeah I get you now Jan 17 12:03:08 but a surface is more akin to 2d 3d graphics no ? Jan 17 12:03:11 android is awesome Jan 17 12:03:13 rather than convention of dtp Jan 17 12:03:15 :) Jan 17 12:03:17 Okay I don't know. It doesn't matter. The issue is that Android isn't consistent! They deviate from convention here and its not documented! Jan 17 12:03:31 i like the launchers but ill wait for a devices that has android 5.0 in it Jan 17 12:03:33 lolz Jan 17 12:03:37 They just switch vertical drawing origin Jan 17 12:03:46 And don't mention it Jan 17 12:04:27 StingRay_: openl also postive Y is upwards Jan 17 12:04:33 Talk about the straw that broke the camels back, but its stuff like this that explains why everyone hates coding android Jan 17 12:04:50 they can't even write basic documentation for devs Jan 17 12:04:58 well Jan 17 12:05:06 and wonder why the store is filled with garbage apps Jan 17 12:05:06 i like programming in android Jan 17 12:05:15 i dont like the fragmentation though Jan 17 12:05:18 lol Jan 17 12:05:25 Cool story. Jan 17 12:05:27 not fragments but fragmentation Jan 17 12:05:46 so many people like android Jan 17 12:06:05 i wonder why its sooo freaking hard to get new features on your older device Jan 17 12:06:06 linuxuz3r: weren't you listening - everyone hates Android, greatjustice said so Jan 17 12:06:09 greatjustice: so it is hardly the rest of the world Jan 17 12:06:53 Leeds, i like it Jan 17 12:07:18 no you don't Jan 17 12:07:26 plaisthos: no thats not my point. The standard is top left. If they deviate from standard, they ought to mention it. But instead you get to wonder if youre positioning things wrong Jan 17 12:07:33 before it dawns on you Jan 17 12:07:44 greatjustice: where is that the standard? Jan 17 12:07:44 that the engineers pulled a switcheroo Jan 17 12:07:57 and then you come to irc and rage like this Jan 17 12:08:20 greatjustice: I could only find example where bottom left is the origin Jan 17 12:08:52 what'd I miss? Jan 17 12:08:53 plaisthos: please don't try to be cute with me. Every view, canvas, and visual element in android is origin top left Jan 17 12:09:22 It's de facto standard Jan 17 12:09:26 greatjustice: yeah that Jan 17 12:10:07 thought you were talking about the postions of the pixels on the screen how they are addresses, nevermind Jan 17 12:10:35 All I ask is one short sentence Jan 17 12:10:49 6-12 months Jan 17 12:10:51 devs, origin for text is bottom left by default Jan 17 12:10:56 depending on behaviour Jan 17 12:11:07 because everything else is top left always Jan 17 12:11:51 hello Jan 17 12:11:53 Look lack of documentation here is simply indefensible. Jan 17 12:11:58 how do you read text messages? Jan 17 12:12:05 Wrong Chan Jan 17 12:12:13 #android Jan 17 12:12:22 nope, not a wrong channel :) Jan 17 12:12:34 I asked how do you programatically read text messages. :D:D:D Jan 17 12:12:45 O.o Jan 17 12:13:28 did you think I'm such a person who knows how to use irc but reading a text message is a black magic? :D Jan 17 12:14:14 webczat no but there are many google results on how to do that, have you read them and have a problem ? Jan 17 12:14:20 Idk you came in right after my rage Jan 17 12:14:41 android documentation sucks I'm out peace Jan 17 12:14:48 :) Jan 17 12:14:49 the reason I ask is that I can't find a provider for that Jan 17 12:15:13 I think there is no official public provider Jan 17 12:15:23 content://sms is the db Jan 17 12:15:39 StingRay_: but it's not a published API, is it? Jan 17 12:15:41 like you can, but you don't have/need special contracts? Jan 17 12:16:01 which means it could change with any Android release, or any vendor build Jan 17 12:16:11 Leeds na there is no special api is there ? Jan 17 12:16:16 it's strange for me that some permissions are documented while the api for using them is not Jan 17 12:17:20 I think... and I could be wrong on this... that there *was* a public API, before Android 1.0 - and it's possible that there are still some echos of it left Jan 17 12:17:41 hmm an example is: mount or unmount storage. how? Jan 17 12:18:46 StingRay_: does the LruDiskCache persist after the activity has been destroyed? Jan 17 12:19:11 part Jan 17 12:21:29 thanks guys Jan 17 12:21:32 good night Jan 17 12:22:35 where are documentations/info on all available providers? including those without public api? Jan 17 12:22:47 also how do you "receive" sms messages? I don't mean accessing them Jan 17 12:23:00 intercept with broadcast Jan 17 12:23:08 register for it Jan 17 12:23:12 which action? Jan 17 12:23:46 android.permission.BROADCAST_SMS Jan 17 12:23:54 android.provider.Telephony.SMS_RECEIVED Jan 17 12:24:29 is it documented? Jan 17 12:24:39 quite obvious that you need also the permission android.permission.RECEIVE_SMS Jan 17 12:26:43 like where can I find official info? is it somewhere in android docs? Jan 17 12:30:41 also another question, I have a async task that loads up image urls to a ArrayList which is used my a custom adatper extending baseadapter. This adapter loads theese images and populates a gridview with them. After the asynctask has loaded all urls i call notifyDataSetChange in the postExecute method, however this does nothing. I have fixed this by also calling a updateUrls(ArrayList newUrls) method in my customadapter which simply gives the array Jan 17 12:31:55 i read somewhere that i should call notifyDataSetChange for every item i add to the arrayList instead of calling it once per batch Jan 17 12:32:04 is this true? Jan 17 12:33:06 Chilley out of interest why not have the async task end by actually setting the imageView ? Jan 17 12:33:08 thats what I do Jan 17 12:33:26 Hello, im doing an app wich uses videoview, and some videos are ok others are slow then fast then again slow than fast again and so on Jan 17 12:33:53 what could it be causing this? Jan 17 12:34:38 StingRay_: isn't that what the adapter is supposed to do when it's getItem method is called Jan 17 12:35:21 Chilley yes but... get item returns view with your layout, and you want this pretty much instant....maybe with a placeholder spinny progress in place of the image Jan 17 12:35:44 then in your async pass a ref to the imageView and your item to load Jan 17 12:35:58 oh and the progbar so it can hide it too Jan 17 12:36:01 :) Jan 17 12:36:09 so they appear as they load Jan 17 12:36:23 I want to write simple(HelloWorld) Augmented Reality app….any quick pointers/read to start with? Jan 17 12:36:25 rather than you loading them all and setting them all at the end Jan 17 12:38:47 What layout tag(s) do I need to set in my activity.xml inside my