**** BEGIN LOGGING AT Sun Nov 16 03:00:00 2014 Nov 16 03:03:12 whoah Nov 16 03:03:12 http://developer.android.com/reference/android/view/View.html#setNestedScrollingEnabled(boolean) Nov 16 03:08:44 Anyone know if it is possible to open the default SMS app to to a specific thread id? Nov 16 03:09:48 yes it is Nov 16 03:10:00 on kitkat? Nov 16 03:10:19 How do i reach all checkboxes in a custom adapteR? Nov 16 03:10:20 i can do it pre-kitkat, but kitkat and post seems no way Nov 16 03:10:33 iterate over your children Nov 16 03:11:21 hm Nov 16 03:11:23 or you can do something with getView Nov 16 03:11:35 based on a sentinal enable or disable, and if the sentinal changes call invalidate Nov 16 03:12:04 can i store the convertView to a instance variable? Nov 16 03:12:08 and then iterate over it? Nov 16 03:12:32 no Nov 16 03:12:36 okey Nov 16 03:12:44 so, how may i do it? Nov 16 03:12:47 well you can but it wont work like what you are trying to do Nov 16 03:12:50 like i said, Nov 16 03:12:58 you can simply have a function that does getChildAt Nov 16 03:13:04 then iterates over children.length Nov 16 03:13:10 find each checkbox and disable it Nov 16 03:13:15 then call invalidate or whatever Nov 16 03:13:19 ok Nov 16 03:13:29 but Nov 16 03:13:30 or you can have a boolean in your getView and do checkEnabled true? enable false? disable Nov 16 03:13:41 and when that changes, just call notifyDataSetChanged Nov 16 03:14:16 what should getChildAt return? Nov 16 03:14:23 each row Nov 16 03:14:26 each child Nov 16 03:14:26 the child ! Nov 16 03:14:35 yeah, but what type is that!? Nov 16 03:14:38 View Nov 16 03:14:42 you can do findViewById Nov 16 03:14:51 JakeWharton: If I say "someResponse.body().charStream()", do I need to close that Reader myself? Nov 16 03:15:00 you can do CheckBox = (CheckBox) child.findViewById(R.id.whatevercheckboxidnameis) Nov 16 03:15:02 JakeWharton: And, if I do, will it affect the HTTP keep-alive thing? Nov 16 03:15:12 if checkbox != null, checkbox.setEnabled(toEnable) or whatever Nov 16 03:15:42 hey guys... what could all this be about: https://gist.github.com/jerstlouis/93d1bb97e1396396ca59 Nov 16 03:16:08 ESphynx ! Nov 16 03:16:50 ecere sdk looks like its coming along Nov 16 03:17:57 dafuq Nov 16 03:18:00 still dont get it... Nov 16 03:18:06 g00s :) Hey... well it's under continuous progress, but it's usually by bust as I focus on other projects to try to bring in income Nov 16 03:18:14 What paramater should the getChild() method take? Nov 16 03:18:24 posiit Nov 16 03:18:29 getChildCount Nov 16 03:18:45 g00s: Gnosis is what I've been focusing on ( http://ecere.ca/gnosis/ -- http://ecere.com/tmp/nzdemo2.jpg ) Nov 16 03:18:48 and then return? Nov 16 03:18:59 for (int i = getChildCountVariable; i >= 0; --i) { View child = getChildAt(i); // do stuff } Nov 16 03:20:19 and getChildAt should return my rowitem?! Nov 16 03:20:28 im feeling so stupid... Nov 16 03:20:31 will return each child Nov 16 03:20:37 each child is each row in the listview Nov 16 03:22:27 haha, wtf Nov 16 03:22:42 so how do i get all rows in the listview?! Nov 16 03:23:04 the loop i just mentioned Nov 16 03:23:23 but it is probably better to use a flag in your getView and just call notifyDataSetChanged whenever enabled/disabled Nov 16 03:23:35 because I believe getChildCount will only return the currently visisble set Nov 16 03:24:03 ie: if you scroll down a little, you won't have disabled new ones since they will go through getView which will return them as whatever the default is Nov 16 03:24:17 Does the list view support selection or is it soley for layout? Nov 16 03:24:44 yes no Nov 16 03:24:47 ok Nov 16 03:25:14 but i still dont get the getChildAt implementation!? Nov 16 03:25:14 What do you mean exactly? Nov 16 03:25:35 return view? Nov 16 03:25:43 just play with it Nov 16 03:25:45 and see what happens Nov 16 03:25:51 what? Nov 16 03:25:52 ok Nov 16 03:26:57 So services don't run in their own process Nov 16 03:27:01 ? Nov 16 03:27:43 I read that services run in the process that started them Nov 16 03:27:57 they can be made to Nov 16 03:27:58 by doing Nov 16 03:28:00 this i impossible... Nov 16 03:28:00 wtf Nov 16 03:28:03 is Nov 16 03:28:08 remote:nameSomeProcess in the service node in the manifest Nov 16 03:28:21 but a service normally is started in the same process and starts on the UI thread of whatever started it Nov 16 03:28:38 Oh Nov 16 03:29:34 Would that be an existing proccess or a new process referred to by the manifest? Nov 16 03:29:50 if using remote it'll be a new process Nov 16 03:29:59 Oh okay Nov 16 03:30:00 if not using the remote attribute it'll be the same process Nov 16 03:31:33 aceus do all of you rows have checkboxes? Nov 16 03:32:09 How do you recommend I get through the documentation. I tried just reading it but my memmory doesn't seem to be good enough on practice. It is a little hard for me to cover all that ground and have it at my disposal. Nov 16 03:32:20 code code code Nov 16 03:32:40 Should I try developing an app? Nov 16 03:32:56 Like a serious one? Nov 16 03:32:56 if you build it they will come Nov 16 03:33:15 Huh? Nov 16 03:33:43 idk what your motivation is, but if you need to learn android dev then you need to code Nov 16 03:34:14 You're right. Nov 16 03:34:26 whether the app is finished, is serious, or whatever doesn't really matter it just comes down to coding until you feel you understand it well enough Nov 16 03:34:38 I guess that is how I learned .net Nov 16 03:34:52 Yeah Nov 16 03:35:04 always helps to have apps finished and in the store though, that way you can "confirm" you are not just talking out of your ass when you say you know android dev Nov 16 03:35:43 Well I won't say that until I have something. Nov 16 03:37:13 Is there a way I could host a custom coded server for free? Nov 16 03:37:28 Might be a stupid off topic question. Nov 16 03:37:56 I mean get hosted Nov 16 03:38:30 I was thinking about because some apps need online storage and services. Nov 16 03:39:32 Why am I getting 'Failed to mkdirat(/storage/sdcard1/Android): Read-only file system' ? Nov 16 03:40:29 gaxar77 apparently the google app engine does something like that Nov 16 03:40:39 ESphynx have WRITE_EXTERNAL_STORAGE permission? Nov 16 03:41:03 lasserix: in my Manifest.xml ? Nov 16 03:41:38 Really? Could you provide me a link to more information? Nov 16 03:41:45 lasserix: I got 'READ_EXTERNAL_STORAGE' Nov 16 03:41:58 lasserix: Thing is I don't have an SDcard in there Nov 16 03:46:22 solved it! thanks alot dudes Nov 16 03:51:20 When using OkHttp, are we supposed to close the Responses? (Or the Reader returned from someResponse.body().charStream?) Nov 16 03:51:37 The "recipes" page doesn't show any closing. Nov 16 03:56:04 Please help with best solution for Samsung S5+Note3 IMEI Repair, I have found z3x box, I foresee a problem of obtaining one doner device per each device repaired, please advise Nov 16 03:56:41 thecoolguy_: Did you mean "#android"? Nov 16 03:59:54 TacticalJoke: I meant to post here as well, looking for any help, thank you Nov 16 04:05:03 thecoolguy_ please read the topic Nov 16 04:07:43 you have been advised :D Nov 16 04:09:07 Do you folks know anything about Jackson? Nov 16 04:10:00 I can't decide whether to use ObjectMapper.readTree or my own manual streaming. The former is much simpler, but is it much slower? Nov 16 04:12:15 guys? why would I all of a sudden get 'unable to load native library' ? This used to work :S Nov 16 04:24:19 it's something to do with the r9d -> r10c upgrade or something Nov 16 04:26:28 sorry ESphynx no idea. don't use ndk (phew!) Nov 16 04:26:47 g00s: wish it wasn't such a pain at every new version :\ Nov 16 04:28:22 ndk = native distress kit Nov 16 04:30:30 ndk = Not Dropping Kewl language in favor of Java Nov 16 04:32:27 ndk = nah, don't know Nov 16 04:32:48 not done killing? Nov 16 04:33:28 you can never be done killing; the souls go into recyclerview and come out to be killed again Nov 16 04:33:49 did the suffix change or something Nov 16 04:33:54 adb shell stop Nov 16 04:33:57 ^ should do the trick :p Nov 16 04:34:05 i.e. lib/armeabi/ ? Nov 16 04:37:29 I'm using dagger for dependecy injection. I'm trying to provide a class I created as a singleton and I get a package does not exist error Nov 16 04:41:36 The class exists...I can create it as an instance method....but when I add the @Provides annotation I get errors Nov 16 04:41:38 :( Nov 16 04:46:04 !streams Nov 16 04:46:12 sorry... wrong chat :( Nov 16 04:48:19 well, I guess you could follow along at home.. http://www.last.fm/user/JesusFreke/tracks :p Nov 16 04:48:55 (gotta love when you find one of those songs you can't stop listening to :p) Nov 16 04:50:17 K, so after an hour of debugging, my issue was solved my restarting android studio Nov 16 04:50:20 fuck Nov 16 04:50:36 JesusFreke: whats the track? Nov 16 04:50:49 Oh right...it says it in your last.fm Nov 16 04:51:34 not quite a coding music Nov 16 04:51:36 Ya...I need more drugs for this Nov 16 04:51:52 Sculptor: works for me :) Nov 16 04:51:58 happily coding away on smali atm Nov 16 04:52:01 here https://www.youtube.com/watch?v=svngvOLPd5E Nov 16 04:52:02 Well...you have drugs Nov 16 04:52:14 I'm quite sober, thank you very much :p Nov 16 04:52:34 Sculptor: ya....much more programming music...I find lyrics distracting Nov 16 04:52:44 aye Nov 16 04:53:01 I don't even know what language it's in. It's just instrumental to my mind Nov 16 04:53:15 this is also great http://www.rainymood.com/ Nov 16 04:53:16 and gotta love that bass voice :) Nov 16 05:06:43 hehe http://www.reddit.com/r/androiddev/comments/2mfwsb/i_cant_get_the_support_toolbar_to_do_anything/ Nov 16 05:06:54 "All the sample code I've seen make this look so easy, but it's just flat out not working for me" Nov 16 05:07:06 yeah, thats because ... wait for it Nov 16 05:07:20 * g00s wispers "there's a bug" Nov 16 05:16:34 how can I add an explicit dependency to gradle? Nov 16 05:17:03 one of my local classes won't register Nov 16 05:41:01 hmm, is AS capable of more than 1 or 2 core use when building/deploying ? It would appear only 10% of my machine cpu time is actually taxed, and even that 10% not fully Nov 16 05:45:23 g00s, reddit poster just sounds generally clueless... Nov 16 05:45:47 dudes having problem with stuff in a base class in general Nov 16 05:48:42 actually i misread the post. i thought he was using ActionMenuView. There is a bug in that where layout_width="math_parent" = invisible view Nov 16 05:48:43 if knox becomes 0x1 - will i have the bad triangle permanently? Nov 16 05:49:15 screwsss you are a bad traingle Nov 16 05:50:02 g00s when you do a build is your cpu 100% flat out ? oh and what OSX are you on ? Nov 16 05:50:24 its at least 100%, more like 110 % Nov 16 05:50:41 lol, you looked at act mon and confirmed that ? Nov 16 05:51:07 ahuh Nov 16 05:52:40 so Nov 16 05:52:41 stingray unless you have 10 cores, you not exceeding 10% isnt a question of core usage Nov 16 05:53:06 StingRay_ yeah its actually reported > 100 % Nov 16 05:53:22 my cpu goes to 11 , err 110% Nov 16 05:54:57 dammit, I'm getting 6-8%ish use, so 1 thread out of poss 16 Nov 16 05:57:23 so that triangle will stay ther Nov 16 06:02:45 hi,i hope its okay to ask about emulator here. im doing unyaffs/mkyaffs2 to system.img and without even changing any files, emulator wont boot anymore, like it cant mount root http://pastie.org/9722340 . Is there some magic in packing back? Nov 16 06:05:22 stingray, using activity mon with 16 cores? I dont use mac but quick google brought up http://support.apple.com/en-us/HT4180 from aug 2014 Nov 16 06:06:08 well 8 cores, going to 16 soon, but 8 cores hyperthread and using 1 thread... will check link thanks Nov 16 06:07:43 when I do a build the use is 7-8% and the process is shown at 100% use in act mon, when I do a render of a complex scene act mon shows that process at 1400% Nov 16 06:07:49 just says if using act mon w > 4cores reports as single graph Nov 16 06:07:51 so something aint right Nov 16 06:08:27 StingRay_: What’s going on with your Mac? Nov 16 06:08:45 it dont like AS/Gradle at a guess Nov 16 06:08:50 :) Nov 16 06:09:50 ah ok, 100% on a process is 1 x core (2 HT), the 1400% is due to stepping overdrive/boot thing Nov 16 06:09:59 dont use act mon w more than 4 cores Nov 16 06:10:08 whatitis- not looking at graph Nov 16 06:10:19 looking at metrics/nums Nov 16 06:11:20 so I can say 100% that AS flat out is using less than 10% of what Maya is when rendering flat out Nov 16 06:11:29 * StingRay_ not so please :( Nov 16 06:12:40 Android Studio doesn’t use multiple cores? WTF. Nov 16 06:13:01 oh not just me ? Nov 16 06:13:12 uses 2 HT from single core right ? Nov 16 06:13:35 what takes longer to finish? seems compiling an app to rendering 3d graphics isnt a fair comparison. but its so vague as to actual problem Nov 16 06:14:04 whatitis- if you missed the problem read again Nov 16 06:14:05 StingRay_: I have minimal experience with AS, unfortunately. I’m just reacting to your comments. Nov 16 06:14:07 I explainged it Nov 16 06:14:15 explained* Nov 16 06:14:28 jfpoole could just be mac pro related Nov 16 06:14:47 I don’t see why that’d be the case…? Nov 16 06:15:37 you didnt explain anything besides trying to read cpu usage. not any actual times based on others results and yours lacking/falling behind Nov 16 06:15:53 versus yours Nov 16 06:16:00 times ? this is about usage, not time Nov 16 06:16:24 simply put, AS cannot use my machine 100%, it can use it 8% ish Nov 16 06:16:34 StingRay_: How long does it take for your builds to complete in AS? Nov 16 06:16:52 yea times, if usage is less but finish times are on point then you win and move on Nov 16 06:17:05 jfpoole longer than on my i7 which is odd, maybe 30-40 seconds Nov 16 06:17:18 Which i7 do you haev? Nov 16 06:17:19 er, have? Nov 16 06:17:28 i7 2600k clocked to 4.7 Nov 16 06:17:51 dual quad core xeons should eat that Nov 16 06:18:25 whatitis- no, it's slow or I would not be bothered Nov 16 06:18:50 and like I said 3 time now :) it somehow can't use all my processors but anything else can Nov 16 06:19:17 A 2600K might be faster than the Xeons for single-core performance. Nov 16 06:19:31 Which, if AS only uses one core, is going to be the determining factor for your build times. Nov 16 06:19:38 jfpoole yes it will, with the clock about 2x faster Nov 16 06:20:03 but this mac pro has fk tonne more cores Nov 16 06:20:13 Doesn’t matter if the cores aren’t being used. :-) Nov 16 06:20:22 You’ve got the 12-core Mac Pro? Nov 16 06:20:24 jfpoole must just be me though ... sure AS can use more than a single core Nov 16 06:20:39 jfpoole no, 8 core current, but will be 16 in a month Nov 16 06:20:45 what build of AS, have you benchmarked based of canary builds, or others? Nov 16 06:20:46 sorry 12 Nov 16 06:21:18 fun toy Nov 16 06:21:26 StingRay_: You might have to manually enable parallel builds under AS. Nov 16 06:21:37 http://i.stack.imgur.com/hGnDg.png Nov 16 06:31:01 stingray jfpoole get you set? Nov 16 06:31:28 testing thing, and reading up on gradle Nov 16 06:32:13 AS if from canary latest and has new interesting mode to test :) Nov 16 06:32:23 Do you guys put accessors (e.g., "getFoo()") above or below constructors? Nov 16 06:32:28 Assuming that you put fields above constructors. Nov 16 06:33:22 stingray sucks having to trial and error, but things should work out as long as AS is capable Nov 16 06:34:21 whatitis- not sure it is, it has this new mode they say is in incubation and not to be used lol, but dont work anways :) still can only get 8% cpu usage Nov 16 06:34:26 sigh Nov 16 06:34:36 tactical can always stick with allowing ide to organize for you Nov 16 06:36:27 StingRay_, did you have this in your gradle.properties (per project)? -> org.gradle.daemon=true org.gradle.parallel=true Nov 16 06:36:28 stuck with trial and error til narrow it down if not documented/tested Nov 16 06:38:14 StingRay_, also not everything is "parallelisable" to an infinite number of core, things have to be independent and not waiting for each other Nov 16 06:38:41 it also depends on your os too, too many factor at the end, not even sure you benchmark properly Nov 16 06:39:04 I can't decide how to parse the Reddit JSON. ;[ Nov 16 06:39:17 I could create a complete tree of *everything*, and then go through this tree for the stuff I want. Nov 16 06:39:26 Or I could just fly through the stream taking down only stuff I want. Nov 16 06:39:29 The latter is really fast. Nov 16 06:39:33 But is it more fragile? Hmm. Nov 16 06:39:44 deja vu Nov 16 06:39:46 The former entails a lot of overhead. Nov 16 06:40:01 TacticalJoke sometimes I think you could test every possibility in the time it takes you to dump all your thoughts in here lol Nov 16 06:40:15 There is a *lot* of JSON to parse. Nov 16 06:40:21 I'm surprised by how much Reddit gives users. Nov 16 06:40:29 StingRay_: I've spent the past few hours on this. :p Nov 16 06:40:32 that is your task with your app Nov 16 06:40:43 I want it to be fast, but I don't want it to be broken. Nov 16 06:40:49 Or to suddenly break in the future. ;/ Nov 16 06:41:17 To be fair, though, it's fragile either way. Even with the full parse-tree, Reddit could move stuff around or rename stuff. Nov 16 06:41:30 if you are worth your weight&a reddit client is what you want. you do what needs done to do your app Nov 16 06:41:51 It's hard to evaluate the costs and benefits here, though. Nov 16 06:41:57 I don't have raw numbers in front of me, for example. Nov 16 06:42:52 it really isnt. you should have an idea of how reddit works for users. and you take user input to retrieve what you need Nov 16 06:43:22 data is just data Nov 16 06:43:59 Parsing against a potentially moving target is hard, though. Nov 16 06:44:12 If I had a guarantee that the format won't change, it'd be so simple. Nov 16 06:44:17 if anything if you are having troubles post the why Nov 16 06:44:43 is the format changing or just same getting nested Nov 16 06:45:19 I presume the latter, but I'm not certain. Nov 16 06:47:00 id assume they sure as shit dont want to change format constantly as thatd hurt them, but recursion can get daunting. so they stay static, they give all with one format. its upto devs to deal w nesting and recursion Nov 16 06:47:15 give us a taste of what is troubling you Nov 16 06:49:04 whatitis-: This is the kinda thing I'm having to parse: http://pastebin.com/R6kpSQNF Nov 16 06:49:21 It's long. I don't wanna create a parse tree for all that. Nov 16 06:49:37 Note that I'd be creating a parse tree for all that so often when the user scrolls the ListView/RecyclerView/whatever. Nov 16 06:50:17 Sure, it happens in a background thread, but it's still overhead. Nov 16 06:51:36 so why not loading first outside of the listview, then everything is in memory linked with an adapter as usual and when users go further down, you increase your array (like refresh to bottom or idk how it is exactly called)? Nov 16 06:51:40 hmm, ok thanks all, getting 60% use now, IJ 14 still deaded though, will look into this later Nov 16 06:52:20 since I have 32gb ram and very soon 96gb is there any advantage to huge allocations to gradle in config ? Nov 16 06:52:25 should take that and match it with an image . its just data, and if a format there is a parent/child then possible children of childs. if you understand the site, the data will make sense Nov 16 06:53:20 I see redundant kinds for example, if I used the site id get it Nov 16 06:53:48 so check for redundancy etc, and how things are grouped visually, then parse Nov 16 06:57:16 stingray huge allocations as in greater than a gig or so would make sense for OS builds, as far as heap for building apps, if you have > than 1-2 gigs seems excessive, minus setting large heap for ide Nov 16 06:59:17 ah ok cheers Nov 16 06:59:24 give any java based builder as much heap as you can to keep it stable running and flowing, but for building that shouldnt mean too much Nov 16 07:15:17 Ah cool, the latest xscreensaver release has my code Nov 16 07:15:42 With a lot of good guidance from the maintainer, Jamie Nov 16 07:28:33 How can I get token that android client can access RESTful API on app engine Nov 16 08:16:49 gah ... I need coffee Nov 16 08:17:03 is there a way to see the source code for the Samsung proprietary apps that come on the note 3? Nov 16 08:17:08 the real code Nov 16 08:17:12 not disassembled Nov 16 08:17:30 specifically the app caleld com.sec.android.gallery3d Nov 16 08:17:35 called * Nov 16 08:17:58 heh Nov 16 08:18:02 in other news, I hard bricked my Note 3 Nov 16 08:18:14 I have to send it out for jtag repair Nov 16 08:18:22 #android-root Nov 16 08:19:21 #andrrhoid Nov 16 08:21:44 get a job at Samsung Nov 16 08:21:57 how can I make a combobox where you have the 1st entry is a TextBox? Nov 16 08:22:03 no for real Nov 16 08:22:17 is it open source anywhere? Nov 16 08:22:30 no Nov 16 08:22:34 i like the gallary app a lot.. i want to mod it Nov 16 08:22:37 hence my "for real" answer Nov 16 08:23:00 I mean an EditText instead of a textbox.. I want it to look like the google search suggestions as you type Nov 16 08:23:01 did you write a gradle plugin? Nov 16 08:23:36 gradle is a pita Nov 16 08:24:17 oh Nov 16 08:29:31 superlinux-hp: you put a EditText on top and a ListView under it Nov 16 08:30:26 mmm Nov 16 08:30:51 heh Nov 16 08:31:00 how do I turn off font anti aliasing in android os? Nov 16 08:31:23 probaby recompile freetype Nov 16 08:31:35 shmooz, but I have a dialogue box and one of the dialogue box entries is an edit text where a file path should be written. Nov 16 08:31:55 g00s: recompile freetype and replace the libs? or would i have to recompile the whole os? Nov 16 08:32:04 like just replace the .so files Nov 16 08:32:17 what about Skia?? recompile that too right? Nov 16 08:32:21 so what I want to do is allow the user to type the path and the directories are listed below his typing. Nov 16 08:33:10 Use a Folder picker instead of keying Nov 16 08:33:15 after_r honestly, i dont know any more. i messed with this a long time ago on linux but i'm sure lots of changed. Nov 16 08:33:23 superlinux-hp: you can make it autocomplete search and return the results in the listview which you show or hide if its not focused Nov 16 08:33:35 well on linux like ubuntu all ya gotta do is change one line in a config file Nov 16 08:33:47 i tried to do it in my note 3 and i hard bricked it Nov 16 08:34:08 no its a $300 paperweight Nov 16 08:34:16 why ... in gods name would you do that :| Nov 16 08:34:33 i tried to put AOKP on it Nov 16 08:34:46 after_r anyhow, this channel is app dev Nov 16 08:34:52 and i fudged up with flashing Nov 16 08:35:00 shmooz, so you suggest I should make my google keyword as "autocomplete search example" ? Nov 16 08:35:03 isn't? Nov 16 08:35:16 i know Nov 16 08:35:47 superlinux-hp: maybe, there is off the shelf autocomplete, but you can also make your own Nov 16 08:35:58 ok thanks. Nov 16 08:36:28 I made my own ;) Nov 16 08:42:41 superlinux-hp: it would be something inside editText.addTextChangedListener( ... onTextChanged(... if(listItem[i].toLowerCase().contains(editText.getText().toString().toLowerCase())) { repopulate and reorder the listview Nov 16 08:44:13 shmooz, I know I have to use addTextChangedListener, but my problem in fact is how that list below the edittext gets shown too as the user types. Nov 16 08:44:29 so I think the AutoComplete is the way to go. Nov 16 08:45:00 i am reading here: https://www.codeofaninja.com/2013/11/android-autocompletetextview-example-sqlite-database.html Nov 16 08:45:13 superlinux-hp: listView.setVisibility(View.VISIBLE/GONE) Nov 16 08:45:19 it gives good hints.. same case but for database Nov 16 09:06:07 meh - intelliJ seems sloppy filtering / displaying logcat when running on device ... (or is it me?) Nov 16 09:07:43 I usually just run it in a terminal anyway Nov 16 09:07:46 is there a good example of a FAB that expands to a list of buttons? Nov 16 09:24:21 hi? Nov 16 09:24:51 just imported an android project into eclipse and the library section does not show...has anyone else experienced this problem? Nov 16 09:30:17 eclim: eclispe vim Nov 16 09:55:19 Theres an android app i'd like to mimic. It shows you traffic information for local highways Nov 16 09:55:35 i think what i'm looking for is a packet sniffer Nov 16 09:55:58 i want to see where their data comes from. I can't seem to find an API online anywhere Nov 16 10:08:11 RustyShackleford, tcpdump, wireshark Nov 16 10:29:01 jesusfreke: yah ... that's what I've wound up doing Nov 16 10:39:24 . Nov 16 10:42:07 I have a rotating cog which is an imageview with a rotate animation. The animation somehow seems to slow down and accelerate again when reaching 0/360 degrees. I think this is because i need to use some kind of interpolator? Can anyone help me? http://pastebin.com/B8xcKwaA Nov 16 10:42:17 I want it to be a smooth, infinite rotation Nov 16 11:02:53 even though the user can set their preferred text size from system settings, is it still a good idea to give the user text size settings in the app ? Nov 16 11:03:16 the youtube app does that Nov 16 11:39:54 are there less writting in data partition with lollilpop's art than former dalkvik? Nov 16 11:45:05 writing? Nov 16 11:45:17 its the same Nov 16 11:45:26 ART just means that the java files are precompiled Nov 16 11:53:05 my app wants to store small json data to be accessable `onResume()` Activity method. Nov 16 11:53:23 what is the right place to save this data ? Im new in android platform Nov 16 11:54:50 RusAlex: onPause and or onDestroy Nov 16 11:55:20 shmooz: I mean what kind of internal memory to use ? This data must be available after app restart Nov 16 11:55:34 SharedPreferences Nov 16 11:55:40 thanks Nov 16 11:59:15 Hello. I am getting an error with google maps. just get a blank screen with zoom buttons (nothing is being loaded). Code and error: https://gist.github.com/vedant1811/dc8b7793aaa91e4a4162 Nov 16 12:00:29 hello, I was reading through DefaultHttpClient and cookie stores, and came to the conclusion that if I were to re use cookies for session management with the server, the appropriate method is to reuse an instance of defaulthttpclient, is there any articles on how I can create an instance of DefaultHttpClient and use it over various activities? Nov 16 12:01:04 I'm not sure on how one would create an instance of httpclient and pass/use it across various activities Nov 16 12:27:26 so i finally have lollipop. what kind of new stuff should i checkout? Nov 16 12:35:16 fancy42: for developing? Nov 16 12:35:48 fancy42: flappy droid Nov 16 12:44:44 danijoo, no more from a users perspective. though i am developing an app, adapting to material design or something has not the highest priority currently :p Nov 16 12:44:52 Leeds, is it in the store? i can't find it Nov 16 12:45:05 fancy42: thats an easter egg Nov 16 12:45:08 no, it is not Nov 16 12:45:19 activie developer options and then press on build version multiple times Nov 16 12:45:42 danijoo: leave something to the imagination, mate... Nov 16 12:46:04 :/ Nov 16 12:46:11 theres no such thing as santa Nov 16 12:47:39 danijoo, did you mean 'android version'? i can't find build version Nov 16 12:48:37 fancy42: just google it ;) Nov 16 12:50:53 found it, lol Nov 16 12:54:58 ^^ Nov 16 12:58:42 I was wondering about the difference between a static block VS. factory method for singletons Nov 16 12:58:45 any thoughts? Nov 16 12:59:22 you dont have control over when a static block is called (it will be at the moment the class is loaded) Nov 16 12:59:46 with a method you can chose at what point you want it to be executed Nov 16 13:01:17 meaning lazy loading is not possible? Nov 16 13:02:37 with a method, it is Nov 16 13:02:45 but not with a simple static {} block Nov 16 13:02:49 thats what i meant Nov 16 13:04:47 yeah Nov 16 13:05:17 a static block is always executed at the point the class is loaded (i think thats when you import it) Nov 16 13:05:21 but when and how does the static{} block affect app loading and class use assuming I want to have a singleton Nov 16 13:05:35 if you do a static getter with lazy loading, you can chose the point when your singelton is initialized Nov 16 13:06:20 lets say you have an activity, and a class SingeltonClass that has a singelton object Nov 16 13:06:50 if you have a static block in that, it is initialized at the point you import that class in your activity (which is before any other method of your activity class runs) Nov 16 13:07:15 if you have a static factory method, the object is initialized at the poiint you actually query for the singelton (for example in the onCreate method) Nov 16 13:07:50 it depends on your design (and maybe also taste) what you prefer Nov 16 13:07:55 hmmmm Nov 16 13:07:57 mmmkay Nov 16 13:07:59 thanks Nov 16 13:08:36 Hello ! I have some difficulty building the authentication system of my app. I want the user to sign in only via Google +. I implemented a pure server side flow in my web application (RoR) and I followed the google sign in for android tutorial. So the user can log in using Google+ to the Android App and the web app. However, when the phone performs request to the server, I want to be able to recognize and sign in the Nov 16 13:08:36 phone that makes the request. Should I call the authenticate URL of the web app from the android app or something like that? Nov 16 13:08:40 but if you use that singelton in application object, you have to think about this: since a static{} block would be executed before any code of application class runs, it might be that context is not initialized yet Nov 16 13:09:38 Oxynum: G+ auth is a bitch Nov 16 13:11:54 thepoosh: >_< Nov 16 13:12:13 sorry mate Nov 16 13:13:51 Or ! Should I build an authentication token communication between the android app and the server ? It would be like : The user connects to the android app via G+, then call for the first time the authenticate url of the server so I can create the user, gets back a token that will allow further communication not using G+ u_u Nov 16 13:46:09 hey http://imgur.com/nYTHRaj Nov 16 13:47:35 ho Nov 16 13:49:15 just a random screenshot? Nov 16 13:50:56 hey, where would i implement/create an instance of a defaulthttpclient? I see code floating around, but they don't really say where to instantiate it, i'd like to keep the session alive throughout various activities Nov 16 13:51:18 why do you want to keep it alive? Oo Nov 16 13:51:57 the application backend uses a sessionID cookie to maintain state Nov 16 13:52:15 never done that but what about application singelton? Nov 16 13:52:19 so after logging in on the app, it needs to be able to track the session cookie to perform various activities Nov 16 13:52:44 or you just save your cookie and reuse it in multiple httpclient instances Nov 16 13:54:02 yea but that seems so troublesome having to either pass the cookie as string via intent or shared preferences and setting it before every request Nov 16 13:54:05 :( Nov 16 13:54:16 lemme look up application singleton Nov 16 13:54:38 why is this troublesome Nov 16 13:54:51 i think its by far easier than managing an instance of httpclient Nov 16 13:56:10 cause apparently if I use a shared instance of httpclient, the cookie will be tracked automatically, so there's no need to manually setting the cookie Nov 16 13:56:31 haven't managed to create a httpclient instance yet, so i can't really make the comparison, haha Nov 16 13:58:46 are you trying to consume some kind of REST api? Nov 16 14:01:41 danijoo: thats my phone now Nov 16 14:01:44 if i put cyano on Nov 16 14:01:46 will i loose all that Nov 16 14:01:56 screwsss: wrong channel, see topic Nov 16 14:02:09 haha everyone tells me wrong channel everytime Nov 16 14:02:56 screwsss: then you should go to the correct one ;) Nov 16 14:03:19 which happens to be mentioned in the topic of this one Nov 16 14:04:35 thanks ya good for nothin pain in the butt! Nov 16 14:04:59 your welcome :p Nov 16 14:24:11 danijoo: nah not really a rest, just a couple of post/get requests with parameters Nov 16 14:25:24 okay. because there is a neat library for that called retrofit Nov 16 14:27:02 oh cool, lemem go check it out Nov 16 14:27:26 just in case i need it one day Nov 16 15:29:20 !seen gaz` Nov 16 15:29:31 Any such function available here?.... Nov 16 15:30:52 can somebody tell me why the auto-generated NavigationDrawerFragment is using gazillions of deprecated things? Nov 16 15:31:00 it's full filled with warnings Nov 16 15:32:36 noone cares for warnings Nov 16 15:33:24 i found no useful tutorials on howto use a RecyclerView.Adapter together with a contentprovider Nov 16 15:33:31 is that even possible? Nov 16 15:33:46 tons of samples - but all use a static list Nov 16 15:52:05 xmatthias: You don't need a tutorial to write your own CUrsorAdapter Nov 16 15:53:41 Hello. I want the user to select a location from google maps? What is the correct UI/UX design? Should I display a marker at the centre? or make a draggable marker? Any toutorial on it? Nov 16 16:00:52 I'm trying to create a new project in Android Studio, but Next and Finish buttons are grayed out. Nov 16 16:01:46 skinux: there is no message in red? Nov 16 16:10:37 Nope Nov 16 16:13:41 I tried creating a new workspace, but that didn't have any affect. Nov 16 16:14:08 Do I need to reinstall the IDE? Nov 16 16:14:36 Yo! Anyone using retrofit with an api returning XML? Nov 16 16:15:35 I'm trying to use gradle to add the retrofit converters http://mvnrepository.com/artifact/com.squareup.retrofit/retrofit-converters/1.7.1 Nov 16 16:15:50 but they're not showing up on my list of imported packages Nov 16 16:16:15 Honestly, most of what i want to do, is create a custom web browser, because most apps I develop will probably be mostly written using web technologies. Nov 16 16:16:17 com.squareup.retrofit:retrofit-converters:1.7.0 Nov 16 16:16:25 this is how i depend them Nov 16 16:16:49 http://pastebin.com/uAhWFfAr Nov 16 16:16:56 Except for one app, which will read both contacts and TextSecure Export files, so texts can be read without needing to import into TextSecure. Nov 16 16:18:01 somaweb: yeah, I'm doing that but the classes are not showing up for me Nov 16 16:20:50 somaweb: what package do you import into your class when added the SimpleXmlConverter()? Nov 16 16:23:01 Does anyone know how to increase the timer of this documentation popup? https://www.dropbox.com/s/taq7ipuv82g307f/Schermafdruk%202014-11-16%2017.22.38.png?dl=0 Nov 16 16:23:14 * skinux is reinstalling Android Studio to try solving the problem Nov 16 16:23:21 Or even make it so it only happens when I hold CMD and hover over it? Nov 16 16:26:35 guys, i have made my toolbar in a separate layout, and i used to include it in activity_main.xml , the thing is that my app uses NavigationDrawer, when the style is .NoActionBar, it crashes on inflating the NavigationDrawer's Fragment Nov 16 16:27:50 * OverCoder cries Nov 16 16:55:50 Does anyone know how to store a Location in a Parcel? Nov 16 16:56:27 I'm thinking that I could just get the latitude and longitude and store those, but there must be a better way. Nov 16 17:22:23 If i create a new Thread(), define a public void run() method and in that run() method I assign an image downloaded from the internet to an ImageView object (as is done here: http://developer.android.com/guide/components/processes-and-threads.html#WorkerThreads)...HOW does this access the Android UI toolkit from OUTSIDE the UI thread? Nov 16 17:24:51 My question, in other words: what makes a method call accessing the UI thread, and in which situations is this access done from outside the UI thread? Why does setting the downloade image to an ImageView with ImageView.setImageBitmap(Bitmap b) access the UI thread from outside the UI thread, despite that method call being done from a NEW thread??? Nov 16 17:31:48 You shouldn't store oauth tokens and definitely not the secret in your app, right? Why in the name of god does Digits (from Fabric from Twitter) automatically add those in your Android app which means everyone that downloads the app will have those. This is totally not secure or am I wrong here? The key should be used on my app's server backend and everything should be processed there when it comes to communicating to the Twitter API. Am I right? Nov 16 17:37:13 may be the key is processed at server side but created uniquely for every client on client side Nov 16 17:38:26 bindaasomatic, it's not unique client side. Nov 16 17:38:41 bindaasomatic, it just added a constant in the Activity class. Nov 16 17:38:47 well 2 to be exact. Nov 16 17:48:44 I haven't tried Fabric yet but I got the invitation and downloaded the SDK Nov 16 17:48:51 any good? Nov 16 17:58:28 hey Nov 16 17:58:43 i'm having trouble with a listview containing checkboxes Nov 16 17:58:55 if i check the first checkbox, the fourth one will be checked as well... Nov 16 17:58:57 any ideas? Nov 16 17:59:18 the fourth one is just visible when I scroll down Nov 16 17:59:19 are there only three on the screen at a time? Nov 16 17:59:22 yep Nov 16 17:59:24 its being recycled Nov 16 17:59:27 yeah Nov 16 17:59:38 any ideas how to solve it? :/ Nov 16 17:59:52 i've googled alot without been able to find a working solution Nov 16 18:00:00 what does it mean to "invoke a method on the UI thread" ? Nov 16 18:00:08 back your views with models and set them up properly? Nov 16 18:00:10 and how do I invoke a method on the UI thread Nov 16 18:00:23 basically, what determines if a method is invoked on the UI thread Nov 16 18:00:29 hm Nov 16 18:00:36 so a model will hold my textview and checkbox? Nov 16 18:00:45 Strat: it means the method runs on the main thread. you can use the runonuithread or whatever method, or post back on a view or handler Nov 16 18:00:46 it's just a separate object? Nov 16 18:01:29 aceus: no, the model would hold the state of the object your presenting Nov 16 18:01:41 aceus: how do you know what text to show in the list? Nov 16 18:01:59 dbrosyth, I know it is bad practice to do so, but let's say i want to run a method on the main thread. How do i do this? (I know of runOnUIThread and View.post() methods, which access the UI toolkit from inside the UI thread) Nov 16 18:02:13 Im just fetching the text from a predefined string array Nov 16 18:02:19 i will be using a db later on Nov 16 18:03:02 aceus: well, if you only have strings you need to keep the state for each list element somewhere -- either in a more complex object or some other object you can reference when you're building the view Nov 16 18:03:25 ok Nov 16 18:03:31 Is this enough as a model class? static class Holder { TextView text; CheckBox ckbox; } Nov 16 18:03:50 Strat: i dont really understand what you're asking. Youre already probably runnign methods on the main thread... do you mean you want to run on the main thread from a background thread? Nov 16 18:04:09 aceus: thats a view holder, that is associated with a view, not data Nov 16 18:04:40 a model is data, not views Nov 16 18:04:57 true Nov 16 18:05:06 for instance, you probably want an array of objects that have a string and boolean, rather than just strings Nov 16 18:05:35 Ok Nov 16 18:05:49 I have an arrayList in the customAdapter containing each row: List rowItem; Nov 16 18:06:22 So that class is going to hold the checked() true/false; ? Nov 16 18:06:25 i guess... Nov 16 18:06:55 probably something like that Nov 16 18:07:36 ok Nov 16 18:08:22 i'll try it out Nov 16 18:12:31 can you take a quick look at my getView() method? Nov 16 18:16:15 can they? Nov 16 18:16:40 dbrosyth, the android documentation specifies two rules with regards to threads: 1) Do not block the UI thread (solution: create a new thread in which you perform long running operations, such as download an image from the internet), and 2) Do not access the Android UI toolkit from outside the UI thread. With regard to point 2, i need to know what exactly determines whether I access the android UI toolkit (what is the Android UI toolki Nov 16 18:16:41 t actually?) or not, in order to NOT violate this rule Nov 16 18:17:25 hi all Nov 16 18:17:31 hope that clearify's my question a bit more Nov 16 18:17:34 ohai Nov 16 18:17:46 dbrosyth : it worked! Thanks alot!! Nov 16 18:17:52 :) Nov 16 18:18:34 Strat: https://stackoverflow.com/questions/2848575/how-to-detect-ui-thread-on-android Nov 16 18:19:22 i just stopped programming for today.. Nov 16 18:19:39 good for you Nov 16 18:22:35 Thnx for that Ashiren, definately useful, but unfortunately doesn't answer what accessing the UI thread from inside (or outside) the UI thread means Nov 16 18:24:21 hm? Nov 16 18:24:52 during UI thread operations blocks UI, so you cant click and app seems frozen until those operations end Nov 16 18:25:40 I know, for example, running a long operatoin, such as downloading an image from the internet, may block UI and app seems 'frozen' Nov 16 18:25:49 wait here's another example Nov 16 18:26:12 i know that AsyncTask's onPreExecute() runs inside the UI thread.... Nov 16 18:26:40 what specifies this? What specifies that onPreExecute() runs inside the UI thread and not outside? Nov 16 18:28:17 while AsyncTas's doInBackground() performs work in a background thread Nov 16 18:42:53 Hi. When you run the following shell command from the phone: screenrecord –time-limit 60 /sdcard/xx. is there any way you can stop the recording manually? :) - before the 60 seconds Nov 16 18:50:54 ugh; did gradle-plugin variant.registerJavaGeneratingTask() break in 0.14.x ? Nov 16 18:51:11 all my gen'd code is showing up as red again in AS Nov 16 18:51:33 fucking fuck fuck R^%&%^&!! Nov 16 18:52:04 i feel like i'm opening the same effing bugs over and over Nov 16 18:56:07 how the hell am i showing two buttons when i should have one? Nov 16 18:56:15 eh.. ill wait, i got dishes to do :| Nov 16 18:56:26 lol Nov 16 18:57:47 Hi. When you run the following shell command from the phone: screenrecord –time-limit 60 /sdcard/xx. is there any way you can stop the recording manually? :) - before the 60 seconds Nov 16 19:00:46 im using a cursoradapter and for each view i need to get a row out of a sqlite table that isnt the one being passed to the cursoradapter. whats the best practice on this? making a db query on each bindView doesnt sound like a good idea.. Nov 16 19:08:27 aaearon figure out some way to sql join the data you need into one result Nov 16 19:08:45 so that cursor row has eveything you need Nov 16 19:10:28 ok thank you for the direction Nov 16 19:26:14 hi Nov 16 19:26:22 good evening Nov 16 19:26:31 how are you Nov 16 19:27:08 fine Nov 16 19:27:28 do you know about wake locks? Nov 16 19:27:49 a bit Nov 16 19:27:56 i needed partial wake lock for certain things Nov 16 19:29:29 a wake lock is specific to an acitivity? Nov 16 19:29:55 so if you start a new activity it does not carry the wake lock of the calling activity? Nov 16 19:31:18 do you specifically mean keep screen on or cpu wake lock Nov 16 19:31:30 which are different Nov 16 19:31:43 well the screen switches off sometimes when I open a new activity Nov 16 19:32:30 if youre using FLAG_KEEP_SCREEN_ON, then yeah, its tied to activity Nov 16 19:32:45 it doesnt affect paused or backgrounded activity Nov 16 19:37:10 keppScreenOn behaves kinda weird from fragments , be warned Nov 16 19:39:14 should you call addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); in the onCreate? Nov 16 19:40:58 if you aren't using fragments, i'd just set the attribute on a view Nov 16 19:42:27 in the xml? Nov 16 19:42:51 problem is I dont have xml :) Nov 16 19:43:02 I am making the views in code Nov 16 19:45:09 Xscreensaver has my Android code in it now... Nov 16 19:59:25 I'm using Gson to parse some data into a tree. Then I'm looking at the tree to get the data... Nov 16 19:59:37 But I'm having to do "if (foo != null)" all the time. Really obnoxious. Nov 16 19:59:47 Does Gson not support the Null Object pattern? Nov 16 20:00:11 Side question: do you folks use Gson or Jackson? Nov 16 20:01:36 God, nullity is a pain. Nov 16 20:02:07 its very... exceptional Nov 16 20:03:31 Hey all. When writing an android app that largely makes use of another language, which is better to write the main application code in: Java or the other language via some sort of binding? Nov 16 20:07:08 yes Nov 16 20:11:17 I'm looking at all these open-source Reddit clients. Nov 16 20:11:26 Jooles, most people do Java for some of the UI, then JNI hooks into the rest of the code. Your code can be 100% native if you so wish though. Nov 16 20:11:30 And they all have NullPointerExceptions if Reddit ever changes the JSON. Nov 16 20:11:35 Or if bad JSON is returned. Nov 16 20:11:44 Why don't people even consider this stuff? Nov 16 20:11:45 It's weird. Nov 16 20:11:51 TacticalJoke, default your model instances to a non null value Nov 16 20:12:16 and if the JSON changes, there's really not much of value to do Nov 16 20:12:19 pfn: Hmm, not sure what you mean? Nov 16 20:12:21 might as well crash Nov 16 20:12:22 s/?/./ Nov 16 20:12:57 TacticalJoke, modelField = new Model Nov 16 20:13:15 rather than just modelField; Nov 16 20:13:30 anyone have a fix for when logcat will seemingly randomly no longer show the package name? ive restarted AS, killed and started adb but no dice Nov 16 20:14:41 Oh, I'm doing custom tree parsing. I'm not doing straight data binding. Nov 16 20:14:46 TacticalJoke, reason 2, most big Web services will version their api Nov 16 20:14:49 I'm not sure what's best, though. Is data binding faster? Nov 16 20:15:08 data binding is convenient Nov 16 20:15:15 tree parsing is ugly Nov 16 20:15:35 so api changes only occur if the version changes Nov 16 20:15:57 Ologn, that's what I was thinking of. Forgot that things could be 100% native though. Cheers. 2 languages is always better than 3 Nov 16 20:16:10 Reddit doesn't appear to send any "version number" data. Nov 16 20:16:15 Or give the option to use a particular version. Nov 16 20:17:05 in restful interfaces the version is encoded in uri Nov 16 20:17:19 I see. Nov 16 20:18:53 Hmm, I'm not seeing any version number in the HTTP headers from the Reddit server. Nov 16 20:22:50 oh hell YEAH! Nov 16 20:23:04 i found the reason behind why i got 2 buttons and not one in my tutorial app Nov 16 20:23:22 you put 2 buttons, not one Nov 16 20:23:24 am i right Nov 16 20:23:32 yes, 2 button instances Nov 16 20:23:39 and ddint realize i did that Nov 16 20:24:39 i guess it IS better to code stoned. Nov 16 20:27:44 I wonder whether Gson and Jackson are comparable speedwise when doing manual tree parsing. Nov 16 20:27:48 Gson is so much simpler to use. Nov 16 20:27:55 And the documentation is not all over the place. Nov 16 20:28:00 It's also a smaller JAR. Nov 16 20:31:43 Anyone use Android Studio? I'm trying to add a GridLayout, but neither dragging or clicking and clicking is working. Nov 16 20:31:44 so how common is it to try and write your first android app and have your code actually restart your test device whenever run Nov 16 20:32:08 i'm using Android Studio Nov 16 20:32:17 depends if this is from "your first restaring phone app" tutorial Nov 16 20:32:29 Ashiren: hahah Nov 16 20:32:32 if not, then not common Nov 16 20:32:51 no, it's not. I'm trying to scan for network services via nds Nov 16 20:33:32 Okay. Parsing this JSON by constructing a whole tree is *way* slower than flying through the stream and just taking parts we need. Nov 16 20:33:51 i'm currently trying to download some AVDs to try it out there, but on the super cheap Alcatel OneTouch i'm using for dev at the moment, whenever I try to run a scan, it restarts the device Nov 16 20:34:10 I get a message from the garbage collector every time I parse this with Gson. :/ Nov 16 20:34:15 gotta run for a sec, I'll try to provide more details when I'm back to see if anyone can help me with this Nov 16 20:34:21 Or at least the first time. Nov 16 20:35:14 Hi guys. I noticed that onRestoreInstanceState() method of one of my activities is called twice in a row after user is back to the activity from Camera activity. Why can it be called twice? Nov 16 20:36:18 Is onCreate also called twice? Nov 16 20:38:31 pfn: I know this is a weird (specific) question, but do you think it's sensible for a Reddit client to parse JSON through in a "streaming" way -- going token by token paying attention only to stuff that's interesting? Nov 16 20:38:38 Because that is *way* faster, from what I'm seeing here. Nov 16 20:38:51 TacticalJoke, yes Nov 16 20:38:59 Yes, it's called twice as well Nov 16 20:42:05 How many times is onActivityResult called? Nov 16 20:44:58 Sigh. Ghosting a nick should auto-nick and -identify. Nov 16 20:45:08 TacticalJoke, once Nov 16 20:45:09 Tedium. Nov 16 20:45:22 AlexBerdnikov: Okay. I don't know much about this, but I was googling it. Nov 16 20:45:34 This seems kinda relevant: http://stackoverflow.com/questions/9576238/activity-being-created-twice-on-android Nov 16 20:45:58 "Android may choose to destroy an Activity that is waiting for the call to onActivityResult; especially when free memory is running low." Nov 16 20:46:06 Not sure whether that's true, but it's plausible. Nov 16 20:46:50 I'd try logging onCreate, onDestroy, onActivityResult, everything. Nov 16 20:47:40 Thanks man Nov 16 20:48:02 Also google "camera oncreate twice" or something. Nov 16 20:52:31 TacticalJoke, Oh, I forgot to mention that it happens only when I change orientation of the device to vertical in Camera activity, when I use camera in same (horizontal) mode as my app's activity everything's ok Nov 16 20:52:47 It seems that the issue is with restoring activity Nov 16 20:53:00 Ooh. Nov 16 20:53:08 I'd expect the Activity to be destroyed in that case. Nov 16 20:53:15 Yes, of course Nov 16 20:53:30 Though I'd expect onCreate followed by the camera thing starting followed by another onCreate. Nov 16 20:53:33 But it works ok when I don't rotate the phone Nov 16 20:53:46 (Rather than the camera showing followed by two onCreates.) Nov 16 20:53:54 (Well, because it doesn't recreate :) ) Nov 16 20:56:30 Hello Guys Nov 16 20:57:56 I have an Eclipse and Android Error: " error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. " and " error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'. " How would I fix this? Thanks! Nov 16 21:01:44 JakeWharton: Can I keep an OkHttpClient around and just never close it manually? Nov 16 21:01:54 JakeWharton: Is this the recommended way to use keep-alive and so on? Nov 16 21:04:42 really useful for AS users, http://stackoverflow.com/questions/18206019/xml-attributes-order-in-android-studio Nov 16 21:06:13 Odaym yeah, there are some bugs with that Nov 16 21:06:41 but its pretty cool. but infuriating when it puts IDs above xmlns sometimes Nov 16 21:06:51 i fied a bug, nothing happened, meh Nov 16 21:07:01 (that has to be a root element to see) Nov 16 21:07:36 every time I start AS i need to apply that preference, for some reason it doesn't seem to set correctly Nov 16 21:07:56 How important is speed to an Android Reddit client? Nov 16 21:07:59 I'm guessing pretty important. Nov 16 21:08:30 to any app.. Nov 16 21:11:10 Well ping me if you have an answer Nov 16 21:11:13 :) Nov 16 21:11:15 speed is good, but keeping it to were process all, but use speed for what is displayed. if processing hundreds of messages, but only 4-5 are displayed, work on keeping visible fastest. Nov 16 21:11:21 Mallot1: I feel like you're giving too little info. Nov 16 21:11:23 It's like a trap. :D Nov 16 21:11:48 whatitis-: Yeah, I will do that too. Nov 16 21:11:49 TacticalJoke: What would You like to know Nov 16 21:12:41 I'm not sure. I haven't used the new Toolbar yet. Nov 16 21:13:37 have you noticed how AS autocompletes stuff that has to do with layout_below/above/etc with =@id/elementId and not =@+id/elementId Nov 16 21:15:19 and still I see you cannot comment out XML without breaking it, you still have to move the lines away from the blocks and comment them out there Nov 16 21:16:33 TacticalJoke: Running Eclipse Luna, Android-21 ( 5.0 ) all 3 styles.xml files are causing the errors Nov 16 21:17:44 ]Also using SDL2.0, SDL2_image, SDL2_mixer, SDL2_ttf, and SDL2_net Nov 16 21:18:01 TacticalJoke: ^^ Nov 16 21:24:39 Hi. When you run the following shell command from the phone: screenrecord –time-limit 60 /sdcard/xx. is there any way you can stop the recording manually? :) - before the 60 seconds Nov 16 21:25:23 stop for what purpose? you dont want the vid, or you got what you needed before 60s Nov 16 21:25:25 use ps to find the pid, then use kill on the pid? Nov 16 21:25:39 whatitis-: If i got what i needed before the 60 second timer Nov 16 21:26:14 will killing the process corrupt the video? if not go the pid kill route Nov 16 21:26:15 using it in tasker, so tried to stop the task, but that makes the video-file corrupt or something. Nov 16 21:27:21 what is the purpose of video? cant you schedule shorter timed records Nov 16 21:27:47 Sure, just want something where i can start \ stop the video length as i want. :) Nov 16 21:28:19 find another utility, or study the current one to see options Nov 16 21:28:42 why do you think i ask here? :) Nov 16 21:28:58 dunno, this isnt right place Nov 16 21:29:17 sure it is. Nov 16 21:29:41 how so, you mentioned 2 apps that you arent making Nov 16 21:29:50 this is for making apps Nov 16 21:30:09 Making app :) Nov 16 21:30:59 well that isnt apparent, if you have issue with your app, show some code Nov 16 21:31:33 just did. scroll up :) Nov 16 21:32:13 I can't seem to get GridLayout onto my form in Android Studio Nov 16 21:32:17 im good Nov 16 21:32:35 skinux, using design or text? Nov 16 21:32:41 Design Nov 16 21:33:04 just add it in text then manipulate Nov 16 21:33:35 design is a mess no matter what ide, drag drop is horrendous. just code it Nov 16 21:33:49 the text has a visual display of your changes Nov 16 21:35:33 Is Android Studio even the best IDE to use or is Titanium Studio better? Nov 16 21:36:17 yes it's the best Nov 16 21:36:22 AS is fine, but learn the xml, youll save headaches of drag drop Nov 16 21:36:59 I usually drag & drop and then fix the xml afterwards to remove the derps it creates Nov 16 21:37:31 should skip the fixing and just code the xml Nov 16 21:38:12 learn layouts and how they work, then its simple to add your views and nested groups etc Nov 16 21:39:51 drag and drop just seems like an abstraction that isnt needed. atleast with android, I remember it being easy being 14 using vb6 :) Nov 16 21:40:11 Good day, everybody. I have a simple question, is there a way to alter a statusbar color semi-easily on pre-L devices? If so, how? I've noticed it in a couple of apps, like Pushbullet or stock phone/SMS on my LG. I want to use it in my app but don't know how.. Thanks in advance. Nov 16 21:41:25 icehaunter: https://github.com/jgilfelt/SystemBarTint Nov 16 21:42:51 iffa, thank you very much Nov 16 21:43:08 is anyone seeing lots of []'s printed to the console when doing a gradle build ? Nov 16 21:43:12 Weird. AS crashed, I launched it again and now the designer didn't load and I can't even find the XML file. Nov 16 21:44:34 g00s: another AS upgrade? :P Nov 16 21:44:57 no, i've been sitting on a bunch of reworked code that i haven't tried to compile in a week Nov 16 21:45:16 when i do gradle assemblDebug, i see lots of *release* tasks being run Nov 16 21:45:19 man, this is so fucke dup Nov 16 21:45:50 Oh, by the way, is there any demo github repositories containing L-styled apps (w/ cardviews and stuff) which are backwards-compatible? Just get the hang of the basics.. Nov 16 21:47:09 hi, is it a good idea to use content providers to store data fetched from a server, if it is too hard to determine if new data is available from a different range Nov 16 21:47:35 icehaunter get more specific, cardview was pre lollipop wasnt it? Nov 16 21:47:46 effectively killing the offline caching benefit, but still being a way to retrieve data from an interent service to an activity, or is it better to just use parceables Nov 16 21:47:53 or even just not intentservice? thanks Nov 16 21:48:41 when i say 'gradle assembleDebug', is it normal that some dependencies are compiled as release ? Nov 16 21:49:04 i dont recall this being the case, but when you have 300 tasks spewed onto the screen its hard to notice Nov 16 21:49:07 whatitis was it? i thought it was only added in Lollipop and v7 support after that... Nov 16 21:49:10 icehaunter, https://github.com/gabrielemariotti/cardslib Nov 16 21:49:27 but you really need to learn how to search Nov 16 21:49:39 you will have more trouble if you're not able to search prior to code Nov 16 21:50:24 g00s, yes it is normal Nov 16 21:50:33 Was that enough info TacticalJoke ? Nov 16 21:50:37 adq, i've seen this library, but have thought that it is just a kind of replacemant of google's CardView Nov 16 21:50:56 adq do you get bunches of [] in the gradle console / logs with 0.14 ? Nov 16 21:54:01 g00s, nope Nov 16 21:54:58 adq i'm pretty sure when i said 'gradle assembleDebug' all of my sub-modules were compiled in debug mode Nov 16 21:55:06 guys, findViewById() is returning null Nov 16 21:55:07 wtf Nov 16 21:55:17 even though i'm calling it after setContentView Nov 16 21:55:31 prove it! :) Nov 16 21:55:32 g00s, I've read somewhere but i don't recall where that it is also based on the release branch for some stuff Nov 16 21:55:39 and it was from xavierducrochet iirc Nov 16 21:56:01 adq release branch ? Nov 16 21:56:12 wait min, the setContentView() sets a layout that doesn't contain what i'm doing findViewById() on Nov 16 21:56:13 the fact that the debug one uses the release too Nov 16 21:56:15 is that the problem? Nov 16 21:56:28 duh Nov 16 21:57:15 OverCoder, probably Nov 16 21:57:58 adq, wow thanks a lot, I have looked into the library and it looks precisely like what I seek. Shame overlooked it earlier. Nov 16 21:58:03 adq, what can i do about it? Nov 16 21:58:09 no its 100, if you just do findview on currently set layout, if the view you are looking for isnt in it itll be null Nov 16 21:58:20 overcoder, where is the view Nov 16 21:58:29 in another layout file Nov 16 21:58:45 actually i'm trying to implement NavigationBar into my app manually Nov 16 21:59:54 your gonna need to post code that is relevant. of course you can get a reference from another layout calling findview on current inflated. youd need a reference to your other layout inflated and call find on that Nov 16 22:00:09 cant get* Nov 16 22:01:16 * OverCoder posts code Nov 16 22:01:27 working through the http://developer.android.com/training/basics/firstapp/creating-project.html#CommandLine tutorial with everything recent but still running into problems with the Tutorial. Application has stopped unexpectedly. How do I go about getting help? Nov 16 22:01:51 or maybe there's a revised version of the tutorial (without using fragments which isn't mentioned in the tutorial, but it's in the code anyways) Nov 16 22:01:58 read/check stacktrace in logcat Nov 16 22:02:49 "Could not find a method SendMessage(view)" <--- I guess that's my problem, huh Nov 16 22:03:03 sounds like a start Nov 16 22:03:56 it should give you a line # where the error occurred in your code, and you work from that Nov 16 22:04:22 activity_main.xml -> http://pastebin.com/e2QiPJ9Y | navigation_bar_main.xml -> http://pastebin.com/JZ8bFFUk | onCreate() -> http://pastebin.com/SEN8SaYV Nov 16 22:05:59 you need to merge/include your navigation into activity main. or make navigation a fragment and include that in activity main Nov 16 22:07:13 hmmm Nov 16 22:07:18 that's the only option? Nov 16 22:08:11 im sure its not. but I dont know your app, I just know that if you want both as one, you need to make them both as one Nov 16 22:08:57 there are a bunch of ways to use 2 layouts in one. youve gotta decide Nov 16 22:09:53 you cant just write a layout in xml, not inflate it or attach it, and expect to find views in it Nov 16 22:11:51 Google Chrome, y u so slow. Nov 16 22:11:56 hey guys. I'm trying to import the facebook sdk to my android project. After I add the facebook sdk to my project's libraries, I get tons of errors (such as 'Circle cannot be resolved to a type', 'x cannot be resolved to a type') anyone know how to fix it? Nov 16 22:12:20 seems you should look more into fragments. you can keep activity main w toolbar and navigation and add other fragments views that change upon changes in nav etc.. keeping one main activity Nov 16 22:12:40 whatitis-: where does it give the line number? I see numbers like 2131... how do I know where that points to in my code? Nov 16 22:13:14 hi Nov 16 22:13:35 I'm trying to build with gradle plugin 0.14.2, but it keeps downloading (and using) 0.13.3 Nov 16 22:13:50 applesinarrays, in logcat you get a stacktrace, that trace starts from error and trickles down methods that led to error. look for your class and it shows the line Nov 16 22:13:52 and then it fails, saying the version is not supported (in android studio 0.9.3) Nov 16 22:14:51 apples, post your stacktrace. or simply since you know the method that caused error, find out why that method is failing Nov 16 22:16:15 whatitis-: http://snag.gy/gm7Su.jpg Nov 16 22:16:18 Where do I find this stack trace? Nov 16 22:16:58 I know what's failing right now for the most part, but I'd like to know a little more about the debugging tools since I spent ilke 4 hours on it this morning. Nov 16 22:17:14 the red Nov 16 22:17:31 start top work down, looks like error in a button click Nov 16 22:18:04 In this case no line because it's a missing method, yeah? Nov 16 22:18:36 its in an onclicklistener, search your code for that SendMessage method Nov 16 22:18:56 sendMessage--> SendMessage, fixed. Nov 16 22:19:09 that image cuts off, but it shows your class Nov 16 22:19:46 next time is best to paste the text of logcat to pastebin of choice, dont make screenshot Nov 16 22:19:54 anywho, did you get it? Nov 16 22:20:05 It doesn't break anymore. Thanks a lot. Nov 16 22:20:15 cool :) Nov 16 22:20:34 shift-select row,by row then paste into pastebin? Nov 16 22:21:01 with line #s look for your.class:XXX, xxx is your line number in that class Nov 16 22:21:11 So I found the error. It was due due have android-support-v4.jar in both FacebookSDK project and my project. Now that I have deleted FacebookSDK's lib, it now has the errors...How cna I fix this? Nov 16 22:21:21 just anyway you can copy the text Nov 16 22:22:09 you maybe able to double click the tracd and itll bring you to that line, depending on ide maybe Nov 16 22:22:16 Anyone having issues with Nexus 5 release Lollipop, battery is draining really fast Nov 16 22:23:34 i remember reading a while back (few weeks maybe) there was a known issue with battery drain. that's all i have to add to that question :) Nov 16 22:27:31 Can anyone help me out? I am trying to import the FacebookSDK to my project. I imported it, added it to my project's libraries, and there comes my first error. Console says it's finding two versions of android-support-v4: one in the Facebook SDK and one in my project. So I delete the one in the FacebookSDK project and now my project has 0 errors but FacebookSDK now has errors because it doesn't have that lib anymore...How do I go Nov 16 22:28:51 sounds like a project dependency problem Nov 16 22:29:03 module dependency* Nov 16 22:29:30 [ 271211] WARN - nal.AbstractExternalSystemTask - The project is using an unsupported version of the Android Gradle plug-in (0.13.3). The recommended version is 0.14.2. Nov 16 22:29:47 how do I get it to use 0.14.2? Nov 16 22:30:04 bankai_au : how would I solve this issue? Nov 16 22:30:30 make the facebook module dependent on your other module, the one that contains v4 support Nov 16 22:31:32 i'm using eclipse. how would i do that? Nov 16 22:33:47 sorry, i was AFK whatitis-, but anyway thank you i'll do it Nov 16 22:34:26 Ugh, Jackson is yucky. Nov 16 22:34:30 So messy and weird. Nov 16 22:34:51 why not use GSON ? Nov 16 22:37:20 overcoder, just have to decide how your app will flow. if only needing a single actvity look into fragments to swap nav changes. there are bunches of ways, but to keep a static toolbar and nav look into fragments to swap nav.think I got redundant :) Nov 16 22:37:51 Thanks a lot :) Nov 16 22:38:00 actually yes, my app is all about a single activity Nov 16 22:38:15 Yeah, I'm thinking of just using Gson. Nov 16 22:38:21 Do you prefer Gson, bankai_au? Just wonderin'. Nov 16 22:38:42 yep, use it in a few projects Nov 16 22:38:47 then in main activity, keep your toolbar and nav, and add a container to deal with where the app is Nov 16 22:39:06 doing so :) Nov 16 22:39:50 Gson just looks so much simpler and nicer. Nov 16 22:39:52 what is the nominal navigation bar width? Nov 16 22:40:17 Stuff such as JsonReader.hasNext, JsonReader.beginArray... they just make code better. Nov 16 22:40:33 And I don't have to worry about the parser closing my Reader. Nov 16 22:40:45 think they have suggestions on google. can use different value identifiers to set based on layout Nov 16 22:40:46 Isn't it weird that Jackson does that by default, even if Jackson didn't create the Reader? Nov 16 22:40:58 Why close someone else's Reader by default. Strange behaviour. Nov 16 22:41:23 mhmm Nov 16 22:42:20 Oh, gawd, Gson is so much nicer. Nov 16 22:42:21 overcoder, sure they mayhave design guidelines, but if using those create excessive whitespace, make your own guidelines :) Nov 16 22:42:22 Anyway. Nov 16 22:42:49 k :) Nov 16 22:43:01 * OverCoder is stupid Nov 16 22:43:04 * OverCoder is so stupid Nov 16 22:43:18 why i don't read docs :/ Nov 16 22:43:28 it would make things easier, i'm just playing with that IDE :/ Nov 16 22:43:31 less that, maybe more less expierenced Nov 16 22:43:41 idk Nov 16 22:43:59 i used to code Java easily, i'm just stuck in android in things like fragments etc Nov 16 22:44:20 practice practice practice Nov 16 22:44:29 and tons of trial and error :) Nov 16 22:45:08 OverCoder: I know what you mean. So much of Android feels like that. Nov 16 22:45:22 Programming on Android is like wrestling a bear. Nov 16 22:45:33 lol Nov 16 22:45:46 fragments are useful. to more experienced they negate fragments for their own implementations. but fragments are awesome Nov 16 22:46:20 i can feel that they're awesome, but i can feel that there's 120% percent that i will fail implementing it Nov 16 22:46:22 :P Nov 16 22:46:42 yea actually they're useful Nov 16 22:46:46 just start using em to get the quirks out Nov 16 22:47:32 yea i think i should Nov 16 22:47:49 I guess, on the plus side, we're not using PHP or C++ or something. It could be worse. Nov 16 22:48:02 (This "It could be worse" thing is a reasoning error, but it seems to make us feel better anyway.) Nov 16 22:49:09 they have life cycles and such, just read up on em. and do test to check those and understand em. then realize they behave a bit different than activities but in the end they can be powerful and almost stronger than activities Nov 16 22:50:53 TacticalJoke++ Nov 16 22:51:17 well i read a piece of the docs Nov 16 22:51:27 such as activities life-cycles etc Nov 16 22:51:27 Hmm. Does it matter if I don't call Gson's JsonReader.close? Nov 16 22:51:33 anytime I add a new fragment, even if not needed I override ever lifecycle event and add a log.d to it, simply to understand how its working in relation to what I want Nov 16 22:51:34 i also read the whole design docs Nov 16 22:51:39 I don't wanna close the Reader. Nov 16 22:51:52 i don't even know what is Gson :P Nov 16 22:52:05 I see that it calls "stack.clear()", but I don't know whether that's needed. Nov 16 22:52:11 nice Nov 16 22:52:17 OverCoder: A JSON-parsing framework. Nov 16 22:52:57 o Nov 16 22:53:26 i parse it using no external libraries Nov 16 22:53:30 (iirc) Nov 16 22:53:42 i used to parse JSON a lot Nov 16 22:53:45 You parse JSON manually? Nov 16 22:54:07 no i mean i use some library but not external (i mean not downloaded or a JAR or whatever) Nov 16 22:54:31 I use JSONObject and JSONArray, that's most of it :P Nov 16 22:54:51 Ya. I'm using Gson in place of that for updates and stuff. (Also for easy JVM unit testing.) Nov 16 22:55:08 that's ok too Nov 16 22:55:12 This is the kind of stuff unit testing was made for. :) Nov 16 22:55:17 as long as it does the job it's ok :P Nov 16 22:55:19 I love unit-testing text-parsing stuff. Nov 16 22:55:24 mhmm Nov 16 22:55:32 have you ever made an irc bot? Nov 16 22:55:54 I made an IRC client one time, and it began as a bot. Nov 16 22:56:01 nice Nov 16 22:56:04 https://github.com/MicroDroid/Ice Nov 16 22:56:22 this is mine, i stopped developing it suddenly, so some parts are incomplete Nov 16 22:56:24 Yeah, I remember your showing me that the other day. :) Nov 16 22:56:32 oh :P Nov 16 22:56:54 Bbiab. Nov 16 22:57:04 hm? Nov 16 22:58:12 * OverCoder reads the docs Nov 16 22:58:19 i'm just lost bitch trying to get out with an app Nov 16 22:58:47 (well i made a one that i'm proud of :3 but it's really nothing :/) Nov 16 23:00:10 get out with an app is just to publish anything. youve set a standard for yourself, dont let that standard keep you stale. I have that issue Nov 16 23:04:49 app ive been working on for months is one extraction from a larger app, but damn so many details have kept me down. even tho by time I get this one portion done it maybe moot for newer android. sucks :) Nov 16 23:17:33 anyone android programming on linux without probs? Nov 16 23:17:51 whats yours Nov 16 23:18:11 i use linux now becuase mac os x remove java 7 Nov 16 23:18:45 whats giving you problems? Nov 16 23:19:16 i just asking if itworks with linux that all. Nov 16 23:19:43 Sorry Nov 16 23:27:24 Hi Nov 16 23:28:05 In ListView, will convertView be exactly what it was? Nov 16 23:28:18 texts, backgrounds, etc... Nov 16 23:29:41 convertview is related to adapter Nov 16 23:31:49 http://www.propublica.org/article/somebodys-already-using-verizons-id-to-track-users Nov 16 23:32:08 vpn, don't use http, etc. spdy2 Nov 16 23:39:33 capella-s3 http://www.salon.com/2014/11/16/googles_secret_nsa_alliance_the_terrifying_deals_between_silicon_valley_and_the_security_state/ Nov 16 23:44:02 Hey peeps, I want to deserialize multiple representations of the same object type onto one model, is there a way to apply different annotations onto the same fields? Maybe through inheriting from the model? Nov 16 23:45:22 They don't have the same properties? Ex name and name in both? Nov 16 23:45:59 pieces029: my app is going to work with different train network apis, they all have a concept of stations and other train info Nov 16 23:46:21 but they use different names and terms Nov 16 23:46:28 Actually more importantly, what lib are you using or are you talking about straight object serilization? Nov 16 23:46:45 so I need to be able to take a generic object annotate it for each one Nov 16 23:47:10 SimpleXML for the two I've looked at so far, but I may need to do some with GSON in the future Nov 16 23:47:32 they'll be deserialised by different api setups, they just have to end up with the same objects Nov 16 23:47:46 And although I don't know about all serialization libs, but I use gson the most, and there is not a way. I would recommend making differnet model objects and then a mapper that takes them all in and returns the single big object you are looking for. Nov 16 23:48:28 pieces029: yeah, I was hoping that there might be some way to avoid that using inheritance Nov 16 23:49:18 Gson doesn't operate on an object you give it, so unless you start mashing strings of json together, and they all have unique feilds there isn't. Nov 16 23:50:04 pieces029: wha? GSON uses the class model you provide to deserialize responses Nov 16 23:51:17 if I only had one json endpoint and one xml endpoint to map to I could just annotate the same field with both an @SerializedName and an @Element Nov 16 23:51:57 Whats the best way to position a view absolutely? Nov 16 23:52:07 I want a button to always be at the bottom of the screen Nov 16 23:52:35 use correct layout and alignParentBottom true Nov 16 23:53:03 I tried that with a relative layout and it didn't work, which layout should I choose? Nov 16 23:53:15 ciree: I would recommend RelativeLayout or FrameLayout Nov 16 23:53:23 Ankhwatcher: alignParentBottom ? Nov 16 23:53:38 ="true" yes Nov 16 23:54:25 ciree: the RL better be android:height="match_parent" Nov 16 23:54:42 ciree, without a post or atleast words of what you have now, its all guesswork Nov 16 23:54:52 Ankhwatcher: @Element? Nov 16 23:55:02 under FrameLayout you would position using layout_gravity="bottom" Nov 16 23:55:06 if you are wrapping in a scrollview etc, things change Nov 16 23:55:06 it works..I had layout_height as match_parent which messed it up Nov 16 23:55:23 Also the call is gson.fromJson(String, Class), how would you pass multiple or a prepopulated object into thta? Nov 16 23:55:27 pieces029: SimpleXML's equivalent of @SerializedName Nov 16 23:55:32 oh Nov 16 23:56:21 maybe i can apply multiple @Elements to the same values Nov 16 23:56:30 although that could get messy Nov 16 23:56:57 most of these train systems have a unique string identifer for each station and also a station name Nov 16 23:57:14 I wouldn't be surprised if I found an api which had the opposite names to another api Nov 16 23:57:26 I'm looking to be able to look through the camera preview and 'run it through' OpenCV. Is http://developer.android.com/training/camera/cameradirect.html on the right track for what I want? Nov 16 23:59:51 pieces029: I'm implementing this through building retrofit services, so I'll be making calls to different services, the will operate differently but return the same result Nov 17 00:00:02 Sorry, should have searched first. OpenCV on Android: http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/O4A_SDK.html Nov 17 00:00:03 I'm not manually running GSON conversions Nov 17 00:00:39 Ankhwatcher: I don't understand how that applys to stacking objects. Nov 17 00:01:02 But good luck to you. Nov 17 00:01:44 pieces029: you'll see... they'll all see mwhaha etc etc Nov 17 00:03:29 * g00s firing up his moto droid-1 Nov 17 00:03:59 g00s: do you have to rev it up with a rip cord? Nov 17 00:04:34 when it started, it says "droiiid" Nov 17 00:04:38 omg Nov 17 00:04:40 lol Nov 17 00:04:51 did boulders rain from the sky? Nov 17 00:05:00 is it watching you with an evil red eye? Nov 17 00:05:00 when i click on something it takes like 500ms for any indiciation Nov 17 00:05:05 don't motorolas still do that? Nov 17 00:05:23 DROOOOID, always fun in a quiet office. Nov 17 00:05:35 nah, that wa verizon thing Nov 17 00:05:40 *was a Nov 17 00:06:05 over there they "miiiilestone" Nov 17 00:06:25 s/there/here - what's wrong with me? Nov 17 00:06:51 hmmm... i also left out the word said... perhaps I require sleep Nov 17 00:13:36 good night everyone :) Nov 17 00:22:46 * g00s salutues ravioli and goes to Play store from his droid-1 Nov 17 00:23:58 gotta improve those froyo stats! Nov 17 00:44:53 hey guys, trying to get my Nexus4 up to lollilop after Droid Life shared the OTA link Nov 17 00:45:04 but I've only 442 on it atm Nov 17 00:45:17 I've downloaded the update for 443, then 444 now Nov 17 00:45:28 but even installing 443 is giving me gried Nov 17 00:45:48 so 5 isnt the issje Nov 17 00:45:51 issue Nov 17 00:45:58 ... expects fingerpring of /mako:4.4.2/KOT49H/937116 Nov 17 00:46:03 *fingerprint Nov 17 00:46:10 nope 5 isn't the issue Nov 17 00:46:13 but that's my goal Nov 17 00:46:35 ... this device has /mako:4.4.2/KOT49H/937116... Nov 17 00:46:44 well expecting 4.4.2 if on it already, you are using wrong updates Nov 17 00:46:47 it says it's expecting the fingerprint that it's finding Nov 17 00:47:02 huh? Nov 17 00:47:21 it's reading what it's updating from, no? Nov 17 00:47:30 exactly, you are out of your element Nov 17 00:47:41 and wrong channel Nov 17 00:47:51 sorry about that Nov 17 00:48:04 which channel would suit better Nov 17 00:48:14 Read the topic :) Nov 17 00:48:18 do the work Nov 17 00:49:36 nm Nov 17 00:49:39 you're right Nov 17 00:49:42 I was dumb Nov 17 00:49:49 I just needed to go to 444 Nov 17 00:49:53 I was on 442 Nov 17 00:49:57 *443 Nov 17 00:50:03 so no need to go to 443 Nov 17 00:50:05 as you said Nov 17 00:50:22 444 is currently going on, 5 soooooon Nov 17 00:50:29 while not right channel, thanks anyway Nov 17 00:50:31 wrong channel, ao quit using enter as interpunction Nov 17 00:50:40 also* Nov 17 00:50:47 am going, just wanted to say thanks Nov 17 01:17:25 Anyone here familiar with creating sync adapters? I'm having a time-critical problem and so far, all I've gotten was sarcasm instead of help :/ Nov 17 01:18:51 I created a contact adapter with android:contentAuthority="com.android.contacts" which contacts apps consider contacts added this way as read-only. Nov 17 01:19:03 Rather, it says the account is read-only. Nov 17 01:20:00 From the Android 2.2 source code at the very least, I found that android:supportsUploading="true" should work (Though having no device less than 4.4 makes that impossible to check) but this isn't so with 4.x Nov 17 01:26:06 What's the fastest JSON library for simple streaming? Nov 17 01:26:23 I want something as fast as Jackson without the yucky API. Nov 17 01:37:19 Jackson is about as good as it gets Nov 17 01:39:09 Okay. Nov 17 01:39:21 TacticalJoke, as to your question earlier, I'd only use a stream parser if it were performance critical or memory bound Nov 17 01:39:36 otherwise I would just about always use data binding Nov 17 01:39:48 stream parsing lacks the clarity of data binding Nov 17 01:39:54 K. Nov 17 01:55:29 Hmm. Doing Jackson tree-parsing stuff is about as fast as doing straight streaming. Nov 17 01:55:39 According to what I'm seeing, anyway. Nov 17 02:13:50 Completely new to non-web-dev stuff. OpenCV is mostly C++ stuff. Will I be able to include it in an Android Project somehow when the time comes? Trying to figure out the general direction I should be taking for this project Nov 17 02:17:21 There's guides on how to use OpenCV with Android but generally, there are ways to use C++ in Android using NDK Nov 17 02:18:25 It's typically better to use Java as much as possible (I believe someone ported OpenCV to Java as well) but if that's not an option, just remember that you'll have to compile for multiple archs. Nov 17 02:18:31 I guess I was thinking I should learn OpenCV on its own before mixing it in with Android as it's a bit painful for me Nov 17 02:19:00 If I did OpenCV in Java, porting to Android later might be easier, no? Nov 17 02:19:47 Generally speaking, yes. Nov 17 02:20:06 But my experiences in porting to Java have been VERY mixed, but when it's been bad, it hasn't been too bad. Nov 17 02:22:52 I should become familiar with Eclipse environments in general, Android development according to official tutorials, OpenCV for Android Nov 17 02:25:54 I'd personally avoid Eclipse because Android Studio is mature enough and Eclipse is a terribly unstable IDE Nov 17 02:26:23 What would you suggest? Nov 17 02:26:34 The only downside being that Android Studio is constantly changing and they seldom provide enough information to fix your old projects for the new changes. Nov 17 02:26:36 I feel the opposite, ThymeCypher. Eclipse is stable and AS is not, in my experience. Nov 17 02:26:58 TacticalJoke Are you on a Mac? Nov 17 02:27:01 Windows 7. Nov 17 02:27:06 Could OpenCV work well with Android Studio? W7 here Nov 17 02:27:08 That's probably why ;P Nov 17 02:27:44 I've been reading up on android dev for a day or so and Android Studio hasn't come up yet Nov 17 02:27:52 Looks like I'm missing a lot of big ideas Nov 17 02:28:09 I've had a flood of issues with Android dev since switching to Mac, but I haven't tried Android Studio on PC yet. I can see Eclipse being better on Windows. Nov 17 02:28:12 Trying to figure out what my 'stack' is going to be. Nov 17 02:28:55 The way I see it though, Android Studio will eventually be the primary IDE, so if you're already starting from scratch, it's usually best to learn along side a developing product, as the changes give insight as to how things work. Nov 17 02:29:09 Android Studio doesn't have NDK support. That might hurt me as far as OpenCV goes, yeah? Nov 17 02:29:49 There's ways around it - one neat one I saw being using Visual Studio Express to compile native libraries, it's not impossible but it's complex for sure. Nov 17 02:30:11 Annoyingly, they said NDK support was planned a good 20 versions ago to be in the "next version" :/ Nov 17 02:31:36 http://blog.hig.no/gtl/2014/08/28/opencv-and-android-studio/ looks simple enough Nov 17 02:32:47 does this solve it completely: http://stackoverflow.com/questions/17767557/how-to-use-opencv-in-android-studio-using-gradle-build-tool ? Nov 17 02:32:52 As long as the precompiled libraries are enough for you - they should cover all consumer level devices after all. AS just doesn't support NDK compiling but it can use said libraries. Nov 17 02:33:05 This is on the JVM: jackson-tree: ~0.30s | jackon-streaming: ~0.49s | gson-tree: ~0.60s | gson-streaming: ~0.18s Nov 17 02:33:07 ok. Precompiled libraries aer fine. Nov 17 02:33:11 Not sure whether that holds on Dalvik or whatever. Nov 17 02:33:22 Gson streaming wins! Nov 17 02:33:23 That little test. Nov 17 02:33:30 That's one Reddit front-page listing. Nov 17 02:33:39 Had no idea GSON supported streaming. Neat. Nov 17 02:33:50 Yeah. Not sure whether it's a new feature or not. Nov 17 02:33:55 Android Sutdio 0.8.14 is the one to use? Nov 17 02:33:56 Then again, this is the first I'm hearing of streaming JSON ;P Nov 17 02:34:04 ApplesInArrays Yep. Nov 17 02:35:14 Hmm. On my phone, jackson-stream feels way faster. Nov 17 02:35:26 I'm also getting less garbage collection. Nov 17 02:36:14 Okay, I remember why I avoided Google's sample code as often as possible - it's full of lies and inconsistencies. Nov 17 02:36:37 "Two way contact sync with device and server" - nope, definitely read-only -_- Nov 17 02:37:28 Hey guys, quick question, I was using listview to display data, and I am switching to using tablelayout with trablerows, and using Textview to display them. Would I use an arrayadapter or arraylist? Nov 17 02:38:21 or neither? Nov 17 02:38:27 TacticalJoke are you using ART then? Nov 17 02:38:34 No, ThymeCypher. Nov 17 02:40:41 Demon_Jester you usually use adapters for any kind of list. Nov 17 02:40:58 There's a TableView I believe, isn't there? Nov 17 02:41:21 I am using tablelayout, and tablerows, I never had to use tableView Nov 17 02:42:29 I generally avoid tabular data because it's hard to handle the layouts sometimes. You'll have to populate it manually most likely. Nov 17 02:43:13 what would you recommend for grid style layout? cause I thought I was achieving grid style using textview and table rows. Nov 17 02:45:04 Is there any reason you can't use explicit widths? Nov 17 02:45:28 omg nevermind, I am going back to list view. I just realized I didn't set the gravity Nov 17 02:45:31 ok were good. Nov 17 02:45:48 that was my main problem. Nov 17 02:45:52 and i thought i did. Nov 17 02:46:14 This is why I like having designers to work with :P Nov 17 02:47:17 Hi everyone. Could somebody help me decipher this error message please. #java thinks it may be an issue because im using AIDE Nov 17 02:47:20 http://rifers.org/paste/show/3166 Nov 17 02:48:13 callMeQ: so the first thing to ask is if it happens if you try to build the same code using a regular SDK on a PC Nov 17 02:50:01 Wild guess here, but you either lack INTERNET permissions or you have no connection. Nov 17 02:51:16 You'll usually get an error about missing said permission but I've had even OkHttp complain about bad responses instead under unusual circumstances. Nov 17 02:51:20 callmeQ if you have internet permission make the word INTERNET is all caps. Nov 17 02:55:41 g00s: wow ... thanks Nov 17 02:56:00 Well, the real app works fine if just comment out the jsoup section. Ive built it all up and it worked fine but as soon as i tested jsoup its broke so i started a new project soley to test jsoup and even that doesnt work. **** ENDING LOGGING AT Mon Nov 17 03:00:00 2014