**** BEGIN LOGGING AT Sat Sep 21 03:00:00 2013 Sep 21 03:27:43 n/m figure dit out Sep 21 03:27:46 very chatty in here tonight Sep 21 03:40:20 Hey! The maxlines=2 of the textview is not working properly... I debugged and I notice that I get AT_MOST flag sometimes on the onmeasure event... any idea what might be happening? http://pastebin.com/GQGuL9gW Sep 21 03:41:59 I'm getting a "Surface has already been released." exception… what does this mean exactly? SurfaceView currently in use? Sep 21 03:42:10 er, no that wouldnt make sense Sep 21 04:12:15 hi Sep 21 04:12:45 i hate going out Sep 21 04:18:03 CocoStorm, I've never been to the outernet. What's it like? Sep 21 04:18:27 it's awful :( Sep 21 04:19:03 all the chicks are taken if they aren't they're not attractive Sep 21 04:19:19 lol Sep 21 04:22:01 it makes me think well, i had so much more fun coding at home Sep 21 04:22:18 and i'm not the stereotypical programmer Sep 21 05:22:27 SimonVT: I ended up solving it by overriding onMeasure of the parent HSV, and having it call child.measure twice; once to figure out how big it wants to be, and then the second time with the parent HSV's measured width so that the child can resize itself larger to prevent getting clamped. Sep 21 05:22:58 SimonVT: And then I threw it all away and just made the child view bigger initially, lol. Sep 21 05:26:08 why i'm getting "RuntimeException: setParameters failed" when running this code: http://codepad.org/SdEtKpHM ? Sep 21 05:26:24 the logcat is : http://codepad.org/FDRdw2C5 Sep 21 05:45:19 zhangxaochen: which device? Sep 21 05:49:08 HorizonXP, pantech a780L Sep 21 05:52:44 zhangxaochen: I've seen lots of these device-specific issues. What you're doing doesn't seem wrong, but it might just be that there's an error in their code :-/ Sep 21 06:12:43 <^cheeky> hello, i a am using a ListFragment , and i want to use the Lru cache, but is it wise to nitialize the Lru cache class in my activitu and pass it through to the the handlerThread class during the onCreate method of the activity before i call the start() and getLooper() of the handler class Sep 21 06:56:53 <^cheeky> hello if i want to create initial a Lru Cache object , would that be done , in the fragment or in the seperate HanderThread class ? Sep 21 06:57:42 <^cheeky> i have implemented both ways and it works, but i a not sure if either has reduced performance or increased it. Any enlightenment would be greatly appreciated. Sep 21 07:00:38 thx, HorizonXP Sep 21 07:24:06 <^cheeky> i <3 android :) Sep 21 07:39:28 <^cheeky> if i have used Bitmap.Options, so which would make all the bitmaps a certain size . then i can reload the same bitmap without create a new bitmap right Sep 21 07:51:08 an interesting chart http://www.washingtonpost.com/blogs/the-switch/wp/2013/09/20/the-demise-of-blackberry-in-one-chart/ Sep 21 07:51:30 <^cheeky> is it bad , to create memoryCache in a ThraderHandler class ? Sep 21 07:51:48 better use use VaderHandler Sep 21 07:51:55 i have no idea Sep 21 07:51:58 <^cheeky> or would it be better to create the cache and then pass it to the HandlerThread class Sep 21 07:52:08 <^cheeky> *ThreadHandler Sep 21 07:52:10 <^cheeky> sorry Sep 21 07:53:05 <^cheeky> blah ok i guess ill find out later if there are problems that occur, it works so why bother :) Sep 21 08:36:50 Hi, anyone have a example to get JSONArray without array name? / i have found this thread : http://stackoverflow.com/questions/10164741/get-jsonarray-without-array-name/18930052 but din`t make it so far. Sep 21 08:37:02 *made it Sep 21 08:42:32 maybe someone has a clue: adding fragment exactly like in the docs, add to backstack, with replace, however the back key always exits the app. Anything else that needs to be defined ? maybe in manfiest (task?) that the doc does not talk about ? Sep 21 09:17:19 neckro: maybe (JSONArray) cast when you read the stream? Sep 21 09:17:42 neckro: if the top-level object is indeed [] and not {} then I guess it's going to return you an array as the top-level handle Sep 21 09:17:48 just a guess Sep 21 09:21:36 there also exists the simple transformation of "{'foo':" + data + "}" to make it work if you can't get it done otherwise Sep 21 09:23:31 The accepted answer seems to explain it just fine Sep 21 09:24:38 oh, right Sep 21 09:24:51 apparently the key difference is using the JSONArray constructor to parse the content Sep 21 09:26:30 Yep. If it's a json object, you use JSONObject.. If it's a json array, you use JSONArray .. If you don't know how to tell the difference between the two, you look that up first Sep 21 09:26:48 "string.charAt(0) == '['" ? Sep 21 09:27:07 anyway should never happen that you need to work that out. Sep 21 09:27:14 No I mean, if you literally don't know what a json object or json array is Sep 21 09:27:22 oh. Sep 21 09:27:24 Or how it looks Sep 21 09:27:52 You know the data format beforehand :p Sep 21 09:28:20 I kinda thought the API was JSONParser.parse(string) which would return something unknown like JSONObject and since in JS arrays are derived from object and have keys like length ... Sep 21 09:28:39 it follows that cast to JSONArray may be valid thing to do Sep 21 09:28:55 I assume he's using the org.json classes Sep 21 09:29:03 That's literally just pass a string to a constructor Sep 21 09:29:04 Hey, can anyone tell me what exactly happens when someone taps on the app in the "recent apps" list? Sep 21 09:30:01 The app is brought to the foreground Sep 21 09:30:15 so the active activity is just shown? Sep 21 09:30:45 Yep Sep 21 09:31:46 alright. I'll try to figure out how to work with them :) Sep 21 09:31:47 thanks Sep 21 09:31:58 .. work with them? Sep 21 09:33:12 JSON is kinda ugly to work with in java, especially as people leave the structure unmodeled. I'm completely spoiled by how JAXB takes all the XML crap in and converts values to objects and returns a tidy tree out. :-/ Sep 21 09:33:34 I just use GSON Sep 21 09:33:40 not modeling seems to be viewed as an advantage by many, but I definitely don't agree with that. Sep 21 09:33:46 my problem at the moment is: there's a main activity and a login activity. when the network is lost the main activity is still shown i think. if a network reappears it reconnects and when the user opens the app in that state it dies because it tries to show the main activity but it can't because some data is still missing Sep 21 09:34:02 that's at least what I think is the problem at the moment Sep 21 09:34:15 oh, gson supports modeling Sep 21 09:35:11 back, thank you alankila and SimonVT , just came back and now i read your lines. Sep 21 09:35:17 I tell it what pojo to return, it iterates through all fields and maps json values to them Sep 21 09:35:21 Can't be easier Sep 21 09:35:58 String user; would get the value from "user" in a json object Sep 21 09:36:30 yes, I see. It's basically like JAXB would do it, though XML is more involved than JSON Sep 21 09:37:21 which means a ton of bullshit annotations in your classes, unfortunately. Sep 21 09:38:18 i want to display all the gallery images and videos in my app activity Sep 21 09:38:34 gson is smart about it.. "some_value" would get mapped to String someValue; .. You can also create your own "name parsers" or whatever they call it Sep 21 09:38:35 h Sep 21 09:38:56 Or of course just do @SerializedName("some_value") Sep 21 09:38:59 SimonVT: the Matt answer is not working by me Sep 21 09:39:22 The app activity is a simple screen where i want to display the whole gallery images and videos as a grid of thumbnails Sep 21 09:39:50 i`m getting a error, 2 sec... i open up eclipse Sep 21 09:40:02 neckro: Then you need to explain your issue better Sep 21 09:40:14 Preferably with stack traces, code samples and data samples Sep 21 09:41:11 http://stackoverflow.com/questions/10164741/get-jsonarray-without-array-name/18930052 <-- Alec Sep 21 09:45:57 I have no idea what JSONfunctions is or where you're defining result Sep 21 09:46:36 on this line : JSONArray json = new JSONArray(result); eclipse is giving me 2 errors : result cannot be resolved to a variable / duplicate local variable json Sep 21 09:49:03 so don't define json twice in same scope Sep 21 09:52:07 alankila: that`s mean ? - i`m sure is a silly question that i ask you, but i`m totally noob. Can you help me figure out where is first defined ? Sep 21 09:52:50 probably on one of the lines upwards from where the error is triggered. Sep 21 09:54:10 JSONObject json = JSONfunctions.getJSONfromURL("http://192.168.0.104/earthquakes.json"); Sep 21 09:54:19 yep in here Sep 21 09:54:33 i hear of namespaces in c++ and other languages. are the imports the namespaces in Java? Sep 21 09:54:51 BullShark`: they are called packages, but serve a similar function. Sep 21 09:56:14 the import only affects compilation, and says "Foo" here is an alias for name x.y.z.Foo. Sep 21 09:56:28 but the class is usable without import just by using the fully qualified name Sep 21 09:56:55 also it is considered a poor form to import x.y.z.*. Sep 21 09:57:14 alankila :: do i understand this correctly? the #include from C means a namespace because header.h could have a function named the same in a different header or maybe it wasn't introduced until c++? Sep 21 09:57:29 there are no namespaces in C. Sep 21 09:58:03 so you can't make that claim at all. It just means that a particular functions, variables or defines in that header are now accessible because the compiler has a definition for them. Sep 21 09:58:47 alankila :: i used to do that import x.y.z.* some times before i knew of IDEs and the professor actually had us coding in notepad in windows Sep 21 10:00:06 well, * is handy but in general it is not future-proof Sep 21 10:00:20 add a new class to a package and if it conflicts with another there may be problems. Sep 21 10:01:05 alankila :: conflicts by having a class with the same name? Sep 21 10:01:17 morning ! Sep 21 10:01:26 it means the compiler may decide that Foo, previously in b.Foo, is not a.Foo because a.* is imported before b.* Sep 21 10:01:33 is not = is now Sep 21 10:02:01 then you get errors that can be very confusing to solve because you get error messages like "method foo(Bar) is not applicable to type foo(Bar)" Sep 21 10:02:39 i had never stopped to think of the importance of the order of imports Sep 21 10:02:58 alankila: i rename it to json1 and only result cannot be resolved to a variable remains. JSONArray json1 = new JSONArray(result); // for(int i=0;i map = new HashMap(); // JSONObject e = json1.getJSONObject(i); // map.put("id", String.valueOf(i)); // map.put("name", "Earthquake name:" + e.getString("eqid")); Sep 21 10:03:15 mylist.add(map); Sep 21 10:03:46 neckro :: pastebin. it's not very readable and it spams the channel. Sep 21 10:04:46 neckro: I also don't really understand the error message you are having. Sep 21 10:05:15 My guess is you copypasted 'result' from the source and you have no such variable name Sep 21 10:05:26 from the stackoverflow sourcecode that is Sep 21 10:06:04 just a sec. i will use pastbin Sep 21 10:06:19 since your "result" originates from some web resource, you should write some code to perform a HTTP request and fetch it Sep 21 10:09:29 http://pastebin.com/SS8r2m5L Sep 21 10:14:11 I imagine JSONfunctions is some class of yours Sep 21 10:14:15 how about you make that return JSONArray Sep 21 10:16:54 http://pastebin.com/9d4fnKpK here is JSONfunctions Sep 21 10:17:50 are you aware of a thing called NetworkOnMainThreadException? Sep 21 10:17:59 you'll be getting that Sep 21 10:19:53 neckro: but anyway since this function does some crap to get the json as string and then hands it to a JSONObject, it would be reasonable to change that. Sep 21 10:20:10 Hey, so does anyone know of any similar views to the iCarouselTypeWheel in this library for iOS(https://github.com/nicklockwood/iCarousel) in Android? Sep 21 10:20:15 the next thing you must do is to fetch the json by asynctask or service, maybe learn how to cache it for disk and not fetch it all the time Sep 21 10:20:20 it's basically a spinning circular selector Sep 21 10:23:58 <^cheeky> hello to use DiskLru , i need to create my own DiskLru cache class ? Sep 21 10:26:41 alankila: do you know also how can i change it ? i have looked over internet a example on how can i get JSONArray without a name because the json i`m using is like this earthquake json (without array name) Sep 21 10:28:13 neckro: change type of jArray to JSONArray, call the JSONArray constructor instead of JSONObject constructor, change the method to return JSONArray instead of JSONObject Sep 21 10:28:28 <^cheeky> i am following the android dev guide on displaying images section , but the android source link is broken, i confused as creating the LruCache Sep 21 10:28:36 <^cheeky> *DiskLru Sep 21 10:29:35 alankila: thank you, i will try Sep 21 11:02:34 one simple question Sep 21 11:03:05 do actionbar sherlock implement all things from normal action bar in lower versions? Sep 21 11:03:37 the only difference is in imports? Sep 21 11:08:48 anyone who has experienced Unknown SSL protocol while syncing? I created ~/.netrc and set my global name according to tutorial as git-myemail Sep 21 11:09:36 I am syncing PolishBloodProject from git which has some source on googlesource Sep 21 11:10:28 in other words it is AOSP with some modules, drivers, blobs, etc for my device. Sep 21 11:13:18 Hello Sep 21 11:13:39 my iPhone is iPodtouch(4th) Sep 21 11:14:06 Xcode 5.0 has not my iPodtouch(4th) Sep 21 11:14:29 Do I buy the new iPod touch or siuator? Sep 21 11:14:41 simulator? Sep 21 11:17:06 .. That was out of place. Sep 21 11:28:36 so, blackberry developer conference... worth paying the train fare to go, or not? This is after they gave me a free ticket - actually 2, one directly, one via another conference I went to... Sep 21 11:29:16 They gave me a free tablet and I still can't imagine spending the time to go to any of their conferences. Sep 21 11:29:38 Y'know, after they announced their tablet dreams were dead along with their business. Sep 21 11:29:51 oh, they gave me a free tablet as well... I kept the neoprene sleeve for my N7, sold the rest :) Sep 21 11:30:07 Yeah, I don't think anyone wants to buy my playbook. Sep 21 11:30:11 The sleeve is nice though. Sep 21 11:30:24 it fits the first-gen N7 perfectly, the second-gen is a bit tall, so it's tight Sep 21 11:30:41 I just wish it were blue on the outside. Sep 21 11:30:47 how can i set the camera focal length manually? Sep 21 11:31:15 there are guys in the street here who buy new/second-hand phones/tablets/gaming devices/etc - even if you only pick up $75, say, it's still cash Sep 21 11:32:34 the trick was to find the guy who didn't know what a playbook was, so would buy it thinking it might be an unknown Chinese tablet brand or something :) Sep 21 11:32:46 I live in northern Idaho. No such people exist on my streets. Sep 21 11:33:05 anyone knows? Sep 21 11:33:12 In fact, if you see a person on the street, they're probably lost, hungry, half-dead, and might have rabies. Sep 21 11:33:24 'Cause there's nothing on the streets other than cars, deer, and moose otherwise. Sep 21 11:33:41 And occasionally a bear and/or dead squirrel. Sep 21 11:33:51 I just figure dead squirrels are a staple of roads everywhere though. Sep 21 11:34:02 I live in Hong Kong... rather different. Lots of cockroaches and the odd dead rat though - extremely urban Sep 21 11:34:19 So dead almost-squirrels Sep 21 11:34:37 RIP in peace stack overflow... Sep 21 11:34:52 ? Sep 21 11:35:06 O_o Sep 21 11:35:09 Rest in peace in peace? Sep 21 11:35:10 SO isn't dead. Sep 21 11:35:11 rest in peace in peace? Sep 21 11:35:20 * Nilium high-fives Leeds. Sep 21 11:35:30 down low! Sep 21 11:35:40 NO. Last guy who said that tricked me. Sep 21 11:35:42 Brian|CS: explain please? Sep 21 11:35:48 dammit... Sep 21 11:35:51 lol Sep 21 11:35:52 it's been down Sep 21 11:35:53 for like Sep 21 11:35:55 an hour probably Sep 21 11:35:56 and like Sep 21 11:36:01 there is one smallthing I need to know Sep 21 11:36:06 although maybe someone here knows Sep 21 11:36:06 looks up tome Sep 21 11:36:10 can you put a layout at an angle? Sep 21 11:36:12 It's up for me. Sep 21 11:36:25 http://www.downforeveryoneorjustme.com/stackoverflow.com etc. Sep 21 11:36:34 maybe we got our IP blocked Sep 21 11:36:40 xD Sep 21 11:36:43 Maybe your DNS is crapping itself. Sep 21 11:36:50 Too many requests to SO Sep 21 11:36:50 well Sep 21 11:36:55 I'm at a HUGE hackathon Sep 21 11:36:59 ~1200 partipants Sep 21 11:37:00 so like Sep 21 11:37:05 we probably just made too many requests lulz Sep 21 11:37:09 can someone help me then? Sep 21 11:37:15 I want to know if I can put a view at an angle Sep 21 11:37:17 view/layout Sep 21 11:37:42 Brian|CS, 198.252.206.16 Sep 21 11:38:13 Josh-, If they're blocking our IP due to too many requests it's not gonna work to use an IP Sep 21 11:38:14 Does the view have to be functional once at an angle? Sep 21 11:38:15 it's not a DNS issue Sep 21 11:38:27 uhh, it would be preferable if it was functional Sep 21 11:39:51 Tried an animation? Sep 21 11:40:24 I'd need the property to animate though, would Inot? Sep 21 11:40:45 Property? Sep 21 11:40:54 the property to change the angle? Sep 21 11:40:55 O.o Sep 21 11:41:27 * Nilium stares at him like he's not thinking straight. Sep 21 11:41:36 oh Sep 21 11:41:37 you mean like Sep 21 11:41:38 Nevermind that you want to rotate a view. Sep 21 11:41:39 just use animations Sep 21 11:41:41 and pivots? Sep 21 11:41:44 hmm Sep 21 11:41:48 I thought about that Sep 21 11:41:57 idk why but for some reason it seemed incorrect when i first considered it Sep 21 11:42:02 maybe it's the red bull insanity Sep 21 11:42:03 :S Sep 21 11:43:32 I suspect that caffeine and sugar average to lowering mental performance. Sep 21 11:43:44 so I'd definitely suggest going cold turkey on them. Sep 21 11:49:54 I'd suggest drinking more Sep 21 11:50:54 Bro Sep 21 11:51:00 I'm drinkin redbull and I take amphetamines for my ADHD Sep 21 11:51:06 I'm literally as mentally aware as possible right now Sep 21 11:51:06 lol Sep 21 11:51:40 And at all other times you're probably not. :-p Sep 21 11:52:41 You said "bro," I have no good opinions of your mental capacity right now. Sep 21 11:55:24 So I'm late to the game and just changed from targetSdk=10, to 18, I noticed some devices don't have a menu button making my menu inaccessable. Is the correct way to use ActionBarActivity even tough all I need to have is the common menu button? Sep 21 12:03:53 Are your menus created in some out of the ordinary way? Sep 21 12:15:07 So there's that item in reddit/r/android where people noticed by a black-box hardware benchmark that iPhone 5 can respond to a touch event visibly by flashing screen in 50 ms, whereas every android and windows phone device took > 100 ms to respond Sep 21 12:15:21 do we have any clue as to why iPhone touchscreens are faster? Sep 21 12:16:02 Would really depend on the device it was tested on wouldn't it be? Sep 21 12:16:03 the benchmark was done by a hardware device that hit the screen with an artificial finger and timed until it could detect the screen background flash Sep 21 12:16:44 of course. But apple has either better touchscreens or more advanced drivers with them Sep 21 12:17:23 I think this has been fought by multiples companies that have been trying to bring hardware accelerated touch events in to the source Sep 21 12:17:40 Tegra is the main one I remember Sep 21 12:18:37 Anyway, this is the article announcing the results: http://appglimpse.com/blog/touchmarks-i-smart-phone-touch-screen-latencies/ Sep 21 12:19:07 lol Sep 21 12:19:08 fuck me Sep 21 12:19:15 I'm going to end up writing my own view recycling class Sep 21 12:19:16 lol Sep 21 12:19:18 GG my brain Sep 21 12:19:42 I need the romainguy right abut now Sep 21 12:19:43 ol Sep 21 12:19:44 lol* Sep 21 12:20:11 because 50 ms is an extremely long interval for a processor point of view, there's no argument I can accept about "software layers" or "dalvik vs. native code"... 50 ms is a long, long time. I'm suspecting this is a touchscreen hardware or driver issue. Sep 21 12:20:53 Nilium: Not really, using the onCreateOptionsMenu but the soft menu button does not seem to appear in android devices without a real menu button Sep 21 12:20:55 most likely the capacitive readings have to be stabilized for a time so you get a good estimate for the finger position. It may be that apple's hardware simply returns the result after collecting half the number of measurements. Sep 21 12:21:11 hi, is there a way to replace framework-res.apk without having the key for signing Sep 21 12:21:20 I want to replace the default wallpaper Sep 21 12:21:32 Should be in the actionbar, unless you hid it. Sep 21 12:21:47 =/ Sep 21 12:28:26 Hi guys Sep 21 12:29:38 wow Sep 21 12:29:40 I'm so dumb Sep 21 12:29:42 SOOOO dumb Sep 21 12:29:42 lol Sep 21 12:29:44 that sollution Sep 21 12:29:45 if this works Sep 21 12:29:47 I'm going to cry Sep 21 12:29:57 #hackathons #nosleep #caffeine #dies Sep 21 12:30:33 I'm implementing a gridview to show pictures taken from camera or picked from gallery. My Adapter has a constructor with two args, a Context and a List with list of absolute path images. I attached this adapter to my gridview, but... How can I call a kind of "refresh" method each time user takes new photo? In order to add this new photo to the actual gridview? Sep 21 12:30:33 * Nilium doesn't like that hashtags caught on Sep 21 12:34:37 I also don't like short lines. We old grumpy men, too old for the twitter generation. Sep 21 12:35:22 <^cheeky> Sepho: hey, you need to set the the adapter again Sep 21 12:35:51 just call setAdapter again? Sep 21 12:36:58 <^cheeky> well i a assuming after the data has been modified Sep 21 12:38:09 erm, don't you notifydatasetchanged? Sep 21 12:39:48 You do Sep 21 12:48:09 <^cheeky> hmm, maybe i a confused, because, list .. is the data behind a gridview .. and its not using a listView .. Sep 21 12:51:08 <^cheeky> Trying to implement the DiskCaching is really hard :( Sep 21 13:35:07 Man Sep 21 13:35:10 I wanna open source this bitch so bad Sep 21 13:35:11 if this works Sep 21 13:35:15 it's so stupidly genius Sep 21 13:46:45 Brian|CS what is it Sep 21 13:47:07 just a really simple animation to replace the default fragment transactions Sep 21 13:47:12 but it creates a really interesting visual effect Sep 21 13:47:14 idk Sep 21 13:47:20 i'll explain more later/not this weekend when my brain isf ree Sep 21 13:47:21 lol Sep 21 13:47:37 lol Sep 21 14:06:58 Guys Sep 21 14:07:03 who here knows shit about objectAnimator Sep 21 14:15:16 When in the fragment lifecycle does a view have dimensions Sep 21 14:21:39 That's not part of the fragment lifecycle Sep 21 14:50:06 LD_PRELOAD isn't handled in Android is it? Sep 21 15:10:26 does anybody know how to achieve the equivalent of shmget in android using the ashmem interface? Sep 21 15:17:15 allfro, Is shmget similar to just opening a file in shm and mmaping it? Sep 21 15:17:44 Sonicadvance1: don't know entirely Sep 21 15:17:51 hah Sep 21 15:18:00 I'm looking at examples that involve two pieces IPC binder and the ashmem_* API Sep 21 15:18:01 lemme grab a code example you might be able to use Sep 21 15:18:26 apparently you need a server-side service to get shared memory segments working properly between processes? Sep 21 15:18:35 https://code.google.com/p/dolphin-emu/source/browse/Source/Core/Common/Src/MemArena.cpp#54 Sep 21 15:19:02 Uses ashmem in Android and /dev/shm in unix Sep 21 15:19:18 Sonicadvance1: you wouldn't happen to have a C example would you? Sep 21 15:19:23 That is C Sep 21 15:19:42 Only difference is one function is in a namespace Sep 21 15:20:39 C++ is painful to read Sep 21 15:20:59 The only thing C++ in that is void MemArena::GrabLowMemSpace(size_t size) Sep 21 15:22:43 Sonicadvance1: how would you reimplement a shmget-like interface with this code? Sep 21 15:25:34 I'm not entirely sure, shmget returns a identifier, but does it work the same as a file descriptor? Sep 21 15:26:11 no Sep 21 15:26:17 it returns a memory segment identifier Sep 21 15:26:35 i dunno man Sep 21 15:26:39 shmat looks like Sep 21 15:26:44 i really dunno the inner workings of the two Sep 21 15:26:55 i'm trying to get postgres server running on this damn android device Sep 21 15:27:12 semaphores and shared memory APIs are stripped Sep 21 15:27:15 so i have to find a solution Sep 21 15:27:42 seems one would use the identifier returned by shmget to grab a memory space with shmat Sep 21 15:39:26 Is there any predefined view to set "category title" such as "Name" and "Organitazion" on this screen? ( http://goo.gl/HHzzps ). I need that horizontal separator line. Or should I build my own? Sep 21 15:39:44 hey guys I am playing with coding my first app. The first thign I am trying to do is request GPS location and am following the info on this page: http://developer.android.com/guide/topics/location/strategies.html. However the locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener); line is giving me: syntax error on tokens, ConstructerHeaderName expected instead Sep 21 15:39:51 http://ideone.com/HT0BfX is my entire mainActivity Sep 21 15:41:58 <|0xD34D|> Sepho: just add a generic View to your layout, set the width to match_parent and the height to something like 2dp and set the background to the color you want. Sep 21 15:42:31 thanks Sep 21 15:42:53 <|0xD34D|> np, that's the way I've always done horizontal lines. Sep 21 15:42:55 Allright, I am now going crazy. Sep 21 15:43:22 KxTwo: you are not in a method body there Sep 21 15:43:50 I think I will create a separate layout file for use it as include elemnt Sep 21 15:44:04 I have targetSdk 18, and want to add a menu item to the action bar, (the one that should show up when pressing the menu button in android 2.3) Sep 21 15:44:40 <|0xD34D|> Sepho: that would be the ideal way to do it so you can reuse it throughout your main layout Sep 21 15:44:49 phasip, it works the same Sep 21 15:45:08 |0xD34D| but, can I create a layout file with View element as root element? Sep 21 15:45:18 alankila, I just saw that took, would putting it inside of oncreate? Sep 21 15:45:55 KxTwo: that's not English. But you need to have statements to occur inside methods, not in class body. Sep 21 15:46:13 <|0xD34D|> Sepho: just make sure you include the android namespace in it Sep 21 15:46:16 But if I have android build target 10, It won't compile due to errors. And if I have build target 18, nothing shows up on the action bar, even tough I have the extra namespace and app:showAsAction="always" Sep 21 15:50:58 thanks |0xD34D| :) Sep 21 15:52:04 Hi Sep 21 15:52:21 I get an red line under R. and i dont have importet R.. Sep 21 15:52:48 peyam you dont need to import R file explicity Sep 21 15:52:55 try to clean project Sep 21 15:53:10 I have cleaned it many times Sep 21 15:53:12 http://paste.ubuntu.com/6137109/ Sep 21 15:53:19 I works on my second computer.. Sep 21 15:53:22 not on this one Sep 21 15:54:00 you get that error on every R. reference? Sep 21 15:54:07 try to delete R file and clean again Sep 21 15:54:22 yes Sep 21 15:54:29 R file? Sep 21 15:54:33 yes Sep 21 15:55:26 where is it Sep 21 15:56:31 under gen directory Sep 21 15:56:59 there isnt any Sep 21 15:57:14 well.. thats the problem then Sep 21 15:57:30 are you sure your manifest file has no errors? Sep 21 15:57:33 Are you using Eclipse? Does ir report any Errors in the Problems Tab? Sep 21 15:57:48 no errors im 100% Sep 21 15:57:58 maybe it has a minimumSdk target that you have not installed on that computer Sep 21 15:58:05 You are. Is Eclipse as certain as you? Sep 21 15:58:15 kakazza, I havent run it yet. It includes error in the editor Sep 21 15:58:33 Sepho, I wrote it for 4.2.2 and I have 4.2.2 installed Sep 21 15:58:44 You don't need to run it, does Eclipse report anything other than the missing R file? Sep 21 15:58:48 Errors in XMLs, etc Sep 21 15:59:13 kakazza, Description Resource Path Location Type Sep 21 15:59:13 R cannot be resolved to a variable OpenedClass.java /TheNewBoston/src/com/thenewboston/travis line 45 Java Problem Sep 21 15:59:21 can you paste your manifest? Sep 21 15:59:31 You can also try to explicitly import your R file. Sep 21 15:59:47 Sepho, yes. wait Sep 21 16:00:08 But since you don't have one, restart Eclipse. It's dumb, but sometimes helps. Sep 21 16:01:02 Sepho, http://pastebin.com/r8WRiZyH Sep 21 16:01:13 kakazza, done it 20 times Sep 21 16:01:58 it's usually easier to clean the project Sep 21 16:02:08 restarting eclipse is rarely necessary in fact Sep 21 16:02:11 alankila, done it 100 times Sep 21 16:02:19 sometimes it gets wedged when failing to build R for some reason Sep 21 16:02:30 hey peeps .. so .. asmack any experience getting that to connect? Sep 21 16:02:43 i have asmack-android-17-0.8.3.jar Sep 21 16:02:54 i have no idea whats with the version codes Sep 21 16:02:56 anyway I guess you aren't importing R Sep 21 16:03:04 pfn: you'd better implement android backup service for qirc, it's very annoying add user and server info after reset Sep 21 16:04:38 very strange Sep 21 16:04:46 * lemonxah hoping for someone with experience with asmack Sep 21 16:09:08 hopes shattered Sep 21 16:10:29 what time is it over there? Sep 21 16:10:38 peyam you have android froyo as minSdkVersion Sep 21 16:10:50 2.2 yes Sep 21 16:10:52 is it installed on your computer? Sep 21 16:10:54 yes Sep 21 16:21:06 gdrc, on the low pri list Sep 21 16:21:14 stop resetting :p Sep 21 16:21:40 for that matter, why are you resetting? Sep 21 16:21:59 try different rom on my sgs2 Sep 21 16:23:15 use tibu Sep 21 16:25:04 I used to Sep 21 16:28:05 <^cheeky> is it really necessary to use DiskLru, or could cacheing images and preloading them work Sep 21 16:32:03 <^cheeky> do i have to be root or something to write acess to the /data folder ? Sep 21 16:32:24 <^cheeky> coz every time i try to access it says filenotfoundexception Sep 21 16:32:40 <^cheeky> even though my log file says the file was created Sep 21 16:33:22 <|0xD34D|> system is the user and group for /data Sep 21 16:33:50 <|0xD34D|> so you either need to be the system user or root to do anything in there, which is a good thing Sep 21 16:34:14 <^cheeky> well then where would i create my DiskLru Cache directory ? Sep 21 16:35:20 <|0xD34D|> in your apps data directory Sep 21 16:35:29 |0xD34D|: just check file permissions with adb shell or similar and you will see Sep 21 16:35:50 <|0xD34D|> bluesceada: why you telling me? Sep 21 16:35:56 <|0xD34D|> that's how I saw it's system:system Sep 21 16:37:06 ah ok Sep 21 16:37:10 |0xD34D|: sry then Sep 21 16:37:15 probably you need root then Sep 21 16:37:21 <|0xD34D|> I'm not the one that wants write access to /data Sep 21 16:37:23 because the apps all have their own group/user Sep 21 16:37:38 <^cheeky> well when i do getActivity.getCacheDir().getPath() == data/data/packagname/cache/"DirectoryName i specified " Sep 21 16:49:25 asmack connecting now but its so slow? Sep 21 16:49:26 :/ Sep 21 16:49:33 wow http://www.kickstarter.com/projects/556341540/pressy-the-almighty-android-button Sep 21 16:52:24 so... I put something in my headphone jack. And that means I can't use it anymore Sep 21 16:52:29 that's... a problem Sep 21 16:52:43 not for me Sep 21 16:53:01 to me headphone jack is as useful as my ears Sep 21 17:02:10 Anyone ever run apitrace in Android? :/ Sep 21 17:04:34 One simple question. I've an activity with many EditText's on it. When I launch the activity, the first edittext automatically gains focus and keyboard appears. How can I avoid this? I don't wanna shoy keyboard unless user touch on any editText Sep 21 17:04:39 <^cheeky> so in the Android system you have too root your device to cache data into your cache directory ? Sep 21 17:06:05 ^cheeky: nope Sep 21 17:06:14 unless you want to do some weird things Sep 21 17:06:25 the system cache is *system's* Sep 21 17:06:42 <^cheeky> p_l: no not at all iam trying to implement , diskCaching LRU .. what ever .. Sep 21 17:06:50 sep is there some sort of focus setting on controls? Sep 21 17:07:16 <^cheeky> Contect.getCacheDir() is giving back the systems cache ? Sep 21 17:08:03 <^cheeky> p_l: *context.gatCacheDir() == your apps cach dir right /? Sep 21 17:08:16 Sepho: Sep 21 17:08:40 found a solution! Sep 21 17:09:26 <^cheeky> p_l: when i do contxt.getCacheDir() , it spits out == data/data/myappName/cache/myNewDirectory Sep 21 17:09:55 <^cheeky> context == getActivity(), since i a using it in a fragment . Sep 21 17:10:06 what was solution Sepho Sep 21 17:10:23 it should be /data/data/package/cache, ^cheeky Sep 21 17:10:37 set android:windowSoftInputMode="stateHidden" on my manifest file, inside my activity section Sep 21 17:11:10 cool Sep 21 17:11:39 <^cheeky> gdrc: yes thats what i am getting ... Sep 21 17:12:00 perfect Sep 21 17:12:23 <^cheeky> gdrc: wait .. cahce, newdirectory name ? Sep 21 17:12:47 <^cheeky> gdrc: why a "," ? instead of "/" Sep 21 17:13:12 <^cheeky> data/data/package/cache, member:%5Echeeky Sep 21 17:13:17 no no Sep 21 17:13:22 forget the , Sep 21 17:13:29 <^cheeky> ok Sep 21 17:13:56 <^cheeky> data/data/package/cache/userDirectory Sep 21 17:14:27 <^cheeky> i get it but still i dont know why it said open failed ENOENT(no such file or directory) Sep 21 17:14:34 why userDirectory ? Sep 21 17:15:12 <^cheeky> i dunno more organised Sep 21 17:15:20 <^cheeky> i am gonna remove will see Sep 21 17:16:45 <^cheeky> gdrc: i did it following the android dev document, trying to follow the caching bitmaps tutorial Sep 21 17:17:37 may I ask what are you trying to do? Sep 21 17:18:20 <^cheeky> use DiskLRUCache Sep 21 17:18:32 yes but to do what? Sep 21 17:19:19 <^cheeky> load the images from DISK , when the ones in my memory cache go missing Sep 21 17:19:37 Is there any way to avoid an edittext to gain focus on activity starts? I could hide keyboard, but edittext has still focus gained Sep 21 17:19:52 <^cheeky> gdrc: http://developer.android.com/training/displaying-bitmaps/cache-bitmap.html Sep 21 17:20:24 ^cheeky: gotta go now, btw use picasso Sep 21 17:20:48 Sepho, declare something else as focusable before the edittext Sep 21 17:21:08 why this code http://codepad.org/2ZUKkw6X makes my phone not responding? Sep 21 17:22:30 <^cheeky> picasso ... Sep 21 17:22:31 zhangxaochen, because it sucks Sep 21 17:22:34 nice, thanks pfn ! Sep 21 17:22:52 pfn, what's your suggestion? Sep 21 17:23:12 zhangxaochen, don't load and write images from the main thread Sep 21 17:23:48 pfn, you mean it consumes too much time? Sep 21 17:24:26 i'm just trying to save it, but seems that takes infinite time.... Sep 21 17:26:05 it shouldn't take infinite time, but then again, dunno what exactly is happening since you don't have a stack Sep 21 17:28:05 So now I got the compatibility ActionBarActivity working. But if I use android 2.3 and a device that has a menu button, the menu button does nothing. Do I have to implement reacting to the menu button myself or am I doing something wrong? Sep 21 17:28:53 menu button brings up menu if you have overflow Sep 21 17:28:53 if you don't, then it won't Sep 21 17:29:01 nothing special needs to be done Sep 21 17:32:35 I guess I should do nothing then. Sep 21 17:41:46 hey Sep 21 17:41:55 i have activity, where main layout is scrollView Sep 21 17:42:11 and in this activity i can run another activity Sep 21 17:42:34 when i finish this new running activity, i want to move scrollview to the last position Sep 21 17:42:51 i tried: Sep 21 17:42:53 scroll.post( new Runnable() { @Override public void run() { scroll.scrollTo( 0 , x ); } }); Sep 21 17:43:01 in onResume() Sep 21 17:43:25 but i looks like my scrollview was moved to wanted position, and also moved again to the top Sep 21 17:43:32 i don't know what's the problem... Sep 21 18:10:37 Hi all I am trying to dynamically provide geolocation services to test speed Sep 21 18:10:43 but the speed remains at 0 Sep 21 18:12:53 <^cheeky> gdrc: omg , it was y key i was passing in it had a "\" lol Sep 21 18:21:02 can some one point me to an indept tutorial for locationlistener, specifically writing code to get location from gps. I have googled and googled and cannot get any provided code to work. Sep 21 18:21:18 KxTwo, learn java first Sep 21 18:21:25 KxTwo, "recipes" do not work Sep 21 18:22:09 KxTwo: https://code.google.com/p/krvarma-android-samples/source/browse/#svn%2Ftrunk%2FSpeedDemo%2Fres Sep 21 18:23:09 pfn: please can you help me out, I need to know how to simulate speed, I am currently simulating location, via a script that connects to the avd Sep 21 18:23:43 I have learned java Sep 21 18:23:50 KxTwo, clearly you haven't Sep 21 18:23:56 right, if you say so. Sep 21 18:31:35 bjhaid_: you simulate apropriate path, you can't provide speed iirc Sep 21 18:32:24 hi guys Sep 21 18:32:35 anyone have experience with mobclix? Sep 21 18:34:37 p_1: so speed cannot be simulated?? Sep 21 18:36:49 bjhaid_: velocity is derivative of distance by time. Just simulate *changing* the locations apropriately Sep 21 18:54:11 However, bitmap scaling can result in blurry or pixelated bitmaps, which you might notice in the above screenshots. Sep 21 18:54:41 http://developer.android.com/guide/practices/screens_support.html Sep 21 18:55:05 Could you see blurry image here : http://developer.android.com/images/screens_support/density-test-good.png Sep 21 18:55:25 bluesm_ I mean does they means the obvious problem with scaling up images Sep 21 18:55:41 bluesm_ Or with scaling down you can also experience blurry (but not pixelated ) image? Sep 21 18:55:56 ? Sep 21 18:57:38 Leeds are you talking to yourself? Sep 21 18:58:44 ^cheeky: did you solve? Sep 21 18:59:15 Leeds: Not exactly... I've copied those message ... Without deleting author .... Sep 21 19:04:57 Where is the place for bug/proposals to android docs ? Sep 21 19:08:20 <^cheeky> gdrc: yessirrrr !!!! Sep 21 19:08:41 so what was the problem? Sep 21 19:08:59 <^cheeky> gdrc: its tough trying to wrap my head around all this, so much to learn and iam so slow !!!! Sep 21 19:09:39 ? Sep 21 19:09:44 I am Sorry, I am at the beginning to learn... Sep 21 19:09:45 I wont to sort some Data. Sep 21 19:09:45 At the moment the data is stored in a Map Sep 21 19:09:45 I know, I cant sort Data in Map by value Sep 21 19:09:45 I calculte a Soccer Schedule like that: Sep 21 19:09:45 TeamName, G+, G-, P Sep 21 19:09:45 I want to sort first by P, then by G+ then by G- Sep 21 19:09:46 Every k,v is in a Map like this: Sep 21 19:09:46 map.put(e.getString("team_id"), 0); Sep 21 19:09:47 map.put(e.getString("team_id")+"G+", 0); Sep 21 19:09:47 map.put(e.getString("team_id")+"G-", 0); Sep 21 19:09:48 How can I sort it by the easiest way? Sep 21 19:09:48 Put it in a Mulitdimensional Array? Sep 21 19:10:33 <^cheeky> gdrc: well it was with how i designed my function and class i was using the url as the key to the Bitmap retreived, so when i was passing in the key .. the url had "/" hehe, so it couldnt find anything lol stupid me :/ Sep 21 19:11:25 dot8: I'm noon like you but I would like you to know that it is better to put your code in the services like gists.github.com Sep 21 19:11:52 <^cheeky> dot8: hey , put your code @ www.pastbin.com <--- dunno the site off hand, just google for pastbin and paste your code there and paste link here :) Sep 21 19:11:54 dot8: https://gist.github.com Sep 21 19:12:41 ix.io Sep 21 19:14:01 here is my Code http://pastebin.com/MiADd31H Sep 21 19:16:00 in 55 at pastebin, you can see that I put all Data together, that works fine, but it is unsorted Sep 21 19:16:13 sorry, line 55 Sep 21 19:17:34 Can somebody shed some light on why there's Build Tools 18, 18.0.1, 18.1 all at the same time? Sep 21 19:17:41 dot8: your data structure is fucked Sep 21 19:18:05 start doing map.put(e.getString("team_id"), new TeamEntry(0, 0, 0)) with the 3 values being your G+, G- and P Sep 21 19:18:36 and then either define IComparable for that class or get the hashmap values or whatever into a collection and use Collections.sort Sep 21 19:19:05 anyone tried using native bluetooth connections or know where there is good information on the subject? Sep 21 19:19:29 also I think it was just Comparable. I can't get over java not putting I before interfaces because they're different from classes... Sep 21 19:21:17 to be honest I think TeamEntry must also have the team id. It just makes everything easier. Sep 21 19:21:35 the hashmap is maybe an acceleration structure making it fast and easy to find that particular entry if you need it but the entry must hold that bit of info as well Sep 21 19:25:54 alankila: I try to understand this and work on it Sep 21 19:26:04 dot8: just collect all related data into one object Sep 21 19:26:17 and I don't mean hashmap with bunch of different keys. Sep 21 19:26:48 that's a loose collection without the kind of cohesion I talk about. One object that represents the team. Basic modeling. Sep 21 19:27:17 once you have that, you can design sorting functions to arrange them in different order quite naturally. Sep 21 19:33:57 <^cheeky> does one have to use soft References and hashset to implement Bitmap Re-use ? Sep 21 19:38:53 No Sep 21 19:38:57 https://developer.android.com/training/displaying-bitmaps/cache-bitmap.html Sep 21 19:39:56 There's also https://github.com/chrisbanes/Android-BitmapCache and the likes. Sep 21 19:41:34 <^cheeky> kakazza: hii, no i already implemented that and also the disk Cache took me a while .. but i think its working ... but more of this https://developer.android.com/training/displaying-bitmaps/manage-memory.html Sep 21 19:42:14 <^cheeky> the idea i am trying to follow is from a devbytes segment on Bitmap Allocation Sep 21 19:42:57 <^cheeky> creating a bitmap sanbox with the same height and width and then loading it in blaah i dunno ill keep mucking around with it Sep 21 19:45:14 oh waddya know Sep 21 19:45:21 WeakReferences no longer recommended Sep 21 19:47:36 Hi all. I have a n00b issue. I want to learn and try developing simple things for android. I have installed the ADT and have made a very dummy application with a full screen activity window and 2 buttons that do nothing at all. So far so good, have compiled an .apk file and installed iit onto a noname chinese android device. Now I have downloaded some source code for an existing android app... Sep 21 19:48:13 ... I want to build it as is, generate an .apk file and install that. This part is not working. Sep 21 19:49:48 I know there are many things that can go wrong... but why must the process of simply repackaging/recompiling a properly working app, be so difficult? Sep 21 19:50:00 <^cheeky> sabton: yeah been googling and reading all sorts of examples .. i thought that i came across what you mentioned, confusing Sep 21 19:50:41 ^cheeky i am reading this article, very interesting! now: https://developer.android.com/training/displaying-bitmaps/cache-bitmap.html Sep 21 19:50:57 (2 years ago i implemented my own bitmap cache using WeakReferences) Sep 21 19:51:30 <^cheeky> sabton: i just implemented that on my practice code hehe, i think its working but now i want to re-use the bitmap Sep 21 19:51:34 <^cheeky> hold on Sep 21 19:51:59 <^cheeky> http://www.youtube.com/watch?v=rsQet4nBVi8 Sep 21 19:52:08 <^cheeky> Chet HAase !!!!!1 Sep 21 19:52:09 <^cheeky> heh Sep 21 19:52:13 alankila: something like this? PAge 13? http://michael.hahsler.net/JAVA/pdf/container.pdf Sep 21 19:52:30 ^cheeky: please pretend to be an intelligent person, even if you have to fake it. Sep 21 19:52:56 pretending is faking Sep 21 19:53:05 not a german speaker. Not sure where you are going with this. Sep 21 19:53:53 <^cheeky> pragma-: see you just confused me, so i am just going to stop, i dunno what i did for you to think iam !intelligent Sep 21 19:57:25 he means pretend the faking part ;) Sep 21 20:03:31 cool, another +1 for genymotion; i left it running overnight by mistake and i didn't wake up to a melting machine with fans spinning and cpu @ 100% Sep 21 20:04:09 I leave my emus running 24/7 Sep 21 20:04:11 * pfn shrugs Sep 21 20:08:08 hey michaelnovakjr haven't seen you in a while Sep 21 20:12:57 i am inside of a Service Sep 21 20:14:21 how do I show the soft keyboard manually? Sep 21 20:15:59 ok soz .. as i was saying inside of a service and i call this.getContentResolver().insert Sep 21 20:16:10 but my contentprovider is not being hit? Sep 21 20:16:12 any ideas Sep 21 20:25:36 lemonxah maybe the authority is wrong Sep 21 20:25:52 hwo do i check that? Sep 21 20:26:01 i dont set the authority in the service Sep 21 20:26:03 manifest and your content provider :) Sep 21 20:26:13 both those are setup propper Sep 21 20:26:18 lemonxah but you rae building a uri Sep 21 20:26:48 or maybe your urimatcher is just falling through Sep 21 20:26:49 oh yeah Sep 21 20:26:52 yeah they are the same Sep 21 20:27:02 my manifest authority and the one in the URI Sep 21 20:31:14 read logcat Sep 21 20:31:25 it tells you why if your service doesn't get hit Sep 21 20:31:31 either that or your uri matcher fails you silently Sep 21 20:31:40 attach debugger and see Sep 21 20:46:32 :/ Sep 21 20:46:47 anyone use asmack? Sep 21 20:46:51 how do you get your roster? Sep 21 20:47:05 it sometimes returns nothing when you do connection.getRoster Sep 21 20:47:08 its anoying me now :/ Sep 21 20:53:07 ass smack Sep 21 21:03:26 when I add a resource (string, etc) in AS, whats the secret to getting R refreshed so those IDs aren't errors in my code Sep 21 21:04:00 run gradle again Sep 21 21:04:02 :p Sep 21 21:05:06 pfn, When using an ant build path and I change a string, how do I make ant pick up the change? :D Sep 21 21:05:07 i think this part is not handled by gradle Sep 21 21:05:13 in AS Sep 21 21:05:21 funny as it sounds Sep 21 21:05:48 when gradle is running, its pretty obvious. statusBar at the bottom shows the tasks, etc Sep 21 21:11:20 lastly, logcat seems to just stop working in AS at some point, don't see any more messages Sep 21 21:12:01 no filters, etc. weird Sep 21 21:28:29 stop/restart the adb integration Sep 21 21:28:35 that happens to me all the time in monitor/eclipse/ddms Sep 21 21:28:55 yeah .. Sep 21 21:30:02 as for R.java not getting updated, intellij only knows about single resource dirs Sep 21 21:30:05 maybe its more flaky in this case because of genymotion; weird that 'adb devices' shows nothing attached, but AS could still launch the app into the player (with no logs) Sep 21 21:30:36 adb connect IPOFGENYMOTIONDEVICE Sep 21 21:30:38 it happens a bunch Sep 21 21:30:54 funkbox hmm, ok thanks good to know Sep 21 21:31:12 i tried the usual adb kill-server && adb devices' but that didn't work :P Sep 21 21:31:22 wait, what format is android geolocation returned? not xx.xxxx,yy.yyyy ?? Sep 21 21:31:23 yeah the connect works reliably Sep 21 21:31:32 adb kill-server won't bring back genymotion Sep 21 21:31:35 you have to adb connect manually Sep 21 21:31:51 i didn't know that. thanks Sep 21 21:33:08 i used to restart genymotion like a chump Sep 21 21:33:17 now i adb connect still like a chump Sep 21 21:53:48 Hi, anybody using genymotion here? Sep 21 21:53:58 Android studio is not linking my device to my app Sep 21 21:54:09 adb devices Sep 21 21:55:54 nothing attached Sep 21 21:55:58 i am able to run it alone though Sep 21 21:56:05 i mean the emulator, sdk path found and so on Sep 21 21:56:11 adb connect IPOFGENYMOTIONDEVICE Sep 21 21:56:30 ok just a sec Sep 21 21:57:15 mh did genymotion update images to 4.3? Sep 21 21:57:51 not sure Sep 21 21:57:56 i need to check Sep 21 21:58:14 I saw weeks ago that there aren't 4.3 images so I started using intel image Sep 21 21:58:56 i just installed few min ago so i guess it is up to date Sep 21 21:59:26 it* Sep 21 22:00:09 funkbox: how can i get the ip of my device? Sep 21 22:00:45 it's in the window title Sep 21 22:00:49 ok Sep 21 22:02:19 thanks funkbox got it! Sep 21 22:20:22 <^cheeky> hi, i a still trying to get to Re-use Bitmaps , so would i have to create 2 sets of BitmapFactory.Options() to re-use it >? even though i used Options.inBitmap and Options.inMutable i still see the Gc going crazy collecting :/ Sep 21 22:21:50 what do you mean re-use? Sep 21 22:22:47 <^cheeky> Decoding a byteArray into a bit map by using BitmapFactory.Options.inBitmap() Sep 21 22:23:54 but if you are using inBitmap you already have a bitmap, why are you decoding again? Sep 21 22:24:49 canadiancow, oh yeah, answer to wtf anyone would import styleable and drawable and strings instead of R, it's because of intellij Sep 21 22:25:06 for some reason, that pos keeps importing the end class, and not R Sep 21 22:25:43 is twitter4j the best alternative for playing with twitter in android? Sep 21 22:25:51 or any advice about anything else? Sep 21 22:26:32 ^cheeky the inBitmap is for changing a bitmap you already have, not sure what it has to do with a byte array Sep 21 22:27:28 <^cheeky> schwiz: http://pastebin.com/rYu90JLx Sep 21 22:28:05 <^cheeky> schwiz: would i not have to it again coz .. iwould ake in Sep 21 22:29:38 <^cheeky> JustDescodeBounds = false . so i does not create a bitmap first round just get the height and width of the image .. then i i assign the height and width and create a bitmap .. then set the justDecodeBounds to true .. and then with the new options with the iniBitmap and inMutable create.. Sep 21 22:29:44 <^cheeky> oh hmm Sep 21 22:32:26 just do a null check on currentBitmaDiskCache and if it isn't null return it before doing anything else Sep 21 22:38:44 so my roommate got me an android hat Sep 21 22:38:52 and I've been wearing it while I write android all weekend at this hackathon Sep 21 22:38:53 Lulz Sep 21 22:40:14 yes, gain power from it! Sep 21 22:40:33 Brian|CS who is the hackathon for ? Sep 21 22:41:25 g00s_, University of Michigan Sep 21 22:43:23 <^cheeky> schwiz: .. sorry but i am a lil stumped .. you mean if(currentBitmaDiskCache != null) return null ; right at the beginning of the function Sep 21 22:43:45 if(currentBitmaDiskCache != null) return currentBitmaDiskCache; Sep 21 22:44:16 that reuses the bitmap if it was loaded, assuming you set currentBitmaDiskCache after decoding it from disc Sep 21 22:44:43 <^cheeky> i tried Sep 21 22:45:07 Brian|CS oh MHacks 2013 Sep 21 22:45:22 Yah Sep 21 22:45:23 lol Sep 21 22:45:27 cool Sep 21 22:45:37 Also, bitmaps are actually the devil Sep 21 22:45:37 D: Sep 21 22:46:19 <^cheeky> schwiz: what throws me off is that currentBitmaDiskCache just creates, an empty bitmap container .. and then i set that in the options .. soo . then i decode it again which then gives me the actual bitmap ... Sep 21 22:48:21 try currentBitmaDiskCache = BitmapFactory.decodeFileDescriptor(fileDescriptor, null, options); Sep 21 22:48:49 get all your sample size stuff in the options first only call decode once Sep 21 22:50:48 Hey, im using genymotion to emulate a device, is there a way to hide the fact that it's a virtual device? When it's sending HTTP headers it identifies as a virtualbox device. on play it's a vbox86p device. any idea how can i make it identify as a nexus device? Sep 21 22:51:43 jellybee: did you try changing user agent? Sep 21 22:54:47 gdrc: i dont want to change the header on a GET/POST request i'm creating. i want to spoof the device id. so when i'm using the browser i'm not publishing that it's a virtual device Sep 21 22:59:09 I'm about to create a little class to hold a few static methods which I use to handle applications. Should I call that AppUtils or just AppUtil? What's the proper convention? Sep 21 23:00:17 Also is roottools what's recommended to day to handle root commands? Sep 21 23:04:54 I go with utils Sep 21 23:06:08 But I usually do UiUtils, HttpUtils, etc Sep 21 23:06:50 SimonVT: You probably know java better than me, thanks :) Sep 21 23:06:59 SimonVT: any clue about my second question? Sep 21 23:07:00 Heh, I doubt it ^_^ Sep 21 23:07:15 I have no knowledge of root apps Sep 21 23:07:31 is there an intent for Play Store force-updating apps? Sep 21 23:07:43 SimonVT: ok, fair enough, thanks anyway :) Sep 21 23:07:49 the auto update option does not work well Sep 21 23:07:50 Nope Sep 21 23:07:58 mark06: I doubt it Sep 21 23:08:07 what else could I do to get rid of this bug Sep 21 23:08:14 it does not auto update well Sep 21 23:08:32 Auto update isn't instant Sep 21 23:08:34 needs to poke play store, but sometimes I feel like it needs reboot at all Sep 21 23:08:40 SimonVT: ^ Sep 21 23:08:54 It can take several hours Sep 21 23:08:59 huh? Sep 21 23:09:09 it can take a single reboot as I said? Sep 21 23:09:21 Well, first the update has to propagate to the servers Sep 21 23:09:28 And then the device has to actually check Sep 21 23:09:35 There's no reason to check every few minutes Sep 21 23:09:58 and the reboot forces it how? Sep 21 23:10:08 I don't know, does it force it? Sep 21 23:10:17 It might just do a check on boot Sep 21 23:10:18 what am I just saying? Sep 21 23:10:23 Can somebody shed some light on why there's Build Tools 18, 18.0.1, 18.1 all at the same time? Sep 21 23:10:39 But that requires that the new version has propagated to the server the user is connected to Sep 21 23:10:50 kakazza: New build tools version can break builds Sep 21 23:11:02 That has been a big issue previously Sep 21 23:11:06 So does the SDK just try all of them in descending order? Sep 21 23:11:26 I assume ADT uses the most recent Sep 21 23:11:30 there is reason to check every few minutes: it can be done easily without power, cpu, or bandwidth consumption, and I do want (the most important one) Sep 21 23:11:32 With gradle you can specify a version Sep 21 23:11:48 I see. Any site to see the differences? Sep 21 23:11:49 however I know they don't wanna do that Sep 21 23:11:55 Or is it "Don't touch if it works" Sep 21 23:12:11 I know companies that has been stuck 3-4 versions behind the current sdk version cus something broke Sep 21 23:12:33 By letting them specify a build tools version, they can update their sdk to the most recent while not breaking builds Sep 21 23:12:44 The hell? I've never had it break on me. Sep 21 23:12:44 mark06: No there's not Sep 21 23:13:55 kakazza: 99% of users wont have this issue Sep 21 23:14:04 For those that do, why break the build if you can avoid it? Sep 21 23:14:13 That's why they all exist Sep 21 23:14:38 Generally always use the newest Sep 21 23:15:03 Was there an official post about this? Sep 21 23:15:14 Or is this implicit knowledge? Sep 21 23:15:26 Xavier has made a few posts about it Sep 21 23:15:34 But it's basically implicit knowledge Sep 21 23:15:35 G+? Sep 21 23:15:59 For example, at one point they changed resource id's to be non-final in lib projects Sep 21 23:16:09 That was about v14 or something Sep 21 23:16:22 SimonVT: you already said that, no need to repeat your opinion Sep 21 23:16:24 That broke a lot of libraries, since they would no longer switch on the id's etc Sep 21 23:16:40 mark06: No there's not Sep 21 23:17:06 haha, you sound like a Google employee Sep 21 23:17:07 That broke the build for these libraries.. But it can be avoided by bundling all the different versions of the build tools Sep 21 23:17:17 That's just one example, I'm sure there are others Sep 21 23:18:54 I think mark06 broke his app and is now looking for a way to force update his users if he does it again Sep 21 23:21:13 Sounds like a good ime Sep 21 23:21:16 time even Sep 21 23:30:22 yeah, I need to add a way to specify build-tools version in my sbt plugin Sep 21 23:30:25 I just always use latest Sep 21 23:31:18 when I obtainStyledAttributes does it take attributes styled by style="@style..." into account? Sep 21 23:31:26 it seems to be not for me Sep 21 23:32:50 It does Sep 21 23:33:57 That should be handled by the layoutinflater Sep 21 23:34:07 They'll be in the AttributeSet I believe Sep 21 23:44:02 yeah, dunno why it's coming up as unset for me Sep 21 23:45:12 Haven't had issues with that Sep 21 23:46:20 I just pass attrs and defStyle Sep 21 23:46:44 But I'm fairly sure only the 2 arg constructor is called when inflating Sep 21 23:49:25 SimonVT is there any way to see the gradle output from AS ? Sep 21 23:55:50 Where could I get app ideas? Sep 21 23:57:11 solve a problem for someone Sep 21 23:57:24 I have a problem Sep 21 23:57:39 zyngawow … profit! Sep 21 23:58:03 masoudd, what is your problem Sep 21 23:58:13 SimonVT, yeah, not using the constructor, I'm just using the attributeset passed in Sep 21 23:58:14 I want to make my android phone so that when I push power button, my laptop goes to the next slide Sep 21 23:58:21 zyngawow: check android forums, usually there is the 'request app' forum Sep 21 23:58:24 SimonVT, unless I'm supposed to apply the style from the constructor manually? Sep 21 23:59:00 basically just any hardware button, volume keys etc... send a mouse click to my laptop Sep 21 23:59:19 masoudd, http://stackoverflow.com/questions/6848518/detect-on-off-key-press-android Sep 21 23:59:33 + client on the laptop Sep 21 23:59:35 + sockets Sep 21 23:59:58 yeah Sep 22 00:00:11 zyngawow: so you can do it? Sep 22 00:00:34 masoudd, yes, I can. I doubt I'd get any profit from it though Sep 22 00:01:15 zyngawow: do you want to make money or find a job as (android) developer? Sep 22 00:01:36 gdrc, both. You know, I need to eat and all that stuff Sep 22 00:01:48 zyngawow: I was going to say GPL it. but I guess you can sell it on play store Sep 22 00:02:18 zyngawow: there is no foss app that can do it afaik Sep 22 00:02:50 Universal key to switch to the next slideshow is space, right? Sep 22 00:03:22 masoudd: As for the hardware button: http://www.kickstarter.com/projects/556341540/pressy-the-almighty-android-button Sep 22 00:06:08 * pfn headscratches Sep 22 00:08:17 Genius idea: button on headphone jack! :D Sep 22 00:09:03 But the volume keys are better in this case. they can do back and forward: right click and left click Sep 22 00:16:19 what are mock locations under settings->developer options? Sep 22 00:16:23 weird, I have textAppearance passed in, but not textColor, wtf Sep 22 00:19:53 oh wait, 0xffffffff is -1 isn't it Sep 22 00:20:00 sumbitch Sep 22 00:20:21 friggin' signed numbers ftl Sep 22 00:22:53 usb debugging is enabled but im not getting prompted to ok an rsa key fingerprint. am i missing another setting? Sep 22 00:23:58 adb kill-server && adb start-server Sep 22 00:25:40 funkbox :: thanks, that did it Sep 22 00:25:52 ain't no thang Sep 22 00:39:43 is there some magical library that backports nsd (or some equivalant (nsd seems to be a unified interface to bonjour, UPnP etc)) to anything pre v16? Sep 22 01:09:14 <^cheeky> i have been stuck with this for a long, time i am getting SKImageDecoder Cannot reuse bitmap with sampleSize != 1 Sep 22 01:09:19 nsd? Sep 22 01:09:35 bah, just use some targeted thing you need Sep 22 01:09:37 like jmdns Sep 22 01:13:12 <^cheeky> pfn: for me ? Sep 22 01:13:28 no, kbs Sep 22 01:16:14 <^cheeky> k Sep 22 01:20:33 <^cheeky> now that i changed the options ... in BitmapFactory, i am getting some really really weird results, some times its sane decoder returned false, some times its about the sample size != 1, or if i just do it normal , it keeps calling th eGC :( Sep 22 01:36:36 <^cheeky> in BitmapFactory.Options, if you add inMitable = true should it be mutable ? Sep 22 01:46:46 <^cheeky> is there a bug with Bitmapfactory.Options Sep 22 01:48:02 "inMitable = true" = Sep 22 01:48:03 ? Sep 22 01:48:14 <^cheeky> sorry Sep 22 01:48:33 <^cheeky> i i mean inMutable Sep 22 01:49:26 still not correct Sep 22 01:49:46 yes, it is Sep 22 01:49:48 my bad Sep 22 01:50:19 and yes, if you set that to true the decode methods will return mutable objects Sep 22 01:50:43 <^cheeky> blah its ok i a stuck at this the whole day .. i really dont think using bitmap allocation . would really help .. i think i could just preload images to make it look smoother Sep 22 01:51:30 <^cheeky> yeah i even made sure that i set inJustDecodeBounds = false, so the it actually affect the bitmap returned Sep 22 01:52:00 <^cheeky> i dunno if its because i am in some crazy party of my code now .. using async, handlers i dunno if that has anything to do with it Sep 22 01:52:08 <^cheeky> http://pastebin.com/rYu90JLx Sep 22 01:52:16 <^cheeky> when my code was like that ^ Sep 22 01:52:26 <^cheeky> it worked but .. it keeps calling the GC Sep 22 01:52:50 <^cheeky> so i changed it and it does not seem to be working now it made it worse Sep 22 01:54:31 Can I test my Android project at the command line ... but without "am instrument etc"? Specifically, I want to test a java file that just imports from java.io and java.util. Sep 22 01:55:23 yes Sep 22 01:55:50 you'll need to make a main method that does not invoke android stuff at all (such as only invoking stuff from this file you want to test) Sep 22 01:55:56 perhaps put a main in itself Sep 22 01:56:10 then, in your run configurations you ask it to run that file a java application Sep 22 01:56:26 you did say commandline - did you mean that? Sep 22 01:56:47 yes Sep 22 01:57:19 I have already set up the code to use JRE System Library and JUnit 3. Sep 22 01:57:31 then you just put a main in the file, compile it, and run it from commandline Sep 22 01:57:45 Or rather, I mean, that I have adjusted the classpaths in the Android project. Sep 22 01:57:46 "set up"? where? in the IDE? Sep 22 01:58:02 but you're talking about commandline now... commandline is not an IDE Sep 22 01:58:14 Run > Run configurations ... Classpath's Bootstrap Entries Sep 22 01:58:24 that's in an IDE Sep 22 01:58:27 you said commandline Sep 22 01:58:57 right. so I was doing stuff in Eclipse first ... and now I'm trying to migrate to pure command line. Sep 22 01:59:06 I'm still new to doing the testing stuff. Have just read a few standard articles. Sep 22 01:59:55 well, if you do not need any android stuff in what you're running, you're pretty much back to basic java Sep 22 02:00:04 well, "pretty much"="100%" Sep 22 02:00:09 so basically, I need to compile to a jar file. then just the command-line java to run that jar file. Sep 22 02:00:16 doesn't have to be a jar Sep 22 02:00:20 ok Sep 22 02:00:27 but yes, you can do that Sep 22 02:00:46 so, compile it and pack it to a jar and then do java -jar myjarfile.jar Sep 22 02:01:35 ok, thanks for setting me straight. so I need to think in terms of basic java. Sep 22 02:02:00 yes **** ENDING LOGGING AT Sun Sep 22 03:00:00 2013