**** BEGIN LOGGING AT Wed Jan 07 02:59:58 2015 Jan 07 03:00:04 yeah let me know when recyclerview dude stops by :) Jan 07 03:00:22 there are some pretty good tuts on it now Jan 07 03:01:21 I've just built the old version of the app again. It definitely has a little lag, but it is not noticeable in general. Jan 07 03:01:35 The RecyclerView one is very noticeably laggy Jan 07 03:02:30 str4d did you set hasFixedHeightWhataver to true ? Jan 07 03:02:34 Old version, the scrollbar shows the lag a little, but the list is basically smooth. RecyclerView version, the list itself pauses for fractions of a second on fast scrolls Jan 07 03:02:46 g00s: no, didn't see anything about that in any tutorial I found Jan 07 03:02:47 yeah i've heard that too Jan 07 03:03:12 str4d try https://developer.android.com/reference/android/support/v7/widget/RecyclerView.html#setHasFixedSize(boolean) Jan 07 03:03:27 set to true (if you can) Jan 07 03:04:34 g00s: odd description. Does it mean that the bounds of the RecyclerView aren't changed by the Adapter, e.g. if the RecyclerView is fullscreen? Jan 07 03:05:14 lol, yeah ... ugh its sementically ambiguous Jan 07 03:05:14 (which mine is, both width and height being match_parent) Jan 07 03:08:30 g00s: that doesn't appear to help at all :/ Jan 07 03:08:58 My "test" for this is flicking the list with my finger as fast as possible. Jan 07 03:09:37 (but the lag is also visible at "medium" scroll speed) Jan 07 03:10:18 I've spent the best part of two days doing this migration, and I'm about ready to throw it all out and go back to the "textbook example of what *not* to do" Jan 07 03:10:29 Because at least that scrolled smoothly Jan 07 03:11:24 If you go back to ListView, you can easily rewrite it to be performant. Jan 07 03:11:35 It's not hard to use that recycled view and minimize findViewById calls. Jan 07 03:12:03 (I know that it's performing better than RecyclerView; just referring to the "textbook" thing.) Jan 07 03:12:23 I'd actually started doing that already, in smaller lists Jan 07 03:12:32 And then decided to change to using RecyclerView instead. Jan 07 03:12:33 heh Jan 07 03:15:50 Someone told me to switch to RecyclerView for optimal performance the other week. Jan 07 03:16:10 Haven't tried yet. Hmm. Jan 07 03:16:41 I keep hoping that I've missed something obvious Jan 07 03:23:41 I would use method profiling (or whatever it's called). Jan 07 03:23:49 You'll see any significant bottleneck pretty easily. Jan 07 03:26:39 Is BoteHelper.getPictureForAddress slow, BTW? Jan 07 03:27:47 Not horribly Jan 07 03:28:17 Speed currently scales with number of identities and contacts Jan 07 03:28:55 I did just try commenting out picture-setting and date-setting, and it removes a bit of the lag, but still more lag than old code. Jan 07 03:30:09 And old code used the same getPicForAddr method, so any slowness wasn't noticeable Jan 07 03:31:34 The thing is, your new code isn't doing the same stuff as the old code. Jan 07 03:31:56 The new stuff has an extra 'else' clause under the Bitmap stuff, for example. Jan 07 03:32:13 Why not make the code 100% identical (apart from using RecyclerView) and see what the difference is? Jan 07 03:32:42 "setImageDrawable" doesn't happen in the old code. Jan 07 03:33:05 Yah I know, but that is necessary because the new code reuses Jan 07 03:33:19 If I wrote the old code to do reuse, it would also have that extra else clause Jan 07 03:33:51 So the tradeoff there is doing a setImageDrawable sometimes, vs doing an inflate always Jan 07 03:34:46 If I make the onBind* code identical, the UI slowly degrades as the user scrolls more (with UI parts from listitems polluting neighbouring ones) Jan 07 03:35:25 Without that extra else, all listitem pictures became the same as I scrolled down and up Jan 07 03:36:05 Okay. Have you tried commenting-out all code relating to bitmaps? Jan 07 03:36:11 No bitmap stuff at all. Jan 07 03:38:25 Tried that above, it improved things but not much. Jan 07 03:38:39 I've just profiled with everything, going to profile without bitmap now and compare Jan 07 03:41:18 You're doing stuff like setting visibility to "gone". I think that causes a re-layout. Why not create a new view type for that? Jan 07 03:41:49 My understanding is that the "different view type" system is all about avoiding stuff such as hiding/showing views, because that can be slow. Jan 07 03:41:50 Does it? Jan 07 03:42:20 That is something I wasn't aware of. And there is certainly more hiding/showing views now, because of the reuse issue Jan 07 03:42:48 I would definitely expect that to be slow in many cases. Setting a view's visibility to 'gone' means that all the other views have to re-measure. Jan 07 03:42:56 And setting its visibility back to 'visible' entails the same. Jan 07 03:43:24 Well, assuming that the other views are changing size relative to the view in question. Jan 07 03:43:43 e.g., in a LinearLayout. Jan 07 03:44:17 Which they will be Jan 07 03:44:59 I just tried commenting out from the date code onwards, removing all the View.GONE stuff, and performance is definitely better. Jan 07 03:45:11 Okay, sounds good. Jan 07 03:45:15 (profile to test...) Jan 07 03:46:21 Okay, tests are in. I went to the same view each time, started profiling, then flicked the view down and then up, five times. Jan 07 03:47:14 New code as-is: Incl CPU time 59.1% 3388.060 Jan 07 03:47:34 Without Bitmaps: 56.7% 2769.138 Jan 07 03:48:19 Without Bitmaps, and nothing from Date-setting to the end of the try{}: 36.2% 1291.258 Jan 07 03:48:35 With Bitmaps, but nothing from Date-setting to the end of the try{}: 50.4% 1869.874 Jan 07 03:49:05 (Stats for RecyclerView$ViewFlinger.run() ) Jan 07 03:56:34 Although digging deeper, it looks like a lot of time is spent in BoteHelper.isSentEmail(), which is another (separate) problem. Jan 07 03:59:31 In general, I think you need to be doing as little processing as possible in onBindViewHolder/getView. Jan 07 04:00:48 Mmm. The more I can cache in the Email object the better, I guess Jan 07 04:01:41 guyz, please help me here's the link http://pastebin.com/e9AALVnk Jan 07 04:01:45 The backend code was written to power a web frontend, so there probably wasn't as much need to not calculate during render as now. Jan 07 04:01:47 that apps is repeatedly calling/listening to the webservice for incoming data but i dont know how to the display the value of response_str, what method will i post the result Jan 07 04:02:48 Thanks for all your assistance TacticalJoke :) Jan 07 04:03:04 No worries. Hope you figure it all out. Jan 07 04:04:48 another developer's soul recycled :) Jan 07 04:04:59 recycled? Jan 07 04:06:17 hope somebody could help me? Jan 07 04:06:55 mae_tae: so what line does it crash, what's the error message Jan 07 04:07:03 important things Jan 07 04:07:42 or it doesn't crash or what Jan 07 04:07:51 and where did you want to post the result and so on Jan 07 04:09:09 Agamemnus: actually im new to android, that's i really wanted on where will i post the result? what method to be used? actually there's no error for that Jan 07 04:10:14 i mean what method will i used to implement the result, just like in the asynctask that you need to post it in onPostExecute, i dont know in that thread Jan 07 04:10:28 I see Jan 07 04:10:46 Now that you articulated the question a little bit better.. someone else can answer :D Jan 07 04:10:52 Cause I don't knnow Jan 07 04:11:06 Is this a question of a Service sending stuff to an Activity? Jan 07 04:11:24 yes.... Jan 07 04:11:46 rxjava - replaysubject Jan 07 04:12:25 Any way to use debug mode without USB? Jan 07 04:12:33 Serious question Jan 07 04:12:35 lol Jan 07 04:12:35 i believe that code act like a loop, it something repeatedly calls the webservice, because the appz that i wanted to display is that it continuously listens to the database server if there are incoming data there Jan 07 04:12:39 wireless ADB Jan 07 04:12:40 you can adb over wifi Jan 07 04:12:52 there are a ton of apps for it Jan 07 04:12:53 snap Jan 07 04:12:59 it's slower to install Jan 07 04:13:00 Whats a good app? Jan 07 04:13:03 but it works Jan 07 04:13:18 because i had a field there called status which could have value of either "served" or "not" so i want get all "not" from time to time Jan 07 04:13:21 mae_tae: I've never used a Service before, but I'm currently googling "android service communicate activity" and getting a lot of results. Jan 07 04:13:25 just type in wireless adb, they all do essentially the samr thing Jan 07 04:13:43 You don't need an app for wireless adb. Jan 07 04:13:52 You don't? Jan 07 04:14:04 How do you set it up so the IDE detects it then? Jan 07 04:14:11 adb connect Jan 07 04:14:24 http://stackoverflow.com/questions/14357705/adb-over-wireless Jan 07 04:14:32 TacticalJoke: Thanks Jan 07 04:14:44 ah cool Jan 07 04:14:46 AndreYonadam, are you on a custom rom Jan 07 04:14:54 its usually in dev settings Jan 07 04:15:05 bynarie: Basic asop Jan 07 04:15:11 Galaxy Nexus Jan 07 04:15:28 or can i do this Jan 07 04:15:31 protected void onPostExecute(String message) { AttemptLogin at = (AttemptLogin) new AttemptLogin().execute(LOGIN_URL); Jan 07 04:15:49 calling asynctask again in onPostExecute? Jan 07 04:15:59 don't do that Jan 07 04:16:09 basically it's the same idea with the code that i posted Jan 07 04:16:46 Thanks for the help last night Agamemus. I got my project down to two errors. :) lol Jan 07 04:16:55 mae_tae: Is the solution to use BroadcastReceiver? That's what Google seems to be telling me. Jan 07 04:17:04 e.g.: http://www.vogella.com/tutorials/AndroidServices/article.html#tutorial_intentservice Jan 07 04:17:29 k ill read it Jan 07 04:18:04 rxjava is a bit cleaner :) Jan 07 04:18:49 So I'm thinking about how I'm gonna show thumbnails in my ListView for my reddit app. I'm looking at Picasso (I wonder whether that makes JW's computer ping :D). It seems that Picasso just does everything I need. Jan 07 04:19:05 Am I right to conclude that I would be insane not to use Picasso? Jan 07 04:19:22 he has a pinger on a list of words, i think ;) Jan 07 04:19:35 he's like beetlejuice ;) Jan 07 04:20:25 i guessthey are making beetlejuice 2 Jan 07 04:20:32 starring JW Jan 07 04:20:40 a tim burton prioduction ;) Jan 07 04:20:48 that would be cool Jan 07 04:21:47 I'm not sure I can justify the code complexity of *not* using Picasso. Jan 07 04:22:02 i feel Jan 07 04:22:08 TacticalJoke: you can't Jan 07 04:22:09 like a shitload of shit got dumped on me Jan 07 04:22:11 another thing guyz, can i do complex things in phonegap? Jan 07 04:22:12 Okay. lol Jan 07 04:22:17 anyone else got the flu? Jan 07 04:22:23 i do :( Jan 07 04:22:24 mae_tae: yeah, you can Jan 07 04:22:28 <-flu Jan 07 04:22:31 right now Jan 07 04:22:32 Try not to breathe on me. :/ Jan 07 04:22:43 you guys are wimps, letting a puny little bug ruin your day ! Jan 07 04:22:44 * Agamemnus *breathes on TacticalJoke* Jan 07 04:22:52 LoL Jan 07 04:22:52 i was sneezing for two weeks Jan 07 04:22:53 g00s: week! man flu! Jan 07 04:22:59 but it broke out yesterday night Jan 07 04:23:15 Agamemnus: ok, will you recommend that i'll just do programmable appz in phonegap? or do the hard coding? Jan 07 04:23:24 everyone in the family has had it now Jan 07 04:23:29 actually man flu is true apparently. has to do with testosterone and immune system hehe Jan 07 04:23:37 mae_tae: if you like Javascript Jan 07 04:23:43 which i do Jan 07 04:23:51 what is a programmable app btw Jan 07 04:23:57 I have no clue what PhoneGap is, and yet I feel like it's a terrible thing that should never be used. Weird. Jan 07 04:23:59 Agamemnus you got your flu from phonegap Jan 07 04:24:05 oops, cordova Jan 07 04:24:07 i see, does phonegap supports also php? Jan 07 04:24:16 Cordova and phonegap are almost the same thing Jan 07 04:24:27 hehe Jan 07 04:24:32 Not really, since the objective is to run javascript in an app Jan 07 04:24:32 Probably because I believe that it's one of those "Oh, don't worry about learning to program for the platform -- just use HTML and stuff" things. Jan 07 04:24:49 The plugins are getting better daily Jan 07 04:24:56 There's more and more effort going into them Jan 07 04:25:02 Partly, thanks to ME.. Jan 07 04:25:44 right now i'm working on debugging the IAP plugin I'm using Jan 07 04:25:54 code has been in use for a few years but it's buggy Jan 07 04:26:00 ok, hehe, how will it manipulate mysql example? i mean does phonegap interact with mysql Jan 07 04:26:04 Why would someone use PhoneGap/whatever and not learn Java/Android? Jan 07 04:26:13 Other than a lack of time or something. Jan 07 04:26:14 because Java/Android is a big mess Jan 07 04:26:18 also Jan 07 04:26:28 because you can in theory use it for iOS. And web. Jan 07 04:26:31 But isn't the PhoneGap version always gonna be inferior (appearance, speed, etc.)? Jan 07 04:26:37 I see. Jan 07 04:26:46 it really depends on how you use it Jan 07 04:26:46 it is easy doing in html & js rather than in java Jan 07 04:27:03 Do people actually like using JavaScript? Jan 07 04:27:05 with javascript you're limited to the Chromium browser Jan 07 04:27:08 Well, I do Jan 07 04:27:24 But the Chromium browser is getting better every day Jan 07 04:27:42 and you can use the latest one with Crosswalk. (standalone browser) Jan 07 04:27:43 Agamemnus: You prefer using JavaScript to using Java? Jan 07 04:28:09 Help! Moz has me stuck doing javascript instead of the Java they promised me :D Jan 07 04:28:20 It's a lot easier to use in terms of nesting code Jan 07 04:28:30 capella, mozilla? Jan 07 04:28:48 heh - FF Mobile/Android has javascript under the hood :) Jan 07 04:28:57 I'm a programming-language bigot. I simply hate some languages. :D Jan 07 04:29:05 mozilla loves JS too much, it will be their downfall Jan 07 04:29:11 FF Mobile is really, really, really inferior to Chrome Android right now. Jan 07 04:29:14 My worst are probably C++, JavaScript, and PHP (though I've not used PHP at all). Jan 07 04:29:18 not as many resources Jan 07 04:29:19 I hated js at first ... stupid dynamic language ... but it's pretty easy Jan 07 04:29:28 Used C++ quite a lot; used JavaScript a little. Jan 07 04:29:41 I can handle C++ until we et ito templates, then I need more practice Jan 07 04:29:43 Maybe it grows on a person. Jan 07 04:29:43 yeah i plan on learning it fo shiggles, but they keep using it for stuff they shouldn't ... like pdf.js Jan 07 04:30:02 asm.js is where I'm dying to play next Jan 07 04:30:07 and freakin asm.js brlargh Jan 07 04:30:14 IMO, Java/Android feels like a very structured thing that is full of spaghetti code hacks Jan 07 04:30:30 Agamemnus: I don't know if you remember me from last night, but I had all those Admob issues... Turns out most of the errors were from an incorrect import that i didn't notice... ugg Jan 07 04:30:31 all the overwriting stuff, I don't like that. Jan 07 04:30:34 meh - no more than any other language / OS Jan 07 04:30:39 Bukoo, I told u Jan 07 04:30:41 Overwriting? Jan 07 04:30:45 you had a second one Jan 07 04:30:51 Overloading Jan 07 04:30:54 overriding? Jan 07 04:30:57 @Override Jan 07 04:31:13 @Override. Jan 07 04:31:20 Agamemnus: yes, yes you did..... Jan 07 04:31:36 It's just a notation for inheritance Jan 07 04:31:38 @Override... that's cool and all, but feels wrong Jan 07 04:31:43 yeah Jan 07 04:31:47 I don't like inheritance.. Jan 07 04:31:50 So the compiler screams @ you Jan 07 04:32:00 No inheritance? No OOP? Jan 07 04:32:06 OOP Jan 07 04:32:12 But not inheritance. Or rarely Jan 07 04:32:14 Extremely rarely Jan 07 04:32:38 I have to say Jan 07 04:32:41 Java has grown on me Jan 07 04:32:43 A LITTLE Jan 07 04:32:49 I mean it's not as bad as I thought. Jan 07 04:32:53 Why don't you like inheritance/polymorphism? In my view, it matches how we think about the world pretty well. Jan 07 04:33:06 But it doesn't match how the world IS Jan 07 04:33:33 Tell that to my interview that wanted me to prototype a parking garage Jan 07 04:33:45 lol shiggles Jan 07 04:33:52 Wish there was an irc for android dev newbs Jan 07 04:34:25 * capella . o O ( let's see, we have ParkingSpot, and Entrance and Exit, and ... ) Jan 07 04:34:45 You should have told him Jan 07 04:34:52 "You can't prototype that." Jan 07 04:35:03 i dont like the whole xml and java thing.. for example, why should u have to create a list and adapter just to use a list view.. why not just listview.addItem("crap") Jan 07 04:35:08 and then talked about how to use composition instead Jan 07 04:35:17 bynarie: Because ListViews are extremely powerful. Jan 07 04:35:17 There were "Vehicles" involved, some of which were enum type MOTORCYCLE... Jan 07 04:35:18 and then no job :d Jan 07 04:35:35 To add "addItem" to ListView would be making it so limited that it'd be worthless in most cases. Jan 07 04:35:44 yeah... you're getting the hang of inheritance going bad Jan 07 04:35:45 Or making it have annoying methods that nobody seriously uses. Jan 07 04:36:08 bynarie: What if you want to display a list of audio tracks? What would you pass to addItem, exactly? Jan 07 04:36:18 TacticalJoke, well im just used to using like a listbox in C#.. listbox.add or listbox.items.add Jan 07 04:36:22 I hate hand-wavy interview coding tests Jan 07 04:36:25 Yeah, but ListBox sucked! Jan 07 04:36:27 i see your point Jan 07 04:36:31 thanks guyz for the concept, ill try to read more on it, last thing can phonegap interacts with mysql? Jan 07 04:36:32 I came from C# too. ListBox was limited to text. Jan 07 04:36:32 at least you got one.. Jan 07 04:36:40 "How would you instruct a robot to cross the room and get your coffee" ? Jan 07 04:36:48 Look at the YouTube app. No way you could do that with ListBox. Jan 07 04:36:52 a) I'd tell it in French Jan 07 04:36:53 mae_tae you can use a number of client based databases Jan 07 04:36:58 People used to make custom version of ListBox just to be able to add a single image. Jan 07 04:36:58 TacticalJoke, true LoL Jan 07 04:37:02 And even that is too limited. Jan 07 04:37:04 but you should be having the server handle the server database Jan 07 04:37:07 b) cause I only talk to French robots Jan 07 04:37:10 Agamemnus: thanks Jan 07 04:37:16 On Android, your list widget can display basically anything you want. Jan 07 04:37:20 but atleast java in identical syntaxally to c# Jan 07 04:37:21 That's why you need to use adapters. Jan 07 04:37:23 it's more about javascript instead of phonegap Jan 07 04:37:39 like, what can javascript do Jan 07 04:37:46 Are you supposed to be able to debug on wireless ADB? Jan 07 04:37:47 Adapters are responsible for displaying stuff, basically. Jan 07 04:37:48 and then you can make plugins for what it can't access Jan 07 04:37:54 andreyonadam: yes Jan 07 04:37:57 right Jan 07 04:38:00 bynarie: Yeah, very similar. C# is way nicer, though. :) Jan 07 04:38:00 that's the idea Jan 07 04:38:20 im learning, still a noob pretty much thats why i hang here and listen Jan 07 04:38:43 but ive completely dumped windows and i am on linux 24/7 now so no more c# for me Jan 07 04:38:59 if you want to use Phonegap or Cordova, you should ask yourself if you need the latest chrome or not Jan 07 04:39:05 I used to say that C# was the Scarlett Johannson of programming languages. Jan 07 04:39:11 lol Jan 07 04:39:14 and then if you do, you need to add crosswalk Jan 07 04:39:16 Though, to be honest, it's getting bloated now. I'd like to award that title to Nim now. :D Jan 07 04:39:36 Though I've never used Nim. Who knows. Jan 07 04:39:45 c# was easy to use, easy to understand Jan 07 04:39:46 * g00s shakes head Jan 07 04:40:00 Yeah. Stuff such as first-class events are nice. Jan 07 04:40:09 Lambdas, etc. Jan 07 04:40:40 Johansson* (I can never remember that spelling) Jan 07 04:41:28 bynarie: Did you like the 'var' thing? Jan 07 04:41:53 one thing i still dont understand to this day, regardless of language, is event handlers.. is an event handler just a fancy loop running somewhere constantly checking for, say textbox1.change=true??? Jan 07 04:42:17 i never understood the var thing.. i always declared what it was.. string, int, long w/e Jan 07 04:42:22 Generally, no. It's just something like a pointer to a method, which can be used at any time. Jan 07 04:42:49 yea but how is it invoked Jan 07 04:42:53 'var' uses type inference. You can say "var foo = 5;" and foo will be an int. Jan 07 04:42:55 like, on a low level sense Jan 07 04:43:56 I think, deep down, it will result in some kind of pointer to a function that is invoked at some time in the future. Jan 07 04:44:21 Ultimately, it's no different from any other method/function/whatever call. Jan 07 04:45:20 right but the thing that throws me off is how does it know when to fire.. thats why i said loop.. unless something is checking for change, there'd be no way to fire the method Jan 07 04:45:36 hell i dont know Jan 07 04:46:16 bynarie: Something like a TextBox-change-event would be first upon the user typing. The code that handles key-presses would fire that event (call that method). Jan 07 04:46:32 TacticalJoke: var isnt just the same as var in scala ? ;) Jan 07 04:46:32 It's nothing fancy. Just calling a method. Jan 07 04:47:02 Not sure, gordon_. Jan 07 04:47:14 In C#'s case, "var foo = 5;" and "int foo = 5;" are identical in bytecode. Jan 07 04:48:08 bynarie: Some events are fired by the OS itself. That might be the kind of thing you're thinking of. Jan 07 04:48:13 it will be the same in scala I guess Jan 07 04:48:17 probably Jan 07 04:48:19 But, even then, it's the same. Jan 07 04:48:21 java8 has it too afaik ? Jan 07 04:48:36 or my memory is starting to be bad Jan 07 04:48:42 i meam, i get the idea that an event is just the calling of a function Jan 07 04:49:38 when i think about the complexity of it, it really makes me go CRAZY lol Jan 07 04:49:51 Can anyone tell me what the advantages are of having most of your admob code in your java as oppose to your xml layout? if any that is... Jan 07 04:49:52 bynarie: The other component is the code saying "here is the function to call in the event of X". Jan 07 04:50:04 right Jan 07 04:50:35 man I *hate* android2 Jan 07 04:50:51 android2? Jan 07 04:51:13 Is that the one where John Conner ... oh, nvm Jan 07 04:51:44 bynarie: Note that Java requires giving object references to implement callbacks/events. No fancy function pointers or similar. Jan 07 04:52:46 g00s: yes.. Jan 07 04:53:10 what is android2 ? Jan 07 04:53:14 android2 and setting transparent background from code Jan 07 04:53:17 impossible Jan 07 04:53:20 API 4? Jan 07 04:53:24 android 2.3 ? Jan 07 04:53:31 wtf is that O.o Jan 07 04:53:38 api 9 but ok Jan 07 04:53:50 g00s: yes, it should be forgotten :D Jan 07 04:53:56 oh man, my condolenses ! Jan 07 04:54:05 erm Jan 07 04:55:37 is there a way to edit fragments with the GUI editor in Android Studio? I just get a red X icon when I try to put stuff on it :P Jan 07 04:56:17 fragments are not UI components Jan 07 04:56:22 so no Jan 07 04:56:57 t0astt: it's better to put them in code ;) Jan 07 04:57:06 in transaction Jan 07 04:57:10 gordon_, var in c# is just a type inferred variable, mutable, and the same is the case in scala Jan 07 04:57:23 I wish C# had 'val'. Jan 07 04:57:28 In fact, I wish Java had it. Jan 07 04:57:40 pfn: well scala's var is a little bit different Jan 07 04:57:42 Immatuability by default FTW. Jan 07 04:57:46 Immutability Jan 07 04:57:49 gordon_, not really, no Jan 07 04:57:56 I would say... c# var is c++ auto ? Jan 07 04:58:05 JakeWharton so the only way to edit them then is to manually put the UI elements in them by editing the XML for the layout? Jan 07 04:58:08 gordon_, no Jan 07 04:58:17 i give up ;) Jan 07 04:58:17 gordon_, no such thing as auto in managed languages Jan 07 04:58:38 t0astt: you can edit the layout XML in the graphical editor which a fragment uses Jan 07 04:58:40 isnt var compiled ? Jan 07 04:58:51 I'd like to mark almost all of my variables 'final', but it's too noisy. Jan 07 04:59:18 I guess another issue is onCreate (instead of a constructor). Jan 07 05:00:17 JakeWharton: Ah ok, I just figured out I'm not able to edit the Navigation Drawer layout XMl because the root element is a ListView :P Jan 07 05:01:53 TacticalJoke, can't just use a constructor for oncreate Jan 07 05:01:56 it's a lifecycle method Jan 07 05:02:26 Yeah, I mean that if someone were to use 'final' everywhere then they'd have to break this for onCreate and similar. Jan 07 05:02:34 And it might make their code look a little weird. Jan 07 05:03:04 that new dell xps 13 looks pretty nice Jan 07 05:03:41 I was reading through some code that uses 'final' everywhere. Even for parameters. God, it was hard to read. Jan 07 05:03:58 It was like code that uses comments for every line. Jan 07 05:06:21 pfn: Isn't the latest meaning of 'auto' in C++ identical to the meaning of 'var' in C#? Jan 07 05:06:29 I need a good tutorial for Admob using eclipse.... One where your code is in java. Anyone have a link? The one's I've found are either outdated or I can't get to work...... Jan 07 05:11:01 heh - I just wish companies would stop trying to oversell their goals and position responsibilities ... tell me what's involved, and I'll tell you if I can help you :) Make it sound too fancy, and I worry only God could do it XD Jan 07 05:12:09 er, wrong tab, but on-topic :p Jan 07 05:12:13 lol Jan 07 05:13:38 hm, writing nice code with the BLE apis is very ... difficult. in some way i like that challenge i guess Jan 07 05:14:00 creating elegance when the default is the opposite is rewarding Jan 07 05:15:53 my rx wrappers around the ble apis are coming along nicely :D Jan 07 05:17:44 it would be nice if they had onError though, i have a lot of GATT integer codes from the BLE apis i need to push through as exceptions holding an int, kinda lame Jan 07 05:17:54 Bukoo: what is the problem ? Jan 07 05:18:15 I thought Rx was for backward porting ... guess I need to google that stuff again Jan 07 05:19:02 JesusFreke you around ? Jan 07 05:19:55 g00s: why don't you push them through onNext instead in a wrapper type? Jan 07 05:20:35 gordon: well I'm trying to incorporate admob into an app and I just get errors. I know it's something very basic but I have very limited knowledge. The xml route seems much easier but I read somewhere that you have more control using java. Jan 07 05:21:09 JakeWharton yeah maybe, i can use materialize / dematerialize possibly too Jan 07 05:21:15 indeed Jan 07 05:21:35 Oh, the observables again :) Jan 07 05:21:53 Bukoo: https://developers.google.com/mobile-ads-sdk/docs/admob/android/quick-start Jan 07 05:23:13 TacticalJoke, it shouldn't? I thought auto meant stack allocation Jan 07 05:23:35 but I haven't been keeping up Jan 07 05:23:38 gordon: I've been there. I've been to many sites and tutorials over the past few days actually. developers.google has taken down everything for Eclipse. Jan 07 05:24:03 It changed meaning in C++11, I think. Jan 07 05:24:17 Bukoo: you should to Jan 07 05:24:19 o Jan 07 05:24:22 I think they used that word as a keyword since no sane person was using it before. Jan 07 05:24:28 anyway, download dependency and add it in eclipse ? Jan 07 05:25:36 gordon: I know, but my existing code doesn't like Android Studio. Jan 07 05:27:54 i changed focus.ogg to focus.ogg.bak but still getting the sound Jan 07 05:28:53 Should I try to support API 10? Jan 07 05:31:29 no Jan 07 05:32:15 Alright. Will do. I thought I should since on like Android it says there is 10% remaining users on that platform. Jan 07 05:32:26 Not sure if that's entirely true anyways. Jan 07 05:33:06 why wouldn't it be true? Jan 07 05:33:36 g00s: hmm? Jan 07 05:33:43 I would think those devices are probably abandoned. Maybe not as active as users with newer versions of Android. Jan 07 05:33:57 the dashboard clearly states the numbers are based on active usage Jan 07 05:34:24 JesusFreke you play an instrument, have you ever used composed anything on VSTS like Logic Pro ? Jan 07 05:34:25 Didn't see that part. Jan 07 05:34:33 Thanks Jan 07 05:34:41 they're low-value users Jan 07 05:34:53 g00s: I've done a bit in audacity, that's about it Jan 07 05:35:00 so, no :) Jan 07 05:35:01 in all likelihood they won't be downloading your app Jan 07 05:35:18 even if your app becomes wildly famous, by the time that happens they won't be running Gingerbread anymore anyway Jan 07 05:35:49 the hurdles to your app being remotely successful are so great that you are wasting your time supporting anything less than API 16 Jan 07 05:36:01 only unless there is clear and tangible value in supporting anything prior should you Jan 07 05:36:03 findViewById(R.id.linearLayout) is throwing an error.... I'm assuming linearLayout NEEDS to be references somewhere in the main layout xml? Jan 07 05:37:03 JakeWharton: Actually around 11% are using my other app with Android 2.3.3 Jan 07 05:37:12 Can someone explain how the navigation drawer passes what item is picked into the fragmentManager to insert a new fragment into the activity? Jan 07 05:37:21 Its going down though Jan 07 05:37:23 that's an existing app, doesn't count Jan 07 05:37:51 im yellin timber Jan 07 05:38:06 Yeah. Everyone is going to update anyway. Jan 07 05:38:21 screwsss: well played Jan 07 05:38:32 soz just bored Jan 07 05:46:05 im rooted but cant figure out how to get rid of focus sound Jan 07 05:50:28 gordon: download dependencies? was that for me? if so, sorry i missed it... I have all of that already. ;p my problem is that nothing really shows where in my java file i should be placing the code that I need to use. Also, nothing is very specific as to wether I need to add anything to my main.xml or not. I'm assuming so, just not sure exactly. Jan 07 05:51:31 be back in 10 min btw. Jan 07 05:54:04 Using Picasso, if I want to add a User-Agent to every request, is the best solution to use RequestTransformer? Jan 07 05:54:21 probably better to subclass a Downloader Jan 07 05:54:39 override the method that creates the connection, call super, add the header, return Jan 07 05:54:53 What exactly does this mean? "com.test.kyoto.HomeActivity@10001c1b must implement OnFragmentInteractionListener"? I just created a new Fragment and instantiated it. Jan 07 05:55:14 Ah, okay. Jan 07 05:56:29 nvm, found an article on it Jan 07 05:58:14 To be honest, I'm not sure whether to send a User-Agent to imgur and so on. Hmm. Jan 07 05:58:25 I send one to reddit because they require that. Jan 07 06:02:33 imgur doesn't care Jan 07 06:03:02 if you want to set a user agent for all requests you should use an OkHttp interceptor for that Jan 07 06:03:12 then you don't have to touch anything in Picasso Jan 07 06:03:57 JakeWharton can you think of any +/- either way of putting 'private' classes in internal/a,b,c or a/internal, b/internal, c/internal? the rx guys use former Jan 07 06:04:30 former Jan 07 06:04:47 Nice. Didn't know about Interceptors. They look really powerful. Jan 07 06:04:54 because it's simple, easy to ignore from javadoc and stuff Jan 07 06:05:04 ah, thanks Jan 07 06:06:59 Though I might end up using OkHttp's default User-Agent for anything other than reddit. Jan 07 06:07:40 what is OkHTTP? Jan 07 06:07:50 see: first result on Google Jan 07 06:08:02 JakeWharton what is Google Jan 07 06:08:09 see: first result on Bing Jan 07 06:08:11 Define 'what'. Jan 07 06:08:49 * sarbs just double-checked to make sure www.google.com was actually the first result for "google" in bing Jan 07 06:08:52 Should I be using that instead of this in my project? http://loopj.com/android-async-http/ Jan 07 06:09:01 passed the test with flying colors Jan 07 06:10:22 t0astt okhttp is an android http library and i believe was brought into the aosp fold and used as the default http client as of api.. 17? 18? Jan 07 06:10:33 19 Jan 07 06:10:39 it's also not really an Android library Jan 07 06:10:46 it run on the JVM as well Jan 07 06:10:51 true, it's a library that android consumes Jan 07 06:10:56 just like it did the apache http client etc Jan 07 06:10:58 t0astt: I can't answer your question for sure, but I know that OkHttp has a really strong reputation. Jan 07 06:11:02 It also supports SPDY! Jan 07 06:11:11 and HTTP/2 Jan 07 06:11:23 Is this maybe a situation as to where if something goes wrong with the current library I use, then switch? Jan 07 06:11:28 developed by some random dudes at rectangle, or something, iirc Jan 07 06:12:30 t0astt switching "just to switch", if you're far along in your development, is often a source of problems.. so yeah, if you run into troubles with your current library, okhttp might be a solution Jan 07 06:12:36 but it comes with its own quirks as well, just like anything Jan 07 06:12:48 indeed Jan 07 06:12:52 don't switch unless you have a reason to Jan 07 06:13:26 This is interesting: https://github.com/loopj/android-async-http/issues/242 Jan 07 06:13:38 "Moving to 2.0 milestone, where we will reimplement using OkHttp" < not sure what that means. Jan 07 06:14:24 It ended up being closed, however. Jan 07 06:29:59 So if I'm using Picasso to show thumbnails in a ListView then I'll have to keep hold of the Picasso reference so that I can call cancelRequest(Object tag) when the user leaves the Activity, right? Jan 07 06:30:10 just use the global instance Jan 07 06:30:25 Picasso.with() Jan 07 06:30:50 Okay. Jan 07 06:33:16 I am trying to set the cursor drawable color with an attribute but it's not applying. Any ideas why? http://pastebin.com/mS1Q7saS Jan 07 06:34:19 On line 18? Jan 07 06:35:25 AndreYonadam: line 7 Jan 07 06:37:38 jrummy: Do you need "color|reference"? Jan 07 06:37:47 Since you're giving a reference, I think. Jan 07 06:38:20 Jan 07 06:38:44 TacticalJoke: I already tried that, nothing changed :( Jan 07 06:38:45 Did you define the colors in the colors file? Jan 07 06:38:59 Not sure if that's the problem or not Jan 07 06:39:18 jrummy: You tried saving all and Project > Clean stuff after doing that? Jan 07 06:40:44 Did you figure it out? Jan 07 06:40:46 AndreYonadam: yeah. I even got the color programmatically just to double check. Jan 07 06:40:56 TacticalJoke: several times. Lol Jan 07 06:41:08 Maybe your not using that drawable lol Jan 07 06:41:49 I'd try using ?attr/accentColor somewhere else to make sure the attrs thing is working. Jan 07 06:41:53 How are you implementing it? Jan 07 06:42:24 AndreYonadam: In XML on an EditText with android:textCursorDrawable="@drawable/cursor_drawable_accent" Jan 07 06:43:09 jrummy: What does the cursor show up as? Invisible? Jan 07 06:43:18 AndreYonadam: white Jan 07 06:43:33 jrummy: Which isn't the default color right? Jan 07 06:43:41 AndreYonadam: correct Jan 07 06:46:33 I know it is using my drawable because the width is larger than the normal cursor Jan 07 06:47:11 Yeah. It should be like 1 instead of 1.5 right? Jan 07 06:47:37 yeah Jan 07 06:48:06 jrummy: Can you paste the color just for reference Jan 07 06:48:42 #64ffda Jan 07 06:52:00 how do i get rid of auto focus sound Jan 07 06:52:01 in camera app Jan 07 06:52:07 i managed to do it with the shutter sound Jan 07 06:52:11 but the same method does nothing for focus sound Jan 07 06:52:24 jrummy: Did you try applying the drawable from the activity? Jan 07 06:52:35 Probably won't change anything Jan 07 06:53:10 "Usage tracker in Android Studio": https://android-review.googlesource.com/#/c/120790/ Jan 07 06:53:11 Weird. Jan 07 06:53:40 You can only set the cursor drawable from XML unless you use reflection. I did try reflection and it didn't work. Jan 07 06:56:53 jrummy: What api level are you running your app on? Try removeing the rectangle shape from the xml? Jan 07 06:57:33 19... trying some stuff right now.. Jan 07 07:08:38 AndreYonadam: So I got it working with some ugly hacks. This may be helpful to anyone else since it will set the cursor tint on pre-lollipop: http://pastebin.com/jDruHBci Jan 07 07:09:18 nice Jan 07 07:10:14 that is pretty ugly Jan 07 07:11:04 One of those 'final' people. ;o Jan 07 07:11:22 desmin88: I agree, but there isn't any other way. Actually, appcompat and support-v4 both use reflection :P Jan 07 07:11:31 final us good Jan 07 07:12:02 Can anyone point me in the right direction to display the camera in the background of an activity, like the Snapchat sign in screen? Jan 07 07:12:17 TacticalJoke: yeah. My formatter auto makes everything final Jan 07 07:12:49 our team reqs final on everything... code standard Jan 07 07:13:46 although final in method params is not necessary unless you for anon. class Jan 07 07:13:54 uhh. you use* Jan 07 07:13:54 I wish Java variables were final by default. Using 'final' as much as possible is a nice idea, but IMO it significantly harms readability. Jan 07 07:14:15 In fact, I wish they were assign-once by default (not necessarily Java final semantics). Jan 07 07:14:38 so you'd want an 'editable' keyword? Jan 07 07:14:45 Yeah. Jan 07 07:14:54 hmm Jan 07 07:14:55 o dear Jan 07 07:15:03 Immutability is almost always desired. Jan 07 07:15:08 Mutability is kinda weird. Jan 07 07:15:22 reference and object mmutability are different things Jan 07 07:15:26 Yes. Jan 07 07:15:33 in android dev maybe, but in most programs no Jan 07 07:15:35 I'm talking about variable mutability. Jan 07 07:15:53 so no for loops? Jan 07 07:16:10 True, that 'i' has to change. Jan 07 07:16:16 for (editable int i = 0; i < count; i++) ?? Jan 07 07:16:33 I don't like it myself.. lol Jan 07 07:16:50 lets use the const keyword! Jan 07 07:16:55 yah feels weird Jan 07 07:17:20 its a reserverd keyword but has no use :p Jan 07 07:17:25 "for (var int i = 0; i < count; i++)". Or, if we could use type inference: "for (var i = 0; i < count; i++)". Jan 07 07:17:31 Hello Boys and and girls. Jan 07 07:17:54 eww non type safe Jan 07 07:18:06 If I put a link to an app on amazon in a program distributed on google play will google panic ? Jan 07 07:18:09 Why wouldn't it be type-safe? Jan 07 07:18:15 The compiler determines that it's an int. Jan 07 07:18:21 and hate me forever ? Jan 07 07:18:23 TacticalJoke: hmm.. now that's not too bad. 'var' feels more natural, maybe it's just from having written javascript. but no matter what, it's too late to change. Jan 07 07:18:24 in general i dont like type inference Jan 07 07:18:26 Unknown0BC: No Jan 07 07:18:27 :) Jan 07 07:18:29 im a verbose guy Jan 07 07:19:14 One thing I liked about type-inference in C# was that it forced the programmer to use good naming. Jan 07 07:19:27 javascript/dynamic languages hurt my brain Jan 07 07:19:46 I like the compile time binding Jan 07 07:19:48 jrummy have you done that ? Jan 07 07:19:52 or something like it ? Jan 07 07:20:10 +1 capella-s3 Jan 07 07:20:40 Yeah, static typing is so much easier. Jan 07 07:21:18 Unknown0BC: no, but I highly doubt Google bots will decompile your apk and see a String that has a link to an app on Amazon. You will be lucky if someone ever clicks it beside yourself. Sorry for the realism. Jan 07 07:22:54 Google excludes my country from in app purchases on google. So I thought i'd link to the payed version on amazon if they want the features which are disabled on the free version... Jan 07 07:22:56 I'd be really careful, personally. Google takes apps down for the slightest thing. Jan 07 07:23:42 without any recourse too Jan 07 07:23:43 I'm led to believe that even someone who 100% obeys the rules could easily get a take-down. Jan 07 07:23:49 just an automated bot e-mail then poof. Jan 07 07:23:51 Let alone those who break the rules. Jan 07 07:26:47 this is probably a stupid question but what is this popup thing called? http://i.imgur.com/OTI7GxN.png\ Jan 07 07:27:35 duncannz: That's a dialog Jan 07 07:27:43 thanks Darklust Jan 07 07:33:21 has anyone used the chromium webview? Jan 07 07:34:07 Unknown0BC: I would go ahead and link to Amazon. You are most likely worried because of all the reports of apps being taken down. Most of those are because the app's name contains another companies trademark. Google won't decompile your APK; so I think you will be just fine. Jan 07 07:35:32 how can i improve the image quality on the chromium webview add-on? compared to the native webview, the images are very pixelated Jan 07 07:37:47 jrummy: But would it be breaking the rules? Jan 07 07:40:23 TacticalJoke: I don't think so, but not sure to be honest. Do you know? If simply linking to the amazon app store is prohibited, then wouldn't any web browser be breaking the rules? Jan 07 07:59:26 Can anyone point me in the right direction to display the camera feed as the layout background, like the Snapchat sign in screen? Jan 07 07:59:56 guys, you use Crashlytics? Jan 07 08:02:00 yup Jan 07 08:04:33 and Git? Jan 07 08:04:50 why ask Jan 07 08:04:56 I am wondering about these small crashlytics files in the project I've checked them in by default and they are changed with every build Jan 07 08:05:16 com_crashlytics_export_strings and crashlytics-build-properties Jan 07 08:05:23 I want to ignore them, do you? Jan 07 08:05:23 you dont want those in there Jan 07 08:05:32 ok Jan 07 08:05:51 see I have no idea which to put and which to leave out (aside from the stuff gitignore.io tells me) Jan 07 08:05:54 I can't reason it Jan 07 08:07:32 Files that get automatically generated when you build, do usually not need to be in git Jan 07 08:07:59 I believe the files even have comments in them saying not to commit to version control Jan 07 08:08:16 This guy seems to have not heeded such advice https://github.com/codeforpakistan/Messiah/blob/master/assets/crashlytics-build.properties Jan 07 08:10:03 meh, dc Jan 07 08:10:25 Odaym: I believe the files even have comments in them saying not to commit to version control Jan 07 08:10:48 oh I never opened those files Jan 07 08:10:58 only knew of their existence when I went to commit Jan 07 08:12:17 commit to internal source control, it says Jan 07 08:12:26 which file. Jan 07 08:12:34 crashlytics.properties Jan 07 08:12:37 this is not even checked in Jan 07 08:12:42 it just came up as I was ls'ing Jan 07 08:13:03 that contains the api key, no? Jan 07 08:13:06 yea Jan 07 08:13:32 then commit to internal source control only Jan 07 08:16:35 Hello Jan 07 08:28:37 I have a problem with AES encryption and decryption, with base64 as string storage for encrypted data. Jan 07 08:28:45 My code is here: http://pastebin.com/vd8ePh5a Jan 07 08:29:05 and the problem is that decryption throws javax.crypto.IllegalBlockSizeException: last block incomplete in decryption Jan 07 08:29:26 I have searched a lot and found padding solution but it didn't help. Anything I tested didn't help Jan 07 08:32:02 not really relevant to android Jan 07 08:32:05 try ##java Jan 07 08:34:03 yikes. i have too many kindle books. the reader stutters / janks like mad, can't seem to cache the whole collection's covers (don't have many on device) Jan 07 08:34:11 okay Jan 07 08:35:10 afl_ext you may want to try spongycastle. Jan 07 08:39:12 ##java won't help me since this question is android related. Jan 07 08:39:38 have any one issues with android sdk adb on mac loses devices? Jan 07 08:39:50 https://code.google.com/p/android/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars&groupby=&sort=&id=65301 Jan 07 08:42:07 brainv: Yes Jan 07 08:42:16 Mrdarknezz: any workaround? Jan 07 08:42:21 brainv: But it sorta differs from device Jan 07 08:42:44 brainv: Some phones you need to switch the usb mode Jan 07 08:42:44 what do you mean? it works with your other phone? Jan 07 08:42:52 Others I just reconnect the cable Jan 07 08:42:58 i tried 6 sets of different devices but still the same Jan 07 08:43:43 flash idea: maybe mac is saving usb power? Jan 07 08:43:46 Mrdarknezz: yeah that's the extra steps which frustrate us Jan 07 08:44:14 afl_ext: i think not, this only happen when we upgrade to yostmette Jan 07 08:48:02 i hear yosemite is bugged to hell Jan 07 08:48:13 g00s: mostly new shits is buggy Jan 07 08:48:31 and they have only put out one update ! Jan 07 08:48:48 they should be on .2 .3 or something by now Jan 07 08:50:08 well, even if not using usb, the issue is still there, i tried using the adb tcp mode via wifi Jan 07 08:50:26 so it's not actually usb related issue Jan 07 08:55:25 g00s: Had that problem on all osx versions Jan 07 08:55:27 and windows Jan 07 08:55:39 not sure about linux Jan 07 08:56:26 anyone knows how to make that scrollbar in android studio bigger? Jan 07 08:56:29 its way too small Jan 07 08:56:52 Why would you want it bigger? Jan 07 08:57:05 You are not actually dragging it are you? Jan 07 08:57:46 sometimes i want to drag because i dont always have a mouse with scrollbar and this touchpad is bad Jan 07 08:58:29 If you won't find way to enlarge the scrollbar, I recommend using arrows, ctrl+arrows and pageup/down Jan 07 09:03:35 did you see this? http://lumiaconversations.microsoft.com/2015/01/05/nokia-215/ Jan 07 09:04:02 beautiful phone Jan 07 09:04:16 yea I can't wait to get one Jan 07 09:04:25 no idea how much it will cost when it ships though Jan 07 09:04:36 I got asha 302 as phone and I appreciate it's reliablity Jan 07 09:04:45 it just works no matter what happens Jan 07 09:05:26 honestly I would like to keep my nexus 5 or whatever to stay for development and use that nokia for everyday needs Jan 07 09:06:26 thats exactly what I do Jan 07 09:06:43 developers developers developers developers... Jan 07 09:07:01 man a move like this really makes me remember why Microsoft is Microsoft Jan 07 09:07:36 god damn goliath Jan 07 09:08:14 Ms is getting better under new CEO management Jan 07 09:29:28 Odaym the nokia 215 goes for $29 USD Jan 07 09:29:41 in the US, yea Jan 07 09:29:49 but when it comes here there will be some cost added Jan 07 09:30:01 i'd like to get one of those Android One devices for testing Jan 07 09:40:16 hi Jan 07 09:42:01 hi Jan 07 09:46:09 im trying to render a png containing text like so http://paste.debian.net/139532/ Jan 07 09:46:19 unfortunately the result png is always completly black. any ideas> Jan 07 09:48:52 paste.debian? :P Jan 07 09:48:58 ? Jan 07 09:50:22 oh using 255 as alpha value works. thanks ;) Jan 07 09:52:28 man, this john williams guy Jan 07 09:52:46 one of the pieces he plays, he says he's been played it for 30 - 40 years Jan 07 09:52:46 wat Jan 07 09:58:06 Hello. I am encountering a really odd problem in a place I would not expect this to occur, which is preventing my app from working properly. Can someone shed some light on it? Here's a pastebin of the problem: http://pastebin.com/fyc3972C Jan 07 09:59:34 I am encountering an invalid int "" error in the check if the current file is a directory that has not been visited Jan 07 09:59:56 And I have no idea why Jan 07 10:01:13 why don't you first check if the directory is null aside from the check whether it contains things Jan 07 10:01:29 if not null, then do if not visited Jan 07 10:02:20 it probably does work in the same condition, but I dont know, the process seems logically sequential so I wouldnt do it in 1 go Jan 07 10:03:28 Well, there is a check on the listFile if it is null or not, before the for loop is created Jan 07 10:04:38 but not at the i index Jan 07 10:04:43 I'm talking about line 15 Jan 07 10:05:01 oh, you're not checking null, you're checking if isDirectory Jan 07 10:05:07 yea I'll get out of your way :P Jan 07 10:08:00 Yeah, this is the last place I would expect to see an invalid int, as the only int I'm using is perfectly defined and I can't imagine what would set it to "" Jan 07 10:08:20 maybe you should paste the stacktrace Jan 07 10:08:22 and not just the code Jan 07 10:12:00 Be right back, have to log for a few minutes. When I return, I'll post the trace too. Jan 07 10:21:24 Guys how to separate network communication from activity if it updates activity, trying to become a better developer but stuck :D please help Jan 07 10:21:57 how can I make that two fragment will overlap Jan 07 10:27:18 meadhikari, callbacks Jan 07 10:28:22 MessageBus. Jan 07 10:36:26 Zharf, can you please provide some links regarding android-async-http, it would be great Jan 07 10:36:42 meadhikari, you want volley or okhttp Jan 07 10:37:11 I am using com.loopj Jan 07 10:43:39 Ok, I'm back. Here's the trace: http://pastebin.com/PQL7LNrE Jan 07 10:45:25 Looking again, it seems to have changed to null pointer. Before it was invalid int. But always in the same place. Line 314 is the isDirectory() check Jan 07 11:02:12 Guys I need some beginner level tutorial links on handling callbacks in android please help Jan 07 11:12:09 callbacks are things that are called when something wants to notify you of their job beeing done Jan 07 11:13:10 just like on a button you set a OnClickListener whihc is prettymuch the same thing, the button calls back your code when the user presses the button so you can do what you want to do when it is pressed Jan 07 11:14:29 asfdd, i am using async task to start a network communication and on onSuccess() i am updating UI now i want to have callback instead of updatinf UI on onSuccess(), am i making sense? please help Jan 07 11:14:59 yes makes sence so do it Jan 07 11:15:43 my question is how do i update the textview from a separate asynctask class now Jan 07 11:16:38 or make a function is main activity that get called onSucces() of async task Jan 07 11:17:00 sorry if these question sound really stupid Jan 07 11:18:13 you just update it? but your call back function of course has to have a reference to the textfield it is to update Jan 07 11:18:32 onSuccess() is a callback btw Jan 07 11:18:46 like send the textbox in the constructor? Jan 07 11:18:56 if you want to, there are countless ways to do it Jan 07 11:19:55 its difficult to understand your question without seeing the code Jan 07 11:35:11 hi Jan 07 11:37:07 I have a list view that's based on an array adapter class Jan 07 11:39:03 the problem is getView() method is called every time I scroll through my list Jan 07 11:39:20 and I have some tasks running inside getView() Jan 07 11:39:45 but because they are slower or because the position doesn't work properly, if you scroll really fast it will get bugged Jan 07 11:50:38 I'm trying to get a standalone C++ program to send a text message from the command line Jan 07 11:50:41 hi, is there a way to catch all keyboard events (off all apps) from a service? Jan 07 11:50:55 I think I've done everything right. the code runs, but for some reason no text message is sent Jan 07 11:50:58 my code is here Jan 07 11:51:01 http://ecdesign.co/fun.cc Jan 07 11:51:58 I'm wondering if I have to give permissions to my created Java VM instance Jan 07 12:13:46 hi :) Jan 07 12:14:46 i'm a complete newbie and needed some assistance with what files to commit to git from my project, the stack overflow answer doesnt seem to becompletely what i want Jan 07 12:14:57 anyone care to enlighten me? :) Jan 07 12:17:04 *.java, *.png, activity_*.xml are obvious... but what about app.iml? Jan 07 12:19:16 don't commit .iml files Jan 07 12:19:25 those are AS/IDEA project files which contain local settings Jan 07 12:19:30 also ignore whole .idea directory Jan 07 12:19:38 and local.settings also shouldn't be commited Jan 07 12:20:05 i cant see an idea directory hmmm Jan 07 12:20:30 because it's hidden >P Jan 07 12:20:48 androidmanifest.xml? Jan 07 12:20:58 i'm on windows, .idea shouldnt be hidden Jan 07 12:21:06 or by the ide? :) Jan 07 12:21:27 build.gradle and proguard-rules.pro? Jan 07 12:21:28 hmmm Jan 07 12:21:38 .gitignore too i suppose Jan 07 12:21:49 build.gradle certanly has to be commited because it describes how project is built. Jan 07 12:21:52 same with proguard rules Jan 07 12:21:54 ok Jan 07 12:21:58 and .gitignore has to be commited of course :P Jan 07 12:22:06 what are you doing here jasabella Jan 07 12:22:07 still trying to get my head around git Jan 07 12:22:08 sorry :( Jan 07 12:22:24 Sculptor... learning android development finally Jan 07 12:22:33 i though you were into medicine Jan 07 12:22:35 thought Jan 07 12:22:57 what's AndroidManifest.xml? Jan 07 12:23:09 android manifest xml file Jan 07 12:23:25 haha Jan 07 12:23:30 yeah i'm googling Jan 07 12:23:45 O.o Jan 07 12:23:58 jasabella, might wanna do basic Android training first. Jan 07 12:24:03 so you know what files actually do. Jan 07 12:24:12 looks like it should be up there Jan 07 12:24:17 i'm doing that right now lol Jan 07 12:24:24 i'm just wanting to commit after every milestone Jan 07 12:24:47 i just had it install the app on my nexus4 Jan 07 12:24:54 so time to commit Jan 07 12:25:17 ok manifest file goes up judging from what it contains Jan 07 12:27:14 now for the project bit Jan 07 12:28:11 MyFirstApp/scopes/*.xml is confusing Jan 07 12:30:01 compiler.xml, encodings.xml, gradle.xml, misc.xml, modules.xml, vcs.xml --- what do i do with these? Jan 07 12:30:47 is that the .idea directory? Jan 07 12:30:48 hmmm Jan 07 12:31:23 seems to be :) Jan 07 12:33:19 seems like i need to read between the lines: http://stackoverflow.com/questions/11124053/accidentally-committed-idea-directory-files-into-git Jan 07 12:37:30 Well, figured out what was causing me to alternately get invalid int and NullPointerException errors at the directory check. It's the most embarrassing thing ever. I had forgotten to initialize the visited list in onCreate(), lol. Jan 07 12:37:46 * ArmitaageDS is very embarrassed Jan 07 12:43:51 anyone familiar with AsyncQueryHandler? Jan 07 12:47:35 push rejected hmmm Jan 07 12:53:58 hi! Jan 07 12:54:32 is it possible to share audiofiles that are in raw-folder to whatsapp? Jan 07 12:54:38 inside a fragment i mean Jan 07 12:58:48 it says "Sharing failed. Please try again" Jan 07 12:59:34 here's the code Jan 07 12:59:35 http://pastebin.com/hqwhYbN7 Jan 07 13:01:16 gotta extract your file using getAssets and write it out to a shareable location Jan 07 13:04:12 hmm? Jan 07 13:04:22 any example from stackoverflow or something? Jan 07 13:04:41 hey guys… can i open a webpage inside my android app? Jan 07 13:04:48 yep. Jan 07 13:04:51 WebView. Jan 07 13:05:13 is it good/bad? considering i could just open in the default browser Jan 07 13:05:14 or if keeping in raw, http://stackoverflow.com/questions/2856407/android-how-to-get-access-to-raw-resources-that-i-put-in-res-folder Jan 07 13:05:26 luist, it IS the default browser Jan 07 13:05:36 luist, it just doesn't have any UI... so depends on what do you want to achieve Jan 07 13:05:56 oooh good to know Jan 07 13:06:02 if you just have to display a single form... yes it's fine. If users will want to have full bookmarks/login/forward/back/urlbar functionality, you're better off opening external browser Jan 07 13:06:21 we have a couple online tools, they are all responsive, so if i could launch them inside my app, they would look like apps, which is good Jan 07 13:06:23 also note that older devices have obsolete browser engines and users tend to use more modern chrome :) Jan 07 13:06:58 does any one here ever tried the "cocos2D" game framework ? Jan 07 13:07:04 (just for feedbacks :) ) Jan 07 13:08:47 whatitis-, how do i convert that to a parceable value? Jan 07 13:09:16 Got user reports that our player would stop playing when browsing websites with Chrome/Firefox. But I cannot really reproduce that. We have a audioFocusChangeListener. But that seems to work Jan 07 13:18:17 looking for advice on how to get a standalone command line C++ program to send a text message Jan 07 13:18:27 luist: I'm with Mavrik, WebView is the simplest way to display websites in your app. You don't even have to worry about managing the transfer of data asynchronously, as the WebView takes care of that. Just make sure to suppress the default behavior of links opening in a browser of the user's choice and make sure to enable javascript and default zoom controls Jan 07 13:18:29 my code is here http://ecdesign.co/fun.cc Jan 07 13:18:53 the program runs to completion but no text message is sentt Jan 07 13:26:17 here's a question: If I make a Java Android app that does not have the SEND_SMS permission, but my phone is rooted, can that app use root privilege to circumvent the need for the SEND_SMS permission to send a text? Jan 07 13:28:31 hope not Jan 07 13:30:35 so i think there is not any way i can share an audio file from raw folder Jan 07 13:30:46 without via SD Jan 07 13:32:30 raw resource is packaged in your apk, of course youd have to write it somewhere shareable Jan 07 13:35:16 Someone knows how to rotate the screen in console mode (kitkat)? Jan 07 13:35:19 raypulver: check http://android.stackexchange.com/questions/58999/can-an-android-app-circumvent-its-stated-permissions for help on that. From what I understand, unless you know of an exploit doable on rooted phones, not having the SEND_SMS permission will not allow you to send an sms Jan 07 13:36:21 In the jellybean I was using adb shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:0 (to disable the accelerometer rotation) and adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:0 to rotate (changing the i:0...3) Jan 07 13:37:24 Well, the app can use an intent to send the sms, but I'm pretty sure that you don't want to go that road, given your question. Jan 07 13:39:20 adder_, with content provider. Jan 07 13:39:28 I'm curious to why you would not want to add the permission to the manifest file, though. Jan 07 13:39:36 adder_, remember, "raw" isn't a folder in packaged apk :) Jan 07 13:39:44 ArmitaageDS, he doesn't have a manifest file :) Jan 07 13:40:52 I thought all android apps have to have one to function Jan 07 13:41:14 he doesn't have an Android app, he has a commandline executable :) Jan 07 13:43:37 Hi - I'm trying to deploy a build to an android device from OS X Mavericks using Android Studio. I have two devices, both enabled for USB debugging. I plug in Device 1, Android Studio recognizes it in Choose Device" and I can deploy just fine. Device 2 does not show up in Choose Device, even though the device itself says "Connected as Media Device' and "USB Debugging Enabled". Any ideas what might be causing this? I'm using the Jan 07 13:46:25 pm2, check dmesg for USB errors Jan 07 13:46:36 Yes the app I am using is Android Terminal Emulator Jan 07 13:46:47 which gives me a command line shell Jan 07 13:47:15 I am trying to make a native binary that sends the sms Jan 07 13:48:01 as far as I know Android uses Linux groups for its permissions system Jan 07 13:48:04 Mavrik: not seeing anything relevant in dmesg Jan 07 13:48:46 so I thought that running the app as uid 0 would take care of the permissions issue Jan 07 13:49:53 but I think that it's more complicated, because the program doesn't do anything Jan 07 13:53:59 hmm how would that work? Jan 07 14:02:22 hi all Jan 07 14:02:57 why does this code throw an IOException at me on my Nexus 5 but not on any other device I've tested? http://pastebin.com/WTbZZFUS Jan 07 14:03:23 return File.createTempFile(...) creates and access denied error Jan 07 14:03:49 Nexus 6 and Nexus 5 and emulator don't have a problem with this Jan 07 14:04:32 argh, last mention of Nexus 5 should be Nexus 7, sorry Jan 07 14:06:04 fusion44, is it possible that your N7 doesn't have a pictures dir yet? Jan 07 14:07:34 Mavrik: possible, but by now it should have one Jan 07 14:08:46 My Nexus 6 has the directory for sure and doesn't throw the exception Jan 07 14:09:24 I've also checked the available space on the N5 which is > 5GB Jan 07 14:09:33 ...check the one with error Jan 07 14:10:56 Yes the dir is there Jan 07 14:12:51 post your stacktrace, and check the actual path returned for your folder Jan 07 14:12:54 fusion44, do you have the permission in the mainifest? :) Jan 07 14:13:30 danijoo: of course, otherwise I'd get the error on my N6 too :) Jan 07 14:18:19 whatitis-: I've updated the paste with the stacktrace Jan 07 14:18:20 http://pastebin.com/WTbZZFUS Jan 07 14:18:41 I'll be afk for a coffee for 10 minutes, sorry Jan 07 14:20:54 fusion44, try http://pastebin.com/0Jqvf29j Jan 07 14:36:15 Mavrik, could you explain a little more Jan 07 14:36:57 adder_, try switching the usb mode on your device Jan 07 14:37:17 oh. nvm. wrong answer for wrong question :D Jan 07 14:37:42 how does that affect? Jan 07 14:37:52 thought so :D Jan 07 14:37:57 this wasnt for you ^^' Jan 07 14:38:03 whats your question? Jan 07 14:38:19 how can i share a mp3 from res/raw folder in fragment Jan 07 14:38:27 to whatsapp Jan 07 14:38:31 danijoo: That's the public picture directory. I don't think the pictures I create should be there as they will appear in users gallery Jan 07 14:38:58 adder_, im pretty sure that you cant. raw folder arent plain files. they are zipped. Jan 07 14:39:04 because it seems that only way to do that is to save it first to SD-card and that's not a good way Jan 07 14:39:15 you could receive them in code, copy to sdcard and then share Jan 07 14:39:15 so should i use assets file? Jan 07 14:39:28 assets and raw is basically the same Jan 07 14:39:38 ahh, damn :| Jan 07 14:39:58 so there is no way to do that? Jan 07 14:40:06 except SD card Jan 07 14:40:21 only the way of first copying them to external memory, yes Jan 07 14:40:44 damn :x Jan 07 14:40:56 or you could store them on a webserver and share the link :p Jan 07 14:41:13 but i guess thats not what you want Jan 07 14:41:27 i was creating a soundboard and user could share the sounds via whatsapp Jan 07 14:41:55 maybe i'll do it via SD card and then delete the file immediately after it was sent Jan 07 14:41:59 you could do an initial "setup" step where you copy all your sounds into an sd card folder Jan 07 14:42:10 and keep them there Jan 07 14:43:09 but i dont have an sd card to test it :D Jan 07 14:43:40 adder_, the external memory on your phone is reerenced as "sdcard" too Jan 07 14:43:55 because it looks like an sd for your app. it cant differ it Jan 07 14:44:02 ahh Jan 07 14:44:13 this clears things up Jan 07 14:45:36 :) Jan 07 14:48:38 yay Jan 07 14:48:44 got it working, thanks danijoo! :) Jan 07 14:50:44 good to hear :) Jan 07 15:04:03 any idea what unit Paint#setTextSize uses? Jan 07 15:04:41 pixels i think Jan 07 15:04:54 ^ Jan 07 15:04:58 http://stackoverflow.com/questions/11720093/which-unit-of-measurement-does-the-paint-settextsizefloat-use Jan 07 15:11:01 thanks :) Jan 07 15:24:36 Concerning Dagger: I have an ApplicationModule wich has multiple sub-modules. Each sub-module has an @Provides method for my ILog interface. The Application module @Provides a ILog, too, but it should also @Overrides the logging of the sub-modules. If I do this with one sub-module it works, but if I have multiple sub-modules (each defining their own @Provides method) it crashes: IllegalArgumentException: Duplicate ProvideLoggerProvidesAda Jan 07 15:24:36 pter[providekey="pack.age.ILog", memberskey="null"]" Jan 07 15:39:09 does anyone know what happens when a method is deprecated that isn't called directly? Jan 07 15:39:15 for example Jan 07 15:39:59 in WebViewClient, shouldInterceptRequest(WebView view, String url) was deprecated in favor of shouldInterceptRequest(WebView view, WebResourceRequest request) Jan 07 15:40:37 what's the questiojn ? Jan 07 15:40:38 if i have both methods defined, on android 5.0 is only 1 going to be called? Jan 07 15:40:54 Deprecated methods still exist Jan 07 15:41:04 they accept different argument types Jan 07 15:41:13 the right way to do this is Jan 07 15:41:17 right, but i never call these directly Jan 07 15:41:22 the webview calls them Jan 07 15:41:34 oh missed that part Jan 07 15:41:48 I guess one version calls one Jan 07 15:41:51 and the other calls the other Jan 07 15:41:59 But I think that nothing beats testing in that case Jan 07 15:42:00 bah Jan 07 15:42:09 so it was deprecated in 21 Jan 07 15:42:09 the touch handling code is just moronic Jan 07 15:42:14 you can look at the android source code to see what it will call Jan 07 15:42:33 webview code is tricky to look at since lollipop Jan 07 15:42:37 since it's in a separate apk Jan 07 15:42:51 but most likely the new android version will not use the deprecated version Jan 07 15:43:23 well that would mean my app would not be working on 5.0 right now Jan 07 15:43:27 which i don't think is the case :) Jan 07 15:43:55 alright i guess i should just test it, wanted to see if someone knew off the top of their head Jan 07 15:43:56 thanks Jan 07 15:44:27 set a breakpoint in both versions of the method and see which get called :) Jan 07 15:44:45 np, good luck Jan 07 15:57:42 lol Jan 07 15:57:43 public WebResourceResponse shouldInterceptRequest(WebView view, Jan 07 15:57:43 WebResourceRequest request) { Jan 07 15:57:43 return shouldInterceptRequest(view, request.getUrl().toString()); Jan 07 15:57:43 } Jan 07 15:57:51 well that answers that Jan 07 15:57:57 lol Jan 07 16:01:21 google pulled the system images for older android releases, are they no longer available? Jan 07 16:01:27 older = <2.3 Jan 07 16:02:26 \o/ Jan 07 16:02:51 Do I need to create an emulator with Google APIs to use any services from Google like Google+ Sign-In? Jan 07 16:10:20 elnur: You need to pay the one-time $25 Google Play developer fee. Jan 07 16:11:00 elnur: for most service, iirc. Not sure specifically about Google+ sign in. Jan 07 16:19:08 the fee is only for publishing to play Jan 07 16:19:13 not for anything else Jan 07 16:24:35 hi Jan 07 16:25:37 does anyone here know about Google Play Developer API? Jan 07 16:25:51 getting back "This app does not have any APKs in any tracks." and have no idea why. :( Jan 07 16:26:11 (and not having a lot of luck in finding a Google Group for help.) Jan 07 16:27:09 Hi all .... a quick question: I want to see what is happening within my android device when I install an app via playstore. So far I have got my phone connected to android studio and logcat is set to minimum verbose level but i cannot figure out anything useful from the log. Jan 07 16:28:28 Can someone give me some good direction like some document that can explain the process or if I need to enable some special logging in my phone or look for some special tag/marker in the log for related messages Jan 07 16:28:51 vesture_star: http://developer.android.com/tools/help/logcat.html Jan 07 16:29:08 vesture_star: What is it that you are trying to do? Jan 07 16:29:39 basically I want to understand what happens inside the system when i go to playstore and select an app for installation. Jan 07 16:30:06 vesture_star: I don't think logcat will give you what you think it will Jan 07 16:30:44 yeah, that is what i said earlier that from logcat log i could not find anything useful in this context Jan 07 16:30:47 i think it just downloads the apk and run "install -r yourapp.apk Jan 07 16:31:10 its the same like doing it by hand via adp Jan 07 16:31:11 adb Jan 07 16:32:04 ummm .... and things like varifying checksum, signature verification or any special security checks? Jan 07 16:33:17 if this happens, the appstore app will do it Jan 07 16:34:12 but i dont think there are log messages for that. Jan 07 16:34:22 google will have removed them in production build Jan 07 16:35:14 i installed a hello word app from my email inbox yesterday and I was presented with a screen saying 'allow google to regularly check device activity for security problems, and prevent or wanr about potential harm.' Jan 07 16:35:54 yeah, i agree no point of leaving logs in release build Jan 07 16:36:15 i think what this does it that you allow your phone to upload the apk that is not from playstore to googles servers Jan 07 16:36:24 there it will be checked for security reasons Jan 07 16:36:33 or sth like that. Jan 07 16:36:46 hi :) i'm working my way through the androiddev tutorials on google's website Jan 07 16:36:57 is there a standard for view pager indicators these days? seems like just about every library that used to do it is unmaintained these days... Jan 07 16:37:12 trying to push some files into my github from android studio bt not having much success Jan 07 16:37:29 shekibobo, a lot of people use ViewPagerIndicator from Jake W. Jan 07 16:37:40 https://github.com/JakeWharton/Android-ViewPagerIndicator Jan 07 16:38:23 danijoo: I'm trying it, but it seems like it's not working... AS can't find the classes when I include it through gradle Jan 07 16:38:49 its not a gradle library Jan 07 16:38:53 thats the reason Jan 07 16:39:35 you can do this to get it work with gradle: http://stackoverflow.com/questions/21130003/using-viewpagerindicator-library-with-android-studio-and-gradle Jan 07 16:40:25 i see ... please ignore my ignorance... but .... is there some way to see what happens in the system during this whole process .... or is there some way to capture adb logs? Jan 07 16:41:29 jasabella: are you the same jasabella who used to be on #C a few years ago? like between 2002-2007 Jan 07 16:42:17 no idea Jan 07 16:42:37 maybe you can somehow force adb to create logfiles Jan 07 16:44:15 Hi all. Off topic question: any suggestions for starting as a freelance app developer? where to look for projects. Currently I'm a mobile developer for 1,5 year (fulltime job) and I want to make some more money Jan 07 16:45:44 if i look at a bigger picture .... i need some way to monitor whole system and whatso ever happens in the system ... and then from there find out what happens when we install an app and finally use this knowledge to see what happens when some app is installed via playstore. Jan 07 16:48:58 is there any book that can explain some fundamental processes in android? like explaining what parts of the system are involved in app installations and how to enable /disable their logs? Jan 07 16:50:26 vesture_star, I dont know about a book but i'd start looking around at #android-root and xda-developers forum. The guys who build custom roms might know more about it Jan 07 16:51:23 ahh right ..... this is much helpful direction :) really appriciate it. Time to join #android-root Jan 07 17:11:57 I keep getting "await must not be called on the UI thread" Jan 07 17:12:23 even though I run it in a - new Thread(new Runnable() { .. }); Jan 07 17:12:52 danijoo: re ViewPagerIndicator... including as they specify, classes found, but complains it 'Cant find style in current theme.' Also doesn't seem to appear when I run the app.... any thoughts? Jan 07 17:15:14 * Fraz crys Jan 07 17:15:15 you do something wrong :) Jan 07 17:15:29 withough code, theres not much i can say Jan 07 17:15:50 i still cant get debugging working on my tablet Jan 07 17:16:18 :/ Jan 07 17:16:33 just done a system restore to before i connected the device up to the pc, and windows seems to have installed the approriate drivers this time Jan 07 17:16:46 but i still never get the authorization prompt Jan 07 17:17:04 my ASUS works without any problems.. Jan 07 17:17:08 ive also installed asus pc link, and that wont connect to the tablet either Jan 07 17:17:13 what os danijoo? Jan 07 17:17:23 win Jan 07 17:17:28 8? Jan 07 17:17:28 osx Jan 07 17:17:33 on every os basically Jan 07 17:17:36 yeah. 8.1 Jan 07 17:17:41 8.1 here too Jan 07 17:18:09 does yur device show up as asus android composite adb device in device manager? Jan 07 17:18:21 also what model is your asus? Jan 07 17:20:03 its an old tablet Jan 07 17:20:08 asus MeMo Pad 10 Jan 07 17:22:31 hi Jan 07 17:23:27 Fraz, cant you give it back and get another one? Jan 07 17:23:29 i want make app where will be a lot of grammar test and you pick one choice etc, any good tutorials ? Jan 07 17:23:54 ah danijoo, mines an asus memopad 7 Jan 07 17:24:07 could say something mean now, freelancerbob :D :/ Jan 07 17:24:18 haha Jan 07 17:24:24 good one Jan 07 17:24:50 he'd be his own best customer? Jan 07 17:25:01 sshshh. you guys are so mean! Jan 07 17:25:08 b Jan 07 17:25:12 n Jan 07 17:25:19 tutorial 1: http://www.talkenglish.com/Grammar/Grammar.aspx Jan 07 17:25:24 dang tiny keyboard Jan 07 17:26:29 anyone ever encountered a 'push rejected: master: rejected' error in android studio befre? Jan 07 17:26:41 is this a git error? Jan 07 17:26:44 sounds gittish Jan 07 17:27:09 yea i ask in git and they tell me they dont support android studio problems Jan 07 17:27:21 as in non git cli problems Jan 07 17:27:21 danijoo, when you installed drivers for you memopad 10, did you download the ones from asus or just let windows auto install? Jan 07 17:27:27 danijoo: looks like I need to actually create that theme myself, as it doesn't appear to be included :\ Jan 07 17:27:28 or use the google usb drivers? Jan 07 17:27:58 Fraz, i dont remember :/ Jan 07 17:28:09 pffff, some use you are! Jan 07 17:28:11 shekibobo, what theme are you talking about Jan 07 17:29:09 hmmm Jan 07 17:29:13 hey everyone, this a good place to ask JNI questions? Jan 07 17:29:21 any idea how to change you usb connection to internet connection? Jan 07 17:29:33 apparently doing that has brought up the authorization dialog for some Jan 07 17:33:03 am i supposed to commit gradle\wrapper files to source control? Jan 07 17:36:04 jasabella, this is my gitignore for inellij/AS with gradle Jan 07 17:36:05 http://pastebin.com/EVrAynAC Jan 07 17:36:39 thanx Jan 07 17:36:49 so confused with so many files Jan 07 17:37:19 used to having just 1 file: MAKEFILE lol Jan 07 17:37:57 you want the wrapper in git because it also defines which gradle version is used Jan 07 17:39:04 Hello guys Jan 07 17:39:17 when should this authorization dialog pop up anyway? as soon as i hook up my tablet? Jan 07 17:39:44 Is there a way to support multiple device for images? Jan 07 17:40:02 Or I must to use 9patch and provide images for all screens? Jan 07 17:41:21 Hello guys Jan 07 17:41:33 Anyone here? Jan 07 17:44:20 danijoo: vpiCirclePageIndicatorStyle was apparently not included in the library Jan 07 17:58:03 anyone have experience using FFTW on android? Jan 07 18:00:10 I used a program a little while that stripped image resources of their metadata, reduced the files sizes by about 98%. Anyone happen to know what program does that? Jan 07 18:02:37 quick question, how do I only capture touch events in a ViewGroup if children don't handle it? Jan 07 18:02:55 I need touch events when I swipe a RelativeLayout, but not starting from it's children Jan 07 18:02:58 its* Jan 07 18:05:02 figured it out Jan 07 18:15:42 hi? Jan 07 18:21:23 when is this channel most active? Jan 07 18:22:42 I don't know. Why? Jan 07 18:23:28 this channel is always active Jan 07 18:23:41 google pulled the system images for older android releases (<2.3), are they no longer available? Jan 07 18:23:50 they still are Jan 07 18:23:54 they're under a legacy flag Jan 07 18:24:58 only 3 google result sfor the error message i'm getting :| Jan 07 18:25:18 and it'll keep staying 3 because you expect us to be clairvoyant Jan 07 18:26:19 "push: rejected. master: rejected" when i try to do a push from android studio to github Jan 07 18:26:21 Optimist: At least you got three results. Imagine how depressing it'd be if you'd got zero. Jan 07 18:26:29 lol Jan 07 18:26:37 use the command line Jan 07 18:26:39 then report back Jan 07 18:27:25 how do i do that? i'm just trying to follow the android training Jan 07 18:27:31 i'm new to git and android Jan 07 18:27:43 i've got git bash open Jan 07 18:27:50 git push Jan 07 18:28:56 argh i need to pull first Jan 07 18:29:19 these silly files that github created Jan 07 18:29:25 .gitignore and license Jan 07 18:29:29 It kind of sucks that "testing" devices are included in device percentages at http://developer.android.com/about/dashboards/index.html Jan 07 18:29:40 pfn: https://lh3.googleusercontent.com/-OsUTpkDCQpg/VK17EMcduMI/AAAAAAAAmlQ/GWV-f2p9CuU/s0/2015-01-07_19-29-30.png Jan 07 18:29:59 I wonder what percent of gingerbread devices there are kept around for testing simply because there still is a percentage there for gingerbread Jan 07 18:30:03 wodim, obsolete Jan 07 18:30:35 pfn: i'm sorry but I don't understand what you mean. Where are the system images to run the emulator? Jan 07 18:30:52 wodim, packages -> obsolete Jan 07 18:31:14 pfn: my screenshot clearly shows that checkbox checked Jan 07 18:31:23 Hello Jan 07 18:31:59 Can I use Otto with my Application class? Jan 07 18:32:04 yes Jan 07 18:32:09 ^ Jan 07 18:32:14 Good morning guys Jan 07 18:32:29 wodim, I guess no pre 2.3 images then Jan 07 18:32:45 My fragments post an event whenever someone clicks something - the MainActivity subscribes and makes the fragment transaction. I'd also like to do some Analytics - what are the proper lifecycles to bind to in the Application class? Jan 07 18:32:47 onCreate and onDestory Jan 07 18:32:48 ? Jan 07 18:33:13 Those aren't actually part of Application lifecycle? Jan 07 18:33:22 wodim, who cares? if you dont have a pre 2.3 device to test on, neither do your users :p Jan 07 18:33:36 JakeWharton: onCreate and onTerminate to register / unregister? Jan 07 18:33:40 pfn: just to feel some nostalgia Jan 07 18:33:47 achuinard: don't both unregistering Jan 07 18:33:51 bother Jan 07 18:33:58 Just subscribing in onCreate is sufficient? Jan 07 18:34:02 yeah. Jan 07 18:34:03 Thank you! Jan 07 18:34:15 your process dying will be unregistration! Jan 07 18:34:26 heh alright, fair enough Jan 07 18:34:43 do you even use otto much anymore? weren't you saying RxJava is the future? Jan 07 18:34:51 haven't used it in over a year Jan 07 18:35:16 is that a pun? Jan 07 18:35:22 there's nothing wrong with it, but yes, RxJava is what we chose instead Jan 07 18:35:22 RxJava is the future Jan 07 18:36:28 I can't believe how much time I've spent making a bloody floating action button work. this isn't in some compat library is it ? Jan 07 18:36:31 not seeing the pun yiati Jan 07 18:36:37 RxJava > (Future && Observable) Jan 07 18:36:38 Chainfire: there are a few libs Jan 07 18:36:44 http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Future.html Jan 07 18:37:02 Chainfire: https://github.com/makovkastar/FloatingActionButton Jan 07 18:37:07 achuinard yeah I've seen some ... but nothing official, no? Jan 07 18:37:15 Chainfire: no, but that one works pretty damn good in my experience Jan 07 18:37:39 Yeah, I have been using that one and it works perfectly. Jan 07 18:37:54 I'm even using it for just regular circular buttons Jan 07 18:38:13 They just give you some general guidelines for placing a FAB in a FrameLayout if you want to go with the whole floating pattern Jan 07 18:38:19 They also bind to listview scrolls Jan 07 18:38:24 But works great as a normal nice circle button Jan 07 18:39:11 yeah, I dislike having to add extra library dependencies for something that should by all means be a one-liner Jan 07 18:39:37 will initLoader() always call onLoadFinished() ? Jan 07 18:39:50 and as I'm still on Eclipse for this project, and everyone is using AS, adding libraries is a PITA Jan 07 18:41:15 Chainfire: sounds like it's time for AS :) Jan 07 18:42:04 Although Android Studio keeps popping up this stupid fucking documentation window whenever I'm filling in a method - has anyone else had this issue? Jan 07 18:42:21 If I control space to complete a method name Jan 07 18:42:28 And leave the method name highlighted Jan 07 18:42:30 I get a stupid popover Jan 07 18:42:55 "Documentation" Jan 07 18:42:57 achuinard: I haven't run into that. Jan 07 18:43:10 I guess if I uncheck 'floating mode' Jan 07 18:43:11 don't put your mouse over that window Jan 07 18:43:21 It just stays docked Jan 07 18:43:54 achuinard yeah it may be, but this project has several lib dependencies already, a number of them in GITs and whatnot, NDK code, etc. Being a complete noob with AS I'm afraid it'll be days before I get anything to work Jan 07 18:44:12 I just made the window appear, but it doesn't seem to get in the way. Jan 07 18:44:14 Chainfire: yea, we're all AS noobs to start. only one way to fix that! Jan 07 18:44:45 Radther: Did you ever give more thought to that website idea? Just curious. Jan 07 18:45:42 TacticalJoke: Yeah, I tried setting up MediaWiki but it seems far to complex for this. Not sure where to go. I have ideas for the "perfect solution" but I can't seem to find anything that comes close. Jan 07 18:45:51 achuinard yeah, I'd just be more confident if it was a less complex project. That still doesn't fix what I'm working on now, though... Jan 07 18:46:18 Chainfire: forget AS anyway - you should make your project just generally gradle-compatible so its buildable from command line Jan 07 18:46:43 Chainfire: then, you wont' have any IDE dependency - just note AS imports a Gradle project very nicely Jan 07 18:47:28 wont converting to AS automatically make that be the case? :) Jan 07 18:47:51 Chainfire: not totally. it's best to make the gradle migration yourself manually, then import a new project in AS Jan 07 18:47:56 Chainfire: learn gradle, don't be IDE dependent Jan 07 18:48:03 great Jan 07 18:48:07 Chainfire: then its as simple as a ./gradlew assembleRelease from terminal Jan 07 18:48:09 now it pshed everything up there Jan 07 18:48:09 Yeah, it's tricky. I'm not sure what'd be the best wiki software. Jan 07 18:48:16 including .idea Jan 07 18:48:23 TacticalJoke: The perfect solution would allow people to post a link with a description and tags and then when someone searches it returns all the related stuff. For example if someone searches RecyclerAdapter it gets all the links that have that tag which would include all stuff related. Jan 07 18:48:26 achuinard did I mention I'm using Windows, for some extra grievance? Jan 07 18:48:53 that intel compute stick looks pretty cool Jan 07 18:49:10 and i never even knew they had those nuc devices O.o Jan 07 18:49:13 Chainfire: that's not too bad, do you use Cygwin? Jan 07 18:49:21 not on purpose Jan 07 18:49:23 Chainfire: worst case there is a .bat gradle wrapper I believe Jan 07 18:49:30 I know most tools are on the path though, lots of stuff requires it Jan 07 18:50:30 I do most of my development on windows Jan 07 18:50:32 Hmm, is TextView's singleLine deprecated in favour of maxLines? http://stackoverflow.com/questions/17124985/why-does-androidsingleline-true-make-listview-scrolling-very-laggy Jan 07 18:50:35 Some people seem to think so. Jan 07 18:50:45 g00s: I think its too expensive though. Compared to similar products. I mean I know it has Windows but I don't know if that's what the general consumer wants on there TV. Jan 07 18:51:02 Chainfire have you had any issues with play store , trademark stuff from canon . etc ? Jan 07 18:51:19 keep reading about things getting yanked Jan 07 18:52:16 What's the best way to get Lollipop on my GN Jan 07 18:52:22 g00s nope Jan 07 18:52:56 thats good. i was worried since i mention oem & devices in my description something bad would happen eventually Jan 07 18:55:29 damnit, I hate it when my espresso machine stalls, now I have to wait for it to warm up Jan 07 18:55:59 I thought you were talking about an automated-testing machine. Jan 07 18:57:54 first world problems Jan 07 18:58:13 dammit i hate when google / anyone creates AbstractClasses with no implementation instead of an interface Jan 07 18:59:35 #singleparentinheritancenoobs Jan 07 18:59:49 :) Jan 07 18:59:58 Seems that after the update to Fedora 21, I can't get USB debugging to work. The device isn't showing up in lsusb, nor adb devices. I've tried resetting usb debugging a few times to no avail. I've also tried different USB ports. It's definitely on USB power, though. Jan 07 19:00:06 Anyone experience this? Jan 07 19:01:20 FrozenFire, check dmesg, see if kernel detects the device Jan 07 19:01:40 g00s, well, it's because it's java.. Jan 07 19:01:55 oh, no implementation you said Jan 07 19:02:39 Mavrik, Not that I can tell. Jan 07 19:02:46 I don't see the device anywhere in there Jan 07 19:02:52 * pfn shrugs Jan 07 19:02:58 g00s, example? Jan 07 19:03:20 pfn https://developer.android.com/reference/android/bluetooth/BluetoothGattCallback.html Jan 07 19:03:56 design decision was probably to save time if you only needed to implement a few, as they are NOPs Jan 07 19:03:59 g00s, indeed Jan 07 19:04:07 g00s, should have an interface above it... Jan 07 19:04:13 yeah Jan 07 19:06:44 Yeah that's always been awkward. I still tend to make them interfaces in that case. It sucks when you have an interface with 90% of the methods not being used, but that just seems to shout bad architecture Jan 07 19:08:53 Yesterday I decided to drop support for android 2.3.3. Is it a stretch to drop support for anything under API 19? Jan 07 19:09:12 16+ is good Jan 07 19:09:12 AndreYonadam: congrats Jan 07 19:09:21 and it is a stretch Jan 07 19:09:28 take a look at the dashboards Jan 07 19:09:40 https://developer.android.com/about/dashboards/index.html Jan 07 19:09:49 g00s, assuming it doesn't have any private methods, of course, heh Jan 07 19:10:08 4.1+ is good Jan 07 19:10:40 4.0 still has a pretty reasonable share Jan 07 19:11:07 pfn no ctor, just empty bodies Jan 07 19:11:17 There is still some stuff in 4.0 that makes versioning a bit trickier. Most of it's good from 4.1 on Jan 07 19:11:23 i'm surprised that API 10 has more share than API 15. the joys of so maaaaany crappy gingerbread devices sold until way too recently. Jan 07 19:11:26 I don't even know why I'm updating my app. Its a piece of crap anyway lol. Jan 07 19:11:28 My minSdkVersion is 15, but I'm considering changing to 16 before release (not sure). Jan 07 19:11:37 AndreYonadam: What does it do? Jan 07 19:11:38 wow... my hot new Gs3 at the time was ICS Jan 07 19:11:55 TacticalJoke: Teaches students about area and perimeter by letting them draw any shape they want. Jan 07 19:11:58 Asks random questions on #android-dev Jan 07 19:11:59 i note that L doesn't show up on that chart. Jan 07 19:12:07 Its a free app Jan 07 19:12:08 weren't most api15 devices upgraded to newer android versions? Jan 07 19:12:15 so makes sense that not many stuck around on 15 Jan 07 19:12:27 trevor-e: yeah. as opposed to gingerbread things which were often hacked together to barely work. Jan 07 19:12:44 If I use minSdkVersion=16, I can't test my app on my old, slow device. :D Jan 07 19:12:52 I love slow devices for testing. Jan 07 19:13:04 TacticalJoke is part of the 6.7% Jan 07 19:13:08 memory might be failing me, but i thought there weren't that many 4.0 devices. nexus mostly, seemed like another case of android 2.0. most of the oems jumped on board with 2.1 , 4.1 Jan 07 19:13:49 http://arstechnica.com/gadgets/2014/12/android-2-3-gingerbread-four-years-later-the-os-just-wont-die/ Jan 07 19:14:02 I think anything under 15 for a new project is craziness, though. Jan 07 19:14:45 morning Jan 07 19:14:53 Bukoo: Good morning Jan 07 19:14:53 afternoon Jan 07 19:15:05 Actually it is afternoon Jan 07 19:15:06 lol Jan 07 19:15:10 Good afternoon Jan 07 19:15:14 still morning here Jan 07 19:15:17 lol almost here too Jan 07 19:15:19 It's 7:15pm. Jan 07 19:15:28 11:15 Jan 07 19:15:31 I'm with TacticalJoke Jan 07 19:15:32 TacticalJoke: The thing that is confusing me is that I've been sitting here for 2 days on the same problem. I'm detecting if the sides of the shape intersect with other sides they drew to prevent cross-intersecting polygons which would mess up the area. Java's Geometry class has something for that but Android decided not to include that. Android has something similar that would be great which is in API level 19 and paths interse Jan 07 19:15:33 ct which is what I need. I honesty can't think of any other way to do it unless I use the Java class which I'm really hesitant to do and would rather just use the one from Android API. I can try to implement my own method which I spend all of yesterday doing and it had huge flaws. Jan 07 19:15:36 2:15 ftw Jan 07 19:15:49 Already thoroughly annoyed by AS after mere minutes. The "Open Project" dialog takes a minute to show anything useful Jan 07 19:15:58 AndreYonadam, copy-paste the implementation Jan 07 19:16:19 pfn: Isn't that violating java's code? Jan 07 19:16:19 Chainfire: How much RAM do you have? Jan 07 19:16:26 There any Admob guru's here? Jan 07 19:16:27 64gb Jan 07 19:16:36 Of RAM? ;o Jan 07 19:16:42 I mean I can just use api level 19 and that would save me so much trubble. I think my app isn't in the much demand anyway. Jan 07 19:16:44 yeah I notepad a lot Jan 07 19:17:04 Chainfire: That's ALOT of notepad... Jan 07 19:17:50 I wonder how many instances of Notepad would run in 64GB RAM. Jan 07 19:18:04 Quadrillions? Jan 07 19:18:16 It's more the contents of the notepad files that would use it. Jan 07 19:18:41 Just right-click a 10GB file and click open with Notepad. Jan 07 19:18:49 scanning all my hard and network drives every time I open taht dialog... and they said Eclipse was bad .. Jan 07 19:19:29 The primitive text-box control Notepad uses limits the number of characters it displays. I forget the limit, but it's pretty small. Jan 07 19:19:32 pfn: To avoid violating java's license or something I think it would be just better to use the class which is provided in the higher level API 19 even though it might be too high I don't think my app would suffer since it isn't in that much demand and probably the demographic of people who are going to download my app might catch up to the higher api level quickly. Jan 07 19:19:53 Chainfire: In my experience, Eclipse is enormously faster than Android Studio in basically every way. Jan 07 19:20:07 TacticalJoke: Not when compiling the app. Jan 07 19:20:11 BluetoothGattCallbackDecorator yipee, now i just need a factory Jan 07 19:20:17 *Especially* when building. Jan 07 19:20:27 Not in my case. Jan 07 19:20:37 I saw about 15 seconds in eclipse and around 5-10 in AS. Jan 07 19:21:53 My laptop doesn't like Android Studio.. Do you have to clean, refresh and save all all the time like in Eclipse? Jan 07 19:22:30 no, you just need to sync gradle when you make changes to your gradle files Jan 07 19:23:02 I don't even know what a gradle file is. Seen it, just have no clue Jan 07 19:24:01 Time to find out then. Jan 07 19:24:19 do you use them in Eclipse? Jan 07 19:24:28 so I've been targeting sdk21, and when I finally tested on an older phone everything went fuckup lmao what stuff should I be specifically concerned about with earlier versions? Jan 07 19:24:46 I.e. how do I deal with toolbar implementations, theming, etc? Jan 07 19:25:10 Bukoo, not by default, but... honestly... time to learn that if you want to do anything seriously :) Jan 07 19:26:33 Bukoo thankfully the gradle defaults are simple and easy to understand Jan 07 19:26:47 Mavrik: I'm googling it as we speak. Im very new to all this btw. :/ Jan 07 19:26:53 in my project i didn't really have to do anything special but some code gen, and that was still pretty easy Jan 07 19:29:12 Ok, so here is the deal... The closest thing I have as far as coding experience is a few years writing scripts using AHK if anyone even knows what that is.. So yeah, I know basically nothing.... Jan 07 19:31:13 sounds like you have a lot of reading Jan 07 19:32:45 For someone wanting to just learn how to write very simple games for android, would anyone happen to know of a good tutoial series / course? For someone who is new like me that is... Jan 07 19:34:15 Bukoo if starting from scratch, maybe book would be better since it will systematically go through the prerequisites from the beginning Jan 07 19:34:25 i guess you gotta learn java first Jan 07 19:34:42 Bukoo: Haven't used it personally but this guide seems to break down the steps quite well. It starts with Java, then game creation, and finally game creation on android. http://www.kilobolt.com/game-development-tutorial.html Jan 07 19:35:36 and with games i guess you have to decide whether its c/c++/ndk or java Jan 07 19:35:45 using a game engine etc Jan 07 19:35:59 g00s: good book then? any for the parts of java that would be used in simple games? Jan 07 19:36:31 Bukoo hmm, somebody here like this the other day for java. http://www.amazon.com/Learn-Java-Android-Development-Friesen-ebook/dp/B00HX4PJK2 Jan 07 19:36:45 and then maybe get big nerd or commonsware Jan 07 19:36:45 Hi. How I can make ScrollView with 16 buttons under ? I made Drawer Layout, inside it FrameLayout inside it ScrollView, but I get bug, that top button doesn't show and I get blankspace at bottom. How I can fix it ? Jan 07 19:36:57 Hey Jan 07 19:37:01 hi Jan 07 19:37:03 is anyone here using android studio? Jan 07 19:37:21 Fraz: Yup. Jan 07 19:37:25 Nah. We're all old-school Eclipse users. Jan 07 19:37:30 (Just kidding.) Jan 07 19:38:02 I keep getting this message, "Failed to complete Gradle execution. Cause: The supplied javaHome seems to be invalid" Jan 07 19:38:11 g00s: I'd rather not use a gaming engine if I don't have to. I was thinking strictly java Jan 07 19:40:11 Fraz: Try this. http://stackoverflow.com/a/22749305 Jan 07 19:41:21 i set the java home environment variable though so shouldnt it use that? Jan 07 19:42:44 Fraz: Did you set it to a JRE installation instead of JDK maybe? Jan 07 19:42:57 nah just double checked that Jan 07 19:43:26 setting it in the project settings seemed to have fixed the problem for now though... Jan 07 19:43:38 now im back to my original problem of getting my device to work with usb debugging:S Jan 07 19:45:01 <_Auron_> if my device isn't hooking with adb, I make sure the vendor drivers are installed (i.e. samsung, etc) on my computer, then unplug usb cable and reboot phone, adb kill-server, adb start-server, plug in phone and see if it is recognized (all steps followed in worst case scenario) Jan 07 19:45:20 <_Auron_> and that the usb debugging is enabled in dev options/security too Jan 07 19:45:32 g00s: Thank you, thank you, thank you! for those three books suggestions. :) They are exactly what I'm looking for. Jan 07 19:46:09 there are no vendor drivers for this device for some reason. none on the asus site Jan 07 19:47:02 ive just done a system restore to make sure all previous drivers installations are gone, then uninstalled all unconnected devices, then installed koushes universal drivers Jan 07 19:47:14 hooked up the tablet and it seems to have installed automatically Jan 07 19:47:49 the device is detected, but i never get the popup on the device to athorize usb debugging Jan 07 19:48:04 although right now, the device is showing as offline in android studio:S Jan 07 19:49:18 <_Auron_> you should manually turn on usb debugging on the tablet Jan 07 19:49:27 i did Jan 07 19:49:36 its the authorization dialog i never get Jan 07 19:49:58 Oh, kind of along these same lines, anyone using android studio know if you can use bluestacks as your emulator like you can in Eclipse? If so, do you set it up the same way? Jan 07 19:50:07 <_Auron_> may be a driver problem then Jan 07 19:50:23 i make a downloadManager.remove(id); some devices it is removed, others no Jan 07 19:50:25 <_Auron_> but have you tried adb kill-server then adb start-server to restart ADB? Jan 07 19:50:26 how i can solve? Jan 07 19:50:29 ive tried every possible driver over the last 4 days. i just dont get it Jan 07 19:50:34 in my 4.2 works, in android 5 no Jan 07 19:50:50 when i cancel the downlaod manager, the notification of download stuck in notifications Jan 07 19:51:36 _Auron_, yes Jan 07 19:51:41 many many times Jan 07 19:52:43 ok reconnecting the device now shows it as unauthorized in adb Jan 07 19:52:59 now authorize it Jan 07 19:53:06 <_Auron_> he's not getting the prompt to authorize, that's his problem Jan 07 19:53:08 theres no popup Jan 07 19:53:19 plug the phone in again Jan 07 19:53:21 <_Auron_> and unfortunately that's most likely a driver problem :/ Jan 07 19:53:23 while the screen is unlocked Jan 07 19:53:26 it isn't Jan 07 19:53:30 <_Auron_> hmm Jan 07 19:54:16 yes pfn, screen is unlocked. ive done this a million times now in so many different combinations Jan 07 19:54:35 and your device doesn't show usb debugging connected? Jan 07 19:54:38 * pfn shrugs Jan 07 19:54:44 * pfn never has any problems on any computer with any phone Jan 07 19:54:47 yes it shows that Jan 07 19:54:57 a million times in a million combinations of wrong won't make it right ;-) Jan 07 19:54:59 i just dont get the authorization diaglog Jan 07 19:55:05 yeh lol Jan 07 19:55:08 then revoke all authorizations Jan 07 19:55:13 done that Jan 07 19:55:14 revoke then try again Jan 07 19:55:18 then plug it back in Jan 07 19:55:19 many many times Jan 07 19:55:25 what OS are you on Fraz Jan 07 19:55:27 ? Jan 07 19:55:30 win 8.1 Jan 07 19:55:44 and what device? Jan 07 19:55:59 asus memo pad me170c Jan 07 19:56:02 memo pad 7 Jan 07 19:56:04 do you have proper drivers installed Jan 07 19:56:13 what version of android Jan 07 19:56:13 heh Jan 07 19:57:11 im assuming so, asus doesnt have any drivers on their site for this model. Ive tried the default drivers installed by windows, the google usb drivers and koushes universal driver (which im using currently) Jan 07 19:57:16 android 4.4.2 Jan 07 19:57:40 dam i dont know then Jan 07 19:57:48 sorry Jan 07 19:57:51 :( Jan 07 19:57:56 its a damn mystery Jan 07 19:58:29 i know i have a ton of problems with usb connections on ubuntu/lollipop Jan 07 19:59:52 one of these maybe?? http://androidxda.com/download-asus-usb-drivers Jan 07 20:00:11 <_Auron_> I've only had it stay with unauthorized device and not give the prompt when I didn't have the full drivers installed for a device Jan 07 20:00:21 Bukoo my model isnt there Jan 07 20:00:22 sorry, was just a quick search. hope it's a good link Jan 07 20:00:43 i did try the closest model to it from that very page Jan 07 20:00:48 but that didnt work either Jan 07 20:01:00 Fraz, what about using different USB cable.. that has been a problem for me many times Jan 07 20:01:14 or different usb port Jan 07 20:01:22 <_Auron_> not a bad idea Jan 07 20:01:32 yeh tried 3 different cables and all usb ports Jan 07 20:01:36 Fraz, when you plug in device, does it even show up on device manager? Jan 07 20:01:43 and the other pc, although thats also win 8.1 Jan 07 20:01:51 byanrie, yes Jan 07 20:02:00 its detected and eveything Jan 07 20:02:05 i just cant authorize it Jan 07 20:02:23 so it looks like its got the correct driver installed? Jan 07 20:02:28 If you have the factory provided usb cable, use that one Jan 07 20:02:31 looks like it yeh Jan 07 20:02:34 i think its a driver problem.. but could be wrong Jan 07 20:02:37 `yeh im using that Jan 07 20:03:11 i have to take off for a few mins. plese leave more suggestions if you have em guys Jan 07 20:03:19 thanks for the help so far, will be back in a few Jan 07 20:03:21 download a live linux distro and boot it from usb and see if it works on that.. that might give u some insight that something is wrong with windows Jan 07 20:03:24 micro usb cables are notoriously shitty Jan 07 20:03:29 and so are the connectors on devices Jan 07 20:03:30 Fraz, ^^^ Jan 07 20:03:33 it makes me sad :( Jan 07 20:04:00 could it hurt to maybe try the driver for the ME176c ? generic for 17* series maybe? Jan 07 20:04:34 the drivers are irrelevant Jan 07 20:04:45 oh Jan 07 20:04:48 it's all the same driver, the only problem is identifying the vid/pid with the driver Jan 07 20:04:57 you can use the google-usb driver tht ships with the sdk Jan 07 20:05:08 you just need to update the .inf to include your vid/pid for your device Jan 07 20:05:35 but yeah, all adb devices use the sme driver, windows is annoying in that drivers must all correspond to a known vid/pid Jan 07 20:05:50 so i should commit build.gradle, gradle.properties, gradlew, gradlew.bat, gradle\wrapper/* and settings.gradle Jan 07 20:06:02 but he can just modify and rebuild the driver from source Jan 07 20:06:07 (idk what are you talking about) Jan 07 20:06:09 ;p Jan 07 20:06:19 then don't talk Jan 07 20:06:27 k :p Jan 07 20:06:49 windows sucks thats why i stopped using it unless i need photoshop Jan 07 20:06:58 i mean like if the same driver can actually work except windows doesn't recognize it because vid/pid, he could just modify some file in the source and then recompile it Jan 07 20:07:03 that's what i did to one of the drivers Jan 07 20:07:07 nothing to recompile Jan 07 20:07:09 you update the .inf Jan 07 20:07:11 and install the driver Jan 07 20:07:18 the driver file itself does not contin vid/pid Jan 07 20:07:27 it's the inf that specifies that, and that information does not need to be compiled Jan 07 20:07:35 o Jan 07 20:07:52 i remember in a linux driver i had to recompile the driver Jan 07 20:07:53 pfn is right Jan 07 20:07:57 but didn't try on windows Jan 07 20:08:15 probably he is. Jan 07 20:08:16 pfn, read his name.. its OverCoder , he has to OVERCODE everything lol Jan 07 20:08:25 kek Jan 07 20:08:36 you dont even have to change things, you can specify more than one vid/pid pair for a driver file, so just add yours to the list Jan 07 20:08:37 linux is also different Jan 07 20:08:53 linux and osx both support device classes Jan 07 20:08:58 so vid and pid don't have to be hard-coded Jan 07 20:09:02 unless it's a very proprietary device Jan 07 20:09:06 o Jan 07 20:09:15 interesting Jan 07 20:09:57 in a layout can you specify a width as a percentage of parent Jan 07 20:10:09 so I have two horizontal layout button I want each to be 50% Jan 07 20:10:36 you can try layout weight Jan 07 20:11:06 unless he's using relative layout Jan 07 20:11:16 it is relative layout Jan 07 20:11:36 you can use toRightOf or toLeftOf with alighParentRight or alighParentLeft Jan 07 20:11:38 i did that Jan 07 20:11:51 i even managed to do the exact thing weights do in LL Jan 07 20:11:53 all in RL Jan 07 20:12:13 weights in LL suck once you start nesting shit Jan 07 20:12:23 sorry is linear layout Jan 07 20:12:27 lots of layout passes to get it right -> bad performance Jan 07 20:12:39 ChrisUK, it's as easy as android:weight="1" Jan 07 20:12:44 relative layout is easy Jan 07 20:12:44 read docs Jan 07 20:12:50 create a stub view that sits in parent center Jan 07 20:12:55 pfn, i can't even see a reason of LL existance Jan 07 20:13:05 i mean what's the point of one-liner layout Jan 07 20:13:06 OverCoder, it's convenient and fast for simple linear layouts Jan 07 20:13:24 yea, hence the name lol Jan 07 20:13:27 OverCoder: There are things you can't do with RelativeLayout that you can do with LinearLayout. Jan 07 20:13:28 heh Jan 07 20:13:38 rightOf and leftOf an id/centerView Jan 07 20:13:39 ah Jan 07 20:13:52 and view id=centerview alignParentCenter=true or whatever that flag is Jan 07 20:14:06 TacticalJoke, that's not particularly true Jan 07 20:14:10 well i think all those exist in RL Jan 07 20:14:17 There is one example I know of, but it's hard to describe. Jan 07 20:14:27 so there is no way to specify width as percentage of parent? Jan 07 20:14:27 rightOf/above/below, etc. will make it so that it can layout identically to a linear layout Jan 07 20:14:30 TacticalJoke, i feel u Jan 07 20:14:30 :p Jan 07 20:14:34 It involves measuring children. Using a RelativeLayout means that the correct measurement cannot be made. Jan 07 20:14:37 pfn++ Jan 07 20:14:41 ChrisUK, linear layout weight allows proportions Jan 07 20:14:45 <_Auron_> Creating layouts in android is my least favorite part of development Jan 07 20:14:50 um Jan 07 20:14:52 wait min Jan 07 20:14:57 TacticalJoke, that's not true, children are always measured in layout Jan 07 20:15:06 how can i open a dialog on notification click? Jan 07 20:15:08 pfn: You say "that's not true" while not even knowing what I'm talking about. Jan 07 20:15:10 unless you specify a layout size Jan 07 20:15:11 I wish there were better ways to do view inheritance in android Jan 07 20:15:16 i don't want to open a new activity Jan 07 20:15:19 TacticalJoke, because the statement as you said it is not true Jan 07 20:15:19 I'm talking about a very specific case. Jan 07 20:15:27 The statement **as you interpreted it**. Jan 07 20:15:32 then be specific, or prepared for the statement to be invalidated immediately Jan 07 20:15:41 I was specific. Jan 07 20:15:48 "There is one example I know of, but it's hard to describe." Jan 07 20:15:53 you said children aren't measured in relative layout Jan 07 20:15:54 that's false Jan 07 20:15:56 Nope. Jan 07 20:15:57 You misread. Jan 07 20:16:18 if you say so, android pro Jan 07 20:16:26 <_Auron_> he said correct measurement Jan 07 20:16:31 Go on the attack when you're shown to be wrong. :) Jan 07 20:16:41 shown to be wrong? Jan 07 20:16:46 you haven't shown anyone to be wrong yet Jan 07 20:16:56 Hi. DCIM/Camera/thumbnails is empty. Where can I find the thumbnails Jan 07 20:17:07 OverCoder: dialogs are a part of activities; afaik. you can make an activity w/ a transparent background that looks/acts like a dialog though Jan 07 20:17:15 panda81, /sdcard/DCIM/.thumbnails Jan 07 20:17:18 probably there Jan 07 20:17:35 well i knwo how to make a transparent activity Jan 07 20:17:41 but like i don't want that Jan 07 20:17:44 that's much slower Jan 07 20:18:10 OverCoder: afaik you have to spawn a dialog from an activity. Jan 07 20:18:26 well i'm trying to avoid that Jan 07 20:18:32 also what is the "Action" class? Jan 07 20:18:35 what can i do with it? Jan 07 20:18:36 you can't open a dialog on notification click Jan 07 20:18:40 you must have an activity... Jan 07 20:18:43 hmm Jan 07 20:18:45 you can present a system overlay window Jan 07 20:18:46 and, seriously? making a window is making a window; you can't be making a dialog from a notification so often that speed is an issue. Jan 07 20:18:48 but that's a terrible idea Jan 07 20:18:50 do not do it Jan 07 20:19:10 and making an activity from a notification is fast Jan 07 20:19:11 pfn, i'll tell you my situation Jan 07 20:19:13 if it isn't, you did it wrong Jan 07 20:19:20 i'm Jan 07 20:19:24 um* Jan 07 20:19:26 actually, creating/launching activities in general is fast Jan 07 20:19:42 if it's slow, it's because you put in a slow transition, or your code is slow Jan 07 20:19:53 my app is all of a notification, you click it, you're presented with options, like "calculator", you click it, a mini floating app opens Jan 07 20:19:58 just for fast use Jan 07 20:20:14 should be plenty quick to do as activities Jan 07 20:20:16 now i can make a transparent activity and not set content view but unsure if that's fast Jan 07 20:20:17 then launch an activity that presents this information Jan 07 20:20:20 activities are not slow Jan 07 20:20:26 do "gradle.properties" "settings.gradle" "build.gradle" belong in git? Jan 07 20:20:29 hmm Jan 07 20:20:31 ok Jan 07 20:20:31 jasabella, yes Jan 07 20:20:40 i'll open a floating activity Jan 07 20:20:40 well, dunno what settings.gradle is Jan 07 20:20:41 :p Jan 07 20:20:43 maybe not Jan 07 20:20:45 OverCoder: you can make an activity that has a transparent background and looks like a dialog Jan 07 20:20:55 yeah that's what i actually thought of Jan 07 20:20:56 :p Jan 07 20:20:57 OverCoder: and launch it w/ a pendingintent; should be plenty quick Jan 07 20:21:00 OverCoder: sdcard is hidden dir? Doesn't seem to exist when I explore via Windows explorer Jan 07 20:21:06 you can look at k9 mail for one implementation Jan 07 20:21:16 panda81, use Root Explorer on your phone Jan 07 20:21:17 also Jan 07 20:21:25 k9 mail still exists? heh Jan 07 20:21:28 the root directory of your phone on your pc is sdcard Jan 07 20:21:28 so the only things i'm leavig out are *.iml and .idea/* Jan 07 20:21:45 just browse DCIM then .thumbnails Jan 07 20:21:48 that folder is hidden Jan 07 20:21:54 what does proguard-rule.pro do? Jan 07 20:22:09 (and i delete it every now and then because the excessive disk usage) Jan 07 20:22:12 pfn: sure Jan 07 20:23:12 so if I do android:layout_weight="1" android:layout_width="fill_parent" Jan 07 20:23:13 * pfn never could get into using k9 Jan 07 20:23:19 ChrisUK, it won't work Jan 07 20:23:27 why not Jan 07 20:23:38 seems to work ok so far :) Jan 07 20:24:03 OverCoder: went in adb shell. sdcard/DCIM/Camera/thumbnails exist just like in explorer. sdcard/DCIM/Camera/.thumbnails not found Jan 07 20:24:35 hm Jan 07 20:24:37 weird. Jan 07 20:24:44 pfn I just tried that and it seems to work Jan 07 20:24:57 um, did you ever open the gallery? Jan 07 20:25:05 because it generates the thumbnails afaik Jan 07 20:25:12 ChrisUK, it'll work depending on what your layout is Jan 07 20:25:15 so if you didn't it's empty (afaik too) Jan 07 20:25:22 and fill_parent is always the wrong way to think of a layout size Jan 07 20:25:25 my .thumbnails is like 500MB Jan 07 20:25:26 kek Jan 07 20:25:29 pfn: linearlayout Jan 07 20:25:32 pfn, it's deprecated too Jan 07 20:25:41 match_parent is the one Jan 07 20:25:52 ChrisUK, no, how your layout children are specified Jan 07 20:26:39 ok match_parent instead? Jan 07 20:26:54 or just leave the width blank and just specify a weight Jan 07 20:27:51 I don't know Java like I said earlier, but I'm in a bind and am desperate for a little help. After a week of reading tutorials and examples and trying to learn what I can, I've been able to resolve most of my issues. But I still have 2 or 3 questions that I'm uncertain about but I'm assuming will be absurdly simple for one of you. It has to do with Admob using Eclipse. Any takers? Jan 07 20:27:54 OverCoder: I use Gallery everyday of the 1500 pics I have. Could the Gallery be displaying the full images Jan 07 20:28:29 ChrisUK, you can't leave it blank, but the size you specify is the starting size before weights apply Jan 07 20:28:36 ChrisUK, often times, people will start at 0dp Jan 07 20:28:54 don't use bukoo until you understand java better? Jan 07 20:28:57 also use android studio? Jan 07 20:29:00 er Jan 07 20:29:02 admob Jan 07 20:29:03 ok so the weights have the last say in the size? Jan 07 20:29:11 ChrisUK, not completely Jan 07 20:29:23 omg this sounds overly complex Jan 07 20:29:32 it is complex Jan 07 20:29:34 not overly Jan 07 20:29:40 but you're a noob, so everything seems complex Jan 07 20:31:04 that is true Jan 07 20:31:07 :) Jan 07 20:31:33 pfn: Planning on doing a few reskins while I learn java. Only problem is the source I have uses the old Admob. I have everything ready to go, Just don't know where to insert what I have. Jan 07 20:32:25 hmm Jan 07 20:32:42 activity that contains list-like things vs. transparent activity with a dialog? Jan 07 20:32:53 i mean activity is harder to make Jan 07 20:32:54 why a transparent activity with a dialog Jan 07 20:32:57 but can do everything Jan 07 20:33:00 make the activity transparent and style it like a dialog Jan 07 20:33:03 harder to make? Jan 07 20:33:06 pfn, because simpler for me to make Jan 07 20:33:06 it's the most trivial to make Jan 07 20:33:13 it isn't simpler Jan 07 20:33:16 pfn, yes like that evolves icons and things Jan 07 20:33:22 and i'm not a designer Jan 07 20:33:24 involves what icons? Jan 07 20:33:25 and what things? Jan 07 20:33:38 Theme.DeviceDefault.Dialog Jan 07 20:33:42 set that on your activity, done Jan 07 20:34:46 if you don't want a title bar, set NoTitleBar Jan 07 20:34:51 er, NoActionBar Jan 07 20:36:11 pfn, whoops Jan 07 20:36:14 sorry i disconnected Jan 07 20:36:26 the last thing i saw is "it isn't a compiler" Jan 07 20:36:32 wait what Jan 07 20:36:33 i mean Jan 07 20:36:38 "it isn't simpler" Jan 07 20:36:39 >.> Jan 07 20:36:49 Theme.DeviceDefault.Dialog Jan 07 20:36:50 done Jan 07 20:37:01 o Jan 07 20:37:06 nice Jan 07 20:38:11 pfn: is there a list where I can see all the options for Theme.xxx for style.xml ? Jan 07 20:38:22 by reading styles.xml ? Jan 07 20:38:29 pfn, or easier.. Jan 07 20:38:32 in your activity Jan 07 20:38:48 no I mean like a guide that tells you what options you can type Jan 07 20:38:49 type android.R.style and let eclipse show auto-completations Jan 07 20:38:51 or just do Jan 07 20:38:54 in xml Jan 07 20:38:57 suprised you didnt just say google it Jan 07 20:39:03 @android:style and let it complete Jan 07 20:39:43 pfn: I didn't even know about Theme.DeviceDefault till you mentioned it Jan 07 20:39:46 shmooz, if you read styles.xml you can see the styles Jan 07 20:39:56 also google it or w/e Jan 07 20:39:58 odl Jan 07 20:40:00 idk( Jan 07 20:40:07 dammit i can't see the keyboard i can't type Jan 07 20:40:09 >.> Jan 07 20:40:16 too dark here >.> Jan 07 20:40:34 OverCoder: where is that ? I defined my own style.xml but I'd like to know the options I have to put in there Jan 07 20:40:52 shmooz, in android sources Jan 07 20:41:03 i think you can also view it over the internet in your browser Jan 07 20:41:07 probably available somewhere Jan 07 20:41:13 shmooz, that was announced back in honeycomb days Jan 07 20:41:25 OverCoder: oh ok, I'll try to find that Jan 07 20:41:36 shmooz, just use the auto-completation Jan 07 20:41:43 it's the easiest ever Jan 07 20:41:45 pfn: I didn't start android until ics Jan 07 20:41:55 but I am going back and learning the gingerbread way Jan 07 20:42:08 gingerbread is appcompat actually Jan 07 20:42:14 just add "compat" word to anything >.> Jan 07 20:42:35 and I do have a grasp on how to use style.xml, just so many options , I thought it would be documentated on the web somewhere other than the source code Jan 07 20:42:38 gingerbread, why would you do that Jan 07 20:42:46 it's all documented in source Jan 07 20:43:06 pfn: because I've decided to support gingerbread for this app I'm working on Jan 07 20:43:24 and because my main phone is still gingerbread Jan 07 20:43:28 you just need to update the .inf to include your vid/pid for your device << any idea how id do this? Jan 07 20:43:40 Fraz, by editing the .inf and putting in your vid/pid Jan 07 20:43:41 duh Jan 07 20:43:45 that's exactly what I said Jan 07 20:43:46 yeh but Jan 07 20:43:50 where would i find that info Jan 07 20:44:26 find what info Jan 07 20:44:30 vid/pid? by looking at device manager Jan 07 20:44:58 and would that even matter, considering windows has auto installed drivers (after installing koshes universal driver) Jan 07 20:45:16 if theyre all the same driver, i should be ok with whats installed, right? Jan 07 20:47:58 I'm just going to ask.. Would anyone mind telling me where to put this: http://pastie.org/private/odwh1uepncqwarlpifc2a into this MainActivity.java? http://pastie.org/private/nw3bf16lxb3sradpelqh7g I'm assuming right under the imports... but would I be missing something? Jan 07 20:48:18 im just creating a linux live boot usb. I should get the authentication dialog when i connect the device under linux, right? With no additional stuff needed? Jan 07 20:48:37 yes, should be the same Jan 07 20:49:03 ok cheers. brb gonna boot into linux and try Jan 07 20:50:25 does android not save view visibility when recreating an activity? Jan 07 20:50:39 for some reason it's not, and my view has a unique id Jan 07 20:51:53 huh, that's a good question trevor-e ... Jan 07 20:51:57 um Jan 07 20:52:07 Theme.DeviceDefault.Dialog for appcompat? Jan 07 20:52:08 but I would guess that it doesn't... Jan 07 20:52:59 seems dumb that I would have to store the current visibility as an int in onSavedInstanceState Jan 07 20:53:57 why would you be saving this state separately? Jan 07 20:54:08 because for some reason it's not doing it automatically Jan 07 20:54:30 only thing I could think of is not calling super.onsavedinstancestate Jan 07 20:54:33 but I'm doing that Jan 07 20:54:37 Right Jan 07 20:54:47 im in linux now, connected the tablet up Jan 07 20:54:59 STILL no authorization dialog Jan 07 20:55:08 what the actual fook Jan 07 20:56:05 are you sure you have usb debugging enabled? Jan 07 20:56:11 yup Jan 07 20:56:14 doesn't sound like it Jan 07 20:56:22 it is Jan 07 20:57:00 Hey, how can I get the rotating arrow-to-drawer icon that can be seen in the new Google apps? Jan 07 20:57:54 trevor-e: Why not save something else? Jan 07 20:58:03 The state that determines whether the view is visible. Jan 07 20:58:30 matt_j, actionbardrawertoggle Jan 07 20:58:59 ideally I shouldn't have to save everything and android should handle it Jan 07 20:59:06 save anything* Jan 07 21:00:40 so does this mean theres something wrong with the device? Jan 07 21:00:43 trevor-e, you should be required to tell it what you want to save or not, otherwise it wouldn't be very memory efficient Jan 07 21:00:46 think ive tried just about everything now Jan 07 21:00:59 pfn: does this work if I'm using a Toolbar? Jan 07 21:01:10 matt_j, yes Jan 07 21:01:23 it means your device probably doesn't have usb debugging enabled Jan 07 21:01:28 pfn: thanks :) Jan 07 21:01:30 even though you think it is Jan 07 21:01:34 pfn but it is lol Jan 07 21:01:43 so you say Jan 07 21:01:48 lol Jan 07 21:02:24 looking at the screen now, under developer options. Usb Debugging Jan 07 21:02:27 box is ticked Jan 07 21:02:56 and has been enabled and disabled over and over with different combinations in attempt to get this working Jan 07 21:03:01 trust me, usb debugging is enabled Jan 07 21:03:04 yiati: http://developer.android.com/training/basics/activity-lifecycle/recreating.html says this "By default, the system uses the http://developer.android.com/reference/android/os/Bundle.html instance state to save information about each http://developer.android.com/reference/android/view/View.html object in your activity layout (such as the text value entered into an http://developer.android.com/reference/android/widge Jan 07 21:03:26 sorry, apparently that copied the class hyperlinks in Jan 07 21:03:29 reboot your device then, Fraz Jan 07 21:03:29 Yeah, but it doesn't save every little thing. Jan 07 21:03:40 ^ Jan 07 21:04:01 ok, ive done this a million times before in windows Jan 07 21:04:04 not yet in linux though Jan 07 21:05:13 trevor-e: Are you currently keeping track of some state that determines whether views are shown/hidden? If so, it would be sensible to persist that and then re-show/re-hide the views. Jan 07 21:05:15 Play Store is telling me I should add an en-US translation of my description etc. I want the en-GB translation to be the same as the en-US translation. Do I have to copy-paste the description, and update it every time I update the description? Jan 07 21:05:47 still no worky Jan 07 21:06:39 * pfn shrugs Jan 07 21:06:43 your pc and phone are busted then Jan 07 21:06:45 trever-e: Also "Note: In order for the Android system to restore the state of the views in your activity, each view must have a unique ID, supplied by the android:id attribute." Jan 07 21:07:13 view visibility isn't one of the states that's automatically stored Jan 07 21:07:19 either that or you're making it visible yourself Jan 07 21:07:48 tried on 2 pcs Jan 07 21:08:09 TacticalJoke: that's what I ended up doing Jan 07 21:08:21 just seems redundant Jan 07 21:10:19 It's not perfect no Jan 07 21:28:30 Hello, i am doing an app for my college project. It has a news section that needs to be updated once in a while. What would be the best option to update the news without making a new app ? Jan 07 21:29:13 finally Jan 07 21:29:15 pushed Jan 07 21:29:43 Nightwalkerkg: probably GCM push Jan 07 21:31:47 Nightwalkerkg: use the AlarmManager and schedule an Inexact Repeating Alarm Jan 07 21:33:20 Nightwalkerkg: you mean only in the app? rss/atom. :P Jan 07 21:33:39 for notifications, the other replies. Jan 07 21:34:27 pull & cache the feed. refresh (checking for a 304 status) if it's potentially stale. Jan 07 21:35:02 the benefit to rss/atom is that you can use standard tools to create the news section and also repurpose it for other things. Jan 07 21:35:43 lewellyn: Well i would like to have notifications because i don't think people will check the app every hour. Jan 07 21:36:01 i'd go with Napalm's approach combined, then. Jan 07 21:36:13 if you get a 200, not a 304, then spew a notification. :) Jan 07 21:37:14 gcm push can be unreliable and is likely overkill. Jan 07 21:37:59 a notification saying "there's something new posted since the last time you checked, jfyi" sounds like it'd suffice. Jan 07 21:38:10 (going by "my college project") Jan 07 21:38:16 Yeah, that would do. Jan 07 21:39:03 It's basicly an app for my group that will contain info about the classes, etc. I was thinking about using the Twitter API and then simply when i post a tweet it will show in the app. Jan 07 21:39:07 the only real challenge is rss feeds. and that's been solved by many projects in many ways. i won't advocate what's best. :) Jan 07 21:39:18 For example if a class is canceled i can notify the rest of my group. Jan 07 21:39:25 heh. that might work too, provided you don't hit the ratelimiter Jan 07 21:40:28 Well, that depends, sometimes for example i would add new info few days in a row, and sometimes maybe once a week/month. Jan 07 21:41:06 the rate limit is based on reads by the app Jan 07 21:41:16 Just unlocked my bootloader and my phone is stuck on the nexus icon now lol Jan 07 21:41:33 I'll take that back Jan 07 21:41:37 Took a while to boot Jan 07 21:41:53 AndreYonadam: Yeah, the first boot usually last a bit longer. Jan 07 21:41:56 Hmm is there a more general OOP term for an easily "extensible"? I feel like extensible ties is something I just naturally say because of the Java "extends" keyword Jan 07 21:43:03 AndreYonadam: thats correct Jan 07 21:43:08 AndreYonadam: just wait Jan 07 21:43:22 AndreYonadam: its precompiling all the apps and caching them Jan 07 21:43:27 AndreYonadam: it can take sometime Jan 07 21:43:33 Yeah it works. Now. Can't use adb anymore. Maybe I need to reactivate developer mode Jan 07 21:46:14 unlocking bootloader is a wipe Jan 07 21:46:18 first boot always takes a while Jan 07 21:48:20 AndreYonadam, if you did oem unlock, it wipes ur data and shit.. so yea u need to activate dev settings Jan 07 21:48:39 Yeah. Going through the phone's installation process now. Jan 07 21:48:46 * pfn unlocked his dev moto x Jan 07 21:48:46 yay Jan 07 21:49:08 Congrats Jan 07 21:49:10 How's the battery life? Jan 07 21:49:37 my 2014 moto x has good battery life, and so does my 2013 moto x Jan 07 21:49:53 Nice Jan 07 21:58:34 Hmm, don't understand this. I'm using WebView for the first time, and I'm finding that redirected HTTP requests are leading to my WebView showing nothing at all. Jan 07 21:58:51 I've messed around with WebViewClient.shouldOverrideUrlLoading, to no avail. Jan 07 21:59:24 Returning true and false; calling "view.loadUrl(url);" in there whether returning true or false; etc. Jan 07 22:02:20 I have some video files on my VPS Jan 07 22:02:28 my goal is to stream it to my chromecast Jan 07 22:02:43 unfortunately i'm not sure where to begin Jan 07 22:02:46 Okay, the problem was that I didn't have JavaScript enabled. Jan 07 22:03:06 hi guys! I am a experienced desktop and web developer (C#, Java, PHP, Javascript, CSS, HTML), and would like to start developing mobile apps. I am looking for a platform that is free to use and allows me to build to many OS at once. Jan 07 22:03:15 hello guys, I have a question... how can I equal "TelephonyManager.EXTRA_INCOMING_NUMBER" with a number stored SharedPreferences? "if(incomingNumber.equalsIgnoreCase(contactNumber))" doesnt work. "if(incomingNumber.equalsIgnoreCase("+123456789"))" works, but why? Jan 07 22:03:31 do you guys have any suggestion? Jan 07 22:03:59 paulera: Qt Jan 07 22:03:59 paulera: phonegap? Jan 07 22:04:29 i knew someone else would suggest the html5 option, so i suggested the native option :) Jan 07 22:04:48 html5 apps are gross, go native ;) Jan 07 22:05:09 mind3r: with phonegap I code in one single code and compile to different OS using the SDKs? What is the language? Jan 07 22:05:19 paulera: phonegap/cordova is html5 Jan 07 22:05:24 yep Jan 07 22:05:32 Qt is a cross-platform native toolkit. Jan 07 22:05:34 html and js Jan 07 22:05:40 mind3r: which language is used in phonegap? Jan 07 22:05:53 14:05 mind3r: html and js Jan 07 22:06:01 with phonegap/cordova you code in one single code, compile to different mobile os, then no one uses the app Jan 07 22:06:02 14:05 lewellyn: paulera: phonegap/cordova is html5 Jan 07 22:06:22 Guys, thank you for your help! Jan 07 22:06:51 lewellyn: what do I need to install? I mean, IDE, compiler, etc? Jan 07 22:06:57 so, anybody has a solution for my problem? :D Jan 07 22:07:17 for Qt? you need the tools for each platform. for phonegap? adobe offers a build service. Jan 07 22:07:41 so R is the standard class that holds resources? Jan 07 22:07:49 lewellyn: with phonegap can I build for all OSs myself? Jan 07 22:07:51 mind3r: is contactNumber a string? Jan 07 22:08:00 paulera: you can. or you can have adobe do them. your choice. Jan 07 22:08:04 mind3r: Have you done any debugging? Check the values of the incoming number and the contact number. Jan 07 22:08:05 lewellyn: yes both are String Jan 07 22:09:04 desmin88: the numbers are the same, I checked it with logcat Jan 07 22:09:05 I have already been searching and was almost choosing phonegap. Thank for your time, everybody! Jan 07 22:09:19 I'll give it a try Jan 07 22:09:23 i disdain phonegap and cordova Jan 07 22:09:51 Phonegap is Javascript + HTML5, isn't it? Do I use CSS for style? Jan 07 22:10:11 phonegap is one of the easiest ways for users to uninstall your app Jan 07 22:10:17 mind3r: what are the log statements? Jan 07 22:10:43 the snipped: http://pastebin.com/EaCZq1xa Jan 07 22:11:00 no i mean Jan 07 22:11:04 the actual log Jan 07 22:11:13 heh Jan 07 22:11:31 1 sec ^^ Jan 07 22:13:15 If I want users of my app to be displayed by their Facebook profile picture, the best way to do that would be to store their profile picture in my database, right? Jan 07 22:14:06 you could probably pull it from facebook Jan 07 22:14:11 rather than store it yourself Jan 07 22:14:20 desmin88: one moment, I get an error now :D Jan 07 22:15:44 desmin88: but if my app is, let's say, a directory, I'd need to do a separate call to the facebook API for each user that I need to get a picture for which I can imagine would slow down the application Jan 07 22:16:07 Well wait, it'd be the same with my database I guess :P Jan 07 22:16:42 uhh Jan 07 22:17:02 its as simple as using picasso for an imageload Jan 07 22:17:40 What’s a good way to add columns to a SQLite db if they don’t already exist? Jan 07 22:17:41 t0astt: http://stackoverflow.com/questions/11442442/get-user-profile-picture-by-id Jan 07 22:18:53 tricknology: there is an alter table option available in sqlite Jan 07 22:18:58 perfect, thanks desmin88 Jan 07 22:19:05 tricknology: but it is restricted to just adding columns, not modifying or removing Jan 07 22:19:08 tricknology: Jan 07 22:19:12 so add wisely! Jan 07 22:19:18 thanks, just want to add Jan 07 22:19:29 or should I use version? Jan 07 22:19:32 just up the DB version Jan 07 22:19:32 yea Jan 07 22:19:39 and do the upgrade in the onUpgrade method of the BaseSqliteopenhelper Jan 07 22:19:42 but I need to save Jan 07 22:19:52 what bro Jan 07 22:19:54 save what Jan 07 22:20:03 the data that is already in the table Jan 07 22:20:09 it's there already? Jan 07 22:20:14 yes Jan 07 22:20:19 then why do u need to save Jan 07 22:20:21 i'm confused Jan 07 22:20:26 there is already data in the table. I need to add colums to the data Jan 07 22:20:33 ok so alter table Jan 07 22:20:35 add column Jan 07 22:20:36 ? Jan 07 22:20:40 I was under the assumption that upping the db version will drop table Jan 07 22:20:43 no Jan 07 22:20:45 it wont Jan 07 22:20:49 it just triggers an onUpgrade method Jan 07 22:20:50 to get fired Jan 07 22:20:51 in the openhelper Jan 07 22:20:55 whatever its called Jan 07 22:21:03 tricknology: Only if you tell it to drop the table will it drop. Jan 07 22:21:04 which is where u execute the add column Jan 07 22:21:16 hmm ok Jan 07 22:21:19 thanks guys Jan 07 22:22:09 Something along these lines http://stackoverflow.com/a/7622160 Jan 07 22:22:24 Hey guys, quick question on POST request with okHttp, if I send a post request to the server from the java, populated with one variable Jan 07 22:22:36 I would access it in the php script with $_POST Jan 07 22:22:41 but what would the key be? Jan 07 22:22:53 $_POST["WhatsHere"] Jan 07 22:22:57 post request method in java will take a map-like object Jan 07 22:23:07 don't confuse key-value posts with full body posts Jan 07 22:23:10 (the way i understand it) Jan 07 22:23:39 I am not getting a request to java I am sending one from java Jan 07 22:23:39 no Jan 07 22:24:00 Use Retrofit and make objects Jan 07 22:24:26 JakeWharton what? Jan 07 22:24:48 the docs on $_POST are fucking awful, but i'm guessing it's for form URL-encoded post bodies Jan 07 22:25:07 $_POST is an array Jan 07 22:25:31 $_POST[You pass the array key in here to get a value] Jan 07 22:25:48 i know that Jan 07 22:26:08 So If I send post request from java, I just dont know what key I would put in to get the data Jan 07 22:26:14 in the php Jan 07 22:26:19 evening Jan 07 22:26:32 look at the signature of the method that sends post requests Jan 07 22:26:45 drose379: What format do you want to send the data in? json, xml, etc? Jan 07 22:26:46 achuinard: you are not helping Jan 07 22:26:58 String Jan 07 22:26:59 according to the comments on the $_POST docs i'm correct Jan 07 22:27:08 http://php.net/manual/en/reserved.variables.post.php#114598 Jan 07 22:27:12 So how would I access this JakeWharton? Jan 07 22:27:16 i have no idea Jan 07 22:27:20 drose379: that's not a file type Jan 07 22:27:22 ask #php Jan 07 22:27:40 Why cant gingerbread die already? Jan 07 22:27:46 <_Auron_> hehe Jan 07 22:27:53 Got it, thanks JakeWharton Jan 07 22:28:00 JakeWharton: he's confused about sending 1 variable via post request. looking at the signature would help see how a Map-like object is taken. So 1 var is no diff from 10 vars. how is that not helping Jan 07 22:28:05 desmin88: it died a few months ago. it's just a rotting corpse Jan 07 22:28:13 achuinard: OkHttp does not take a map Jan 07 22:28:23 Can we burn the corpse to ash and sprinkle it in the sea Jan 07 22:28:41 oops, saw someone mention retrofit Jan 07 22:28:51 He should be using that for this kind of Http request Jan 07 22:28:57 We should at least give it a viking burial Jan 07 22:29:27 heh Jan 07 22:29:28 <_Auron_> we should send the ashes into the sun Jan 07 22:29:37 drose379: http://square.github.io/retrofit/ Jan 07 22:29:49 it's actually not a map but annotated method parameters Jan 07 22:29:56 Ok, thanks Jan 07 22:29:57 but that'll be what you want to use, you might not even need okhttp Jan 07 22:30:03 Gotta go now Jan 07 22:30:06 Thank you Jan 07 22:30:10 you absolutely will need OkHttp with Retrofit Jan 07 22:30:18 otherwise you get crap java.net.HttpURLConnection Jan 07 22:30:44 so;.. onUpgrade use “ALTER TABLE table_name ADD (col1 def… coln def);” Jan 07 22:30:45 Napalm, you around? Jan 07 22:30:47 so how is that going to impact basic PHP server requests Jan 07 22:30:53 :D I though that said java.net.HttpUrlException Jan 07 22:30:54 tricknology: yup Jan 07 22:30:56 thought* Jan 07 22:31:04 no drops or anything needed? Jan 07 22:31:06 cool Jan 07 22:31:06 drinfernoo: yes Jan 07 22:31:36 JakeWharton: he's sending basic string key / val, curious how okhttp will be better. less failed calls? more reliable? Jan 07 22:31:36 did you have something to say about gridview page states last night? I missed you before you were gone I think Jan 07 22:32:07 achuinard: http://square.github.io/okhttp/ Jan 07 22:32:15 achuinard: you don't know what he's sending Jan 07 22:32:25 he said he was sending a variable Jan 07 22:32:34 pretty sure that means a primitive Jan 07 22:32:39 a string, yes. Jan 07 22:32:41 ok Jan 07 22:32:43 so hes sending 1 string Jan 07 22:32:53 which to my question how is okhttp gonna benefit a simple string-based post request Jan 07 22:32:57 vs httpurlc Jan 07 22:32:57 right. could be json. could be text. could be xml. Jan 07 22:33:08 because OkHttp is superior in every possible way? Jan 07 22:33:14 boom Jan 07 22:33:39 can you be more specific, are requests more likely to fail after a certain size or something with httpurl Jan 07 22:33:47 i understand it could be a 1mb string Jan 07 22:33:55 just curious how okhttp will be 'better' Jan 07 22:33:57 better means nothing Jan 07 22:34:04 actually it means a very specific thing Jan 07 22:34:13 performance? speed? Jan 07 22:34:19 sure Jan 07 22:34:20 both Jan 07 22:34:29 less failed http requests? Jan 07 22:34:38 almost certainly Jan 07 22:35:16 all three of those are on the linked page, yes. Jan 07 22:35:21 This is a nice part of OkHttp, https://publicobject.com/2014/12/31/okhttp-2-2-has-interceptors/ Jan 07 22:35:54 cool, ill have to swap it in, glad to know Jan 07 22:36:05 When I was looking for an HTTP client, I couldn't even list HttpURLConnection as a serious candidate because it didn't support cancelling a request in a thread-safe manner. Jan 07 22:36:37 TacticalJoke: ow. Jan 07 22:37:42 TacticalJoke: you could just interrupt the thread and it should stop Jan 07 22:37:59 an InterruptedIOException will bubble up Jan 07 22:46:33 perlsyntax: I am having the same JVM issue... Jan 07 22:46:36 I've just started using a WebView, and the Activity hosting it starts I get this message in LogCat: Jan 07 22:46:37 E/chromium(14028): external/chromium/net/disk_cache/stat_hub.cc:216: [0107/224511:ERROR:stat_hub.cc(216)] StatHub::Init - App isn't supported. Jan 07 22:46:46 Everything works fine regardless. Jan 07 22:46:56 Any ideas of what that is? Google isn't helping much. Jan 07 22:47:11 s/the Activity/when the Activity/ Jan 07 22:47:20 I am getting the same error message "Android Studio was unable to find valid JVM" on Mac OSX Yosemite Jan 07 22:47:40 does anyone have a good solution to fixing this problem? I currently have installed jdk7 and jdk8 Jan 07 22:48:01 heater89, do you have java installed? Jan 07 22:48:10 (the oracle version) Jan 07 22:48:40 .bash_profile has ANDROID_HOME and STUDIO_JDK set to /usr/libexec/java_home and I have .plist files in /Library/LaunchDaemons that set the same variables to the same location Jan 07 22:48:49 danijoo: yes both jdk's have been downloaded and installed from oracle Jan 07 22:49:00 java -version gives me the 1.8 version of my jdk Jan 07 22:50:32 heater89, open a termianl and type ls -l `which java` Jan 07 22:50:34 yosemite doesn't look at launchd.conf any longer. neither 'sudo launchctl load -w my.file.plist' nor restarting gets Android to pick up the environment variables Jan 07 22:50:37 whats the output? Jan 07 22:51:13 danijoo: lrwxr-xr-x 1 root wheel 74 Dec 23 14:26 /usr/bin/java -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java Jan 07 22:52:06 TacticalJoke: stat_hub doesn't exist anymore, so no clue Jan 07 22:52:14 and i'm too lazy to look in AOSP Jan 07 22:52:30 Okay, I'll look at the source. Thanks. Jan 07 22:52:30 danijoo: 'java -version' output: java version "1.8.0_25" Java(TM) SE Runtime Environment (build 1.8.0_25-b17) Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode) Jan 07 22:52:43 open android studio, go to configure -> project defaults -> project structure Jan 07 22:52:44 This is an old version of Android (4.1), so it's probably old code. Jan 07 22:53:11 danijoo: Android Studio doesn't launch at all, I only get a dialog with my initial message Jan 07 22:53:15 oh.. Jan 07 22:53:34 danijoo: this includes attempting to launch from the terminal after trying to export/setenv the mentioned variables Jan 07 22:53:43 danijoo: yea... Jan 07 22:54:01 JAVA_HOME properly set? Jan 07 22:54:05 I got my first IAP sale. Jan 07 22:54:18 I'm getting a "com.test.kyoto.HomeActivity@42ac2fa0 must implement OnProfileInteractionListener" when launching my app. I get taht I need to add the implement line when declaring my Activity, but my Activity already implements the NavigationDrawer Listener... what do I do in this situation? Jan 07 22:54:22 Even though I'll eventually be getting only about 50% of the price, I'm excited. Jan 07 22:54:44 define properly? i have it exported in ~/.bash_profile as 'export JAVA_HOME=`/usr/libexec/java_home -v 1.8` Jan 07 22:54:50 t0astt, a class can import multiple interfaces Jan 07 22:55:00 t0ast implement OnProfileInteractionListener Jan 07 22:55:56 i have also attempted to set this in /Library/LaunchDaemons as a .plist file Jan 07 22:56:13 Hmm. Can't find that stat_hub.cc file even in ancient Chromium versions. Jan 07 22:56:57 heater89, im not on a mac since 1 month :/ so i cant test stuff to help you :S Jan 07 22:57:38 danijoo: no problem, not that this place is my last resource, but i don't ask unless i've exhausted everything that i know and have looked up online Jan 07 22:57:53 danijoo: and i have burned almost 2 days now on this issues Jan 07 22:58:00 issue* Jan 07 22:58:08 that sucks.. Jan 07 22:59:15 people have had success editing the "Info.plist" file that comes with Android Studio, but a statement from good says to specifically not edit it as it changes the signature of the application and I will no longer receive updates Jan 07 23:00:35 google* Jan 07 23:00:57 mh. when I did configure yosemite for intellij the last time it was enough to install jdk 1.8 Jan 07 23:01:09 I have an app that accesses the web. Is there a way to remove the magnifying glasses from appearing (the zoom in/out), because it's in the way of a button Jan 07 23:01:12 and it worked out of the box Jan 07 23:01:36 lencl: What magnifying glasses? Jan 07 23:02:35 danijoo: wish i could say the same Jan 07 23:02:42 TacticalJoke: http://mapp.android-libraries.com/sites/mapp.android-libraries.com/files/img/book_imgs/image111.png Jan 07 23:06:00 lencl: What view is that? Jan 07 23:06:23 As far as I can tell, your question is "How do I remove the zoom-in/out buttons from ?". Jan 07 23:06:28 Which might be googleable. Jan 07 23:10:41 heater89: I'm working on a mac with AS, and I've never seen or touched a plist Jan 07 23:11:11 Pretty sure nothing with plists are necessary to get AS running Jan 07 23:17:46 WebView seems so loud (in LogCat). I guess I don't need to worry too much about these messages. Jan 07 23:22:08 Is this an appropriate/clean way to instantiate a fragment when a navigation drawer item is selected? http://pastebin.com/uRmKjbw5 Jan 07 23:22:21 Just want to know before I create more fragments and finish out that logic Jan 07 23:23:39 t0astt: basically anyway that uses a bundle Jan 07 23:23:43 so its restored on configuration change Jan 07 23:23:53 for example i use class.newinstance() then set a bundle on the fragment Jan 07 23:24:17 I'll need to look into that then, got any good links? Or should I jsut look through the Android documentation for it? Jan 07 23:24:32 Here is how I do it: hhttp://pastie.org/9819171 Jan 07 23:25:12 Its really simple. Just put any information it needs into a bundle. Then do frag.setArguments(bundle) Jan 07 23:26:52 sweet, not bad Jan 07 23:27:03 So a bundle is kind of like the "putExtra" with intents? Jan 07 23:29:33 sorta Jan 07 23:29:35 yes Jan 07 23:30:08 getExtra/putExtra is actually a bundle Jan 07 23:30:14 http://developer.android.com/reference/android/content/Intent.html#getExtras() Jan 07 23:41:13 It seems that I need to call WebView.destroy in Activity.onDestroy to stop it from running in the background. Weird. Jan 07 23:41:14 TacticalJoke: the view is browser. it opens up the browser Jan 07 23:41:27 inside the app, opens up a browser Jan 07 23:41:56 Which website does it go to? Jan 07 23:42:13 lencl: Do you mean "WebView"? Jan 07 23:43:06 for anyone else having the "Android Studio cannot find a valid jvm" dialog issue on Yosemite, you'll need to install: http://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US which will install jdk 1.6 under /System/Library Jan 07 23:43:28 thanks to the individuals that provided their assistance :) Jan 07 23:43:45 TacticalJoke: yes webview Jan 07 23:43:53 TacticalJoke: my own website Jan 07 23:44:32 If that's a WebView, do this: myWebView.getSettings().setDisplayZoomControls(false); Jan 07 23:45:38 Is there a certain way to get a layout element for a fragment? Every time I try to get an element I get a null pointer exception. I've tried in the fragment's onCreateView, onCreate, and onActivityCreated, but no luck. Jan 07 23:45:53 profilePic = (ProfilePictureView)getView().findViewById(R.id.profile_pic_view); is what I'm using Jan 07 23:47:27 t0astt: Are you inflating the layout in onCreateView? Jan 07 23:47:41 If so, just call findViewById on the inflated View. Jan 07 23:47:47 TacticalJoke: Yes I am Jan 07 23:47:57 return inflater.inflate(R.layout.fragment_profile, container, false); Jan 07 23:48:46 View view = inflater.inflate(R.layout.fragment_profile, container, false); ImageView profilePic = (ImageView) view.findViewById(R.id.profile_pic_view); /* do whatever */ return view; Jan 07 23:49:14 Thanks, I'll give it a try Jan 07 23:50:09 what up dudes? Jan 07 23:50:50 woo it works! Thanks TacticalJoke Jan 07 23:51:05 TacticalJoke: If the app has a website link such as http://google.com and the user clicks on it and google opens up in the app... is that what's considered thewebview? Jan 07 23:51:59 lencl: You'd know if you were using a WebView. Jan 07 23:52:07 Since you appear not to know, you appear not to be using a WebView. Jan 07 23:52:16 ah okay Jan 07 23:52:30 It's another programmer handling it so I'll have to ask Jan 07 23:52:32 thank you Jan 07 23:52:46 TacticalJoke: ever used ionic or phonegap? Jan 07 23:53:02 Yeah, the solution depends on exactly what is going on. If a web browser is being launched, I don't see how you'd avoid zoom icons. Jan 07 23:53:07 Never, abara. Jan 07 23:54:48 Does anyone know whether WebView still has a memory leak? These comments suggest so: https://code.google.com/p/android/issues/detail?id=9375 Jan 07 23:55:03 I notice that my WebView keeps running in the background unless I call WebView.destroy. Jan 07 23:55:10 Even after the Activity has been destroyed. Jan 07 23:59:18 so, in AndroidStudio ... I now have various libraries defined in their own projects Jan 07 23:59:24 how do I reference them from a new project? Jan 07 23:59:34 I've tried import module, but that just copies them, instead of referencing them Jan 08 00:00:19 the real chainfire? Jan 08 00:00:46 his evil twin Jan 08 00:02:26 Chainfire, android studio doesn't do library projects like eclipse... I dunno about android studio, but intellij can just import directly without copying Jan 08 00:02:44 Chainfire, oh, you mean an external project that's also a library, yuck Jan 08 00:02:49 Chainfire, publish that shit as an aar somewhere :p Jan 08 00:03:10 yeah, because that isn't a waste of time Jan 08 00:03:36 it isn't Jan 08 00:03:37 I have lots of homebuilt libraries for code that is shared between various projects Jan 08 00:03:50 just publish it to your local ~/.m2 Jan 08 00:04:13 sounds like an extra step without any good reason Jan 08 00:04:47 lots of good reason, strict versioning being one of them Jan 08 00:05:11 I have a question, if anyone cares to answer it. :) Would you choose EventBus over the Android Observable class/Observer interface observer pattern? Jan 08 00:05:12 and publishing doesn't have to be an extra step Jan 08 00:05:14 gradlew publish Jan 08 00:05:17 or whatever the command is Jan 08 00:05:21 event bus Jan 08 00:05:33 yeah? Just easier to implement I suppose? Jan 08 00:05:54 so its not an extra step but its an extra command? ;) Jan 08 00:06:01 I mean i know how to implement it just curious why you'd choose it Jan 08 00:08:35 Chainfire, just 1 command, never extra, you have to build your projects some time Jan 08 00:09:06 pfn: there some extra config to produce aar? Jan 08 00:09:43 I don't know how to do this, but I'll look that up. aar you say? Jan 08 00:10:21 Chainfire: yes .aar the new format for libs on AS Jan 08 00:12:21 ahhh I got it Jan 08 00:12:25 abara, no extra config, automatic if you import the library plugin Jan 08 00:12:31 include ':libsuperuser' Jan 08 00:12:31 project(':libsuperuser').projectDir = new File(settingsDir, '../libsuperuser/libsuperuser') Jan 08 00:12:40 ^^^ settings.gradle Jan 08 00:12:41 done Jan 08 00:12:42 Chainfire: hpaste.org Jan 08 00:12:48 that works, too, I suppose Jan 08 00:15:46 Chainfire at the bottom of http://tools.android.com/tech-docs/new-build-system there is gradle-samples which is pretty helpful; for some odd reason its still missing about 40% of the examples from the previous version O.o but whatever Jan 08 00:16:39 Hah I remember that talk Jan 08 00:16:51 the smallest room at I/O, and no live streaming video Jan 08 00:16:57 line hundreds of people long Jan 08 00:17:35 typical Google dumbassery they didn't expect people would actually want to see the talk covering the build system everybody will be forced to switch to ... Jan 08 00:20:03 its at 1.0.0 but still the docs haven't moved from tools.android.com Jan 08 00:20:14 they seem kinda disorganized Jan 08 00:22:55 they can update that site at any time whereas android.com requires a formal deploy Jan 08 00:23:03 so it makes perfect sense Jan 08 00:23:16 d.android.com, that is Jan 08 00:25:57 is anyone else a bit concerned about the google auto copyright bots Jan 08 00:26:16 that strike down your app with the fist of a thousand suns without recourse Jan 08 00:27:45 not particularly Jan 08 00:28:29 nope Jan 08 00:28:49 except for stuff that misuses imagery or names, they don't get taken down Jan 08 00:29:32 ive read some stories where even with permission to use the copyrighted works google still takes it down Jan 08 00:30:08 desmin88, google takes it down upon complaint Jan 08 00:30:15 sounds like a case of no permission Jan 08 00:30:21 then ive read wrong Jan 08 00:30:23 heh Jan 08 00:31:12 google doesn't take it down automatically Jan 08 00:31:45 did not know that Jan 08 00:31:47 sometimes they do, but the issue is that Google’s bot doesn’t know if the person has permission Jan 08 00:31:47 interesting Jan 08 00:31:56 pfn have you any experience with publishing to jcenter from as? Jan 08 00:33:22 Still trying to implement that line intersection test. lol Jan 08 00:34:26 Chainfire, I publish to bintray, which is jcenter right? but I don't use as or gradle Jan 08 00:34:37 Is it worth it to try and implement one of the ways to get Robolectric tests working now, or wait for Android Gradle 1.1? Jan 08 00:34:41 yes those are the same Jan 08 00:34:53 people keep nagging me to make libsuperuser available that way Jan 08 00:34:58 * Chainfire has no idea what he's doing though Jan 08 00:35:38 id need something gradle based, though, so I guess I'll keep looking. It's possible, I just don't understand the scripts I've seen about it (yet) Jan 08 00:36:29 I build everything with sbt and publish with sbt Jan 08 00:36:30 * pfn shrugs Jan 08 00:38:23 Can I use Java API code that isn't in the SDK? Jan 08 00:39:21 Would I have to add a license or something? Jan 08 00:40:53 explain Jan 08 00:41:31 AndreYonadam example of an API you'd want to use that way ? Jan 08 00:42:58 desmin88: I need something that is in the Line2D class from java which isn't available in the Android SDK. My app is free but would I still have to include some sort of license. The top of the source file for Line2D has a license and they say to keep it. Is that enough? Would that change the license for my application even though its free? My application doesn't currently have a license or anything. Jan 08 00:43:32 Chainfire: this is similar to what I'm trying to accomplish http://stackoverflow.com/a/16334100/2109184 Jan 08 00:43:34 which license does it have Jan 08 00:44:04 Chainfire: I belive GNU Jan 08 00:44:29 GPL v2 Jan 08 00:44:33 my Google-Fu tells me GPLv2 Jan 08 00:44:42 Yeah GPLv2 Jan 08 00:44:43 which means that if you use that code in your project, your project will become GPLv2 Jan 08 00:44:51 and you will have to publish your sources under GPLv2 as well Jan 08 00:44:51 Damn. Is that bad? Jan 08 00:45:22 you can always homebrew your own intersection method Jan 08 00:45:23 GPL is freedom with a beard, obscuring all the restrictions Jan 08 00:46:00 desmin88: I tried. Jan 08 00:46:05 https://gist.github.com/anonymous/b82ec72778a596f7b747 Jan 08 00:46:18 It has so many flaws, its not even funny lol. Jan 08 00:46:37 see how line2d does it Jan 08 00:46:44 desmin88: I guess I can do that. Jan 08 00:47:28 Chainfire: Like what type of restrictions. I mean my app is free. Also I'm still going to try to implement something else. That's like my last resort kind of. Jan 08 00:48:22 two straight lines intersect 0 or 1 times. both lines can be described by a formula, solve for the variable, and see if the solution is within the outer bounds of the line start and end positions Jan 08 00:48:47 (assuming no space warping occurs) Jan 08 00:48:50 Chainfire: I was thinking about htat. Jan 08 00:48:52 Lol Jan 08 00:48:53 AndreYonadam: restrictions like following the GPL. see fsf's gpl faq for details. Jan 08 00:50:05 AndreYonadam> http://www.mathopenref.com/coordintersection.html Jan 08 00:50:44 there's the math. happy coding Jan 08 00:50:47 Chainfire: I originally thought of testing where the points are copared to the first line but the problem is that the second line may not have started yet and may start exactly on the line. Jan 08 00:50:54 Thanks I'm going to check that Jan 08 00:55:03 I'm having trouble getting adb working on ubuntu 14.10. Can anyone provide some direction? Jan 08 00:59:36 hello, i'm having issues making subversion work with android studio. I was able to checkout fine by adding my key and pulling all the files. but when i want to do an update i get a authentication pop up and i can't get past that Jan 08 00:59:54 any tips would be appreciated Jan 08 01:02:04 subversion? wow. haven't seen that in a while :) Jan 08 01:02:37 If I had to work with a subversion server, I would import it as a local git repository with git-svn Jan 08 01:02:51 yeah it's in the plans Jan 08 01:02:58 would be nice if i could set this up though Jan 08 01:03:06 but no idea wrt to using SVN with AS directly Jan 08 01:03:13 Is there anyway to reverse map a file:// uri against a content:// uri from lollipops externalstorage provider ? Jan 08 01:03:26 darken, no Jan 08 01:03:47 Subversion is amazing Jan 08 01:04:00 nope Jan 08 01:04:07 if you've been using rcs, maybe Jan 08 01:04:10 Lol I have to use it for the Wordpress repo Jan 08 01:04:13 or vss Jan 08 01:04:20 or cvs Jan 08 01:04:30 i think i would've had less pain if i went git though Jan 08 01:04:35 svn is just an incremental upgrade over cvs, it'd be hard to call amazing Jan 08 01:04:36 nobody wants to talk about svn Jan 08 01:04:43 pfn, I'm trying to make use of the new open_document_tree intent, which lets me gain access to file trees (such as complete ext sdcard), i don't want to have to build all file operations around "DocumentFile" Jan 08 01:05:21 If I were to do it, I’d use a separate SVN client like Tortoise. I rarely like using the built in clients of IDEs Jan 08 01:05:30 if I needed to work with svn, I'd *still* use git Jan 08 01:05:34 and occasionally git svn dcommit Jan 08 01:05:58 because i know i have the access i would somehow just need to create a DocumentFile for a specific path, but there seems to be no "clean" way to create a documentfile from path, besides String splitting etc. Jan 08 01:06:00 Do you know any good clients for mac? Jan 08 01:06:03 is importing to git and setting up a git serv pretty straightforward? Jan 08 01:06:11 we just starting dev so might as well do it asap Jan 08 01:06:19 git is straightforward Jan 08 01:06:24 ssh and git are all you n eed Jan 08 01:06:44 don't need a server, just setup a restricted ssh commands account and you have your git "server" Jan 08 01:06:45 yeah, if you don't have a specific reason to be using svn, definitely go with git or mercurial or something like that Jan 08 01:07:01 Git for the win Jan 08 01:07:10 okay i'll look it up sometime tonight :) thanks Jan 08 01:11:19 can the lollipop filepicker dialog be launched on a specific path by default? Jan 08 01:14:29 hi guys, .. I created a new package. then refactor moved all my java classes to that new package.. removed the old one, and did a clean project, even rebuild... and now I can't launch my application, it seems to be searching for the old package.. Jan 08 01:14:36 I checked the manifest its set to point to the new package Jan 08 01:14:58 uninstall previous app, clean project, rebuild Jan 08 01:16:30 P3nnyw1se: Are you using Eclipse? Jan 08 01:16:33 did... a few times actually.. it still says 'Launching application: chris.allan.awesome/allan.funnygame.HomeActivity.' .. but there is no chris.allan.awesome anymore Jan 08 01:16:35 its just 'allan' Jan 08 01:16:37 android-studio Jan 08 01:17:30 It might just be a run-configuration issue. Jan 08 01:19:42 I'd have a look under Edit > Run (I think). Jan 08 01:19:50 I mean Run > Edit. Jan 08 01:20:14 I checked it just now, doesn't seem to be an issue, the build is done succesfully, and the app actually flases on the nexus.. as if its about to open Jan 08 01:20:56 does AS update files on launch or do i have to "synchronize"? Jan 08 01:21:37 DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/chris.allan.awesome" Jan 08 01:21:47 again when I try and launch keeps refering to a package that doesn't exist anymore Jan 08 01:23:49 Chainfire which slr cameras do you tend to use? i just played with a 5300, i can't get used to nikon's UI - dang thing didn't even have a live histogram Jan 08 01:24:03 canon feels much more intuitive Jan 08 01:27:35 Does anyone know anything about this? http://stackoverflow.com/questions/3130654/memory-leak-in-webview Jan 08 01:29:50 anyone know if there's a canonical way to get a time-formatter that respects the device's 12/24 hour setting? Apparently DateFormat.getTimeInstance() doesn't. Jan 08 01:30:14 TacticalJoke http://www.androidpolice.com/2015/01/07/reddit-sync-facing-suspension-play-store-impersonation-even-though-google-thing-2-years-ago-reversed-decision/ Jan 08 01:31:00 Damn. Jan 08 01:31:17 Wow g00s. Jan 08 01:32:00 I've avoided calling mine "Reddit " and I've received Reddit's approval for my " for Reddit" name, but that still sucks. Jan 08 01:32:56 "sync for reddit" doesn't work so well, but they might end up having to use a name like that. Jan 08 01:33:00 do any of you have experience with animation drawable ? Jan 08 01:33:28 navad: afaik it updates on launch. I've switched branches a lot and not had any problems. Eclipse had/has some issues with it, but so far I haven't had any on Studio Jan 08 01:34:14 I've been wanting to create a gif file as a background video in an 'old arcade game' project I'm doing.. Jan 08 01:34:27 Note that reddit told me that they are gonna start getting strict about people using "Reddit " names. Jan 08 01:34:33 However, I doubt they're behind this latest thing. Jan 08 01:34:52 I use animation-drawable and add mby 60 image files, all of them only like 14kb big each .. and its just too much ... but if I reduce it to maybe 20 image files.. it loads Jan 08 01:35:01 is that really how it is suppose to be ? Jan 08 01:37:05 did I just kill the channel ? Jan 08 01:37:35 * cricket-noise * .... * cricket-noise * Jan 08 01:38:05 P3nnyw1se: I've never tried that many image files, fwiw. small, simple uses have generally worked though Jan 08 01:38:51 Okay, so everyone's saying that WebView has memory leaks. But I've tried rotating my handset a huge number of times while watching allocations in DDMS, on Android 4.1, and I'm not seeing any traces of a memory leak. Jan 08 01:39:03 small simple works.. but its 2015, I did some cool gif files that I can't just push down into 6-7 images Jan 08 01:39:12 seems weird I'm not able to fire more advanced gif files Jan 08 01:39:18 A problem with this universe is that it's hard to figure out what's true. Jan 08 01:41:02 TacticalJoke it used to. no idea when they were fixed Jan 08 01:41:17 Romain Guy claims it was fixed in 2.2 (I think). Does that sound about right? Jan 08 01:41:28 yeah, but they probably fucked it up again Jan 08 01:41:31 :D Jan 08 01:42:02 It's weird that I have to call WebView.destroy in Activity.onDestroy to stop it sending stuff to LogCat *after* the Activity has been destroyed. Jan 08 01:42:09 I don't see that documented anywhere. Jan 08 01:42:49 TacticalJoke so its clear that google is banning based on some stupid algorithm that is often wrong Jan 08 01:43:43 i mean, unless somebody from an official position files a claim against an app, maybe they should put their stupid kafka-esque AI agent back in the box Jan 08 01:44:09 if they can't get this shit straight, i don't want to be on the road with their self driving cars Jan 08 01:44:17 This needs 12 more signatures: https://www.change.org/p/google-inc-provide-android-developers-with-one-on-one-communication-to-help-identify-and-resolve-policy-violations-prior-to-automated-and-irreversible-suspensions Jan 08 01:44:24 Though I wonder whether it'll achieve anything. Jan 08 01:45:50 P3nnyw1se: oh, just realized: they're 14kb... but what are the dimensions Jan 08 01:46:22 TacticalJoke google needs to be clear on what their filter is Jan 08 01:46:29 P3nnyw1se: it's probably a lot more than ~800kb in memory Jan 08 01:46:37 for example, if reddit sync is bad, is redditSync ? Jan 08 01:46:44 400x300 groxx.. Jan 08 01:46:47 maybe iSyncReddit? Jan 08 01:46:49 I had 77 of them.. 14kb each... Jan 08 01:46:57 crashed the app, if I loaded.. just 30 of them works fine Jan 08 01:46:58 Yeah. Jan 08 01:47:34 P3nnyw1se: yeah, you're looking at a lot of memory. bitmap memory in ram is (by default) 4 bytes per pixel, the size on disk doesn't matter. Jan 08 01:47:45 The creator of that app needs to get in touch with reddit, too. Get records of everything. Jan 08 01:47:58 P3nnyw1se: so for 77, you should have 37mb or more Jan 08 01:48:08 I have carved into stone their e-mail to me in which they give permission to use a particular name (though that's not always enough for Google). Jan 08 01:49:06 are you saying my shitty 300x400gif file Jan 08 01:49:11 is 37mb in memory Jan 08 01:49:12 !! Jan 08 01:49:19 P3nnyw1se: yep. Jan 08 01:49:30 O.o Jan 08 01:49:32 jesus .. seems like a place that could use improvement Jan 08 01:49:54 probably anyway. it's possible they're doing some semi-clever loading, but more likely all frames are loaded up-front so they're ready. Jan 08 01:50:59 P3nnyw1se: it's just the nature of images. by default they're held in memory as ARGB_8888, which is 4 bytes per pixel, because that's how big they are when you actually go to draw them (so it's more efficient for drawing, less efficient on memory. drawing speed is usually more important) Jan 08 01:51:33 P3nnyw1se: you might be able to cut it down if you can change it to use RGB_565 (for a small quality loss), but I don't know if animation drawables let you do that. Jan 08 01:52:09 P3nnyw1se: if you can turn it into an MP4, it'll probably be smaller and way more efficient to draw, since video codecs are generally optimized for fast decoding. Jan 08 01:52:19 gifs are awful Jan 08 01:53:23 Yeah, GIF is an ancient format that's hugely wasteful. Jan 08 01:58:59 I thought a regular Service (not an IntentService) runs on the same thread of it's context? Jan 08 01:59:49 but when ever I call startService it seems to run the code after the current thread has finished Jan 08 02:00:21 maybe i'm not understanding how code executes on a single thread Jan 08 02:00:25 question about the bitmap/drawing API. I have created a 2-color bitmap font (white and transparent) and i'm drawing glyphs from it using canvas.drawBitmap(fontBitmap, sourceRect, destRect, null) but I want to apply colors to the final the bitmap section when I paint it onto the canvas. so the foreground (white pixels) would be blue and the background (transparent pixels) would be green, Jan 08 02:00:25 for example. i looked into the porterduff filters but i'm only able to set a color for the the foreground part or the background part but not both Jan 08 02:00:44 oddalot: yes, it will run on the main thread Jan 08 02:01:13 oddalot: if you're calling startService on the main thread, it will enqueue the start operation with the Looper that's running on the main thread Jan 08 02:01:52 Do I need to call WebView.onPause and WebView.pauseTimers in Activity.onPause (and WebView.onResume and WebView.resumeTimers in Activity.onResume)? Jan 08 02:01:53 so you mean, after the rest of the code gets executed, it will then run the code in the service. Jan 08 02:02:01 yes Jan 08 02:02:06 "at some point in the future", yes Jan 08 02:02:13 ahhh, weird, makes sense now though Jan 08 02:02:59 services are kinda-sorta similar to activities in that they're both lifecycle objects, therefore the "arguments" (the intents) need to be serialized, because they're partially managed by the OS and not your process. Jan 08 02:03:10 so say I had a service that connected to some network, and i wanted to make sure that the network was connected first before I ran the code after starting the service, what would be a good way to do that? Jan 08 02:03:17 so you don't _start_ the service, you _ask for it to be started_ Jan 08 02:03:21 a Future? Jan 08 02:03:28 if anyone could help i would really appreciate it... thanks Jan 08 02:04:35 oddalot: probably broadcast something locally, on an event bus of some kind. Or LocalBroadcastManager if you must. then catch it in wherever your code is, and continue. Jan 08 02:05:17 I don't care if it blocks, so i figured I was all set. But I guess it's just slightly off, or maybe I shouldn't use a service. Jan 08 02:05:18 oddalot: there's also "bound services" which would give you direct access to the service, so you can call methods / etc on it (like .isConnected, .setCallback, whatever makes sense). that might work better, depends on your use. Jan 08 02:05:54 I think I am using a bound service, but I'm still learning all this. But it makes a lot more sense now. Jan 08 02:06:38 thanks, gotta go catch the train Jan 08 02:08:13 Okay, it seems that I definitely need to call at least WebView.pauseTimers in Activity.onPause. Jan 08 02:08:19 groxx Jan 08 02:08:21 guess what? Jan 08 02:08:34 TacticalJoke: woah, really? does it keep looping in the background or something otherwise? Jan 08 02:08:36 With some web pages, WebView floods LogCat with JavaScript errors. If I don't pause it in onPause, that happens even when the app is in the background. Jan 08 02:08:46 Yeah. A flood of errors. Jan 08 02:08:46 Agamemnus: the world is round! Jan 08 02:08:50 Nope. Jan 08 02:08:54 D: Jan 08 02:08:56 I recovered half my costs today Jan 08 02:09:11 90 cents on ads Jan 08 02:09:13 I wonder why they didn't take the time to document all this. Jan 08 02:09:17 $5.50 on an IAP from France :D Jan 08 02:09:22 haha, nice :) Jan 08 02:09:24 I'm having to use trial and error to figure it all out. Jan 08 02:09:41 so i only have a -50% margin Jan 08 02:09:56 just gotta make that into a positive Jan 08 02:10:00 TacticalJoke: can you use a webview fragment? I think that's a little more automagical Jan 08 02:10:12 scrollview in a listview a bad idea? Jan 08 02:10:27 *even if i disable scrolling on listview while scrollview is visible? Jan 08 02:10:28 TacticalJoke: it'll still flood logcat, but I _think_ some of that is turned off in the release build Jan 08 02:10:43 i have little experience with android, just to be upfront. I am trying to call startService(intent) from an item of an ItemListActivity, but I cannot figure out how to pass to my items the Activity so that I can indeed call startService Jan 08 02:10:51 Oh, is the fact that I'm not running a release build a factor in the LogCat stuff? ;o Jan 08 02:10:53 Didn't know that. Jan 08 02:11:06 Though it totally would make sense. Jan 08 02:11:21 TacticalJoke: it _might_, it does in some cases, and it could for webview too. Jan 08 02:11:26 K. Jan 08 02:11:35 I've never run a non-release build of something I've made, I think. Jan 08 02:11:37 Actually, maybe once. Jan 08 02:11:51 hard to say. I get a lot of accessibility-node errors from webkit on some devices, but they don't show up in production. Jan 08 02:12:15 Hmm, the documentation for WebViewFragment says "The WebView is automically paused or resumed when the Fragment is paused or resumed". Jan 08 02:12:15 i was thinking instead of using tabs, using a view pager, wherein each page would host the title of the subset, upon switch page a listview under the viewpager would swap out for the right subtype, anyone have any thoughts on this? Jan 08 02:12:57 They call WebView.onPause and WebView.onResume: https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/webkit/WebViewFragment.java Jan 08 02:13:21 can I reach Layout_gravity from java ? Jan 08 02:13:26 lasserix: so you'd have swipeable "tabs" that change your listview when you switch? or would you have the listview(s) in a viewpager? Jan 08 02:13:33 yes Jan 08 02:13:41 viewpager just sits at top, with "headers" Jan 08 02:13:53 swiping left and right would reset the adapter on the listview underneath Jan 08 02:14:11 this is for a configuration page, each header is of a subtype of the configuration (structure, behavior, color, etc) Jan 08 02:14:29 So, it seems no matter what, i cannot get my device to give me the authorization dialog when i connect it upto a pc.......ANY ideas why? Jan 08 02:14:47 Fraz: you got usb debugging enabled? proper drivers installed? Jan 08 02:14:54 yup Jan 08 02:14:58 all the obvious is done Jan 08 02:15:07 it seems to be a problem with the device itself Jan 08 02:15:15 try switching from camera to mtp or vica versa? Jan 08 02:15:20 tried that Jan 08 02:15:24 (that's usb connection mode) Jan 08 02:15:25 lasserix: I think you'll have a bit of annoyance with deciding which tab is "selected", and/or the timing will be a little weird due to the viewpager (e.g. only after they stop swiping, so you could swipe between things and not actually see the in-between result), but it seems like it could work Jan 08 02:15:27 bad wire? Jan 08 02:15:33 tried multiple cabled Jan 08 02:15:33 Sigh. Calling WebView.onPause/WebView.onDestroy doesn't stop the LogCat spam when the Activity is paused. Jan 08 02:15:36 cables Jan 08 02:15:38 2 pcs Jan 08 02:15:40 So even WebViewFragment doesn't appear to do enough. Jan 08 02:15:42 and tried linux earlier Jan 08 02:15:49 groxx: on swipe until page selected i'll just disable/greyout the listview Jan 08 02:15:54 didnt give me the prompt with linux either Jan 08 02:15:57 guys I'm trying to move the layout_gravity on a textfield .. dynamically .. I can only reach gravity, not layout_gravity, .. and the gravity does nothing Jan 08 02:16:02 once page selected fires, i'll reset listview adapter and reenable Jan 08 02:16:14 lasserix: otherwise, possibly just stick multiple listviews in a viewpager. scroll-in-scroll isn't inherently bad, it's generally just that scroll-in-scroll-in-same-direction is hard to use sanely. Jan 08 02:16:15 gravity isn't layout gravity Jan 08 02:16:15 duh Jan 08 02:16:25 seems no matter what i do, i cant get it to show. im thinking now its somethign with the device itself Jan 08 02:16:29 i just dont know what Jan 08 02:16:34 groxx i dont want to listviews to swipe that would look ungainly Jan 08 02:16:38 I know Jan 08 02:16:43 *to scroll as pages across the screens Jan 08 02:16:44 so I ask again, can I reach layout gravity .. Jan 08 02:16:48 lasserix: yeah, that's a good reason to not do that :) Jan 08 02:16:57 anything that starts with layout_ is accessible via layout params Jan 08 02:17:09 weird.. doesnt seem so here Jan 08 02:17:10 more i was just asking if using a viewpager instead of tabs is not a terrible idea Jan 08 02:17:19 P3nnyw1se: post ye code? Jan 08 02:17:29 lasserix: personally, I'm fond of the scrollable + tappable tabs, kinda like the play store has. ignoring the sliding between lists. it makes a clear separation between "looking at options" and "see this option" Jan 08 02:18:08 groxx you know how they implement that? Jan 08 02:18:13 is that a viewpager tab library? Jan 08 02:18:14 is there anything anyone can think of on the device other than usb mode and usb debugging that would prevent usb debugging? Jan 08 02:18:23 Fraz bad wire Jan 08 02:18:31 as i said i tried multiple cables Jan 08 02:18:32 P3nnyw1se: view.getLayoutParams() should give you access to it. BUT: layoutparams depend on the _parent_ view, not the view you're getting them from. you'll want to cast them to the parent-view-layout-params class. Jan 08 02:18:43 bad driver Jan 08 02:18:46 hmmm ok thx Jan 08 02:18:47 samsung? Jan 08 02:18:56 multiple drivers, and tried linux earlier Jan 08 02:18:57 lasserix: nope. never sat down and figured it out. it's reasonably common though, I suspect there's a library somewhere. Jan 08 02:19:01 nah asus Jan 08 02:19:05 iunno Jan 08 02:19:08 call them Jan 08 02:19:12 :p Jan 08 02:19:18 ive been at it for 5 days now Jan 08 02:19:18 which is useless, i know Jan 08 02:19:38 im beyond calling em, if i call em i might just reach down the phone and strangle someone Jan 08 02:19:41 their B2B email address is useless Jan 08 02:19:50 I emailed them twice, no response Jan 08 02:19:52 Fraz: I assume you've rebooted the device? Jan 08 02:19:59 wait that's samsung Jan 08 02:20:03 yeh i never resort to tech support cos i know more than those guys anyway Jan 08 02:20:06 sorry, my cold is acting up again Jan 08 02:20:08 groxx yes Jan 08 02:20:18 but i assume asus is the same Jan 08 02:20:23 ive also shouted at it Jan 08 02:20:26 that didnt work either Jan 08 02:20:56 Fraz: ¯\_(ツ)_/¯ good luck. I'll echo the "try different connection modes" suggestion though, sometimes they're overlooked. try them _all_, for good measure. Jan 08 02:21:12 yeah groxx, i tried em all Jan 08 02:21:17 every possible combination Jan 08 02:21:19 does it charge? Jan 08 02:21:23 yeh Jan 08 02:21:32 :\ Jan 08 02:21:34 its picked up and everything on the pc Jan 08 02:21:35 is it rooted? Jan 08 02:21:37 no Jan 08 02:21:46 throw it out the window as hard as you can Jan 08 02:21:49 obviusly cant root it cos i cant authorize the pc Jan 08 02:21:51 or pretend you are Jan 08 02:22:06 Fraz: it has worked in the apst? Jan 08 02:22:07 past* Jan 08 02:22:08 try wireless adb Jan 08 02:22:13 (sorry, catching up) Jan 08 02:22:17 no, only got it at xmas Jan 08 02:22:20 if you ever authorized it Jan 08 02:22:23 root it Jan 08 02:22:37 the aythorization thing never showed Jan 08 02:22:38 ever Jan 08 02:22:50 check xda-developers Jan 08 02:22:54 checked Jan 08 02:22:57 checked everywhere Jan 08 02:23:00 Fraz: two more for ya then: 1) you've turned on debugging on the device? 2) have you cleared the list of authorized devices? it's possible you / someone bumped "nope" earlier. Jan 08 02:23:15 yes and yes Jan 08 02:23:20 nope Jan 08 02:23:42 this is pretty much not the obvious anymore Jan 08 02:23:47 pretty much Jan 08 02:23:55 does fastboot see it if you go into the bootloader? Jan 08 02:23:58 Do you ever feel like programming for Android is like trying to train a really badly behaved dog -- one with a lifetime of issues. Jan 08 02:24:06 And you've never trained a dog before. Jan 08 02:24:08 i dunno about that, how do i do that? Jan 08 02:24:16 TacticalJoke: I've been bashing my head against gridview, so yes. a mangy, feral, drunk dog. Jan 08 02:24:33 you should have just used Cordova Jan 08 02:24:38 Fraz: depends on the device, but typically: hold power + vol-up on boot, until you see a bootloader screen. Jan 08 02:25:10 and? Jan 08 02:25:59 Fraz: once you're in the bootloader, the android SDK has a tool called 'fastboot', and 'fastboot devices' should list your device. assuming that happens, it at least rules out some low-level "device is doomed" problems Jan 08 02:26:14 or "computer is derpy and can't see it" Jan 08 02:27:42 Fraz: it's possible adb is just screwed up on the device, and fastboot would let you at least re-install the OS. it's quite _unlikely_ that this is the problem, but it's definitely possible. Jan 08 02:28:14 otherwise, perhaps #android-root knows more? Jan 08 02:28:43 not quite identical, but custom-rommers / rooters tend to have to deal with dead / non-responsive devices, they might have ideas Jan 08 02:29:01 just seems to keep booting normally Jan 08 02:29:11 i have done this before on other tablets, just forgot how Jan 08 02:29:49 i never expected this from an asus product Jan 08 02:29:58 a cheap generic chinese device maybe Jan 08 02:30:09 but never has this much trouble before Jan 08 02:31:14 unfortunatley i dont have any other devices with kitkat on so i cant tell if its the tablet os Jan 08 02:31:38 Is there an easy way to do the equivalent of ViewGroup.getChildAt from inside any Activity (i.e., instead of using Activity.findViewById)? Jan 08 02:31:55 Seems not from the code. Jan 08 02:34:41 wierd thing is too, noone seems to have this tablet lol Jan 08 02:35:44 TacticalJoke: `getWindow().getDecorView().findViewById(android.R.id.content).getChildAt(0)` ? Jan 08 02:36:54 True. lol Jan 08 02:37:19 Fraz: heh. my roommate occasionally brings home asus phone/tablets. fwiw every single one has had some random problem, uncovered after a week of use or so. crap like "every 3rd party camera app reboots the device", or garbage pre-installed apps draining the battery, or two have stopped charging in less than a month. Jan 08 02:37:49 :S Jan 08 02:37:59 ill look forward to that then Jan 08 02:38:32 my roommate may not be the most unbiased sample for a variety of reasons, but we've both been surprised with the fail rate. Jan 08 02:39:25 oh on another note Jan 08 02:39:36 i connected a lenovo up earlier Jan 08 02:40:00 that wouldnt bring up the authorization dialog either Jan 08 02:40:07 :\ Jan 08 02:40:14 what version of android was it added in? Jan 08 02:40:24 the lenovo is 4.2.2 Jan 08 02:40:29 I think 4.something Jan 08 02:40:33 while the asus is 4.4.2 Jan 08 02:40:54 its jellybean on the lenovo i think Jan 08 02:41:06 Fraz: it might be 4.2.2: http://nelenkov.blogspot.com/2013/02/secure-usb-debugging-in-android-422.html#! Jan 08 02:41:35 have you ever successfully connected to an android on your computer? Jan 08 02:41:52 i wasnt sure since it didnt have the option to revoke authorizations Jan 08 02:42:15 on this computer, yes. but back then i wasnt usning win 8.1 Jan 08 02:42:24 my other pc is also running 8.1 Jan 08 02:42:44 neither work, thats why i tried linux earlier today and that didnt work either Jan 08 02:42:45 yeah, dunno :\ wish I had more ideas Jan 08 02:43:02 linux does have a little more setup in some cases, if you haven't done that before Jan 08 02:43:24 i was told in hear to just plug it in and the dialog should show, heh Jan 08 02:43:27 here* Jan 08 02:44:09 it picked up in linux as a portable device in mtp Jan 08 02:44:12 and a camera in ptp Jan 08 02:44:27 still never got the dialog on the device though Jan 08 02:45:12 just the regular "usb debugging connected" message Jan 08 02:46:52 Fraz: ah, there we go: https://developer.android.com/tools/device.html some(?) linuxes need you to add udev rules. also: make sure you've done everything listed and linked on that page Jan 08 02:47:29 Is there an alternative to WebView that I could ship with my app? Jan 08 02:47:32 This thing seems pretty buggy. Jan 08 02:47:47 is all this needed just to get the authorization dialog though? Jan 08 02:47:53 no, there is no alternative Jan 08 02:48:00 well, you could build chromium yourself Jan 08 02:48:01 I suppose Jan 08 02:48:22 Fraz: I'm not sure. probably? I'm on OSX, so I get to follow these difficult and complex instructions: "If you're developing on Mac OS X, it just works. Skip this step." Jan 08 02:48:35 lol Jan 08 02:49:01 apple will take over and we will all end up like in wall-e Jan 08 02:49:28 "all this" is "debuggable app" (optional, obviously) + "turn on debugging on device" + "set up your system to allow USB debugging". seems likely it's all necessary. Jan 08 02:49:43 "order food on your iphone? why? its edible now" Jan 08 02:49:50 heh Jan 08 02:50:39 iMessage needs to make a /pizza command, like WoW has/had/maybe it was some other game? Jan 08 02:50:45 well the iphone 6 is already quite felxible Jan 08 02:50:54 groxx: It was Everquest Jan 08 02:51:00 i bet the iphone 7 will be chewable Jan 08 02:51:02 aah, thanks gman23 :) Jan 08 02:51:05 iphone 8 adds flavours Jan 08 02:53:25 groxx, thanks ill try the stuff in that link tomorrow Jan 08 02:53:51 Hello Android developers. :) Would you choose the EventBus library over the Android Observable class/Observer interface observer pattern? Jan 08 02:53:51 if i try right now, i think the tablet will be unusable by tomorrow Jan 08 02:54:19 huh, why can't I kill/restart adbd on my device, permission denied from adb shell :( Jan 08 02:54:32 cos Jan 08 02:54:40 screw you Jan 08 02:54:54 When using reddit on a phone, would you prefer to have a setting for whether to view content in a WebView or whether to view content in an external browser? Jan 08 02:54:58 not my fault you can't setup your device right :p Jan 08 02:55:05 i wish i had the oppertunity to have that problem:( Jan 08 02:56:03 not me! Jan 08 02:56:04 asus! Jan 08 02:56:31 weird, I can just run adb tcpip from commandline Jan 08 02:57:21 WebView seems to work or not work at random, for some sites. Jan 08 02:57:42 I think I need to give users the option to never use WebView ("always use an external browser" or something). Jan 08 02:58:06 And a "View in browser" option for anything showing in a WebView. Jan 08 02:58:07 never encountered that before Jan 08 02:59:34 I guess I'm using an old version: that from 4.1. **** ENDING LOGGING AT Thu Jan 08 02:59:59 2015