**** BEGIN LOGGING AT Fri Jul 03 02:59:59 2015 Jul 03 03:10:45 now it says "tools" was not installed Jul 03 03:10:51 is that going to be a problem? Jul 03 03:31:46 A lot of subreddits are going down: https://www.reddit.com/live/v6d0vi6c8veb Jul 03 03:32:00 Feeeee: Which OS are you using? Jul 03 03:34:58 reddit is a total mess. Jul 03 03:37:30 TacticalJoke: what is going on on reddit? Jul 03 03:37:47 explodes: Victoria, the AMA queen was fired Jul 03 03:38:08 :I and so every sub is protesting? Jul 03 03:38:28 many are Jul 03 03:38:33 Yeah. There's also the fact that /r/IAmA was simply taken down in the meantime (they had no plan, apparently). Jul 03 03:39:15 why was she fired? where can i read about this calamity Jul 03 03:39:28 Nobody seems to know. Jul 03 03:40:11 desmin88 i think its kinda funny actually; all these people volunteer their time to (insert website here) and realize their are essentially free labor but think they are more (so they protest) Jul 03 03:40:11 so people are protesting about something they know nothing about? Jul 03 03:41:01 They're protesting because the admins are making a mess of reddit, suddenly firing a well-liked person and taking down their key subreddit because they had no back-up plan. Jul 03 03:41:28 I see. Jul 03 03:41:41 The Jesse-Jackson AMA looks ridiculous though. Jul 03 03:41:47 http://gawker.com/reddit-in-chaos-after-allegedly-firing-ama-coordinator-1715556970 Jul 03 03:41:52 s/had/have/ Jul 03 03:42:09 * g00s thinks we should just go back to usenet Jul 03 03:42:50 or just spend more time here :) Jul 03 03:43:09 oh neat, 2 people bought my iap Jul 03 03:43:14 #android-dev has been my only source of truth since 1987 Jul 03 03:43:53 TacticalJoke: I'm trying to make sense of you Live link, what are people posting? Jul 03 03:44:05 comp.os.android ftw Jul 03 03:44:09 This is probably better: https://www.reddit.com/r/SubredditDrama/comments/3bwgjf/riama_set_to_private_over_mod_firing/ Jul 03 03:44:27 CedricBeust heh, i remember comp.lang.lisp, python, c++ Jul 03 03:44:40 eric naggum giving everyone hell haha Jul 03 03:44:53 I remember comp.lang.c having the most anti-social people in existence. Jul 03 03:45:14 worse than reddit? Jul 03 03:45:16 TacticalJoke: I can think of worse communities today :) Jul 03 03:45:32 reddit is fine, just pick your subreddits carefully, it's the most interesting thing to happen since usenet Jul 03 03:45:48 I remember this guy Dan Pop. He would insult people every message. lol Jul 03 03:46:00 Basically call the person he was talking to dumb, stupid, etc. Jul 03 03:48:40 TacticalJoke: OH The "live" link made no sense because with the DARK THEME the TEXT is the same color as the BACKGROUND Jul 03 03:48:47 Doh. Jul 03 03:48:56 I get it now Jul 03 03:49:20 RES night-mode fail Jul 03 03:53:27 well at least /r/watchpeopledie will stay up Jul 03 03:53:30 lol Jul 03 03:53:37 That's the worst ever. Jul 03 03:53:42 Haven't been there in years. Jul 03 03:54:12 TacticalJoke: someone earlier said "TacticalJoke where is my reddit app" What was he talking about? Jul 03 03:54:21 I'm making a reddit app. Jul 03 03:54:31 Oh. Jul 03 03:55:34 Have you made a famous app already? Jul 03 03:56:18 It hasn't been released yet. Jul 03 03:57:02 lol ok ill be patient Jul 03 03:59:15 https://np.reddit.com/r/pics/comments/3bwev7/i_had_the_pleasure_of_meeting_uchooter_in_person/csqef27?context=3 Jul 03 04:00:13 It's okay; I'm impatient too. Jul 03 04:04:59 Anyone know of a good Impression CTR? Jul 03 04:05:06 like, whats a good percentage to have Jul 03 04:09:10 let me pull up some shit Jul 03 04:09:45 nevermind my access is gone from my old job :P Jul 03 04:10:11 About 7 hrs after launch im sittin at 309 impressions w/ .65% CTR Jul 03 04:10:49 A Jul 03 04:10:57 woops... A single dime has been made Jul 03 04:18:43 Is there a way to tell pre-load an observable but tell it not to emit until it is subscribed on Jul 03 04:22:11 desmin88 something like this? http://stackoverflow.com/questions/27229709/rxjava-network-requests-and-caching Jul 03 04:22:50 Heres what I'm trying to achieve. I have a large object that isnt easy passed through an intent. Jul 03 04:23:09 Is it worth migrating from dagger 1 to dagger 2 :I Jul 03 04:23:23 I'm sure it is- but why? Jul 03 04:23:33 I want my activity to subscribe to an observable upon creation, that is preloaded with the object and will emit the object once subscribed to by the new activity Jul 03 04:25:37 I have noticable delays due to parceling and just passing the object through an rxjava observable would speed things up Jul 03 04:26:04 .cache() will probably be your friend if the observable emits a single item Jul 03 04:26:20 explodes: One rason is proguard friendliness Jul 03 04:26:22 it does Jul 03 04:26:49 although im not familar with its usage Jul 03 04:27:36 desmin88: I'm always a bit suspicious when people say they use parcelization, do you absolutely need it? Jul 03 04:27:39 when you .cache() an observable, after items have been emitted, subsequent subscriptions will get all of the items up to that point, plus any new items that come down the pipe. if you have only 1 item, you can look at it as if it just rebroadcasts your data Jul 03 04:28:02 CedricBeust: I'm passing a large Model object across activities Jul 03 04:28:39 desmin88: Did you look into passing an id and saving/loading it from db? Also, do you need the full thing to be loaded? Jul 03 04:29:26 It's actually comes from a retrofit service, and I parcelize only the necessary parts of it Jul 03 04:30:14 http://pastie.org/10270979 Jul 03 04:30:59 How big is this thing? How long does it really take to parcelize? Jul 03 04:31:54 1 Sec, I'll pull up an example for you Jul 03 04:32:07 No need, just say your timings Jul 03 04:32:41 Can take anywhere from 40ms to 1s+ depending on content size Jul 03 04:32:50 I'll get a bunch of dropped frames and cartographer complains Jul 03 04:33:27 uh Jul 03 04:33:36 40ms or 1 second? former is irrelevant, latter is unacceptable Jul 03 04:33:45 and you should certainly never hydrate that on the main thread Jul 03 04:33:59 The longest ive seen is 1 second, but that may be a fluke Jul 03 04:34:18 I bet it is Jul 03 04:34:20 The range of 250 is my most comment Jul 03 04:34:26 common* Jul 03 04:34:33 More importantly, why do you do this on the main thread? Jul 03 04:34:38 desmin88 looks like you are putting bitmap data in the parcel ? Jul 03 04:34:59 i almost never use parcelable within my own app Jul 03 04:35:21 CedricBeust: Because I'm an amateur, heh Jul 03 04:35:28 g00s: Just really large wordpress posts Jul 03 04:36:03 desmin88: Go pro, man, do this on a background thread and post on the main thread when you're ready Jul 03 04:36:33 Wait, just using dagger 2 instead of dagger 1 Just Werks? Jul 03 04:36:47 Nope no it doesn't nevermind Jul 03 04:37:30 need some work to convert but nothing really big Jul 03 04:39:12 Admittedly I'm poor at architecting Android apps, self-teaching Java then Android hasn't really instilled the best practices in me Jul 03 04:39:59 it's pretty easy to tell RxJava to throw an operation onto a background thread Jul 03 04:40:09 yup Jul 03 04:40:25 yeah thats what i did with the jsoup scraping and post processing, never thought about that for this purpose though Jul 03 04:40:42 Never, ever do anything on the main thread that doesn't update the screen Jul 03 04:40:46 as for being poor at android or whatever, all you really need to take away here is that disk i/o, network i/o, and most anything you can do with a bitmap, generally try to keep that kind of stuff off the main thread Jul 03 04:41:01 I'll tell RxJava to parcelize my object in a background thread, then cache it for my activity to receive Jul 03 04:41:41 desmin88: And again, really, really make sure you need to parcelize. I'm not at all convinced you need to Jul 03 04:42:46 Well I could just pass the actual object through rxjava to my activity Jul 03 04:43:33 You said they are in different activities? Jul 03 04:43:37 Yes Jul 03 04:44:18 Save your object to the db (might already be there) and pass the id Jul 03 04:44:47 you said the thing you were sending between activities was an image? Jul 03 04:44:48 hmm Jul 03 04:44:53 CedricBeust: what does your build.gradle look like w/ gradle 2? I'm getting missing annotation or something Jul 03 04:44:57 or did i misunderstand Jul 03 04:44:58 no its a huge wordpress pojo Jul 03 04:45:03 ah Jul 03 04:45:21 CedricBeust: woops, with Dagger 2, not with Gradle 2 Jul 03 04:45:46 explodes, you need to include a thing in your gradle to make dagger 2 work Jul 03 04:45:55 sigmabeta-laptop: yes Jul 03 04:46:19 sigmabeta-laptop: I need a very specific set of words Jul 03 04:46:31 i believe it is: provided 'org.glassfish:javax.annotation:10.0-b28' Jul 03 04:47:50 explodes: Pretty straightforward, read the docs seriously Jul 03 04:48:37 desmin88: Do you need this entire pojo to render your screen? Jul 03 04:48:59 CedricBeust: I trimmed parts of it but yes I do Jul 03 04:49:09 CedricBeust: I added the dagger 2 dependencies and then it complains about javax.annotation, then it complains about apt, then it complains about not being able to find the apt dependency Jul 03 04:49:55 the dagger2 docs dont really go too deep into android-specific usage, but i think this should do you good: http://code.tutsplus.com/tutorials/dependency-injection-with-dagger-2-on-android--cms-23345 Jul 03 04:50:05 desmin88: Think really heard, it's very rare that you need huge objects before you can render a screen Jul 03 04:50:27 And in such a case, you can still be smart about it, e.g. streaming the response and updating the screen as the data comes in Jul 03 04:50:32 By huge I mean large amounts of strings containing large quantities of text Jul 03 04:50:46 desmin88, are you targeting a phone? Jul 03 04:50:50 How many strings do you need to fill the screen? Jul 03 04:50:58 both tablet/phones Jul 03 04:51:08 Even something like Kindle (100% text screen estate) only needs a few ks of test per screen Jul 03 04:51:23 kb's of text per screen * Jul 03 04:51:26 you would need a tablet the size of my living room wall to justify enough text to cause the type of performance prolem your'e describing Jul 03 04:51:37 yup Jul 03 04:52:12 try to come up with a more conservative way of accessing the information - though that might be hard if the source is a retrofit call, i get that that might not be up to you Jul 03 04:52:28 Yeah its not up to me how I get it Jul 03 04:52:32 I once had to parse a humongous XML response from an old server to display stuff on the screen. It was 100kb of crap with the important part (that I want to display) scattered everywhere). Switched to a parsing XML streaming parser, rendered the screen almost instantly Jul 03 04:52:58 like, i'm imagining a list/ detail flow - a list of wordpress articles, click on one to see the article - that roughly what you are going for? Jul 03 04:53:08 Responsive UI's are all about fooling the user Jul 03 04:53:16 sigmabeta-laptop yes Jul 03 04:53:35 desmin88: How many bytes are we talking about? Jul 03 04:53:52 desmin88, the wordpress api you are calling does not allow just downloading the list and some small metadata? it forces you to get everything all at once? Jul 03 04:53:58 ok it's building. Everywhere I did a getObjectGraph().inject(this), do I have to now manually pull out my dependencies? Jul 03 04:54:21 i.e. in my @Component interface, define a method to get each kind of object out? Jul 03 04:54:52 CedricBeust, 30,000+ bytes Jul 03 04:55:03 And you need to display 30k characters? Jul 03 04:55:26 (the answer is no, you really don't) Jul 03 04:55:41 Again, be smart. What do users really need to see right away? Jul 03 04:55:45 What can they see a bit later? Jul 03 04:55:49 the textual content of the post being displayed in a scrollable view is 12k bytes Jul 03 04:55:55 but the other strings are necessary Jul 03 04:56:06 Again, pretty sure you are not showing 12k characters on the screen at a time Jul 03 04:56:06 explodes, sorry - i only have familiarity with Dagger 2, and i'm pretty bad at it as well Jul 03 04:56:13 No I am not Jul 03 04:57:02 desmin88, i guess what confuses me is why you have these roughly 12k bytes crossing screens Jul 03 04:57:22 like i can't imagine a good reason you would have those already unless you were looking at the detail screen Jul 03 04:57:29 it is the detail screen Jul 03 04:57:35 Sleep over it. I'm sure tomorrow, you'll wake up realizing that out of these 12k bytes, you really only need to display 1k very fast and the rest later Jul 03 04:58:05 so where are you trying to send them that requires parcelization? Jul 03 04:58:19 Master activity to detail activity Jul 03 04:58:24 on phones Jul 03 04:58:28 that's what i mean Jul 03 04:58:41 with tablets i can instantiate the fragment with the object Jul 03 04:58:41 like, why does your master activity know about those 12k bytes Jul 03 05:00:03 It holds the master fragment Jul 03 05:00:43 Wait you said it was two activities, now you're saying it's an activitiy communicating to a fragment? Jul 03 05:00:55 In the phone form factor it is two activities Jul 03 05:01:17 If it's an UI that varies depending on tablet/phone, sounds like it should be fragment based Jul 03 05:01:47 Heres how its set up. The master fragment handles the actual list of models. The master activity simply switches them out. Jul 03 05:02:20 Once a model is clicked, the master fragment passes the model object up to the activity, which either opens the detail activity - or if were in tablet form factor, just adds a detail fragment to view Jul 03 05:02:57 Why start a new activity in the case of a phone? Doesn't make sense to me,especially if you use a fragment for the tablet case Jul 03 05:03:41 thats simply how ive always done it based off the google tutorials Jul 03 05:03:53 desmin88: Ignore that, what does your common sense tell you? Jul 03 05:03:55 Isn't it better for cases where you need onSaveInstanceState and stuff? Jul 03 05:04:03 activity switching is expensive and slow Jul 03 05:04:08 desmin88, sounds like a good place to deviate from the google recommendation Jul 03 05:04:16 you've already implemented the fragment solution for tablets, why not reuse it for phones? Jul 03 05:04:38 their goal is to get you up and running quickly, which is not always aligned with getting you doing 100% of best practices on day 1 Jul 03 05:04:52 If he needs Activity.onSaveInstanceState, it might better to use multiple Activities. Jul 03 05:04:59 Its a pain in the ass handling backstack and toolbar icons Jul 03 05:04:59 I'm curious to find out that tutorial that says to use fragments for tablets but activities for phones Jul 03 05:05:14 android studio master/detail template does it i think Jul 03 05:05:28 CedricBeust: http://developer.android.com/guide/components/fragments.html Jul 03 05:05:31 CedricBeust, he is right, it is still a part of the docs Jul 03 05:05:41 i was looking at that earlier today, as luck would have it Jul 03 05:05:54 which part speficically? Jul 03 05:06:02 This page is huge Jul 03 05:06:06 The first diagram. Jul 03 05:06:13 oh indeed Jul 03 05:06:15 I'll be damned Jul 03 05:06:36 I need to make a few phone calls to my buddies back there :) Jul 03 05:06:40 it makes it easy to handle up navigation too Jul 03 05:06:50 Yeah, there are some advantages. Jul 03 05:06:52 it makes sense to me as a migration guide from an app structure designed strictly for phones Jul 03 05:07:47 CedricBeust, when you make those calls, also let them know about that brilliant Kotlin article series you wrote :D Jul 03 05:07:57 haha Jul 03 05:21:21 Should we still be going back to API 15? Jul 03 05:21:39 I set the minimum to 16 Jul 03 05:21:52 I've seen 19 a lot, maybe it's for the KitKat API's specifically Jul 03 05:22:38 Look at the market shares, decide the ratio potential audience/pain to support Jul 03 05:23:14 15 clearly not worth it, 16 is reasonable, a bit above probably okay (and obviously going to improve in the next year) Jul 03 05:35:30 Noob question but how would I go about using google-json in my AndroidStudio project? Jul 03 05:36:09 You mean Gson? It's just a case of adding a line to build.gradle. Jul 03 05:36:13 The site shows what line to add. Jul 03 05:36:23 compile "com.google.code.gson:gson:2.3.1" Jul 03 05:36:33 under "dependencies { " Jul 03 05:36:53 Oh great, I was trying to find a .jar to import. Jul 03 05:37:21 You shouldn't have to import JARs for anything popular. Jul 03 05:39:51 MIgration to Dagger 2 complete :I Jul 03 05:42:21 can getPackageName() return null? Jul 03 05:52:09 Whoa. Jul 03 05:52:21 "This subreddit has been banned": http://www.reddit.com/r/punchablefaces/ Jul 03 05:52:32 There was a post about Ellen Pao. Jul 03 05:52:54 Dammit. I liked that subreddit. :\ Jul 03 05:53:21 hi folks - I am trying to clone this repo and try out the project https://github.com/tfujiyama/iBeaconReceiveSample .. Once I clone it, I am supposed to try to import this right? Jul 03 05:55:32 if I import them - which directory am I supposed to choose? https://dl.dropboxusercontent.com/s/wwueb7bivd9vmnz/2015-07-03%20at%201.54%20AM%202x.png?dl=0 I tried both of them with limited success, so I want to know what exactly I should use Jul 03 05:57:25 " Jul 03 05:57:25 You owe 11,126.68." blegh Jul 03 05:58:18 TacticalJoke: https://www.change.org/p/ellen-k-pao-step-down-as-ceo-of-reddit-inc xD Jul 03 05:58:38 lol Jul 03 05:59:16 if i were her, i'd step down :D Jul 03 05:59:42 trewq: make a new project in android studio and replace the "app" directory with the one from the repo. whoever pushed that repository was pretty inconsiderate :P but I've seen that happen twice in the last couple of days ... so ... this is the world we live in Jul 03 05:59:54 let the petulant underbelly scum of reddit govern itself ;) next step : 4chan :D Jul 03 06:00:04 Not all of reddit is bad. Jul 03 06:00:08 User-wise. Jul 03 06:00:46 explodes: thanks.. trying that now Jul 03 06:02:09 TacticalJoke: a lot of these subreddits seem interesting, but they're private now Jul 03 06:05:16 what in the fuck, its 2 am and a class im trying to register for just filled Jul 03 06:06:14 Okay, it looks like the /r/punchablefaces ban might be a fake page. It looks different from the legit one. Jul 03 06:06:15 explodes: thanks that worked! Jul 03 06:06:40 ban page* Jul 03 06:06:50 trewq: be sure to commit a working project for all the good people Jul 03 06:07:05 TacticalJoke: If you have RES and uncheck use subreddit style its open Jul 03 06:07:56 Oops, yeah. Didn't realise I was browsing in Incognito Mode. :s Jul 03 06:08:03 I have subreddit styles disabled when I'm logged in. Jul 03 06:08:12 it's because /r/gonewild is still up Jul 03 06:09:11 TacticalJoke u were browsing in me? Jul 03 06:09:26 That was funny. But the real reason is that I am selective about what I put in my browser history. Jul 03 06:09:30 Temporary drama tends not to go in. Jul 03 06:09:38 Long-term drama might make it. Jul 03 06:10:53 I dont even know why i bother keeping my browser history (even tho it is clean) - I can never search for that one page i visited about 2-6 hours ago and it had to with something. Jul 03 06:11:13 Yeah. I actually find that Firefox is better at finding stuff than Google Chrome. Jul 03 06:11:34 I rarely couldn't find something in Firefox. But Google Chrome is so picky about finding stuff (especially from the Omnibar). Jul 03 06:16:43 This seems to be up to date: https://www.reddit.com/r/SubredditDrama/comments/3bxjyu/list_of_subreddits_suddenly_going_private/ Jul 03 06:17:23 I had a perfecly working intent filter that was able to become the default for twitter links that is suddenly no longer able to. Jul 03 06:17:48 Right now just guessing at what behavior changed without hard leads Jul 03 06:18:12 I started a project, it's the app structure I start all of my applications with, my favorite frameworks, all that crap: https://github.com/explodes/android-empty-shell Jul 03 06:18:23 Maybe someone here is interested. Jul 03 06:22:20 hi, I I am trying to put opencv into another existing project. I am putting the opencv tutorial camera preview into a fragment and display the camera view , but i keep getting null from CameraBridgeViewBase findviewbyid(r.id.tutorial1_activity_java_surface_view Jul 03 06:22:53 I even copied the exactly layout file from the tutorial. it's still the same error. Jul 03 06:23:13 explodes: will do :) Jul 03 06:24:11 argyris: paste the template xml - paste the file with NPE Jul 03 06:25:07 what is npe? Jul 03 06:25:15 you want pastebin? explodes. Jul 03 06:25:46 argyris: yes pastebin, npe = NullPointerException Jul 03 06:29:38 http://pastebin.com/RtmiJVu5 Jul 03 06:29:52 explodes: i put both in the same pastebin Jul 03 06:31:42 can you paste CameraFeedFragment also please Jul 03 06:33:40 one min Jul 03 06:35:18 TacticalJoke: What's the tl;dr version of why so many sub-reddits are going private? Jul 03 06:35:48 http://pastebin.com/aAvY0frZ Jul 03 06:36:58 surf2b1: an admin, who was particularly involved in arranging and running AMAs, has apparently been unexpectedly fired... the response is partly a general protest, and partly a specific thing because those subreddits host AMAs and they don't know what's happening with AMAs in planning/progress Jul 03 06:37:52 TacticalJoke i remembered not long ago, somebody suggested presedenyial debate as reddit AMA Jul 03 06:38:54 I will never understand Reddit. Such weird behavior. Jul 03 06:40:37 those are some pretty popular subreddits :\ Jul 03 06:40:50 TacticalJoke: this is the best sub: https://www.reddit.com/r/me_irl Jul 03 06:41:02 argyris: ah sorry my chat wasnt scrolling Jul 03 06:41:12 http://pastebin.com/aAvY0frZ Jul 03 06:41:29 there Jul 03 06:42:02 is it because there is not add content view? Jul 03 06:42:18 no way right? The exception occurs in oncreateview. Jul 03 06:42:37 argyris: nope. line 64 you're saving a reference to the inflator, don't do that , you'll cause memory problems Jul 03 06:42:44 it feels like the exceptin changed Jul 03 06:43:01 argyris: i assume that the layout xml is called "camerafeed.xml" ? Jul 03 06:43:04 yes, okay, I just changed before I copied to see if it works. Jul 03 06:43:15 yes, it is Jul 03 06:44:21 also you should return "v" from that method Jul 03 06:44:28 not "super.whatever(...)" Jul 03 06:44:39 argyris: "new BaseLoaderCallback(this.getActivity()) {" <-- pretty sure getActivity() will be null here Jul 03 06:45:48 argyris: yep. the fix would be to instantiate mLoaderCallback in the onCreate method Jul 03 06:46:51 ok, I try again, I switched to oncrateview because it give some sort of error/exception in oncreate also, Jul 03 06:46:58 gave* Jul 03 06:47:27 TacticalJoke: reddit's "official response" https://pbs.twimg.com/media/CI-EAtpUAAAZCyQ.png:large Jul 03 06:49:22 same nullpointerexception. camerafeedfragment.oncreate(camerafeedfragment.java : 80) Jul 03 06:49:58 I created a new project with navigation drawer and its using navigationDrawerFragment. Is android 5+ this style or using Toolbar with NavigationView? Confused since all new material design shows this toolbar setup Jul 03 06:51:47 surf2b1, see this https://www.reddit.com/r/OutOfTheLoop/comments/3bxduw/why_was_riama_along_with_a_number_of_other_large/ Jul 03 06:51:48 argyris: we don't know what line 80 is anymore ;) Jul 03 06:52:05 ^ Jul 03 06:53:38 live action of subreddits shutting down and shit https://www.reddit.com/live/v6d0vi6c8veb Jul 03 06:54:40 http://i.imgur.com/p8j4Zwq.gif Jul 03 06:55:15 argyris, you can't do getActivity in onCreateView, it would be null. Do it in onActivityCreated Jul 03 06:56:02 WantToCode: nice recap Jul 03 06:56:23 surf2b1, just joined, can't see old stuff :P Jul 03 06:56:42 WantToCode, it's the same nullpointer or maybe not Jul 03 06:56:58 but I still get nullpointerexception Jul 03 06:57:16 in onactivitycreated. Jul 03 06:57:49 getActivity shouldn't be null in onCreateView Jul 03 06:59:38 do you need to see the androidlauncher? Jul 03 06:59:59 the existing project is libgdx project though. I hope it doesn't matter. Jul 03 07:01:25 I sort of did the same with vuforia and libgdx, it works. Now I am just duplicating this with opencv, I did almost everything the same as I did before, except for importing the libraries Jul 03 07:04:33 surfb21 getactivity is not null, I just logged it, Jul 03 07:04:51 what comes after findviewbyid is null Jul 03 07:06:20 paste your current version of CameraFeedFragment Jul 03 07:06:32 argyris: I know, that was directed at WantToCode Jul 03 07:07:08 i am in the middle of editing. Jul 03 07:07:09 :D Jul 03 07:07:44 Hey folks :) Can anyone let me know what the proper way is to get a localized date string without year and a localized time string without seconds? I looked up DateFormat.getBestDateTimePattern, but that doesn't seem to be available (although my target API level is 21) Jul 03 07:08:55 explodes: Where did you get that official response from? I notice that that subreddit is private. Jul 03 07:09:16 TacticalJoke: from the live stream :U Jul 03 07:09:17 Oh, I guess it's an insider thing. Jul 03 07:09:22 http://pastebin.com/zL5rdZgQ Jul 03 07:10:38 argyris: line 77 needs to return rootView Jul 03 07:10:44 argyris: that is a Must Jul 03 07:11:02 pehlert: android.text.format.DateFormat.getBestDateTimePattern(locale, skeleton) is available since Android 4.3 Jul 03 07:11:10 argyris: with *that* code, what line are you getting your NPE on, now? Jul 03 07:12:36 explodes: it switched back to error inflating binary xml file line # 7\ Jul 03 07:12:58 argyris: ok paste the xml Jul 03 07:16:53 shmooz: There's an /r/tribes. Jul 03 07:16:57 But it went down with the latest drama. Jul 03 07:17:18 explodes: http://pastebin.com/A6QDBBPh Jul 03 07:18:06 argyris: fuggg, that looks like ok xml to me Jul 03 07:18:20 argyris: what's the full stack trace? Jul 03 07:19:00 what is stacktrace? Jul 03 07:19:04 verbose log? Jul 03 07:19:54 argyris: return "rootView" in onCreateView, remove "private LayoutInflater inflater;" and initialize "mLoaderCallback" in onStart. XML looks okay. o.O Jul 03 07:21:19 argyris: do what surf2b1 said, run it, and paste the new CameraFeedFragment and verbose log Jul 03 07:22:11 yes, I already changed to return rootview, and remove the inflater, what do you mean by mloadercallback in onstart? Jul 03 07:23:07 argyris: getActivity() will be null there, I'm guesing "BaseLoaderCallback" needs a valid context Jul 03 07:23:19 initialize^ Jul 03 07:23:27 getActivity is not null. Jul 03 07:23:28 I have two spinners, country and city. I want to be able to set these programmatically. The city depends on the selection of the country. So first I do countrySpinner.setSelection and then citySpinner.setSelection. The countrySpinner.onClicklistener refreshes the adapter of the citySpinner. Jul 03 07:23:39 However, this listener is run after citySpinner.setSelection is executed. Therefore I get ArrayIndexOutOfBoundsExceptions. How can I make sure the listener code runs right after the countrySpinner.setSelection? Jul 03 07:23:54 it points to the valithgame memory location, Jul 03 07:25:55 am i offline again? Jul 03 07:26:07 argyris: getActivity() is null when the fragment is constructed. getActivity() return mActivity which is only assigned once an activity has been set on the fragment. it is not available during initialization. Jul 03 07:26:54 barq: Can't you say `citySpinner.setSelection(whatever);` in the `onItemSelected` callback for `countrySpinner`? Jul 03 07:27:11 so you need to create your callback when you have an activity, such as onActivityCreated, onCreate, onCreateView, onResume, onStart - for this particular thing, onStart is a great candidate Jul 03 07:27:29 Unfortunately, AbsSpinner.setSelection works asynchronously. Jul 03 07:27:53 Or is this fortunate? Who knows. Jul 03 07:28:34 TacticalJoke: I guess you can stop making your app then Jul 03 07:28:34 Or probably better would be to all of the adapters first and then run setSelection. Better than coupling the two listeners. Jul 03 07:28:46 argyris: getActivity() is null there. Example: http://pastebin.com/bNsMCMz1 Jul 03 07:28:52 Actually, I can't prevent the listeners from running again when doing setSelection Jul 03 07:29:28 shmooz: I doubt that reddit will die. :D Jul 03 07:29:30 http://pastebin.com/KgXDWLvz Jul 03 07:29:54 barq: Aren't they coupled by design? Jul 03 07:30:04 In your case. Jul 03 07:30:22 I don't think there is anything you can do but wait for the first onItemClick thing to run. Jul 03 07:30:29 s/Click/Selected/ Jul 03 07:30:35 surf2b1, explodes, oh the exception chagnes Jul 03 07:31:29 TacticalJoke: So store the positions somewhere and then let the listener-hierarchy do its work. Jul 03 07:32:11 * surf2b1 goes to eat his nightly bowl of cereal Jul 03 07:32:34 reqwuestfeature must be called before adding congtent Jul 03 07:32:51 argyris: nice. xD finally Jul 03 07:32:52 Hmm, I guess so, but it's hard to say for certain without knowing precise details. Jul 03 07:34:34 argyris: Oh i think that error is Jul 03 07:34:40 trying to get share functionality working in my app, piecing from a couple tutorials i got my app to load and the item to show in the actionbar menu, but not getting anythign when i click on the item --> https://gist.github.com/anonymous/70a3fd4516fe2dddecfa Jul 03 07:34:57 you need to call .getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON) in your activity, you can't do that in your fragment. Jul 03 07:35:17 put that in your activity's onCreate method *right* after the super call Jul 03 07:35:27 argyris: @@ Jul 03 07:35:45 ok, I go pee pee, back now. Jul 03 07:35:49 explodes yeah i found that out too (can't do it to a view in a fragment) Jul 03 07:36:00 good ol undocumented behavior Jul 03 07:36:22 yee Jul 03 07:36:40 james0r2: when you click the on the item what do you want it to do? Jul 03 07:36:58 ./r/pics reopened and people criticised. Now they're saying they're closing for 90 days. Jul 03 07:37:02 Love the drama. :D Jul 03 07:37:05 ah the ol' ListView item clicked bullshit thing Jul 03 07:37:29 explodes, display apps that i can share the contents of the listview with Jul 03 07:37:39 explodes, is this a stupid exercise? heh Jul 03 07:37:49 no Jul 03 07:37:50 it's really good at frustrating me Jul 03 07:37:53 it's a good one to learn Jul 03 07:38:00 which is usually educational Jul 03 07:38:13 k good Jul 03 07:38:21 he he he he he he he he back to error inflating class message again Jul 03 07:38:35 just don't see much in logcat that i can follow Jul 03 07:39:03 james0r2: the log output you wrote doesn't even show up? Jul 03 07:39:23 argyris: how the fuck are your error messages hopping back and forth like that? are you using eclipse or AS? Jul 03 07:39:35 eclipse Jul 03 07:39:43 be sure to save your files . Jul 03 07:39:59 that'll give you the ol' back 'n forth where you don't want it. Jul 03 07:40:06 explodes, if i click on the items within the listview, but about the 'share' item in the actionbar menu, i get no actions on the android UI and not much in logcat Jul 03 07:40:35 I get no action I tell ya Jul 03 07:40:36 james0r2: you have no "share" code. you only have one line in your onItemClicked method Jul 03 07:40:44 Log.d("omg android", position + ": " + mNameList.get(position)); Jul 03 07:40:50 do you get that output? Jul 03 07:41:06 TacticalJoke what these people don't understand - they are digital serfs working on somebody elses land - but they think they own it, because they generate content for free. i think they are realizing, wait a minute, we work hard but are not in control Jul 03 07:41:16 actually near the end of the error message, it says Caused by: java.lang.NoClassDefFoundError: which is what I was reading 12 hours ago. Jul 03 07:41:48 its almost like, the counciousness of people is rising - maybe they will underand they are really free digital labot Jul 03 07:41:50 *labor Jul 03 07:41:59 but I assume end of the error message has little effect compared to the ones printed first. Jul 03 07:42:16 explodes, no not gettint that on 'share' click Jul 03 07:42:19 True. Jul 03 07:42:27 this is a great book http://www.amazon.com/Internet-Not-Answer-Andrew-Keen/dp/0802123139 Jul 03 07:42:49 notice the reviews are bimodial distrubution Jul 03 07:43:05 some people really hate it - probably because its so true haha Jul 03 07:44:22 james0r2: google around for "onClickItem" not firing or something like that Jul 03 07:44:27 explodes, sorry somethings up. i'm not getting anything in logcat now Jul 03 07:44:32 james0r2: sorry i couldnt be a more direct help Jul 03 07:45:08 explodes, no prob. any guidance helps. thx Jul 03 07:45:50 james0r2 I think you need to change the logcat level. Jul 03 07:46:07 It happens all the time. Jul 03 07:46:29 argyris, i tried, changed nothing, weird. i just restarted the emulator and now everything is showing up Jul 03 07:46:51 adb sync problem then. Jul 03 07:47:08 argyris, is there a "timeout" with the emulator by defaul? Jul 03 07:47:49 I dont know, I am a beginner. Jul 03 07:48:01 I am here because I am stuck with something also. Jul 03 07:48:07 best way to make the loaded images in NetworkImageView to fade in? Jul 03 07:48:10 argyris, gotcha. Jul 03 07:48:47 12 hours Jul 03 07:49:05 logcat within android studio is finicky sometimes Jul 03 07:49:07 never mind found on stackoverflow Jul 03 07:49:12 :) Jul 03 07:49:22 ashwink005, just use Picasso Jul 03 07:49:35 ashwink005: you could use Picasso with ImageView, that's probably not the answer you wanted but it works right out of the box Jul 03 07:49:38 that's my insensitive knee-jerk recommendation Jul 03 07:49:54 ashwink005: http://square.github.io/picasso/ Jul 03 07:50:00 knapper_tech: can I make it load images from an imageloader? Jul 03 07:50:13 explodes: thanks Jul 03 07:50:16 ashwink005: dude, just look at the api real quick, it's so slick Jul 03 07:50:29 Picasso.with(context).load(url).into(view); Jul 03 07:50:54 ashwink005, I will likely never know jack about using anything except Picasso because it worked so well. Jul 03 07:51:20 so it does the job of downloading as well? Jul 03 07:51:33 does it maintain a cache? I guess yes? Jul 03 07:52:33 ashwink005, the one case it doesn't do the best job is huge network images. I save my own thumbnails for these but still to the actual display using Picasso Jul 03 07:52:53 lol saw the github page. Meant for downloading and caching Jul 03 07:53:02 The in-memory and disk caches can take up a ton of space if you don't resample some of the larger ones manually Jul 03 07:53:12 Takes like 2 seconds Jul 03 07:53:49 but we can specify the size of cache or not? Jul 03 07:54:00 Volley allows us to do that Jul 03 07:54:20 knapper_tech: yes it caches, loads from the internet, does transforms, fades, error images, placeholder images, it'll even tell you it loves you if you're nice enough to it Jul 03 07:54:40 explodes: haha nice Jul 03 07:55:02 ashwink005: i've never had to tweak the cache size Jul 03 07:55:17 ashwink005: but using the resizing functions is critical to same disk memory, and RAM Jul 03 07:55:26 it's super simply to do. Jul 03 07:55:42 yeah its available in google training pages. Saw it. Jul 03 07:55:53 .resize(width, height) or .centerCrop() or .fit() Jul 03 07:55:57 kk Jul 03 07:57:18 ashwink005, you can configure the size of the cache, but the default API isn't going to cut down on the size of huge images in my experience. Ask JakeWharton when he logs in. Jul 03 07:57:46 knapper_tech: is that the real Jake Wharton or a phoney? Jul 03 07:58:01 the REAL jake wharton is on this channel?? Jul 03 07:58:28 ashwink005, so far as I can tell, he at least knows enough about the code attributed to jake wharton on github. it all could be a bunch of aliases but I doubt it. Jul 03 07:58:49 knapper_tech: eesh thats cool Jul 03 08:02:38 It’s him. Jul 03 08:11:27 after importing my eclipse project to android studio and running lint, i get: Cannot resolve symbol for the application name and any activity in manifest: android:name=".MyApplication" should i write down the complete package name ? Jul 03 08:11:57 you could try Jul 03 08:15:03 ha ha ha ha Jul 03 08:15:05 it's working Jul 03 08:15:20 not with the fragment though. Troublesome fragments' Jul 03 08:16:09 adkins: Yeah, the documentation says this: "The fully qualified name of an Application subclass implemented for the application. When the application process is started, this class is instantiated before any of the application's components." Jul 03 08:16:18 http://developer.android.com/guide/topics/manifest/application-element.html#nm Jul 03 08:20:23 TacticalJoke: not getting it 100%.... It's ".". Jul 03 08:27:44 k Jul 03 08:28:08 oops sorry Jul 03 08:32:47 in a RecyclerView Adapter. i have reached a point where i can get the position. But what am i getting a position of? Jul 03 08:36:18 cbeust you are still awake! Jul 03 08:44:49 TacticalJoke: i think i changed manifest to what its supposed to be, but the lint messages point to /bin/AndroidManifest.xml and there are the changes not visible. Even not after rebuilding Jul 03 08:54:09 Did you try Build > Rebuild? Jul 03 08:55:15 TacticalJoke: yes, i`m wondering why my imported project from eclipse has a folder MyProject/bin and a created hello-world app does not have it Jul 03 08:56:09 I don't seem to have a 'bin' directory. Jul 03 08:56:46 Is it possible to use an x86 android emulator on my PC just like I would use a phone? have a google account, play store, install any apps I want etc? Jul 03 08:57:25 TacticalJoke: ok, i think its because i pulled from git in a project folder that used to be an eclipse one ;) Jul 03 08:59:15 to emulate android on x86 (to get some decent performance) should I be looking here? http://www.android-x86.org/ is this not official? What's the best option? Jul 03 08:59:48 TacticalJoke: I tried doing the setSelections from within the listeners. The problem is that if the default selection is loaded, the onItemSelectedListener is not activated, so the whole listener hierarchy is not triggered. Jul 03 09:00:44 What do you mean by "the default selection"? The first position? Jul 03 09:03:44 TacticalJoke: Yes, the first position. Jul 03 09:04:28 onItemSelected should be firing when the spinner is populated. Maybe check with Log.d. Jul 03 09:05:15 Yes, it is fired when it is populated, but not when doing setSelection programmatically if there is no change to the selection. Jul 03 09:06:50 Why do you want it to fire after `spinner.setSelection(currentPosition);`? Jul 03 09:09:18 TacticalJoke: I am loading entries from "favorites". Now the configuration might be [1,3,3,7], so if the first entry in the hierarchy is the same as before, the whole hierarchy of listeners won't be triggered. That means the view will stay in [1,1,1,1] instead of being set to [1,3,3,7] Jul 03 09:13:39 I have to sleep; sorry. I can probably answer something tomorrow if you're still stuck Jul 03 09:14:33 g00s whats another good philosophy/self-help/business book? Jul 03 09:15:12 maybe hes not on Jul 03 09:18:42 Are you into fitness? Jul 03 09:44:05 Does app indexing work with dynamic data ? i.e. data not stored in the manifest? Jul 03 09:44:14 but that generated by the user inside the app at runtime that I want to tell Google search about in order to be able to index it Jul 03 09:47:16 I don't have webpage inside my app Jul 03 10:11:42 hm Jul 03 10:12:47 what does the ?attr mean in the XML layouts? Jul 03 10:13:09 like "?android.color.something" Jul 03 10:14:04 guys, I've a RelativeLayout as a root, I've textview button and webView, I want the text on top, button on bottom and web view take all the space in the middle Jul 03 10:14:14 but webView take all the space Jul 03 10:20:32 if I want to animate the colour of a marker with a custom bitmap icon on google maps, would I have to create multiple versions of the icon or am I missing something neat somewhere Jul 03 10:22:42 I am going to buy my first unlocked phone. From what I gather, I'll have to get a different carrier. From what i've read, the major carriers don't suppport Unlocked phones. Is there a web site anyone can recommend where I can read about n00bs first experience with an unlocked phone and what to knwo before I spend money? (looking at Asus zen 2) Jul 03 10:52:05 anyone has any experience with the Toolbar widget in the new support library Jul 03 10:58:36 scryptic: I believe this is country-dependent Jul 03 11:00:18 does anyone know if there is some api for debugging ART? Jul 03 11:01:04 or more like profiling, to run it in a similar way as a javaagent Jul 03 11:21:48 icedp: if you are icemandp, use a linearlayout Jul 03 11:21:55 set the webview to have a weight of 1 Jul 03 11:26:45 how do i compile ndk for arm only not v7a Jul 03 11:37:10 kevel: unlikely, different accounts (also it's iceman*b*p, took me a while to notice too) Jul 03 11:39:49 nyuszika7h: why dont people just sit and wait ;( Jul 03 11:39:55 ikr Jul 03 11:43:26 How can I make sure the validation of my UI input is executed only after the entire UI has loaded? I was thinking about postDelayed or getInstrumentation().waitForIdleSync(), but both are not deterministic. What would be a good approach to make sure A finishes before doing b? These are onItemSelectedListeners, so they are async by default. Jul 03 11:49:04 rxAndroid? Jul 03 11:54:43 the up/home button on my Toolbar is not aligned at the vertical center.. any way I could change that? Jul 03 11:55:06 the up/home button on my Toolbar is not aligned at the vertical center.. any way I could change that? Jul 03 12:06:18 Hey guys, so I cant receive an onActivityResult in a class? Jul 03 12:06:22 Has to be an activity? Jul 03 12:06:29 ? Jul 03 12:06:44 Why not? Jul 03 12:07:31 I have a regular class, and onActivityResult is giivng an error Jul 03 12:07:42 but when I extend AppCompatActivity, its fine Jul 03 12:07:55 drose379: You need to extend Activity Jul 03 12:08:03 the up/home button on my Toolbar is not aligned at the vertical center.. any way I could change that? Jul 03 12:08:06 anyone? Jul 03 12:08:44 barq if I extend activity does that mean I have to register it in the manifest and everything? I am just making a helper class to work with google sign in Jul 03 12:08:51 So its really not supposed to be an activity Jul 03 12:09:00 Then you can't use onActivityResult Jul 03 12:09:08 I need to Jul 03 12:09:13 Anyone here ever used OpenGL with the NDK? Gettign really strange behaviour here on all devices I've tested it on Jul 03 12:09:15 That makes no sense Jul 03 12:09:19 Why Jul 03 12:09:31 You can only use onActivityResult if you startActivityForResult from it Jul 03 12:09:45 You're obviously not doing this from your helper class. Jul 03 12:09:50 Yes I Am Jul 03 12:09:59 Show code Jul 03 12:10:31 barq http://pastie.org/10271467 Jul 03 12:11:02 drose379: I don't see your class definition there. Jul 03 12:11:15 thats just the method Jul 03 12:11:36 Hey guys, so I cant receive an onActivityResult in a class? Jul 03 12:11:42 I don't see any onActivityResult in there. Jul 03 12:11:57 Yeah, onActivityResult doesnt work in anything besides an activity Jul 03 12:12:30 OK, so problem solved. Jul 03 12:13:26 No its not Jul 03 12:13:50 eh, alright thanks for the help Jul 03 12:33:51 hello everyone ! is there any way to hide a folder in my sd card? Jul 03 12:50:23 scorpion01 : http://whitehatdevil.com/hide-files-folders-android/ Jul 03 12:55:16 any idea on how to inject view in actionview in oncreateoptionmenu ??? Jul 03 12:55:26 using butterknife Jul 03 12:56:27 HardikAmal: ButterKnife.inject(this, actionView) doesn't work? Jul 03 12:57:09 i have already injected one view in my oncreate Jul 03 12:58:06 having same problem with injecting view in alertdialogs Jul 03 12:58:20 is this no or yes? Jul 03 12:58:27 coz 1 view is already injected Jul 03 12:59:38 actually i havent tried Jul 03 13:03:21 java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@5cb44fd Jul 03 13:03:49 How can I find where it happens (got report) if it doesn't mentions my package Jul 03 13:27:00 icedp: it worked thanks a lot Jul 03 13:30:19 Would you rather use Android's DownloadManager or roll your own download AsyncTask type class with reading a stream? Jul 03 13:30:33 hi Jul 03 13:30:50 does anyone know hot to get that circle in the list? http://material-design.storage.googleapis.com/publish/material_v_4/material_ext_publish/0Bx4BSt6jniD7LWFrRENhVVJrYzQ/patterns_navdrawer_selection1.png Jul 03 13:39:51 MikeClassic: now a AsyncTask for sure. Service or something. or use a DownloadManager depending on the context Jul 03 13:40:10 Peyam: just a circle or an circular image? Jul 03 13:40:32 it seems to be a code thing. since it change color Jul 03 13:42:29 I don't know for sure but i'm pretty sure asynctask isn't a good thing to use if you are going to be taking a long time doing something Jul 03 13:42:36 like file transfers Jul 03 13:43:37 at least thats what documents seem to indicate Jul 03 13:43:50 Peyam: color of images can be change too! Jul 03 13:43:58 icedp, how? Jul 03 13:43:59 Peyam: I mean you just want a single color circle? Jul 03 13:45:44 Peyam: if yes, take a look at https://github.com/pavlospt/CircleView/blob/master/app/src/main/java/com/github/pavlospt/CircleView.java#L188 Jul 03 13:46:13 icedp, when you finger it it should change color to blue Jul 03 13:46:22 Peyam: extend a View, in onMeasure method calculate mViewSize, then in onDraw just call canvas.drawCircle with a radius of mViewSize/2. and you have a circle Jul 03 13:46:39 I really want to do it in xml. it is possible? Jul 03 13:47:55 mm yes. look at an Jul 03 13:48:00 *and Jul 03 13:49:06 or is it doest it change the color? Jul 03 13:53:22 needed for that Jul 03 13:54:34 i want to hide a particular directory i.e "/myFolder" in android programmatically. Jul 03 13:54:49 scorpion01, try ./ Jul 03 13:54:58 have a dot before the directory Jul 03 14:27:29 Do you guys normally use openvpn to communicate with your devices? Jul 03 14:27:39 I heard that CM has openvpn support Jul 03 14:28:27 android has openvpn support but you need the app to use it Jul 03 14:28:57 pagefault: why CM includes it natively? Jul 03 14:29:17 it doesn't? Jul 03 14:29:20 at least not any more Jul 03 14:30:08 I believe its' been removed since cm11 Jul 03 14:30:24 there is nothing wrong with using an app Jul 03 14:30:32 all it does it open and configure the tunnel for you Jul 03 14:32:20 pagefault: ok Jul 03 14:32:26 pagefault: thanks Jul 03 14:32:51 it's open source as well so you can inspect it if you are paranoid Jul 03 14:32:58 and officially supported by openvpn Jul 03 14:33:00 pagefault: no thaks Jul 03 14:33:10 pagefault: just researching Jul 03 14:33:18 pagefault: why there is no phone supporting CM 12.1? Jul 03 14:33:28 there are tons Jul 03 14:33:36 pagefault: not stable Jul 03 14:33:46 cm12.1 is not stable Jul 03 14:33:52 cm12 is stable now Jul 03 14:33:55 pagefault: why? Jul 03 14:34:03 pagefault: android 5.1 is stable Jul 03 14:34:14 because cm is a mod of aosp Jul 03 14:34:18 they add features to it Jul 03 14:34:43 pagefault: How can I get aosp to a particular phone? Jul 03 14:34:49 Do I need custom rom for that? Jul 03 14:35:06 you need to bring up the phone yourself and hope there are good sources for your hardware Jul 03 14:35:17 it's difficult unless it's a nexus device Jul 03 14:35:28 pagefault: so nexus has the best comtability? Jul 03 14:35:45 out of the box it is the most compatible with aosp Jul 03 14:35:46 compatibility to AOSP? Jul 03 14:35:52 pagefault: oh cool Jul 03 14:36:14 pagefault: still, no AOSP 5.1 ROM for Google Nexus Jul 03 14:36:44 they have released 5.1.1 r5 a while ago Jul 03 14:37:10 pagefault: is this stable? http://forum.xda-developers.com/google-nexus-5/orig-development/rom-slimkat-hammerhead-stable-5-0-t2511512 Jul 03 14:37:20 no idea, xda is sketchy as best Jul 03 14:37:43 pagefault: ok Jul 03 14:37:47 the best thing to do is checkout the code from google and build it yourself Jul 03 14:38:02 pagefault: is this an easy task? Jul 03 14:38:20 if you read all the instructions it's not difficult Jul 03 14:38:20 pagefault: any tutorial Jul 03 14:38:44 https://source.android.com/source/initializing.html Jul 03 14:39:21 pagefault: so I can build AOSP 5.1 for a Nexus device? Jul 03 14:39:34 yes Jul 03 14:39:39 it will create a rom you can flash Jul 03 14:39:50 pagefault: awesome... Jul 03 14:40:03 but it won't contain any google apps obviously Jul 03 14:40:14 pagefault: so here are compatible devices? Jul 03 14:40:15 http://source.android.com/source/building-devices.html Jul 03 14:40:34 pagefault: that was going to be my question... Jul 03 14:40:48 pagefault: on a nexus built in android, can I remove google apps? Jul 03 14:40:59 pagefault: does aosp has phone application? Jul 03 14:41:01 typically you want to build the version of android that currently has a factory image for that device Jul 03 14:41:30 pagefault: so nexus 4, has support for 5.1, so I can build that? Jul 03 14:41:35 yes Jul 03 14:41:45 you can build 5.1.1 for that device with no issues Jul 03 14:42:02 pagefault: so on a factory nexus 4, can I remove google apps? Jul 03 14:42:27 if you rooted it I guess and uninstalled some stuff I guess you could Jul 03 14:43:04 pagefault: which would be the difference between nexus 4 factory image and the on e that I build myself? Jul 03 14:43:06 just google apps? Jul 03 14:43:10 basically Jul 03 14:43:18 pagefault: awesome Jul 03 14:43:35 you will want to flash their factory radio and bootloader though Jul 03 14:43:38 So normally business people, build AOSP to get rid of google apps? Jul 03 14:43:43 since there isn't source for that I believe Jul 03 14:44:06 pagefault: why would I want to flash those? Jul 03 14:44:20 your bootloader and radio should match the version of android you are running Jul 03 14:44:30 how can I get those? Jul 03 14:44:39 you can get them by downloading the factory image Jul 03 14:44:47 just extract the zip and flash them with fastboot Jul 03 14:45:40 pagefault: so that process will be done automatically? Jul 03 14:45:49 if you already did an upgrade with a factory image 5.1.1 then you don't need to do it again Jul 03 14:45:56 pagefault: I get it Jul 03 14:46:24 the source will produce a system and recovery image Jul 03 14:46:59 pagefault: in android boot menu, Do I have the option to reflash boot loader and radio? Jul 03 14:47:15 pagefault: if I make a mistake, is there a chance of bricking the unit? Jul 03 14:47:32 pagefault: Can I do this same thing on an iPhone, is there an equivalent to AOSP? Jul 03 14:47:45 it's almost impossible to brick a nexus device unless you flash the wrong bootloader or something Jul 03 14:47:57 pagefault: cool Jul 03 14:48:10 pagefault: you are very skilled! Jul 03 14:48:26 you can't run android on iphone Jul 03 14:48:29 pagefault: if no google play, no web browser in AOSP, how do I install an app, via USB? Jul 03 14:48:41 it comes with the aosp browser Jul 03 14:48:51 pagefault: nope, I mean is there something like AOSP in the mac world? Jul 03 14:48:58 pagefault: can I remove that app? Jul 03 14:49:04 yes Jul 03 14:49:13 pagefault: I want to builld a phone, so people cannot play with it Jul 03 14:49:20 just execute a single or twoo apps Jul 03 14:49:22 business apps Jul 03 14:49:23 I don't think there is any alternative OS for iphone Jul 03 14:49:29 pagefault: ok Jul 03 14:49:46 when you build the image you can choose what goes into it Jul 03 14:49:53 so you can have nothing if you really wanted to Jul 03 14:50:08 pagefault: I see Jul 03 14:50:35 pagefault: I'll just do this with a couple of phones, so I can remove manually I guess Jul 03 14:50:45 pagefault: so this whole process reminds me of installing arch linux Jul 03 14:51:15 you can try your luck with xda roms but I personally don't like them because who knows what is in them Jul 03 14:52:18 pagefault: cool, so bootloader and radio firmware comes in AOSP zip file? Jul 03 14:52:38 you can get those from the factory image Jul 03 14:53:09 pagefault: where can I get that? can I download factory image? Jul 03 14:53:28 pagefault: Is there a place where I can download the factory image, so I don't need to build it myself Jul 03 14:53:36 https://developers.google.com/android/nexus/images Jul 03 14:54:35 Peyam, thanx its working on a single file but not on a folder. i want the whole folder to be renamed i.e "/.myfolder" Jul 03 14:54:43 pagefault: so I can flash that, in a similar way that I flash CM? Jul 03 14:54:52 pagefault: cool man, awesome Jul 03 14:55:02 yeah Jul 03 14:55:10 pagefault: I really appreciate your info! Jul 03 14:55:16 but for the bootloader and radio you can use fastboot Jul 03 14:55:28 or just use ./flashall.sh to flash everything then manually flash the system later Jul 03 14:55:45 pagefault: ok, this process will take like 1 hour to do this? Jul 03 14:55:54 no it's pretty fast Jul 03 14:55:56 (not building, just using factory images) Jul 03 14:56:02 1 minute? Jul 03 14:56:05 wow Jul 03 14:56:26 it will wipe all your data on your phone Jul 03 14:56:49 pagefault: np, can I will add you as buddy in IRC, so I can bug you if I dig into this Jul 03 14:57:28 sure but just be sure you know what you are getting into Jul 03 14:57:52 pagefault: no worries I have a spare phone :) Jul 03 14:58:07 worst comes to worst you just have a factory reset phone Jul 03 14:58:33 pagefault: ? Jul 03 14:58:45 if you can't get what you want to work Jul 03 14:58:52 you can always restore the phone to factory state Jul 03 14:59:01 pagefault: oh cool Jul 03 14:59:31 pagefault: this Factory Images, are not AOSP images, right? Jul 03 14:59:39 they are AOSP plus google play Jul 03 14:59:57 and they remove some AOSP apps Jul 03 15:00:00 so they aren't pure Jul 03 15:00:29 pagefault: but then the phone will be rooted at that time, right? so I can remove everything that I want including google play? Jul 03 15:00:46 pagefault: is there a website that has pure AOSP images? Jul 03 15:01:24 factory images don't contain root, you would have to use autoroot or something to get root on it, I don't know of a place that has pure AOSP builds outside of xda Jul 03 15:01:52 to be google play certified you cannot have root on your phone Jul 03 15:03:35 userdebug built images have root Jul 03 15:03:41 on AOSP Jul 03 15:04:57 pagefault: I didn't get that, is there a link to download AOSP built image? Jul 03 15:05:06 Something similar ot the link you sent me but pure AOSP Jul 03 15:05:24 I don't know of any place to get that except on xda where people built it themselves Jul 03 15:05:28 but ymmv with those roms Jul 03 15:06:33 CM is the closest thing to AOSP you can get ready made from a reliable source Jul 03 15:06:58 i'm guessing Jul 03 15:08:01 pagefault: I see Jul 03 15:08:37 it might just be easier for you to install the factory image, root it then use something like titanium backup to uninstall the things you don't want Jul 03 15:08:53 pagefault: ok Jul 03 15:27:56 how i can clear a recyclrview adapter? in arraydapter i have arrayadapter.clear() Jul 03 15:28:05 how i can do it with recyclerview adapter ? Jul 03 15:35:05 write a clear method yourself Jul 03 15:35:18 don't forget to call notifyItemRangeRemoved(0, count) Jul 03 15:38:49 hi, Jul 03 15:38:58 i have a problem with Google ùPlay Console Jul 03 15:39:08 Google Play Console* Jul 03 15:39:42 my app has been suspended Jul 03 15:40:51 you should have a mail why it was done Jul 03 15:41:45 REASON FOR SUSPENSION:Violation of the impersonation or deceptive behavior provisions of the Content Policy. Please refer to the impersonation policy help article for more information. Jul 03 15:41:56 yes but i am authorized Jul 03 15:42:04 i have attacched a pdf Jul 03 15:42:53 Hello! Jul 03 15:42:59 I have all the authorizations to use the icons and other images Jul 03 15:43:37 can someone help me? Jul 03 15:44:08 I want to open a google develop account without a credit card or a bank account. is it possible? I can get prepaid cards if needed. Jul 03 15:44:10 any idea? Jul 03 15:46:16 i have created a appeal but google doesn't replies me Jul 03 15:46:46 roxdragon, good luck. google support sucks Jul 03 15:47:52 chances are they're going to reply soon with an auto generated email with no information whatsoever Jul 03 15:49:39 but I 've attached in pdf permissions and my app should be activated Jul 03 15:49:44 :@ Jul 03 15:50:36 you have images with people? Jul 03 15:50:45 no... it is only a webview Jul 03 15:50:50 is a journal Jul 03 15:51:13 roxdragon, ah! you have the permission? it happened to me once, they reactivated the app Jul 03 15:52:03 in my case it was a logo in a screenshot I uploaded Jul 03 15:52:39 o... i have take a screenshot.. with a news Jul 03 15:53:36 i have uploaded a screenshot with a images with a news .. is this a problem? Jul 03 15:54:28 if the screenshot has a logo of another company it could be a problem Jul 03 15:55:14 https://support.google.com/googleplay/android-developer/table/3539140?hl=en Jul 03 15:55:27 I can't register a merchant account here! how can I do to sell apps? Jul 03 15:55:30 :( Jul 03 15:55:40 I want to publish a paid app Jul 03 15:56:38 Move to a country where you can Jul 03 15:56:49 Mattx: why do you want to avoid using bank account. are you in unsupported country? Jul 03 15:57:11 icedp, yep, I'm in an unupported country Jul 03 15:57:23 I can create a develop account but not a merchant account Jul 03 15:58:29 in fact I already have apps published on one account but I can't sell them Jul 03 15:58:37 any idea? Jul 03 15:58:56 Hi everyone! Jul 03 16:01:36 Mattx: that's somewhat complicated. you should study an issue for some time before making a move. IIRC it's possible to move apps between accounts. so maybe first use your own account. it's unlikely you'll start making any money very soon. later you might be able to move it to your friend's account in another country. or maybe you country will become available. also it's possible to open bank accounts in Jul 03 16:01:39 some countries that you are not resident of Jul 03 16:03:48 I need to build a lib AmrInputStream and to use in my project for encoded wav audio in amr, but I can't Jul 03 16:03:56 Someone can help me please? Jul 03 16:05:01 the lib is that https://github.com/android/platform_frameworks_base/blob/master/media/java/android/media/AmrInputStream.java Jul 03 16:16:16 Removing item from the bottom when all available/left items are visible, makes scrolling nearly impossible (in newly pupulated ListView - see code). see on video https://vid.me/PuwG Jul 03 16:16:49 icedp, in what countries can you open an account without being there? Jul 03 16:17:00 can anybody please look at the code and tell me what is wrong? https://github.com/bolovanos/ListViewRemovalAnimation Jul 03 16:17:47 I have found out, that reseting content view with "setContentView(R.layout.activity_list_view_deletion);" do the job, but I do not understand why Jul 03 16:17:49 icedp, I already have some apps with 2k active users a day. but I'm only making 20 USD a day using admob, I want to upload paid apps, I believe I would get much more given the kind of users I have Jul 03 16:25:54 hello good night all Jul 03 16:26:23 how can I clear my viewpager adapter in listview row ? Jul 03 16:30:35 Is there anywhere I can read about the difference between "parent="android:Theme..."", "parent="@android/style:Theme..."", "parent="@style/Theme..."", "parent="Theme..."". It's pretty much been all guess work for me Jul 03 16:32:39 How i can clear an recyclerview? Jul 03 16:38:56 hi Jul 03 16:38:59 yiati, I think the last one, if used in the same context that you would use any of the others, is an error Jul 03 16:39:01 as for the others Jul 03 16:39:10 i use RecyclerView with GridLayoutManager(span 2). http://imgur.com/z7TJcX9 can i change the size of items so they fit on the screen without scroll? Jul 03 16:39:44 actually, i think i misread your question yiati, you've mixed a bunch of unrelated things together Jul 03 16:39:56 sigmabeta-laptop: My understanding is that "parent="Theme..."" should be used for AppCompat themes Jul 03 16:40:03 http://paste.ubuntu.com/11816303/ source and http://paste.ubuntu.com/11816310/ error Jul 03 16:40:06 sigmabeta-laptop: yeah it's confusing :P Jul 03 16:40:19 guys why viewpager.setAdapter gives that error ? Jul 03 16:40:21 ok, so you would only ever assign a theme's Parent when you're defining the theme, in some xml file, you with me? Jul 03 16:41:29 and as far as that goes, the last one is the correct syntax for that. Jul 03 16:41:31 something like Jul 03 16:42:20