**** BEGIN LOGGING AT Thu Nov 28 02:59:58 2013 Nov 28 03:11:34 what the heck. I'm sending an Intent, with an extras bundle that looks like: Bundle[{value1=herpderp, value2=derpherp}]. In my receiver (onStartCommand in a service, I'm sending it there via a PendingIntent), it's coming back as: Bundle[{value2=derpherp}]. This one is melting my brain. Nov 28 03:14:08 I get the same behaviour if I use the Intent's direct putExtra() method or if I make my own bundle and putExtras(). Nov 28 03:16:59 oho. ghosts of the past. I'm getting an old PendingIntent that is surviving recreations of the notifications and reinstalls of the app. Nov 28 03:42:48 i love otto/event bus's Nov 28 03:43:17 makes fragment - fragment/ fragment - activity communication so easy. Nov 28 03:50:45 Hi Nov 28 03:51:12 yo Nov 28 03:51:25 Hows it going Nov 28 03:51:53 grand Nov 28 03:52:10 Good good Nov 28 03:53:18 okayy Nov 28 03:53:47 Im drunk lol Nov 28 03:54:14 Can I add a new fragment "ontop" of an another so the other fragment isnt killed? Nov 28 03:55:11 Fragment.ontop (other) Nov 28 03:56:34 thanks Nov 28 03:57:01 Anytime bro Nov 28 03:58:16 learned something new. cool Nov 28 03:58:30 whatd you learn Nov 28 04:00:03 How to fragment Nov 28 04:00:18 about ontop Nov 28 04:01:08 thats not an actual thing Nov 28 04:01:17 hehe Nov 28 04:01:21 *hides* Nov 28 04:01:53 although my original question stands Nov 28 04:02:22 <_genuser_> if I see my galaxy s4 device in explorer as a drive, eclipse should be able to see it for debugging? Nov 28 04:03:05 Check the ddms _genuser_ Nov 28 04:03:50 Shoyld be right thurr Nov 28 04:04:08 <_genuser_> CocoStorm: thx. let me find ddms in eclipse. Nov 28 04:05:19 <_genuser_> nothing under devices. Nov 28 04:05:32 <_genuser_> does that mean the driver isn't correct or my phone options aren't correct? Nov 28 04:05:59 Genuser you should check your phone first make sure yoyve set it as debuggable Nov 28 04:06:04 In the settings Nov 28 04:06:09 Then check your driver Nov 28 04:06:49 Is there a way to get a bitmap of a viewgroup and all of its visible children? Nov 28 04:07:01 <_genuser_> CocoStorm: developer options -> USB debugging is checked. Nov 28 04:07:27 I see yes then maybe its a driver issue Nov 28 04:07:54 <_genuser_> CocoStorm: thanks. I'll google some more. hopefully I can get it working quickly. Nov 28 04:09:20 Genuser also try checking use as media device Nov 28 04:09:28 If its not already Nov 28 04:17:35 urgh Nov 28 04:18:36 <_genuser_> CocoStorm: yeah, the Use as media device is checked. When I plugged it in, windows auto installed a driver. I'm thinking it isn't the Samsung provided driver so might be missing functionality. Nov 28 04:19:09 <_genuser_> I was happy using the emulator until this app which works perfect on the emulator but not on the phone. Nov 28 04:19:22 Yeah drivers then Nov 28 04:20:16 <_genuser_> CocoStorm: altho, my emulator is 4.0.3 and my phone is 4.3. Maybe if I upgrade the emulator it will give me the same problem and I can debug the little punk. Nov 28 04:22:57 In any case you need to run it on your device eventually Nov 28 04:23:33 <_genuser_> true that. :) Nov 28 04:24:49 fuck this Nov 28 04:24:55 im just going to cave in and do 2 activities Nov 28 04:24:56 2 fragments Nov 28 04:25:27 Sorry I couldnt help desmin88 lol theres usually someone more advanced around Nov 28 04:25:40 its ok Nov 28 04:26:59 Ive never had to use fragments I mean Nov 28 04:34:56 there just seems to no good/all shit examples for tis Nov 28 05:01:17 Are there device usage stats by country anywhere? Nov 28 05:01:47 in what context Nov 28 05:02:25 Well, at some point, I'm going to develop an app, and I'm curious how many people are still running 2.x Nov 28 05:02:43 I haven't seen anything that is only the US Nov 28 05:03:00 oh Nov 28 05:03:07 well i can say that Nov 28 05:03:19 28% of all devices in the world approximately are api < 14 Nov 28 05:03:30 so thats 2.x Nov 28 05:03:39 Yes, but how many of those devices are out of the US? Nov 28 05:04:04 idk lol Nov 28 05:04:06 30% is not small, but if half of those are elsewhere, then I'll just write the other 15% off Nov 28 05:04:13 a lot of them Nov 28 05:04:16 are in india/china etc Nov 28 05:04:23 'developing countries' Nov 28 05:04:29 Yeah, that's what I am getting at Nov 28 05:05:02 Basically, setMinSdkVersion="14" Nov 28 05:05:04 theres no point Nov 28 05:06:30 gb will be dead soon Nov 28 05:06:38 its something like >2% every month Nov 28 05:09:59 anyone have any problems with their phone displaying off color? Nov 28 05:10:51 nope Nov 28 05:12:20 is there any alternative to passing data between activity - activity than bundle with a parcelable? Nov 28 05:12:40 use fragments instead of activities Nov 28 05:12:45 use an application singleton Nov 28 05:13:00 i am using fragments too Nov 28 05:13:10 oh Nov 28 05:13:18 you can serialize your data as a string and pass it as a string extra Nov 28 05:13:24 ^^ Nov 28 05:13:31 im afraid that wouldnt work Nov 28 05:13:36 e.g. with gson just use json.toString(src) Nov 28 05:13:54 what's your use case? Nov 28 05:14:05 Master/detail flow Nov 28 05:14:19 So, activity can either be passing some item to a new activity, or to a fragment Nov 28 05:14:22 This item Nov 28 05:14:25 is monster sized Nov 28 05:14:41 application singleton? Nov 28 05:14:44 Then go the singleton route Nov 28 05:15:00 ok, i will Nov 28 05:15:02 thanks guys Nov 28 05:15:15 btw: http://pastebin.com/JnrguHAp Nov 28 05:15:29 that aint no monster Nov 28 05:15:30 That is the first level. its just goes the wordpress post rabbit hole Nov 28 05:15:58 http://gyazo.com/5f9263cdec15b0994a772c2549cffe69 Nov 28 05:16:08 ohh Nov 28 05:16:10 All of these classes are required to make 1 post object. Nov 28 05:16:13 you can use private content provider Nov 28 05:16:52 i dont think thatd work Nov 28 05:17:16 it would but probably too much overhead Nov 28 05:17:17 I get these post objects off a rest api, gson-them, add them to a list, display list. Nov 28 05:17:31 why the interactivity? Nov 28 05:17:54 hmm? Nov 28 05:18:05 why pass it between activities? Nov 28 05:18:50 Activity 1 (the master list) can pass it to Activity 2 (detail view) or fragment 2(detail view) Nov 28 05:19:09 wait Nov 28 05:19:19 wait Nov 28 05:19:27 make activity 2 a fragment Nov 28 05:19:41 what if my application singleton holds my list data, then in my bundles i just pass the position? Nov 28 05:20:38 why not just make activity 2 that is on top of the first fragment of the activity? Nov 28 05:20:46 *make a fragment Nov 28 05:21:22 okay but the issue still remains Nov 28 05:21:47 2 activities simplifies backing though. Nov 28 05:23:00 If I'm calling a variable from another activity in a fragment like com.app.whatever.variable is it being cashed incase its called again? Nov 28 05:23:01 one activity with multiple states, you can use a non ui fragment to hold the data (With set instancestate true) then pull from that fragment in whatever other fragment (activity 2) Nov 28 05:24:02 * LuisLeite good evening Nov 28 05:25:53 lasserix: thats a possibility Nov 28 05:26:43 Hey guys, I'm using the JAVA - ADT here and I'm trying to create a socket object. I have ` Socket s = new Socket("www.google.com", 81);` For some reason, it tells me "Unhandled exception type IOException" even before I even launch the application. Oh and I did import java.io.IOException Nov 28 05:28:08 well uhh Nov 28 05:28:12 http://imgur.com/jacoj Nov 28 05:28:42 hahah sorry sorry, I came here too fast. I think I'll have to use "try{}catch(){}" Nov 28 05:28:58 desmin88: And there's no stacktrace, I haven't launched the application yet Nov 28 05:29:14 oh i see what youre saying Nov 28 05:29:14 lol Nov 28 05:29:29 catch(IOException e) Nov 28 05:29:37 do you have that anywhere? Nov 28 05:29:54 If I'm calling a variable from another activity in a fragment like com.app.whatever.variable is it being cashed incase its called again? Nov 28 05:30:03 If I'm calling a variable from another activity in a fragment like com.app.whatever.variable is it being cashed incase its called again? Nov 28 05:30:05 f2prateek: I'll use catch(Exception e) instead, since Socket can also throw UnknownHostException, which is not an IOException. Am I right in doing so? Nov 28 05:30:12 Wait, if variables are received from another activity anyways doesn't mean that its already cached because its the same variable? Nov 28 05:30:15 AndreYonadam: y u do dis? Nov 28 05:30:22 My bad Nov 28 05:30:29 I pressed my up key on my keyboard Nov 28 05:30:48 what do you mean by cached Nov 28 05:31:04 wilornel: you can do that, but a better way would be to have to catch blocks for each exception Nov 28 05:31:34 So try{}catch(IOException e){}catch(someType e){}? Thanks! :) Nov 28 05:31:39 yeah Nov 28 05:31:59 mainly so you don;'t ignore any runtime exceptions Nov 28 05:32:11 desmin88: Like if the variable is still being stored in main memory and can be called normally without being like restarted or anything Nov 28 05:32:35 So by "calling a variable" what do you mean Nov 28 05:32:42 desmin88: My bad now that I think of it its kinda of a fail question. Nov 28 05:32:49 it is Nov 28 05:32:51 desmin88: What I meant was so I have to activities in a fragment Nov 28 05:33:09 : Nov 28 05:33:14 activities cant be in fragments Nov 28 05:33:15 its vice versa Nov 28 05:33:48 sorry I have my vocal all messed up lol Nov 28 05:33:49 :D Nov 28 05:33:53 f2prateek: So there should also be a catch(RunTimeException e) ? Nov 28 05:34:23 desmin88: and like I wanted to get the variables in the class of the hidden activity when the other fragment is running. I was wondering if strong the variable in a local variable in that fragment would be more efficient than fetching the variable over and over again from the other fragment that is not visible Nov 28 05:34:50 willornel: no you should let that exception crash the app Nov 28 05:34:58 i still dont get what your saying Nov 28 05:35:28 e.g. in your case an exception could be due to not having the internet permission in the manifest Nov 28 05:35:38 f2prateek: Oh alright alright. So a runtime exception is of type Exception. If I do catch(Exception e) I'm catching the runtime exception, so it doesn't let the app crash, which is a bad thing Nov 28 05:37:21 yup Nov 28 05:37:56 f2prateek: Why isn't eclipse telling me anything about UnknownHostException handling if I do not include catch(UnknownHostException e) ? Nov 28 05:38:23 it extends form IOException Nov 28 05:38:25 desmin88: So do you know how there can be two fragments in an activity. Would it be more efficient to set a local variable for the fragment equal to the variable in the other activity (i.e. com.whatever.class.variablename) or just repeatedly use com.whatever.class.variablename. That "variable name" is from another fragment that is hidden because the current one is selected. I don't know if you still don't get it its alrigh Nov 28 05:38:31 so you're probably catching that already Nov 28 05:39:01 f2prateek: no it doesn't Nov 28 05:39:10 f2prateek: it does! Nov 28 05:39:10 sorry Nov 28 05:40:35 AndreYonadam: do what you thinks best Nov 28 05:41:55 desmin88: will do. thanks Nov 28 05:43:53 AndreYonadam: it doesnt matter either way i think Nov 28 05:44:31 desmin88: yeah i think they are both the same too because I mean they are both local variables Nov 28 05:44:51 I meant like nothing is really changing Nov 28 07:12:27 Any suggestions to make this look a bit easier? http://i.imgur.com/JaG7QyR.png Nov 28 07:12:34 uhh, better* Nov 28 07:13:27 Got it finally to scale height keeping aspectratio Nov 28 07:22:35 remote cross near back Nov 28 07:23:22 ? Nov 28 07:23:36 where is indent Nov 28 07:24:19 what do you mean remote cross Nov 28 07:24:39 oops Nov 28 07:24:47 s/remote/remove/ Nov 28 07:25:53 uhh Nov 28 07:25:55 wat Nov 28 07:28:00 you have confused here Nov 28 07:28:21 squ: in his dreams, the chicken flies south for the winter Nov 28 07:28:30 pls Nov 28 07:29:59 desmin88: on Tuesdays, large buildings bluish prettily Nov 28 07:30:03 er, blush Nov 28 07:30:16 pls no. Nov 28 07:30:19 dont do this to me Nov 28 07:32:11 desmin88: who is this year's lonely uncle? Nov 28 07:32:45 :9 Nov 28 07:35:27 oops, I killed him Nov 28 07:39:49 <_genuser_> my RemoveViewsFactory is returning a view in getViewAt(int), however the widget just keeps saying "Loading....". There are no exceptions thrown or logged in LogCat. Nov 28 07:39:55 <_genuser_> anybody got any ideas on how to debug? Nov 28 07:42:13 If I have a WebView with a JSInterface attached to it Nov 28 07:42:27 and that JSInterface has the webview as a private property... is that a memory leak? Nov 28 07:42:39 i dont know much about java garbage collection Nov 28 07:43:38 How can I find out what are the supported language for Google Play store? https://play.google.com/store/apps/id=com.mycompany.myapp&hl=[two letter language code] I want to find out the *all* the two letter language codes Google Play supports Nov 28 07:43:42 <_genuser_> I don't know about the specifics of those controls, but typical java garbage control runs periodically and frees up memory from object that have zero references in runtime. Nov 28 07:44:14 <_genuser_> to a references b, but nothing references a, then a should be GC'd and b also. Nov 28 07:44:43 <_genuser_> the order of a and b being GC'd varies from lang to lang or something. Nov 28 07:45:16 so having retain cycles like that -would- create a leak? Nov 28 07:46:02 <_genuser_> otiose: if nothing is referencing JSInterface at garbage collection time, then it will be freed up. Nov 28 07:46:17 _genuser_: the webview would be referencing the JSInterface Nov 28 07:46:33 <_genuser_> and anything it was referencing would have then zero references. and that should also be GC'd. hopefully at the same run, but if not, then on the next GC run. Nov 28 07:46:36 webView.addJavascriptInterface(new JSInterface(webView)); kinda thing Nov 28 07:46:47 (assuming the constructor just sets a private variable for the webview) Nov 28 07:47:04 <_genuser_> lol, interfaces is the single reason I dislike java so much. Nov 28 07:47:38 well, this isnt an -interface- per se Nov 28 07:47:45 <_genuser_> I have worked mostly with .NET runtime, and it's quirky. if cleans up references object the object. So in destructors, you can't clean up properly. Nov 28 07:47:52 <_genuser_> and that's how someone chose to design it. Nov 28 07:47:54 its a javascript interface... which is an object tha tyou can call things on from JS in a webview Nov 28 07:48:49 <_genuser_> otiose: so webView is adding interface which takes the same webView as a paramter, right? Nov 28 07:49:02 yep Nov 28 07:49:23 or at least thats how i would like to set it up, but i think it might be super leaky Nov 28 07:49:37 <_genuser_> that's a circular reference. But if the main webView is gone, I'd assume you'd be left with a JSinterface that nothing in active code is referencing. Nov 28 07:50:14 but if the JSInterface is referencing the webView, how can it be gone? Nov 28 07:50:21 i dont know how java handles retain cycles Nov 28 07:50:38 (coming from an ios background if that means anything) Nov 28 07:50:41 <_genuser_> in general, this is where I'd create 100-1000 of object in question and dump free mem before and after creation to see how it goes. Nov 28 07:50:53 haha Nov 28 07:50:56 yeah that would work Nov 28 07:51:21 <_genuser_> I understand it this way: webView is not being referenced by your code anymore. but JSinterface is referencing it. but now it's a contained loop that your code isn't referencing. Nov 28 07:52:09 <_genuser_> lot of devs don't specify this kind of information freely and if they do, lot of us devs don't bother reading 10,000 pages to get one bit of nugget. Nov 28 07:52:12 <_genuser_> vicious cycle. Nov 28 07:52:31 so basically, your advice is try it out and see hwat actually happes Nov 28 07:53:28 <_genuser_> yeah, I'm one of those devs who doesn't get certified in new technologies. I just code it up and see how it pans out. sometimes keeps me out of the loop on cool aspects of frameworks. Nov 28 07:54:01 i dont get certified, i generally read docs Nov 28 07:54:05 which are nice in ios :P Nov 28 07:54:39 <_genuser_> honestly, I finally now read docs. google docs are much nicer than most others. and it's helped me understand android stuff better. Nov 28 07:55:06 <_genuser_> stuff like inner working of .NET, I just brute force my way thru it. Nov 28 07:55:06 is there android certification? Nov 28 07:55:18 just wondering heh Nov 28 07:55:30 <_genuser_> not unless someone quickly becomes a certifying authority. Nov 28 07:55:47 <_genuser_> it would most ideally be google. but I hear they're moving away from royalty mindset lately. Nov 28 07:55:56 <_genuser_> hence not hiring only PhD's anymore. Nov 28 07:56:31 Can I put a list of Serializable object to Bundle? Nov 28 08:02:15 yes maven__ but not serializable .. parcable Nov 28 08:02:50 state.putParcelable Nov 28 08:02:53 lemonxah, I just do not want to implement the Parcable :( since extra codes required. Nov 28 08:03:05 maven__, its not a lot of code though Nov 28 08:03:10 its pretty simple and fast Nov 28 08:03:42 Ok, I will try it.:) Nov 28 08:05:01 did someone ever used rest for push notifications (in a background service)? Nov 28 08:10:05 urgh Nov 28 08:10:13 JSONArrays and JSONObjects are so annoying Nov 28 08:10:17 Nah Nov 28 08:10:19 try/catches everywhere... Nov 28 08:10:23 Use Gson :) Nov 28 08:11:07 misterli: Not sure what you mean; I use GCM for receiving push messages on the device. You can't push to device with REST AFAIK. Nov 28 08:11:57 kjeldahl. There must be another way of using push without gcm, c2dm, gxmpp. I want to avoid using external services and only my own server. Tried now: Http Push, Mqtt, Xmpp but all of them are not working perfectly Nov 28 08:12:31 yeah it looks nice but i dont know if i can use it Nov 28 08:13:04 misterli: Your own "server" on the device?? And you need to remember that the "stability" of connections on mobile probably need to be handled (losing connections which you will not know until you try a heartbeat or similar). Nov 28 08:13:39 No. Own server to handle the Pushs Nov 28 08:14:07 Why isn't xmpp not working for you? Nov 28 08:14:13 And yes. I know because of the heartbeat problem on xmpp (idle connections) and mqtt. This is what fucks me up heavy. MQTT works perfectly but after a while .. Nov 28 08:14:23 misterli: And you want to push to the device IP? HTTP REST is not a "push" service, if you want the device on the receiving end, you need a "web server". Nov 28 08:14:29 Because its overloaded. I only need pushs. No transfer, two-way-push, whatever Nov 28 08:15:01 And the only one "good" and stable xmpp client is asmack which is toooo heavy Nov 28 08:15:08 misterli: Best you can do with HTTP/REST on the device I believe is what is known as "long polling", which is a kind of push I guess. Nov 28 08:15:15 Yes, right Nov 28 08:15:36 I dont want to code my own long polling server/client .. since this would take another 1-2 weeks of coding Nov 28 08:15:52 Mosqutto/Mqtt seems to be fine but in some cases it just wont reconnect anymore Nov 28 08:15:58 Well, can't help you with that, but I can report that GCM works great. I expected latency upwards to 15 minutes, but at most it's 30 seconds, usually a lot less. Nov 28 08:16:11 Yes. I experienced latency up to 30 min which was very bad Nov 28 08:16:22 And it runs only on 2.2+ AND not in some countrys like china, hebrew, .. Nov 28 08:16:29 You polling is also going to cost battery, unless you are able to sync it with the "regular" connection heartbeats of the device. Nov 28 08:17:06 Yes this is why im looking for a good solution beside of gcm. :s Nov 28 08:17:24 Good luck! I'm higher up in the "API chain" ;-) Nov 28 08:17:41 haha Nov 28 08:20:45 If you have some gold to spare and you decide to go the xmpp route, I can recommend the library from IPWorks Nov 28 08:20:59 No gold :P Nov 28 08:21:04 too bad :) Nov 28 08:21:11 https://groups.google.com/forum/#!topic/redis-db/79w_LlLJAHw too many people tried to replace the push already... Nov 28 08:21:35 <_genuser_> beautiful! the docs reference stackwidgetinfo.xml and associated project. But it doesn't exist in samples. Nov 28 08:33:19 is there an easy way to detect if the app is running on a tablet or a phone Nov 28 08:35:28 cause depending on which it is i want to use different cursor adapters Nov 28 08:36:03 why do you want to do that? Nov 28 08:36:08 Check if Phone-app is installed Nov 28 08:36:15 Check Display Size/resolution Nov 28 08:36:28 can't you install phone-app on tablets too? Nov 28 08:36:52 Yes and no. It does work but this is not common Nov 28 08:40:08 that seems a bit sloppy :/ Nov 28 08:48:37 lemonxah, the way I do it is I use different layouts for the different devices Nov 28 08:48:46 yeah i do that too Nov 28 08:49:05 you can use findviewbyid to check if elements are present or not Nov 28 08:49:12 but the layouts dont use cursor adapters Nov 28 08:49:27 but i am doing something else now on my activity also with layouts Nov 28 08:49:59 didn't want to duplicate code for 2 adapters Nov 28 08:50:05 but will fix that later Nov 28 08:57:47 if i'm looping through a JSONArray and adding things from inside to an external array, and then midway through, i get an exception (that's caught)... Nov 28 08:57:54 everything I added before the exception is still OK rihgt? Nov 28 08:58:04 its not like everything in the try is discarded Nov 28 09:02:40 yippee, the answer is yes Nov 28 09:07:15 anyone here use android studio on mac? Nov 28 09:07:23 how can I get ctrl+d to delete characters to work Nov 28 09:07:30 and ctrl+k to not only cut the line, but copy it? Nov 28 09:07:39 define your own hotkeys Nov 28 09:07:42 and then ctrl+y to yank it back Nov 28 09:07:43 :( Nov 28 09:11:04 guys question how do you pop the backstack but leave 1 item Nov 28 09:11:11 well there was an emacs preset Nov 28 09:11:12 my desired behaviour is as follows Nov 28 09:11:23 that i can fix later if i want (undo is ctrl+/ which is kind of annoying) Nov 28 09:11:25 i start the activity then add the home fragment Nov 28 09:11:50 then from there i keep replacing the fragments where the home fragment is but all of those i use .addtobackstack Nov 28 09:11:58 lemonxah: I definitely have code for that somewhere, I know it's possible. It's something like you can check the count ont he stack, and pop 1 at a time until 1 is left Nov 28 09:12:12 then if i tap on a menu item in my drawer layout Nov 28 09:12:35 i want to pop all the way back to the original homefragment Nov 28 09:12:51 and then add the new fragment ontop of that one with another .replace and .addtobackstack Nov 28 09:13:00 so that pressing back will go back to the home fragment Nov 28 09:13:10 does that baviour make sense? Nov 28 09:15:32 well... that explains why my app would try to launch when i wanted to delete a character... Nov 28 09:19:06 D: why does android.webkit.BrowserFrameBrowserFrame have a stringByEvaluatingJavaScriptFromString method but we're not allowed to use it ;_; Nov 28 09:19:56 it sounds like some form of eval(), and "eval() is evil" Nov 28 09:23:23 fm.popBackStack(null, FragmentManager.POP_BACK_STACK_INCLUSIVE); Nov 28 09:23:30 if i dont want to pop backstack inclusive Nov 28 09:23:52 there is no FragmentManager.POP_BACK_STACK_NONINCLUSIVE Nov 28 09:23:56 how would i do that? Nov 28 09:37:10 how do you pull images off your dev device Nov 28 09:38:30 You mean like screenshots? Nov 28 09:41:21 yeah i have some images in my gallery... i tried removing them the same way i put them on... Nov 28 09:41:23 but didnt work Nov 28 09:41:39 ddms->file explorer->push file onto device Nov 28 09:41:41 works to put them on Nov 28 09:41:56 but when i do ddms->file explorer->pull a file from device Nov 28 09:41:58 it doesnt take them offf Nov 28 09:43:06 wait Nov 28 09:43:09 think i got it Nov 28 09:58:20 hello Nov 28 09:58:26 how do i do a GET request in android Nov 28 09:58:41 the most efficient way Nov 28 09:59:46 https://developer.android.com/reference/android/net/http/AndroidHttpClient.html Nov 28 09:59:53 I'd say this is a good starting point Nov 28 10:00:17 thanks i will see how i can use it to pull json Nov 28 10:03:26 Has anybody looked in detail at the new SMS stuff in 4.4/KitKat? I've got an app that is still able to send SMS'es without any trouble, Is the "new" thing with default app only that it is sent "through" the default app, and that I would typically be unable to remove stuff from inboxes etc? Nov 28 10:06:07 wow making a http request in android is a doozy Nov 28 10:06:28 is there a more straightforward way Nov 28 10:06:43 what do you mean? Nov 28 10:07:27 is there an easier api as simple as 'response = get(url);" Nov 28 10:08:27 beaky: From the GUI thread? Not advisable. Nov 28 10:08:30 Hello! When building the Android kernel, I need to recreate the boot image. So I copy the zImage back into device/.../kernel and... what do I do? Tried make and make bootimage, but all say nothing is to be done. Any way to force rebuild of boot.img without having to rebuild the entire system? Nov 28 10:08:50 atm first i have to define an adhoc class specailized from async tasks, then i have to constrct an httpclient object from an http request response, then i have to do lots of manual error checking Nov 28 10:09:16 beaky: http://www.androidsnippets.com/executing-a-http-get-request-with-httpclient Nov 28 10:09:39 wow that is quite straightforwad Nov 28 10:09:50 but isnt that going to block gui thread? Nov 28 10:09:51 and error-prone Nov 28 10:09:55 yes it is Nov 28 10:18:50 Sometimes I wonder why it's 4 in the morning and I can't stop programming to sleep Nov 28 10:18:51 ... Nov 28 10:21:05 sleep is for beginners Nov 28 10:29:02 I sleep and I thought that it is for weakling macTAR :-( Nov 28 10:42:34 i sleep so much Nov 28 10:42:35 i love it Nov 28 10:42:41 but i had a dream that i woke up one day, and i was old Nov 28 10:42:50 i felt young, but my body was old... Nov 28 10:47:07 I feel old but my body is young Nov 28 10:47:07 lol Nov 28 10:49:33 i feel oung and my body is young Nov 28 10:57:14 ...but not as young as i used to be Nov 28 10:59:20 Like, just started writing the user management portion of my web backend Nov 28 10:59:25 and now it's 5 AM Nov 28 10:59:26 lol Nov 28 10:59:44 why did I spend hours setting up a mirror dev env on my second laptop instead of just getting my primary laptop out... Nov 28 11:15:14 Hi, all! How can I calibrate my touch screen? Nov 28 11:23:17 I'm working on an Android+iOS library to communicate with a backend server, using https and xml. Should I rather make two separate libs in ObjC and Java, or should I use C++ for a common code base? Nov 28 11:23:50 two seperate Nov 28 11:23:52 Use the native environments in each. Nov 28 11:24:11 Hi guys, is it possible to use AccountManager just to save/retreive the user/password? At the moment I should like to handle myself the login process Nov 28 11:24:14 the NDK should only be used if your app requires it, such as for GPU rendering Nov 28 11:24:25 (being java for android and objc for ios) Nov 28 11:24:38 Yeah, "native" was a bit confusing, meant java though. Nov 28 11:24:50 I see how C++ works out for games, but for server communication prabably not so good Nov 28 11:24:55 is android how to program a good book Nov 28 11:24:58 or for this purpose it would be better to store credentials somewhere else? Nov 28 11:25:02 Ge0rG: since objc allows C, and in android you can do C too with extra effor. Why not take that extra effort? :) Nov 28 11:25:26 squ: because https+xml sucks in C Nov 28 11:25:29 squ rtfm http://developer.android.com/tools/sdk/ndk/index.html Nov 28 11:25:35 " In general, you should only use the NDK if it is essential to your app—never because you simply prefer to program in C/C++." Nov 28 11:25:42 Ge0rG: xml is fine Nov 28 11:26:13 Ge0rG: https://github.com/squm/xml Nov 28 11:26:29 They all have a primary development environment where you get a lot of code and framework things for free. Go low-level only when it's absolutely require (typically for speed). Nov 28 11:27:00 For network stuff, low level code will not help you speedwise, only complicate your life. Nov 28 11:27:45 It will probably take more time implementing a common code base for both than to implement two 'native' ones Nov 28 11:28:00 Also take maintenance into account Nov 28 11:28:15 I want when i click outside a EditText the kyboard goes down Nov 28 11:28:17 how? Nov 28 11:29:15 Ge0rG: you can even ask anything libxml author on irc Nov 28 11:51:57 hello i am making a app in which i have to save a json file with email and password in sdcard encrypted , how to save the file with json object and retrive the file ? Nov 28 12:17:45 Anyone who knows where I can change the android boot logo in the sources? Nov 28 12:42:17 I'm trying to use the NotificationListenerService but it doesn't work in my (complex) app. But in a simple standalone app I made for testing, it works Nov 28 12:43:08 when I enable the permission in settings, all apps in the list react: android unbinds from the service and binds again if the app has permission Nov 28 12:43:26 I see a message from my test app and another third party app indicating so Nov 28 12:44:30 but not my app! it won't bind no matter what. I've set the target sdk correctly and added the service to the manifest and so on, just like i did in the test app. I've even copied and pasted it from the test app just to be sure it was exactly the same. Nov 28 12:45:12 any idea what could be going on? Nov 28 12:50:19 hello Nov 28 12:50:38 how do i make a good gui Nov 28 12:50:43 i am horrible at design Nov 28 12:51:07 beaky: this is a tough one Nov 28 12:51:09 a) you get better, or b) you get someone else to do it Nov 28 12:51:14 let me know if you find the answer Nov 28 12:51:36 I am pretty much looking for an answer other than what Leeds is saying Nov 28 12:51:53 or c) you work with the design guidelines and at least produce something which isn't downright ugly Nov 28 12:52:49 i love guidelines Nov 28 12:53:05 so google has some ui and ux guildeines? Nov 28 13:01:33 How to disable an edittextbox when an activity loads? Nov 28 13:01:35 (java) Nov 28 13:16:51 beaky, search for android ui patterns. it returns some good results. i always go to the image results first Nov 28 13:18:06 beaky> so google has some ui and ux guildeines? Nov 28 13:18:16 hah, seems like he almost visited dev.android.com before coming here. Nov 28 13:20:26 Hi Nov 28 13:20:53 tell me please, is it possible to program against low-level driver api in closed (not jailbroken) android? Nov 28 13:21:13 you wish Nov 28 13:22:11 hm? Nov 28 13:22:13 the lowest levels are very limited OpenMAX AL and OpenSL ES Nov 28 13:22:36 ah Nov 28 13:22:54 I would like to disable video card signal Nov 28 13:22:57 nvidia provides their own apis for tegra chips Nov 28 13:23:02 no can do Nov 28 13:23:18 http://stackoverflow.com/questions/9561320/android-how-to-turn-screen-on-and-off-programmatically Nov 28 13:23:52 I'm trying understand what is difference between disabling vga card signal vs turning screen like that Nov 28 13:24:29 any help highly appreciated Nov 28 13:24:36 disabling video card signal is like putting a bit into VBIOS that DIE NOW Nov 28 13:24:47 and the link you pasted is like "hey, go blank yo" Nov 28 13:25:26 so it will just put all pixels into black, not turn off the display, right? Nov 28 13:25:52 or if you consider it a low level access that you tell in java that "I am ok with you blanking the screen", then were taking about totally different things. Nov 28 13:26:00 I mean display conected via cable, not tablet/phone screen Nov 28 13:26:35 what I'm trying to do is turning off cable connected display Nov 28 13:26:55 .... Nov 28 13:27:00 so I thought about eliminating vga card signal Nov 28 13:27:08 but maybe there is other way? Nov 28 13:27:38 "eliminating vga card signal" on "(not jailbroken) android" is not possible. Nov 28 13:28:22 ok, that's solid information already :) but maybe there are other ways? Nov 28 13:29:33 android wants you to do it from system's properties. Nov 28 13:29:56 and like in windows or macs, you usually don't setup the displays directly from application. Nov 28 13:30:06 you do it from OS properties Nov 28 13:32:24 hokkaido: do you know maybe name of that property to let me find this in api doc? :) Nov 28 13:32:34 it is not in api Nov 28 13:32:41 ah, ok Nov 28 13:32:49 you need to use the Settings app of Android. Nov 28 13:33:36 google doesn't want app developers to go doing their tweaks to display properties. Nov 28 13:33:44 in windows I could call WMI native api I guess Nov 28 13:33:54 and especially not disabling "vga card" signals Nov 28 13:34:55 maybe there is some native api for hardware management in jailbroken system? Nov 28 13:36:49 ktos maybe set Settings.System.SCREEN_OFF_TIMEOUT to like 0 Nov 28 13:37:16 in jailbroken system you could do some device (gpu) specific pokings. but usually those gpu drivers are very closed source. Nov 28 13:37:21 so don't expect any documentation. Nov 28 13:37:32 shmoooz: ktos> what I'm trying to do is turning off cable connected display Nov 28 13:37:48 shmoooz: that would turn off the main screen Nov 28 13:38:19 I see Nov 28 13:39:21 oh that's kinda of idea Nov 28 13:39:43 but tell me please, what does screen off really do in case of cable connected screen? Nov 28 13:39:59 not sure Nov 28 13:40:20 is there a system provided draweable to use for http links? Nov 28 13:40:44 i want to show an imagebutton or button with icon+text that launches a webpage Nov 28 13:41:59 dodobrain: try finding it here: http://androiddrawables.com/ Nov 28 13:42:42 ok, thank you a lot for help Nov 28 13:42:46 ktos: try it, maybe it will work for cable too, Settings.System.putInt(getContentResolver(), Settings.System.SCREEN_OFF_TIMEOUT, 0); Nov 28 13:43:01 shmoooz: ok, I will :) Nov 28 13:43:35 i could not find an @android:drawable that looked like it was saying 'click here to open this_link' or 'click here to open a web browser' Nov 28 13:44:07 dodobrain: in that case, then no Nov 28 13:44:30 but it's better to supply your own icon anyway, sice you can't really rely on those icons to be around foreven unchanged Nov 28 13:44:35 if it was something like a web browser globe icon it would be great Nov 28 13:44:38 forever* Nov 28 13:44:44 dodobrain: nope Nov 28 13:44:48 http://stackoverflow.com/questions/5847390/button-view-with-drawableleft Nov 28 13:44:52 :( Nov 28 13:44:57 maybe you can recycle the browser icon Nov 28 13:45:08 but you'd have to copy it to your own app manually anyway Nov 28 13:45:13 capella, err.. i know how to have buttons with icon and text Nov 28 13:46:32 so whats the problem? the "open a webpage" part? Nov 28 13:47:07 favicons? Nov 28 13:47:12 i'm looking for an icon. i thought there would be a standard icon to indicate launching a browser application to show a link Nov 28 13:47:35 basically a globe icon which is kinda the standard to indicate a www link Nov 28 13:47:44 oh, not sure there's a standard (?) all sorts of free librarys http://openiconlibrary.sourceforge.net/ Nov 28 13:48:14 is there a programmatic way i can get to the system provided webview/webbrowser icon? Nov 28 13:48:37 would be great if i can get reference that because the user will know for sure what this button will do Nov 28 13:50:07 check the png's in the android-sdk? Nov 28 13:52:28 i don;t know if by check you mean look at the @android/drawable/* resources shown by eclipse ? Nov 28 14:00:30 how do I disable the back button in java on certain activity loads? Nov 28 14:03:18 dodbain: yes Nov 28 14:06:11 hey guys when creating an AVD it crashes the androidSDK manager. I'm running linux/arch. Any ideas? Nov 28 14:08:24 here is the error: http://pastebin.com/nWmcJbc4 Nov 28 14:08:27 capella, well i dont know if eclipse shows the entire list.. but theres no such icon there :( Nov 28 14:08:28 dodobrain: http://developer.android.com/design/downloads/index.html#action-bar-icon-pack Nov 28 14:08:46 if eclipse doesn't show it, then you can't use it Nov 28 14:09:02 so you'll have to copy an icon to your own project, and use that Nov 28 14:10:19 thats what i thought as well. Nov 28 14:10:29 thanks for this link Peetz0r Nov 28 14:10:51 so i assume i unzip this into my project or just copy the icon i want into my resources Nov 28 14:12:33 any ideas? I get this error during an AVD creation. http://pastebin.com/nWmcJbc4 Nov 28 14:15:17 guys I there a way to detect in fragment when that fragement is removed/swaped? I need to unregister sensorListener Nov 28 14:16:06 onpause? Nov 28 14:16:45 Zharf fragments have also acces to those methods? Nov 28 14:16:58 fragments have their own versions of them. Nov 28 14:17:40 worth to try :) Nov 28 14:20:08 I thought that methods are explicy only for Activity Nov 28 14:21:08 those* Nov 28 14:22:00 Hello. I am working with webview on android 4.4 Nov 28 14:22:25 is there a way to have TEXT_AUTOSIZING applied after zoom? Nov 28 14:27:27 guys when having a google map.. is there a way to always show the infowindow/title for markers? Nov 28 14:27:47 they hide away when you click on the map outside the infowindow/title Nov 28 14:35:51 is there a way to block update accuracy in locationManager? Becaue it mess up with distance calcuation Nov 28 14:51:26 hello. how can I possibly distinguish a syscall entry point from the exit point with PTRACE_SYSCALL? Nov 28 14:51:29 on x86_64, I took advantage of the -ENOSYS value in rax... but I can see no such coherent pattern on armv7 Nov 28 15:18:09 guys.. is this not supposed to produce a left sliding animation between activities? overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_left); Nov 28 15:18:28 i get the effect but theres also a fade in/out in place Nov 28 15:18:52 makes is feel completely weird.. its not just a slide, not just a fade but a slide+fade Nov 28 15:18:59 i don;'t want this fade Nov 28 15:29:32 with the f*cked up fragment API... should I put my application logic into the fragment or into the activity? Nov 28 15:36:37 What is the better channel to ask about issues with "adb backup"? Here or #android-root? Nov 28 15:36:59 here is for development so root probably better Nov 28 15:37:43 Well, it seems to not have LFS support, so … But I guess rather about app development, not android itself. Thanks. :) Nov 28 15:38:27 Ge0rG: ... well, UI logic where it is displayed, and application logic separate? Nov 28 15:39:35 p_l: so rather have my own logic class which is contacted by the UI elements? Nov 28 15:39:45 or some MVC overengineering? Nov 28 15:40:15 not overengineering. But essentially separate UI and "business logic" Nov 28 15:41:03 have the business logic follow the actual algorithms and dataflows, instead of how they compose in UI, and have UI code map the two concepts Nov 28 15:43:50 but where should I put the UI bindings and callbacks? the onClick xml attribute always calls Activity code, so it looks like I should keep the fragment really thin? Nov 28 15:45:40 So don't use the onClick attribute Nov 28 15:45:55 SimonVT: why not? it is very elegant Nov 28 15:46:13 No it isn't Nov 28 15:46:21 one line XML vs. 10 lines of java bloat to create an anonymous inner class and a bunch of imports. Nov 28 15:46:23 Ge0rG: UI in my opinion should be as thin as possible Nov 28 15:46:51 lol Nov 28 15:46:59 Hey guys Nov 28 15:47:25 It will be Friday soon Nov 28 15:47:31 Woohoo Nov 28 15:47:35 Ge0rG: you have to have the receiver method anyway Nov 28 15:47:43 so one extra line for view.setOnClickListener(this) Nov 28 15:47:52 and implement View.OnClickListener really isn't bloated now is it Nov 28 15:49:11 CallumTaylor: but I need different methods for different elements, so I need to make a new View.OnClickListener() for each action Nov 28 15:50:38 no you dont Nov 28 15:50:55 have a switch in onClick(View v) and switch by v.getId Nov 28 15:51:05 v.soclnew On and you got yourself a listener Nov 28 15:51:05 CallumTaylor: this is not great. Nov 28 15:51:34 seriously, there's way worse stuff you could be complaining about than view click listeners Nov 28 15:51:48 CallumTaylor: sure, don't get me started! Nov 28 15:51:48 Hi guys, if anyone of you had problems with new WebView in KitKat please star this issue: https://code.google.com/p/android/issues/detail?id=62378 Nov 28 15:52:42 or you could abstract it all yourself like I did https://gist.github.com/scruffyfox/5627096 Nov 28 15:52:52 or use a library like ButterKnife https://github.com/JakeWharton/butterknife Nov 28 15:54:14 butterknife looks nifty Nov 28 15:55:57 Broken tools is a bad excuse for using slow reflection Nov 28 15:55:58 Lets make our own Android Nov 28 15:56:14 With more Java Nov 28 15:56:19 and less XML Nov 28 15:56:19 with blackjack? and hookers? Nov 28 15:56:29 SimonVT: meh I wanted to do some annotation stuff, never did it before Nov 28 15:56:31 Don't forget babes Nov 28 15:56:52 New Android with more oomph! Nov 28 15:57:55 Did anyone notice on the nexus 4 the kitkat easter egg doesn't do well in landscape? Nov 28 15:58:04 The logo overlaps the textview Nov 28 16:00:46 can you change the url in android package name like from com.ABC.project to com.XYZ.project Nov 28 16:03:59 DarkSlay3r: oomph! is a great band, I'd love have more oomph! on my phone :D Nov 28 16:05:39 Rhonda: Awesome! Nov 28 16:05:54 CallumTaylor: Firefox OS - Yay or Nay? Nov 28 16:06:00 nay Nov 28 16:06:13 i wasn't a massive fan of it when I used it Nov 28 16:06:45 I haven't tried it yet Nov 28 16:06:55 Hmm... guess i won't bother Nov 28 16:09:26 anyone? Nov 28 16:10:11 ItsPriyank: yes Nov 28 16:10:19 just refactor Nov 28 16:10:35 hello Nov 28 16:11:02 DarkSlay3r: But that changes only package name not url Nov 28 16:11:31 I need a way to convert from a string like "22 days 4 hours 33 minutes" to a Java variable Nov 28 16:12:07 Like play store url? You can't change that Nov 28 16:12:14 I can write it myself, but I want to make sure im not inventing the wheel Nov 28 16:15:53 MDTech-us_MAN: Just fyi, your question made no sense.. If you have a string you already have a variable Nov 28 16:17:34 I need to convert to a Time variable Nov 28 16:18:31 I actually dont know what is better suited for this. Nov 28 16:18:36 * Ge0rG is still pondering how much more complicated (in terms of person-hours and LoC) a C++/libcurl/libxml2 implementation of a web service client is in comparison to objc + java Nov 28 16:18:41 any way to do that Nov 28 16:20:27 In the long run I need to take the time left and subtract this from it. Nov 28 16:26:22 anyone Nov 28 16:26:40 ItsPriyank: What url? Nov 28 16:27:00 SimonVT: can you change the url in android package name like from com.ABC.project to com.XYZ.project Nov 28 16:27:11 SimonVT: using android studio Nov 28 16:27:15 Yes, just change it Nov 28 16:27:19 Replaces ABC with XYZ Nov 28 16:27:24 I don't see the issue Nov 28 16:27:29 Ge0rG, stop pondering and start coding in both java and objc Nov 28 16:28:18 As has already been mentioned, there are also refactoring tools to change package names Nov 28 16:28:33 Just right click on a package and rename Nov 28 16:30:02 pduin: I just need to provide a qualified opinion so far. libcurl doesn't look too bad. Nov 28 16:31:22 SimonVT: http://s23.postimg.org/4ib1cmhqj/checkthis.png Nov 28 16:32:32 You don't type the entire package name Nov 28 16:32:42 You rename just the part you're refactoring Nov 28 16:33:32 what should I type there for changeing it to XYZ fromABC Nov 28 16:33:51 xyz Nov 28 16:34:19 Refactor abc, type in xyz Nov 28 16:36:09 unable to get you Nov 28 16:36:17 which options should i select Nov 28 17:01:21 hello Nov 28 17:03:46 i made a custom camera app, I set picture orientation with "Camera.Parameters.setRotation" and i try to display it with an ImageView Nov 28 17:04:00 but orientation is not good Nov 28 17:04:21 orientation is fine with an HTC phone, and bad with Galaxy S4 phone Nov 28 17:04:29 with the same program Nov 28 17:04:31 like wtf Nov 28 17:05:04 orientation fails only on the imageview of GS4 Nov 28 17:05:15 what do you mean it fails Nov 28 17:05:21 have you set the activity not to rotate in the manifest? Nov 28 17:05:47 nop Nov 28 17:05:49 WTF!? R.id. gets error " cannot be resolved or is not a field" Nov 28 17:06:07 durka42: the weird fact is that its working with another android phone Nov 28 17:06:28 all this happened after I switched to JRE 1.7 on accident then back to 1.6 Nov 28 17:06:37 yeah that is weird macTAR Nov 28 17:06:41 wtfh should I do Nov 28 17:06:43 MDTech-us_MAN: clean and rebuild the project maybe? Nov 28 17:06:48 R.* is auto generated Nov 28 17:06:55 already did that Nov 28 17:07:01 :/ Nov 28 17:07:32 I know R. is auto generated, that is what throws ne off so much Nov 28 17:07:39 me Nov 28 17:08:20 problem is only with the ImageView element. Orientation is OK when i display it with an action_view intent. Its like if ImageView on samsung phones isnt handled Nov 28 17:08:48 EXIF not handled i mean Nov 28 17:08:56 even "R.layout.activity_" gets "activity_ cannot be resolved or is not a field" Nov 28 17:09:18 really! WTH! Nov 28 17:09:33 this stuff is happening constaintly Nov 28 17:10:05 I re-installed eclipse 4 times already! Nov 28 17:10:17 ~~~:@ Nov 28 17:10:46 MDTech-us_MAN: did you accidentally import android.R? Nov 28 17:10:56 let me see... Nov 28 17:11:52 :| life is so annoying Nov 28 17:12:49 TheTrash: It looks like I did import it when I was worrying about what to do when I switched to JRE 1.7 Nov 28 17:17:40 is an AsyncTask the best practice for doing network operations? Nov 28 17:18:33 Remove import, import your own R, clean/rebuild, should be it. Nov 28 17:35:49 I have a linearlayout in a relativelayout, if I set the liner layout to match_parent the relative layout expands to the size of the screen, why is that and what can I do to stop it? Nov 28 17:49:58 Hello, I can not figure out why R.java doesn't build on a new project, and I can not figureout how I am supposed to build the project, because not having the R.java causes my project not to build... I am using the eclipse that is built into the adt-bundle.. Nov 28 17:51:24 Looking on Google, the answer was to build the project... but I can not do this because of the errors I get from not having a R.java generated file. Nov 28 17:53:57 rdh: try cleaning the project first Nov 28 17:56:52 Pfft... my problem was that aapt was not executable... Nov 28 18:04:11 Real men don't need R.java Nov 28 18:06:18 Lol, is there a guild for building android projects without an ide... i don't like eclipse telling me what to do. Nov 28 18:06:25 guide Nov 28 18:10:27 Well, gradle pretty much does the heavy lifting. If you're into emacs, you can start here for instance http://kjeldahl.net/d7/node/34 Nov 28 18:11:14 rdh: there is an ant creature Nov 28 18:11:31 by the people resposible for Apache Nov 28 18:11:37 and Maven Nov 28 18:11:55 If you're into scala, "sbt" (by "pfn" here) is another alternative. Nov 28 18:13:20 Thanks! Nov 28 18:14:02 Hey guys I'm having an error coming up with my app. Logcat: http://pastebin.com/fWDeGSCp Code: http://pastebin.com/6eYK3d7K and all variables are intiailzed and contain text. Nov 28 18:15:16 How come I keep getting that storage == null error message? Nov 28 18:42:46 Hey, what is the best way to pass a connected socket to another activity? Nov 28 18:43:31 Hi does anybody use this here? https://github.com/BoD/android-switch-backport Nov 28 18:43:57 I have some issues to make it compile in my build.gradle Nov 28 18:44:12 anybody to help? I used the thrid method proposed on the github readme Nov 28 18:44:22 which is basically setting it up in build.gradle Nov 28 18:49:42 hi everyone Nov 28 18:49:55 somebody with GoogleMaps Api experience? Nov 28 18:50:40 maybe Nov 28 18:50:42 I have a GoogleMap object, with markers and polylines, I'd like to know how to "apply" it from a map to another Nov 28 18:50:56 let me explain what my app does Nov 28 18:51:06 you mean copy all your markers and stuff from one map to another? Nov 28 18:51:12 no I wouldn't know Nov 28 18:51:29 I can do that, but I think it's a waste of space and time Nov 28 18:52:00 instead, I'd like to knwo if there's a way to "transport" a GoogleMap object from a map to another Nov 28 18:52:05 Any thoughts on synchronizing images/media with server? Nov 28 18:52:20 copycat-killer: MapQuest. Nov 28 18:53:31 is that an app? Nov 28 18:54:01 copycat-killer: A better library. Nov 28 18:55:00 you mean a substitute for standard GoogleMaps lib? Nov 28 18:55:16 copycat-killer: yes. Nov 28 18:56:36 well, I just need to show the session route on the map, like runtastic if you know it Nov 28 18:56:54 I have a GoogleMap object which is fed with markers and polylines during the session Nov 28 18:57:17 at the end, I'd just like to "apply" this GoogleMap object on a map of another activity Nov 28 18:57:28 copycat-killer: I know but this library has better documentation and API. Nov 28 18:57:32 or to "get" the exact map into the new activity Nov 28 18:58:00 the_phoenix: that lib does this? Nov 28 19:12:01 copycat-killer: Am not exactly sure but wouldn't you pass a configuration and reconstruct map? Nov 28 19:12:36 that's what I do now Nov 28 19:12:57 I thought I could avoid reconstructing Nov 28 19:13:03 copycat-killer: what's your exact use case? Nov 28 19:14:00 do a session, which means add marker and polylines between them at every location changed, until the user stops the session Nov 28 19:14:37 once the session is stopped, show the session route on the map Nov 28 19:14:58 hey guys! Nov 28 19:14:59 but I need to do this in a new activity Nov 28 19:15:18 hello FabianH Nov 28 19:15:41 How do you guys handle Authentication on a web server? Nov 28 19:15:49 copycat-killer: Why don't you keep the same activity and make it look like it changed? Nov 28 19:16:55 It's more a php question, but I coded a authentication system that gets a token at log in and my app passes this token and a user id to every api request Nov 28 19:17:01 what do you think about that? Nov 28 19:17:36 the_phoenix: can I set the activity contentView more than once? Nov 28 19:18:07 whats your problem copycat? Nov 28 19:18:08 :) Nov 28 19:18:49 Do depretaited meathods ever get removed? Nov 28 19:19:02 copycat-killer: http://stackoverflow.com/questions/4018772/calling-setcontentview-multiple-times Nov 28 19:20:47 copycat-killer: Relative allows keeping one view over another. You can keep the same map and have two layouts for other content. Nov 28 19:21:46 I have a question. Does anyone know a library that can calculate math triganomic functions using a meathod more accurate than floating points? Nov 28 19:22:23 the_phoenix: basically that's just playing with setVisibility, but I have complex layouts, this means the result would be a big heavy main layout; isn't that unefficient? Nov 28 19:22:47 plus, I have a secondary use case Nov 28 19:23:06 <_biff> what the hell should i do Nov 28 19:23:12 <_biff> with my fucking google map Nov 28 19:23:13 the user can retrieve previous sessions from a server, and display them Nov 28 19:23:16 <_biff> cant believe Nov 28 19:23:33 agy2154: this SO question looks relevant: http://stackoverflow.com/questions/2173512/java-bigdecimal-trigonometric-methods Nov 28 19:23:44 durka42: thanks Nov 28 19:25:02 copycat-killer: Possible. It cound inefficient but you should be able to weigh between a heavy main layout and recreating maps. You must be able to pass around a reference to a google map object but am not sure what would happen when using two activities. Some of these components depend on container to build maps. Nov 28 19:26:46 the_phoenix: I am able to pass the GoogleMap object filled with stuff from the 1st activity to the 2nd, and I have a reference to the same fragment map Nov 28 19:27:20 but how can I "set" the contents of the GoogleMap object on the fragment map? Nov 28 19:30:24 copycat-killer: By calling its reference? Nov 28 19:30:38 why not using fragments? Nov 28 19:31:22 (keep it as MapFragment rather than Fragment) Nov 28 19:32:27 yeah, it's a SupportMapFragment Nov 28 19:34:33 basically, we all know you can get a GoogleMap object from a MapFragment by calling getFragmentManager().[...].getMap() Nov 28 19:34:52 but is there a way to do a setMap() on it? Nov 28 19:35:11 that's what I'd like to understand Nov 28 19:36:52 copycat-killer: You can't exactly do setMap but you can play around with fragment manager. Nov 28 19:38:11 Hey, I created a custom view and I want to add an onClick() function to it's class, so if define my custom view like this: public class myView extends View implements OnClickListener ; do I need to do anything else? Nov 28 19:40:10 I have an Activity with a ListView, when I click on one of its elements it goes to another activity. The thing is if from that later activity I go back to the previous one and I click again on one of its Items it does nothing.. what could be happening? I read smth on that about onResume, but i dont know what to do there Nov 28 19:40:12 is there a way to publish app for specific device or vendor? Nov 28 19:40:19 copycat-killer: Isn't this what you are tryint to do? https://developer.android.com/training/basics/fragments/fragment-ui.html Nov 28 19:42:34 not sure: can I add a fragment I used in an activity dinamically to another activity? Nov 28 19:42:52 who of you uses the application class= Nov 28 19:42:53 ? Nov 28 19:42:58 hey folks, anyone using valgrind on android ? Nov 28 19:43:00 i dont understand the use of it Nov 28 19:44:03 lol Nov 28 19:45:04 it allows you to detect memory leaks as well as possible data race conditions, for example Nov 28 19:47:39 i mean why should you use the class to persist data Nov 28 19:47:50 Can I change my packagename with one click throughout my whole application? Nov 28 19:48:49 right click Nov 28 19:48:53 refactor Nov 28 19:48:55 rename? Nov 28 19:49:26 Thats just for the project name Nov 28 19:49:29 not the package Nov 28 19:49:33 com.company.myapp Nov 28 19:49:40 When I use android tool, It doesn't work. Nov 28 19:49:43 nope, it doesn't work for the package name Nov 28 19:49:58 Yeah Android's tool gives me an error. Nov 28 19:50:09 "Rename Application Package" Nov 28 19:50:30 An Unexpected exception occured while creating a change object...: Nov 28 19:50:44 I remember reading that changing the package name is actually impossible by design Nov 28 19:51:09 ohh snap Nov 28 19:51:29 Yeah, Idk I might have to manually go back and rewirite it everywhere. Nov 28 19:51:29 You can change package names all you want, just not manifest package once it's released Nov 28 19:52:23 SimonVT: You mean I can't release it under the same application right? Thats not my worry right now I just want to rename the package name. I tried using the Android utility but it returned an error. Nov 28 19:53:00 hmmz, http://developer.android.com/training/basics/firstapp/creating-project.html doesn't actually state that Nov 28 19:53:15 I can't recall where I picked that up then Nov 28 19:55:38 i've got a custom view the implements the OnClickListener interface and an onClick function. the view itself is in a scroll view. when a click happens it's not getting through to the onClick function. is it because the scroll view consumes it or am I doing something wrong? Nov 28 19:57:20 viran: Probably something wrong. Nov 28 19:57:42 Did you set a click listener? Nov 28 19:57:53 oh, wow - Call requires API level 9 (current min is 8): java.lang.String#isEmpty Nov 28 19:58:17 TextUtils#isEmpty Nov 28 19:58:22 viran: What's the view? Nov 28 19:58:22 Also null safe! Nov 28 19:58:44 SimonVT: i already check whether the value is null. i am just going to roll with a "length == 0" Nov 28 19:58:55 no SimonVT, the the custom view implements the onClickListener interface and the class has a onClick function... do i need to also set a listerner? Nov 28 19:59:02 AndreYonadam: it's a custom view Nov 28 19:59:13 viran: you need a listener Nov 28 19:59:50 I need the onClick function to be internal to the view class and not the activity... can't i make it work? Nov 28 20:01:49 You always need to set the listener Nov 28 20:01:52 The listener is just your view Nov 28 20:01:53 So set that Nov 28 20:01:58 viran: Can't you still use the on click listener on that exact view or if you have multiple ones it might be easier to implement it. Nov 28 20:02:21 oh ok, i get you.. thanks Nov 28 20:35:16 Is there any google group for opening up issues with the Android tools. I just found a bug. When you use the Android package renaming tool it changes the java file format from UTF 8 to the default Nov 28 20:58:06 I cannot enable google chrome remote debug. My system is Android 4.1.1 and chrome 31.0.1650.59 Nov 28 21:06:02 AndreYonadam: adt-dev@ Nov 28 21:06:09 Or, you know, b.android.com Nov 28 21:07:03 Thanks JakeWharton, I'll file an issue soon. Nov 28 21:12:01 hey Nov 28 21:12:10 hey Nov 28 21:12:16 is there a way to encrypt the password that is sent to a server? Nov 28 21:12:33 the problem is that my api needs the password in clear text.. Nov 28 21:12:48 https ? Nov 28 21:12:50 Does the LVL library have to be included when publishing? Nov 28 21:13:05 https is so expensive.. Nov 28 21:13:14 150 € for one year.. Nov 28 21:13:19 can't afford that now Nov 28 21:13:23 :| Nov 28 21:13:23 you can self sign Nov 28 21:13:26 mine wasn't that expensive Nov 28 21:14:20 i'm on a host, i can't just sign it by myself Nov 28 21:14:30 i mean, i don't have a vhost Nov 28 21:14:33 or smth like that Nov 28 21:14:55 How is HTTPS expensive. All you need is your own IP and cert Nov 28 21:14:55 i know the provider i use is expensive Nov 28 21:14:57 :( Nov 28 21:15:16 i bought a .me domain for 40 € -.- Nov 28 21:15:16 AndreYonadam: certs (which depending on features can be very expensive) and processing power Nov 28 21:15:27 p_l: ahh Nov 28 21:18:11 I think a pass the clear text Nov 28 21:18:12 :/ Nov 28 21:18:28 *i Nov 28 21:22:00 startssl.com or similar hands you certs for free iirc Nov 28 21:22:04 Please is there an online android emulator I could use whatsapp on?? Nov 28 21:22:33 startssl? i'll take a look at it :)) Nov 28 21:23:32 they want money for star certificates these days, but small time operators that get by with like 1 cert can get a cert for free for a year Nov 28 21:23:44 and then renew a year later. Nov 28 21:24:17 my provider is really shitty.. -.- Nov 28 21:24:48 to actually use ssl cert, i have to take a plan with at least 20€ per month -.- Nov 28 21:24:56 i'm now paying 4€ Nov 28 21:27:36 FabianH: check out startssl, you get a free cert. Nov 28 21:27:41 heh, already mentioned I see :) Nov 28 21:28:02 thank you for that tip :) Nov 28 21:33:11 AndreYonadam: btw, on my cpu, OpenSSL goes at around ~60MB/s for aes-256-cbc... that's not that much for a server, especially if you have dynamic stuff Nov 28 21:34:14 hi Nov 28 21:35:02 p_l: is GnuTLS faster? Nov 28 21:35:13 how can i rotate de emulator on a macbook? if i press fn+ctrl+f11 i my emulator gets rotated but the content inside rotate with it, so i can't get into landscape mode Nov 28 21:35:21 i get a portrait mode rotated Nov 28 21:45:53 i also added a layout-land folder with other xml configuration to landscape, but i can't get the simulator to landscape. I google for it and always get ctrl+f11 or variations of it Nov 28 21:46:20 and i always get a rotated phone with the content also rotated with it Nov 28 21:53:35 <_genuser_> hello people Nov 28 21:54:04 <_genuser_> my listview rows have a 1dip spacing between them. I can't figure out where it's coming from. Any ideas? Nov 28 22:01:34 hello Nov 28 22:01:39 quick question Nov 28 22:02:48 does running "finish()" on the UI thread using "runOnUiThread()" close the background thread too? Nov 28 22:06:01 that makes no sense Nov 28 22:06:51 what background thread? Nov 28 22:14:49 I keep getting a cannot be resolved to a type errors, but I did add the android project in eclipse that has that defines those types Nov 28 22:17:14 anyone? Nov 28 22:44:19 does running "finish()" on the UI thread using "runOnUiThread()" close the background thread too? Nov 28 22:45:04 does running "finish()" on the UI thread using "runOnUiThread()" from a separate thread close the background thread too? Nov 28 23:03:24 Is there any example/library for those "overlays" you see on first run? Like the holo blue finger indicating swipes or something. Nov 28 23:03:37 Then you click ok, and it disappears Nov 28 23:18:40 <_genuser_> anybody using eclipse notice that after the latest update in google SDK stuff and ADT plugin, you have to click on Run button incessantly hoping that one of the clicks will actually do some stuff? Nov 28 23:19:11 good reason to switch to AS :0 Nov 28 23:19:17 ;)* fck Nov 28 23:19:34 <_genuser_> AS? Nov 28 23:22:28 android studio Nov 28 23:23:10 android tailored ide based on intellij Nov 28 23:23:53 <_genuser_> hmm, I should into it. Eclipse has never been a performer and lately it's getting harder and harder to tolerate on a machine busy doing other things. Nov 28 23:24:25 you should. Nov 28 23:24:59 <_genuser_> altho, if my app gets finalized soon, I might not be coding android much. Nov 28 23:25:25 but when you do Nov 28 23:25:51 <_genuser_> right, but when I do, I would like a responsive UI. Nov 28 23:26:18 <_genuser_> it doens't help that desktop only have 4G or ram. and basically spends half the uptime paging stuff to disk. Nov 28 23:26:59 Working with Eclipse was a pain Nov 28 23:27:03 AS is awesome Nov 28 23:29:00 <_genuser_> if the Android SDK setup and the emulator setup any better? or is that still a drag? Nov 28 23:29:45 sdk setup? Nov 28 23:30:23 <_genuser_> you know installation, path specification, then there's the ADT plugin mumbo jumbo. Nov 28 23:30:23 Fck, I'm so bad at making ui's. http://gyazo.com/ccd4310dc4136262b2a61f987a956aa5 Nov 28 23:30:32 android studio does it all, comes with sdk Nov 28 23:31:38 <_genuser_> :D. that's so much better. nice! after this app compiles, I'll go google AS. Nov 28 23:33:52 is there any way to write apps for android in C# without using xamarin? Nov 28 23:34:05 prob not Nov 28 23:35:28 sad Nov 28 23:35:41 xamarin costs 300 bucks just to publish more than 32kb of code :( Nov 28 23:35:46 and 1000 to use visual studio Nov 28 23:35:52 little over priced if youa sk me Nov 28 23:36:00 tbh c# and java are so similar i dont see how one would have prolbmes Nov 28 23:36:03 problems* Nov 28 23:38:27 anyone using valgrind here ? Nov 28 23:44:22 hello, i was wondering how to hide ads in applications. i realize that i can use adblock plus and adaway, but i have had no luck with those and sometimes the frame of the ads are still there, just without the ads. i have a samsung illusion running android 2.3.5 and it is rooted. Nov 28 23:45:26 wrong channel Nov 28 23:45:47 right channel? Nov 28 23:45:48 also Nov 28 23:45:55 kind of a dick move Nov 28 23:46:04 perhaps #android or #android-root Nov 28 23:46:28 no activity in #android currently. ive already asked there. ill ask there later. but ok ill try the latter Nov 28 23:47:09 i guess just wait for a response in #android ? Nov 28 23:47:49 fayisha: very wrong channel, we here show ads Nov 28 23:48:02 hehe Nov 28 23:48:31 they are terrible. i have a 3.5" screen and screen space is very valuable to me Nov 28 23:49:05 get a bigger screen yo Nov 28 23:49:14 no money Nov 28 23:49:21 get money yo Nov 28 23:49:25 d: Nov 28 23:50:29 if i had the money i'd buy the ascend mate from huawei. then i wouldn't care about ads.. lol Nov 28 23:50:52 Okay, I need help. I can't seem to get my list view item image to show correctly. This is what it looks like: http://gyazo.com/cf330755492ee6499af1c1d8c4c5d36f This is the xml: http://pastie.org/8515718 And this is the source image http://i.imgur.com/UTseOUG.jpg loaded simply using picasso Nov 28 23:51:01 fayisha: whos your provider Nov 28 23:51:18 That is not the xml, woops Nov 28 23:51:27 provider as in for mobile data? Nov 28 23:51:30 This is: http://pastie.org/8515719 Nov 28 23:51:39 fayisha: yes, who is your phone company and what does he do Nov 28 23:52:06 i dont have service. i only use wifi. no money for service Nov 28 23:52:18 ahh i see Nov 28 23:52:26 desmin88: if your error == placeholder you can skip declaring it Nov 28 23:52:39 hehe Nov 28 23:53:09 Yes I should probably should have changed that by now Nov 28 23:53:11 no need to waste us posting back to the main thread just to re-set the same image Nov 28 23:53:34 Very true. Nov 28 23:53:54 what's the problem? i don't see it Nov 28 23:54:36 I cant seem to get the imageview (the thumbnail) to display correctly, it should fill out its height, but instead just is small Nov 28 23:54:40 FYI you can change the return type of getItem to Post Nov 28 23:55:29 hmmph, didnt know that, thank you Nov 28 23:55:32 also, you should only look up data.get(position) once and cache to local variable Nov 28 23:56:07 damn Nov 28 23:56:14 thx Nov 28 23:58:38 i use this (https://gist.github.com/JakeWharton/5423616) to clean up the boilerplate around adapters, personally Nov 28 23:59:50 perfect Nov 29 00:00:01 i new it would suck once i started needing a lot mor adapters Nov 29 00:01:11 i wonder if viewholder pattern is really neccessary anymore considering how much more powerful phones are now Nov 29 00:02:12 there was a post recently on its performance that made the rounds on the internet Nov 29 00:02:35 i still think anything doing a depth-first search should never be done every single time you want to bind a list item Nov 29 00:03:06 yeah Nov 29 00:04:11 JakeWharton: Happen to have the link to that handy? Nov 29 00:04:19 uh Nov 29 00:04:20 im trying to find it Nov 29 00:05:27 http://daniel-codes.blogspot.com/2013/11/is-findviewbyid-slow.html Nov 29 00:06:50 this is interesting https://github.com/BoD/jraf-android-util/blob/master/src/org/jraf/android/util/ui/ViewHolder.java Nov 29 00:08:27 still not O(1), but it's at least better Nov 29 00:09:06 I prefer ViewHolders for other reason as well Nov 29 00:09:33 Namely? Nov 29 00:09:41 well for one, they document and collect all the types centrally Nov 29 00:10:23 type safety is on inflation rather than down in the actual binding code Nov 29 00:10:41 something like what you linked would be useful if I didn't use ButterKnife Nov 29 00:11:53 yeah i find butterknife really nice Nov 29 00:12:29 Gotta try 4.0 soon. Nov 29 00:12:40 v4 is soooo much nicer Nov 29 00:12:54 Internally or because of the new @Annotations? Nov 29 00:12:58 both Nov 29 00:13:55 Biggest changes internally? CBA to look up commits right now, was going to bed actually. Nov 29 00:14:17 it was basically a re-write of the annotation processor's internals Nov 29 00:15:12 it's completely dynamic now. each listener @Annotation is annotated itself with the fully-qualified class name of the Android listener class. the processor then looks up the listener class, the method, its arguments, and its return type and dynamically generates the output based on it Nov 29 00:15:27 this way adding a new listener and annotation is basically like 5 lines of code Nov 29 00:18:27 so uhh Nov 29 00:18:36 about the imageview Nov 29 00:18:42 why isnt it filling its height to match parent Nov 29 00:19:33 so you want the image to fill the height and therefore also take up more horizontal space? Nov 29 00:19:40 or do you want it clipped on the left/right? Nov 29 00:19:48 Sounds good. Maybe I'll take a look at it after all. Nov 29 00:19:58 But not today. Night Nov 29 00:20:02 see ya Nov 29 00:20:10 fill the height, and take up more horizontal space Nov 29 00:20:11 1 sec Nov 29 00:23:04 This is what im going for: http://gyazo.com/c42cc68d3dcbf0bfc3906c03c3065ec7 with two icons on the right though Nov 29 00:23:56 Before I had nested linear layout Nov 29 00:24:03 but i didnt want to have too many nested views Nov 29 00:24:03 does your ImageView occupy the whole vertical height? Nov 29 00:24:46 It should. android:layout_height="match_parent" although I'm not sure if maybe I'm doing something wrong to effect that Nov 29 00:25:03 <_genuser_> layout_centerVertical - does this center the item itself vertically? Nov 29 00:25:07 <_genuser_> or the contents inside vertically? Nov 29 00:25:17 the item in its parent Nov 29 00:25:24 <_genuser_> perfect, thank you. Nov 29 00:25:25 gravity affects the children inside the item Nov 29 00:25:40 I like to think "lay-out" Nov 29 00:25:42 anything layout_* affects the position of the view in its parent Nov 29 00:25:50 as it how it lays in the outside Nov 29 00:26:23 <_genuser_> nice. it will be easy to remember it that way. Nov 29 00:37:06 <_genuser_> do my reading of dp and sp says that if I specify even the fonts as dp and the container as dp then it will always look the same regardless of user's font specifications. Nov 29 00:37:31 uhh Nov 29 00:37:38 dont you set fonts for sp? Nov 29 00:37:56 so it scales for readability settings Nov 29 00:38:54 <_genuser_> it's a widget. and I really like it's setting as certain way. If I put the container as dp and font as sp and they have accessibility turned on and a huge font, it will ruin my layout. Nov 29 00:39:14 <_genuser_> altho, I'm the only one who uses it. so it doesn't really matter. but I guess from learning point of view, I was curious. Nov 29 00:44:09 Trying to render a view offscreen.. It works, but when I add certain elements to the view it fails. (AnalogClock and many others). Though if I load the view normally it works fine. Code: View view = LayoutInflater.from(context).inflate(R.layout.fragment_main, null, false); Error: android.view.InflateException: Binary XML file line #35: Error inflating class android.widget.AnalogClock Nov 29 00:45:24 what's the caused by? Nov 29 00:47:50 ? Nov 29 00:53:33 that exception doesn't tell us anything Nov 29 00:53:40 it's just the top-level message Nov 29 00:53:45 paste the whole thing into a paste bin Nov 29 00:54:39 http://pastebin.com/s9BbBXCT Nov 29 01:01:18 <_genuser_> moment ago: loving android. now, needing to draw border on just one side: argh!!!!! Nov 29 01:02:34 lol ive been tryign to get this dumb card item to look good for a while Nov 29 01:03:19 <_genuser_> desmin88: that was said to me? Nov 29 01:03:33 ya Nov 29 01:04:52 <_genuser_> lol, you have no idea. I love how graphics designers can make things look so good. Nov 29 01:05:23 <_genuser_> my UIs tend to be so bland. and only way I can work on them is to just change small things at a time and see how it renders. Nov 29 01:05:25 i know :( Nov 29 01:05:56 <_genuser_> so gotta keep trying things. Plus using CSS with border-right: 1px solid gray it's so easy. Trying to translate that to android. Nov 29 01:08:42 JakeWharton: i don'twant to bother but do you see what im doing wrong? Nov 29 01:09:07 LoveMHz: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() Nov 29 01:09:46 AnalogClock likely creates a Handler using the default thread looper (stupid, in my opinion) so that it can show the time Nov 29 01:09:55 therefore must be inflated on the main thread Nov 29 01:10:37 desmin88: match_parent isn't going to work if the height of the parent container isn't known Nov 29 01:12:32 is known, rather Nov 29 01:12:53 oh. Nov 29 01:13:50 is it a relative layout? Nov 29 01:13:58 Yes Nov 29 01:14:30 http://pastie.org/8515719 Nov 29 01:14:36 Okay got it to work. Moved inflate to my Activity class and refrenced the varible from my OpenGL code. Nov 29 01:15:06 oh Nov 29 01:15:18 the height is fixed so it should work Nov 29 01:17:44 it should but then why does it look like this? http://gyazo.com/cf330755492ee6499af1c1d8c4c5d36f Nov 29 01:23:22 what does hierarchy viewer show? Nov 29 01:24:37 <_genuser_> relativeLayout height wrap_content, child textview height fill_parent, cyclic dependency? Nov 29 01:24:57 <_genuser_> there's other stuff in their to give an idea of what the height will be. Two other textboxes stacked. Nov 29 01:25:27 my relativelayout height isnt wrapped Nov 29 01:26:17 <_genuser_> no, this one is for mine. lol. still working the UI. Nov 29 01:26:20 oh Nov 29 01:27:12 JakeWharton: what exactly am i looking for? Nov 29 01:27:26 <_genuser_> ah, relativelayouts rock. !!! Nov 29 01:33:29 <_genuser_> ah, relativelayouts rock. !!! Nov 29 01:33:35 <_genuser_> sorry, wrong window Nov 29 01:34:45 <_genuser_> drat, now I like my widget UI better than the actual app. Nov 29 01:35:25 onPause() is for when another activity does notifications or similar right? Nov 29 01:35:59 Syzygy_: it's when the OS decides to pause you. Nov 29 01:36:40 can you give me an example for when that might happen? Nov 29 01:36:44 call? Nov 29 01:37:50 afaik whenever something else becomes in focus, but not necessarily covers your application completely. when the latter happens, you get onStop() Nov 29 01:38:16 but even if you switch between activities completely you'll first get onPause and then onStop, afaik Nov 29 01:40:29 http://developer.android.com/guide/components/activities.html#Lifecycle <--- this is handy to have around, especially the graph Nov 29 01:44:41 yeah i have that open right now Nov 29 01:50:55 relativelayout pls./ Nov 29 02:14:14 JakeWharton: Added .fit() to picasso and it works now... Nov 29 02:14:26 I cannot for the life of me get the emulator to start. Nov 29 02:14:26 Hm. Nov 29 02:14:39 are you using haxm Nov 29 02:16:04 Just booting up with a black screen and going nowhere. Nov 29 02:16:06 Weird. Nov 29 02:16:13 that is happening with me too Nov 29 02:16:22 Nilium destroy it Nov 29 02:16:32 Maybe the host GPU stuff is broken Nov 29 02:16:38 I did. Several times. Nov 29 02:16:42 destroy it? Nov 29 02:17:04 Yeah, disabling the host GPU gets it to boot. Nov 29 02:17:36 That's going to make this tedious since the host GPU's kind of necessary for OpenGL ES 2, since I haven't once been able to make that work without it Nov 29 02:18:01 Nilium did yu try genymotion ? Nov 29 02:18:39 Doesn't genymotion have some weird API limit? Nov 29 02:18:51 uh, never heard of it Nov 29 02:19:01 they don't have 4.0 images Nov 29 02:19:13 I heard something from someone on the Stack Overflow chat, but maybe that was a different thing. Nov 29 02:19:23 i tried genymotion but no matter what it would just not find virtualbox Nov 29 02:19:23 Ok, well, I need 4.0 images. Nov 29 02:19:43 Like, specifically, 4.0 Nov 29 02:19:56 Well, that's interesting. Now the emulator boots up and says the system process has crashed. Nov 29 02:20:15 Which means a stream of "Unfortunately, Launcher has stopped." Nov 29 02:21:25 Quick question: How bad would it be to have a global class with a static list view so I don't have to my my monstrous json object parcelable? Nov 29 02:21:47 uhh i mean Nov 29 02:21:50 list of json objects Nov 29 02:27:08 Hmmm Nov 29 02:27:18 How the heck do I test something at API level 14 with OpenGL ES 2. Nov 29 02:27:36 Don't exactly have any devices stuck at 14. Nov 29 02:27:39 Host GPU stuff is broken in the emulator.. Nov 29 02:29:27 apparently host gpu only works on api >15 Nov 29 02:29:51 Great. Nov 29 02:29:59 holy crap genymotion is so fast Nov 29 02:30:18 Nilium: source, http://developer.android.com/tools/devices/emulator.html#accel-graphics Nov 29 02:30:27 otiose: thx for rubbing it in :( Nov 29 02:30:46 haha why, whats wrong? Nov 29 02:30:47 genymotion doesnt find virtualbox for me, offers no solutions on this. the faq just says make sure its installed, when it is Nov 29 02:30:48 i just downloaded it Nov 29 02:30:52 oooh Nov 29 02:30:54 did you reboot? Nov 29 02:31:00 or wait Nov 29 02:31:08 i -literally- just had that problem Nov 29 02:31:11 yes Nov 29 02:31:11 what are you on, mac? Nov 29 02:31:13 multiple times Nov 29 02:31:14 pc Nov 29 02:31:20 oh i dont know then Nov 29 02:31:29 have you opened virtualbox? Nov 29 02:31:55 yes Nov 29 02:32:07 hmm, well idk Nov 29 02:32:16 it worked for me after opening vbox Nov 29 02:41:41 * g00s ponders the implications of the 3-year expired camping food just eaten Nov 29 02:42:00 those are just guidelines, you'll be fine Nov 29 02:42:07 lol. Nov 29 02:42:12 youll be finneeeee Nov 29 02:42:33 chicken, broccoli, and noodles. but nothing in there was green :| Nov 29 02:45:02 i wish java had tuples :( Nov 29 02:45:43 so often i want to say something like (x,y,z) = foo (bar) Nov 29 02:46:50 http://developer.android.com/reference/android/util/Pair.html Nov 29 02:46:53 close enough Nov 29 02:50:07 i'm using it atm Nov 29 02:50:25 oh Nov 29 02:55:10 woopee, got my card to look decent Nov 29 02:59:19 Thoughts guys? http://gyazo.com/916d18feb07f8763c46df1c80db40876 **** ENDING LOGGING AT Fri Nov 29 02:59:58 2013