**** BEGIN LOGGING AT Tue Apr 09 02:59:58 2013 Apr 09 03:12:55 what do i pass to AlertDialog.Builder() when its inside a fragment? Apr 09 03:18:54 getActivity() Apr 09 03:19:45 bankai_ , thats not working Apr 09 03:20:52 it doesnt accept FragmentAcitivity Apr 09 03:21:44 it will accept any context, including an Activity or FragmentActivity Apr 09 03:24:00 was missing the new keyword Apr 09 03:26:38 are we all using eclipse here? Apr 09 03:27:19 oh please don't start that kinda convo ... please .... Apr 09 03:28:00 why not? Apr 09 03:28:25 quick answer - no, end of topic :) Apr 09 03:28:51 is there a way to test that doing this... urlConnection.setRequestProperty("Accept-Encoding", "identity"); Apr 09 03:28:58 will indeed turn off compression? Apr 09 03:50:47 anyway to convert a writablebytechannel to string ? Apr 09 04:00:08 so when I read() from an inputstream it writes the data read into the byte array? Apr 09 04:13:04 mmoassistdev1 new String(bytes) Apr 09 04:17:37 the stream is still blocking i feel that i will never get this working. Apr 09 04:19:29 wonder how android terminal reads from inputstream without blocking Apr 09 04:23:39 mmoassistdev1: mostly, via a second thread that does blocking reads Apr 09 04:25:36 it should not be this hard to read from a damn stream. I mean having to fill a buffer is not cool. Apr 09 04:26:24 i wish there was a way to fill the input stream with fake info that way it outputs the data i need after the buffer fills Apr 09 04:28:16 is there a way to write data to a datainputstream somelike like append does for the outputstream? Apr 09 04:32:57 WHat is this android v4 support library? Apr 09 04:33:09 Is that something I need to manually include in my app, or is it provided by the OS? Apr 09 04:33:29 you include Apr 09 04:33:55 svm_invictvs: its basicaly the same as staticly linking code into a c app, you need to include the support lib in the apk to get those features on older devices that lack it Apr 09 04:34:37 but if you dont need to support those older devices, you dont need the lib Apr 09 04:35:47 any way to force a never ending stream to return -1 or end of stream programmably? Apr 09 04:36:15 mmoassistdev1: usualy, you have a dedicated read thread, which sends data to a Handler elsewhere when it gets it Apr 09 04:36:21 clever: I'm using Maven to make my apk... Apr 09 04:36:39 svm_invictvs: it should still allow you to include a jar into the app Apr 09 04:36:55 clever: Yeah, it can do things like bake whoel jars into it, but effectively the same thing yeah Apr 09 04:39:16 svm_invictvs: com.google.android:support-v4:r7 Apr 09 04:39:26 or deploy the latest version (r12) to your local repo Apr 09 04:39:55 r7 seems to work Apr 09 05:18:40 Is there a way to dyamically change what the next page of a viewpager will be based on user input? Apr 09 05:19:17 Say there are 4 buttons on the first page, each button will take you to the "next" page to the right, however, each button takes you to a different fragment/layout. Apr 09 05:19:33 Is there a way to do this? Apr 09 05:23:47 Lol, never mind I figured it out. At least I think this'll work. Basically you have a variable that keeps track of what Fragment you want to view. In the getItem method have all cases except for the first case return a different fragment based on the previously mentioned variable or on button click. Apr 09 05:24:02 Also, use a FragmentStatePagerAdapter. Apr 09 05:26:59 ?android:selectableItemBackground Apr 09 05:27:10 Is there a java method I can use to achieve the same? Apr 09 05:27:38 mainly how do i get the value for "?android:selectableItemBackground" in code Apr 09 05:32:35 two ways, one more correct than the other Apr 09 05:32:38 which would you prefer? Apr 09 05:33:29 The correct one, bad one for reference :) Apr 09 05:34:18 haha. ok gimme a minute Apr 09 05:36:13 Whoa, the JakeWharton? I'm amazed with this IRC channel. Just the other week I was getting help from Romain Guy. Good work, Jake. Apr 09 05:36:38 jdawes: don't get so excited - he comes in 6-packs Apr 09 05:36:55 Leeds: Right on! Apr 09 05:37:48 best from the tap, in my opinion Apr 09 05:38:01 http://refspace.com/quotes/Douglas_Adams/zaphod#div7 Apr 09 05:40:39 Leeds: i wonder if "Ode To A Small Lump Of Green Putty I Found In My Armpit One Midsummer Morning" was referring to some nascent version of android Apr 09 05:40:56 g00s: as opposed, say, to Marvin? Apr 09 05:43:17 f2prateek: https://gist.github.com/JakeWharton/88f05da741edd6833aa4 Apr 09 05:43:34 what the? Apr 09 05:45:09 JakeWharton: perfect, thanks! Apr 09 05:46:26 Quick question about viewpagers Apr 09 05:46:53 Is there a way to just load all of the pages you will need and make it so the ViewPager never needs to recreate fragments? Apr 09 05:47:04 jdawes: cache them in your adapter Apr 09 05:47:13 and when the getItem is called just return the proper instance Apr 09 05:47:19 That's what I assumed, so basically create them in the constructor? Apr 09 05:47:29 and return them in getItem. Apr 09 05:47:35 it would be better if it was done lazily as they're needed Apr 09 05:47:46 I've kinda lost faith and interest in android Apr 09 05:48:11 mainly just because I am sick of engineering around stupid problems Apr 09 05:48:15 Yeah, of course, but I was just curious. Apr 09 05:48:25 and I have by no means come anywhere as close as jake has =) Apr 09 05:49:18 ron_frown: lets see what KLP brings Apr 09 05:49:34 I like mobile dev in general. Android dev is more intuative to me, however, iOS interface building is a lot easier, though the have the advantage of developing for such a small number of devices. Apr 09 05:49:47 honestly if you get what happens in IOS Apr 09 05:50:04 ios to me just makes more sense as much as I hate apple and their developer ecosystem or lack thereof Apr 09 05:50:06 g00s: when is KLP cominng out? I/O? Apr 09 05:50:14 jdawes: presumably Apr 09 05:50:22 True enough. Apr 09 05:50:35 Gotta love $25 for lifetime developer membership though! Apr 09 05:50:48 ios stuff? Apr 09 05:50:56 I meant more you must develop on a mac, you must use their shitty apps Apr 09 05:51:15 I personally think most of objc is harder to deal with than if you were to just go c Apr 09 05:51:19 but native is native Apr 09 05:51:23 mhm Apr 09 05:51:30 you can make much more of the platform in native Apr 09 05:51:41 Could you imagine developing on Ubuntu for both platforms! What a dream that would be. Apr 09 05:51:43 I am sure there are more vm languages that still do a lot better job than java Apr 09 05:51:56 shit even ubuntu broke that for ubuntu mobile Apr 09 05:52:08 its fucking QT and qt creator etc all work on windows Apr 09 05:52:12 and mac Apr 09 05:52:14 yup Apr 09 05:52:16 but no... ubuntu only Apr 09 05:52:37 Yeah, at least the OS is free...that's a start I guess, not much of one Apr 09 05:53:02 seems like apples shit is anti-competitive Apr 09 05:53:26 Yeah, very keep-to-themselves Apr 09 05:53:36 Do you do more iOS than Android? Job or hobby? Apr 09 05:53:51 I'm an android platform engineer Apr 09 05:53:53 not for google Apr 09 05:54:09 I build/maintain os's apps etc Apr 09 05:54:17 Cool. Apr 09 05:54:32 Do you have a degree in Software Engineering? CS? or something else? or nothing? Apr 09 05:54:42 self taght Apr 09 05:54:44 taught Apr 09 05:54:45 Just curious, I'm finishing my degree in Computer Engineering in a year. Apr 09 05:54:45 JakeWharton: my original approach had the declaration as , and R.styleable.MyThing_android_selectableItemBackground , does having that extra identifier make a difference? Apr 09 05:55:01 ron_frown: That's great that you could make a career out of it. Apr 09 05:55:11 But not when you sound so fed up lol. Apr 09 05:55:34 f2prateek: no, that's just Android's version (API 11 or 14+). My version was for ABS apps. Apr 09 05:55:34 you get jaded when you've been it as long as I have Apr 09 05:55:45 gotcha Apr 09 05:55:55 buncha young whipper snappers coming in and kinda ruining the environment =) Apr 09 05:56:06 I haven't done anything I swear! Apr 09 05:56:07 BB 10 seemed very modern and clean to me. Its a bit further ahead, b/c i they were designing for capabilities that would be down the road. To me, android seems like it was designed for constraints based 5+ years ago (reflected in major APIs - like lifecycles of all components), but the current implementation only works well on modern hw Apr 09 05:56:11 JakeWharton I cant remember... you were mostly self taught or did you go to edu? Apr 09 05:56:20 It's more of a hobby for me but I'd be fine getting into mobile dev for work. Apr 09 05:56:28 g00s qnx is qnx is qnx Apr 09 05:56:31 I'm on coop in Android and iOS Apr 09 05:56:34 I went to school but I'd say 90% of my education was me exploring things myself Apr 09 05:56:42 thats the vibes I got from you Apr 09 05:57:04 ah ok, this is for a API11+ library anyways Apr 09 05:57:05 lots of edu folks I work with act like once school was over, the learning was over Apr 09 05:57:08 they knew everything =) Apr 09 05:57:11 nothing else to be learned Apr 09 05:57:33 jdawes: CE ftw :) Apr 09 05:57:43 g00s: Nice Apr 09 05:58:31 ron_frown: I know nothing, I've been at this coop for 3 months and I'm back to school in 1 more. I'll keep at it on the side I think though. I like solving the puzzles that I give myself, at least for now I do :) Apr 09 05:58:43 g00s: Graduated? working? what field? Apr 09 05:58:51 I think there are good things to learn at school Apr 09 05:59:12 just think schools CAN teach people that there is exactly one solution to a given problem Apr 09 05:59:59 yeah, they tend to go one way with a lot of things. Apr 09 06:00:15 jdawes: yeah, graduated. for a while i regretted CE and thought CS was better, but actually now that people are making (Maker culture) much more stuff, those old EE skills come in handy Apr 09 06:00:39 there is some stuff i'll never touch though, like antenna design :D Apr 09 06:01:08 cs is just completely inundated with grads Apr 09 06:01:15 and most of which really shouldnt be in the industry Apr 09 06:01:26 g00s: Yeah, I'm planning on making a career out of one and a hobby out of the other. Basically is the jobs in mobile dev are good I'll do hardware design/more tinkering as a hobby, if not then I'll try to go the other way. Apr 09 06:01:28 lots and lots of unfounded arrogance is what I've experienced anyway Apr 09 06:01:47 g00s: Best case scenario of course. Apr 09 06:01:53 jdawes: think carefully, your first job out of college will be your most important Apr 09 06:02:08 once you get away from the HW side of things, its hard to get back in - professionally Apr 09 06:02:20 g00s: I can see why, I already feel as though I've painted myself into a corner doing mobile development for two coop terms. Apr 09 06:03:10 ron_frown: That's funny you should say that, I always come into a new envirornment thinking that I'm not inadequate but inexperienced and needing to learn more. Apr 09 06:03:31 jdawes: also consider robotics. Apr 09 06:03:52 learning should be a part of anyones development career Apr 09 06:04:11 i do think mobile is a bubble in a way. i mean, BB 10 app is like writing a desktop app. there will be no secret skillz eventully; but like the .com boom - it will be everywhere Apr 09 06:04:17 g00s: I've been interested in embedded systems and robotics but I haven't done any courses or anything outside of school, zero experience so it'll be tough. I've never been particularly good at hardware stuff. Apr 09 06:04:59 does your school have any kind of robotics club or competitions they do? Apr 09 06:05:16 Yes, and if you're going to suggest that I join, I'm ahead of you! Apr 09 06:05:47 i had a blast doing a robotics competition at my school. i got class credit for it, but it was very informally run (kind of poorly run actually). but it was great because i had freedom to do what i wanted and experiment a lot Apr 09 06:05:54 enjoy it :) Apr 09 06:06:29 Yeah I've only got two school semesters left so now is the time! Apr 09 06:06:45 I hear nothign but good things about clubs in general at school. Apr 09 06:07:15 i had so much fun at out school's metal working shop, using the milling / cnc / lathe Apr 09 06:07:29 i ended up staying for my masters mainly because of the robotics team (and there was a related robotics research grant to help pay for students doing masters) Apr 09 06:07:31 g00s: You did milling etc. in a CE program? Apr 09 06:07:53 jdawes: oh, we all had a senior design project. i had to make a bunch of stuff out of aluminum Apr 09 06:07:54 kevinb: I always say that the only way I would do my masters is if someone paid for it! Apr 09 06:08:05 these days you could probably just 3d print it :D Apr 09 06:08:10 g00s: I see, yeah I've got a design class to do soon as well. Apr 09 06:08:58 Well, g00s, kevinb, ron_frown, I'll talk to you guys later. I'm off. Apr 09 06:09:06 peace Apr 09 06:09:09 jdawes: my project was pretty simple. it was a ball-balancing thing; the only twist was I used an adaptive-fuzzy controller Apr 09 06:09:22 g00s my father in law works for a govt military contractor Apr 09 06:09:24 last week i saw to UAVs handing off an inverted pendelum Apr 09 06:09:30 *two Apr 09 06:09:34 they say they got all sorts of 7 axis machine, 3d printers etc Apr 09 06:09:39 i was like, omg holy fing shit Apr 09 06:09:44 all the dudes there are old school so they all use the old school mechanical mills Apr 09 06:09:53 all the new shit just sits there collecting dust Apr 09 06:10:22 ron_frown: i wonder what the properties of the resins are Apr 09 06:11:03 anyhow, it was all so much fun. and i did all my solids modeling in cad to get the physical properties like CoM / inertia Apr 09 06:11:34 I dont know... they say they printed a working adjustable wrench Apr 09 06:11:42 melted the wax away and it would function, it was just made of plastic Apr 09 06:12:24 i hope, if everybody starts printing stuff soon, that the resin is environmentally friendly (recyclable) Apr 09 06:12:48 my work bought one... its at company owners house for some reason Apr 09 06:12:52 i did see that you could melt down some soda pop cans for one formulation Apr 09 06:12:55 I guess its his Apr 09 06:13:07 but we could use that shit for real work at work =) Apr 09 06:13:32 well - we're in the lell before I.O when its pretty boring in android land ... Apr 09 06:13:35 *lull Apr 09 06:13:53 all is quiet. have to build up anticipation ! Apr 09 06:14:04 make us wait for those gradle tools Apr 09 06:14:08 grr :/ Apr 09 06:16:07 the tools are developed in the open Apr 09 06:16:10 what are you waiting for? Apr 09 06:16:49 0.4, when it becomes useful :) Apr 09 06:17:07 still missing too many things Apr 09 06:18:01 well i have bad news, all the missing things won't be implemented by I/O Apr 09 06:18:16 :/ Apr 09 06:42:54 hi Apr 09 06:42:59 Anybody know where I can find some free vpns? Apr 09 06:43:22 no such thing as free Apr 09 06:44:06 maven: vpn services? clients? Apr 09 06:46:48 services . I want to access some forbidden sites. Apr 09 06:47:17 .. Apr 09 06:47:30 forbidden by who? Apr 09 06:48:20 Sites like group.google, facebook ... Apr 09 06:48:29 nobody has any here Apr 09 06:48:34 try somewhere else Apr 09 06:53:55 maven: try http://www.vpngate.net Apr 09 06:54:52 shmooz: Thanks, I will have a try. Apr 09 06:55:55 if i was an FBI agent, i'd recommend a special VPN service. seriously, maven Apr 09 06:57:26 man this code is like sticking a red hot poker in my eye Apr 09 06:58:00 g00s, what does the special mean? :) Apr 09 06:58:20 maven: man in the middle Apr 09 06:58:58 don't worry I don't own that site ;) Apr 09 06:59:22 its some university of japan experiment Apr 09 06:59:28 maven: are you going to trust someone with a nick like shmooz :D Apr 09 06:59:38 he mentioned facebook being forbidden. i imagine he's trying to dodge the chinese government, not the FBI. Apr 09 06:59:55 thats what he tells us :) Apr 09 07:00:13 but you can get to android-dev from china ? Apr 09 07:00:41 ...... Apr 09 07:01:12 kevinb is right. :( Apr 09 07:01:23 i remembered when china blocked github a few months ago Apr 09 07:02:21 maven: ok, this is the last i'll say about this. https://news.ycombinator.com/item?id=5312782 Apr 09 07:02:49 g00s: yes. Caused by a plugin for chrome browser which can be used for ordering the ticket. Apr 09 07:04:12 android-dev is not interceptted Apr 09 07:05:08 ron_frown: what are you looking at ? Apr 09 07:06:46 spatial indexing implementations Apr 09 07:06:59 for sqlite ? Apr 09 07:07:11 i wish they had that compiled in Apr 09 07:07:16 does sqlite even do spatial indexing? Apr 09 07:07:17 oh Apr 09 07:07:21 yeah Apr 09 07:10:16 reading some of this shit does not great things for my already inflated ego =) Apr 09 07:10:22 can anyone tell me why http://bpaste.net/show/90050/ doesn't work? I want to have two buttons that take up 50% of the view, but I get nothing. Apr 09 07:10:59 weight is a LinearLayout thing Apr 09 07:11:05 uhm that paste minus android:layout_alignParentTop="True" -- because I removed that and forgot to save. Apr 09 07:11:06 JakeWharton: oh Apr 09 07:11:21 that explains it. how would I do it with a relativelayout then? without using weight, they buttons are tiny. Apr 09 07:11:43 of course I guess I could just use a linearlayout Apr 09 07:12:24 that works fine. thanks. Apr 09 07:25:01 We have the original ESRI shapefile based vector data and satellite data, is there anapplication like google map which can load and render the map data? Apr 09 07:28:00 well, that was fun. managed to uninstall grub Apr 09 07:37:00 hey alex_PP. i'm reading a good book http://www.amazon.com/Vision-Voice-Refining-Photoshop-Lightroom/dp/0321670094 … i decided to enter a photography contest in a month; i'll surely not win but the process will be fun. this book is a nice philosophy of digital darkroom (not so much about sliders) Apr 09 07:38:49 i hope you fix grub :( i remember a few times installing it to the wrong partition … the ubuntu installer would count them incorrectly or something Apr 09 07:39:45 yeah, it's fixed thanks to my chroot-foo Apr 09 07:40:33 looks like a nice book Apr 09 07:40:44 hard to tell from the amazon sneek peek Apr 09 07:43:50 g00s, good luck with the competition, I've never entered one. an electronic or print and hang kind of deal? Apr 09 07:45:08 alex_PP: its my first one; submissions have to be printed - shortest side 10", my camera barely makes it Apr 09 07:46:24 what i wish i did taking a lot of my pictures - is take notes on how i felt while capturing it. when you go back through the years its hard to reconstruct that , and so i find it hard to express my vision for it later on Apr 09 07:46:35 that would be a cool app for google glasses maybe ... Apr 09 07:47:14 when you are out shooting, it could snap a pic, annotate with gps, and voice memo - and you can link that back to the frames taken by dslr Apr 09 07:48:18 then again, cameras are coming with android, so maybe they could just have a voice memo app Apr 09 07:48:44 although, i doubt the 4d mark iv will be running android :P Apr 09 07:48:51 5d Apr 09 07:54:33 super 5d mark iv max 9000 plus Apr 09 08:00:46 what is the best way to startActivityForResult from a preference activity? is it possible in XML, or do I need to do it with setOnPreferenceClickListener()? Apr 09 08:04:50 hm, i thought i did that - but dont. i think i set an intent on the preference, it launched the new activity. the new activity wrote the selected pref, and then the Pref Activity updated dynamically from onStart Apr 09 08:06:01 by setting the pref summary to reflect what the user chose in the child activity Apr 09 08:06:30 the best docs for Prefs are the Settings application :) Apr 09 08:06:32 You guys does not need to work? Apr 09 08:07:57 g00s, that's a nice idea Apr 09 08:08:13 nothing stopping that working as a phone app Apr 09 08:08:23 * alex_PP adds to //TODO list Apr 09 08:08:29 :) Apr 09 08:09:45 gives me an excuse to write a super awesome FFT recording widget Apr 09 08:10:02 g00s: I have an EditTextPreferenceWithValue that auto-updates the summary text Apr 09 08:11:15 but that is not what I am looking for. actually, I want to launch a file chooser, and use its result as the prefs value. Apr 09 08:11:35 maybe I will just write a FileNamePreference Apr 09 08:12:29 oh i see, ok. yeah, i guess not xml. should be easy the way you mention tho ... Apr 09 08:13:04 probably dont need to write a custom preference for that Apr 09 08:15:05 g00s: there is actually an almost-elegant xml way: http://stackoverflow.com/a/14112841/539443 Apr 09 08:18:13 I wish you could search google play for all apps providing a certain intent filter Apr 09 08:18:36 that would be pretty cool ! Apr 09 08:28:26 If I want to passes jsonObject to an adapter, which should I extends from? BaseAdapter, ArrayAdapter or.. ? Apr 09 08:33:08 xviv: this? http://www.json.org/javadoc/org/json/JSONObject.html Apr 09 08:34:19 I mean, for displaying it into listView. Apr 09 08:34:33 it doesn't seem very well suited representation for an AdapterView Apr 09 08:34:42 since its mostly a map ... Apr 09 08:34:56 but you could finagle something yeah, by extending BaseAdapter Apr 09 08:35:26 I parsed it, once. And saved it into database. But, building a ArrayList from sqlite seems so slow :| Apr 09 08:35:35 maybe pass in the json object, and then it constructs a JSONArray from that, which is then used by getPosition() etc Apr 09 08:35:58 *an ArrayList. Apr 09 08:36:05 xviv: dont build an arraylist from the db :P Apr 09 08:36:09 use CursorAdapter then Apr 09 08:36:59 So, I just need to parse and save to db first and use cursorAdapter then? Apr 09 08:37:05 :) Apr 09 08:37:20 Have you ever save something like jsonObject into xml file? Apr 09 08:37:32 no Apr 09 08:38:00 and saving parsed jsonObject into xml file like shared preferences is not recommended? Apr 09 08:39:04 you could use MapDb as a k/v store Apr 09 08:39:11 i guess ... Apr 09 08:39:25 don't know what you're trying to do. no, i wouldn't store bug chunks of stuff in prefs Apr 09 08:39:44 Thanks buddy, you're the best! Apr 09 08:40:06 heh, np Apr 09 08:44:07 Hi,what is the difference between the CameraUpdate and CameraPosition in google map sdk? Apr 09 08:45:45 hmm doesn't really seem like G is doing an I/O ticket competition this year :/ Apr 09 08:51:27 capella: i'm ticked ff guys are remove tab groups from core but putting in the social crap Apr 09 08:52:06 heh Apr 09 08:52:46 so tab groups gets extracted to plugin; i think social should be a plugin too Apr 09 08:53:23 yah I do too ... first step towards commercialization Apr 09 08:54:17 but a buncha guys I like worked on that so I cant really bitch and sneer too much Apr 09 08:55:40 zuckerberg will make is own damn browser if he wants you using it from the web :) Apr 09 08:56:08 hes already after all of android Apr 09 08:57:19 Windows started as a shell on top of DOS :) Apr 09 08:57:35 FB Home is a Shell of sorts on top of Android ;) Apr 09 08:58:04 you will be assimilated ... Apr 09 08:58:30 HTC is doing terrible. i wouldn't be surprised if google takes advantage of that Apr 09 08:58:32 it's just a launcher - possible unless you've got the First Apr 09 08:59:37 Bye. Time to go home now. Apr 09 09:01:06 home at 5pm? :) Apr 09 09:11:35 if i make a website with android tutorials on it that i write, am i allowed to make money from that site via adverts/banners? Apr 09 09:21:20 I've a question bout systemapps. A Systemapp is stored in /system/apps but still creating a folder /data/data/package.name/* and is recognized as systemapp. How does this exactly work? Apr 09 09:21:46 When im going to install a app out of playstore and move/download the APK simply in /system/Apps will it be recognized as systemapp aswell? Apr 09 09:22:51 yes Apr 09 09:23:26 you might need to clear caches, app data, etc, depending on the situation, but basically: yes, moving the APK to /system/app will make it a "system" app with all rights that come with that Apr 09 09:39:14 Chainfire. How does this work? Apr 09 09:39:23 what do you mean ? Apr 09 09:39:32 How does the system know that the UID of the app is System UID as soon as the APK is in the folder Apr 09 09:41:51 i thought the system apps were also signed with a certain key Apr 09 09:42:10 no, not really. My App runs well as systemapp by just moving the APK to /system/apps Apr 09 09:42:13 misterli at boot time all apk's are scanned and this is saved to some internal list Apr 09 09:42:34 Okay. And the list contains the installed package name of the app stored in /data/data Apr 09 09:42:43 no Apr 09 09:42:46 But it means that moving in runtime will not make it as systemapp Apr 09 09:42:51 correct Apr 09 09:42:53 you need to reboot Apr 09 09:42:58 afaik Apr 09 09:43:15 g00s> they normally are, but they don't have to be Apr 09 09:43:21 Okay. Means too that installing out of the Playstore, Remouning the System to rw and downloading the same APK located in playstore to /system/apps will make it as systemapp after reboot/flushing privilegies Apr 09 09:44:00 myeah but keep in mind you may run into trouble here with dalvik caches, version conflicts, etc Apr 09 09:44:07 Btw, you'r the developer of SuperSU? Apr 09 09:44:36 yes Apr 09 09:45:14 Chainfire kicks ass ! Apr 09 09:45:35 ok. Just seen your name in XDA Forum last time in a thread about an memory exploit Apr 09 09:45:45 g00s> with the signature thing, as I understand it, various rights can be achieved without being a system app, if the signature is the same as the signature of framework-res Apr 09 09:46:02 ok, good to know Apr 09 09:46:36 I have a 'HacktionBar extends LinearLayout" with an "appendTab(CharSequence label)" that executes "TextView tab = (TextView) inflate(getContext(), R.layout.hacktionbar_tab, this);", however, the inflater throws this exception at the 'this' part of the call: https://gist.github.com/joar/178d4aac4ccb420bf3a0 Apr 09 09:47:34 joar`: com.visualart.im.samsung.slides.layout.HacktionBar cannot be cast to android.widget.TextView Apr 09 09:48:12 appel1: I don't explicitly cast it to TextView though. Apr 09 09:48:43 joar`: TextView tab = (TextView) inflate(getContext(), R.layout.hacktionbar_tab, this); <- you cast to TextView Apr 09 09:48:45 unless inflate(...) returns the HacktionBar Apr 09 09:48:47 Hi. Let's say I have two activities (A and B) which are both using MediaPlayer to play video. When in foreground these activities play video for a certain amount of time and then call the other. My question is, should be responsibility of A and B to know where they stopped playing the video (to restart playing from where it stopped)? Apr 09 09:49:21 R.layout.hacktionbar_tab is a single Apr 09 09:50:15 joar`: didn't read enough of the stacktrace, it is a cast you do at line 26 in HacktionBar.java Apr 09 09:50:41 appel1: Yes, you are correct, it's that line. Apr 09 09:50:57 What I don't understand is why it would be cast that way. Apr 09 09:51:07 HacktionBar is not in the layout being inflated. Apr 09 09:52:06 HacktionBar is the class which does the inflating and thus the class that is 'this' Apr 09 09:52:25 HacktionBar inflates a (TextView) tab from R.layout.hacktionbar_tab Apr 09 09:52:41 Could any one advise (in as raw a form as you like), what an efficient way to display parent folders to only specific filetypes might be? Apr 09 09:53:01 brb, lunch Apr 09 09:53:12 I'm hacking together a quick file browser, and I've implemented a filefilter, which means as I navigate through I only see the filetypes I want. Apr 09 09:53:27 I'd like to have it show just the first parent folder of each of those folders.. Apr 09 09:53:49 joar`: inflate attaches the inflated xml to the viewgroup you specify as argument to inflate and returns it Apr 09 09:53:59 joar`: in your case the HacktionBar instance Apr 09 09:55:06 joar`: unless you use an overload of inflate that has a attachToRoot argument you can set to false Apr 09 09:55:54 joar`: or use null as argument for the root parameter :) Apr 09 10:05:49 does anyone know why the SECOND Camshot crash the app/Service with Media Server died and before in stacktrace: service media.audio_flicker died ... service media_player died.... http://pastebin.com/bgBvP6Pn Apr 09 10:20:32 doesnt matter when/where i change the release. The second shot is not working. If i wait about 2 minutes between the shots they do Apr 09 10:23:14 I'm using listView to show very complex child views, I see that the view do a little jump when I scroll. Should I use ScrollView instead? Apr 09 10:30:08 appel1: Thank you! Apr 09 10:31:19 d Apr 09 10:32:54 If I use the Nginx+tomcat to serve my application. 1 Nginx server and 5 tomcat server. Then does it mean that I have to copy my application package to each tomcat server and extract the static resources to the nginx server? Apr 09 10:52:04 hey people Apr 09 10:52:46 hinting for android is broke for me, is this trivial to fix? Apr 09 11:26:08 I have this IntentService executing httppost onclick, but how can I abort the existing query if button is pressed again before the previous is finished? http://pastebin.com/wbnCtL67 Apr 09 11:27:14 I don't want to disable the button while waiting for results Apr 09 11:29:20 why not a task Apr 09 11:29:26 and then .cancel() Apr 09 11:30:18 Cause I've never done asynctasks Apr 09 11:30:23 and I like IntentService ;) Apr 09 11:30:48 that would imply you never will do asynctasks Apr 09 11:31:00 hehe Apr 09 11:31:27 but surely there must be a way to abort it in an IntentService Apr 09 11:32:40 I tried "if (httpPost != null) { httpPost.abort(); }" at the start of onHandleIntent(), but it didnt help I think Apr 09 11:51:18 how can I check the stability of an application? If it stucks, crashes, ... Apr 09 11:51:40 My app is stucking and does no return Apr 09 11:51:43 I have to kill it Apr 09 11:52:08 Don't do that, just fix it. Apr 09 11:52:27 TheTrash, this is for testing purposes Apr 09 11:52:36 the problem is not my app, but the underlying hardware Apr 09 11:52:56 the app works great with good hardware Apr 09 11:53:33 what about logcat? Apr 09 11:54:04 brx_, I thought about that. I should be able to read logcat while app is running Apr 09 11:54:11 right? Apr 09 11:54:17 yap Apr 09 11:54:32 I think I'll put a diff thread doing that Apr 09 11:55:12 what bad hardware do you mean? Apr 09 11:55:14 and once it finds some critical errors, it somehow kills the problematic thread Apr 09 11:55:27 Leeds, video decoder Apr 09 11:56:31 actually it is not the hardware that is bad. It is the driver Apr 09 11:56:39 and by bad I mean under development Apr 09 11:57:06 5EUR by paypal for the solution: http://pastebin.com/bgBvP6Pn media server crashes after first camshot. onDestroy is called. Apr 09 12:01:47 Bring Your Own Stacktrace Apr 09 12:02:16 ....... Camshot crash the app/Service with Media Server died and before in stacktrace: service media.audio_flicker died ... service media_player died.... Apr 09 12:07:45 brx_, so, based on what I've been reading, I should call "logcat -d" inside my program which reads logcat buffer and returns. Since I want to do this all the time it might become slow, no? Apr 09 12:08:46 when you say the app crashes, is it in the same place every time ye? Apr 09 12:08:59 Yes. I'd always while doing the second camshot Apr 09 12:09:07 Third works fine, 4th does not work, 5th works, ... Apr 09 12:09:14 gmag: are you using eclipse to write your app? Apr 09 12:09:17 the previewwindow (when i increase the size) is still there after release Apr 09 12:09:24 brx_, I am Apr 09 12:09:41 just open the logcat window Window>show view> Logcat Apr 09 12:09:47 The shot picture is still there after releasing Apr 09 12:09:57 if the app is crashing there wil be some red/errors in the logcat window Apr 09 12:10:03 this will help you debug the problem Apr 09 12:10:15 brx_, but I would like the application to be killed automatically for certain errors Apr 09 12:10:28 Log.d(); is used like System.out.print() in order to post variables to the logct maually Apr 09 12:12:00 but errors are are posted to logcat automatically, if the app force closes that is (or you catch an exception) Apr 09 12:12:02 the underlying layers of the software stack are logging to logcat as well. I would like my app to be aware of these messages and eventually kill the app. Because for certain error messages I know that the app is hanging and won't return Apr 09 12:12:39 use a try{}catch{} and in the catch block act accordingly Apr 09 12:13:07 brx_, no exception is being trown Apr 09 12:13:24 ye i see, not sure i cn help you tbh mate Apr 09 12:13:43 does it work on -any- device? Apr 09 12:14:04 my application works great on stable driver Apr 09 12:15:46 if i was you i would createa pastebin/stackoverflow post and detail everything including any logcat outputs you have Apr 09 12:16:03 give as much detail as possible Apr 09 12:16:06 for unstable driver my app will have unexpected behaviours (still it is not my app fault). The driver will notify with error messages on logcat if something really bad happens. I should be looking at those messages on the fly and eventually kkill the app Apr 09 12:16:13 ok Apr 09 12:19:13 brx_, did you mean my problem? Apr 09 12:21:34 misterli: no gmag Apr 09 12:21:47 lol sry Apr 09 12:22:15 TheTrash: asked to see ur stacktrace tho Apr 09 12:22:22 hmm, is there a tool that could draw a call-graph from a tracedump? Apr 09 12:27:11 misterli: try this link http://developer.android.com/tools/debugging/debugging-tracing.html Apr 09 12:28:12 dmtracedump Apr 09 12:30:24 hello, I have a question regarding AsyncTask.. will the get() method cause the UI to be unresponsive? Apr 09 12:35:00 deleet i would imagine it does Apr 09 12:35:11 just use onPostResult or what it's called Apr 09 12:36:43 brx_, hmm, I guess that was mean for me? :) Apr 09 12:37:05 oh ye Mavrik Apr 09 12:37:25 anyway, I'd like a different view than traceview - more like profiler from googleperftools: http://google-perftools.googlecode.com/svn/trunk/doc/pprof-test.gif Apr 09 12:37:36 (I'm having trouble tracking from where the slow calls are coming from) Apr 09 12:40:00 xorgate: my problem is that I need to wait for the background thread to finish before proceeding with the remainder of my method (where the asynctask is declared) Apr 09 12:40:14 deleet, yes Apr 09 12:40:22 deleet, if you call .get() from UI thread your UI will stop Apr 09 12:40:23 deleet they youre doing it wrong Apr 09 12:40:34 the whole idea is to not wait for it Apr 09 12:40:35 xorgate: I'm not doing it wrong Apr 09 12:40:42 no, you're doing it wrong. Apr 09 12:40:42 sorry Apr 09 12:40:43 deleet, you usually do things you have to do after the async task in postExecute() inside the AsyncTask Apr 09 12:40:51 Hi i need some help with my android app can someone help me ? Apr 09 12:40:55 the whole point of asynctask is that it's asynchronous. Apr 09 12:41:03 MCHL_ just ask Apr 09 12:41:05 deleet, disable UI controls until that executes if you want to prevent user interaction without UI freezing Apr 09 12:41:08 MCHL_: there's a room full of people that can help you. Just ask your question./ Apr 09 12:41:31 lov, sometimes the whole point of asynctask is to do something without your graphical "job" indicator stuttering and freezing ;) Apr 09 12:41:49 On my activity i have 4 buttons, but i can't do 4 onClick methods. So how should i do ? Apr 09 12:41:49 i neveruse the get() but i thought it retuned the result rom doInBackground() after .execute() has been called Apr 09 12:42:05 mchl the View param is which button was clicked Apr 09 12:42:12 if (view == .. ) Apr 09 12:42:12 I understand it's async. I'm saving an image to disk and afterwards need to upload it (through another method). I can't use onPostExecute since the method isn't called by my app (but from a library) and after inspecting the source it's just a for (callback in callbacks) Apr 09 12:42:26 MCHL_: you can do 4 onClick methods. I have no idea what you're talking about. Apr 09 12:42:44 wlel he cant have 4 methods names onClick Apr 09 12:42:46 Mavrik: won't android 4.0+ crash with disk on main thread exceptions? Apr 09 12:42:50 haha im newbie i dont understand everything Apr 09 12:42:53 when using .get() that is Apr 09 12:43:01 s/everything/anything Apr 09 12:43:03 deleet, it'll just freeze and give ANR dialog Apr 09 12:43:07 MCHL_: consider thinking, then doing. Apr 09 12:43:13 deleet, anyway, I don't really get your usecase Apr 09 12:43:16 MCHL_ button.setOnClickListener(this) and in void onClick(View view) determine which button it was Apr 09 12:43:27 deleet, you have a task that saves an image to disk and you need to wait for the end for upload? Apr 09 12:43:28 seriously Apr 09 12:43:33 deleet, why aren't you triggering upload from within the task? Apr 09 12:43:47 Mavrik: yes but I'm not calling the upload process, a library is, I'm feeding it the image via a callback Apr 09 12:43:47 alternately, set the click annotation for different buttons to different names. Apr 09 12:43:57 deleet: and? Apr 09 12:44:15 xorgate so how to i "split" my buttons ? Apr 09 12:44:21 do* Apr 09 12:44:24 ... Apr 09 12:44:42 hey MCHL_ Apr 09 12:44:48 you realize you can have more than one function right? Apr 09 12:44:49 i've done several things Apr 09 12:44:52 and it works as: for (x in y) { write photo (my callback), upload photo (library) } .. since write photo will return immediately (since im just launching an async task), upload photo will have no content Apr 09 12:44:53 yep Apr 09 12:45:03 ok, and you realize that each button can be assigned a different function? Apr 09 12:45:16 deleet, hmm, and what invokes the callbakc? Apr 09 12:45:16 no Apr 09 12:45:21 MCHL_: well, they can. Apr 09 12:45:21 deleet, *callback? Apr 09 12:45:22 that's the problem actually Apr 09 12:45:28 explain. Apr 09 12:45:34 well Apr 09 12:45:34 Mavrik: the lib does, I just add it via an interface Apr 09 12:45:44 ? Apr 09 12:45:45 i dont know where to start Apr 09 12:45:46 lov you are going to give yourself a heart ttak lol Apr 09 12:45:51 MCHL_: http://developer.android.com/reference/android/view/View.html#setOnClickListener%28android.view.View.OnClickListener%29 Apr 09 12:45:54 MCHL_ you should do some tuts i reckon Apr 09 12:45:58 seriously. Apr 09 12:46:10 MCHL_: You should start here: http://developer.android.com/training/basics/firstapp/index.html Apr 09 12:46:46 deleet, hmm, why can't you pass an object implementing library's callback to asynctask so it can invoke upload? Apr 09 12:47:15 I UNDERSTAND Apr 09 12:47:17 That's fine Apr 09 12:47:19 visibility issues don't allow me to Apr 09 12:47:23 thanks Apr 09 12:47:32 deleet: I'm not sure what the issue is. Just pause until all of the callbacks have been called. Apr 09 12:47:36 Ok i thought it was less obivous Apr 09 12:47:47 lov: pausing the UI thread is what I'm trying to avoid :P Apr 09 12:47:53 but it seems that it is the only option Apr 09 12:47:55 so use an async task! Apr 09 12:47:57 christ Apr 09 12:48:02 do this in the background thread in the async task Apr 09 12:48:13 or even in just another thread Apr 09 12:48:28 you have to block like it or not, so do it in a thread that's not the UI thread. Apr 09 12:48:38 what lov says :) Apr 09 12:48:44 hm, good idea, I will try that Apr 09 12:48:45 thanks for the help Apr 09 12:49:19 yw Apr 09 12:51:11 should've thought of that, then I can just use a handler to give back control to the UI and dismiss a progress dialog for example Apr 09 12:57:31 Is there any reason not to go for a low minsdk if its possible? My app only requires build 3 Apr 09 12:58:35 the joy of testing against low API levels for implementation "quirks" (read: bugs) Apr 09 12:58:55 hehe Apr 09 12:59:26 think I'm gonna push it to at least build 7 Apr 09 12:59:37 i would say minSdk = 15 :D Apr 09 12:59:41 you should set API 8 as your minimum unless you REALL need those Droid 1 users Apr 09 12:59:44 *REALLY Apr 09 12:59:50 and honestly I'd realistically make it 10 Apr 09 12:59:58 froyo and lower is like 5% of the market Apr 09 13:00:07 GB is still roughly half, so you can't ignore it yet. Apr 09 13:00:14 4% at build 8 Apr 09 13:01:55 I think the app will be used by people 40 years and up, so Im thinking they have old devices too Apr 09 13:01:55 hehe Apr 09 13:02:10 lol wut Apr 09 13:02:24 parents give their kids the old devices :) Apr 09 13:02:29 g00s: hehe.. its a crossword helper Apr 09 13:02:46 lov: I would suggest 9 as you'll still target all 2.3.x Apr 09 13:03:02 9 was a bastard Apr 09 13:03:09 so is HC :) Apr 09 13:03:23 it's not that bad. only reason I dont use 8 as well is because of the camera apis Apr 09 13:03:26 my phone is still 2.2 :/ Apr 09 13:03:41 deleet: 0.1 % uses 9 Apr 09 13:03:57 more like 50% Apr 09 13:04:04 I think you're mistakened lol Apr 09 13:04:15 xorgate: mine too :) froyo ftw ! Apr 09 13:04:37 g00s can't even run my own game :0 Apr 09 13:04:46 if KLP has bluetooth low energy, i'll get a new n7 ; if not, iPad mini :D Apr 09 13:05:02 about 40% uses 10 Apr 09 13:05:02 ew ipad mini Apr 09 13:05:31 according to that new and supposedly more accurate dashboard reading Apr 09 13:05:57 maybe for your app? that's not the genenral consensus Apr 09 13:06:19 deleet: http://developer.android.com/about/dashboards/index.html Apr 09 13:06:39 am I reading it wrongly? Apr 09 13:06:49 the old method of collecting stats was definitely bad PR. but anyhow, the newer method probably makes sense for devs Apr 09 13:07:10 you can say whatever with statistics :) Apr 09 13:07:39 g00s: wasnt that much difference iirc Apr 09 13:08:13 maybe increased ratio of the newest builds Apr 09 13:08:36 Quacked: that doesn't seem right, number wise, but 40% for gb sounds accurate Apr 09 13:08:47 er, version number wise Apr 09 13:12:38 isnt it possible to get linked information in the dev console? I mean, I want to find out what device that user from Malaysia is using Apr 09 13:13:20 you have views of what devices your app is installed on, and you have information about what country.. but you cant link it together Apr 09 13:20:01 do I need to rephrase? hehe Apr 09 13:27:49 http://pastie.org/7385583 why is this resulting in http://pastebin.com/VDLhZMC0 this error? Apr 09 13:28:05 i make sure it exists before i open a filereader to it Apr 09 13:33:44 hi, I'm writing my own adapter starting from the CursorAdapter source. The reason is I need to do a lot of postprocessing on the results before I throw them in a list ( things that can't be done in sqlite ). I'm now doing this stuff in swapCursor() but that seems to be run on the ui thread ( I use a CursorLoader ) and slows down/freezes everything Apr 09 13:33:56 I was wondering if someone knows a good solution or has done something similar Apr 09 13:34:11 https://lh6.googleusercontent.com/-rJ2uZCHLxMw/UWQYq0LdS6I/AAAAAAAAEb0/NLMFU2PtTf0/s490/IMG_20130409_063059.jpg Apr 09 13:34:12 :) Apr 09 13:35:49 I was thinking of using an AsyncTask in the adapter code myself but: 1. it a pain to make sure the task is stopped when the activity is destroyed & such ( screen rotation,... ) 2. i'd have to call notifydatachanged() a lot, this would redraw the whole list everytime? Apr 09 13:47:57 http://pastie.org/7385583 why is this resulting in http://pastebin.com/VDLhZMC0 this error? Apr 09 13:48:41 why would you call notifyDataSetChanged a lot Apr 09 13:56:55 isnt it possible to get linked information in the dev console? I mean, I want to find out what device that user from Malaysia is using Apr 09 13:56:57 you have views of what devices your app is installed on, and you have information about what country.. but you cant link it together Apr 09 14:06:59 I have set android:textIsSelectable="true" in the textview and still when I execute the app, it shows TextView does not support text selection. Action mode cancelled. Apr 09 14:07:06 Can somebody please tell why this happens? Apr 09 14:07:22 Also, I tested my app on more than 200 devices with monkey, and 3 of them gave indexoutofboundsexception, "invalid index 19, size is 0" (index varying) on HashMap item = mylist.get(position); . Any ideas why? Apr 09 14:07:24 xpl0iter: use an EditText Apr 09 14:08:39 Quacked how can we know? maybe you wrote buggy code Apr 09 14:12:02 Quacked: because you suck at writing solid code, that's my idea. Apr 09 14:12:13 monkey tests are repeatable; repeat it and see what happens. Apr 09 14:15:39 WhereIsMySpoon No I don't want my text to be in EditText, I specially need a textView Apr 09 14:15:43 forgot to add code :) .. here it is http://pastebin.com/L4RCCNR2 Apr 09 14:15:49 So there is no way of making it work? Apr 09 14:16:00 xpl0iter: android:textIsSelectable is deprecated Apr 09 14:16:03 in textview Apr 09 14:16:07 why do you need a textview Apr 09 14:16:14 xpl0iter: isfocusable? Apr 09 14:16:22 or focusable (I forget) Apr 09 14:16:25 wait Apr 09 14:16:32 sorry i totally misread your question Apr 09 14:16:36 i thought you put textIsEditable Apr 09 14:16:41 ignore me Apr 09 14:16:57 aah ok! :) So why is it not working? Apr 09 14:17:04 deleet Ok let me try it! :) Apr 09 14:17:32 yea i just googled it, seems you need to set focusable Apr 09 14:18:00 http://pastie.org/7385583 why is this resulting in http://pastebin.com/VDLhZMC0 this error? Apr 09 14:19:37 haha, my touchpal keyboard crashed when I run monkey tool Apr 09 14:20:37 I thought to myself, "I'm going to regret looking at quacked's code" Apr 09 14:20:41 and then I clicked the link Apr 09 14:20:45 and, yep, I regretted it. Apr 09 14:20:46 haha Apr 09 14:20:47 deleet strill the same error: W/TextView(696): TextView does not support text selection. Action mode cancelled. Apr 09 14:20:51 still* Apr 09 14:21:25 lov: whats wrong with it? :P Apr 09 14:21:52 xpl0iter: http://stackoverflow.com/questions/8231172/linkify-textisselectable maybe Apr 09 14:22:06 Quacked: I'm not even going to try figuring out what it does. Documentation would help, along with proper naming, etc. Apr 09 14:22:12 "mylist" doesn't tell me much. Apr 09 14:22:13 mornin lov Apr 09 14:22:14 yeah Apr 09 14:22:19 good morning kaneda^ Apr 09 14:22:32 ohhh kaaanedaaaa... Apr 09 14:22:37 wait, that's canada :P Apr 09 14:23:02 common mistake Apr 09 14:23:18 WhereIsMySpoon No actually, my textviews are not clickable and doesn't contain any links! Apr 09 14:24:02 lov: I have a bad habit of fixing documentation and such just before release Apr 09 14:25:44 lov: but that code I pasted is parsing a html document, grabbing a few strings from it and putting them into a HashMap to display in two columns in a ListView :P Apr 09 14:28:47 why wont the event on my OK button for the AlertDialog fire? http://pastebin.com/TKxTHT9b Apr 09 14:31:09 anyone please? Apr 09 14:36:38 oboot: how did you figure out that its not being fired Apr 09 14:37:11 mikedg, i have some statements there that print to logcat Apr 09 14:37:27 Log.i("myapp", "i am here"); Apr 09 14:40:52 oh it did fire. i moved Log.i("myapp", "i am here"); outside of the try{} Apr 09 14:43:21 hey Apr 09 14:43:22 Hi, got a small question. How do I reset an app. I'm working on an installer where the information is based loaded based on a key. The user can add a log of how the install went. But if a user enters a new key all activities/fragments contain the old data. Is there a quick method to destroy all existing activities and force android to execute onCreate again? Apr 09 14:43:38 just got the adt bundle Apr 09 14:43:49 got an error running adb though Apr 09 14:44:01 rymate@rymate-Aspire-5551 ~/adt-bundle-linux-x86_64-20130219/sdk/platform-tools Apr 09 14:44:01 > ls Apr 09 14:44:01 aapt aidl dexdump fastboot llvm-rs-cc renderscript Apr 09 14:44:01 adb api dx lib NOTICE.txt source.properties Apr 09 14:44:01 rymate@rymate-Aspire-5551 ~/adt-bundle-linux-x86_64-20130219/sdk/platform-tools Apr 09 14:44:01 > ./adb connect rymate-phone Apr 09 14:44:03 bash: ./adb: No such file or directory Apr 09 14:46:56 ldd adb Apr 09 14:47:13 are you on a 64bit linux? Apr 09 14:47:23 sounds like no Apr 09 14:49:01 rymate@rymate-Aspire-5551 ~/adt-bundle-linux-x86_64-20130219/sdk/platform-tools Apr 09 14:49:01 > uname -a Apr 09 14:49:01 Linux rymate-Aspire-5551 3.8.0-17-generic #27-Ubuntu SMP Sun Apr 7 19:39:35 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux Apr 09 14:49:07 I do believe I am Apr 09 14:49:28 and ldd adb said it's "not a dynamic executable" Apr 09 14:50:41 file adb Apr 09 14:51:37 hi everyone Apr 09 14:52:12 adb: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, not stripped Apr 09 14:52:38 why is there a 32 bit executable in the 64 bit download Apr 09 14:52:39 lol Apr 09 14:54:41 do you know of any reason why db.query with selection colName > ? and passing argument "0" always give an empty cursor (count=0) and colName > 0 with no argument give the correct result (items where colName value is > 0) Apr 09 14:55:49 unit tests with message "balbalba should be null" checking string length == 0 make me :( Apr 09 14:56:35 :D:D Apr 09 14:58:23 rymate1234: yeah, it's silly. You need the 32 bit compat libraries for your OS. Apr 09 14:58:47 I'm running ubuntu, how do I install them? Apr 09 14:59:58 install ia32-libs Apr 09 15:00:26 You might need to do Apr 09 15:00:28 echo "foreign-architecture i386" | sudo tee /etc/dpkg/dpkg.cfg.d/multiarch Apr 09 15:00:29 first Apr 09 15:01:52 oh crap Apr 09 15:02:17 why did I ever install gnome 3.8 on this installation Apr 09 15:02:19 :( Apr 09 15:02:34 this may be some time Apr 09 15:03:08 :D Apr 09 15:03:15 * kaneda^ is still on gnome2, and trying unity Apr 09 15:03:21 http://pastebin.com/YKvpwLKB Apr 09 15:03:31 hello, I have lots of weird behaviour in a webview on android 3.1. Seems the screen is only updated after touching the screen. touches arrive at the wrong icon. (the icon that was at that place before the last scroll). on android 4.2 it works and also on 3.0 there doesnt seem to be any issues Apr 09 15:03:47 any guesses? cant find anythin on google Apr 09 15:04:01 android 3.1 bug? Apr 09 15:04:54 isn't 3.1 essentially dead? Apr 09 15:05:05 Yeah Apr 09 15:05:19 3.2 is listed at 0.2% of users, 3.1/3.0 isn't even listed Apr 09 15:05:31 I wouldn't worry about it unless you have some weird use case of custom hardware that can't be ugpraded Apr 09 15:06:24 i wouldnt worry about 3.1 Apr 09 15:06:31 i compile for 2.3.3 and target 4.2 Apr 09 15:06:56 Hopefully you don't compile against 2.3.3 Apr 09 15:07:47 Hi. Apr 09 15:08:16 its an lenovo idea pad and there dont seem to be further updates Apr 09 15:08:17 SimonVT, why not? Apr 09 15:08:22 it's 40% of the market stiill isnt it? Apr 09 15:09:18 Elaborate what you mean by "compile for 2.3.3" Apr 09 15:09:24 SimonVT, minSDK Apr 09 15:09:25 it gets a bit better when I compile against 2.3. First I thaught its gone but actualy there is just another bug preventing the first bug from beeing visible at first Apr 09 15:09:26 That you support 2.3.3, or that your build target is 2.3.3? Apr 09 15:09:31 Then say minSdk ;/ Apr 09 15:09:31 SimonVT, minSDK Apr 09 15:09:42 SimonVT, doesnt minSDK essentially mean "compiled for compat wtih" Apr 09 15:09:44 Or that you support 2.3.3 Apr 09 15:09:44 minSDK :) Apr 09 15:09:57 minSdk means min sdk you support Apr 09 15:10:06 all of them should be backwards compatible as far as I understood Apr 09 15:10:10 right, and if you support it then it is compiled for compatibility Apr 09 15:10:30 any of you noobs in st louis Apr 09 15:10:56 nope Apr 09 15:11:06 st louis, who needs that brotherly love crap anyways Apr 09 15:11:11 src folder mean "source" what is the meaning of other folders ? Apr 09 15:11:23 bin, binaries, lib, libraries Apr 09 15:11:27 res, resources Apr 09 15:11:28 I mean res , gen, bin, lib Apr 09 15:11:31 ah, nooo ... its 3.2 that has the bug. 3.1 is working Apr 09 15:11:33 gen, generated Apr 09 15:12:26 but the working 3.1 is also on a lenovo thinkpad (4.2 available). the not working 3.2 is on the ideapad. Apr 09 15:12:42 I use loads of scrolling divs Apr 09 15:13:10 Is Maven cool? Apr 09 15:13:39 andrewcarter, depends on your definition of cool :D Apr 09 15:13:50 andrewcarter, some people hate it with a passion, others think it's the only way to do things Apr 09 15:14:06 some aspects of maven are cool Apr 09 15:14:17 the large amount of xml boilerplate isn't Apr 09 15:14:37 less, and better than ant, though Apr 09 15:15:02 kaneda^: so it's good, but it *isn't* cool, right? Apr 09 15:15:26 andrewcarter, it's probably useful to know, since it can make building large projects far easier by providing dependencies that can be managed/updated/downloaded automatically Apr 09 15:15:36 Why this have android:minSdkVersion "SDK" not ApiLevel name ? Apr 09 15:16:22 does it matter Apr 09 15:16:24 it doesn't Apr 09 15:16:59 pfn: It matters more than you know Apr 09 15:17:09 :3 Apr 09 15:17:17 anyone know how i can read from a stream that is continuous with no end. IT seems to be read() blocking if the buffer does not fill. Apr 09 15:17:29 pfn: I just want something that does what maven does with dependancies, without having to use maven Apr 09 15:17:40 andrewcarter, :D Apr 09 15:17:41 mmoassistdev1, use a non-blocking read mechanism Apr 09 15:17:49 andrewcarter, does it matter => relating to minSdkVersion Apr 09 15:17:55 pfn: <3 Apr 09 15:17:57 andrewcarter, sbt Apr 09 15:18:03 is what I enjoy using Apr 09 15:18:09 pfn: what's that? Apr 09 15:18:15 scala build tool Apr 09 15:18:30 * rymate1234 digs himself out of dependency hell Apr 09 15:18:44 kaneda^: Thanks :) Apr 09 15:18:49 np Apr 09 15:18:58 pfn: looks pretty Apr 09 15:19:18 andrewcarter, for simple build configurations, it's exceedingly easy to use Apr 09 15:19:46 The new gradle thing they're working on does what maven does with dependencies, without it being maven Apr 09 15:19:49 pfn: I think I may actually give that a go Apr 09 15:19:59 SimonVT: yea I saw that Apr 09 15:20:03 that's looking really nice Apr 09 15:20:09 SimonVT: when is that supposed to be released? Apr 09 15:20:14 the gradle build system is gonna break everything Apr 09 15:20:16 SimonVT, i've seen linkedin using gradle for their builds Apr 09 15:20:22 I have no idea Apr 09 15:20:28 it looks nice Apr 09 15:22:02 they both use Aether for dependency resolution Apr 09 15:22:11 you can do the same thing with Ant, technically, it's just less integrated Apr 09 15:22:21 it's ugly Apr 09 15:22:33 everything about Ant is ugly Apr 09 15:22:35 lots of taskdefs and bullshit xml tags to load dependencies into some managed location Apr 09 15:22:47 it needs squashed like its name suggests Apr 09 15:26:27 JakeWharton: what do you think about the new "official gradle-based thing? Apr 09 15:26:29 how will i go about using a non-blocking read mechanism? Apr 09 15:26:37 mmoassistdev1, use nio, that's how Apr 09 15:27:01 jjnye: it lacks far too many things for me to want to use it at its current state but it's a step in the right direction Apr 09 15:27:34 * pfn hacks on his sbt android plugin as necessary to do the things he needs Apr 09 15:27:36 ok i been trying nio what methods should i use Apr 09 15:27:45 mmoassistdev1, a selector channel, and google Apr 09 15:27:50 i want to get the output of getevent without blocking Apr 09 15:28:01 channel is still blocking Apr 09 15:28:06 you can't read files with a selector channel Apr 09 15:28:08 java is stupid like that Apr 09 15:28:17 damn Apr 09 15:28:25 use some ndk code to do nbio Apr 09 15:28:32 feed it into java via events Apr 09 15:28:45 or use ndk to convert the output of getevent into a socket Apr 09 15:28:49 and use nbio from java Apr 09 15:30:14 thx i will try that Apr 09 15:31:03 java only supports doing nbio off of selectorchannels, and you can only get selectorchannels out of sockets Apr 09 15:32:19 changin android:hardwareAccelerated="true" seems to have an effect. still the display isnt updated but the link gets highlighted and stays highlighted. when I tap somwhere else on the screen it updates the step before Apr 09 15:32:34 mmoassistdev1, I suppose you can use a java.nio.channels.Pipe Apr 09 15:32:43 use a thread to do blocking reads and dump it into a pipe Apr 09 15:32:54 and do your nbio against the sink channel Apr 09 15:33:15 s/sink/source Apr 09 15:33:23 but if you have a thread already, might as well not even bother with nbio Apr 09 15:36:00 awsome thats the direction i needed thx pfn. I been stuck on this for months Apr 09 15:59:00 yay for android, where -1 is OK and 0 is cancelled! // http://developer.android.com/reference/android/app/Activity.html#onActivityResult(int, int, android.content.Intent) Apr 09 16:00:41 Yay for android where there's constants for you to use so you don't have to care about the value Apr 09 16:01:33 yeah, right. constants over convention. Apr 09 16:06:43 Is there any method to push update to app without a store, on test devices , its very difficult to send apk via email to all my tester. Apr 09 16:08:01 blue_pearl: add an auto-update feature to the app that checks a url Apr 09 16:08:43 Ge0rG, and then what? Prompt users to download/reinstall? Apr 09 16:08:56 actually, that's not a bad idea... Apr 09 16:09:32 ian_ford: just launch a download of the apk, and once it is finished, it is three clicks for the user Apr 09 16:10:20 Ge0rG, ok, so the link will host the apk, but what if my app stores some user data ? if reinstall won't it be lost? Apr 09 16:10:23 Ge0rg, would you download in the background of your app or open a browser to the url? Apr 09 16:10:38 And if the former, how do you prompt for install from within an app? Apr 09 16:11:03 blue_pearl: no, it wont Apr 09 16:11:21 ian_ford: you should be able to fire an intent to open the apk, me thinks. Apr 09 16:11:22 Ge0rG, ok. Apr 09 16:11:30 ian_ford: downloading within the app requires internet permissions though Apr 09 16:11:39 Natch Apr 09 16:11:54 You'd need internet permissions to check for an update anyway though Apr 09 16:11:55 yeah? Apr 09 16:12:05 Ge0rG, ok, i will keep it in mind will add the internet permission Apr 09 16:12:49 blue_pearl: just call the browser, it is easier to implement and not too bad from the UX perspective, imho Apr 09 16:12:57 If i'm planing to build a Modul-based webapp which uses GCM.. How's the best way to load modules when requested? Like.. There are thousands of Modules for the app and only user who paid for specific modules will get it and be able to use it? Apr 09 16:12:57 ian_ford: oh, correct! Apr 09 16:13:30 Ge0rG, ok thats nice idea…but is there anyway to do it without reinstalling the app? Apr 09 16:13:57 blue_pearl: no Apr 09 16:17:46 Ge0rG, well i may be wrong…but Facebook did push a silent update to its Android app, from outside Google Play , how did they do it can anyone have any idea ? http://androidcommunity.com/facebook-looks-to-be-pushing-android-app-update-outside-the-play-store-20130314/ Apr 09 16:18:22 download the apk, launch it Apr 09 16:18:53 blue_pearl: downloading without notice is not hard, installing is... Apr 09 16:19:12 they weren't installing without notice Apr 09 16:19:32 yeah, no silent update there Apr 09 16:19:40 ok Apr 09 16:19:51 thanks Apr 09 16:23:41 anyone know why my jpg background shows up on a Sony S Tablet but not on a Galaxy Nexus? Apr 09 16:24:12 chainfire: I'm seeing some strange behaviour with SuperSu, can you tell me if its intended or not? Apr 09 16:25:20 If I have the SuperSu binary installed and I then uninstall the app, other apps can get root access every time they ask Apr 09 16:26:34 Amphoras yes, if you have only the binary installed and not the UI, it'll grant access to everyone Apr 09 16:26:37 Anybody in here do any work with AChartEngine? Apr 09 16:27:31 Chainfire: thanks, with Superuser it denied by default if the app wasn't present so just checking it wasn't something I had done Apr 09 16:30:27 hi Apr 09 16:31:17 I have an android.app.Notification instance and I would like to browse it's view hierarchy (for jelly bean notifications), any idea ? Apr 09 16:37:11 If anyone knows how to properly update a ListView inside of a fragment, inside a ViewPager, please tell me. Apr 09 16:37:17 when I open url connection from android on rooted phone it gives error of too many redirects Apr 09 16:37:46 when I use on phone using wifi and proxy it cannot even resolve proxy Apr 09 16:38:13 when using data with 3g I get too many redirects error Apr 09 16:39:31 mms_, usually you're behind the NAT on a phone Apr 09 16:39:57 so maybe it cant resolve, and then it redirects, and then it cant resolve, and it redirects, etc Apr 09 16:40:07 jdawes: change the data in the adapter and call notifyDataSetChanged() Apr 09 16:40:21 Estragon: Notifications exist in a different process so you can't really attach hierarchy viewer Apr 09 16:40:43 JakeWharton: on the ViewPager's adapter? Or on the ListView's Adapter? Apr 09 16:40:48 ListView Apr 09 16:40:53 hey, I am interested in making my own custom changes the to Dalvik VM and I would like to use Eclipse to import the AOSP dalvik folder. Whats a good way to do this and have eclipse resolve the dependencies? I noticed http://source.android.com/source/using-eclipse.html and AOSP development/ide but those seem to be generating eclipse files for other projects in AOSP, not for dalvik Apr 09 16:41:02 JakeWharton: well in fact im not looking for hierarchy viewer. Im only looking for a way to extract text from it programmatically Apr 09 16:41:05 OK, maybe I missed something, I could have sworn that didn't work. Apr 09 16:41:32 mmoassistdev1, been stuck for months? oww Apr 09 16:45:36 fallout: do you want to modify the DVM, or do you want to work on the frameworks? They're two very different things. Apr 09 16:46:08 lov: I want to work on the DVM Apr 09 16:46:35 fallout: then you may not wish to use eclipse. Apr 09 16:47:04 The link you gave is generally for hacking on frameworks or preloaded apps Apr 09 16:47:07 I have been using Emacs for a while and the command line tools, but it's just not cutting it for understanding large blocks of new code, I'm missing the Call Hierarchy for instance in Eclipse Apr 09 16:47:42 I definitely am editing the files under aosp dalvik/ folder, basically files here https://github.com/android/platform_dalvik Apr 09 16:48:02 I can use other IDEs if they're supported Apr 09 16:48:18 ok, my mistake Apr 09 16:49:00 You'll probably need to pull in the appropriate content of /libcore Apr 09 16:50:18 Indeed, I have the entire AOSP tree, which includes that, but seems dalvik does have a bunch of external dependencies that are clearly resolved in Android.mk files but Eclipse is blind and would need manually fixing all of these. Was hoping this is a common case for development and there are some conversions or guides. Sadly couldn't find any Apr 09 16:50:33 kaneda^: what can I do then ? I am doing this url open in code Apr 09 16:50:47 mms_, i'm not sure Apr 09 16:51:06 kaneda^: when I am in corp env it says cannot find auth challenge etc.... Apr 09 16:51:07 fallout: I'm afraid I don't know offhand, honestly. Apr 09 16:51:20 kaneda^: how come browser can open pages Apr 09 16:51:21 mms_, it sounds like the NAT is stopping you from seeing the service Apr 09 16:51:30 or perhaps it has a 302 redirect Apr 09 16:52:20 but if I run same program without android from desktop just plain java it runs fine Apr 09 16:52:32 only from android it has these issues Apr 09 16:53:11 JakeWharton: I suppose I should have a variable to hold the ListView in my fragment? Or can I get away with just having a variable for the adapter to the ListView? Apr 09 16:53:51 JakeWharton: The real question: Do I have to call listView.getAdapter().notifyDataSetChanged() or adapter.notifyDataSetChanged()? Apr 09 16:54:32 both of the methods would call the same thing Apr 09 16:54:34 lov: no problem, thanks for considering my issue Apr 09 16:54:39 jdawes, I'm doing exactly what you're asking about in a project right now Apr 09 16:54:42 That was my understanding Apr 09 16:54:50 ian_ford: Is it working for you? lol Apr 09 16:55:05 But it doesn't seem to do what I'm wanting. Apr 09 16:55:09 Nothing, in fact. Apr 09 16:55:17 jdawes: Yeah, it's working great. I pass a single list view from fragment to fragment, update the adapter as needed, and then call notifyDataSetChanged() Apr 09 16:56:29 i dont think thats good practice Apr 09 16:56:32 I have a ListView in a layout, in a single fragment, in a ViewPager, I've setup an update method in the ViewPager's adapter to call "listFragment.updateList()" which, in turn, calls adapter.notifyDataSetChanged() on the adapter for the ListView but it doesn't seem to do anything. Apr 09 16:56:53 fallout: no problem. Apr 09 16:57:01 mikedg: you talking to me? Apr 09 16:58:47 jdawes: are you using a custom adapter for your ListView? Could it be something in there? Apr 09 16:59:00 ian_ford: Yes I am. Apr 09 16:59:39 ian_ford: What do you mean? Is there another method I need to override besides the constructor and getView? Apr 09 17:00:01 jdawes: I don't think so, just fishing for possible explanations Apr 09 17:00:27 jdawes: Not sure why your list view isn't updating. I'm literally doing the same thing. ListView inside a ViewPager inside a Fragment. Updates are working fine. Apr 09 17:00:51 ian_ford: The update is coming from a database change, or it should be. Apr 09 17:01:18 ian_ford: When the user presses back from an activity to come to the ViewPager I'm trying to update items in a custom ListView to account for a change in data/score Apr 09 17:01:40 jdawes: Is it possible that the data you're passing back to the ListView hasn't *actually* changed for some reason? Apr 09 17:03:14 ian_ford: I don't think so. You see, the user will answer a question and if correct it will go back to the question selection screen which will update stuff based on the database, back from there will take you to my ListView which shows an overall score/data list which is based off of the same database. Apr 09 17:04:09 Wait, when I update the ListView do I also need to update the ViewPager? Apr 09 17:04:25 I don't *think* so Apr 09 17:04:30 no you dont Apr 09 17:04:36 Well, damn. Apr 09 17:05:05 Oh hey guys, I was looking around the interwebs for how to stay logged into my app even when the app closes. There's lots of things like AccountManger Sharedpreferences OAuth etc. I'm not really sure what I should be looking at .. Apr 09 17:05:08 I'll put up a pastebin for anyone interested, just give me a sec to get rid of sensitive info. Apr 09 17:05:31 I'm outta here for now. Good luck with that jdawes Apr 09 17:06:35 anyone? Apr 09 17:07:38 coco89: ye use shared prefs Apr 09 17:07:58 brx_, oh okay, so I don't need Oauth or account manager? Apr 09 17:08:11 im hungry but cant go anywhere in class. Apr 09 17:08:16 There are a lot of things you should be looking at, but it sounds like you're not going to. Apr 09 17:08:36 lov, I will Apr 09 17:09:07 Well, we need a definition of "logged in" to start out with. Apr 09 17:09:22 visual basic is lame. who even uses that lang anymore. Apr 09 17:09:37 lov, as in the user has already posted their log in details to the database Apr 09 17:09:39 mmoassistdev1: you brought it up. Apr 09 17:09:39 why does java app open url connection and can read fine but from android it comes back saying too many redirects and fails Apr 09 17:09:40 mmoassistdev1: .net devs Apr 09 17:09:56 im in class right now visual basic 101 Apr 09 17:09:59 how to fix it ? Apr 09 17:10:13 mmoassistdev1: I'm going to tell you something, and I want you to realize that I mean only for the best Apr 09 17:10:20 mmoassistdev1: you need to get up, leave the class, and not come back. Apr 09 17:10:45 anyone actually teaching visual basic in 2013 is literally a criminal Apr 09 17:10:47 mmoassistdev1, sounds like you're in the wrong class Apr 09 17:10:47 OK, if someone doesn't mind reading through my code I'd love to know why my ListView doesn't update when a user comes back from an activity. Apr 09 17:10:48 https://gist.github.com/jdawes/2e33d2ba0b4f9f4a8e0e Apr 09 17:11:06 jdawes, you need to notifyDataSetChanged onResume Apr 09 17:11:10 brx_, I don't need oauth or account manager? Apr 09 17:11:11 i need the stupid class for my degree Apr 09 17:11:12 mms_: use the right damn url Apr 09 17:11:20 * brx_ gets the defibulator ready Apr 09 17:11:25 lov: same url used dude Apr 09 17:11:36 coco89: elaborate on what you said. What do you mean "posted their login details to the database" Apr 09 17:11:40 reading some thing here http://stackoverflow.com/questions/11705000/android-url-openstream-gives-too-many-redirects-ioexception Apr 09 17:11:43 jdawes, or your adapter is null when you resume Apr 09 17:11:49 are you the same guy that really, really wants to expose his database to the internet? Apr 09 17:12:00 mms_, then it's because your url is giving too many redirects Apr 09 17:12:14 mms_, iirc, you can specify the redirect depth a urlconnection will follow Apr 09 17:12:14 i'm going to expose my database to your internet Apr 09 17:12:26 hi Apr 09 17:12:28 pfn: but from java app it works fine....only when i put that code in android activity I get such error Apr 09 17:12:31 mmoassistdev1, and it sounds like you're in the wrong program Apr 09 17:12:32 lov: I've already implemented the login page which posts the user's login details to a php script which checks against the database for any results and yes I've secured it Apr 09 17:12:46 I have implemented a code in android Apr 09 17:12:50 coco89: ok, and? Apr 09 17:12:57 but it is not working properly Apr 09 17:13:00 pfn: I check for that and don't update if it is but I've debugged and it's not null. Apr 09 17:13:05 you've written a page that verifies that a user's credentials "match" what's in the database (we'll ignore the idea of hashing and salting for now) Apr 09 17:13:11 now what? Apr 09 17:13:19 papa07672: cool story bro. Apr 09 17:13:28 papa07672: me too, high five bro! Apr 09 17:13:29 hii lov sir Apr 09 17:13:32 jdawes, then your data isn't populated to update Apr 09 17:13:35 you still remember me Apr 09 17:13:35 yea im just using school to pay the bills for now rely i can learn all this on my own Apr 09 17:13:40 papa07672: no actually I don't Apr 09 17:13:46 pfn: What do you mean by populated to update? Apr 09 17:13:47 lov, and the app checks the results to see whether the result is true or false, and opens the main activity when true. Now I just want the user to stay logged in (go straight to the main activity) when the user closes and reopens the app. Until the user specifically pressed log out Apr 09 17:13:56 jdawes, you said it's not updating, well, you have nothing to update then Apr 09 17:14:03 mmoassistdev1: if you're going to a school that is ACTUALLY teaching visual basic you seriously need to march down to the head office and demand a refund. Apr 09 17:14:06 I'm not joking here. Apr 09 17:14:07 I'm not being flippant. Apr 09 17:14:12 I have talked to you last time ....okk I am making my final yeaer project Apr 09 17:14:15 This is literally a waste of your time and you need to get your money back. Apr 09 17:14:16 mmoassistdev1, VB is a part of MIS programs Apr 09 17:14:34 i want my cis degree Apr 09 17:14:42 pfn: I don't think that's true but I'll give it a check now. Apr 09 17:14:43 in that i am showing a splsh screen Apr 09 17:14:53 jdawes, or one of the many things you're nullchecking is null Apr 09 17:15:01 jdawes: are you using clear() and add() on your adater or just recreating a new adapter with a new datatase? Apr 09 17:15:02 but the screen is not freezing for 3 second Apr 09 17:15:11 dataset* Apr 09 17:15:19 coco89: use a shared preference value or something. Apr 09 17:15:22 lov, VB.NET is surprisingly in wide use ;p Apr 09 17:15:50 kaneda^, only amongst the non-programming crowd Apr 09 17:15:55 yea for ppl that cant program Apr 09 17:15:59 lov, okay, so not oauth? sessions, tokens Apr 09 17:16:07 i'll look into shared preferences then Apr 09 17:16:08 coco89: what are you authing? Apr 09 17:16:09 pfn, i *shrug* heavily at that, VB.NET and ASP.NET are used by a lot of people Apr 09 17:16:18 pfn, unforutnately ASP.NET is the choice for government in the US AFAIK Apr 09 17:16:28 coco89: you're not actually doing anything is the main problem. Your php page doesn't pass back an auth token or anything. Apr 09 17:16:30 lov, nohting, i dont know what oauth is, i was just wondering whether i'd need to look into it for this Apr 09 17:16:33 kaneda^, well, it's govt work, what do you expect Apr 09 17:16:38 All it does is return a "yes/no" return value for "did the credentials match" Apr 09 17:16:39 pfn, true that ;) Apr 09 17:16:47 kaneda^, not all govt contractors are vb, though Apr 09 17:16:48 http://pastebin.com/wDJz32YF why the splash is not waiting for 3 second Apr 09 17:16:56 pfn, i'm aware, i used to work for military contractors Apr 09 17:17:04 and guess what, they used JAVA Apr 09 17:17:09 and VBScript Apr 09 17:17:12 :D Apr 09 17:17:14 kaneda^, yet another lowest common denominator Apr 09 17:17:16 lov, I see, I'd like the app to know who the user is though, so that when I implement another query on the main activity. It will send a query based on the user who's logged in Apr 09 17:17:19 pfn, indeed Apr 09 17:17:26 coco89: have you done a google search for oauth? Apr 09 17:17:32 reading back, lol lov Apr 09 17:17:34 coco89: just store the user's name in shared preferences. Apr 09 17:17:46 that's what happens with the military contracts to the cheapest/lowest bidder Apr 09 17:17:51 just make the username random Apr 09 17:17:52 s/with/when/ Apr 09 17:17:57 lov, what does myself and oauth have in common? Apr 09 17:18:01 brx_: I don't know. I'm not using either. I just call adapter.notifyDataSetChanged(). The list items are created by checking a database that was just modified. Apr 09 17:18:06 lov, three-legged :D Apr 09 17:18:10 ba dum tsch Apr 09 17:18:27 lov, ah okay. And yes I have but I didn't wanna read much into it not knowing whether it's what I needed but so far it looks like all i need is shared preferences Apr 09 17:18:27 kaneda^: good luck with your bizarre deformity I guess Apr 09 17:18:30 http://pastebin.com/wDJz32YF why the splash is not waiting for 3 second Apr 09 17:18:33 lov, it's...nvm Apr 09 17:18:45 papa07672: how long is it waiting Apr 09 17:18:55 less than 1 sec Apr 09 17:18:57 :( Apr 09 17:19:05 splash screen? ew Apr 09 17:19:23 by the time that 3 seconds is up i'll have uninstalled the app andl eft a 1 star rating Apr 09 17:19:25 a splash screen that is waiting, even though it could be finished.. ewww Apr 09 17:19:33 speakingcode-wor: second that! Apr 09 17:19:33 lov, thanks Apr 09 17:19:34 splash screen with audio? double ew Apr 09 17:19:50 also the music is not coming Apr 09 17:19:56 yeah Apr 09 17:19:57 Yay, no sound Apr 09 17:19:58 thts always nice when you try new apps in silence areas... Apr 09 17:20:05 hmmmm no sound Apr 09 17:20:13 papa07672: android has anti malware signatures encoded Apr 09 17:20:14 you're not helping him. Apr 09 17:20:14 lov, btw if I use shared preferences it will still know who was the last person who logged in when the app is reopened right? Apr 09 17:20:19 i guess my wife want to kill developers like papa07672 Apr 09 17:20:21 your app looks like malware so android is breaking it Apr 09 17:20:23 OK, what happens when an adapter has notifyDataSetChanged() called? Apr 09 17:20:28 the next time i try an app while she already is asleep Apr 09 17:20:31 coco89: why don't you read the documentation on SharedPreferences? Apr 09 17:20:43 Nevermind I think I've figured it out. Apr 09 17:20:44 lov, becuase I will :) Apr 09 17:20:53 like in 5 minutes heh Apr 09 17:21:04 kroot: morrildl_: What are the codes of conduct in #android-dev? Apr 09 17:21:06 HEH. Apr 09 17:21:08 huehue Apr 09 17:21:17 whenever lov asks you a question that isn't a yes/no question, the only acceptable answer is 'yes' Apr 09 17:21:17 my phone is on vibrate 24/7 Apr 09 17:21:29 lov: from my exeprience i would say, because he has a strong aversion against reading docs :D Apr 09 17:21:34 vibrator 24/7 Apr 09 17:22:11 timroes, :D nah for real I will read it I promise Apr 09 17:22:21 joar`: morrildl may or may not be awake. Apr 09 17:22:38 joar`: they're the same as Wheaton's Law Apr 09 17:22:39 joar`: we're mostly dogpiling because it's an awful question asked in an awful way. Apr 09 17:22:40 timroes, I get butterflies before reading docs so I need to mentally prepare myself Apr 09 17:22:40 dan mordor is my favorite programmer Apr 09 17:22:51 joar`: the code of condust is root/custom roms head to #android-root and no advertising, jobs or otherwise Apr 09 17:22:59 joar`: https://twitter.com/wilw/statuses/5966220832 Apr 09 17:23:10 also, dicks, lots of dicks Apr 09 17:23:15 coco89: i guess you would get attested that as an illness preventing you from becoming a computer scientist :D Apr 09 17:23:59 lov: Source was provided, question asked in a clear way, subject provided clarification upon request. Apr 09 17:24:13 timroes, haha perphaps or maybe I look at the docs and I shit myself when i see all the keywords I don't understand :D There should be an app that crawls android docs and dumbs it down a bit :P Apr 09 17:24:49 joar`: it was asked in a way that implied that little investigation was done. But, fair point. Apr 09 17:25:02 oh shoot he timed out. Apr 09 17:25:06 and splash screens with sound? Look at all the games in the store, I've seen many with splash screens, doesn't mean that it's a good thing, but it's not a question from the blue skies of insanity. Apr 09 17:25:09 I was going to ask if he attached the debugger Apr 09 17:26:01 coco89: if the docs are intimidating you probably need to back up to general java development first, android assumes a farily intermediate-advanced knowledge of java off the top Apr 09 17:26:25 tough crowd today good thing i got my questions outa the way for today lol Apr 09 17:26:39 is he making a game tho? splash screen is fine if you're showing some UI while heavy loading is being done in background, but not just to have one for the sake of it Apr 09 17:27:08 it's to make the app look like a big deal Apr 09 17:27:09 I'm a bit afraid. I actually have a question and the issue has been poorly researched by me, since I don't know where to start. Apr 09 17:27:23 joar`: generally, start by typing it into google Apr 09 17:27:29 the user expects to access functionality and data as seamlessly and quickly as possible, showing a splash screen for no reason violates that expectation Apr 09 17:27:55 joar`: I promise to be gentle if you ask, as long as you show that you did a little bit of research on your end first. Apr 09 17:28:02 joar`: whats your question? at the end of the day, even if the responses are snarky or blunt, don't take it personally Apr 09 17:28:03 http://pastebin.com/wDJz32YF why the splash is not waiting and also the sound is not comming ?? any Idea Apr 09 17:28:18 a splash screen implemented like that is a terrible idea anyway Apr 09 17:28:25 papa07672: have you attached the debugger to ensure that those lines are actually reached? Apr 09 17:28:29 joar`: you can stil ask it here, and ppl might point you on where to start (thought not necessarily very friendly) Apr 09 17:28:30 * coco89 has had to deal with a ton of snarky comments :D it only makes you stronger Apr 09 17:28:37 ^^^ Apr 09 17:28:47 joar`: but still saves you the need to figure out yourself where to start :) Apr 09 17:28:51 #android-dev has hit it's tipping point when i'm the most friendly Apr 09 17:28:52 better to get blunt reaction in here than on the market reviews, no? :-) Apr 09 17:28:57 no I donot have idea about debugger Apr 09 17:28:58 papa07672: at first glance the code looks fine (looks "fine") so I'm suspicious that something else is happening Apr 09 17:29:07 When I try to debug my application the process sometimes stalls for a minute-or-so while the console says "Uploading ...apk" or "Installing ...apk", then the "Launching ..." process stops with an error referring to "Invalid APK" or "Invalid URI". Apr 09 17:29:07 then you can go there read it, and come back with good detailed questions and ppl will often be glad to help you Apr 09 17:29:17 hhmmm Apr 09 17:29:20 sir Apr 09 17:29:35 joar`: don't use the emulator, get a device :> Apr 09 17:29:37 code is correct Apr 09 17:29:49 I have a device, it's not here at the moment though :) Apr 09 17:29:53 that's I want your expert advice Apr 09 17:29:55 papa07672: no exception with a stack trace is printed on logcat/ Apr 09 17:29:57 ? Apr 09 17:30:11 And I've been having similar trouble with the device, only without the error messages. Apr 09 17:30:11 hmmm there is not any exception Apr 09 17:30:12 :) Apr 09 17:30:28 I have a ListView that has complex child listViews, and one of it's child is a LinearLayout that has to be populated with more childs from current data. It is scrolling fast cuz I've already did some peformance improvements, but, how can I prevent this part of populating childs again? Apr 09 17:30:51 joar`: how are you installing the apk to the device? from eclipse, hitting run? Apr 09 17:31:04 speakingcode-wor: From Eclipse, hitting "Debug" Apr 09 17:31:15 i am not positive but i think i had an issue with 'invalid apk' a long time ago that was from trying to install an unsigned apk Apr 09 17:31:17 joar` does the device sattisfy every possible filters in the manifest file? like min version and max sdk version, features and such? Apr 09 17:32:28 speakingcode-wor: Debug builds doesn't have to be signed, right? In any case, I have a signing key, but I doubt it's used for "Debug" Apr 09 17:32:45 debug builds are signed with a debugging key, but eclipse will do that automatically Apr 09 17:33:09 http://pastebin.com/wDJz32YF why the splash is not waiting and also the sound is not comming ?? any Idea Apr 09 17:33:13 timroes: emulator API version is identical to target (17), minSdkVersion = 15 Apr 09 17:33:27 papa07672, thenewboston on youtube has a very good splash tutorial :D Apr 09 17:33:29 papa07672: Don't repeat the question, please. Apr 09 17:33:30 and you doesn't require any features in sdk, that are not available? Apr 09 17:33:54 papa07672: without more information we simply cannot help you. Apr 09 17:34:02 timroes: API 17 is the most recent, so I don't think so. Apr 09 17:34:09 okkk !!! what else you want from me Apr 09 17:34:10 ?? Apr 09 17:34:13 papa07672: the best thing I can suggest is to attach the debugger and verify that you're actually hitting these lines. if you can't use the debugger, use logging statements. Apr 09 17:34:42 papa07672: in the finally block haveyou tried just logging something? does the same happen? Apr 09 17:34:47 timroes: actually, in the list to the left of the screen just above "Android Dependencies" it says "Android 4.0.3" which isn't API 17. Apr 09 17:34:59 That might be an issue. Apr 09 17:35:17 ok Apr 09 17:35:30 papa07672: check logcat for stacktrace, perhaps an interruptedexception is being thrown and execution is jumping right into the finally block that launches your startingpoint intent Apr 09 17:35:47 speakingcode-wor: nothing would actually be interrupting him, though, so that's unlikely. Apr 09 17:36:08 oh oh oh Apr 09 17:36:09 how about papa07672 doesn't use a Thread at all? Apr 09 17:36:14 what a concept that would be Apr 09 17:36:24 lov: true. papa07672 have you treid increasing 3000 to say, 10000 just to see what happens? Apr 09 17:36:48 i have a funny feeling 3 seconds is just faster than he expects it to be ;-) Apr 09 17:37:21 when having an Android.mk, is there a way to do make and have it display the final LOCAL_CFLAGS ? I am interested in what -D (defines) get enabled in the end for a large Android.mk that can source other mk Apr 09 17:37:21 doh right sleep doesn't require synchronization, wait does. Apr 09 17:37:31 ^^^^ lov Apr 09 17:37:36 papa07672: if you insist on using Thread (don't), use SystemClock.sleep(3000) Apr 09 17:38:38 i'm not gonna help him any further without logcat dump Apr 09 17:38:49 kind of just shooting in the dark at this point Apr 09 17:38:58 lov: sir I have already tried with 10000 Apr 09 17:39:06 but the same problem is there Apr 09 17:39:12 Is there a way to access the processor performance counters on Android (either through my app or through a tool)? I'm running into some performance problems with my application and I'd like to be able to look at things like cache hits & misses. Apr 09 17:39:14 papa07672: pate your logcat Apr 09 17:39:36 paste* Apr 09 17:40:12 jfpoole: that I don't know, sorry. Apr 09 17:40:42 omg bitcoin is just going up and up :'( Apr 09 17:40:48 papa07672: not a solution, but try replacing Thread with an AsyncTask Apr 09 17:41:33 someone explain to my why papa07672 isn't using Handler#postDelayed(splashRunnable, 3000); (I must have missed it) Apr 09 17:41:38 timroes: using `android update project -p C:\Foo -t android-17 didn't help, still halting on "Launching" Apr 09 17:42:29 lov: Hm. What about the power-saving state the phone is currently in (e.g., whether the cpu is currently under clocked for power or thermion reasons)? Apr 09 17:42:45 coco89: I know you hate reading but read about tulip mania. Bitcoin is a currency naturally suited to terrible trading behavior. Apr 09 17:42:49 sir my logcat is empty Apr 09 17:42:55 there is not any exception Apr 09 17:43:38 papa07672: is there anything in logcat at all? Apr 09 17:44:23 no Apr 09 17:44:30 there is just one line Apr 09 17:44:33 nothing at all, or nothing interesting? Apr 09 17:44:35 its not an exception Apr 09 17:44:42 lov, oh sweet yeah will do. So it's suited for people like me Apr 09 17:44:57 device disconnected Apr 09 17:44:59 thats it Apr 09 17:45:11 lov: I was in Amsterdam last week... they're still trading on the tulip thing :) also, sex and drugs... Apr 09 17:45:30 plz help Apr 09 17:45:31 coco89: idiots, yes. Apr 09 17:45:37 lov, nice Apr 09 17:46:17 sex and drugs are everywhere. Apr 09 17:46:46 papa07672: if it says device disconnected then, err, have you selected the device in DDMS? Apr 09 17:47:00 * speakingcode-wor facepalms Apr 09 17:47:07 i mean..this 1 line...its just the same line all the time, 'device connected'? Apr 09 17:47:08 DDMS?? Apr 09 17:47:12 joar`: fyi, this is why we're all terrible people. Apr 09 17:47:29 lov: I know, but I've been a n00b once too. Apr 09 17:47:29 * brx_ gets the defibulator Apr 09 17:47:30 this is the only line Apr 09 17:47:41 joar`: I, too, was new once. Apr 09 17:48:24 there's a difference between being new yet capable of basic research and being new and an idiot Apr 09 17:49:25 or to put it another way, a difference between new and n00b Apr 09 17:49:26 and now I'm a pr0 but still relatively android/java n00b. Started with PHP + Web frontend / Relational database, then Python, now I'm somehow finding myself having to go through an entire new suite of mistakes :) Apr 09 17:50:41 plz help Apr 09 17:50:56 you have to learn to help yourself Apr 09 17:51:02 papa07672: try reading what people are saying to you Apr 09 17:51:11 joar`: your story reminds me a lot about the wolf and the cabbage Apr 09 17:51:13 papa07672: after you have read the messages, understand them Apr 09 17:51:28 joar`: as a rule, anyone who says they're a "pr0", isn't. Apr 09 17:51:34 there once was a cabbage who sat in a patch all alone pondering the meaning of life Apr 09 17:51:40 we cant enable you any further. read the java docs, then read the android training docs Apr 09 17:51:50 hmmm Apr 09 17:51:58 I admit I am new Apr 09 17:52:02 then read Apr 09 17:52:03 * coco89 brbr Apr 09 17:52:07 in this Apr 09 17:52:09 this is not the place to learn. Apr 09 17:52:21 'device disconnected' should be a big enough hint Apr 09 17:52:31 LOL Apr 09 17:52:37 okkk Apr 09 17:52:38 he must be an uber troll Apr 09 17:52:45 evanc: Thank you, I'm certainly not. Sarcasm conveys badly over text unless you spend enough words to convey it clearly. I'm professional in the sense that it's been my day job and hobby for the last 4 years. Apr 09 17:52:53 I will try to figure it out Apr 09 17:53:13 ive got beef Apr 09 17:53:22 mikedg: I want to hear more of the story Apr 09 17:53:48 I love beef. Apr 09 17:53:52 mikedg: http://www.mathcats.com/explore/river/crossing.html Apr 09 17:54:24 thanks Apr 09 17:54:33 papa07672: Good reading: http://www.catb.org/esr/faqs/smart-questions.html Apr 09 17:54:34 i have run out of story because i ate the cabbage Apr 09 17:54:46 you're going to smell awful for the rest of the day, good luck with that. Apr 09 17:55:38 i hate how the play store is the play store Apr 09 17:55:53 I love how the Play Store is the Play Store Apr 09 17:56:38 I hate that you still can't multi-select apps to update at once (or at least add apps to a never-update list) Apr 09 17:57:02 pragma-: that's so communist Apr 09 17:57:23 why not just allow auto update, pragma- Apr 09 17:57:40 would you guys play a board game about sea creatures in space shooting lasers at eachother Apr 09 17:57:44 Because I want to review the what's new before updating any apps Apr 09 17:57:54 mikedg How do they breathe in space? Apr 09 17:58:00 And I have a few apps that I want to keep at older versions, while still getting update notifications for other apps Apr 09 17:58:03 mikedg: If it was fun Apr 09 17:58:07 mikedg: only if they are sea monkeys in space Apr 09 17:58:13 they dont, they are dead, and you are controlling them remotely Apr 09 17:58:17 oooh I could do Sea Monkeys Apr 09 17:58:26 That's a little macabre. Apr 09 17:58:32 I'm also interested in seeing updates for the apps that I have at older versions Apr 09 17:58:37 But I would play it Apr 09 17:58:50 but sometimes I just want to update apps X, Y and Z and only those at that time Apr 09 17:59:15 if you want to read the waht's new Apr 09 17:59:22 pick app a, read whats new, update or not Apr 09 17:59:29 pick app b, read whats new, update or not Apr 09 17:59:40 I mean I agree with speakingcode-wor. You're going to be in the app description anyways. Apr 09 17:59:43 * pragma- pats speakingcode-wor on the head as he would a small child. Apr 09 17:59:45 why the need to do multiples if you still have to read the whats new 1 by 1? Apr 09 18:00:20 otherwise turn on auto update, why the resilience? Apr 09 18:00:47 because I might read the what's news for 6 apps and then decide I want to update 3 of them without having to go through the extra update steps Apr 09 18:01:03 that sounds absolutely annoying to watch Apr 09 18:01:56 read what's new for 6 apps, and then 6 apps later decide to update the first one? there's two possibilities. 1. you read so many what's new you get confused or 2. there's only a few to read, in which case multi-update is hardly a gain Apr 09 18:02:07 maybe I'll just write a little app that shows all the updates in a list with the what's new text in each entry, along with a checkbox, and I can just check each app off and then hit "update checked" Apr 09 18:02:35 there's an idea; i'll spport that one cause it's creative at least Apr 09 18:02:50 but i really don't understand the use case. Apr 09 18:02:55 :) Apr 09 18:03:07 i'm a power user. Apr 09 18:03:29 nothing about what you described speaks power user to me but fair enough Apr 09 18:03:33 how do you slide in/out when switching fragments? Apr 09 18:03:37 I have about 400 apps on my phone constantly nagging me with their updates, and several apps that I don't want to be updated again ever unless the update is worthwhile. Apr 09 18:03:57 how about just writing a blacklist to the auto update? Apr 09 18:04:11 that's what I said in my very first statement. Apr 09 18:04:18 i must have overlooked that one Apr 09 18:04:49 "(or at least add apps to a blacklist)" Apr 09 18:05:20 no, i believe you, just didn't catch it Apr 09 18:06:18 and I'm perfectly capable of remembering which apps I want to update out of perusing 6 changelogs! Apr 09 18:06:26 anyone know why passing strings is so much faster than passing UInt8Array using the WebView bridge api ? Apr 09 18:06:28 android has reached an age where we have enough grumpy old developers to have 24/7 dick time in here Apr 09 18:07:09 wouldn't be IRC without it Apr 09 18:09:12 besides, even with a custom app, i'd still have to confirm each update one-by-one in the end Apr 09 18:09:48 can't do silent updates from such an app Apr 09 18:10:24 pragma-: there's a far better solution here: enable auto-updates and just get on with your life Apr 09 18:10:29 mikedg: you are talking of yourself? :) Apr 09 18:10:29 no way Apr 09 18:10:45 damn if i'm going to update this ad-free app into one that is infested with ads Apr 09 18:10:55 just uninstall the shitty apps Apr 09 18:10:56 or update this app that is working into something with horrible UX Apr 09 18:11:03 they aren't shitty right now! Apr 09 18:11:21 have fun, hope that strategy works out for you Apr 09 18:11:29 it is working out for me. Apr 09 18:12:32 it'd just be a tad more convenient otherwise, but it's working out just fine. Apr 09 18:12:51 Can anyone explain to me what "rooting" exactly means? Is it just copying the su binary to the system? Or has it sth. to do with the ro.secure property? Apr 09 18:14:10 by far much more convenient than if an app were to update with some deal-breaking changes Apr 09 18:14:16 evanc You're my hero. Apr 09 18:14:35 * evanc bows Apr 09 18:15:15 then I'd have to go search for the apk of the older better version (or pull it from titanium) Apr 09 18:15:28 BoxyK: you might want to ask in #android-root Apr 09 18:16:04 Iov: oh, sorry. thanks!! Apr 09 18:16:06 definitely better to just wait a week or two after the update notification and then read the what's new and the most recent reviews Apr 09 18:16:17 auto-update is just a horror story waiting to happen Apr 09 18:18:05 so's your face Apr 09 18:18:13 so is you! Apr 09 18:18:33 I love auto update Apr 09 18:18:37 and lamp. Apr 09 18:18:42 and you Apr 09 18:18:45 and you Apr 09 18:19:14 tekken card tournament is my favorite android game in a long time Apr 09 18:19:33 except when i fight someone who somehow has nothing but rare cards Apr 09 18:19:39 i'm currently playing simpsons tapped out two or three times / day Apr 09 18:20:06 i was playing tapped out hard for a week Apr 09 18:20:06 mikedg: do you have any idea why it's not compatible with the N7? Apr 09 18:20:14 then one day suddenly it reset me back to the beginning Apr 09 18:20:20 so i said fuckit and gave them 1 star Apr 09 18:20:24 leeds stupidity :) Apr 09 18:20:25 you shouldn't have updated it Apr 09 18:20:29 it's just a unity game Apr 09 18:20:46 it didn't update pragma- but nice try Apr 09 18:21:19 btw there is a multi-select update, you just have no clue about it with your way dated play store app :-p Apr 09 18:22:01 pft, the play store automagically silently forces its self-updates irrevocably Apr 09 18:22:18 As it should be. Apr 09 18:22:23 All is well in the world Apr 09 18:22:29 people like you are why there is a remote version check in every app i release Apr 09 18:22:37 so i can pull the plug on neckbeards Apr 09 18:22:48 this is why I have an android firewall Apr 09 18:23:48 good luck annoying me with your "a new version is available" prompts when my firewall is blocking your app's networkz Apr 09 18:23:59 good luck running the app, then Apr 09 18:24:08 * pragma- skill Apr 09 18:24:26 * pragma- flips some bits in the apk Apr 09 18:25:10 and then you turn around and leave some whiny review when it doesn't work as promised Apr 09 18:25:18 and 1 star Apr 09 18:25:24 lmao Apr 09 18:25:34 lets stop being dicks Apr 09 18:25:40 were having fun here Apr 09 18:25:46 i'm having fun. are you having fun pragma- ? Apr 09 18:25:51 i'm having fun Apr 09 18:26:31 well this isnt a dating channel Apr 09 18:26:33 so stop having fun Apr 09 18:26:53 * speakingcode-wor sends a gift to mikedg Apr 09 18:26:56 heh Apr 09 18:27:04 * speakingcode-wor pokes mikedg Apr 09 18:27:17 * speakingcode-wor messages mikedg whats up baby did u get my gift hit me back hawt stuff Apr 09 18:27:35 now it's a dating channel. ok i digress Apr 09 18:27:56 mikedg Likes long walks on the beach and Windows. Apr 09 18:28:08 i love windows Apr 09 18:28:14 ohhh we're not compatible then Apr 09 18:28:22 Call 1-800-lov-devs to hook up. Apr 09 18:28:33 speakingcode-wor: Just a little wine and you're there. Apr 09 18:28:42 nice joar` Apr 09 18:28:45 a/little/lot of Apr 09 18:28:52 %s/a/s Apr 09 18:28:57 wine is not an emulator Apr 09 18:29:04 meh Apr 09 18:29:13 And GNU is Not Unix Apr 09 18:29:19 problem with wine is why the hell would i want to run windows software on my nice pure linux box Apr 09 18:30:01 Why here are slashes / ? Apr 09 18:30:02 http://developer.android.com/training/basics/firstapp/creating-project.html Apr 09 18:30:07 --name MyFirstApp \ Apr 09 18:30:07 speakingcode-wor: Without wine it'd be a stupid idea. But if you just add some wine it's actually acceptable. Apr 09 18:30:26 bluesm: newlines Apr 09 18:30:31 do TextView compound drawables respect gravity? Apr 09 18:30:36 bluesm: it's a line continuation - a one-line command split over multiple lines for readability Apr 09 18:30:41 well one good thing about wine is chip's challenge and ski free. two good things. Apr 09 18:30:54 speakingcode-wor: jezzball Apr 09 18:31:07 bioshock infinite Apr 09 18:31:12 jizzball? Apr 09 18:31:12 never played it evanc Apr 09 18:31:25 Leeds: exact thought i had. Apr 09 18:31:27 Whatever that game is, I'm out. Apr 09 18:31:37 though, honestly I'm bored with bioshock infinite now Apr 09 18:31:40 Kerbal Space Program, but since v19 they have a linux version. Apr 09 18:31:43 and not even half-way through Apr 09 18:32:07 In retrospect I didn't need the Apr 09 18:32:13 Should have gotten an older version. Apr 09 18:32:14 https://play.google.com/store/apps/details?id=air.com.winterdust.jezzballclassic Apr 09 18:32:41 ohh this Apr 09 18:32:42 yeah Apr 09 18:32:57 https://play.google.com/store/apps/details?id=com.mattwach.trap2 has also been around a *long* time - since 1.0, give or take Apr 09 18:33:21 there was some game i used to play on my friends powerpc mac Apr 09 18:33:38 it was soe kind of toy soldier and all these toys in the toy strore were gone mad Apr 09 18:33:54 so you go around shooting them with plunger guns and such. 3rdp erson action game. haven't been able to find it Apr 09 18:34:20 awesome game though Apr 09 18:34:25 https://play.google.com/store/apps/details?id=com.mattwach.trap2 is much better (and free) Apr 09 18:34:46 pragma-: you mean the one I linked to, oh, 1 minute ago? Apr 09 18:34:57 I was looking for the link! Apr 09 18:35:08 evanc Leeds: Thanks! It's bash specific right ? Apr 09 18:35:21 in fact, I apparently reviewed it in November 2008! Apr 09 18:35:23 bluesm: most shells support this Apr 09 18:35:30 so that's definitely 1.0 days Apr 09 18:35:31 bluesm: *sh-specific Apr 09 18:36:45 if you're not using a bourne shell, you should be able to translate that sort of thing yourself Apr 09 18:55:49 greets Apr 09 18:55:56 afternoon Apr 09 18:56:47 JakeWharton: you're in charge. Let me know what I miss. Apr 09 18:56:58 * JakeWharton cracks knuckles Apr 09 18:58:26 anyone got a good guide to make cool icons? :P Apr 09 19:01:37 wat Apr 09 19:03:13 Quacked, look at some websites for clip art for inspiration Apr 09 19:03:19 get a vector graphics tool and start tooling around Apr 09 19:03:42 yeah, its not the inspiration thats the issue Apr 09 19:03:57 I need to look at some vector tools Apr 09 19:04:00 look at a few illustrator icon guides Apr 09 19:04:06 yeah, good tip Apr 09 19:04:07 phandroid put up a couple guides Apr 09 19:04:16 as for vector tools, I use inkscape when I need to make logos Apr 09 19:04:20 I'm decent with photoshop, but have never touch vector stuff Apr 09 19:04:24 it works reasonably well for my unprofessional designer self Apr 09 19:04:37 good tip, thanks Apr 09 19:04:44 I also use gimp Apr 09 19:04:48 rather than photoshop Apr 09 19:04:57 no reason to pirate adobe crap anymore since free stuff is about as good Apr 09 19:05:08 just so used to photoshop Apr 09 19:08:27 What is the meaning of this: Apr 09 19:08:28 xmlns:android="http://schemas.android.com/apk/res/android" Apr 09 19:08:43 This create "android" namespace. But why is there this url... Apr 09 19:09:00 the url identifies what the namespace is Apr 09 19:09:07 the URL is just an opaque string which identifies the namespace - it isn't required to be an actual live page Apr 09 19:09:10 simply creating a namespace is meaningless Apr 09 19:09:31 basically, consider the url to be a uuid that identifies the namespace for parsing purposes Apr 09 19:09:35 pfn: As much as I don't want to admit it you were right about my data not changing. The database was changing as expected but the way I initialized the listView's data meant that the database changed wouldn't be reflected. What I ended up doing was storing the data in an array and overriding notifyDataSetChanged so that I would query the database for changed values. Apr 09 19:09:49 i.e. you could call it xmlns:a="http://schemas...." and you could prefix everything with a: yet Apr 09 19:09:52 pfn: Also, I'm telling you now because I forgot to tell you when I gifured it out. Apr 09 19:10:13 jdawes, indeed, yeah, hate those kind of bugs sometimes Apr 09 19:10:30 Anyone got comments for this simple UI? http://bildr.no/image/1434517.jpeg Should I have done something differently? Apr 09 19:10:39 bluesm, the name isn't important, the url is Apr 09 19:10:56 pfn: For who is importand ? Apr 09 19:11:06 bluesm, the tools that parse said xml Apr 09 19:12:01 Quacked: used real words for one Apr 09 19:12:03 bluesm: URLs are sometimes (read: often) used as XML namespaces, it's just an unique identifier. Apr 09 19:12:22 joar, already stated Apr 09 19:12:40 sorry Apr 09 19:13:18 Quacked: om du översätter det till engelska och framför allt förklarar vad du vill åstadkomma med det så blir det mycket lättare att hjälpa dig. Apr 09 19:13:35 pfn: android namespace is just android namespace. I don't get why we assign it this stupid value. If I make another name-space "android" with different value I would have anyway conflict. Apr 09 19:14:12 bluesm: actually a:xmlns="http://schemas.android.com/apk/res/android" will also work. Apr 09 19:14:22 lov: hehe Apr 09 19:14:34 bluesm, learn how xml works before you make baseless assumptions Apr 09 19:14:35 bluesm: "android" isn't the namespace, "android" is the variable name, the URI is the namespace. Apr 09 19:15:24 lov: it just looks up crossword synonyms to the word TEST when you push the button Apr 09 19:15:45 joar: fair enough Apr 09 19:17:19 pfn joar`: Ok thank you very much for your time ? Apr 09 19:17:28 pfn joar`: :) Apr 09 19:17:59 does anyone have a good GCM/push notification app template they can recommend Apr 09 19:19:12 roger_rabbit: https://developers.google.com/android/c2dm/ Apr 09 19:19:34 roger_rabbit: http://developer.android.com/google/gcm/index.html Apr 09 19:20:27 also, JumpNote Apr 09 19:20:33 is there any way to have an instrumentation class used on a release build? Apr 09 19:31:35 Hey everyone, I'm trying to choose between making a Service and an AsyncTask. Anyone here familiar enough to help augment my googling? Apr 09 19:31:59 asynctask is a background thread, a service is a lifecycle container that lives beyond that of an activity Apr 09 19:36:07 pfn: thanks, I think i'll go with a service then Apr 09 19:37:41 a service can't do anything on its own without a thread, fyi Apr 09 19:38:30 Hello :) Apr 09 19:38:44 pfn: not strictly true, but you're very limited in what you can/should do :) Apr 09 19:39:02 Is there some lib that help me using MultiAutoCompleteTextView to query my db with django backend ? Apr 09 19:42:49 well, the service by default runs stuff on the main thread, which is generally not the desired use-case by someone considering a service Apr 09 19:50:34 hi Apr 09 19:52:18 I made a media player and now trying to make it scan the external storage for media files, I was wondering if I should first scan All files and store the information in array or something and then compare the patterns I search for like mp4 and mp3 ... against the array ? Apr 09 19:53:22 or should I avoid building the array because it might get too big ? and compare patterns as I'm parsing the directories ? Apr 09 19:55:19 filter as you scan Apr 09 19:55:26 why would you filter after you finish scanning Apr 09 19:56:27 because I thought running through the array would be faster operation Apr 09 19:57:26 so, you'd rather take time to do the scan, and then filter the array, so you have the time of 2 operations to contend with? Apr 09 19:57:53 IO is the performance bottleneck here, not comparing string values in memory Apr 09 19:58:16 File listFile[] = dir.listFiles(); If(listFile !=null) { for(int i=0; i Hey. Apr 09 19:58:51 If I run on real device, the code is compiled on the device ? Apr 09 20:00:11 bluesm: I don't think so, might be optimized, but the source code isn't in the APK. I'm just guessing. Apr 09 20:01:14 and I guess I should run the scanning of external storage on asynctask so it doesn't freeze the gui Apr 09 20:01:23 YES Apr 09 20:01:33 oops, caps (though the emphasis applies) Apr 09 20:02:01 joar`: Hmm. Could you explain me /home/pawel/android/sdk/tools/ant/build.xml:723: Unable to find a javac compiler; Apr 09 20:02:01 com.sun.tools.javac.Main is not on the classpath. Apr 09 20:02:01 Perhaps JAVA_HOME does not point to the JDK. Apr 09 20:02:01 It is currently set to "/usr/lib/jvm/java-6-openjdk-i386/jre" Apr 09 20:02:18 While under eclipse it works perfectly ? Apr 09 20:02:48 bluesm: I have no idea. Googling might help. Apr 09 20:03:14 bluesm: all I can help with is that $CLASSPATH contains the java classpath. Apr 09 20:03:28 jre != jdk Apr 09 20:03:31 Is it possible to use MultiAutoCompleteTextView, and query my remote db ? or do i need load the whole content first for tokenizer ? Apr 09 20:04:23 hetii: Googling helped: http://stackoverflow.com/questions/13191804/how-to-set-the-results-in-multiautocompletetextview-to-be-from-web-source-instea Apr 09 20:05:19 bluesm: what does "what javac" return Apr 09 20:05:22 er Apr 09 20:05:24 "which javac" Apr 09 20:05:48 well, need the JDK's JAVA_HOME, not JRE's Apr 09 20:06:09 to be fair, he's pointing to a JDK. Apr 09 20:06:34 lov: It returns that commdand not found. Apr 09 20:07:15 joar: let me check that :) Apr 09 20:07:25 bluesm: your distro should have "which" Apr 09 20:07:36 if you don't have "which" something is very strange. Apr 09 20:07:44 hetii: query was "MultiAutoCompleteTextView database" Apr 09 20:07:59 lov: devian testing i386 Apr 09 20:08:10 and you don't have 'which' Apr 09 20:08:15 are you sure? make sure you typed it correctly Apr 09 20:08:21 lov: *debian Apr 09 20:08:31 doesn't debian use the 'alternatives' system for java? maybe symlinks are foobarred Apr 09 20:08:37 I think `which` is a shell function Apr 09 20:08:44 g00s: that's a thought but the fact that 'which' isn't working for him is pretty odd. Apr 09 20:09:04 lov: ok "which javac" return nothing Apr 09 20:09:11 but yeah, it's possible that /usr/bin/javac which should point to /etc/alternatives/javac which should point to his actual javac is buggered. Apr 09 20:09:31 type -p javac Apr 09 20:09:36 but chances are, he does not have the jdk installed Apr 09 20:09:37 bluesm: sudo update-alternatives --list javac Apr 09 20:09:59 lov : error: no alternatives for javac Apr 09 20:10:06 yeah, your install is messed up. Apr 09 20:10:10 How did you install your JDK? Apr 09 20:10:17 java-config -L on gentoo :=) Apr 09 20:10:29 ninharp: go put another spoiler on your computer, we don't care. Apr 09 20:11:41 ;P Apr 09 20:11:55 lov: To be honest. Probably from package. But Is android SDK doesn't install it automatically ? Apr 09 20:12:03 sdk doesn't install java Apr 09 20:12:07 Or maybe with eclipse... Apr 09 20:12:07 bluesm: no, the android sdk does not install it automatically. Apr 09 20:12:12 eclipse doesn't install java Apr 09 20:12:24 eclipse includes its own java compiler independent of the jdk, however Apr 09 20:12:27 bluesm: eclipse might come with a minimal JDK built in, but that's not relevant. Apr 09 20:12:36 (implements features such as incremental compilation that the jdk does not) Apr 09 20:12:45 eclipse doesn't have jdk, it implements stuff on its own Apr 09 20:13:09 anyhoo, sudo apt-get install openjdk-7-jdk Apr 09 20:13:13 that should fix your problem there sport Apr 09 20:13:48 and if it doesn't, go to #debian or something idgaf. Apr 09 20:14:14 lov: Thank you very very much. :) Apr 09 20:14:33 lov: Could you explain me what is JAVA_HOME environment property ? Apr 09 20:15:09 it's an environment variable that can be used to tell programs where java lives on your system, especially if you have multiple different versions, but it's not particularly relevant for this decade. Apr 09 20:15:25 lov: I mean how this could one point to JRE and other time to JDK ? Apr 09 20:17:50 bluesm: you Signed up for Trouble using an unstable debian Apr 09 20:18:00 anyone know of any free global map data that's easy to work with? doesn't have to be too detailed or accurated, but I need to be able to reference it by lat/lon Apr 09 20:18:15 Google Maps. Apr 09 20:18:36 OpenStreetMaps Apr 09 20:19:19 to be more specific, unlimited queries or downloable, with terrain data. I don't need cities and streets. Apr 09 20:20:00 i dunno if OSM has terrain Apr 09 20:21:05 g00s: Why ? Development of debian is slooow. Apr 09 20:21:10 there's a ton of free data out there, but it's all in disparate formats... one database just for coastlines, one database for this region, etc. Apr 09 20:26:07 KungFuHamster: do you mean stuff like digital elevation maps, etc ? Apr 09 20:27:41 g00s, I guess photographic data is what I really want.. like google maps satellite view Apr 09 20:31:20 I could pull down tiles, but I think for a lot of providers, reusing the data violates their terms. Apr 09 20:31:28 *commercially Apr 09 20:31:46 I'm making a game, sort of like Ingress Apr 09 20:37:07 aw, play store 4 doesn't work for froyo :( Apr 09 20:39:36 wow, g00s still on droid1? Apr 09 20:39:41 damn dude, quit torturing yourself Apr 09 20:39:46 \o/ Apr 09 20:40:14 wow, and I thought my Droid 2 was bad Apr 09 20:40:31 i'm waiting to see if the next version of android will support Bluetooth Low Energy before I buy any new HW Apr 09 20:40:49 I somehow doubt it Apr 09 20:40:57 really? Apr 09 20:41:21 if there were, it'd probably be hinted at by now Apr 09 20:41:36 i was hoping the bluez bt stack change in 4.1.x was prep for that Apr 09 20:42:01 pfn: i dunno, not like google shares its roadmaps with us ... Apr 09 20:42:29 we'll find out soon ;) Apr 09 20:42:32 g00s, there are more phones than just nexus Apr 09 20:42:40 and there's no hint of it across the spectrum Apr 09 20:43:09 pfn: actually, most new android phones have chipsets that support it, and some handsets have proprietary APIs for it Apr 09 20:43:19 you can get a sony handset, for example, and use the BLE apis on android Apr 09 20:44:01 buy one with said chipsets now and cyanogenmod it when it becomes available Apr 09 20:44:02 the N7 has a broadcom 4330 which is capable; so even the 1st gen n7 could get ble - theoretically - if KLP supported it Apr 09 20:44:15 g00s: what about the galaxy s4? Apr 09 20:44:15 also HTC and Samsung Apr 09 20:44:51 that will probably be my next device Apr 09 20:46:27 meh, client crashed Apr 09 20:46:45 g00s: know if the s4 supports it? Apr 09 20:47:23 the S3 does Apr 09 20:47:30 i bet the S4 does too :) Apr 09 20:47:52 aha Apr 09 20:47:58 what do you want it for btw? Apr 09 20:49:00 Quacked: its for data acquisition hardware. i don't control the hardware Apr 09 20:49:31 there's lots of sensor hardware that does BLE now Apr 09 20:49:36 particularly in sports Apr 09 20:49:45 lots of migration from ANT+ to BLE Apr 09 20:49:51 yeah, its great for personal area networks Apr 09 20:51:54 anybody know a good way to distribute an app in development to testers? Apr 09 20:52:03 testflight is one way Apr 09 20:52:04 I'd be curious about it even if I have to go through google play Apr 09 20:52:07 testflight? Apr 09 20:52:44 Ahh, didn't realize it was available for Android Apr 09 20:52:50 ian_ford: testflight is really nice :) Apr 09 20:53:02 hockeyapp.net has something for it too. i use them for crash reports but use my own custom built thing for betas Apr 09 20:53:03 ian_ford: www.apkudo.com is cool Apr 09 20:53:47 apkudo runs monkey on 250 devices :P Apr 09 20:54:03 Ahh, seems cool too Apr 09 20:54:31 there's zubhium as well, dunno what else Apr 09 20:54:37 I use bugsense for this my first application. Apr 09 20:54:59 sorry, wrong genre Apr 09 20:57:35 No problem joar, still looks interesting to me Apr 09 20:57:39 Is there any useful lib for android/java that have a common stuff that is used like network operation, string manipulating and such simple task ? Apr 09 20:58:49 hetii: the standard library? Apr 09 20:59:09 What you mean by standard ? Apr 09 20:59:15 Is is included in default ? Apr 09 20:59:16 java.* Apr 09 20:59:17 hetii: android.* Apr 09 20:59:21 and android.* Apr 09 21:01:11 Hello. Does anyone know how I can switch fragments using a PageViewer? Apr 09 21:01:33 I need to go deeper and look if they offer what i expect to have, if not maybe its a worth to start new opensource project and build like micro framework library that will offer to common task, cause now i waste to much time for really simple stuff. Apr 09 21:01:53 DylanG_: Switch fragments? Apr 09 21:01:59 admob slow with updating for anyone else? Apr 09 21:02:07 Switch tabs I guess? Apr 09 21:02:19 hetii: androidannotations is a nice library that I haven't tried yet. Apr 09 21:02:29 DylanG_: setCurrentItem(int index) Apr 09 21:02:39 DylanG_: (ViewPager).setCurrentItem(int index) Apr 09 21:02:44 Hmm…seems like the test flight android sdk isn't available yet? Apr 09 21:02:58 ian_ford: you have to sign up, but they're accepting pretty quickly Apr 09 21:03:18 they've had it for iOS for a long time, just now coming out for Android Apr 09 21:03:22 I see. Well, I submitted my address, so I guess we'll see. Apr 09 21:03:50 joar`: NPE. https://gist.github.com/Random101/5349374 Apr 09 21:04:06 ian_ford, project I'm working on is using testflight to distribute for android... seems to work Apr 09 21:04:12 is there a way to do something similar to a ListView.setSelected(position) and a ListView.smoothScrollToPosition(position) ? Specifically to achieve a smooth scroll of the item to the top of the ListView? Apr 09 21:05:01 DylanG_: replace (ViewPager) with your ViewPager instance. Apr 09 21:05:31 Another question: Anybody know of an easy way to stream an android device display to a computer monitor / tv? I've got a moderately tech-savvy colleague who wants to demo what we're working on and is hoping to do it in this kind of setting. Apr 09 21:05:55 DylanG_: I can't solve the NPE without access to your source code. Apr 09 21:05:58 ian_ford: Nexus 4 has wireless display, and a bunch of devices haev HDMI out Apr 09 21:06:05 have, too Apr 09 21:06:37 evanc: how is the Nexus 4's wireless provided? Via a secondary app, app on the phone, etc? Apr 09 21:06:55 Would that be Miracast? Apr 09 21:07:05 ian_ford: miracast, yeah Apr 09 21:07:13 joar`: https://gist.github.com/Random101/5349401 Apr 09 21:07:28 Line #42 Apr 09 21:09:26 If you want a visual, http://imgur.com/uVlI9fn needs to switch to "Relay Rules" Apr 09 21:10:10 DylanG_: My knowledge ends about --> [here], I'm using a custom FragmentPagerAdapter that implements public Fragment getItem(int position), public int getCount(), public CharSequence getPageTitle(int position) Apr 09 21:11:11 Darn. Apr 09 21:12:25 DylanG_: I think I got my code from some ViewPager sample. Apr 09 21:12:50 I'm assuming the NPE is coming from my param, but I don't know what else to choose. Apr 09 21:13:40 set a breakpoint and step it through so that you can see where it breaks. Apr 09 21:14:31 Wait a second... Apr 09 21:16:01 DylanG_: dont you have to set an adapter to ViewPager? Apr 09 21:16:14 just guessing Apr 09 21:16:24 I have one set at the start, it did it for me. Apr 09 21:17:06 So, it works if I call it from the original fragment Apr 09 21:17:12 but not the others. Apr 09 21:19:00 Got it :D. Apr 09 21:19:06 DylanG_: rootView doesn't contain the viewPager Apr 09 21:19:18 you're searching the wrong view. Apr 09 21:19:35 it has it Apr 09 21:19:40 Wait Apr 09 21:19:42 no Apr 09 21:19:45 yeah Apr 09 21:19:47 'you're right Apr 09 21:19:53 rootView is R.layout.fragment_reddit_relay_create_rule Apr 09 21:20:01 right. Apr 09 21:20:06 I just made a getter in my source class and called it that way. Apr 09 21:20:14 it works like that. thanks for telling me that though Apr 09 21:20:18 :) Apr 09 21:20:53 I think you can set smooth scrolling as the second arg to setCurrentItem also. Apr 09 21:22:07 correct, thanks Apr 09 21:23:17 my sources aren't correct. Apr 09 21:23:36 the debugger shows me the wrong lines for e.g. ActivityThread.java Apr 09 21:24:04 also ZygoteInit.java Apr 09 21:25:24 talking to me or general? Apr 09 21:26:06 general Apr 09 21:27:41 ah Apr 09 21:28:59 is onStart() called after onCreate() or is it at the same time? Apr 09 21:29:00 Zygote and Activity Thread are all used for while your app is running joar` Apr 09 21:29:25 Yeah, just found an SO post about that. Apr 09 21:29:44 I'm running 17, the android in my eclipse project is 4.2.2 (17) Apr 09 21:29:55 but my source lookup folder might be 4.0.3 Apr 09 21:32:32 I hate it when things dont go your way.. Apr 09 21:47:56 Help: http://pastebin.com/zvtr9ND4 Apr 09 21:48:35 java.lang.NullPointerException at com.example.mytestapp.SearchActivity.onCreate(SearchActivity.java:43) Apr 09 21:48:40 look at line 43 Apr 09 21:48:58 think about what could be null Apr 09 21:51:02 \o ,-( Is it MultiAutocomplete1? Teacher?! ) Apr 09 21:51:02 It raise at MultiAutocomplete1.setTokenizer(new MultiAutoCompleteTextView.CommaTokenizer()); Apr 09 21:54:37 hetii: was it MultiAutocomplete1? Apr 09 21:59:28 joar: testing.... Apr 09 22:01:07 TextView instances can't be used as keys in a Map, is that correct? Apr 09 22:02:50 joar: looks like indeed it is null but why ,... Apr 09 22:03:05 is it really possible to enable the Copying GC instead of the Mark and Sweep one that's default? I have the AOSP code and there's a WITH_COPYING_GC define to use dalvik/vm/alloc/Copying.c instead of dalvik/vm/alloc/MarkSweep.c but some things break as not all functions in Copying have the same signatures (differences like isConcurrent for MarkSweep). Apr 09 22:11:23 joar`: why would they not be able to be used? Of course, you probably shouldn't, but hey Apr 09 22:13:21 evanc: Yeah, they shouldn't. I keep getting a NPE to something Apr 09 22:13:56 joar`: look at your stack trace and compare it against your code Apr 09 22:13:58 joar`: any clue what can be a reason? Apr 09 22:20:06 does the actionbar icon automatically stretch to fill space vertically? Apr 09 22:20:24 Hello, how can detect if a ListView scrolls down or up, overriding onScrollChanged doesnt work Apr 09 22:20:28 tnzr: yes Apr 09 22:20:31 it allways gives 000000 Apr 09 22:20:39 Thanks Jake Apr 09 22:21:28 or to be specific how can i get the current scroll position of ListView scoll Apr 09 22:22:08 is that doable or not, to stop looking into it Apr 09 22:22:11 :( Apr 09 22:23:22 hey guys Apr 09 22:23:24 dispatchSaveInstanceState Apr 09 22:23:45 I am doing that in a view Apr 09 22:23:53 ok, here is the scenario Apr 09 22:24:14 i have a custom framelayout, I need to change some stuff inside framelayout Apr 09 22:24:20 during rotation Apr 09 22:24:22 how do I do that? Apr 09 22:24:35 can I activate dispatchSaveInstanceState? Apr 09 22:27:47 it will be created on each rotation so just inflate/change the children in the constructor or onFinishInflate method based on orientation Apr 09 22:28:44 hm. google removed 60k apps from Play since Feb, if this is to be believed. Publishers removed some themselves. I never saw this in the ToS : "Do not post an app where the primary functionality is to: Drive affiliate traffic to a website or provide a webview of a website not owned or administered by you (unless you have permission from the website owner/administrator to do so)" Apr 09 22:29:00 i remember when the topic used to say "No more pretty viewers please" or something like that Apr 09 22:31:21 How can I use getActivity() inside of a listener? Apr 09 22:33:05 JakeWharton: is it more appropriate to create a layout for the ActionBar icon and control the padding that way, or to just make the asset with the padding included? Apr 09 22:33:27 more appropriate to create an asset, likely Apr 09 22:33:34 it will be scaled to a variety of sizes Apr 09 22:33:43 ok cool, thanks! Apr 09 22:40:55 does a View know which index it has in a ViewGroup? Apr 09 22:41:46 Urgh. I dont think onStart() is being fired when I want it to be... Apr 09 22:42:26 With a ViewPager, every time you switch fragments, does that fragment's onCreate() get called, or is it just when the app is first started? Apr 09 22:42:53 That might depend on if it's cached or not. Apr 09 22:43:02 just guessing again. Apr 09 22:44:43 :| Apr 09 22:45:20 Is it possible to simulate onStart() from another class? Apr 09 22:47:56 In my app, is there a way to detect when a usb0 interface is added so that the app can configure it for dhcp? Apr 09 22:52:03 How can I force an activity to call onCreate()? Apr 09 22:52:39 DylanG_ : put onCreate() as the first method in whatever method is being called Apr 09 22:52:55 It's not in the same class though Apr 09 22:56:31 DylanG_, Activities deal with the view currently onscreen. If an activity needs to call another activity, other than an Intent to start it, then the code in question should probably not be in an Activity class. Apr 09 23:09:18 I'm not getting a line number in this stacktrace.. that's a problem Apr 09 23:16:40 I have a button in my app that doesn't respond to touch on my two Nexi (gnex and 7) but works just fine on my htc evo 4g. Does anyone know why it might be doing this and how I could fix it? Apr 09 23:17:14 Can anyone help me please? I'm trying to make one of my fragments update its info whenever it is switched to, but onResume() isn't the correct one, and neither is onCreate(). Any ideas, please? Apr 09 23:20:15 ..Got it. Apr 09 23:22:56 Hey guys. I have a question about intents Apr 09 23:23:06 I have an activity with an onResume Apr 09 23:23:19 inside it I see String blah = getIntent().getStringExtra("channel"); Apr 09 23:23:35 I thought this activity was started in a particular area, so I set a breakpoint there Apr 09 23:23:39 but it wasn't being hit Apr 09 23:23:56 so if I understand correctly...something is creating an intent and setting that string "channel", right? Apr 09 23:31:29 ProgramMax: er, not necessarily Apr 09 23:38:16 okay, I found where it creates the intent and starts the activity Apr 09 23:38:30 and I see intent.putExtra("channel", channel.toString()); which is my problem Apr 09 23:38:43 any way I can just put the channel object, not a string representation of it? Apr 09 23:39:08 with the .getStringExtra("channel") ....is there like a .getObjectExtra("channel") that I can cast? Apr 09 23:41:37 ProgramMax: if channel implements Parcelable, yes Apr 09 23:42:04 Currently, it doesn't. What is that? What is a parcel? Would that be the correct solution here? Apr 09 23:42:39 good night Apr 09 23:43:24 ProgramMax: I don't know what Channel is, so I can't possibly tell you that. But Parcelable is http://developer.android.com/reference/android/os/Parcelable.html Apr 09 23:44:16 well, it's basically just a class with a few strings and ints as members Apr 09 23:44:49 not sure if I really need to make a parcel or serialize it...can I just pass the object itself around Apr 09 23:44:55 rather than a representation of the object? Apr 09 23:45:44 yes, you can pass the object around--as long as it's Parcelable Apr 09 23:45:51 (or serializable, but you shouldn't use that) Apr 09 23:46:19 okay Apr 09 23:55:49 parcels just work in the read/write order? Apr 09 23:56:03 like if I have out.writeString(mName); out.writeString(mDisplayName); Apr 09 23:56:08 I read them back in that same order Apr 09 23:56:10 and that's it? Apr 09 23:56:27 name = in.readString(); displayName = in.readString(); Apr 09 23:56:28 yep Apr 09 23:56:45 perfect. Thank you Apr 09 23:56:51 ProgramMax: write a unit test, though (so you'll know if you break it) Apr 09 23:57:20 good idea Apr 09 23:57:29 we don't have anything setup yet for unit testing this code, though :( Apr 10 00:04:06 ProgramMax: you don't have JUnit? :) Apr 10 00:04:37 nope Apr 10 00:05:46 that was a joke. You know the Android SDK ships with JUnit, right? Apr 10 00:06:06 it does? Apr 10 00:06:09 oh, did not know that Apr 10 00:06:15 how hard would it be to rig it up? Apr 10 00:06:31 you should be able to include junit in eclipse easily, though Apr 10 00:06:36 it's included in the test plugin Apr 10 00:06:45 that ships with eclipse Apr 10 00:07:41 * pfn headscratches at the sdk including junit Apr 10 00:08:21 i wonder what it would take to get JUnit 4 to work with the android testing stuff; i think the sdk includes junit 3? Apr 10 00:08:43 g00s: it should work alreahy Apr 10 00:09:00 I've never rigged up any code with junit Apr 10 00:09:02 the sdk doesn't include any junit... at least not my copy Apr 10 00:09:02 that's more what I meant Apr 10 00:09:05 [pnguyen@posx android-sdk-osx]$ find . -iname '*junit*' Apr 10 00:09:06 [pnguyen@posx android-sdk-osx]$ Apr 10 00:09:12 * pfn shrugs Apr 10 00:09:15 g00s: https://android-review.googlesource.com/52363 for instance Apr 10 00:09:58 pfn: any android-test-lib jar? Apr 10 00:10:10 kroot: oh thanks, so its working right now? or is there something we should wait for Apr 10 00:10:16 kroot, nope Apr 10 00:10:24 [pnguyen@posx android-sdk-osx]$ find . -name '*android-test*' Apr 10 00:10:24 [pnguyen@posx android-sdk-osx]$ Apr 10 00:10:42 android-test-lib is a jar you need but the SDK might not have it Apr 10 00:10:58 * pfn normally tests with robolectric + scalatest Apr 10 00:11:03 You'd just include it as a static JAR. Apr 10 00:11:16 I can ask around to see why it's not in the SDK Apr 10 00:11:22 hm, i dont have it either Apr 10 00:11:32 it's ok, I'm just confused by the statements that junit is included with the sdk Apr 10 00:11:36 when it hasn't been my experience Apr 10 00:11:47 pfn: http://developer.android.com/reference/android/test/AndroidTestCase.html ? Apr 10 00:12:00 well, i should be more precise - i thought the existing stuff /depended/ on JUnit 3 Apr 10 00:12:09 g00s: yeah, that's what I meant Apr 10 00:12:53 when using GCMRegistrar I sometimes get "internal error: retry receiver class not set yet" Apr 10 00:12:56 any idea why? Apr 10 00:13:16 Zaknafein, google might Apr 10 00:14:46 Zaknafein: first result for that error message: http://stackoverflow.com/questions/13952577/internal-error-retry-receiver-class-not-set-yet Apr 10 00:15:39 pfn: JUnit3 is (unfortunately) on the platform Apr 10 00:16:08 pfn: JUnit4 can be done with a static JAR. I'm opening an issue to include it in the SDK. Apr 10 00:16:19 kroot, oh, suck Apr 10 00:18:24 and for that matter, given the age of android, wouldn't it have been a little more forward thinking to go with junit 4? (junit4 corresponds with java5) Apr 10 00:18:53 (idle curiosity) Apr 10 00:20:19 pfn: Maybe Android is older than you realize. Apr 10 00:20:21 thanks evanc Apr 10 00:20:33 Anyway, issue is https://code.google.com/p/android/issues/detail?id=54135 if you want to star it. Apr 10 00:20:47 ttps://code.google.com/p/android/issues/detail?id=54135 if you want to star it. Apr 10 00:20:50 oops Apr 10 00:21:32 heh, the wikipedia page for JUnit says "Not to be confused with G-Unit." Apr 10 00:21:43 heh Apr 10 00:21:52 j-j-j-junit! Apr 10 00:22:37 evanc: wait... they're not the same? I have some reverts to make Apr 10 00:23:59 this is such a great tutorial Apr 10 00:23:59 http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/ Apr 10 00:24:15 just throwing it out there Apr 10 00:35:35 I need to move this monitor to the other side of my main work monitor. I'm getting a crick in my neck. Apr 10 00:52:24 n00b question: I'm working on an android app, using ndk, and I don't seem to be able to see assets using the asset manager. Apr 10 00:53:14 If I AAssetManager_openDir(mgr, "") I get nothing. Apr 10 00:53:57 If I AAssetManager_openDir(mgr, "/") I get AndroidManifest.xml and resources.arsc Apr 10 00:54:39 But if I aapt list the apk I'm installing, my files are all there in the assets diree Apr 10 00:55:59 I've tried various likely file paths ("assets", "/assets", "assets/"...) in the pious hope that the directory was just hidden, but no joy. Apr 10 00:58:03 - ('/assets') ? iirc each android program is run in a chroot of it's own Apr 10 00:58:10 oh you said that. sorry Apr 10 00:58:20 Yeah, it was one of the first things I tried. Apr 10 00:58:23 No joy. Apr 10 00:58:53 https://groups.google.com/forum/?fromgroups=#!topic/android-ndk/MLn1q_SDR6A ? Apr 10 01:00:46 With that, people seem to be actually finding their files. Apr 10 01:01:17 I'm doing _openDir() and _getNextFileName(), and not seeing the asset directory at all. Apr 10 01:01:35 If I just blindly hope it's there and try to open it as a directory, I get nothing. Apr 10 01:01:49 If I walk the root dir, /assets isn't there. Apr 10 01:01:59 In fact, in the root dir there are only two regular files, no directories. Apr 10 01:02:57 Which implies to me that it might be a permission issue or something; I can't see the res, lib or META-INF directories, though they are in the apk. Apr 10 01:03:33 nack: http://stackoverflow.com/questions/15748393/aassetmanager-opendir-crashing-app-on-start <-- hmm Apr 10 01:04:45 nack: this person says _openDir(mgr, "") should work: http://stackoverflow.com/questions/13317387/how-to-get-file-in-assets-from-android-ndk Apr 10 01:05:14 I did that first, but it gets me nothing, sadly. Apr 10 01:05:27 I think I'm going to go with the zip plan. Apr 10 01:05:55 This is a port of a game originally written on iOS. Apr 10 01:06:54 There's something like half a gig of textures anyways, so I'm probably going to have to ship a minimal set in the apk and then dowmload the rest anyways. Apr 10 01:07:14 nack: http://developer.android.com/google/play/expansion-files.html Apr 10 01:07:54 I'd seen that, but can I access them from the ndk? Apr 10 01:08:40 It looks like it's obb, which I think there's ndk support for, but given my luck so far with asset_manager I'm not exactly holding my breath. :) Apr 10 01:10:43 hey guys Apr 10 01:11:00 can someone point to documentation about Attach/DetachCurrentThread? Apr 10 01:11:14 I'm having some issues related to it, and I'm guessing it's something simple. Apr 10 01:12:02 Thanks for the help, evanc. Apr 10 01:48:49 whats a recommended way to read in large text files? anywhere from 2MB to 10MB in size... I thought about fragmenting the data across multiple files. Although I seem to be hitting an outofmemory exception when reading it back in using SequenceInputStream Apr 10 01:49:17 you'll have a bad time reading that much data in at once; your best bet is to chunk it into the smallest sane size and deal with it serially Apr 10 01:50:34 if you're dealing w/ arbitrarily large data you're pretty much forced into dealing wiht it in chunks, or at some point you're going to get a file too big for whatever your fix is Apr 10 01:54:42 oh well. it was worth asking anyway Apr 10 01:55:55 is there a reason you can't serially process the data? Apr 10 01:59:06 dragorn, I can definitely can do it, i was just curious if there was other methods Apr 10 02:00:07 alexfu: there probably are some tweaks, but sooner or later you're going to get fed a file that exceeds them still Apr 10 02:01:25 dragorn, I can probably expect a nice performance hit too right. opening and closing x amount of streams. Apr 10 02:02:25 alexfu: maybe, w/out benchmarking I wouldn't feel authoritative on it, but file io can't be that heavy Apr 10 02:02:56 alexfu: Think about it loading resources when you start up, unless you're doing hundreds to thousands of file opens I imagine you're not REALLY making much of a dent vs. just opening all the icon resources that happens already Apr 10 02:03:39 alexfu: At some point you're so far down the rabbit hole b/c of the framework, while you might not WANT to add another 100 file opens, it probably doesn't in the long run matter all that much unless you're doing it every second This is on eof those "test before optimizing" situations I think Apr 10 02:03:56 alexfu: but still, i'd rather open, seek, read into buffer, seek, read, repeat, rather than split it into files Apr 10 02:04:39 alexfu: seek&read is a common operation and should be easy to do. (that said I haven't had a reason to do java file in longer than my brain pagespace so you'll have to google) Apr 10 02:05:51 dragorn, hm. I'll definitely look it up Apr 10 02:06:36 alexfu: in C it'd be fopen, fseek, dead simple. It's something similarly dead simple in java. You just define a bufferreader and set your buffer size, seek to where you want to be in bytes, and read it in, then seek ahead that many bytes, repeat Apr 10 02:10:35 dragorn, so if i understand correctly, you're reading chunks of a single file serially? Apr 10 02:10:47 alexfu: yup Apr 10 02:11:03 alexfu: http://stackoverflow.com/questions/4375118/reading-buffered-binary-file-with-seek Apr 10 02:11:10 dragorn, gotcha. Apr 10 02:21:04 can somebody please justify this commit? I have a hard time seeing the purpose of it. Apr 10 02:21:04 https://github.com/github/android/commit/d84a01145d7e4586ff7fd5964a9c9c46aa61a374 Apr 10 02:25:14 seems fine to me Apr 10 02:26:13 wait, it's upsidedown Apr 10 02:26:16 seems like they didn't like using the indexes and went to raw positions Apr 10 02:26:26 doesn't seem... the most portable way to do that... Apr 10 02:27:22 yeah, i don't like it Apr 10 02:29:56 dragorn, thanks for the tip, seems to be working nicely Apr 10 02:30:24 why would somebody do that? Apr 10 02:32:22 skipped that lecture in CS1010? Apr 10 02:32:26 *101 Apr 10 02:33:24 he's github staff, and the main contributor to this repo (the GitHub Android app) Apr 10 02:34:58 seems like the setText method went from taking an ID to taking an idex as a parameter Apr 10 02:35:24 suppose that's faster and they decided performance trumps clarity in this instance Apr 10 02:36:00 alexfu: cool Apr 10 02:41:09 jab416171: https://github.com/kevinsawicki/wishlist/blob/master/lib/src/main/java/com/github/kevinsawicki/wishlist/TypeAdapter.java Apr 10 02:41:42 the ints are accessors into the children Apr 10 02:41:50 and yes, it's wrong Apr 10 02:41:51 Hello guys, I'm trying to make an application that logins into a webpage. The webpage I want to login doesn't let you save the username and password (it's my university webpage) and it's really annoying to put always the username and password in my android when I want to login to it, so I want to make this app that can save your username and password and from there launch the browser with an intent and login to the webpage Apr 10 02:42:33 do you know how I can add the post info to the browser intnet? Apr 10 02:42:34 JakeWharton: excellent, thanks for clarifying. Apr 10 02:42:35 intent * Apr 10 02:43:06 he should be using the view holder pattern rather than this odd base adapter Apr 10 02:43:21 he's not an Android developer by trade so a lot of the concepts are ported from developing desktop apps Apr 10 02:45:45 JakeWharton: but even with that justification, I don't get why he would go from variables to magic numbers. That's pretty fundamental, for any environment/language/etc. **** ENDING LOGGING AT Wed Apr 10 02:59:58 2013