**** BEGIN LOGGING AT Sun Jan 19 03:00:00 2014 Jan 19 03:00:13 so i should remove the function definition? Jan 19 03:07:58 chromium: yeah, or add a () at the end to run it Jan 19 03:08:02 but just remove the function I think Jan 19 03:25:24 Anyone know how you can use your phone instead of a virtual device in Android Studio? I' Jan 19 03:25:33 ve already enabled debugging mode on the phone Jan 19 03:29:37 removed the function and still not workking Jan 19 03:32:53 Hey guys! I'm having trouble getting the location of the device. When I use google's location api in an activity, I can get new locations without trouble when WiFi is unavailable. This is not the case with my service. Is that normal? If so, why and how can I fix it? Jan 19 03:34:39 Is it normal? Jan 19 03:38:58 Is the issue unclear? Jan 19 03:41:15 what would the best way to get the avg color of all pixels in a bitmap? Jan 19 03:41:28 other than adding them all up and dividing by #pixles Jan 19 03:43:41 I440r: Skip every second second or third line when adding up, then divide by #pixels calculated, since neighboring pixels are similar? Jan 19 03:45:08 wilornel, well the bitmap is only 72x72 - i think what i need to do is precalculate this and use lookup as the individual bitmaps i need this info for do not change Jan 19 03:45:26 not a problem - just a SMOP now lol Jan 19 03:45:59 Hello Jan 19 03:46:02 I440r: oh... saving the average is probably the way to go Jan 19 03:46:06 rdegraci: Hi Jan 19 03:46:11 Is it ok to ask Google Glass dev questions here ? Jan 19 03:53:04 Anyone know where to get the proper stock Windows drivers for a Nexus 4? Jan 19 03:57:18 Hmmm... are there even 'official' drivers for the Nexus 4? Jan 19 03:57:44 does android have library for checking of given polygon has overlaps? Jan 19 03:57:49 with itself Jan 19 03:59:07 XXCoder: dunno about polygons - believe Rects have a .intersect() Jan 19 03:59:23 hm ok Jan 19 04:12:57 XXCoder: don't think so Jan 19 04:13:28 yeah I guess i have to test for interections Jan 19 04:13:42 I dont plan to work on that idea for a while anyway so no hurry Jan 19 04:14:15 XXCoder: here's some code I use for my app: https://github.com/JesusFreke/Penroser/blob/master/src/org/jf/Penroser/GeometryUtil.java Jan 19 04:14:21 a/ct Jan 19 04:14:24 oops Jan 19 04:14:32 not exactly what you need, but related at least :) Jan 19 04:15:30 bsd license Jan 19 04:16:41 There was a geometry library I was using for a while that was pretty nice Jan 19 04:16:45 but it was also kinda slow Jan 19 04:19:26 yeah I might not even need it Jan 19 04:19:32 just concept stage atm Jan 19 04:20:25 ah, here it is: http://www.vividsolutions.com/jts/JTSHome.htm Jan 19 04:20:38 tons of features, etc. Jan 19 04:22:20 sweet, bookmarking that Jan 19 04:22:25 greetings, anyone know if keyboard IMEs (swype/swiftkey etc) have to ask for network/keyboard permission first? Jan 19 04:22:36 did same Jan 19 04:23:08 some android versions do ask if youre sure you want to use specific keyboard if not set default Jan 19 04:23:30 that's different the permissions would be when you install the keyboard Jan 19 04:23:49 but does it mention about internet connectivity at all? Jan 19 04:24:03 I wouldn't think a KB would need internets... Jan 19 04:24:05 like "swype will be phoning home your keystrokes, is that okay with you" kinda thing Jan 19 04:24:11 unless you're going to be downloading dictionaries or something Jan 19 04:24:15 well yeah or phoning home to the NSA Jan 19 04:24:29 that's the problem with un-granular permissions Jan 19 04:24:52 how's permissions in android like? coming from iOS here Jan 19 04:24:56 as far as i know, keyboard and network are separate permissions Jan 19 04:25:05 hmm Jan 19 04:25:07 it shows up as a dialog prior to installing the app Jan 19 04:25:14 I guess I'll find out when my nexus arrives tomorrow Jan 19 04:26:40 compared to ios [ask right before using feature] android asks for all permissions before installing; so it's an all-or-nothing deal Jan 19 04:26:58 I'm assuming you can enable/disable later? Jan 19 04:27:10 not right now Jan 19 04:27:10 no Jan 19 04:27:16 :o Jan 19 04:27:16 it's possible, though Jan 19 04:27:16 well Jan 19 04:27:19 there is the Privacy Guard thing Jan 19 04:27:24 what's it called in stock Jan 19 04:27:25 App Ops Jan 19 04:27:26 but it's hidden Jan 19 04:27:46 App Ops is mostly an OS developer tool, so far Jan 19 04:27:50 hmm, I see Jan 19 04:27:57 is it possible to make an app that accesses app ops? :p Jan 19 04:28:19 doesn't seem like a good idea Jan 19 04:28:32 shingshang: yes, but it leads to users breaking stuff without a clue Jan 19 04:28:38 ah right Jan 19 04:28:39 it doesn't really disable the permission though Jan 19 04:28:42 it just feeds the apps fake data Jan 19 04:28:43 right? Jan 19 04:28:57 sounds like it really is meant for developers then Jan 19 04:29:18 that's why they hid it :) Jan 19 04:29:25 but this "cannot easily disable permissions after installing an app" does not sound very sane Jan 19 04:29:32 android permission are not sane Jan 19 04:29:33 or is there a rationale for this? Jan 19 04:29:34 that is correct Jan 19 04:29:51 durka42: no, it disables them Jan 19 04:29:59 the android model is, install this app if you trust the devs and think the permissions it requests are reasonable Jan 19 04:30:20 not sure if the android permission model isn't actually older than iOS one Jan 19 04:30:24 some apps give reasons why they need each permission in their description Jan 19 04:30:33 the rationale [I speculate] is that the folks designing this bit of android were influenced overly by windows vista Jan 19 04:30:41 eh? Jan 19 04:31:08 heh, the perfect OS to be influenced by Jan 19 04:31:26 yes - the pendulum went too far the other direction Jan 19 04:31:50 IMO it's kind of broken because if I need to, say, ping my server for an updated time zone list once a month, I need full internet permissions forever Jan 19 04:31:57 shingshang: in a way Vista and OSX are very, very similar. Both were examples of "to hell with backwards compatibility" Jan 19 04:32:31 microsoft is fanatical about backwards compatibility Jan 19 04:32:35 not that we should go into that here Jan 19 04:32:43 durka42: it's kinda impossible to declare detailed network permissions for generic apps without breaking users Jan 19 04:32:49 if(mLocationClient.isConnected()){ currentLocation = mLocationClient.getLastLocation(); } currentLocation == null.... A if locationClient is connected, it does not guarantee a "LastLocation" ? Jan 19 04:33:02 durka42: Vista (and later) were the first where they dropped "compatibility with bugs in 3rd party apps" Jan 19 04:33:33 fair enough Jan 19 04:34:32 p_l: yeah, I dunno, you could declare a regex of URLs or something, but someone else mentioned that you only need one URL to run a proxy server, so it would be hopeless anyway :) Jan 19 04:35:26 durka42: it works for declaring permissions in chrome extensions, because those specify access to websites, not internet (and are equivalent of requesting custom permissions for specific content providers) Jan 19 04:35:55 sure Jan 19 04:36:29 though some extensions need to inject some javascript on every site or whatever so they still need full permissions, which sounds scary Jan 19 04:36:33 it's always granularity vs. usability Jan 19 04:36:57 the problem is that there are afaik more permissions in android than iOS, and there are features that afaik iOS doesn't have at all that have far-reaching meaning in permissions Jan 19 04:37:20 I guess it's also ask-on-first-use versus all-or-nothing... Jan 19 04:37:53 * p_l can't exactly recall many apps where "ask on first use" made sense Jan 19 04:38:10 now, "ask on every use" Jan 19 04:38:22 you're just gonna train users to click through them all anyway Jan 19 04:38:23 :/ Jan 19 04:38:32 I've always wondered whether it might have been more useful to have the first big list show up; but allow the user to uncheck as they prefer Jan 19 04:38:40 yes I want that :) Jan 19 04:38:45 you can do it with app ops/privacy guard Jan 19 04:39:44 but it's clunky Jan 19 04:42:06 ask-on-first-use [if the user so chooses for some permission] I think would be a good indicator of what the app's trying to do, so I can decide whether I want it to do it. [eg: contact-manager access.] Jan 19 04:42:24 app ops isnt perfect Jan 19 04:42:28 Has anyone ever tried to replace android's runtime and application libraries? Jan 19 04:42:33 kbs: https://www.alexburka.com/owncloud/public.php?service=files&t=6818897a5e9b6869d38c5cc6d3ebc75f Jan 19 04:42:33 some apps can crash Jan 19 04:43:03 yes - I do realize that android/linux can be tweaked :-) Jan 19 04:43:28 just speculating about the stock/aosp system Jan 19 04:44:33 app ops is hidden in stock 4.3/4.4 Jan 19 04:45:21 do CM allow access to app ops? Jan 19 04:45:33 yep; though as p_l says - it's not been opened up so far. http://news.cnet.com/8301-1035_3-57616076-94/why-android-wont-be-getting-app-ops-anytime-soon/ Jan 19 04:46:20 yeah that's how I took the screenshot Jan 19 04:46:22 there's already a lot of problem with restricted users, afaik Jan 19 04:46:36 I'm sure internally at google there's enough debate about this; this question has been around ever since I can remember anyway... Jan 19 04:51:10 [unrelated, but since I've asked this question over the last few days; finally poked at enough things to broadly see how play services internally obtains oauth tokens on behalf of apps. Wish this was documented, it seemed rather interesting...] Jan 19 04:55:12 I'm using ACCESS_FINE_LOCATION, but the location api does not seem to get updates from the GPS when I move around (displacements of 50 meters) Jan 19 05:00:24 How do people develop the core android stuff? It's so frickin' complex and there is so much of it @_@ Jan 19 05:00:45 are aliens making this stuff? Jan 19 05:01:06 like most software, it accretes rather than gets designed... Jan 19 05:01:43 It used to be basic... But a couple of years made it better... Jan 19 05:02:30 Not good enough to give me coarse location through the device's GPS without me having to figure the whole system out by myself, though Jan 19 05:03:03 isn't there some parameter you set to indicate how frequently you want the updates too? Jan 19 05:04:37 kbs: Yes, there is. I set the normal one at 1100 milliseconds, and the fastest rate at 1000 milliseconds Jan 19 05:04:56 It used to work. There some slight detail I might have overlooked.... or erased.. Jan 19 05:05:07 Ok, I see. I only played a bit with it a while back unfortunately; not much insight... Jan 19 05:06:02 Still, I'm thankful Jan 19 05:06:33 So, aliens did make it? Jan 19 05:08:17 wait, is google run by aliens? Jan 19 05:08:28 I'm figuring everything out mwuhahaha Jan 19 05:11:13 I wonder if anyone could genuinely believe in that... Jan 19 05:12:38 I seriously believe google is made by aliens, because the source code for android is just to tremendous to comprehend for mere humans. Jan 19 05:13:05 example? Jan 19 05:14:03 well, I mean, have you seen the git repository? Jan 19 05:14:05 https://android.googlesource.com/ Jan 19 05:14:40 lotsa codes Jan 19 05:16:10 It's very well divided Jan 19 05:16:15 And structured Jan 19 05:18:00 yea and there are tons of parts Jan 19 05:19:50 I can't find a single book that explains how it all works -.- Jan 19 05:21:09 I can't even find the folder for all the android.* classes Jan 19 05:27:04 yea I can't seem to find the application libraries either Jan 19 05:27:36 I'm amazed no one has really documented this source code, but it's so large I can see why. Jan 19 05:28:43 Zettablade: well it helps that good parts of it has been coded for years Jan 19 05:28:49 years before android even Jan 19 05:28:59 its base is linux after all Jan 19 05:29:31 the android layer itself is java, which is well developed too Jan 19 05:31:03 very true Jan 19 05:33:13 I've been reading about haskell lately, and I desperately want to replace dalvik with some sort of custom haskell-based runtime. I think that could be really neat. Jan 19 05:33:32 meh since ART is slowly making headways Jan 19 05:33:40 too bad ART cant be used on my epic Jan 19 05:33:47 it fills out space lol Jan 19 05:35:03 ART is still java though. I'd rather get a neat haskell based runtime, and replace android pretty much entirely. Jan 19 05:35:59 well there's this http://lambda-the-ultimate.org/node/299 Jan 19 05:36:07 I don't think it really runs on phones though :) Jan 19 05:37:55 probably just a pipe dream, but it would be cool to use haskell instead. Jan 19 05:41:14 Alright, last time asking, before I ask again tomorrow... Jan 19 05:41:36 Damn... I really need to figure it out by myself, there's pretty much no other way, I guess.. Jan 19 05:42:15 I remember last time the problem was that I did not requestLocationUpdates.. But now I'm doing it... Jan 19 05:44:00 Zettablade: it natively complex all Jan 19 05:44:04 compiles Jan 19 05:44:27 so it do run more or less as fast as native execs do Jan 19 05:44:51 Davtik recompiles parts of apk as it runs. thats why ART takes so much more space Jan 19 05:45:20 how do I put a Preference entry in my xml that launches another PreferenceFragment when you touch it? Jan 19 05:46:09 ah, PreferenceScreen maybe Jan 19 05:48:35 excellent Jan 19 05:51:42 android would be a jittery mess if it didn't compile the bytecode omg Jan 19 05:52:11 I wonder if there is a way to set dalvik to not use JIT Jan 19 05:52:24 just to see how much of a difference it makes Jan 19 05:54:28 I think the new ART is AOT compiled innit? Jan 19 05:55:45 yea itts Jan 19 05:56:04 takes some more memory to use, but worth it Jan 19 06:02:25 <_genuser_> ok, folks, AynsTaskLoader has a problem. .initLoader() doesn't actually load it. Jan 19 06:02:37 <_genuser_> have to call .forceLoad() on it. has anyone else seen this? Jan 19 06:03:14 <_genuser_> this presents that problem that if this loader is calling with .forceLoad() in onCreateView, then on screen rotate, it fires off another request because of .forceLoad(); Jan 19 06:03:28 <_genuser_> which essentially defeats the purpose of the loader manager already processes requests. Jan 19 06:11:18 zett yeah in my case it takes too much memory. drat Jan 19 06:17:40 Oh that's too bad. I've got a nexus 5 and 7, and both run it nope problem. I'm actually using dalvik with a cool little patch from qualcomm for dalvik and bionic. Jan 19 06:18:04 Not enough people understand just how awesome the qualcomm patches are xD Jan 19 06:21:33 <_genuser_> so I see my activity data (member vars) is preserved across screen rotates. Jan 19 06:21:51 my phones quite ancient (epic 4g not touch) Jan 19 06:22:19 whats weird when I tried ART it says my /data has only 16 mb left or so Jan 19 06:22:42 <_genuser_> is that something to expect or should one explicitly save the data in onconfigchanged Jan 19 06:22:51 but when as I code and test and push apk of my app to it, it has 3.4 gb left Jan 19 06:22:51 no idea whats going on Jan 19 06:22:59 doubt ART takes gbs! Jan 19 06:23:07 how can i ensure that class a's constructor happens before class b's constructor? Jan 19 06:23:42 neither of the classes are instantiated by me. they are both defined in my layout Jan 19 06:24:22 don't think you can ensure that Jan 19 06:24:49 <_genuser_> if you don't control the instantiaion order, you can't ensure that unless you implement special logic in there. Jan 19 06:24:56 then my code is fubar because class b uses information that class a creates Jan 19 06:25:15 <_genuser_> you can have a static var in class b. such as b.loaded. Jan 19 06:25:29 <_genuser_> and you can ping it in class a to wait until it's loaded and then initialize. Jan 19 06:25:31 eh? Jan 19 06:25:37 class be ensures that b is loaded? Jan 19 06:25:38 <_genuser_> but that kinda stuff can reaaaaaaally backfire. Jan 19 06:25:47 or do you mean a a.loaded in b? Jan 19 06:25:53 <_genuser_> oh sorry, right reverse that. Jan 19 06:26:39 whats the exact syntax for this? Jan 19 06:26:55 <_genuser_> public static boolean Loaded=false; Jan 19 06:26:56 Boolean foo=a.loaded() ??? Jan 19 06:27:02 oh Jan 19 06:27:09 that wont work i dont believe Jan 19 06:27:20 <_genuser_> in b(){ blah blah; blah blah; Loaded=true; } Jan 19 06:27:51 <_genuser_> in a(){ while(!b.Loaded) { ; } Jan 19 06:27:58 <_genuser_> once you break out of the loop, continue initialization. Jan 19 06:28:13 wont work unless the loading is all done in parallel Jan 19 06:28:42 <_genuser_> but I see. you could put an even more complicated thing in place. Jan 19 06:29:36 <_genuser_> alternatively, you could put something really annoying like sleep(1000) in a(){ sleep(1000); // then do crap } Jan 19 06:29:57 <_genuser_> well, taht wouldn't work either if they're loaded in teh same thread. Jan 19 06:30:09 no thats bad too. simple answer is move the stuff out of the class and into my onResume() Jan 19 06:30:21 then bythe time either class is instantiated the info is available Jan 19 06:30:34 <_genuser_> yeah, if you can move stuff around that will help. Jan 19 06:30:57 i dont like disassociating stuff from a class that truely belongs to that class Jan 19 06:31:26 i mean. this is a bitmap that the class uses and thus is loaded by the constructor Jan 19 06:31:29 <_genuser_> well, just recreate the class b in onResume then. Jan 19 06:31:30 still asking in root. adding youall. --- ate there any clear instru tions for rooting my old phone or general principles? what I read is unclear. Have rooted optimus v, to reflash stock. Jan 19 06:31:33 but the other class also uses that bitmap Jan 19 06:31:48 <_genuser_> if that's possible. Jan 19 06:32:09 no im not instantiating EITHER class. Jan 19 06:32:22 both are instantiated by the layout Jan 19 06:32:39 <_genuser_> understood. I just meant you could re-instantiate it, so it's instantiated with valid data in a by the time of your manual instantiation. Jan 19 06:33:03 im not adding 400900 lines of code to twiddle the various config of either class when it can all be done in 6 or 7 lines of xml Jan 19 06:33:33 <_genuser_> but these are just random ideas that I'm throwing out. Jan 19 06:33:41 ill just move the bitmap load out of the constructor of that class Jan 19 06:33:42 <_genuser_> I'm seeing convoluted setups in my code also, :) Jan 19 06:34:13 its ugly, it will require an extensive comment as to why something that belongs TO a class is not handled within that class but its the only real solution Jan 19 06:34:43 <_genuser_> have you any experience with screen rotation? Jan 19 06:35:22 oops corrwction am rooted, want to reflah rom. after over a year it might be corrupted. Jan 19 06:37:53 tripelb this isn't the channel, try #android-root Jan 19 06:38:39 <_genuser_> does anybody know if my data is already preserved across orientation change, if I still need to saved it and restore it in onConfigurationChanged? Jan 19 06:40:38 _genuser_ did you read the docs? lifecycle 101 Jan 19 06:41:10 http://developer.android.com/training/basics/activity-lifecycle/index.html Jan 19 06:41:13 <_genuser_> g00s: I did. I suggests that onCreate will be called, unless I change the manifest to say that I'll handle the rotation myself so it won't restart the activity. Jan 19 06:41:43 <_genuser_> however, without the manifest change, onCreate being called on screen rotation, my data seems to be preserved just fine Jan 19 06:41:49 specifically http://developer.android.com/training/basics/activity-lifecycle/recreating.html Jan 19 06:42:06 <_genuser_> in emulator AND on real device. Jan 19 06:43:39 <_genuser_> I'm seeing the necessary data preserved across rotates. My curiousity is whether this is intentionally being saved as member var by android or should I explicitly saved it. Jan 19 06:43:59 <_genuser_> because it's not part of the View. just member var. Jan 19 06:44:57 i dont' see how that possible Jan 19 06:45:10 <_genuser_> even tho, the docs say you should save it. Jan 19 06:45:22 <_genuser_> the second link you posted, specifically say you should save it. Jan 19 06:47:22 hmm Jan 19 06:47:31 so I'm making a lock screen sort of Jan 19 06:47:42 when the phone is off and you plug in headphones, it launches the default application Jan 19 06:47:46 but I'd like it stay locked and I handle that myself Jan 19 06:47:53 is that possible? can I override that only when the screen is locked? Jan 19 06:48:40 static fields will not go away on recreate Jan 19 06:48:54 dunno theres so few lockscreen examples Jan 19 06:49:14 _genuser_ btw, a good thing to try is set debug options to destroy activities when user leaves them Jan 19 06:49:18 I wanted to just futz with lockscreen a bit see whats it like but well Jan 19 06:49:42 i remember on my droid-1, having to go into the web browser to do that :) and it worked :D Jan 19 06:49:52 <_genuser_> g00s: ok, will do. that should take care of the emulator. Jan 19 06:49:56 it's annoying because you can remove the headphones while the screen is locked, that's fine Jan 19 06:50:05 but if you plug them in it launches Google Play or whatever and kills my app Jan 19 06:50:39 <_genuser_> g00s: I think, another thing to mention: this is a fragment with member var. it called setRetainInstance(true) in onCreate. Jan 19 06:50:39 I guess I can register a BroadcastReceive and… just launch my app again? :p Jan 19 06:50:40 hey capella Jan 19 06:50:42 whattahack Jan 19 06:50:50 _genuser_ OOOh Jan 19 06:50:52 heh Jan 19 06:50:56 hey g00s :-) Jan 19 06:51:04 <_genuser_> g00s: I think that's retaining the data. Jan 19 06:51:14 of course it is Jan 19 06:51:21 <_genuser_> pfn: a moi? Jan 19 06:51:22 the fragment is retained... Jan 19 06:51:24 _genuser_ well that would explain it maybe - but still, your activity could be destroyed in some cases Jan 19 06:51:39 and the process Jan 19 06:51:44 your activity will always be destroyed on rotation Jan 19 06:51:46 no Jan 19 06:51:52 not the process Jan 19 06:52:26 I never understood why rotation killed actibvity Jan 19 06:52:27 of course retained fragment members will retain member state... Jan 19 06:52:27 <_genuser_> I see. I will turn the members vars into static for easiest fix. They are multi-level objects, that I don't want to implement Parcelable for. Jan 19 06:52:38 XXCoder, reload reaourcea Jan 19 06:52:42 resources Jan 19 06:52:52 different layouts and such? Jan 19 06:52:57 yes Jan 19 06:53:03 hmm ok Jan 19 06:53:05 thats why there is http://developer.android.com/reference/android/app/Fragment.html#onSaveInstanceState(android.os.Bundle) Jan 19 06:53:31 _genuser_ no, thats crazy, if you press home and your process goes away, the shit is gone Jan 19 06:53:44 <_genuser_> g00s: nice, when teh activity is destroyed, it will basically be relaunched and my fragement will be loaded anew. Which will fetch the web data again. This is actually pretty perfect. Jan 19 06:54:06 ok Jan 19 06:54:18 <_genuser_> so you're right, static shmatic, is pointless. I just need to make sure I load fresh data when necessary. Jan 19 06:55:25 <_genuser_> guys, thank you for listening and commenting. I have a better idea of what's going on. Jan 19 06:55:53 ;) Jan 19 07:09:26 "Japanese carrier NTT DoCoMo has indefinitely suspended its plans for a Tizen phone launch this year, and Ubuntu backer Canonical has admitted that there’s unlikely to be any Ubuntu handset coming from a major manufacturer or carrier this year." Jan 19 07:09:38 well, i dont care about tizen - but i'm sad about ubuntu touch Jan 19 07:11:49 is there a way to prevent other apps receiving HEADSET_PLUG while my activity is on the screen Jan 19 07:12:17 yeah. erase all other apps ;) Jan 19 07:12:21 really dunno Jan 19 07:12:44 i dont see how you can prevent apps from getting broadcasts they registered for Jan 19 07:12:52 that would be dumb :) Jan 19 07:13:56 yeah I know it sounds bad :( Jan 19 07:14:38 g00s: where's that quote from? a few weeks ago canonical were saying they'd signed up an OEM, but weren't ready to announce who yet Jan 19 07:15:09 Leeds http://gigaom.com/2014/01/17/major-setbacks-for-two-new-smartphone-oss-tizen-and-ubuntu-touch/ Jan 19 07:15:25 cheers Jan 19 07:16:41 oh, Jono... Jan 19 07:16:58 well Jan 19 07:17:01 I feel bad for writing this http://pastebin.com/Y2mME1Rf Jan 19 07:17:06 it kind of flashes Jan 19 07:17:08 but it kind of works Jan 19 07:17:31 g00s: ^ Jan 19 07:17:58 g00s: ah, I see it came through HN :) Jan 19 07:18:29 yeah, thats pretty much the only news site i read these days. after reader went away Jan 19 07:19:04 ah, the venerated SV echo chamber :) Jan 19 07:19:25 yeah, for sure Jan 19 07:19:45 i can't even be arsed into going to the verge any more ;) Jan 19 07:19:55 oh and androidpolice once a week Jan 19 07:43:25 How do you programmatically set the current ringtone? Jan 19 07:45:22 http://developer.android.com/reference/android/media/RingtoneManager.html#setActualDefaultRingtoneUri(android.content.Context, int, android.net.Uri) or something probably Jan 19 07:46:18 okay, so I have a PreferenceScreen and I want to be able to use the action bar to go back Jan 19 07:46:21 the back button works Jan 19 07:46:24 but clicking in the action bar does nothing Jan 19 07:46:30 what method do I need to override? Jan 19 07:49:43 is there an app for twerking? Jan 19 07:50:42 wtf Jan 19 07:50:47 from haskell to twerking Jan 19 07:52:05 ugh Jan 19 07:52:08 fixed it with another hack Jan 19 07:52:11 not as bad as the first one though Jan 19 07:53:00 why on earth the default is that the action bar has a back button that does nothing, that I can't understand Jan 19 07:56:16 Zettablade you can do one of Chris Christie twerking Jan 19 07:57:12 nope Jan 19 07:57:21 I object Jan 19 07:57:58 omg that's a brilliant idea Jan 19 07:58:11 i know wat da ladies like Jan 19 07:58:13 you have to write it in haskell though Jan 19 07:58:45 wtf is this the special olympics? Jan 19 08:00:39 can haskell even twerk? Jan 19 08:01:01 if you fit it into a type Jan 19 08:01:19 man, was that an obscure joke or what? :D Jan 19 08:01:27 hahaha Jan 19 08:01:38 I think that might be true tho Jan 19 08:02:09 unsafePerformDanceMove Jan 19 08:13:33 http://i.imgur.com/fSfXwN5.jpg Jan 19 08:13:34 :D Jan 19 08:14:51 cats rock g00s :-P Jan 19 08:15:34 doges! Jan 19 08:16:02 * p_l eviscerates a shiba inu Jan 19 08:17:57 shiba inu still love you Jan 19 08:18:12 unlike cats Jan 19 08:18:15 cats are just assholes Jan 19 08:19:26 aka "cats are more like humans" Jan 19 08:19:39 just like dolphins being assholes kinda shows how similar they are to us :P Jan 19 08:22:08 mans best friend for a reason Jan 19 08:24:04 yes, they are good little doggies and don't pretend to be on our level or edge into our hold on assholery Jan 19 08:24:54 I'll take cat, I don't mind the competition Jan 19 08:36:30 hey guys, Jan 19 08:37:43 is there anyway to use an edittext (for search) inside a list fragment? Jan 19 08:39:32 wait wtf, are all the preferences in the PreferenceFragment being refreshed when I change any of them? Jan 19 08:46:10 apparently… yes Jan 19 08:48:58 wtf is this "cats are on our level" shit Jan 19 08:49:02 that's bullshit Jan 19 08:49:05 cats are pretty dumb Jan 19 08:49:48 dogs are just happy its cool Jan 19 08:50:00 except little dogs those fuckers can be totally nuts Jan 19 08:50:16 Zettablade: not on our level. But they definoitely don't have the same pack mentality :P Jan 19 08:50:20 "If it's smaller than a cat, it's not a dog" Jan 19 08:50:33 capella: that removes a lot of dogs from picture Jan 19 08:50:47 And your point is? Jan 19 08:51:04 I like that rule Jan 19 08:51:21 ;) Jan 19 08:51:27 a lot of dogs, including some pretty fierce ones, are excluded by it :) Jan 19 08:51:41 |not a dog| Jan 19 08:52:10 heh - "poodle" - fierce.... Jan 19 08:52:23 my kid sister got our parents to buy her a york, she ended up with a real one (not a weird miniature one). That dog has two modes: lazing in the house, and hunting outside ;) Jan 19 08:52:37 to the point of attacking huge boars Jan 19 08:52:51 "darwin award" Jan 19 08:53:06 it likes bacon too ! Jan 19 08:53:33 capella: dogs supposedly don't comprehend size differences. They see it, but they don't understand that the other animal is bigger or smaller Jan 19 08:55:35 i think cats are iOS users Jan 19 08:56:28 nah, nope. too individualistic Jan 19 08:56:38 even dogs don't have big enough packs to fit Jan 19 08:56:53 wink wink ;) Jan 19 08:58:29 android is for monkeys Jan 19 08:58:35 foxes use FFOS Jan 19 08:58:37 Cats would fit more among unix sysadmins. many factions, individualistic setups, sometimes they gather together to discuss and flamewar... Jan 19 09:00:06 this explains it all http://developer.android.com/reference/android/app/ActivityManager.html#isUserAMonkey() Jan 19 09:01:10 http://developer.android.com/reference/android/os/UserManager.html#isUserAGoat() Jan 19 09:02:54 g00s: what does the fox say? Jan 19 09:03:52 eat more chicken Jan 19 09:04:24 except both of those methods are real and have a purpose :p Jan 19 09:05:43 durka42: what's the purpose of a goat? Jan 19 09:05:57 I think it means an emulator Jan 19 09:06:07 since when you make up a new GPS position it teleports Jan 19 09:06:10 but I could be wrong Jan 19 09:06:20 http://goo.gl/10oH4P Jan 19 09:06:57 if you pull up the task manager on Chrome, then choose "stats for nerds", one of the stats is goats transported... Jan 19 09:07:06 yeah I was wrong, it's an easter egg http://stackoverflow.com/a/13375746/1114328 Jan 19 09:12:48 anyone here getting emails/stuff from 'yourappreport.com' ? Jan 19 09:13:47 App Marketing Checklist for blah Jan 19 09:14:18 Probably, but it's also probably hitting my spam wall Jan 19 09:15:36 I also get a lot of web design spam lately.. Jan 19 09:15:57 Kind of a weird one. Jan 19 09:16:03 Which reminds me, I really should get started on a new blog post or something.. Jan 19 09:18:32 Nilium what are you using for a blog platform (if anything, like even jekyll) Jan 19 09:19:06 i was looking at ghost Jan 19 09:25:35 I can't believe you still can't mount ISOs under Android :( Jan 19 09:27:04 it's not exactly expected to be useful on majority of the devices Jan 19 09:27:23 what is mountable and what isn't boils only to kernel config and having an interface to moun/umount calls Jan 19 09:35:09 [A3G1S]: HAI Jan 19 09:39:06 INTERNET EXPLORER REPRESENT Jan 19 09:42:33 how can I get a notification if someone mentions me in the channel Jan 19 09:42:55 eh, I have a couple games I'd like to play in DOSBox on my tablet or phone that require CD access (Crusader: No Remorse, for example) Jan 19 09:43:02 I know its in address book, notify, but what is the function for self ? Jan 19 09:43:07 Hiraghm: that's dosbox specific Jan 19 09:43:52 Hiraghm: not related at all to Android Jan 19 09:43:56 yup. Until now I thought the limitation was that there was no provision in Android for mounting an ISO. I just finished reading an article on how to do it Jan 19 09:44:18 (as you said, DosBox issue) Jan 19 09:45:13 Wasn't a DosBox issue, actually. Was an ignorance issue on my part. Jan 19 09:45:37 tonySoprano9099 in textual its highlight Jan 19 09:45:46 err, alert Jan 19 09:46:03 no, actually 'mention' Jan 19 09:46:12 :| Jan 19 10:11:27 g00s, aha, how to do it ? Jan 19 10:12:40 you have to set it up in your client Jan 19 10:18:43 thanks g00s, did it. Jan 19 11:30:44 I want to have a service that listens to changes in the Clipboard Jan 19 11:31:52 I've successfully been able to start and stop a service. and right now, inside onStartCommand() of the Service class I've created a new ClipBoardManager object and set override for onPrimaryClipChanged() Jan 19 11:32:57 this is my code, http://pastie.org/8647539 Jan 19 11:33:11 line 24 does not execute Jan 19 11:35:09 yep, just made sure that the listener is not taking effect, added else for data = null Jan 19 11:51:36 I see now that only when the service is stopped do I receive back what was stored upon copy Jan 19 11:51:49 what I have to do is get that stuff and store it somewhere Jan 19 13:11:46 Hello Jan 19 13:12:02 Can anyone Heltp me with Notifications? Jan 19 13:13:49 Can anyone Heltp me with Notifications? Jan 19 13:15:14 Can anyone help me with Notifications? Jan 19 13:15:15 Hey #Julian_b90 Jan 19 13:15:20 Hey Jan 19 13:15:31 Don't spam Jan 19 13:15:38 And try and actually ask a question Jan 19 13:15:40 Sorry Jan 19 13:16:12 This is broad question so please be specific Jan 19 13:16:26 mom i paste my code Jan 19 13:17:13 http://pastebin.com/iqpBdXsa Jan 19 13:17:28 That is my Notifications. Jan 19 13:17:59 guys, I need to update a DB every 10 minutes. What would be the best approach? service or broadcast + alarmmanager? Jan 19 13:18:15 Yep but what is your question and what issue you have in Notification Jan 19 13:18:17 s/or/and/ Jan 19 13:18:18 Let us know Jan 19 13:18:23 And you got your solution Jan 19 13:18:56 I will have multi linex but i can´t use setStyle Jan 19 13:19:00 Also, 10 minutes is often.. Would keep the device awake quite often Jan 19 13:20:02 My IDE says "Can not resolve methode "setStyle" Jan 19 13:21:07 wouldn't broadcast receiver be enough? Jan 19 13:21:57 Why broadcast receiver? Jan 19 13:22:44 sorry, Julian, parallel discussion :) Jan 19 13:22:53 No Problem ^^ Jan 19 13:23:52 Do you know the Broadcast for no network connection? Jan 19 13:25:59 I guess you could, but broadcastreceiver is really only meant for quick operations Jan 19 13:26:23 I woud use services for this. Jan 19 13:27:09 For this, I would use services Jan 19 13:27:33 yeah, I did a quick research. API compatibility issues once again. before api11 it's impossible to do any sync task in broadcast receiver Jan 19 13:27:51 bugger Jan 19 13:28:59 Once onReceive returns the system can kill your process and the intent can be lost if you haven't completed your work Jan 19 13:29:29 Since you'd be doing an async operation, onReceive would return immediately Jan 19 13:30:00 With a service you can tell it to restart it later Jan 19 13:32:03 thanks, Simon. I'll google the rest Jan 19 13:32:25 But again, do you really need to update every 10 minutes? Jan 19 13:32:37 more or less Jan 19 13:32:50 Sounds wasteful Jan 19 13:33:02 and not 24x7 Jan 19 13:33:29 it's more of a session clean up thing Jan 19 13:34:54 Can't it be tied to e.g the activity lifecycle? Jan 19 13:35:11 i realise it's not even driven much but how else am I going to notify user? Jan 19 13:36:21 *event Jan 19 13:37:18 I think I might not realise the consequences of waking up every 10 odd minutes Jan 19 13:37:25 may Jan 19 13:38:39 but hey, google play won't get filled with shite apps by itself, will it? Jan 19 13:39:57 Waking up the device often wastes battery Jan 19 13:41:04 AlarmManager has inexact alarms for that reason, bundle alarms up before waking up the device and delivering them al Jan 19 13:42:05 yeah I know Jan 19 13:42:21 it's like modified cron for embedded systems Jan 19 13:42:23 line 59 throws an error :C http://pastie.org/private/75ovntrym0bezmmgfrewog (Non-static method 'execute(Params...)' cannot be referenced from a static context) Jan 19 13:42:30 and idk why it throws that. Jan 19 13:43:15 Because you're trying to call a non-static method statically Jan 19 13:43:56 hi all, I trying to make the tab for the ActionBar by using this https://gist.github.com/bubuzzz/7da47c2282795d6940aa Jan 19 13:44:32 however, I recognize that if I select from tab 1 to tab 2 and back to tab 1 Jan 19 13:44:40 then the onCreateView of tab1 is not called Jan 19 13:45:07 but if I select tab 1 to tab 3 and back to tab 1 then the onCreateView of tab 1 is called Jan 19 13:45:26 I need to called the onCreateView eveytime a tab is selected Jan 19 13:45:29 how could i do that Jan 19 13:45:54 SimonVT, where do you see a static method? Jan 19 13:46:13 There is no static method, that's the issue Jan 19 13:46:29 But you're trying to call it statically Jan 19 13:47:03 ok I'm taking a stab in the dark.. but does anyone have "out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes-full-debug.jar" from compiling android from source.. really dont feel like downloading the full repo just to link against these classes.. Trying to do an xposed module Jan 19 14:07:52 Anyone here know about the tool that generate the image resource of all the density When you have a single image Jan 19 14:11:40 Hello, do I have to recreate bytebuffers as well as textures/shaders when OpenGL context is lost? Jan 19 14:22:24 Disgrntld: the same way you made them the first time? Jan 19 14:23:47 yea, basically do I have ot make bytebuffers in GLSurfaceView.GLRenderer.onSurfaceCreated or can they be static? Jan 19 14:24:17 they are used to transport data from cpu to gpu Jan 19 14:24:20 so they can be static afaik Jan 19 14:24:33 cool Jan 19 14:24:44 I don't actually know if the bytebuffer pointers passed are later used by gpu as shared memory Jan 19 14:24:51 I've been thinking they are copies but I'm not 100% sure Jan 19 14:25:21 well it seems to work fine in the emulator when I rotate the screen Jan 19 14:25:31 yes, no doubt about it. It is a copy that happens Jan 19 14:25:39 so once you have used the bytebuffer you can do anything you like with it Jan 19 14:25:47 cool, thanks for the help Jan 19 14:29:17 SimonVT, now it's having this error: Non-static method 'execute(Params...)' cannot be referenced from a static context, line 286 Jan 19 14:29:30 uh wrong error. Jan 19 14:29:42 android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application Jan 19 14:29:43 that one Jan 19 14:30:27 is this line ok? private final ProgressDialog dialog = new ProgressDialog(getApplicationContext()); Jan 19 14:31:33 No, applications doesn't have windows.. Activities do Jan 19 14:34:20 so, what's the correct way to use that piece of code? Jan 19 14:35:14 new Dialog(activity.this); Jan 19 14:44:55 razor-, private final ProgressDialog dialog = new ProgressDialog(Main.this); Cannot resolve symbol 'Main' Jan 19 14:45:26 Is your outer class called Main? Jan 19 14:45:33 Main? Jan 19 14:47:00 nvm, i was being stupid Jan 19 14:47:06 not enough sleep, no coffee, ugh. Jan 19 14:49:18 Hmm im not quite sure i follow how to design images and things based on "dp" dimensions for android apps. I have just read http://developer.android.com/guide/practices/screens_support.html however it says I should ignore resolution. Anyone offer any advice or links to clarify it for me? Jan 19 14:56:50 matt1982: the advice to 'ignore resolution' likely comes from the fact that dpi is the more salient value Jan 19 14:57:05 it correlates to the physical size of graphic on screen after all Jan 19 14:57:30 ahh right so to work in dpi is a more accurate way to setup the images? Jan 19 14:57:53 ideally there would be a viewing-distance independent metric that would account for the fact that people hold tablets further away than phones Jan 19 14:59:32 but the idea is that you use a physical dimension (such as cm or dp) to specify asset size, and that way you can guarantee that it's reasonable-sized on any device Jan 19 14:59:35 that's all there is to that Jan 19 15:01:21 ahh cool ok i think i get it more. Coming from web development where design is more resolution based it was a bit strange. I did Java swing before that which was rather messy hah. Jan 19 15:01:45 when it comes to layouts you still have to of course try to design an application in such a way that the available screen estate suffices for the task at hand. For instance, a 5 cm image might take up most of the screen on phone but not on tablet, so you might need a different layout design to work with it. Jan 19 15:02:13 yes, the web design is basically fixed-dpi design Jan 19 15:02:31 yeah i read about using different layouts for different devices which sounds like a plan. Jan 19 15:02:32 de facto web dpi is 96, and if physical devices differ, they do some automatic scaling these days to make it work Jan 19 15:03:02 yeah in some ways it was easier then in others (Internet Explorer et al) it was a nightmare hah Jan 19 15:11:54 SimonVT, Any tool which generate the image of all the density when I have image of mdpi. Jan 19 15:12:09 Can anyone help me to do so Jan 19 15:13:03 the dialog isn't showing :( Jan 19 15:13:05 http://pastie.org/private/s6r68kndrw18nyi2obksg Jan 19 15:19:38 emma Jan 19 15:27:11 how to disable the unregister broadcast intents of running applications in my android system ? Jan 19 15:27:44 is there a way i can list out, specifically "internet connected" intent Jan 19 15:30:16 razor-? Jan 19 15:35:37 I am trying to create a new fragment inside a runnable, which in turn is executed by a thread pool (ExecutorService). However the "new MyFragment();" freezes and never completes. Does it have to be created from the main thread? Jan 19 15:50:22 hi, is there a ftp site for google play? Jan 19 15:54:20 how to download apk from google play? Jan 19 16:07:45 I've tested a few variations of my code and it seems I can't construct a new instance of a listfragment inside the runnable. Any pointers as to why? Jan 19 16:11:39 Swiftwork: I believe your diagnosis is correct, only construct UI elements from the UI threads Jan 19 16:11:46 err, thread Jan 19 16:14:35 http://stackoverflow.com/questions/21218907/showing-a-dialog-while-requesting-gps-location-in-fragmentactivity-using-a-async Jan 19 16:15:35 How in the scheme "one activity - many fragments" switch fragments by clicking in ActionBar? Jan 19 16:15:42 When I do so Jan 19 16:15:42 view = layoutInflater.inflate (R.layout.fragment_about, null); Jan 19 16:15:42 setContentView (view); Jan 19 16:15:42 main activity loses its content of elements Jan 19 16:18:11 alankila: Not quite sure, because apparently I can create a regular Fragment but not a ListFragment... Jan 19 16:19:31 i'm going nuts, i don't get asynctask dialogs in combination with fragments Jan 19 16:19:59 Flank_Y320-U30: getfragmentmanager(), start transaction, replace placeholder, commit Jan 19 16:20:50 Swiftwork: there is a Handler in listfragment Jan 19 16:20:58 my guess is that on construction it looks u./core/java/android/app/ListFragment.java Jan 19 16:21:01 fuck Jan 19 16:21:24 looks up the current thread and then that causes it to stop working Jan 19 16:22:41 alankila: Hmm, I was looking at the grepcode and I did see that handler, but could not comprehend why that would cause an issue. Atleast it's somewhere to start, thanks. Jan 19 16:23:50 It would throw if you create a handler on a thread with no looper.. In the case of listfragment it has to be the main looper Jan 19 16:24:17 Hi, how can I update an individual item's view in a ListView? Jan 19 16:24:48 ejb: there's an easy way to just notifyDataSetChanged on the adapter and refresh all visible elements Jan 19 16:25:04 alankila, I did that, but I need to fragment occupies the whole screen area, except ActionBar. Now I know only how to use getfragmentmanager () to load fragment _in some block_ like FrameLayout Jan 19 16:25:25 ejb: if that's not something you want, then you need to track views as they are created by getView and then remove them when they become obsoleted by listview Jan 19 16:25:44 alankila: so call notifyDataSetChanged() and it will refresh the visible items? Jan 19 16:25:45 then you have a set of views that represent the visible views and can maybe check if one of the visible ones is what you want to update Jan 19 16:25:50 ejb: yes Jan 19 16:26:29 What about calling getView with the position of the item I want to update? Jan 19 16:26:44 I do not think that is a method you should call Jan 19 16:26:52 ok Jan 19 16:26:56 it returns a view instance, that's all. Jan 19 16:27:04 you know what it does, you have defined the method most likely. Jan 19 16:27:14 not yet Jan 19 16:27:23 Hello Jan 19 16:27:30 I'll try the notify route. Thanks for the hlep Jan 19 16:27:35 I need help with notifications Jan 19 16:28:06 alankila: one a related note. Are there any data binding libraries that you would recommend? Jan 19 16:28:08 I would use Multiline Notification Jan 19 16:28:13 ejb: but the point is, getView creates or adapts a new item view into a listview. If you call it, you get a new view, but it isn't one the listview cares about Jan 19 16:28:36 yeah, it's not the same instance Jan 19 16:28:37 ejb: no, I bind manually by defining an adater that does it Jan 19 16:28:48 or just using a list and maintaining the elements on that list, or whatever Jan 19 16:29:02 kinda clunky but android is what it is, no elegance to be found in these matters Jan 19 16:29:04 cool, I think I found a nice solution Jan 19 16:29:14 But i can´t use Notification.Inbox or setStyle Jan 19 16:29:21 I'll share it when I'm done Jan 19 16:29:45 I generally use methods to manipulate elements that appear in a listview or like, so the methods can take care of all the supporting datastructures and can present a clean exterior to the caller Jan 19 16:30:06 Hi. Jan 19 16:30:29 but I have a distates with the large number of objects that android requests me to maintain for something relatively simple such as a listview. Jan 19 16:30:38 ejb, getChildAt(position) forces listview to redraw the list item at position Jan 19 16:30:43 use that if you have to update content of a single cell Jan 19 16:31:07 Mavrik: oh perfect Jan 19 16:31:09 Mavrik: ah, that is useful knowledge -- provided you know the position of the item you want to update. Jan 19 16:31:18 ejb, remember that getChildAt will take a position on screen Jan 19 16:31:25 so use getFirstVisibleItem() to calculate that Jan 19 16:31:31 oh man that has the header issue Jan 19 16:31:37 see this: http://stackoverflow.com/questions/2123083/android-listview-refresh-single-row Jan 19 16:31:38 I remember I hit it once before Jan 19 16:31:59 well, yeah, you need to be aware of what do you have in your listview :) Jan 19 16:32:07 for most usecases it works very well Jan 19 16:32:24 managed to even do a decently fast "expand item" animations by relayouting stuff ;) Jan 19 16:35:25 alankila, anything you can advise? Jan 19 16:38:19 Flank_Y320-U30: eh, do what needs to be done Jan 19 16:38:21 :-p Jan 19 16:38:47 :) Jan 19 16:40:14 I'll try to change the layout of main activity, to use getfragmentmanager() and replace Jan 19 16:41:16 SimonVT: Been trying to figure out what you mean, sadly my brain could not. Looking at the ListFragment sourcecode, it tells me it uses a Handler to use Runnable mRequestFocus. How come this interferes with my thread? Jan 19 16:41:22 I need help with notifications Jan 19 16:43:03 if internet is not working then there is no way to download app from google play? Jan 19 16:43:03 Handler handler = new Handler(); <- you've now created a handler .. except if you create it on a thread with no Looper, then it would crash Jan 19 16:43:37 Messages ListFragment post to its handler touch the ui, so it must be created on the ui thread Jan 19 16:43:40 Mavrik, oh great god of java and android, could thee assist me in the quest to show the magical dialog? :D Jan 19 16:43:53 http://stackoverflow.com/questions/21218907/showing-a-dialog-while-requesting-gps-location-in-fragmentactivity-using-a-async?noredirect=1#comment31957381_21218907 Jan 19 16:43:53 jaami-win yes Jan 19 16:43:59 my mobile does not connect to internet, need to download apk from google play, can someone tell me how ? Jan 19 16:44:05 or you can install over usb Jan 19 16:44:12 hello Jan 19 16:44:22 jaami-win: #android for user questions Jan 19 16:44:46 Does anyone have any experience with youtube api? Im trying to incorporate it into my mediaplayer app Jan 19 16:44:47 yes, i can install over usb bur google play shows the install button in disabled state Jan 19 16:44:58 oh okay SimonVT Jan 19 16:45:14 #android Jan 19 16:45:14 ISDP, you're somehow triggering things that need a UI thread from background thread Jan 19 16:45:33 but i cant quite figure out how to register app for the api and stuff Jan 19 16:46:01 Mavrik, i don't have a single clue what i'm doing anymore, it's like using ductape to fix it :( Jan 19 16:46:52 ISDP, your MyLocation.getLocation() is calling requestLocationUpdates Jan 19 16:47:06 ISDP, which has to be called from UI thread, not AsyncTask thread Jan 19 16:47:13 ISDP: the fun thing is, you already have a callback based api meant to tolerate being called on ui thread and for some reason you're doing that in doInBackground Jan 19 16:47:13 I can't really say this any simpler :- Jan 19 16:47:14 / Jan 19 16:47:35 i only want to show a dialog while waiting for a GPS fix, that's all Jan 19 16:47:35 "hey start resolving location, call back when ready. Me? I go back to Looer" Jan 19 16:47:38 Looper too Jan 19 16:48:17 the error is thrown when i take it out of the runonuithread thingy Jan 19 16:48:38 when it's in the runonuithread, it doesn't throw an error, but doesn't show the dialog either. Jan 19 16:49:19 guys, whenever I press on the search button (using search widget, I am not being taken to my searchActivity) Jan 19 16:52:17 SimonVT: I see. It did indeed crash when I ran it through a single thread and I did manage to get it to work by adding Looper.prepare to my runnable. However, will this interfere with the request focus handler inside the ListFragment? Jan 19 16:52:19 Mornin'! Jan 19 16:52:37 Good Evening Jan 19 16:52:38 ^^ Jan 19 16:53:19 Swiftwork: A Looper can't process messages until Looper#loop has been called.. And again, ListFragments messages touch the ui.. it needs to be on the ui thread Jan 19 16:53:27 where can i get an android dev t-shirt? Jan 19 16:53:56 Make one! Jan 19 16:54:31 Or http://android-foundry.com/ Jan 19 16:54:50 cool thanks Jan 19 16:55:16 starting to hate Android Studio. Why force such an alien environment on Eclipse users? Jan 19 16:55:17 Hi all, is there a way to make the CAB behave like single selection while being in multiple_choice_modal? Jan 19 16:55:42 or just limit the number of selected item to 1 Jan 19 16:56:05 SimonVT: thanks Jan 19 16:57:43 I need to be able to switch between multiple and single selection mode Jan 19 16:58:02 and still using the cab Jan 19 17:11:53 Mavrik, what's the appropriate fix? Jan 19 17:34:15 Could anyone please help me? Jan 19 17:34:21 i want to be done with this app Jan 19 17:49:53 I'm experiencing this weird problem where click "debug" to launch my app does nothing. No errors in the console, no emulator, nothing. It was working fine last night. Jan 19 17:49:59 clicking* Jan 19 17:53:20 ejb: reattach your android device in case adb has wedged somehow Jan 19 17:53:35 iirc it has problems sometimes, usually spews some errors in log view too Jan 19 17:57:51 Do all android default keyboards occupy more or less the same amount of space on screen? Jan 19 17:57:53 i'm going nuts. Jan 19 17:58:45 compac: I came across Touchpal X recently that can be resized to quite a small size Jan 19 17:59:01 compac: The sizes can really vary Jan 19 17:59:09 JuiceSSH has the right idea, compac, we can say "more or less" but we can't make assumptions. Jan 19 17:59:31 I'm talking about the stock keyboard BTW Jan 19 17:59:44 Stock Samsung? Stock Sony? Stock Google? Jan 19 17:59:53 They all vary Jan 19 18:02:18 is debugging with a physical device faster than the emulator under most circumstances? Jan 19 18:02:43 cigarshark: Genymotion is pretty damn fast Jan 19 18:03:01 Yes, indeed. But I was thinking they might have an upper bound in portrait/landscape mode. Jan 19 18:03:04 I used to always debug on a physical device via USB however I use genymotion 80% of the time now Jan 19 18:03:31 compac: I'm not aware of any upper bound i'm afraid Jan 19 18:03:46 Ok Jan 19 18:03:58 looking at that now Jan 19 18:04:10 What's the genymotion now? Jan 19 18:04:11 but you would say phys is faster than the stock android emulator? Jan 19 18:04:36 cigarshark: Yes Jan 19 18:04:42 cigarshark: By a factor of five. Jan 19 18:04:51 The standard emulator sucks balls Jan 19 18:05:57 ok, thanks. time to plug in the tablet. I am downloading genymotion also. Jan 19 18:08:25 Genymotion is useful for testing your stuff on gingerbread Jan 19 18:08:34 If you still suppport gingerbread Jan 19 18:10:02 Apparently gingerbread only makes up 4% of our users now: http://i.imgur.com/lnSPFVx.png Jan 19 18:11:52 this is a big problem, imo Jan 19 18:12:43 as many are not so lucky Jan 19 18:12:59 Could anyone please help me :( Jan 19 18:13:00 http://stackoverflow.com/questions/21218907/showing-a-dialog-while-requesting-gps-location-in-fragmentactivity-using-a-async Jan 19 18:13:14 i've been stuck since 3pm today, it's 7pm now :( Jan 19 18:18:12 ISDP: At a guess you're trying to update UI from a non-ui thread Jan 19 18:18:25 Maybe the GPS runs the listener methods on a different thread Jan 19 18:18:27 i'm trying to show a damn progressdialog Jan 19 18:18:34 Yep, that counts as UI Jan 19 18:18:42 it doesn't error, but it doesn't show either. Jan 19 18:18:55 and that mylocation class doesn't wait for a damn gps fix Jan 19 18:18:56 ISDP, what about Looper.prepare()? Jan 19 18:19:03 What about the stacktrace? that's an error Jan 19 18:21:16 *sigh* Jan 19 18:21:26 we explained him what he's doing wrong several times Jan 19 18:21:37 there comes a point where you just have to learn the basics. Jan 19 18:22:39 the odd thing is, near as I can tell there is no need to use an asynctask for this Jan 19 18:23:07 so as far as I can parse this question, it's basically asking "how can I do this the wrong way". Jan 19 18:24:17 and the whole problem is this complete misunderstanding of android threading and runonuithread and so on Jan 19 18:25:00 the thing is, when the asynctask sees h.runOnUiThread(), it will just queue this task and immediately return Jan 19 18:25:08 which causes onpostexecute to fire very soon after Jan 19 18:25:25 and therefore the dialog isn't going to be there for a long time Jan 19 18:26:09 JuiceSSH, that's different, i moved the AsyncAPIConnector AsyncTask to Home.java, could you please look at it and i beg you, please fix my code, i'm about ready to throw my pc off the balcony... Code: http://pastie.org/private/za4mgq3gotrf6relnnyw Jan 19 18:26:10 the right way, is to get rid of the asynctask altogether, and put the code that gets rid of the dialog into the LocationResult callback Jan 19 18:26:42 Mavrik, i think i'm rather pointing at a non-issue than the issue itself Jan 19 18:26:56 either way, i'm learning by doing stuff like this and recieving help. Jan 19 18:27:24 and i try to follow every advice you guys give, but then another problem pops up after fixing the last one, so it seems Jan 19 18:27:43 alankila is correct, your asynctask is pointless as all it does it run stuff on the UI thread (where it would run anyway if you didn't use an async) Jan 19 18:27:59 i'm under the impression that i did the coding way wrong, and i really need someone with more skill to look at it, correct my mistakes and explain to me what i did wrong Jan 19 18:28:10 I just did that Jan 19 18:28:13 or I think I did Jan 19 18:28:17 JuiceSSH, that's only so it doesn't throw an error, i can't even get contexts to work for the dialog Jan 19 18:28:28 feel free to ask more questions if you don't understand what I said Jan 19 18:29:14 and why i'm using an asynctask? so i can show a damn progressdialog while waiting for a GPS fix. Jan 19 18:29:31 but the MyLocation class doesn't only use GPS, it also uses COARSE location Jan 19 18:29:34 network. Jan 19 18:30:40 ISDP: so how about this... Jan 19 18:31:05 ffffffffffff- i have a headache, this whole thing is officially pissing me the f*c* off, and i can't explain properly what the errors are because i'm frikking dutch and don't know where the errors come from in the first place, i only look at the damn stacktrace and click whatever is first in the list that points to a project file. Jan 19 18:31:13 In your activity, tell LocationManager that you want location updates. Show a dialog right away Jan 19 18:31:27 when the locationmanager callback fires, then you have a location, and you can disable showing the dialog Jan 19 18:31:47 you would put this code in onResume or similar if you want a new location each time the activity comes visible Jan 19 18:32:48 now that's something i didn't think of yet, but i really need a break because my headache is killing me Jan 19 18:32:54 I don't really know what your objective is -- what the aim of this code is -- that would be hard to read from this fairly buggy code. Jan 19 18:33:37 it seems like you want the last location and then any location updates, whatever you can get? Jan 19 18:33:55 guys, is it possible to reach the searchview and set a custom keyboard on it ? Jan 19 18:33:59 the timertask is apparently a fallback so that if no new location comes in by 20 seconds, you will use the last known location Jan 19 18:34:17 alankila, i want only one time a GPS location Jan 19 18:34:21 anyone here come from a heavy Swing background? Jan 19 18:34:21 I am able to set them on the ordinary edittexts, so i want to make it work on the searchview too in the action bar Jan 19 18:34:31 the MyLocation code is ripped from some guy on SO Jan 19 18:34:36 ISDP: oh. Jan 19 18:34:48 well, that affords very simple and to the point code Jan 19 18:35:17 http://imgur.com/a/ZB9a0 Jan 19 18:35:27 that's the app design Jan 19 18:35:50 i want to collect the data from the edittexts, throw it into a jsonobject, send the json to the server, done. Jan 19 18:35:52 ev Jan 19 18:36:20 but i also want a gps location. for backoffice purposes. Jan 19 18:37:11 which has to be very accurate? Jan 19 18:37:37 alankila, i think i need to throw away all the code and start over, or i need someone to fix it properly so i can see the right way and learn from the code itself, that's the best way i could learn, working code Jan 19 18:37:45 I've extended and customized a ListView and called it ObserverListView. How can I use ObserverListView in my layout.xml? Jan 19 18:37:50 alankila, i prefer gps, yes Jan 19 18:38:04 When I change the name in the XML, I get a class not found error Jan 19 18:38:06 I would suggest starting from scratch as the problem of doing a locationmanager listener and getting a gps location is not very hard .. or should not be Jan 19 18:38:22 what can i throw out and what can't? Jan 19 18:40:25 well I'd kill getLocationTask and most of MyLocation. All you need is to tell locationmanager you want location u response = api.execute(json).get(); Jan 19 18:40:29 fsck Jan 19 18:40:48 updates by gps, and then wait until you have one, and you can then disable the notify Jan 19 18:41:27 I was about to remark that this response = api.execute().get() is an asynctask antipattern Jan 19 18:41:35 this forces the ui thread to stop until the task is done. Don't do that. Jan 19 18:43:12 the ui thread can only be "loaned" for short periods of time but it can never be forced to sleep to wait for something Jan 19 18:53:18 how can I set my id for the list view ? if I use sth like android:id="@+id/bookmarkList", I will get the error Your content must have a ListView whose id attribute is 'android.R.id.list' during run time Jan 19 18:53:37 I need to have my own id in order to refresh the list from other fragments Jan 19 18:54:34 bubuzzz: this may be because you are not overriding the getView of the adapter Jan 19 18:55:13 okie alankila, will try that way Jan 19 18:55:35 oh wait sorry Jan 19 18:55:38 forget that Jan 19 18:56:34 I now read properly. this is probably some default class like ListFragment, eh? Jan 19 18:56:54 yep Jan 19 18:57:02 you can use the @android:id/list for the id of your listview Jan 19 18:57:09 yes, I know Jan 19 18:57:11 you can then do getView(android.R.id.list) Jan 19 18:57:19 but I need to use my own id Jan 19 18:57:20 sorry findViewById(android.R.id.list) Jan 19 18:57:33 why? Jan 19 18:57:36 guys, is it possible to reach the searchview and set a custom keyboard on it ? Jan 19 18:57:44 cus I need to call that listview from other fragments Jan 19 18:57:58 say, I have a MainFragment which has the actionbar Jan 19 18:58:01 I do not understand how that requires having a custom id for it Jan 19 18:58:49 the listview is in the bookmarkFragment (under the Tab of the MainFragment) Jan 19 18:59:31 record is removed from the list view by triggering the delete button from the ActionBar (which belong to the mainFragment) Jan 19 19:00:13 so in the delete button action, I need to call the ListView from the BookmarkFragment in order to do the notifyDataSetChanged() on the listView Jan 19 19:00:37 a clean solution is to provide api in the listfragment subclass which you can call which does the operation. Jan 19 19:00:55 and route the fragment-to-fragment interaction via the activity Jan 19 19:01:50 in http://stackoverflow.com/questions/15924146/update-listview-in-from-other-fragment Jan 19 19:02:10 why screen is blinking when I change activities? Jan 19 19:02:18 the answer says that just call the id of the list, but the thing is I cannot set id for it Jan 19 19:03:13 as I said, the @android:id/foo are numerically stored in android.R.id.foo Jan 19 19:03:21 this poses no difficulty Jan 19 19:04:19 https://www.irccloud.com/pastebin/TipjuqgJ Jan 19 19:04:29 any ideas on how to fix this^^^ Jan 19 19:06:15 alankila, I have 2 listview in my app, another one does not need to refresh and is already set as android:id/list Jan 19 19:07:17 if i call findViewbyId(android.R.id.list), then does it miscall to the first one ? Jan 19 19:08:35 Does using key inputs with libgdx make a code incompatible with Android ? I just made a basic program showing text and an input box, but only the desktop version works. Jan 19 19:09:14 how to handle Ctrl+A Ctrl+X Ctrl+V Ctrl+C on physical keyboard ? Jan 19 19:09:28 bubuzzz: you need to call it on the correct fragment Jan 19 19:09:49 bubuzzz: fragments are views, and findViewById performs a recursive search in the viewtree for view with the correct id Jan 19 19:09:56 by starting at correct root, you will find the right one Jan 19 19:10:04 i.e. call it on fragment, not activity. Jan 19 19:10:08 okie, that makes sense Jan 19 19:10:27 will try that way Jan 19 19:22:21 guys, I pass a context (Activity) inside one of my objects constructors, but it gets there null, although it isnt null. Jan 19 19:24:25 I don't believe you Jan 19 19:25:21 Either you're passing null or it's not null Jan 19 19:27:04 come on dude. the log cats dont lie. Jan 19 19:29:13 There really isn't any other options Jan 19 19:29:45 I check it before inserting as the parameter inside the constructor, and its not null. Jan 19 19:29:45 show the code! Jan 19 19:29:51 alankila, okay in a moment. Jan 19 19:30:14 somethings screwy Jan 19 19:35:33 guys http://pastebin.com/b1Bpr8De Jan 19 19:37:18 null pointer happens on line 30 Jan 19 19:38:19 you mean line 30 a mCustomKeyboard = new CustomKeyboard(this, R.id.keyboardview, R.xml.armenian_keyboard); Jan 19 19:38:22 mCustomKeyboard = new CustomKeyboard(this, R.id.keyboardview, R.xml.armenian_keyboard); Jan 19 19:38:25 shit Jan 19 19:38:27 I hate this broken keyboard Jan 19 19:38:49 You log "null" for both null and non-null Jan 19 19:39:03 you mean that line 30 appears in the stacktrace? Jan 19 19:39:13 alankila yes Jan 19 19:39:18 because nothing here can be 'null' or raise nullpointerexception Jan 19 19:39:23 whenever line 30 is called, theres a null Jan 19 19:39:58 SimonVT, true, i fixed that. Jan 19 19:40:39 Does anyone know how to create a fake resource ID with Roboletric? I keep getting Resources$NotFoundException: unknown resource when I make one up. Jan 19 19:40:44 Also, surely you aren't keeping a static reference to an activity Jan 19 19:40:57 Anyway, if you pass "this" then it isn't null in the constructor Jan 19 19:41:32 SimonVT, exactly. Jan 19 19:41:52 as long as this is passed inside the onCreate on an activity, its never null. Jan 19 19:42:24 .. Jan 19 19:42:47 You just said it was null in the code you showed Jan 19 19:43:13 theory : it shouldnt be null. reality : it is being null. Jan 19 19:43:31 Theory: it isn't null. Reality: It isn't null Jan 19 19:43:52 You're leaving out information or misreading your stacktrace Jan 19 19:47:31 SimonVT http://pastebin.com/yseparpm Jan 19 19:49:21 Has anyone here used PlusClient? Jan 19 19:50:58 That only shows me that something is null Jan 19 19:51:13 Ah, had my first successful OpenGL -> OpenGL ES port to Android Jan 19 19:51:15 Not that it's the activity Jan 19 19:51:20 Sweet Jan 19 19:54:16 SimonVT, this is quite frustrating. im into it. Jan 19 19:54:21 i'll post if i got updates Jan 19 20:06:09 can I refund a user order after 15 minutes through Google Play? Jan 19 20:06:14 ok, I dont need to call the id of the listview Jan 19 20:06:36 the point is in the MainFragment, I created the BookmarkFragment for the Pager Jan 19 20:07:10 so I just saved that bookmarkfragment object and then, get back the list in it, remove the element and then set back the adapter to the fragment Jan 19 20:08:02 since even I use notifyDataSetChanged, invalidate(), invalidateView(), listView still does not refresh Jan 19 20:38:29 hi guys, I am trying to use RecursiveFileObserver with my Moto G, with latest kitkat, but doesn't seem to work and my laptop is too slow to run the emulator, is it possible to use still or am I doing something stupid? http://pastebin.com/3BFeRVV3 Jan 19 20:38:59 I never get any event on the sdcard, in the log or the toast. Jan 19 20:41:08 f2prateek1: yes Jan 19 20:41:48 Sarkie: you don't call show() on your toast and calling it in onEvent() will crash (not the UI thread) Jan 19 20:42:13 bubbleguuum, thank you. Jan 19 20:44:53 I want to Suppose two users are talking on the phone (regular call) and Now I want to make Call Conference programmatically on the call which two users is talking Jan 19 20:45:04 Anyone have any idea to do this Jan 19 20:45:25 JakeWharton: do you have any links I can look up for the process? All search results focus on the user side of it Jan 19 20:49:54 hm found something odd Jan 19 20:50:29 boolean option in settings always shows false. is there setting to set default boolean value in xml? Jan 19 20:51:19 JakeWharton: oh wait, I see it in the wallet console Jan 19 20:51:25 I'm replacing my Activity's FrameLayout with a fragment in response to a drawerlayout selection. First transaction displays desired fragment, but subsequent fragmentTransactions don't. https://github.com/OnlyInAmerica/Cards. Bonus: To-be a FOSS MTG simulator. Jan 19 20:53:23 JakeWharton, Any idea of my question? Jan 19 20:53:57 I'm noticing issues with GridView - the whole *overlapping items* thing when items are of different heights. :( Jan 19 20:56:49 n20: It's not an issue, it's flat out not supported. Try Etsy's staggered grid view. Jan 19 20:57:29 So, basic GridView is for the uniform items? :) JakeWharton Jan 19 20:58:01 yes Jan 19 20:58:43 Cool, thanks guys. Another thing learned. :)) Jan 19 20:58:46 bubbleguuum, nah seems to still not being called. Jan 19 21:12:46 I'm all out of ideas. I am trying to export an apk, but I get the Dalcik format failed with error one. My console lists every single one of my libraries and says: actionbarsherlock] R.java was modified manually! Reverting to generated version. googleplayserviceslib] R.java was modified… Any ideas? Jan 19 21:13:01 I have cleaned all projects, and deleted the gen folders in each project also Jan 19 21:17:59 okay, I have a question about a Preference with android:fragment set Jan 19 21:18:17 I have some preferences, some of which are grouped under a PreferenceScreen Jan 19 21:18:31 and one of those has android:fragment set which means it launches another fragment when clicked Jan 19 21:18:44 but! that fragment doesn't show up until you back out of the PreferenceScreen Jan 19 21:18:47 which is totally wrong Jan 19 21:18:48 any ideas? Jan 19 21:18:58 it's like it gets created under the PreferenceScreen Jan 19 21:20:02 is using a PreferenceScreen the Wrong Way To Do It (tm)? Jan 19 21:23:27 Should I use MediaRecorder or AudioRecorder to record a temporary 5 second recording? Jan 19 21:26:26 I actually have a question Jan 19 21:26:34 I'll google it first haha Jan 19 21:31:52 hokay I fixed it by using android:fragment for everything instead of nesting PreferenceScreens Jan 19 21:46:59 guys, an edittext in my actionbar (used for search) is taking the focus directly when the app starts, how can I avoid it ? Jan 19 22:08:55 Hey guys, so I have a button which sends a HTTP Post request to register a user in a new thread. The button says register or unregister depending on whether the user is registered or not, it gets updated when I call updateView(). So I've stuck a call to updateView at the end of the thread that registers the user inside a runonuithread() but it still says 'register' when the user has just registe Jan 19 22:08:55 red. what am I doing wrong? Jan 19 22:16:59 where you guys at Jan 19 22:30:11 CocoStorm: need more information than that... Jan 19 22:37:06 on the off chance theres an intellij and android wiz here - is there a way to automatically extract a class from one java file into its own dedicated file? Jan 19 22:38:56 I would say yes but then might be wrong Jan 19 22:39:21 new file name must match class name in least Jan 19 22:39:26 how can I get the layout that a view is in Jan 19 22:39:31 programatically Jan 19 22:52:57 sorry was away Jan 19 22:53:02 just to recap my question Jan 19 22:53:07 Hey guys, so I have a button which sends a HTTP Post request to register a user in a new thread. The button says register or unregister depending on whether the user is registered or not, it gets updated when I call updateView(). So I've stuck a call to updateView at the end of the thread that registers the user inside a runonuithread() but it still says 'register' when the user has just registe Jan 19 22:53:07 red. what am I doing wrong? Jan 19 22:53:09 https://gist.github.com/anonymous/e940bb096c2b4e95a009 Jan 19 22:53:22 checkresponse is called before updateview where the boolean registered gets updated Jan 19 22:53:41 so the button should change according to the state of the boolean Jan 19 22:54:22 but even when the user has succesfully registered the button still says 'register' Jan 19 23:01:52 anyone? Jan 19 23:03:48 are you doing this all on the main thread? Jan 19 23:04:35 bankai_, the try block is run on a different thread Jan 19 23:06:16 I think I might have forgotten to update the registered variable Jan 19 23:06:22 with getBoolean Jan 19 23:06:24 Looks like it. Jan 19 23:06:24 eek Jan 19 23:06:30 hi my main Activity is reloads when mobile is rotated. is there way to stop it? Jan 19 23:06:41 rookie mistake. I should really clean my code so it's more understandable :/ Jan 19 23:06:52 jaami-win: that's how android reacts to configuration changes Jan 19 23:07:20 CocoStorm: why aren't you doing this in a proper async task ? Jan 19 23:07:32 bankai_: what does that mean? i can do nothing? Jan 19 23:07:45 bankai_, I dunno, what is the benefit of using async task? I've never used it Jan 19 23:07:46 jaami-win: You can. But elaborate on your problem. Jan 19 23:07:48 jaami-win: you write your code to accomodate for this behaviour Jan 19 23:08:02 CocoStorm: it has proper pre. post and update methods to account for what you're doing Jan 19 23:08:05 ahh, ic Jan 19 23:08:06 Surely reloading is not really your problem, but you want specific behaviour to happen? Jan 19 23:08:21 Fragments can save their instance state for example, etc. Jan 19 23:09:03 bankai_, oh I see Jan 19 23:09:13 i'll look into it bankai_ Jan 19 23:09:18 http://developer.android.com/reference/android/os/AsyncTask.html Jan 19 23:09:24 thanks Jan 19 23:09:34 kakazza: i have listactivity and adapter is changed in main activity. there are 4 different adapters. if user it list 4 and when rotate mobile then list 1 is shown Jan 19 23:10:37 Using Fragments? Jan 19 23:10:57 For Activities, there's http://stackoverflow.com/a/151940 for example. Jan 19 23:11:01 kakazza: no i dont use fragments because dont know how to :) Jan 19 23:11:09 oh okay Jan 19 23:11:19 The official Android tutorials tell you how to use fragments. Jan 19 23:11:36 kakazza: i will sure check that Jan 19 23:11:44 you'll be better off in the long run using fragments than multiple activities Jan 19 23:12:22 hmmm, why is that bankai_ Jan 19 23:12:56 http://developer.android.com/reference/android/app/Fragment.html Jan 19 23:13:05 thanks Jan 19 23:13:16 i will check fragments Jan 19 23:19:38 Hi, I wondered if anyone uses Ubuntu for android development and noticed how much slower it is for building and running tests compared to Windows 7? (Note: I am using Ubuntu 13.10 and Robolectric for unit tests.) Jan 19 23:22:08 ham_of_grey, I use Ubuntu. It is quick enough for me. The only thing that was ever slow for me was tablet emulation. Jan 19 23:22:47 I haven't run a tablet emulator for a while though Jan 19 23:22:57 I also don't use Eclipse as an IDE Jan 19 23:22:58 I see Java basically never uses all cores whilst running unit tests or compiling Jan 19 23:23:51 I've tried the Oracle SDK 32 and 64bit versions and it doesn't make any difference Jan 19 23:25:31 It's very annoying. I wondered if there is any way to make it more of a priority. Jan 19 23:25:41 g00s: To answer your question from last night, I use OakTree. Jan 19 23:26:06 The performance is just as bad in eclipse or just using ant at the terminal Jan 19 23:27:40 Nilium thanks Jan 19 23:27:58 What's OakTree? Jan 19 23:28:11 hey guys, how do I get additional device profiles? Specifically I am looking to emulate the Samsun Galaxy S3 Jan 19 23:28:23 https://github.com/nilium/oaktree ⇐ That's OakTree. Jan 19 23:29:22 Actually, the part about needing to build the gem manually is no longer true, since it's on rubygems. Jan 19 23:29:53 hah Jan 19 23:30:41 Demo? Jan 19 23:30:50 oh i was landing on all the wrong oaktree websites :) Jan 19 23:31:02 How does one demo something that produces static HTML? Jan 19 23:31:15 That's probably 'cause nobody knows about OakTree and only I use it. Jan 19 23:31:25 Well, where do you use it? A link maybe? Jan 19 23:32:09 http://spifftastic.net and http://snow.spifftastic.net and http://nilium.github.io and a few other places. Jan 19 23:32:53 Ologn: If you don't mind me asking what JDK do you have installed? Also when I run my tests I see that CPU usage never gets higher than 50% on all cores, I have a 1000 tests which take about 5 mins. Is that roughly what you experience? Jan 19 23:35:34 Nilium do a show HN. I've heard of Jekyll and Pelican, but don't even have a blog :) Jan 19 23:35:53 http://jekyllrb.com/ Jan 19 23:36:06 I'd rather not. OakTree's a disaster internally. Jan 19 23:36:07 http://docs.getpelican.com/en/3.3.0/ Jan 19 23:36:13 OH :D Jan 19 23:36:14 I need to rewrite it at some point. Jan 19 23:36:33 The important thing is that it works for my purposes. Jan 19 23:37:06 I also can't remember if I actually pushed a bunch of changes I made for the recent Spifftastic templates Jan 19 23:38:15 Apparently I didn't. Jan 19 23:39:02 ham_of_grey, openjdk 7 Jan 19 23:39:12 anyone able to help me with a fragment design issue? http://pastie.org/8649198 thanks. Jan 19 23:39:19 Yeah that is the same as me. Jan 19 23:39:59 I guess I probably mean structure (code) more than design (ui) Jan 19 23:40:19 Ologn: Thanks perhaps I'll ask this question tomorrow to see if anyone else has experienced it Jan 19 23:40:29 hi , is there a way to automatically adjust font size to cover maximum possible height/width of button? Jan 19 23:42:18 I don't run a lot of tests...I have in the past on some projects, the time was OK...I always keep my SDK and NDK up to date in case they do speed enhancements Jan 20 00:05:27 how would i go about saving a cell of a table from a webview into a string variable? Jan 20 00:16:04 to use a BufferedInputStream on a system file as root, do I just have to run Runtime.getRuntime().exec("su"); before opening the file? Jan 20 00:24:23 rdnt: don't think that will work, you'll have to exec("su"), then open the process input and output streams, send "cat file" as input and read the output Jan 20 00:49:44 rdnt: you have to realize: "su" doesn't (and can't) grant the current process root access Jan 20 00:49:52 what it does is starts a new process that does have root access Jan 20 00:51:22 so it basically spawns a new shell process, that you can interact with from your main java program via it's stdin and stdout, as durka42 mentioned Jan 20 00:51:52 JesusFreke, yes i'm reading up on how to use RootTools Jan 20 00:53:59 oh, RootTools looks like it could be useful :p Jan 20 00:54:11 for just reading a file, it's not so hard to set up a few streams though Jan 20 00:55:29 is it done with the command line, or can you use the Process instance somehow? Jan 20 00:55:44 yeah exactly, Process.getRuntime().exec("su") returns a Process Jan 20 00:59:57 are there any callbacks that notify the activity that fragment manager has finished creating a fragment? Jan 20 01:09:59 good question.... i'm not aware of any, why do you need to know/do ? Jan 20 01:19:06 bankai_: I need to ensure that onCreateView() has completed executing before calling update_conditions() http://pastie.org/8649359 Jan 20 01:19:35 (so that v_location, and v_temperature are intialized) Jan 20 01:20:01 electronnnn: have a look at http://developer.android.com/reference/android/app/Fragment.html Jan 20 01:20:48 methods like onCreate or onStart are where you can do most of your code Jan 20 01:21:04 or onResume ( depends what you're doing ) Jan 20 01:22:05 bankai_: I have, quite thouroughly looked at that page. and unless I am mistaken ui creation/managment should go in onCreateView Jan 20 01:22:26 correct Jan 20 01:23:28 so then I guess I am not understanding how your answer solves my problem. Jan 20 01:23:45 what are you suggesting i put in onCreate, onStart, etc? Jan 20 01:24:28 you said "I need to ensure that onCreateView() has completed executing before calling update_conditions()" ... it will have completed when onStart is fired Jan 20 01:25:07 ah. i see what you are saying Jan 20 01:26:03 but that will be called within the fragment, I am hoping to be notified from the activity, I supposed i can just call a function in the activity from onStart though Jan 20 01:48:16 anyone have suggestion how to convert microphone wave data into input line millivolt levels ??? Jan 20 02:05:16 Who oversees the work/commits on the LatinIME? Jan 20 02:13:55 can anyone recommend a good ssh client for java .? Jan 20 02:19:36 nick9998 maybe JuiceSSH can :) Jan 20 02:21:25 thanks but i meant something i could run as a java applet Jan 20 02:21:58 isn't this #android-dev ? Jan 20 02:22:00 this is a java question ,not an android questino Jan 20 02:22:02 sorry Jan 20 02:22:49 and this is #android-dev, not #java, so that's good Jan 20 02:36:22 my app makes HTTP Post requests to a php script connecting to a database all run on a web server.. is this okay? What if thousands of people use it/ Jan 20 02:36:32 should I worry about encryption? Jan 20 02:36:42 ... oh boy Jan 20 02:37:29 most importantly, you should put some access controls on it, and seriously learn about SQLinjection (at the very least) Jan 20 02:38:24 p_l, can't you just trim all the posts and thats SQL injection sorted? but tbh I'm not posting from user input Jan 20 02:39:48 no no no no no Jan 20 02:40:07 CocoStorm: your application in this case doesn't matter, someone *will* find the php script Jan 20 02:40:39 http://www.youtube.com/watch?v=kxRX6LXDpWs Jan 20 02:40:51 p_l, ohreally? Jan 20 02:40:55 CocoStorm: yes, really Jan 20 02:41:06 and sqlmap will make short work of it :> Jan 20 02:41:10 p_l, but yeh that's why I came to ask how can I make it secure Jan 20 02:41:58 treat everything that comes into the php script as potentially hostile. it's good idea to use SSL with certificate pinning on both sides, too Jan 20 02:42:42 yeah, I've got SSL Jan 20 02:44:20 yes, but just having ssl and having certificate pinning both ways (essentially logging your application through its certificate) is a bit different Jan 20 02:44:37 although still someone will be able to take out the cert out of the application Jan 20 02:45:42 what is certificate pinning Jan 20 02:45:55 I'm lost Jan 20 02:45:56 :) Jan 20 02:48:02 CocoStorm: enforcing that the other endpoint of SSL connection must use specific certificate Jan 20 02:48:28 oh I see **** ENDING LOGGING AT Mon Jan 20 02:59:59 2014