**** BEGIN LOGGING AT Wed Aug 15 02:59:59 2012 Aug 15 03:19:52 why does a scrollview's smoothScrollTo method have two integer parameters? Aug 15 03:23:47 fuck yeah, glad to see Sammy present prior art about pinch/zoom in attempt to invalidate the patent Aug 15 03:24:01 apple scoundrels :) Aug 15 05:41:56 <_genuser_> DB devs: do you have separate classes for each table, and they call getWritableDatabase() on your classes extending SQLOpenHelper? Does it cause any access problems if multiple classes use .getWritableDatabase() or .getReadableDatabase()? Aug 15 06:01:01 _genuser_, you can certainly run into issues on multi threaded applications sharing a database, there are different strategies for handling it, synchronized singletons, write lock mutexes.. SQLite ensures integrity internally but that will bubble as a an SQLiteException if one thread tries to get a write lock while another is writing Aug 15 06:03:40 Hey Aug 15 06:06:17 i have a stupid question Aug 15 06:06:45 what does it mean to flash a mod Aug 15 06:07:26 that sounds illegal Aug 15 06:07:45 I'm calling the android police Aug 15 06:07:58 its in the instructions Aug 15 06:08:12 one of the steps is to "flash mod" Aug 15 06:09:03 Tracer: wrong channel (see topic) , try #android-root Aug 15 06:09:20 o ok sorry thanks alot Aug 15 06:11:45 <_genuser_> preds: thanks. So does that mean each call is executed in a different thread. Each class requesting a .getWritableDatabase() storing a reference is a new thread? Or is that for when the application explicitly creates multiple threads? Aug 15 06:12:12 i disagree; the sqlite apis are threadsafe Aug 15 06:12:20 when your application explicitly creates multiple threads Aug 15 06:12:29 <_genuser_> ok, I see. Aug 15 06:12:56 <_genuser_> so in other words, creating a class per table, using .getWritableDatabase() and generally writing out different tables should be absolutely ok then. Aug 15 06:14:24 <_genuser_> g00s: anything else you would wanna share on the topic? Aug 15 06:14:45 <_genuser_> I think I've been spending little more time just reading sample code to get a better idea on how to design the app. Aug 15 06:15:23 my experience differs, I know in theory it's meant to be threadsafe but in practice we got a bunch of store reports of SQLiteException: Could not get write lock Aug 15 06:15:51 <_genuser_> finally ready to code as class per table way. got first table done. waiting for others until app is at the point. Aug 15 06:15:56 this could've possibly been due to some weird thread being killed without releasing resources of course Aug 15 06:16:27 <_genuser_> well, in general outside of android, multi thread coding is tricky. Aug 15 06:16:38 <_genuser_> but I think object locks are to be appreciated. Aug 15 06:17:23 preds: you could have run up against sqlite's locking model as an implication of your threading design Aug 15 06:17:41 i think by default its exclusive locking Aug 15 06:17:59 but that can be changed, also using .yieldIfContendedSafely() is a great help Aug 15 06:18:47 we moved to singletons with locking for critical code sections which did the trick, although in the future I want to look at using a contentprovider model Aug 15 06:19:05 <_genuser_> now error reporting. I'm using more of the log.i and log.d 'coz the documentation mentions that the log.d stuff will be scrubbed from .apk's. etc. But is there's a need to generate log output to a file, etc? Or rather do people do that kinda of logging? Aug 15 06:20:01 <_genuser_> interestingly, I have never found a singleton to be useful in my code. Aug 15 06:20:12 <_genuser_> they have been nice in frameworks, etc. Aug 15 06:22:07 it's my understanding that when your application is signed and published in non debug mode all Log() calls are ignored Aug 15 06:22:29 <_genuser_> so how do guys approach logging if you do at all? Aug 15 06:22:56 <_genuser_> in other words, runtime errors will happen but some logging helps to debug the thing. Aug 15 06:22:57 i just log away and then use proguard to strip out the calls for the release build Aug 15 06:23:08 instead of putting if (D) Lof () Aug 15 06:23:15 <_genuser_> proguard? Aug 15 06:23:36 its included with the sdk Aug 15 06:23:57 <_genuser_> lol, been reading a lot of documentation lately. Aug 15 06:24:01 wow, i guess there is a new one called DexGuard ! Aug 15 06:24:20 http://www.saikoa.com/dexguard Aug 15 06:24:39 <_genuser_> interseting. documentation on Log says: Debug logs are compiled in but stripped at runtime. Error, warning and info logs are always kept. Aug 15 06:24:55 _genuser_ if you use eclipse to publish and sign it runs it through proguard Aug 15 06:25:00 which in turn, strips the log calls Aug 15 06:25:05 <_genuser_> so I figured extraneous stuff can be under .d() and the rest as appopriate. Aug 15 06:25:30 <_genuser_> preds: cool. I am using eclipse. have only run on emulator so far. haven't gotten to sign a working copy yet. Aug 15 06:25:59 although, I would love confirmation on that, I just recall reading it somewhere but I've never tested it Aug 15 06:26:39 yeah, the newer config as of sdk 20 has the Log.x stripped out Aug 15 06:26:55 <_genuser_> so bottom-line: do you ever try to retrieve the runtime log? Or ever wish to write something retrieveable for debugging purposes? Aug 15 06:27:30 <_genuser_> oh nice, proguard shrinks class files too. neat. Aug 15 06:33:01 <_genuser_> dang, dexguard is expensive. Aug 15 06:38:30 yeah, i'll have to pass. it costs more than i ever made from my app :P Aug 15 06:42:58 <_genuser_> g00s: you published an app? what you publish? if you don't mind, that is. Aug 15 06:44:42 it didn't to so well. i'm still deciding whether to put more work into it (make it tablet optimized) or just start over on wp8; because of technology limitations i can't do it on ios Aug 15 06:45:12 i was going to wait a little longer to see how well android tablets did, and then decide Aug 15 06:46:36 <_genuser_> well I was thinking of android apps. but java never really sounded appealing. everytime I have learned worked with java in the past, it has been extremely boring. vs. c/c++, delphi, c#, vb, etc etc. Aug 15 06:47:03 <_genuser_> but finally making an effort to write an app. primarily 'coz I want it to work that way so I can use it. and if someone later wants it, cool. Aug 15 06:47:16 :) Aug 15 06:47:28 <_genuser_> I mean I will target the audience out there, but first and foremost it should do what I want it to do. Aug 15 06:48:37 <_genuser_> wouldn't mind a windows phone either. but I supposed all my info is in the gmail account. would be lot of work moving to hotmail. Aug 15 07:18:48 Hey there :) I'd like to create menu items that appear in the action bar on Android > 3.0, and as simple menu in Android < 2.3 Aug 15 07:19:02 I followed indications in http://android-developers.blogspot.fr/2012/01/say-goodbye-to-menu-button.html Aug 15 07:19:28 My device has android 4.1 and a hardware menu button, and doesn't show anything in the action bar Aug 15 07:20:01 Is this the desired behaviour ? Can I have it show the action button anyway ? Should I ? Aug 15 07:25:57 hi Aug 15 07:26:03 hi Aug 15 07:26:09 any developer here? Aug 15 07:43:49 nazeerahmed: just ask Aug 15 08:05:18 is there some shell variable to set device for ADB? so `ant installd` will install on correct device. Aug 15 08:21:45 so my class is using Activity, MapActivity and FragmentActivity. Since all my activities share a lot of common traits, I would like them to extend a base class. Obviously this is impossible. What is the nicest workaround? Aug 15 08:22:18 can't get the CheckedTextView in a ListView to be clickable :( Aug 15 08:25:53 s/class/app Aug 15 08:27:49 lapdis: sharedpreferences ? Aug 15 09:03:01 Hey there. Aug 15 09:09:46 how can I in code know if I am running on large (or xlarge) screen? Aug 15 09:10:00 Pitel_laptop: why do you want to know? Aug 15 09:10:30 Leeds: if I should just show fargments next to each other, or if I must put them into pager Aug 15 09:11:54 i have different layouts in res, one with pager, one with just linear layout Aug 15 09:12:07 maybe i could just chech if the pager exist... Aug 15 09:12:30 How do I change the color of actionbar tabs by code? Aug 15 09:19:07 today i learnt a very important lesson about exporting to an apk and uploading to market Aug 15 09:19:56 even if your debug build is fine, and your app is freeware, dont trust eclipse to actually include all your activities in your apk (including those explicitly listed in the manifest) Aug 15 09:20:23 I have a glorious ClassNotFound exception being reported for the main activity :/ Aug 15 09:21:13 so much for my update including stability enhancements Aug 15 09:21:40 sounds like you enhanced in the wrong direction. Aug 15 09:22:06 i know, right Aug 15 09:22:14 Is there a simple way to change the color of the tab selection marker in the action bar? By code, not by XML... Aug 15 09:22:49 Personally, I test each apk on my devices, before pushing it to market. Never trust eclipse. Aug 15 09:23:00 that is what i will be doing from now on Aug 15 09:23:40 i debug on the device, so would expect things to be fairly smooth-sailing after that Aug 15 09:24:28 Yeah, I learned to not trust eclipse when I delivered a completely broken apk to the customer once :/ Aug 15 09:27:47 kant, im just glad nobody is paying for this crap ;) Aug 15 09:27:56 (this crap = my app, not eclipse) Aug 15 09:56:03 SimonVT: i tried using ur calendar, built it on api 14, when i tried it on the emulator (4.1) and tried to show it did not respond, i tried it on 2.3.5 it runs slow(unusable) and the calendar doesnt show up, only something like SSMTWTF Aug 15 09:56:08 http://www.fpaste.org/zUHt/ Aug 15 09:56:17 + im using abs Aug 15 09:58:07 did i hopefully mess up something obvious? Aug 15 10:23:07 which layout would you use to nest a scrolliew? Aug 15 10:34:19 ultra- : im not an expert, but so far i nest a relativelayout inside the scroll view, since scrollview can only take 1 child Aug 15 10:34:34 and its going well with me :) Aug 15 10:34:48 my situation is probably different… i got framelayout working as the parent Aug 15 10:35:32 ultra- : i cant help with that :/ Aug 15 10:35:40 :) Aug 15 10:57:47 finally! i've made a grid of buttons that extends beyond the screen, scrolls both directions, and snaps to the edge of the button nearest to the top/left :D :D :D Aug 15 10:58:14 can also scroll both directions with one drag Aug 15 10:58:27 is there some predefined style for header-like textviews? Aug 15 10:58:49 in general, large and probably bold Aug 15 10:59:46 now the only question is 'how does this run on a droid eris?' Aug 15 10:59:55 or maybe an incredible… i'd hope nobody uses eris anymore Aug 15 11:18:08 How to make patch file Aug 15 11:18:39 If any one knows please reply me Aug 15 11:20:53 hey Aug 15 11:21:03 I've got a question about the offline voice in Jelly Bean Aug 15 11:21:07 how can I make horizontal or vertical line between some elements in linearlayout? Aug 15 11:22:16 is there any way to check whether a device is capable of offline voice? Aug 15 11:22:27 Pitel_laptop, elaborate more Aug 15 11:22:33 i.e. is there a way to check if a voice pack has been downloaded? Aug 15 11:22:51 aagam94: just a divider between two sections Aug 15 11:23:04 @Pitel: create an xml shape drawable with a color you want your vertical line to have, then add that drawable to your linearlayout and give it a width/height (depending on orientation of your layout) of match_parent Aug 15 11:23:12 I guess http://stackoverflow.com/questions/5049852/android-drawing-separator-divider-line-in-layout might be what I want Aug 15 11:24:04 ya Pitel_laptop Aug 15 11:24:16 @aagam94: you mean a patch file like the ones you see for android framework patches? Aug 15 11:24:49 I have edited code for an open source app.. now what to do bakkes Aug 15 11:29:15 judging by the lack of a response, I guess the answer is 'no' Aug 15 11:42:12 swalla Aug 15 12:20:03 any good mockup tools other than photoshop/balsamiq? Aug 15 12:20:14 something with android controls would be bestest Aug 15 12:30:15 balsamiq rox... that's all i got :P Aug 15 12:30:41 it's not really suited for mobile, yet, though Aug 15 12:32:02 can i launch another activity from a different app, even if it is not the main activity? does the calling activity need any extra permissions set? Aug 15 12:32:31 only if it has an intent filter that you can build an intent for Aug 15 12:35:19 wongk: i try to explicit call it with package and class name Aug 15 12:36:01 You can't do that Aug 15 12:36:09 anyone know if sl4a can put the mode into some sort of "child proof" mode? Ie can't close or switch the app Aug 15 12:36:36 wongk: Caused by: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.VIEW dat=contact://1802 cmp=de.sgbs.crm.contact.android/.DetailsActivity } from ProcessRecord{41541e98 719:de.sgbs.test.android/10042} (pid=719, uid=10042) not exported from uid 10040 Aug 15 12:37:02 zeroXten: of course not Aug 15 12:37:29 SimonVT: why of course Aug 15 12:37:29 ? Aug 15 12:37:39 Letting apps completely take over the device is not really something that should be possible Aug 15 12:37:47 SimonVT: did you mean my case with "You can't do that" ? Aug 15 12:37:54 Yes, m1hael Aug 15 12:38:32 SimonVT: so how do i start an activity from another app? do i have to root it through the main activity? Aug 15 12:38:41 14:32 only if it has an intent filter that you can build an intent for Aug 15 12:38:54 You build an intent for the activitys intent filter Aug 15 12:39:01 If it has one, else you can't Aug 15 12:39:16 SimonVT: i tried calling it explicitly (package, classname) Aug 15 12:39:26 14:36 You can't do that Aug 15 12:39:48 SimonVT: e.g. for an alarm clock, so that you can't just close it without going through the critical path Aug 15 12:39:52 SimonVT: but if i specify an intent-filter for the _non-main_-activity it would work? Aug 15 12:40:05 zeroXten: e.g. for malware so malicous people can render a device useless Aug 15 12:40:29 Yes, m1hael Aug 15 12:40:41 SimonVT: thanx. i'll give it a try. Aug 15 12:47:13 SimonVT: yeah, fair enough. Aug 15 12:58:05 I'm using alarmmanager to schedule an event for once a day -- i read that setInexactRepeating() uses the time intervals you give it as a floor, and so if you set it to 15 mins you'd have to sit there for 30 mins to guarantee it runs. is this true? Aug 15 12:59:37 yes Aug 15 13:03:03 so if i set it to so if i want to guarentee something run at least once a day I would want to set AlarmManager.INTERVAL_HALF_DAY? Aug 15 13:03:23 I'm just a little confused on which I should choose or not even Inexact at all Aug 15 13:03:32 just to get something to happen once a day Aug 15 13:04:11 jzelinskie: what is your use case Aug 15 13:04:24 pulling data from a server after it's updated server side Aug 15 13:04:41 it updates at a certain time everyday, but i don't want everyone to hit the server at the same time Aug 15 13:04:50 ah ok Aug 15 13:04:51 nor do i want them getting a notification at 3am if the server updates then Aug 15 13:05:05 (if they're in a diff timezone) Aug 15 13:05:30 do you have some time range of when this should happen for all clients? Aug 15 13:05:50 once a day Aug 15 13:05:59 between blah and blah? Aug 15 13:06:10 or any time during the day Aug 15 13:06:15 any time Aug 15 13:06:38 generate a random time and set a repeating alarm for that time Aug 15 13:06:54 I'd imagine you'd be fine with INTERVAL_DAY Aug 15 13:07:44 I doubt it'll wait an extra day, instead of batching it up with other alarms 15 minutes later Aug 15 13:08:11 Or 30 minutes or whenever someone else might have set an inexact alarm Aug 15 13:08:40 ah, so they get batched together Aug 15 13:08:50 didn't know that thanks Aug 15 13:09:33 Yeah, so if three apps set an alarm each, but at different times, it can fire all at the same time and only wake up the device once Aug 15 13:09:55 makes sense Aug 15 13:10:06 That's why you potentially can wait up to a full interval Aug 15 13:10:47 if your alarm fires at 1pm, with an interval of an hour, and it can see that another app is scheduled to fire at 1:45pm, it might batch them together some time after that Aug 15 13:10:59 yeah Aug 15 13:11:06 take a look at the source fish if you want details Aug 15 13:11:11 source cod i mean Aug 15 13:11:20 lol! Aug 15 13:11:38 I doubt your app is the only one running an alarmmanager, so the chances of having to wait a full day is slim Aug 15 13:12:27 i tried it the other day on an emulator and i don't think it fired off in a day Aug 15 13:12:30 but that was an emulator Aug 15 13:12:33 But even then, it's only the first run that might be delayed for a day.. Then it's run once a day Aug 15 13:19:07 9 old androids walk in a bar Aug 15 13:19:55 ok one more question Aug 15 13:20:01 then they die becuase htey're old and no one cares Aug 15 13:20:41 say i have items in a list that each have an update functionality, is it better to write an async task for updateall or just fire off a bunch of asynctasks one for each item Aug 15 13:21:40 SimonVT: are u here now? Aug 15 13:21:46 by default JB? queues your asynctasks I think Aug 15 13:21:56 prior to then, they would just all fire at once Aug 15 13:22:49 i'm targetting 2.2+ Aug 15 13:23:10 targeting* Aug 15 13:23:27 although i am developing on JB :) Aug 15 13:23:30 "targetting" Aug 15 13:23:39 and mikedg im pretty sure it's HC+ Aug 15 13:23:42 supporting* Aug 15 13:24:07 it appears most things like that are HC+ Aug 15 13:24:13 so multiple asynctasks will behave differently on 8-10 than 11+ Aug 15 13:25:38 hc doesnt exist Aug 15 13:26:27 americancow: it does on 2.3% of all devices that uses Google Play Aug 15 13:26:33 taljurf: yes Aug 15 13:26:46 SimonVT: i tried using ur calendar, built it on api 14, when i tried it on the emulator (4.1) and tried to show it did not respond, i tried it on 2.3.5 it runs slow(unusable) and the calendar doesnt show up, only something like SSMTWTF Aug 15 13:26:51 http://www.fpaste.org/zUHt/ Aug 15 13:26:57 So I built a library twice, once with neon and once without neon, and named the modules differently. Aug 15 13:27:09 How could I conveniently do System.loadLibrary(foo) where foo varies whether CPU has neon or not? Aug 15 13:27:13 Did you add the theme attribute Aug 15 13:27:51 I find a lot of instructions for doing this at ndk level, with android_getCpuFeatures or some such call, but I would prefer to not write a library just to find out if android has NDK Aug 15 13:28:26 SimonVT: I have , but im afraid i've not done it correctly Aug 15 13:28:27 err, android is running on CPU with NEON Aug 15 13:28:28 sorry Aug 15 13:28:36 SimonVT: just a sec Aug 15 13:28:49 alankila: build.cpu_abi Aug 15 13:28:53 alankila: or something like that Aug 15 13:29:17 alankila: I think build.cpu_abi; it tells you the instruction set w/ the same naming convention as the ndk. However, you shouldn't need to do that for just loading a library Aug 15 13:29:48 alankila: the ndk will build libs for all the platforms you tell it to, and the installer when your app is installed will provide the proper one. Just do load_library and your library name, dont' worry about the abi platform path Aug 15 13:29:56 SimonVT: http://www.fpaste.org/DByd/ Aug 15 13:30:14 dragorn: you may not be aware of this but neon is not an architecture/abi in sense that android would solve this problem for me Aug 15 13:30:27 alankila: android breaks it into armv7 and armv7-neon Aug 15 13:30:39 alankila: so either I misunderstand you, or, it should work Aug 15 13:30:57 Okay. Let me try some more. Aug 15 13:31:04 SimonVT: what theme name shall i use , the one in the styles.xml or manifest? Aug 15 13:31:28 I can't find a -neon specific output in libs Aug 15 13:31:32 alankila: or rather, armeabi and armeabi-v7, which if I recall, splits neon and non-neon. Let me check tho - it's possible I'm being dumb here and confusing it w/ a different issue I looked at Aug 15 13:31:45 alankila: because TBH I haven't cared about neon in my native code, most of it is one-shot stuff Aug 15 13:31:49 taljurf: You should set your theme in your manifest Aug 15 13:31:51 I think you are simply wrong then Aug 15 13:31:55 the neon is not a separate architecture Aug 15 13:32:25 neon green is my favorite color Aug 15 13:32:38 SimonVT: ok testing Aug 15 13:32:46 so I think I *have* to build a module with neon stuff enabled specially, or build the library in such a way that it chooses at runtime on its own whether to do neon crap or not Aug 15 13:33:08 Since you're using ABS, you should probably extend one of its themes instead of the framework theme Aug 15 13:33:28 alankila: yeah I was conflating it with a different issue I'd been dealing with at the time Aug 15 13:33:57 Oh screw this shit, I'll just do a stupid cpudetect library and use that Aug 15 13:34:35 alankila: you could parse /proc/cpuinfo if you really felt like it Aug 15 13:35:43 no. :-p Aug 15 13:35:47 well I could do this, I guess. Aug 15 13:36:07 I think I'll rather take a stab in doing the same runtime detection stuff everyone uses. Aug 15 13:39:06 alankila: I presume you've seen http://www.kandroid.org/ndk/docs/CPU-ARM-NEON.html Aug 15 13:40:21 I know how this works. I just resent the fact I can't comfortably query this information from java Aug 15 13:40:34 this way of doing it sucks balls Aug 15 13:40:48 alankila: agreed; just passing it along Aug 15 13:47:18 SimonVT: didnt work, even when i add it to the xml file, all i get in the graphical layout is something like "NULL" and "SSMTWTF" below it Aug 15 13:53:35 ArrayList fragments = new ArrayList(2); fragments.set(0, myFragment); //out of bound exception. wtf? I said it should be preallocated for 2 fragments. Aug 15 13:54:36 Hah, this ended up so comically hacky that it's a wonder it works at all Aug 15 13:54:44 alankila: lols Aug 15 13:55:07 #define fever Aug 15 13:55:53 #define bieber Aug 15 13:56:09 also my new neon code has the privilege of being far slower than the vfp it replaced Aug 15 13:56:25 did you actually need to use neon code Aug 15 13:56:29 or youjust did it to be cool Aug 15 13:56:35 guys , can webview display pdf files? Aug 15 13:56:44 canadiancow: are you going to switch to americancow when you move Aug 15 13:56:48 taljurf: no Aug 15 13:56:57 sigh Aug 15 13:57:10 can i try it out for a bit mikedg? Aug 15 13:57:31 you fucking registered it Aug 15 13:58:10 americancow: any independent thing i can add to my app to display pdf, i dont wanna be restricted by the absence of any pdf app Aug 15 13:58:16 americanheffer? Aug 15 13:58:51 mikedg: ^^^^ Aug 15 13:59:16 actually it seems to be mildly faster after all. Well, most of the NEON intrinsics aren't in use yet so I guess that's why it doesn't quite work properly yet Aug 15 13:59:22 taljurf: not sure, i think there may be a free library but not too sure Aug 15 13:59:36 most people just rely on external apps, pretty much everyone has one and you can just direct to adobe Aug 15 14:10:46 SimonVT: didnt work, even when i add it to the xml file, all i get in the graphical layout is something like "NULL" and "SSMTWTF" below it Aug 15 14:18:54 if i have a random PendingIntent(and nothing more) can i determine when it goes off? Aug 15 14:22:36 How could I go about monitoring network traffic? I want to see what some apps are transmitting/receiving? Aug 15 14:22:57 I see there's shark for root, is root required for this sort of thing? Aug 15 14:23:05 porten: afaik yes Aug 15 14:23:15 porten: pretty much. You can know who is active and count bytes globally Aug 15 14:23:22 Jug6ernaut: don't think so Aug 15 14:23:39 porten: but you can't get per-app-source precision. Even w/ root it'll be tricky to know what app generated something, from just a data capture Aug 15 14:23:40 :\ Aug 15 14:24:39 porten: you can combine netstat and raw capture to try to work out stream to app linkages, but it'll still miss a lot of traffic - udp and stuff that starts and stop sbetween your probes of netstat Aug 15 14:26:42 I'm trying to extend ListFragment, I also imported the support library.. I keep getting "Call requires API Level 11" error Aug 15 14:26:43 so is this app crazy or something? http://blog.mobilescope.net/ Aug 15 14:27:18 dragorn: Aug 15 14:29:38 porten: looks like bullshit to me. I'd guess what it really does is scan manifests for permissions - internet + contacts, etc Aug 15 14:30:17 porten: Alternately it would require root, and even then, their claims are BS Aug 15 14:30:27 Hmm... was not actually using neon. This time I am for sure. The neon version is actually almost twice as slow as the straight-up vfp code served by gcc from generic C program Aug 15 14:30:54 porten: because if I was going to leak your personal data out of an app, i'd wrap it in SSL, which would block their "looks for your email address in traffic" claim Aug 15 14:31:08 some key operations are probably wasting time converting between VFP and NEON right now & that explains the cause Aug 15 14:31:13 porten: their other option is rooting, installing their own cert, and man-in-the-middle-ing all your traffic. Aug 15 14:31:57 porten: yeah I really see no way this can do what it claims, at least, what it claims in the way its written on that article Aug 15 14:32:24 porten: ah hah. there we go. "causes all future traffic to be routed through a vpn to mobilescopes server" Aug 15 14:33:24 porten: so if you want to ship every bit of data to another company who is doign DPI, yeah. That's how they do it. Aug 15 14:33:31 dragorn: Oooo ok Aug 15 14:33:35 lol Aug 15 14:33:51 porten: "can examine data sent over secure connections, like banking websites". Hollllly shit, this thing is EVIL. The only way they should be able to do that is to give you a fake cert, and MITM all your SSL Aug 15 14:33:58 porten: which is crazy dangerously horrible. Wow. Aug 15 14:35:57 porten: if you're willing to root the phone you may be able to play games with iptables doing packet tagging per uid, and track packets back to apps that way. It will definitely require root, which is generally a bad plan. Lots of ppl will run things tht require root, and they really shouldn't, since you lose all control Aug 15 14:35:57 dragorn: where did yuo see hat comment about the routing? Aug 15 14:36:10 hi, someone can help me? I have an custom listview and allways after i added an item to the list and call notifyDataSetChanged() on the adapter i get an null pointer exception Aug 15 14:36:19 porten: in the link you pasted (or the window it tries to open). http://www.technologyreview.com/news/428772/how-to-detect-apps-leaking-your-data/ Aug 15 14:36:20 Which method is garantueed to be called when an activity is closing/finnishing/destroyed? Aug 15 14:36:22 is there some doc guy? https://developer.android.com/reference/java/util/ArrayList.html#ArrayList(int) there should be mentioned that the new list will be *empty*! Aug 15 14:36:34 http://docs.oracle.com/javase/7/docs/api/java/util/ArrayList.html#ArrayList(int) it is here Aug 15 14:37:27 i have no idea whats going wrong there Aug 15 14:37:36 johanhar: onPause Aug 15 14:40:05 Pitel_laptop: and with which data would you like your list to be filled ? Aug 15 14:40:05 ... Aug 15 14:40:12 kind of stupid Aug 15 14:40:30 hrnt: so if the activity is being closed from the OS, or backbutton, or Activity.finish or ANY other way, onPause will ALWAYS be called? Aug 15 14:40:44 johanhar: well, it won't be called if you run out of battery Aug 15 14:40:50 haha :D Aug 15 14:40:59 ok, thanks :) Aug 15 14:41:28 so... today is the last day of flash for android Aug 15 14:41:53 im trying to get some text to appear in a webview using loadData, but instead of displaying my webview says "the web page at data:text/html;null;%3Chtml%...all of my text with %20 for spaces etc" Aug 15 14:42:08 why isnt it just displaying properly Aug 15 14:42:15 ive tried removing < and > from the text, Aug 15 14:42:21 am i not able to reappend the adapter with adapter = new Custom(...) and listview.setAdapter(adapter) after calling listview.setAdapter? Aug 15 14:42:31 so im sitting here touchign buttons to animate shit for like 2 mins because everything's slow (galaxy nexus with Aug 15 14:42:34 4.1) Aug 15 14:42:38 dragorn: thanks for the info, that was great Aug 15 14:42:41 turns out i had the debugger attached Aug 15 14:42:50 I'll need to think more about this Aug 15 14:45:51 please, i tried to customise dependend on this tut http://android.un-reachable.net/custom-and-efficient-listview/ and i find no way to add items at runtime:( Aug 15 14:49:24 Activity.finish(), does it call onPause or onStop ? Aug 15 14:49:35 I tried to log, but want to be sure, I got only something on onStop... Aug 15 14:52:09 this time only onPause was called... wtf Aug 15 14:52:30 johanhar: only onPause is guaranteed to get called Aug 15 14:52:37 johanhar: http://developer.android.com/guide/components/activities.html#Lifecycle Aug 15 14:52:41 ok, thanks Aug 15 14:53:18 do I call super.onPause() before or after my own stuff when overriding? does it matteR? Aug 15 14:58:52 WTF the first call to Context.getApplicationInfo() take about 300ms to execute ? Aug 15 14:58:53 johanhar: you'll generally want to call it before. Aug 15 14:59:38 johanhar: finish() will finish your activity altogether, so you'll get onPause, onStop, and onDestroy Aug 15 14:59:59 thanks lov Aug 15 15:05:06 any of you use ormlite? Aug 15 15:05:19 i'm trying to figure out how to handle partial object updates Aug 15 15:05:32 as in, only some of the fields change Aug 15 15:10:01 hi guys Aug 15 15:10:17 need help regarding a custom list view Aug 15 15:10:50 how do i set a onItemclicl listener for a custom list view? Aug 15 15:12:54 adicool123: you mean 'a listview with custom adapter?' Aug 15 15:13:12 ya a list view with a custom adapter Aug 15 15:13:23 it has a imageview n a textview Aug 15 15:13:51 what happen with the normal lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {} Aug 15 15:13:52 its working fine but i just cant attach a listener to the List View Aug 15 15:14:15 my activity extends ListActivity Aug 15 15:14:47 so i did listview l=getListView(); Aug 15 15:15:05 l.setonItemClick doesnt get recognised Aug 15 15:16:27 hoangtran : any ideas? what i may be doing wrong? Aug 15 15:17:23 err, nope, I haven't tried using ListActivity Aug 15 15:17:44 :( Aug 15 15:18:13 here is my java file in case someone needs to have a look : http://pastebin.com/1TtGgzTs Aug 15 15:19:23 adicool123: http://developer.android.com/reference/android/app/ListActivity.html#onListItemClick(android.widget.ListView,%20android.view.View,%20int,%20long) Aug 15 15:20:34 Geez Aug 15 15:20:42 i messed up Aug 15 15:20:50 i figured out what my problem was Aug 15 15:21:15 i was trying to implement a listener outside the class Aug 15 15:21:24 thanks hoangtran :) Aug 15 15:22:18 np, :), and I notice that you didn't check/reuse the convertView in your getView() method Aug 15 15:23:54 Hello channel. Beginner here. I have a Nexus S loaded with Jelly Bean. I'd like to find and browse the kernel source for that (claimed 3.0.31-letters). Would someone point me to Samsung's kernel sources? Thanks in advance Aug 15 15:23:58 hoangtran: ya i was just messing around i will use it :) Thanks again Aug 15 15:25:22 I know how to build a linux kernel for a GNU/linux system. But I'm not sure where to find android sources. Aug 15 15:27:55 ManoftheSea: this channel is for app development, maybe ask in #android Aug 15 15:28:12 or #android-root Aug 15 15:28:58 ManoftheSea: actually you're probably better off asking in a IRC channel for a group of ROM developers Aug 15 15:29:17 since they're the people actively playing with the kernels Aug 15 15:29:18 Hello Aug 15 15:29:18 wongk jzelinskie thanks. Bye. Aug 15 15:29:23 Does android support java7 syntax? Aug 15 15:29:28 many people in this chanel are very busi with redirekting people:) Aug 15 15:29:52 webczat: no Aug 15 15:30:16 are you sure? It would be very cool if I would be able to use strings in switch/case or try with resources. Aug 15 15:30:24 quite Aug 15 15:30:30 And I'm wondering what will happen with jdk8 Aug 15 15:30:47 because it will add lambdas Aug 15 15:31:06 anyone watching this Samsung announcement ? stream not loading for me Aug 15 15:31:26 Chainfire: no but i bet they are anouncing the iphone 5 Aug 15 15:31:36 if i set setNotifyOnChange(true) in the constructor of a class extending ArrayAdapter, should the view update if i add an item to the array? Aug 15 15:32:27 blacki|dl: no, there are methods o nthe adapter for that Aug 15 15:33:25 wongk yes, you mean notifyOnhange? Aug 15 15:33:38 blacki|dl: no, i mean methods that modify the array and notify Aug 15 15:34:00 wongk with one you mean? Aug 15 15:34:10 there is also a method that notifies if you want to modify the array "manualy" Aug 15 15:34:11 Chainfire: it's the note tablet, isn't it? Aug 15 15:34:25 blacki|dl: check the docs Aug 15 15:36:00 wongk i dont get fit with the docs about 3 days now. and every thing else i read is discrepant Aug 15 15:36:25 i am not able to parse what you just said Aug 15 15:37:42 so if you provide just an xhdpi 9patch, and you have one pixel marked stretchable, hwen it's loaded on ldpi, that pixel can be scaled into nothingness, and it crashes, so they recommend you have at least two pixels Aug 15 15:37:55 am i going to run into the same problem when xxhdpi comes out, and i dont have three pixels? Aug 15 15:38:01 try { parse(blacki|dl); } catch (IOException ie) { Log.i("Parse activity", "Houston, we have a problem"); } Aug 15 15:38:03 i want to communicate with my appengine server, sending a user and password. how can i keep this secure from packet snoopings? ssh? Aug 15 15:38:46 kaneda^: that helps a lot Aug 15 15:43:48 is romcontrol not working in the latest sources? i'm getting this error, and in the manifest ROMCOntrolActivity wasnt delcared correctly https://gist.github.com/3361083 Aug 15 15:46:43 oops wrong channel Aug 15 15:52:48 <_ohm> Real quick, is it possible for an android device to connect and receive data from multiple bluetooth devices or only one device at a time? Aug 15 15:57:50 google suggests that multiple devices of the -same- type will often have problems Aug 15 15:57:57 oh, he left Aug 15 16:00:07 I'm trying to use ViewPageIndicator Aug 15 16:00:10 anyone used it before? Aug 15 16:06:26 My android shows free space + used space == 4 Gb and my sdcard is 8Gb ... Who has been stealing my space ? Aug 15 16:06:44 does it have a partition of some kind? Aug 15 16:06:51 Not that I know of Aug 15 16:08:02 Any other guess ? Aug 15 16:48:59 Anyone knows if theres a file size limit for transfering files via bluetooth ? Aug 15 16:51:37 so Runtime.getRuntime().availableProcessors() returns 1 when my system is supposed to be dual core. Aug 15 16:52:02 moreover, if I partition the work into two threads, they get done in half the time, proving that it is in fact dual core. Even stranger is that when I cat /proc/cpuinfo, it looks like there's just 1 core Aug 15 16:52:15 ARM/Android is just weird Aug 15 16:54:00 Are cores the same as processors? Aug 15 16:54:15 hmm, so there's a TextUtil class for common String manipulation functionality *since* API 1 Aug 15 16:54:23 well, cpuinfo at least should list every execution thread Aug 15 16:54:39 they are to the OS, for all practical purposes Aug 15 16:55:30 well, since I can't reliably find out how many cores there are, I'll just pick a number. 4. There will always be 4 threads. Aug 15 16:56:48 there'd be ndk's android_getCpuCount() though Aug 15 16:57:09 I wonder if that lies Aug 15 16:58:16 I guess there's no way around it. I must write the stupid cpufeatures jni library that I can use to ask this info Aug 15 16:58:19 Fuck. Aug 15 16:58:43 that will take nearly half the time you've spent complaining about it Aug 15 16:58:56 on the upside, at least I get to delete all the ugly runtime neon detection code I wrote. Aug 15 16:59:22 you could benchmark it with threads :) Aug 15 17:01:18 hey, anyone happen to have a suggestion on how to make a clickable textview that looks like a link? Aug 15 17:01:47 i've got the color down and the click handler attached, but i'm not sure how to make it visibly change when you touch it, but haven't released yet Aug 15 17:02:00 put it in an anchor tag Aug 15 17:02:22 oh, i need to run code when the thing is touched; it's not a static link Aug 15 17:03:03 you can customize what actually happens when the link is pressed Aug 15 17:04:06 is there a specific channel for the aosp project? Aug 15 17:06:19 wongk: hmm, do you mean that it should be something like android:text="<a href="#">hello!</a>" ? Aug 15 17:06:43 i'd put that in a string resource, of course, but is that the idea? Aug 15 17:07:17 C0deMaver1ck: in theory, #android - but in practice, no there isn't Aug 15 17:08:11 Escherial: yes, except don't escape it Aug 15 17:08:31 Leeds: yeah, I've been sitting in #android for a little bit Aug 15 17:08:36 It seems to be kids from xda-developers other forum type sites... Aug 15 17:08:58 C0deMaver1ck: the google groups are the home of aosp, really Aug 15 17:09:35 that's what I've been noticing, thought maybe Jean-Baptiste setup an IRC room somewhere... or was hoping rather Aug 15 17:11:13 he used to hang out in - or at least pop into - #android, before he gave up on the world Aug 15 17:12:13 yeah, I try my best to stay away from the hordes of xda types Aug 15 17:13:06 looks like android_getCpuCount() said 2. Aug 15 17:15:02 C0deMaver1ck: this channel is probably the best you'll get. Aug 15 17:15:18 & I could add NEON support via the System.loadLibrary("foo-neon") method, which makes C code straightforward and leaves the whole neon support complexity to Android.mk Aug 15 17:16:01 tried irc.google.com :p Aug 15 17:16:19 but I'm sure it's not somewhere so obvious Aug 15 17:17:30 C0deMaver1ck: an example https://groups.google.com/forum/#!topic/android-building/zji_sQGN9Oo/discussion Aug 15 17:18:24 yeah I just joined the Android Building, Android Contributors, and Android Linux Kernel Development Aug 15 17:18:26 google groups Aug 15 17:18:57 You, uh, may be in for some disappointment there as well ._. Aug 15 17:19:04 lets just say that the signal to noise ratio isn't always great. Aug 15 17:19:24 haha Aug 15 17:20:42 gah, what does a developer have to do to offer his services in this world?! :X Aug 15 17:20:57 submit patches? Aug 15 17:21:03 bamb! Aug 15 17:21:20 open source code Aug 15 17:21:25 services meet world Aug 15 17:21:45 meant more in relation to android specifically Aug 15 17:21:51 I already open source most of my code Aug 15 17:21:54 specifically, submit patches for Android :) Aug 15 17:22:05 lol Aug 15 17:22:07 lol Aug 15 17:25:29 C0deMaver1ck: do my job for me Aug 15 17:25:59 Frankly, with the dearth of developers and the glut of jobs, just doing android development at all would be a service Aug 15 17:26:22 do you mean 'in certain locations'? Aug 15 17:26:40 lov: find me a job in NOLA doing Android development ;) Aug 15 17:26:53 right now I'm stuck doing Rails, so I'm not even doing Java Aug 15 17:27:25 sad day Aug 15 17:27:26 If you're willing to move to the west or east coast, I can certainly find you a job or 20 Aug 15 17:28:05 if it wasnt for nancy palosi.... Aug 15 17:28:12 lov, eeeeh? Aug 15 17:28:15 * kaneda^ pokes head in Aug 15 17:28:24 by east coast, do you mean NYC/Atlanta? Aug 15 17:28:25 there's jobs's? Aug 15 17:28:27 (sorry) Aug 15 17:28:28 get your head out of there! Aug 15 17:28:31 Yeah, NYC Aug 15 17:28:32 lov: sure lol Aug 15 17:28:46 don't know bout NYC, too cold up there Aug 15 17:28:48 that is unfortunately only a small part of the east coast Aug 15 17:28:49 I have no idea how ATL is as far as jobs, but I figure DC is probably a good shot though :P Aug 15 17:29:07 NC has some android jobs Aug 15 17:29:07 kaneda^: there are no jobs in "there", get your head out. Aug 15 17:29:16 NC, interesting. Aug 15 17:29:19 :| Aug 15 17:32:24 * C0deMaver1ck goes off and starts his own software development business with tons of venture capital Aug 15 17:32:30 there, problem solved Aug 15 17:33:42 this plan will work Aug 15 17:34:22 * C0deMaver1ck shuts down business citing piracy Aug 15 17:34:55 are any of you bloggers? Aug 15 17:35:19 I kinda blog http://c0demaver1ck.github.com/ Aug 15 17:35:20 I'm a blagger Aug 15 17:35:24 it's like a blog but with an a Aug 15 17:35:25 heh, i have a blog... i'm not really a blogger though Aug 15 17:35:38 so really it's nothing like blogging Aug 15 17:36:01 lov: blagging sounds really cool, tell me more :O Aug 15 17:36:19 I think I've said everything I needed to. Aug 15 17:36:23 this seems like a pretty friendly channel. (but i haven't started asking noob questions yet) Aug 15 17:37:03 Why is there no horizontal listview, or a least a good gallery type widget? Aug 15 17:37:09 uh Aug 15 17:37:27 lolwut? Aug 15 17:37:28 http://developer.android.com/reference/android/widget/Gallery.html Aug 15 17:37:32 * lov stares Aug 15 17:37:36 deprecated and it's brutal? Aug 15 17:37:37 lov: beat me too it Aug 15 17:37:49 a blag? Aug 15 17:38:01 Use HorizontalScrollView like it suggests then Aug 15 17:38:04 * lov shrugs Aug 15 17:38:09 kaneda^: it's a type of blog, but more like randall monroe Aug 15 17:38:15 who's randall monroe? Aug 15 17:38:25 kaneda^: the guy who runs xkcd Aug 15 17:38:26 http://xkcd.com/ Aug 15 17:38:28 no view recycling, no callbacks for what's currently visible, no nice way to scrolling to things in the list Aug 15 17:38:34 oooh right Aug 15 17:38:39 that guy lives in somerville/boston Aug 15 17:38:42 ok, fair points. Aug 15 17:45:07 probably why it's deprecated Aug 15 17:46:04 i have a question, should i ask here? Aug 15 17:47:24 C0deMaver1ck: are you afk? Aug 15 17:47:31 Niyakun: if one of the hundreds who've come to ask about the bill gates toilet then no. Aug 15 17:47:38 lol Aug 15 17:47:39 :p Aug 15 17:48:03 what is bill gate's toilet? windows 8 ha? :P Aug 15 17:51:03 anyway I have certain sound files in the res/raw/ directory, i can access them by R.raw.sound1, R.raw.sound2 and so on, I was asking if there is a way to access them by a loop like for(int i=0;i<10;i++){ // as something like "R.raw.sound" + i Aug 15 17:51:27 i know this wont work because R is a class and the whole thing is not a string Aug 15 17:51:39 but any ideas how to achieve similar functionality? Aug 15 17:53:28 put them in an array Aug 15 17:53:34 Niyakun: the general rule of thumb is "Ask your question, don't ask to ask" Aug 15 17:53:35 use reflection Aug 15 17:53:42 this rule applies to all IRC channels, in fact Aug 15 17:53:46 if you say "i have a question" and then go afk, there is no chance that someone will have helped you by the time you get back Aug 15 17:53:59 gbw: gfw Aug 15 17:55:52 mikedg: i should use reflection? Aug 15 17:55:58 that is a good question Aug 15 17:56:13 mikedg: ? Aug 15 17:56:31 not sure what gfw means Aug 15 17:57:44 basically i would like to retrieve the resource by giving its name like "R.raw.soundfilesname" as a string instead of using R.raw.soundfilesname, because it would involve more if and else statements and lengthen my code Aug 15 17:58:49 Niyakun: http://stackoverflow.com/questions/7934746/select-raw-file-based-on-number-in-android Aug 15 17:58:53 Niyakun: use reflection... R.raw.class.getField("foo") or something Aug 15 18:02:18 ty Aug 15 18:03:19 this really solved my problem, tyvm Aug 15 18:16:27 Hi. I have forked the DeskClock and tried to rename it to DeskClock2 for the time being. I have renamed every reference of DeskClock and AlarmClock into DesckClock2/AlarmClock2. Aug 15 18:16:47 But then there is this cursor; http://pastebin.com/jE9qKtMf, giving this error: E/AndroidRuntime(11731): Caused by: java.lang.SecurityException: Permission Denial: opening provider com.android.deskclock.AlarmProvider from ProcessRecord{412a2088 11731:com.android.deskclock2/u0a179} (pid=11731, uid=10179) that is not exported from uid 10012 Aug 15 18:17:21 Hello. I'm trying to search the whole / for music files (learning - first android app here). All I get though are records from /system/media/audio. How can I go "global internal"? I set permission to global_search but...no luck here Aug 15 18:18:15 huh? Aug 15 18:18:35 biggi_mat: query the MediaStore http://developer.android.com/reference/android/provider/MediaStore.html Aug 15 18:19:08 best WTF support email of the day from ass clown user: "Not working since last update". You cannot be more concise than that. Aug 15 18:19:23 lov, I do that, kind of. I do query the MediaStore.Audio.Media.IS_MUSIC != 0 Aug 15 18:34:42 "Adobe is pulling its Flash Player plug-in from Android's Google Play store." Aug 15 18:34:45 \o/ Aug 15 18:35:03 we should throw a party Aug 15 18:35:44 Drakonite: one step closer to dead :) Aug 15 18:36:28 "But he stressed the firm was still confident about its future on PCs." Aug 15 18:36:39 problem is, the future isn't PCs dumbass Aug 15 18:36:56 what is Aug 15 18:37:25 tablets! Aug 15 18:37:25 and future of what Aug 15 18:37:39 ... Aug 15 18:37:40 .. Aug 15 18:37:40 . Aug 15 18:38:54 H.265 will probably be better ;) Aug 15 18:39:40 4? Aug 15 18:39:45 no, 5 Aug 15 18:39:51 " Seemingly half the web is still based on Flash, and my device is now powerless to view any of that content." Aug 15 18:40:08 i have flash disabled in chrome, i almost never have any problems Aug 15 18:40:29 Jug6ernaut-work: http://news.ycombinator.com/item?id=4385593 Aug 15 18:40:54 :| Aug 15 18:41:00 if thats true Aug 15 18:45:57 net split Aug 15 18:46:54 you get RESULT_CANCELLED if you dont explicitly set a result, right? Aug 15 18:47:18 hmm, i set that explicitly Aug 15 18:47:18 for an alert dialog canadiancow? Aug 15 18:47:38 alertdialogs have results? Aug 15 18:48:06 for an activity... Aug 15 18:48:13 i ^^^ Aug 15 18:48:20 minus i Aug 15 18:49:15 canadiancow: seem to remember you want to set that explicitly in case the user backs out Aug 15 18:49:38 k Aug 15 18:59:02 is there any way to determine when a random notification is dismissed? Aug 15 18:59:36 with an accessability service u can get a reference to the notification object, but even with that i can see a way to. Aug 15 18:59:37 cool, Version Control with Git 2e is out; maybe this time i will figure it out Aug 15 19:03:10 How do you install a program on android that is not on the marketplace? (.apk) Aug 15 19:03:39 start it from the file explorer? Aug 15 19:03:48 IDK I haven't got a android device Aug 15 19:03:53 Nibble: adb install Aug 15 19:03:56 which is why I am asking Aug 15 19:03:59 lov, no from the device Aug 15 19:04:02 ... Aug 15 19:04:07 hehe Aug 15 19:04:12 r u 4srs? Aug 15 19:04:15 yes Aug 15 19:04:21 Uh, install a file explorer app and point to the apk Aug 15 19:04:29 make sure you have "install from unknown sources" enabled Aug 15 19:04:34 canadiancow: RESULT_CANCELED is the default Aug 15 19:04:41 You don't have to set it Aug 15 19:04:42 lov, ty Aug 15 19:04:42 really, if you're using the emulator, just use adb install. Aug 15 19:04:45 thanks SimonVT Aug 15 19:04:47 lov, I am not Aug 15 19:04:55 lov, well I am, but the people aren't going to be obviously Aug 15 19:04:59 if you don't have a device and you don't have an emulator what are you doing Aug 15 19:05:09 I don't understand at all Aug 15 19:05:13 lov, well I just developed an app Aug 15 19:05:14 sooo Aug 15 19:05:18 that's what I have been doing Aug 15 19:05:20 by the way, bypassing an appstore for distribution is a really cruddy system Aug 15 19:05:32 lov, well I don't raelly want to pay the 30 bucks Aug 15 19:05:34 or what it is Aug 15 19:05:39 you have to tell users to install apps from unknown sources, get them to download the app, get them to somehow install it, then have them reenable Aug 15 19:05:45 it's a $25 one time fee for a dev account Aug 15 19:05:48 yes Aug 15 19:05:53 * lov shrugs Aug 15 19:05:56 I am not really going to do anything else Aug 15 19:05:58 probably Aug 15 19:06:00 up to you. You get to explain to end users how to do this. Aug 15 19:06:07 lov, no really? Aug 15 19:06:11 I thought you would do it for me Aug 15 19:06:30 there are very few reasons i would download an apk from somewhere else: 1. it's a beta 2. it's porn (or something like that) Aug 15 19:06:43 porn may have been a bad example here Aug 15 19:06:45 canadiancow, well it's going to be used by a few friends only so Aug 15 19:06:47 but i mean "something not allowed" Aug 15 19:06:48 I don't raelly care Aug 15 19:09:25 SimonVT: setResult(RESULT_CANCELED) is often called on onCreate through the android source code, wonder why they do it Aug 15 19:09:35 man i'm getting rusty Aug 15 19:09:53 Dunno, do git blame and send them an email Aug 15 19:10:34 lol Aug 15 19:10:42 Is anyone else using ActionBarSherlock? I'm using it to apply the Holo theme to my 2.2 app, but can't get it to style my TabHost frames. Aug 15 19:10:55 it doesnt apply the holo theme Aug 15 19:10:58 thats not what ABS is Aug 15 19:11:50 What's it doing then? It sure looks like Holo Aug 15 19:11:58 It gives you an actionbar Aug 15 19:12:01 That's it Aug 15 19:12:27 And exposes Theme.Sherlock which mimicks Holo. Aug 15 19:12:46 on 3.0+ devices Aug 15 19:12:50 It's a backport of the ICS ActionBar Aug 15 19:12:55 There's only a holo theme for the actionbar Aug 15 19:12:57 it doesnt give you holo everywhere on 2.x Aug 15 19:13:14 So of course it looks like the holo actionbar Aug 15 19:13:51 You can apply the theme to your activities in the manifest file and they look like Holo on 2.2 Aug 15 19:13:58 I'm running it on a 2.2 phone right now. Aug 15 19:14:05 2.3 actually. Aug 15 19:14:39 i think the important question is, if you're using an action bar, why use TabHost Aug 15 19:14:56 Xonk, no Aug 15 19:14:58 you're lying Aug 15 19:17:20 You may be right canadian. It added the action bar with the blue border and made the background right so I thought it had applied the theme, but that may be all it's doing. Aug 15 19:17:44 I seem to have done something stupid. I installed the SDK and downloaded the necessary things, but I chose not to make shortcuts. Now I don't know what the actual program is. Could someone provide some assistance? Aug 15 19:18:00 If anyone told you it applied the holo theme to your application, they were lying Aug 15 19:18:06 It's only an actionbar backport Aug 15 19:18:27 Including its looks Aug 15 19:18:38 It seems to be "AVD Manager.exe", ah Aug 15 19:18:50 gbw: that manages AVDs Aug 15 19:19:01 there's no "actual program", there's a series of programs and utilities Aug 15 19:19:05 it's an SDK :P Aug 15 19:19:11 you might want the SDK manager Aug 15 19:19:18 if you go to tools, there's an "android" bin, run that. Aug 15 19:19:19 i'm not sure what AVDs are, or which I need at this moment Aug 15 19:19:27 AVDs are Android Virtual Devices. Emulators, basically. Aug 15 19:19:30 I want the one I can put an .apk in and see the result Aug 15 19:19:43 oh, yes. that. Aug 15 19:19:50 ok, so create an AVD and start it Aug 15 19:19:55 then install an apk either via eclipse or via adb install Aug 15 19:20:17 let's hope flashdevelop is up to the task Aug 15 19:20:19 It looks like HoloEverywhere will work with ActionbarSherlock to apply the Holo theme to 2.x devices Aug 15 19:22:58 gbw: it's generally not. Aug 15 19:23:21 well, no, it generally is, it just makes really heavyweight and expensive APKs that generally burn your CPU as hot as possible, regardless of what's going on Aug 15 19:24:46 interesting...is this applying to haxe or flashdevelop? Aug 15 19:25:13 wait? people use haxe? Aug 15 19:25:23 nah Aug 15 19:26:54 Hi, I'm trying to overwrite "abs__config_actionMenuItemAllCaps" and I added this in my_project/res/values/abs__config.xml false but it has no effect. Any idea why? Aug 15 19:27:31 aleb: Cus you're testing on ICS+ ? Aug 15 19:27:52 I'm on Jellybeans Aug 15 19:28:02 So how do I overwrite it? Aug 15 19:28:43 You don't Aug 15 19:28:54 Don't override abs__ resources Aug 15 19:28:59 It will not work on ICS+ Aug 15 19:29:18 Instead, use the available API to supply your own theming for whatever is possible Aug 15 19:30:34 I thought the ABS's implementation is used even on ICS+ :/ Aug 15 19:31:36 dude, registerOnSharedPreferenceChangedListener is a piece of shit. Aug 15 19:31:48 dude Aug 15 19:31:54 dood. Aug 15 19:32:12 You thought wrong Aug 15 19:33:35 dude Aug 15 19:34:24 duud Aug 15 19:39:08 hi guys Aug 15 19:40:34 hi LordBeppo Aug 15 19:40:57 i got a scrollview an i want to prevent a linearlayout to scoll outside of the scrollview. I want the same effect as i you read an email on the gmail android app. Aug 15 19:41:33 the blue header of the email does'nt scroll out of the scrollview Aug 15 19:41:49 google synchronized scrolling Aug 15 19:44:41 thank you... thats it Aug 15 19:49:04 >_< Aug 15 19:56:36 Is there a way to determine which resource was loaded (in my case: which locale, i.e.: is it from value-de or values-es, ....) Aug 15 19:57:34 Check the locale Aug 15 19:57:46 Is anyone else getting a weird bug where text "jumps" when you select it? Might just be in XML files Aug 15 20:00:10 SimonVT: the locale (getResources().getConfiguration().locale.getLanguage()) gives the latest value, which is useless in my case as it's possible that it has been changed Aug 15 20:00:52 (I'm working on a in-app language changing function) Aug 15 20:01:23 http://stackoverflow.com/questions/11975575/determine-when-random-notification-is-dismissed-or-when-a-pendingintent-is-fire Aug 15 20:01:44 Then no, it's not possible Aug 15 20:02:22 SoulPropagation: sometimes this can happen because of touchscreen inaccuracies Aug 15 20:02:39 that is, you touch something but it is interpreted as a fling or movement Aug 15 20:03:44 ok, so I'll need to implement something similar: save the locale value as soon as the resource is loaded (onCreated()), then use that value on later comparison/check Aug 15 20:04:15 I can't seem to get the selection args to work for sqlitedatabase query Aug 15 20:04:18 Cursor c = mDatabase.query(MEDIA_TABLE, new String[]{MediaConstants.PATH}, MediaConstants.PATH + "=?", new String[]{url}, null, null, null); Aug 15 20:04:19 why are your users changing locales so often? Aug 15 20:04:40 the cursor has this value for the query SELECT path FROM media WHERE path=? Aug 15 20:04:49 doesn't inject the url... any ideas? Aug 15 20:05:03 mikedg: he's not http://i.qkme.me/3orp5p.jpg Aug 15 20:05:08 they're not* Aug 15 20:05:37 mikedg: not so often, I have a screen where user choose a language, which then apply to the app (independent to the system locale) Aug 15 20:12:01 g00s: I meant in eclipse sorry Aug 15 20:18:05 I am playing with ListFragment via LoaderManager and my own SimpleCursorAdapter. After swapping the cursor I see the adapter.getCount() shows the correct number of entries from the LogCat but it won't show it on the screen like it's not updating it. Any idea? Aug 15 20:20:49 frankbro|work: try notifydatasetchanged Aug 15 20:21:08 Jug6ernaut-work: its there Aug 15 20:22:44 try invalidating the view the, tho should not be required Aug 15 20:24:08 Jug6ernaut-work: nope. Damn I wish it would spout me a error or something :I Aug 15 20:24:19 lol Aug 15 20:25:17 frankbro|work: can you pastebin the code Aug 15 20:25:47 wongk: it's ugly because I've been playing around and trying to make it work but sure Aug 15 20:28:20 @SimonVT I have a single action item in the split action bar and I want it to display both the icon and the text, but it does not seem to work. You are right, the native action bar is used on at least JB, so I'll use setActionView. Thanks. Aug 15 20:29:02 wongk: http://pastebin.com/kw26QWi9 Aug 15 20:31:54 wongk: Jug6ernaut-work newView or bindView is never called, isnt that weird? Aug 15 20:32:19 ive never heard of thos functions Aug 15 20:32:24 * Jug6ernaut-work has never used curseradapter Aug 15 20:34:05 anyone know how to get a github "timecard" graph for just one user? Aug 15 20:34:07 or something like that Aug 15 20:34:13 for an arbitrary branch Aug 15 20:34:21 or a way of proving whether someone has actually done anything Aug 15 20:34:53 lol Aug 15 20:35:00 no way to get list of commits? Aug 15 20:35:14 i dunno github has nice graphs Aug 15 20:35:18 but i want to see like... full stats Aug 15 20:35:33 like in the last two weeks, how does person A's contributions compare to person B's Aug 15 20:35:46 canadiancow, did Person A work the same as Person B ? :P Aug 15 20:35:59 both are full-time on the project, paid to work 40 hours Aug 15 20:36:00 * Jug6ernaut-work quietly backs away Aug 15 20:36:43 you can't measure work in commits Aug 15 20:36:57 So, you want to compare those 40 hours? Aug 15 20:37:23 productivity Aug 15 20:37:27 You can only measure code in wtf/min Aug 15 20:37:28 http://www.osnews.com/images/comics/wtfm.jpg Aug 15 20:37:30 Beautiful. Aug 15 20:37:40 i dont want "commits" Aug 15 20:37:44 Ask in #git or #github Aug 15 20:37:51 frankbro|work: how about the layout for the list fragment Aug 15 20:38:07 dark3n: I work in the room on the right. Aug 15 20:38:18 lol Aug 15 20:38:22 wongk: coming right up Aug 15 20:41:48 wongk: http://pastebin.com/ZG4gPFNJ CheckableListItemView is basically a linearlayout Aug 15 20:41:48 Yeah, I'm guessing the adapter is not actually attached to any listview Aug 15 20:43:26 frankbro|work: compare your layout to the layout here: http://developer.android.com/reference/android/app/ListFragment.html Aug 15 20:44:17 wongk: That's not the issue Aug 15 20:44:28 indeed Aug 15 20:44:48 SimonVT: you don't think? Aug 15 20:44:49 SimonVT: it's not? Aug 15 20:44:57 It's not Aug 15 20:45:00 Both are valid Aug 15 20:45:11 Mine's from an example that works, its basically copy pasted Aug 15 20:45:11 But imo you should use android:id/list Aug 15 20:45:14 does it default to looking for list in "android:"? Aug 15 20:45:37 wongk: It looks in android: since you specified android: Aug 15 20:46:17 Its probably just a layout shenanigan indeed Aug 15 20:46:17 it's not specified for 'list' Aug 15 20:46:18 android.R.id.list => android:id/list, not android.R.id.list => id/android:list imo Aug 15 20:46:30 It is specified for the resource type Aug 15 20:46:35 An id in the android package Aug 15 20:47:18 it seems to be worth a try switching it, it will take like 30 seconds :P Aug 15 20:47:30 doing that Aug 15 20:47:34 It is not even worth it Aug 15 20:47:41 the fact that it compiles successfully suggests you're right Aug 15 20:48:07 I exclusively use @android:type/resource Aug 15 20:48:44 nope :( Aug 15 20:49:17 I'm gonna go ahead and recommend not using ListFragment Aug 15 20:49:26 If that's not possible, try manually setting the adapter on the listview Aug 15 20:49:30 Instead of setListAdapter Aug 15 20:49:55 I've used it elsewhere without issue Aug 15 20:49:56 If your bindview/newview is never called, I doubt it's actually attached to the listview Aug 15 20:50:04 Also, you do not need to call notifydatasetchanged when using changeCursor Aug 15 20:50:04 1 more test, are you sure there is nothing in the list? vs. a list of blank items? Aug 15 20:50:33 wongk: I'd think like SimonVT, if bindview/newview isnt called, theres a problem Aug 15 20:50:41 indeed Aug 15 20:50:53 i don't see any other issue Aug 15 20:55:03 I downloaded some android code...it has a .classpath folder...how do I set up my java build path to include what is in that .classpath? Aug 15 20:57:13 eh, getView is never called Aug 15 20:57:21 supa weirsd Aug 15 21:31:21 I'm trying to make my app draw a table procedurally, rather than putting it in the xml. Aug 15 21:31:45 I have a table in the xml, but the rows and views are added in when the program runs. Aug 15 21:31:54 It's only showing the first row. Aug 15 21:32:01 I set every row to have a weight of one. Aug 15 21:32:38 Any idea what my problem might be? Aug 15 21:32:54 Or even what I could search on google? Aug 15 21:34:29 http://developer.android.com/reference/android/widget/LinearLayout.html Aug 15 21:34:43 http://developer.android.com/reference/android/view/LayoutInflater.html Aug 15 21:51:46 <[twisti]> hi, is there a way to get eclipse to use android 'java' as a compiler/error checker ? Aug 15 21:52:03 <[twisti]> i keep stumbling over stuff like the missing String.isEmpty() and such Aug 15 21:52:19 [twisti]: Have you installed the Android SDK? Aug 15 21:52:22 <[twisti]> yes Aug 15 21:52:34 you might want to read the instructions again Aug 15 21:52:46 you probably forgot to tell the ADT where the SDK lives Aug 15 21:53:56 <[twisti]> what instructions ? Aug 15 21:54:08 <[twisti]> i just downloaded the android eclipse package and clicked it twice Aug 15 21:54:11 Eclipse doesn't suggest java methods that don't exist Aug 15 21:54:21 <[twisti]> i was not aware that there were instructions somewhere beyond that Aug 15 21:54:56 there's not an Android eclipse package... o_O Aug 15 21:55:00 where did you get this Aug 15 21:55:41 http://developer.android.com/sdk/index.html is what you want Aug 15 21:56:15 and then http://developer.android.com/sdk/installing/index.html Aug 15 21:57:50 <[twisti]> not sure where i got it Aug 15 21:57:58 <[twisti]> at some point i probably googled "android development tutorial" Aug 15 21:58:12 <[twisti]> i thought that was pretty much the official bundle or whatever Aug 15 22:00:24 <[twisti]> i dont suppose someone could just tell me what setting to change, right Aug 15 22:00:29 I'm afraid I'm not sure what you downloaded. I'd recommend following the instructions I linked. Aug 15 22:01:03 <[twisti]> well, its inconvenient getting the isEmpty completion, but not inconvenient enough that im nuking my entire dev setup and starting from scratch Aug 15 22:01:11 isEmpty exists Aug 15 22:01:15 Check your api level Aug 15 22:01:31 <[twisti]> well, not in the api level im developing for Aug 15 22:02:03 <[twisti]> which is 7 Aug 15 22:02:09 <[twisti]> lowest common denominator and all that Aug 15 22:02:49 <[twisti]> i also get an odd error when i try to ant build my project, a bunch of this: Aug 15 22:02:50 <[twisti]> [javac] symbol: class ConstructorProperties Aug 15 22:02:50 <[twisti]> [javac] location: package java.beans Aug 15 22:02:50 <[twisti]> [javac] error: cannot find symbol Aug 15 22:03:04 <[twisti]> ideas where that comes from ? Aug 15 22:04:14 [twisti]: You're not using the Android SDK. That class doesn't exist on Android Aug 15 22:04:42 <[twisti]> right, thats why i get that error: because im using the android sdk, and it doesnt exist Aug 15 22:05:35 You really should set up your environment correctly. It shouldn't take more than 30 minutes or so if you have a decent internet connection. Aug 15 22:06:14 <[twisti]> this doesnt have anything to do with my environment Aug 15 22:06:25 <[twisti]> its when i try to build the project with ant Aug 15 22:06:30 <[twisti]> no eclipse involved Aug 15 22:07:04 Okay, then it's because you're using things that don't exist. You have to use things that exist. Aug 15 22:07:28 I'm using the android virtual device and I'd like to try a local .apk file. I'm finding results that are almost 4 years old, so I'd like to make sure they're still valid. Aug 15 22:07:37 <[twisti]> but im not using that Aug 15 22:07:47 <[twisti]> look, it says it comes from java.beans Aug 15 22:07:54 are you using java.beans? Aug 15 22:07:56 <[twisti]> i dont work for oracle, i dont put my things in java.* packages Aug 15 22:07:57 <[twisti]> no Aug 15 22:08:09 <[twisti]> not how it doesnt say that its in any of my files Aug 15 22:08:12 <[twisti]> note* Aug 15 22:09:45 <[twisti]> ah, my bad, thats from lombok, that explains why it whines like that Aug 15 22:16:37 The ADT lint doesn't seem to notice Target API level problems on JDK classes… is that a known issue? Aug 15 22:17:12 e.g. IOException constructors that take a cause are API level 9, but lint doesn't warn even though my min-level is 7 Aug 15 22:18:12 spifff: is this in eclipse? Aug 15 22:21:21 ryanm: yes. is it possible to run the lint form the command line as well? Aug 15 22:22:00 spifff: try right clicking on the project in eclipse and going to Android Tools > Run Lint: Check for Common Errors Aug 15 22:23:11 ryanm: did that, it doesn't pick it up. probably because the JDK version of IOException ends up in the classpath before the Android version? Aug 15 22:24:26 spifff: what is your targetSdk? Aug 15 22:25:01 mr6: 11 (min=7) Aug 15 22:25:15 spifff: that...shouldn't happen. Have you added the JDK to your path or something? Aug 15 22:25:25 *your build path Aug 15 22:25:43 android projects should be building against the Android SDK Aug 15 22:27:26 ryanm: not manually, but it is on the build path. possibly because I'm using Maven. I just tried running lint from the command line and it doesn't find the problem then either Aug 15 22:28:03 spifff: yeah that seems like a problem Aug 15 22:28:09 spifff: https://groups.google.com/forum/?fromgroups#!forum/adt-dev Aug 15 22:28:13 spifff: you could report it there Aug 15 22:28:16 Have you done a compile before you run it? Aug 15 22:31:00 SimonVT: yes Aug 15 22:59:52 anyone knows about the generation of /data/anr/slow??.txt files and disabling it ? Aug 15 23:01:10 anyone here? Aug 15 23:01:20 no Aug 15 23:01:52 bubbleguuum: I thought it generated traces.txt, what is slow??.txt? Aug 15 23:03:12 mr6: it is an idiotic "feature" found on some ROMs (in particular CM9) where the system will write a slow??.txt file if an app UI thread is blocked for 500ms Aug 15 23:03:52 I suspect it to slow down devices as you get these files written when launching almost any app Aug 15 23:04:02 this is stupid stupid stupid Aug 15 23:04:11 bubbleguuum: ah OK, probably CM has an IRC you can ask on Aug 15 23:05:04 yes but there's only dead people for now and it is not entirely specific to CM Aug 15 23:13:31 anyone know the cause of the error "can't copy meta-inf/com/google/android/update-binary"? Aug 15 23:15:09 Hey, I have an app I started writing a while back for 2.3, even though ICS was out by that point… this was 6 months or so back. Now I'm finding that I want to rewrite most of it, or at least restructure it, so I'm revisiting the decision to target 2.3 rather than 4.0+. How is the current deployment distribution? Are there still a lot of phones on 2.3 or lower, and what is the percentage of 4.0+ adoption? Is it enough that I ca Aug 15 23:15:09 alright targetting 4.0+ and starting to use Fragments and such? Aug 15 23:15:30 My app is fairly simple; a syncing note-taking app with two or three activities. It won't matter a ton either way Aug 15 23:16:02 jrajav: http://simonvt.net/2012/02/07/what-api-level-should-i-target/ Aug 15 23:22:42 HorizonXP: I'm not sure what the take-away is. I already know what the various attributes imply, and it's convenient that you can check the version at runtime for single-method calls, but how do I apply this to fragments? That's a fairly extensive change, and to achieve the same kind of multi-form-factor functionality on 2.3 I would have to have separate .apk's. Aug 15 23:23:13 why do you need fragments for a note taking app with 2 or 3 activities? Aug 15 23:23:22 i can't stick around to chat, but I don't see the issue Aug 15 23:23:53 Because then I can put the note list and the note edit activitied in as fragments instead, allowing me to have them separate on a phone form factor but remain on the same screen for a tablet Aug 15 23:24:32 can anyone help me on the android.com my first app tutorial? Aug 15 23:24:53 im stuck on the part where u add an intent Aug 15 23:26:45 anyone? Aug 15 23:27:19 jrajav: fragments are in the support library, FYI Aug 15 23:27:41 Oh, good Aug 15 23:28:51 Thanks; I had completely forgotten about the support library Aug 15 23:29:09 All I really wanted from 4.0 was Fragments, and it seems like they're supported pretty well by the support library Aug 15 23:29:25 I guess I can target 2.2 or 2.3 and forget about it Aug 15 23:29:53 I'm pretty sure lower than 2.2 is fading; At least it was already very low 6 months ago Aug 15 23:30:06 I'd still like to know where that pie chart of the current distribution has gone to, I can't seem to find it Aug 15 23:30:11 It was somewhere on dev.android.com Aug 15 23:30:19 http://developer.android.com/about/dashboards/index.html Aug 15 23:30:29 Thanks again Aug 15 23:30:33 np Aug 15 23:30:57 Wow, 4.0+ is barely 20% it looks like Aug 15 23:31:05 I thought it would be a little more by now Aug 15 23:58:17 I have a service that needs to update an activity that is on the foreground. How can I get a reference to that activity? Should I just pass a reference to it? Aug 16 00:12:56 does anyone know if there is a vertical 'baseline' on textviews? Aug 16 00:13:24 ie if you have 2 textviews, 1 with an image to the left and one without how do you align them vertically Aug 16 00:13:45 tmho: RelativeLayout Aug 16 00:13:53 bleh Aug 16 00:14:13 without wrapping it in a layout and adding an imageview Aug 16 00:23:22 whats the difference betwee: pass, invoke, call Aug 16 00:23:29 i always get them muddled up Aug 16 00:24:30 Reaga, pass parameters? Aug 16 00:24:38 I have a reference to an activity that is in the foreground. (I'm using Activity field = this; to store the reference) Later I can use the activity to call findViewById() and get a reference to a textview in that activity. Now, the textview works fine if I call .getText.toString() but I cannot call .setText() or .append() Anybody know why? Aug 16 00:24:48 invoke to me is the same as call Aug 16 00:24:59 Reaga: Passing means 'giving a function some variable' invoke and call are the same thing to me as well. Aug 16 00:25:02 they mean functions and methods Aug 16 00:25:08 ok Aug 16 00:25:15 what about invoke and call Aug 16 00:25:20 Rather, giving a function some VALUE Aug 16 00:26:53 Reaga, invoke to me is the same as call. they are to run a function Aug 16 00:27:18 sweet Aug 16 00:27:28 so everyone is just as confused as i am Aug 16 00:27:50 Reaga: Perhaps those two words really are synonyms Aug 16 00:29:02 http://stackoverflow.com/questions/1345769/calling-and-invoking-w-r-t-to-any-computer-language Aug 16 00:29:13 i think i will flash cupcake back on one of my g1s and make sure i access the play store on it at least once a month Aug 16 00:29:24 that way i can be part of the 0.2% Aug 16 00:32:21 birbeck: -.- why do it.... Aug 16 00:32:58 im tired of being part of the 99%. i want to be one of the 1337 few in the 0.2% Aug 16 00:33:53 flash to JB then and help cupcake die Aug 16 00:34:09 i already have jelly bean on 3 devices Aug 16 00:34:38 then congrats you own 3*.08% of the market Aug 16 00:34:51 oh ya Aug 16 00:34:53 :) Aug 16 00:35:15 better yet, flash 4.0 and be apart of the 0.1% Aug 16 00:35:39 oh, i guess i do still have a 4.0 galaxy nexus Aug 16 00:35:54 i dont think it was ever turned on this month Aug 16 00:36:06 does that make you feel a little bit better? Aug 16 00:36:16 yes, local search! Aug 16 00:36:28 are there live stats? Aug 16 00:36:29 google should depricate < 2.2 Aug 16 00:37:52 tmho: i dont know that google still makes apps for < 2.1 Aug 16 00:38:39 i meant restrict access to the market' Aug 16 00:38:58 i still have apps that are compatible with 1.6+ making money Aug 16 00:39:17 believe it or not, there are still people out there trying to download apps on those dinosaurs Aug 16 00:39:33 :-) Aug 16 00:39:55 how old man s 1.6? Aug 16 00:39:57 google should give them all new phones then first -.- Aug 16 00:39:59 old is Aug 16 00:40:10 kbd fail Aug 16 00:40:11 SpeedEvil: October 2009 Aug 16 00:40:14 prematurely killing a device would be *evil* Aug 16 00:40:20 hmm Aug 16 00:40:26 tmho: yah, unless google gave them free upgrades Aug 16 00:40:50 I regularly use my Nokia n900, which is Nov 2009 Aug 16 00:42:35 i dont use my g1s anymore because i dont have mini-usb cables at work Aug 16 00:44:21 I am setting it up so I can use it as modem and storage for nexu 7 Aug 16 00:44:40 64g of portable storage Aug 16 00:46:46 arghhhhhh Aug 16 00:46:51 google plus not loading Aug 16 00:49:15 they are migrating it into Facebook, following the takeover. Aug 16 00:50:40 i fuckin hate my isp Aug 16 00:50:47 time to move to kansas Aug 16 00:51:03 tesco not loading here. Aug 16 00:51:25 and I was wanting to amend tomorrows grocery order Aug 16 00:53:48 SpeedEvil: there's a brand new supermarket opening across the road from my place this morning - they just started the traditional new-supermarket lion dance in the street outside :) Aug 16 00:54:36 hey Leeds are you from leeds Aug 16 00:54:47 hey Reaga how did you guess? Aug 16 00:54:54 online shopping is awesome. Aug 16 00:56:07 SpeedEvil: I'll take a supermarket which is close enough that I could run a zipline from my living room window... Aug 16 00:57:07 :-) Aug 16 00:57:30 no car here. well, no legally operable one. Aug 16 00:57:46 and 5miles from nearest shop Aug 16 01:02:23 don't need a car here - we have something called a "public transport system" Aug 16 01:02:41 Leeds: where? Aug 16 01:02:47 birbeck: Hong Kong Aug 16 01:02:48 * ryanm doesn't need a car, but one would be handy Aug 16 01:03:11 Leeds: oh wow, i had no idea Aug 16 01:03:23 that Hong Kong had a public transport system? :) Aug 16 01:03:25 i thought chicago or ny or something like that Aug 16 01:05:18 never been to chicago, haven't been to NY since 2001 Aug 16 01:06:47 well good morning and good night Aug 16 01:06:54 im outta here Aug 16 01:07:17 morning... Aug 16 01:28:56 Can anybody point me in to the right direction to building jelly bean on the sprint galaxy nexus (I know it is not offical, but people are doing it, just want to build my own, or at least learn to do it). Any info at all would help Aug 16 01:30:09 You could try asking in the Android Building Group. https://groups.google.com/forum/?fromgroups#!forum/android-building Aug 16 01:33:00 Thanks haskeller! Aug 16 01:33:26 No problem. Be advised you'll need a hell of a machine ;) Aug 16 01:33:40 mbrumlow: #android-root Aug 16 01:35:09 also thanks bankai_! Aug 16 01:35:21 haskeller: I am going to load it up on the 32 core 64 gig ram box at work :/ Aug 16 01:36:17 Nice Aug 16 01:37:01 This was going to be a build server, but I have been swampped with other work, so setting it up has been delayed (hopfully for a few months) lol Aug 16 01:42:05 haskeller: looks like I found what I needed on that group. Aug 16 01:42:34 Someobdy alrady did the hard work of adding the device tree for toroplus Aug 16 01:43:45 Show us the thread, in case any shy fellow was wondering the same. Aug 16 01:50:02 when running activity tests, is it possible to delay the start of some tests? Aug 16 02:02:52 Great news everyone! Verizon Galaxy S III bootloader has finally been unlocked! http://hqtech.co/android/how-to-unlock-verizon-samsung-galaxy-s-iii-bootloader/ Aug 16 02:08:42 sorry Aug 16 02:08:47 gf got the better of me Aug 16 02:09:01 https://groups.google.com/forum/?fromgroups#!searchin/android-building/toroplus/android-building/XBYeD-bhk1o/w0606tVjdnkJ%5B1-25%5D Aug 16 02:09:20 I have not tested it yet Aug 16 02:09:35 but his comment seemed to describe what I wanted. Aug 16 02:09:46 Build ASOP jelly bean for sprint galayx nexus Aug 16 02:10:04 mbrumlow: this channel is for app development... Aug 16 02:12:23 awsesome good to know. Aug 16 02:13:57 there could be a channel for OS development, but the problem is that it would be almost entirely questions with very few answers, because the people who know the answers are generally too busy to hang around on IRC and help newbies Aug 16 02:15:22 is that so? Aug 16 02:16:03 yes? Aug 16 02:19:23 May I PM you Leeds? Aug 16 02:19:35 um, what about? Aug 16 02:20:26 I would like to conitnue a conversation you started that is not of proper topic for this channel. Aug 16 02:20:44 suppose so Aug 16 02:23:58 /msg Leeds o hai leeds i heard u liek pms about non-channel stuff so i pm'd u again k thx bai Aug 16 02:26:10 Why does this line of code force close my app with a outofmemoryexception? Aug 16 02:26:11 bitmap = Media.getBitmap(getContentResolver(), selectedImageUri).copy(Bitmap.Config.ARGB_8888, true) Aug 16 02:26:45 I get a bitmap exceeds VM budget Aug 16 02:27:11 dlaroche: the image is too big? Aug 16 02:27:14 That is the only bitmap being manipulated, and yet it is saying it is out of memory? Aug 16 02:27:24 it was taken with the phone camera Aug 16 02:29:08 ^ahmedammar Aug 16 02:29:33 dlaroche: yeah i saw it, not sure sorry, it was just the first thought that came to mind. Aug 16 02:29:41 ok thanks Aug 16 02:30:00 dlaroche: i'd say check the image dimensions before doing the copy Aug 16 02:31:10 it is just a test example I am putting together to play with image proecessing. It simply opens the Gallery for the user to select an image, and then after that it has a button to apply a filter using JNI. I can't even get the bitmap to load without this error Aug 16 02:31:47 There is no way my app can be exceeding this much memory? I'm baffled Aug 16 02:33:24 dlaroche: i'm guessing that .copy is at fault Aug 16 02:33:34 not sure what the exact problem is Aug 16 02:34:06 it is. I just did some profiling, and it appears my heap size is 5MB Aug 16 02:34:16 the app is using 2.5MB at startup Aug 16 02:34:34 Leaving me with less then 2.5MB to manipulate a bitmap Aug 16 02:34:45 is the heap suppose to be this small, and that much used? Aug 16 02:34:51 dlaroche: I haven't read http://developer.android.com/training/displaying-bitmaps/index.html but maybe you should? :) Aug 16 02:35:29 Leeds: ok smart ass, but I'm not displaying a bitmap! I'm loading one to have a filter applied Aug 16 02:35:50 dlaroche: have you read the first bloody paragraph of that page? Aug 16 02:36:13 the bit where it says "If you're not careful, bitmaps can quickly consume your available memory budget leading to an application crash due to the dreaded exception: Aug 16 02:36:13 java.lang.OutofMemoryError: bitmap size exceeds VM budget." Aug 16 02:37:00 or did you just assume that the right answer was the wrong answer and get sassy? Aug 16 02:37:13 There was a reason I didn't read that page, because you meant to point me to this one -----> http://developer.android.com/training/displaying-bitmaps/load-bitmap.html Aug 16 02:37:50 which is linked from the one I said I hadn't read Aug 16 02:38:06 guess we both need to read the first one then Aug 16 02:38:07 you obviously didn't make any attempt to read it either - except you're the one who is failing to load a bitmap into memory Aug 16 02:38:29 it doesn't really matter to me if your app crashes, but presumably it matters to you? Aug 16 02:38:30 meh Aug 16 02:39:19 damn it, i'm reading Leeds Aug 16 02:45:02 hi. first time releasing an app. im about to release an app to the client for them to test/approve. if i sign with my own key...then make changes later on based on the client's feedback, will i be able to sign again with the same key without needing to update the version, etc. will the client still be able to install it or might it lead to errors? Aug 16 02:45:48 boing: I'd say it's good practice to update the internal version number - not necessarily the version string - whenever you distribute a release build Aug 16 02:46:04 I would say so too. Aug 16 02:46:18 But my question still stands... :D Aug 16 02:46:31 boing: yes you can. Only the Google Play market will freak out Aug 16 02:46:39 I don't want to update the version number every single time I want to build an installable APK... Aug 16 02:46:48 dlaroche: great, thanks... Aug 16 02:46:51 thanks Leeds also... Aug 16 02:47:28 is it really that much work to increment an integer? Aug 16 02:47:53 I'm assuming he is using a folder system for versioning Aug 16 02:48:06 no no im not using a folder system Aug 16 02:48:28 i was just curious really whether i needed to update the version number in the manifest Aug 16 02:48:33 boing: that doesn't effect the answer I gave you. Leeds is just commenting Aug 16 02:48:44 yup i know, thanks Aug 16 02:48:52 if for no other reason than later, when the client comes back and says "but you didn't fix X", you can check whether he's got the version with the fixed X in it :) Aug 16 02:49:11 Leeds, don't worry...i will update the version number Aug 16 02:49:41 i was more just curious Aug 16 02:49:51 or if there was any other gotchas Aug 16 02:52:59 oh another question while im here...i havent gotton around to reading the Resources developer docs yet...but something i was unsure of is how android might choose res/values- ... example, i could have values-v11, and values-xlarge (for example)... Aug 16 02:53:08 what if the device is both v11 and xlarge? Aug 16 02:53:33 my app is simple so it's not an issue. Aug 16 02:53:46 it's also 4am here. so im not reading those docs tonight! ;) Aug 16 02:55:16 it should pick in the order the qualifiers are listed in http://developer.android.com/guide/topics/resources/providing-resources.html#table2 Aug 16 02:55:36 and since vXX is the last thing in the table, -xlarge should overrule it, AIUI Aug 16 02:58:55 hey, i've made my first (very simple) app Aug 16 02:59:04 need some advice on android api versions Aug 16 02:59:17 whats the minimum sdk version that must be suported? Aug 16 02:59:23 http://developer.android.com/about/dashboards/index.html Aug 16 02:59:25 you decide Aug 16 02:59:30 yeah i've seen that Aug 16 02:59:44 just wanted some idea of the best practice **** ENDING LOGGING AT Thu Aug 16 02:59:58 2012