**** BEGIN LOGGING AT Thu Jan 08 02:59:59 2015 Jan 08 03:01:07 I just found Crosswalk: https://crosswalk-project.org/ (But it's 20MB.) Jan 08 03:01:13 pfn: haven't tcpip'd your adb before? Jan 08 03:01:16 https://www.youtube.com/watch?v=Q3bdXctq7DM Jan 08 03:01:39 groxx, i have, but I've always done setprop/kill adbd Jan 08 03:01:56 ah Jan 08 03:01:58 groxx, rather than adb tcpip Jan 08 03:02:03 which is so much easier... Jan 08 03:02:51 Do I need to worry about the order in which I call WebView.onPause and WebView.pauseTimers (as well as WebView.onResume and WebView.resumeTimers)? Jan 08 03:03:53 now to figure out what adb tcpip calls underneath Jan 08 03:05:05 This looks interesting: https://wiki.mozilla.org/Mobile/Projects/GeckoView Jan 08 03:07:11 hmm, can't tcpip from ddmlib, darn Jan 08 03:08:15 Why can't apps run Chrome's own "WebView" component? Then the user can keep everything up to date just by updating Chrome. Jan 08 03:08:30 Seems like a better idea than people on old Android versions having to use a several-year-old WebView. Jan 08 03:10:43 Oh well. Not much I can do other than offer users the choice of always using an external browser. Can't be shipping a 20MB library with a small app. :) Jan 08 03:15:23 does anyone use a color dir in their apps? like putting selectors etc. inside the color dir under res? Jan 08 03:15:28 lol Jan 08 03:15:29 http://www.xda-developers.com/android/and-it-goes-on-htc-hd2-receives-lollipop-port/ Jan 08 03:15:47 just wondering if anyone uses it, whether it is good practice to do it Jan 08 03:23:23 TacticalJoke: what are you using webview for? Jan 08 03:24:06 Displaying posts linked on reddit. Jan 08 03:24:14 Is there anything else I can use? This thing is buggy. Jan 08 03:24:34 displaying posts linked? Jan 08 03:24:35 I realise that I could just start a browser (but I doubt many would like that). Jan 08 03:24:48 you should prob just start the browser for now Jan 08 03:24:54 Why? Jan 08 03:25:04 the function of you app is to browse reddit Jan 08 03:25:11 not to be a web browser Jan 08 03:25:24 if you start down that path, you're making it more a webbrowser Jan 08 03:25:28 I'd hate to have to leave a reddit app every time I clicked a link. Jan 08 03:25:34 It's not a great UX. Jan 08 03:25:34 IMO. Jan 08 03:25:37 and then you're cursing yourself by violating SINGLE PRINCIPLE RESPONSIBILITY!!! Jan 08 03:25:42 lol Jan 08 03:25:50 well you want to do a preview? Jan 08 03:25:51 This is part of the responsibility for the app, though. Jan 08 03:25:59 or you want to display the whole thing? Jan 08 03:26:03 i think its fine Jan 08 03:26:05 for now anyways Jan 08 03:26:06 The whole thing. Jan 08 03:26:12 just open up in a new browser, Jan 08 03:26:16 later you can devote some time Jan 08 03:26:21 Why later? Jan 08 03:26:22 to making it work really well Jan 08 03:26:28 are you finished with everything else? Jan 08 03:26:35 I'm finished with quite a lot, I guess. Jan 08 03:26:37 Of the basics. Jan 08 03:26:43 hmm Jan 08 03:26:54 to me just seems like a sideshow of the app Jan 08 03:27:06 not really worth your time Jan 08 03:27:13 or there is better stuff you can do Jan 08 03:27:17 like testing polish etc etc Jan 08 03:27:20 lasserix: When you use reddit on Android, do you view links in an external browser? Jan 08 03:27:34 You're kidding, right? :D Viewing links is the most important part of the app. Jan 08 03:28:14 umm Jan 08 03:28:26 to be honest id save it to pocket or whatever and do it on destkop Jan 08 03:28:32 i dont like browsering web on my phone kinda blows Jan 08 03:29:07 I haven't done a special ImageView thing yet. I guess I need to treat images separately. Jan 08 03:32:57 lasserix: You don't sound like a typical reddit user. :D Jan 08 03:33:35 i just dont use a phone to browse the web Jan 08 03:33:40 it is often way tooo slow Jan 08 03:33:44 and navigating sucks Jan 08 03:33:48 Yeah. I use it but it can be annoying. Jan 08 03:33:52 Do you have an old phone? Jan 08 03:33:58 and lack of real tabs sucks Jan 08 03:33:59 yeah Jan 08 03:34:06 but even on my dev phones (which are new) Jan 08 03:34:09 its still kind of a pain Jan 08 03:34:14 Yeah, tabs are key. Jan 08 03:34:16 much prefer to save the links and open on desktop Jan 08 03:34:17 As is speed. Jan 08 03:34:33 Hmm. Could I facilitate that? Jan 08 03:34:40 Or would sending an intent to open a URL be enough? Jan 08 03:34:57 The "pocket" thing (or whatever it is). Jan 08 03:36:00 yeah Jan 08 03:36:03 you can do it in intent Jan 08 03:37:36 interesting, it's keepshare that's making chrome slow... Jan 08 03:37:40 I'll have to look at fixing that :( Jan 08 03:43:07 hm, the Moto G, Google Play Edition got 5.0 before the G2 Jan 08 03:44:15 "Google TV is officially dead. Long live Android TV." Jan 08 03:44:37 for some value of "Long" Jan 08 03:44:52 yeah thats why i don't want android in my next car Jan 08 03:45:07 as if car software is maintained or updated Jan 08 03:45:10 you're so funny Jan 08 03:45:36 you stand a better chance of updates with android auto than anything else the oems create Jan 08 03:46:02 Why does WebViewFragment called WebView.onResume before Fragment.onResume? https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/webkit/WebViewFragment.java Jan 08 03:46:07 call* Jan 08 03:46:17 git blame and see what the commit says Jan 08 03:46:26 More direct: https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/webkit/WebViewFragment.java#64 Jan 08 03:46:31 or git log -p Jan 08 03:47:45 That code was created when the entire file was created. Commit message is "Adds a new WebViewFragment class". Jan 08 03:48:00 Anyone use MillienialAds ? Jan 08 03:48:04 I guess it could be a stylistic thing. Jan 08 03:48:21 Ah, I almost lose the ability to care sometimes. :D Jan 08 03:48:27 So many pointless little details with Android. Jan 08 03:48:42 You almost have to resort to the "It compiles; ship it" mentality. Jan 08 03:49:01 But more like "It compiles and seems to work on various devices; ship it". Jan 08 03:50:56 On a side note, I'm really liking this app. I love the spinner for changing subreddit; so handy. Jan 08 03:53:54 I might not use a navigation drawer at all. They're complicated and annoying, IMO. Jan 08 03:54:04 Though almost nobody seems to agree on that. Jan 08 03:54:09 hello Jan 08 03:54:19 can I get help here to root my phone Jan 08 03:54:30 I think that's #android or #android-root or something. Jan 08 03:54:50 TacticalJoke, I got told to come here from #android Jan 08 03:55:14 #android-root sounds perfect (in theory). Jan 08 03:55:33 TacticalJoke they are kinda pain to implement Jan 08 03:55:53 but you can do much more with a nav drawer than spinner :) Jan 08 03:55:59 True. Jan 08 03:56:02 how I should proceed.. I want to launch only in australian google play(a soft launch). how i do that? Jan 08 03:56:13 TacticalJoke, I could 'root' my android right now.... : Jan 08 03:56:18 :P Jan 08 03:58:18 come on, i don't want to mess this up Jan 08 03:58:30 I was thinking of implementing swipe-in-from-left to go from a comment listing back to the post listing. And swipe-up-from-below to go from a link to a comment listing. (And, of course, swipe-down-from-above to go from a comment listing to a link.) Jan 08 03:59:08 But I'm not sure about the last two. Kinda fiddly. Jan 08 04:01:05 Also, swipe-from-right could go back to the previous link/comment listing, maybe. Jan 08 04:01:16 (From a post listing.) Jan 08 04:01:56 ... Jan 08 04:05:19 .... Jan 08 04:05:28 im rooted. can i take the system camera app off my phone, manipulate the sound effect files (ie the irritating shutter .oggs), repack it and re instal it? Jan 08 04:05:42 lasserix: You might like this: https://www.reddit.com/r/UnexpectedThugLife/ Jan 08 04:05:50 (Possibly NSFW audio/whatever.) Jan 08 04:06:05 whats with this thug life bs on reddit ? Jan 08 04:06:14 Have you seen the videos? Some are funny. Jan 08 04:06:15 what seems natura Jan 08 04:07:14 I found this pretty funny (but the rap song at the end has plenty of bad language, so don't click if you don't wanna hear that): Richard Dawkins thug life: http://youtu.be/iELs0xMDhxE Jan 08 04:09:47 im rooted. can i take the system camera app off my phone, manipulate the sound effect files (ie the irritating shutter .oggs), repack it and re instal it? Jan 08 04:19:33 screwsss: #android-root Jan 08 04:30:40 My app is doing too much work in its UI thread (skipping frames, etc). How can I see what's causing this? What are the tools to analyze it properly? Jan 08 04:30:55 Systrace? Jan 08 04:31:40 hey Jan 08 04:31:45 im annoyed by the camera sound effects Jan 08 04:31:56 i managed to get rid of some but not all Jan 08 04:32:46 is there a way i can edit the sound effect files inside the .apk Jan 08 04:32:51 without unzipping it Jan 08 04:32:54 You can't Jan 08 04:34:15 i cant? Jan 08 04:34:18 No Jan 08 04:36:31 someone tells me titanium can Jan 08 04:36:45 titanium? Jan 08 04:37:38 I don't know about overcoming the sound but I'm sure you can't "edit" the sound effect files in the apk. Jan 08 04:37:50 Unless Android released the code to the public which is another case. Jan 08 04:40:27 u wot m8 Jan 08 04:48:05 Hey y'all. I have an object with a variety of member types (primitives, except String). I need to parse/validate each one. What's the best way to do this? Jan 08 04:48:26 For instance, right now, each member types has a corresponding enum value in an enum class Jan 08 04:48:49 i can give each type its own validator or parser Jan 08 04:49:43 but when i am doing the parsing/validation how do set it up so i dont have to do something twice. like when i parse, i grab the value. now i validate. let's say its a boolean. the validator says it's valid (by doing Boolean.tryParse or whatever) and now i need to set it in the config object Jan 08 04:49:51 how do i do that without doing tryParse twice? Jan 08 04:52:03 lasserix parse from a file ? Jan 08 04:58:51 yeah Jan 08 04:59:01 :) Jan 08 04:59:06 but thats not the important thing, it goes --> grab line, grab value, parse value Jan 08 04:59:18 if that is void string boolean Jan 08 04:59:32 how do i avoid getting the proper type twice? Jan 08 04:59:43 since in parse it'll grab the type to verify Jan 08 05:08:19 lasserix: You can't use all Objects (e.g., Boolean) and then use 'instanceof' or something? Jan 08 05:08:43 seems ugly Jan 08 05:08:57 So you have a List of Object or something? And you're reading from a file? Jan 08 05:09:01 ill just hide in the validator Jan 08 05:09:03 I'm trying to visualise. Jan 08 05:09:36 each enum Jan 08 05:09:41 element Jan 08 05:09:44 will ahve a validate Jan 08 05:09:51 then validate logic will grab the appropiate parser Jan 08 05:09:54 and then set it Jan 08 05:10:00 and ill just return true or false for the validation Jan 08 05:10:21 *will have a validator Jan 08 05:10:37 lasserix you looked at ragel, but decided against it presumably Jan 08 05:10:53 no i just am not even at the point where i want to implement something like that yet Jan 08 05:10:57 it works fine as is Jan 08 05:11:04 im just refactoring since my code base is somewhat of a mess Jan 08 05:11:09 and im doing a lot of duplication Jan 08 05:11:13 that has nothing to do with the parsing Jan 08 05:11:13 eg Jan 08 05:11:17 for the configuration view Jan 08 05:11:23 i want to reuse all this configuration enum set Jan 08 05:11:31 so in reality i want to stuff all the stuff in the enum set Jan 08 05:11:36 that way i can just pass it around Jan 08 05:11:41 to anything that needs it Jan 08 05:12:02 so, my config listview can grab the enum, the enum will have like rowModel which will have the title etc etc Jan 08 05:12:12 or the parser will grab from the enum instance the validator Jan 08 05:12:14 etc etc Jan 08 05:20:17 this is a good time to do that monad stuff Jan 08 05:21:13 God dammit. I wanna switch to Android Studio. Jan 08 05:21:17 Just get it done. Ya know? Jan 08 05:21:23 But I need freaking unit testing. Grr. Jan 08 05:21:31 And I don't like the idea of compiling Android Studio myself. Jan 08 05:21:58 Told you its better than eclipse Jan 08 05:21:59 LOL Jan 08 05:22:17 But is it? Jan 08 05:22:27 I'm moving mainly because they're putting all their eggs in that basket. Jan 08 05:22:34 i still don't understand why TacticalJoke can't just use AS + the traditional instrument testing Jan 08 05:22:38 I'm not an extreme developer. Jan 08 05:22:42 It's slow, it requires JUnit 3. Jan 08 05:23:11 the time you would have lost using it << the you spend hemming and hawing about it :) Jan 08 05:23:30 and i wager you don't have enough tests for it to even matter Jan 08 05:23:37 Idk I still have stuff to learn with android. Jan 08 05:23:51 I'd have to rewrite all my tests to use horrible JUnit 3 stuff. Jan 08 05:23:57 I probably wouldn't be able to use AssertJ anymore. Jan 08 05:24:01 Though I could be wrong about that one. Jan 08 05:24:14 I don't even know what your talking about. You lost me lol. Jan 08 05:24:27 JUnit 3? AssertJ? Jan 08 05:24:40 Unit-testing stuff. Jan 08 05:24:45 Ohh. Jan 08 05:25:45 TacticalJoke: Are you making complicated stuff? Jan 08 05:27:02 Somewhat. Jan 08 05:27:40 No rocket science, but nothing trivial either. Jan 08 05:28:06 I see. Do you make applications that are available in the play store? Jan 08 05:28:14 I haven't released anything yet. Jan 08 05:28:17 I'm still pretty new to Android. Jan 08 05:28:21 Ohh Jan 08 05:28:36 How 'bout you? Jan 08 05:29:16 I've been doing development on and off for about 5 years. Yeah I have a few apps in the store. Some I pulled out to update. Jan 08 05:31:16 Any I can see? Or is it secret? :D Jan 08 05:31:34 Sure. Just google my name in the play store lol. With a space. Jan 08 05:31:37 I guess Jan 08 05:31:47 Nothing secret lol Jan 08 05:32:28 My more complicated apps arn't on the store right now. I have two I removed so they can be perfected. Those are better apps. Jan 08 05:32:55 TacticalJoke: The reason I haven't been constantly doing android is because of time and I started doing a little WordPress development. Jan 08 05:33:56 Have you developed for anything other than Android? Jan 08 05:34:45 Nice. A couple of teaching apps there. Jan 08 05:35:00 Yeah, I have made quite a few things in the past. Jan 08 05:35:02 Yeah. I like to provide resources to teach. Jan 08 05:35:04 Mainly Windows apps. Jan 08 05:35:35 Yeah one of the apps I removed is also a Physics app which solves projectile motion stuff. Jan 08 05:35:50 Nice. Windows apps are hard right? Jan 08 05:36:26 Using the Windows API "natively" was hard. Using something like Delphi made it nicer. Jan 08 05:36:33 C#/.NET was even nicer. Jan 08 05:36:43 Nice Jan 08 05:38:08 Probably the app I enjoyed making the most was an unofficial chat client for Yahoo! Chat back in the day. Jan 08 05:38:37 Ohh nice. Jan 08 05:38:48 Any I can see? Jan 08 05:38:49 It was fun, in a way, because people made unofficial clients and Yahoo! didn't like it. So they kept changing the protocol, but they were so incompetent that few people had trouble with that. Jan 08 05:39:15 Most of my released apps are from 10+ years ago, I think. Not sure what's still "out there". Jan 08 05:39:46 Ohh. Jan 08 05:40:30 Yeah there are a lot of pro android developers here Jan 08 05:47:05 there are? Jan 08 05:47:13 Yeah Jan 08 05:47:19 professional Jan 08 05:47:23 never woulda guessed Jan 08 05:47:31 lol Jan 08 05:47:41 Do you have any public apps? Jan 08 05:47:45 Or projects? Jan 08 05:50:10 are apk's like zip files Jan 08 05:51:32 would i be crazy for starting to use dagger 2, or is it a ways off. i'm not using any DI atm, just spotted a place i can though ;) Jan 08 05:51:44 Google Web Search runs on Dagger 2 Jan 08 05:51:49 your app can use it Jan 08 05:51:54 :O awesome Jan 08 05:52:28 screwsss: they are zip files, with metadata within, yes. Jan 08 05:54:05 asynchronous producers are in Dagger 2 now Jan 08 05:54:21 it's like RxJava except with a DI framework wiring dependencies instead of you having to do it manually Jan 08 05:54:31 except it uses gross futures Jan 08 05:54:35 barf Jan 08 05:55:43 hello Jan 08 05:56:59 That thread about reddit sync has really taken off. Jan 08 05:57:29 Some are hypothesizing that it's copyright issues with the listed screenshots. Jan 08 05:57:54 TacticalJoke then why was impersonation the suggested reason Jan 08 05:58:13 violating copyright gets you a different notice Jan 08 05:58:21 TacticalJoke: so nice to have /r/androiddev filled with a bunch of experts on the subject Jan 08 05:58:23 Ah. Jan 08 05:58:47 "Your title and/or description attempts to impersonate or leverage another popular product without permission." Jan 08 06:00:31 Hah. Just saw the /r/androiddev thread. Jan 08 06:01:29 I assumed that's what you meant Jan 08 06:01:40 (I didn't read it) Jan 08 06:02:14 There's a huge thread on /r/android: http://www.reddit.com/r/Android/comments/2robjl/around_2_years_ago_reddit_sync_was_pulled_from/ Jan 08 06:02:18 Well, big-ish. Jan 08 06:03:12 can't be bothered. can only assume since it includes non-developers that it's even worse Jan 08 06:04:48 It's pretty bad, yeah. Jan 08 06:16:36 It's always risky to base your app on other people's services and even use their name. Jan 08 06:16:49 donniezazen not if you get their permission Jan 08 06:17:06 but if google is involved, seems it doesn't matter Jan 08 06:17:46 that's exactly the quality of comment that deserves to be on the thread Jan 08 06:18:08 g00s: TOI can change as Twitter has shown us. Jan 08 06:18:22 TOS Jan 08 06:19:08 reddit sync wastes so much space in its post-listing displays. Jan 08 06:19:21 Hard to get an overview of posts on a small screen. Jan 08 06:21:08 i noticed something was awry last year when a developer's app was baneed for including the required legalese in their app description from the 3rd party Jan 08 06:21:48 in other words, they were OK with the app but he had to but "blah blah blah" in the play store listing. but it was exactly that that got him in trouble Jan 08 06:28:59 One thing that worries me a little is that I'm gonna have to tidy up some of the (potentially big) strings reddit is sending my app. For example, comment bodies can have consecutive newlines. I want to do this in a way that doesn't involve creating a whole new string buffer each time. Jan 08 06:29:07 The source is already a String, since Gson gives me that. Jan 08 06:29:17 so apparently Jan 08 06:29:18 Maybe I can make use of the fact that String.substring doesn't create a new buffer. Jan 08 06:29:27 i can use titainium to edit a system apps files Jan 08 06:31:57 Maybe the idea is crazy, but I'm hoping to avoid the constructor StringBuilder(String), since that copies the String buffer. Jan 08 06:32:39 TacticalJoke do you have to parse the reddit markdown-stuff ? Jan 08 06:32:45 Yeah, that too. Jan 08 06:33:03 Perhaps the most important example is hyperlinks. Jan 08 06:33:12 uh loaders in itself is a big subject Jan 08 06:33:40 Anyway to check if a number is between two others without rewriting the upper and lower number? Jan 08 06:33:49 I guess I could scan the string and see whether any changes are required. In most cases, perhaps, no change is required. Jan 08 06:33:49 shmoon_ its not that big. you start it, you get stuff Jan 08 06:34:10 hm Jan 08 06:38:47 Is there some clever way of basically replacing parts of a java.lang.String that doesn't involve copying its entire buffer? Jan 08 06:39:13 I'm guessing not. Jan 08 06:39:18 Strings are immutable Jan 08 06:39:35 you may not mut them. Jan 08 06:40:08 If you're wanting a modifiable string, use a StringBuilder Jan 08 06:40:09 you could create a CharSequence that mixed and matched Jan 08 06:41:18 JakeWharton: A custom CharSequence that has references to a String's buffer (from String.subString) which adds its own data in between? Jan 08 06:41:34 that's the idea... Jan 08 06:41:37 Oh, nice. Jan 08 06:41:43 no idea if it would actually work Jan 08 06:42:05 make sure you implement GetChars Jan 08 06:42:50 (actually GetChars is a CharSequence) Jan 08 06:42:55 so custom GetChars! Jan 08 06:43:15 :D Jan 08 06:44:12 It seems like it should work. It could just use some kind of List/array of parts under the hood. Jan 08 06:48:11 you probably need to track the buffer, start pos, and length in ascending start pos order Jan 08 06:49:03 Right. Jan 08 06:49:26 making the traversal efficient will be interesting Jan 08 06:50:21 i guess you need a SpannableString subclass since you're dealing with spans Jan 08 06:50:46 dealing with non-contiguous segments in a single buffer will be interesting Jan 08 06:50:57 i guess that's just multiple entries with the same buffer and different pos/length values Jan 08 06:50:59 Yeah, I was wondering about that. I'm using SpannableStringBuilder right now; not sure whether I should do both things at once. Jan 08 06:51:42 On a side note, would it be insane to change Gson in such a way that it gives me a StringBuilder instead of a String? Jan 08 06:51:58 you can do that already Jan 08 06:52:13 register a TypeAdapter for StringBuilder and just read a string into it Jan 08 06:53:09 Ah. Hmm. I guess that doesn't apply if I'm using the DOM model, does it? Jan 08 06:53:46 no Jan 08 06:56:47 can i use titanium to edit the files inside of a system app Jan 08 06:58:22 I guess using a TypeBuffer would still involve two buffer allocations, though. Jan 08 06:58:42 Let's say that a comment has 2,000 characters. The ideal is that I allocated that 2,000-char buffer only once. Jan 08 06:59:00 I mean "TypeAdapter". Jan 08 07:00:26 As far as I can tell, using a TypeAdapter and instantiating a StringBuilder based on the "nextString" return value would mean two allocations. Jan 08 07:05:33 One thing I'm not sure about, if I were to make this CharSequence based on String.substring parts, is how TextView.setText would interact with it. I guess it calls CharSequence.toString at some point. If so, I'm not sure how to deal with that without allocating a whole new String. Hmm. Jan 08 07:06:08 Ideally it'd work with me and ask for one character at a time or something. lol Jan 08 07:06:51 it does not call toString Jan 08 07:14:03 Okay, SpannableStringBuilder uses what you mentioned before: GetChars.getChars (if it's dealing with a GetChars, anyway). Jan 08 07:14:32 Hmm. If it doesn't recognise the type, it calls CharSequence.charAt. Jan 08 07:14:51 Which might actually be better in my case, because then I can avoid more allocatoins. Jan 08 07:14:53 allocations* Jan 08 07:15:16 Wait, no. There's still a buffer allocation. Jan 08 07:16:18 System.arraycopy is fast, but I'm worried about giving too much work to the garbage collector, leading to a stop-the-world event. Jan 08 07:18:00 I'm thinking about it slightly incorrectly, though. TextView.setText isn't called that much within a short period of time. The biggest problem is when I have to place an entire comment listing in memory. Jan 08 07:19:00 Okay, so maybe this CharSequence subclass can mean that I have only *one* huge comment listing in memory. Other allocations are gonna be tiny by comparison. Jan 08 07:21:17 TacticalJoke: you should test things, sometimes things don't work how you guessed Jan 08 07:21:59 Yeah, I'm slowly getting used to the allocation-tracker thing (as well as the profiler). Jan 08 07:23:29 One cool scenario would be that it turns out that very few reddit comments need editing before presentation, in which case I can simply scan each string (in a background thread, of course), and hope not to have to modify it. If I do have to modify, then it's an extra allocation for just that string (with "new StringBuilder(thatString)") and maybe a few others. Jan 08 07:23:50 Hi. Does airplane mode prevent usb transfer to install apk Jan 08 07:26:40 I wouldn't imagine so... Jan 08 07:27:18 airplane mode, usb ? O.o Jan 08 07:27:34 i deleted some folder from my system/app directory and i cant remember what it was Jan 08 07:27:38 do you think it might be important Jan 08 07:27:45 TacticalJoke: you do not want charAt Jan 08 07:27:47 screwsss ask #android-root Jan 08 07:27:55 everyones idle in there Jan 08 07:28:01 been in there for an hour Jan 08 07:28:07 TacticalJoke: yes, rendering is your problem, not TextView Jan 08 07:28:14 and presenting the spans Jan 08 07:28:18 two problems Jan 08 07:28:22 one cup Jan 08 07:31:39 Hmm. Was just thinking -- would it be sensible to use reflection and access the backing char[] of a String? Then maybe I could treat it as mutable. Jan 08 07:31:48 Though that's probably a crazy idea. Jan 08 07:36:37 stupid dang bug ... 4 hours of my life ... frackin ... rackin ... ^%$%# Jan 08 07:38:05 For span performance, I was thinking of reusing the SpannableStringBuilders (and using .replace). I'm guessing that'll be faster. Jan 08 07:38:21 I'm already reusing the span Objects (though I have no idea of whether that's significant). Jan 08 07:38:37 capella: What bug was it? Jan 08 07:39:35 A TextSelection edgecase involving one page one guy noticed that causes a scroll to top and hurts >nothing< Jan 08 07:39:50 But it's wrong and pizzed me off Jan 08 07:41:09 :p It's kinda my niche of the code, nobody else wants Jan 08 07:45:07 God, I just thought: I can't even assume that codepoints are single chars. To be 100% correct, I ought to use codePointAt. Jan 08 07:45:26 This stuff is crazy. Jan 08 08:00:44 Can I hardcode .mp4 in a video recording's path or might the file format change at some point? Jan 08 08:01:17 you can choose different formats Jan 08 08:01:57 ok I just got .mp4 from looking at the details of a video recorded with the stock camera app Jan 08 08:02:26 but I see there is a setOutputFormat method so I'll use it. thanks Jan 08 08:45:08 Hello! I make pick image intent and pick from galery picasa image. But when i resolve uri of this image using cursor loader, and trying to get absolute file path (MediaStore.Images.Media.DATA) i receive url to image. so, when i look at all projection fields, there are no info about file. Is it possible to get file name or this image is remote and i should load int over network using url? Jan 08 09:02:52 xgearx: I think you need to download it Jan 08 09:03:52 xgearx: also, be aware that you might get a content: uri and not a url so you probably want to handle both cases. Jan 08 09:05:08 appel1: i handle a lot of cases, if SAF api, old api, new api, filedescriptor, but picasa adds one more case - url :) Jan 08 09:07:14 xgearx: fun times =) Jan 08 09:07:38 xgearx: if you are using ACTION_PICK this might be relevant: http://stackoverflow.com/q/10928856/1220644 Jan 08 09:08:51 hm ... looks like i use ACTION_GET_CONTENT Jan 08 09:09:14 ok Jan 08 09:09:21 not a problem then =) Jan 08 09:34:22 hello Jan 08 09:34:40 is it possible to use UTF-8 in SMS instead of unicode? Jan 08 09:40:18 hey all. Trying to get the map from a mapfragment but.. The method getMapAsync() is undefined for the type MapFragment Jan 08 09:41:35 oh shott. Jan 08 09:42:37 I see you've capitalized the T Jan 08 09:43:39 elektrinis, that question makes no sense really. Jan 08 09:43:43 Can you explain more? Jan 08 09:46:13 Mavrik, unicode is 2 bytes for any characted, including standard ascii characters. Jan 08 09:46:27 UTF-8 is two bytes only for non-ascii Jan 08 09:46:40 Ah. Jan 08 09:46:47 No, you can't do that since SMS is defined as Unicode Jan 08 09:47:00 for example "μTorrent" is 9 bytes in UTF-8 and 16 bytes in unicode. Jan 08 09:47:18 Even if you could hack through it that SMS would not be readable on other devices and probably the SMS center would reject it Jan 08 09:47:32 that is a real pain. Jan 08 09:47:45 my native language is not EN Jan 08 09:47:52 most characters are ascii.. Jan 08 09:47:55 some not. Jan 08 09:48:22 if I insert one non-ascii character, I get 70 symbol sms Jan 08 09:48:32 base64 encode it Jan 08 09:48:44 write a longer sentence and I get one expensive MMS... Jan 08 09:48:55 :/ Jan 08 09:49:01 What can I say. Switch to WhatsApp or somethin Jan 08 09:49:13 everyone here loves WhatsApp Jan 08 09:49:15 elektrinis you're confusing unicode with utf-16 and/or ucs-2 Jan 08 09:49:16 not very popular here Jan 08 09:49:35 Chainfire, don't think so Jan 08 09:49:35 unicode is still long Jan 08 09:49:42 #U2004 Jan 08 09:49:47 for 1 char Jan 08 09:49:58 Unicode isn't anything, since it's just a standard :) Jan 08 09:50:03 so is this limited not only by android? Jan 08 09:50:08 Chainfire is right, albreight a bit pedantic :) Jan 08 09:50:10 but gsm stations as well? Jan 08 09:50:24 elektrinis, that is limited by the GSM/SMS as it works Jan 08 09:50:40 damn it Jan 08 09:50:55 this world is not a nice place to live in. ;-) Jan 08 09:51:09 mavrik I'm generally against useless pedantics (as so many tech discussions devolve to), but in this case his question made no sense because of it (utf-8 vs unicode) Jan 08 09:51:26 aaah that feeling when you open eclipse and everything is red.. then you restart and you watch the red x's slowly disappear Jan 08 09:51:34 I didn't even understand the question until he elaborated about the number of bytes ;) Jan 08 09:51:51 ok ok Jan 08 09:51:58 Chainfire, point there. :) Jan 08 09:52:24 elektrinis, yeah well, that's what you get when americans define your standards :P Jan 08 09:52:32 ..tose autistic geeks.. ;] Jan 08 09:52:42 aah, my eclipse is going full-retard trying to install this apk Jan 08 09:53:21 Mavrik, yup, usually american standards are.. sh.... like imperial thingie Jan 08 09:53:26 Unable to execute dex: GC overhead limit exceeded Jan 08 09:53:26 GC overhead limit exceeded Jan 08 09:53:28 WOT Jan 08 09:54:09 Tricknology, sounds like the 64k method limit :) Jan 08 09:54:33 elektrinis I'm assuming the real issue here is SMS cost? since virtually all devices from the past 4 years or so support SMS's spanning multiple messages Jan 08 09:55:07 well, SMS are free here. Jan 08 09:55:12 MMS are not Jan 08 09:55:35 when your text does not fit in to 3 SMS, you get one expensive MMS Jan 08 09:55:40 Mavrik. you're right Jan 08 09:55:46 who decides that? Jan 08 09:55:47 the carrier/ Jan 08 09:55:49 ? Jan 08 09:55:57 samsung Jan 08 09:56:04 thats odd Jan 08 09:56:07 that is harcoded Jan 08 09:56:16 ouch! Jan 08 09:56:18 I've notices on lolipop, the stock emoji's use u a bunch of chars Jan 08 09:56:33 yup Jan 08 09:56:34 Tricknology: no, they use a different character encoding Jan 08 09:56:49 use one unicode char and it sends all your asciis as unicode Jan 08 09:56:55 62 characters Jan 08 09:56:57 utf-8 would fix this Jan 08 09:57:33 no 160-61 Jan 08 09:57:36 140-61 Jan 08 09:58:34 isn't it so that for asian languages using a default utf-8 encoding would end up using more bytes than a default utf-16/ucs-2 encoding? Jan 08 09:58:55 (still, I agree utf-8 support would have been nice) Jan 08 10:01:53 merde Jan 08 10:02:10 eclipse crashes and does CG blah blah when I run my app :9 Jan 08 10:03:42 wtfffff Jan 08 10:04:00 you want asian chars use unicode Jan 08 10:04:12 not like one character isnt like 3 words anyway Jan 08 10:06:29 Chainfire, I think only korean/chinese are a problem since they're on 3-byte and 4-byte plain Jan 08 10:16:31 Mavrik> as I read it, all East-Asian languages Jan 08 10:16:42 that includes korean, chinese, thai, and japanese Jan 08 10:16:47 or... half the world Jan 08 10:16:53 pretty relevant, I would say! Jan 08 10:23:26 restart time.. Jan 08 10:48:44 According to https://support.google.com/googleplay/android-developer/answer/138000?hl=en starting with January 1st 2015 tax laws regarding VAT have changed in European Union from "based on the country in which a customer is resident" instead of "based on the retailer’s country" and in the VAT-inclusive countries are developers required to add VAT to the price set in Google Play Developer console? I ask this because I've just tested Jan 08 10:48:45 and Google adds VAT already even if I'm in a VAT-inclusive country, if I add VAT to the price I set for my in app item Google will add VAT again. Jan 08 10:49:30 I currently don't have VATs set for the price of items in VAT-inclusive items Jan 08 10:50:46 If I add VAT to the prices, Google will add VAT too, which means double VATing... Jan 08 10:50:55 Something is wrong on the Google side? Jan 08 10:53:11 hey having a huge problem here w eclipse Jan 08 10:53:27 trying to run my project and I am getting GC error Jan 08 10:53:42 does not happen with other projects Jan 08 10:54:23 tried a fresh install of eclipse as well Jan 08 10:54:49 rm -rf eclipse ; wget astudio Jan 08 10:56:37 Tricknology: delete your workspace directory Jan 08 10:56:48 Tricknology: (make a backup beforehand) Jan 08 10:57:19 Tricknology: the one that contains metadatas Jan 08 10:57:52 I think it is the .metadata directory Jan 08 10:57:55 if I want to handle multiple types of loaders, I though I could do this https://gist.github.com/anonymous/08fc26be19a8203b31cf Jan 08 10:58:00 Haven't used Eclipse in ages though Jan 08 10:58:03 but D turns red and its an error ,why s o? Jan 08 10:58:10 can i just delete metadata? Jan 08 10:58:12 I though i could use java generics like that Jan 08 10:58:33 Tricknology: make a backup and delete it and close eclipse and open it again and open your project in a new workspace Jan 08 10:59:02 DrSkyLizard, I tried this in a fresh version of eclipse.. new version of eclipse wiht old workspace Jan 08 10:59:27 the problem is in the workspace Jan 08 10:59:30 metadata* Jan 08 10:59:32 i see Jan 08 10:59:33 ty Jan 08 10:59:41 try it and see Jan 08 11:01:02 ah its like a new eclipse install again Jan 08 11:01:10 no adt nothing Jan 08 11:01:42 shmoon_, public Loader onCreateLoader(int id, Bundle args) Jan 08 11:03:14 ravilov: nope, still error Jan 08 11:03:25 @override turns red Jan 08 11:03:56 and my projects are gone :( Jan 08 11:04:20 you're trying to override a non-existent method, or you're not using the correct method signature Jan 08 11:05:09 it is correct i'm working with this http://developer.android.com/reference/android/app/LoaderManager.LoaderCallbacks.html Jan 08 11:05:17 i think so Jan 08 11:06:30 That did id DrSkyLizard, had to import my projects again though Jan 08 11:11:17 hello Jan 08 11:11:25 do I need a domain to publish on the play store? Jan 08 11:11:41 no Jan 08 11:18:41 shmoon_, dunno if this works but at least it doesn't report errors http://pastebin.com/S8Rz30pA Jan 08 11:19:55 of course LoadersActivity is no longer usable as a straight-up activity anymore Jan 08 11:21:16 Hello. So I have a long representing a time in milliseconds. And I would like to display that like this hh:mm:ss ... Jan 08 11:21:25 is there a standard procedure to use ? Jan 08 11:21:32 or am I going to write it ? Jan 08 11:21:35 :\ Jan 08 11:22:41 long is just a number, it cannot be converted to absolute time without a fixed reference point Jan 08 11:23:19 :) Jan 08 11:23:29 ravilov: ya that, not usable Jan 08 11:23:52 I could have saved myself a minute but just writing it. Jan 08 11:23:53 :) Jan 08 11:24:00 and asking zero questions :) Jan 08 11:24:11 But then sometimes wasting time is such fun ! Jan 08 11:24:18 shmoon_, too bad, that's the only way to use generics Jan 08 11:24:44 Unknown0BC, in other words, how to convert a long to absolute time depends on what exactly this long represents Jan 08 11:25:12 if it's System.currentTimeMillis(), then it represents number of ms since Jan 1 1970 at midnight Jan 08 11:25:36 if it's SystemClock.uptimeMillis(), then it's number of ms since power on Jan 08 11:25:39 etc etc Jan 08 11:25:45 Yeah, it represents a time like a stopwatch time. Jan 08 11:26:01 the time it took for an action to complete. Jan 08 11:26:19 so you're actually converting it to an interval, not an absolute time Jan 08 11:26:26 I want to display it like hh:mm:ss Jan 08 11:26:28 I'd say do your own processing Jan 08 11:26:43 yeah. I'm doing that. Jan 08 11:26:44 it isn't so difficult Jan 08 11:26:51 thanks for the confirmation ravilov. Jan 08 11:26:56 yeah its not ;) Jan 08 11:27:49 Now females they can be difficult. Jan 08 11:27:58 Programming is a breeze, a walk in the park !! Jan 08 11:28:19 Somewhat generic question. If I install Android emulator on a PC and install an app (e.g. Netflix) on the Android emulator, would I be able to intercept the API calls that the app is making? Jan 08 11:28:21 or would they most likely be somehow encrypted? Jan 08 11:32:45 um, how can i make squared buttons? Jan 08 11:32:52 i actually want to make a calculator Jan 08 11:33:04 i want it to be professionally designed Jan 08 11:34:42 hire a pro then Jan 08 11:40:35 when screen orientation changes the activity is completely destroyed and a new one is created from scratch? Jan 08 11:42:44 Tricknology: you can try and copy parts of the old .metadata directory to the new one, including your plugins Jan 08 11:42:53 Tricknology: and see where it borks Jan 08 11:43:13 Tricknology: if it does, but only copy what you really need Jan 08 11:43:37 Tricknology: anyway, something got corruped in the workspace metadata Jan 08 11:56:31 how can i force a layout to fit itself in the activity without scrolling? Jan 08 12:01:28 عة Jan 08 12:01:33 i mmean Jan 08 12:01:39 how to get time in linux terminal Jan 08 12:02:44 o wait Jan 08 12:02:48 wrong channel Jan 08 12:02:48 omg Jan 08 12:11:42 OverCoder: date "+%H:%M:%S %:z %Z" Jan 08 12:11:58 yeah that worked Jan 08 12:12:13 wonder why they have different classes Loader and AsyncTaskLoader Jan 08 12:12:20 could be a single class, as I don't see uch point in Loader class Jan 08 12:13:50 shmoon_: Have you read the docs ? https://developer.android.com/reference/android/content/Loader.html Jan 08 12:14:12 shmoon_: expecially the note on threading Jan 08 12:16:26 DrSkyLizard: hmm yeah Jan 08 12:16:36 Loaders should do all on main thread Jan 08 12:16:40 shmoon_: also, Loader is an abstract class, which imeplements some loading functionality but subclasses are required to do the "other" work Jan 08 12:16:52 in the manner required by them Jan 08 12:17:50 its not abstract actually Jan 08 12:18:45 shmoon_: not abstract explicitly Jan 08 12:18:51 shmoon_: but used as one Jan 08 12:19:39 as there is no abstract keyword on the protected methods https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/content/Loader.java Jan 08 12:19:54 which most of them are empty Jan 08 12:20:36 could i get anyone in here to go into their system/apps folder and tell me if they see any folder inside that folder and if so whats it called Jan 08 12:20:53 shmoon_: whoever implemented that class either didn't knew enough Java or he did it on purpose Jan 08 12:21:07 ok :D Jan 08 12:25:48 um Jan 08 12:25:54 i'm using floating activities in my app Jan 08 12:26:14 but the thing is whenever the floating activity opens, the background activity is closed Jan 08 12:26:37 but i want it to be on-top-of and not replace the current activity Jan 08 12:26:50 screwsss, there are hundreds of folders in it.. Jan 08 12:26:59 er Jan 08 12:27:00 reallyt Jan 08 12:28:35 screwsss, http://prntscr.com/5pwfza Jan 08 12:28:38 screenshot Jan 08 12:29:01 danijoo: ahh okay could i get you to do a Jan 08 12:29:03 cd apps Jan 08 12:29:05 go into system/app Jan 08 12:29:09 then do a dir Jan 08 12:29:17 oh shit you did sorry Jan 08 12:29:18 i did ... -_- Jan 08 12:29:22 :) Jan 08 12:29:23 np Jan 08 12:29:41 and ls == dir Jan 08 12:31:01 can you download es root explorer Jan 08 12:31:24 and see if you can see and folders using that method Jan 08 12:31:28 anything thats not actually an app Jan 08 12:32:38 ist the emulator tough Jan 08 12:32:48 you should be able to do the same ;) Jan 08 12:33:20 i think i mightve needlessly/accidentally deleted a folder in system/apps Jan 08 12:33:26 system/app i should say Jan 08 12:33:29 it was in ther Jan 08 12:33:33 im pretty sure i did Jan 08 12:34:00 well just fire up the emulator and compare the differences Jan 08 12:34:05 why do you need me for that? Jan 08 12:35:01 i dont have the emulator Jan 08 12:35:13 and this computer im on currently cant handle it anyway Jan 08 12:35:21 do you hav the emulator? Jan 08 12:35:24 all i need you do is look Jan 08 12:36:05 i showed you all folders :p Jan 08 12:36:15 with an explorer you wont see anything else Jan 08 12:37:48 im taking another look at ur screenshot Jan 08 12:39:27 yep all i see here are names of apps Jan 08 12:39:30 which i have too Jan 08 12:39:32 but Jan 08 12:39:37 there was also another lone folder in there Jan 08 12:39:41 which i accidentally deleted Jan 08 12:39:49 it wouldve had a really strange name Jan 08 12:39:54 * Chainfire can't find any decent docs (from start to finish) about how to take an Android Studio gradle library project and turning that into something that can be uploaded to jcenter, and doing so Jan 08 12:39:58 any hints? Jan 08 12:45:02 danijoo: where did you go Jan 08 12:45:14 i didnt go Jan 08 12:47:53 could you go into system/app Jan 08 12:47:57 and see if theres any folder in there Jan 08 12:48:03 not .apk just a folder Jan 08 12:48:11 I did. look at the screenshot... Jan 08 12:48:11 like a link to a deeper directory Jan 08 12:48:22 okay ill hav another look Jan 08 12:48:30 btw http://i.imgur.com/YSrcaiM.png this is asier for me to see Jan 08 12:49:55 see? all folders: http://prntscr.com/5pwmj2 Jan 08 12:51:17 okay Jan 08 12:51:21 what i deleted mustve been some sorta Jan 08 12:51:25 cache folder Jan 08 12:51:26 or something Jan 08 12:51:33 cause im really confused now Jan 08 12:53:06 how do i make it so ongoing notifications are removed automatically when my app is closed by being slided from the app list? Jan 08 12:53:56 hey guys Jan 08 12:54:43 um Jan 08 12:54:58 FLAG_ACTIVITY_REORDER_TO_FRONT with pending intent? Jan 08 12:55:09 danijoo: you still there Jan 08 12:55:23 yes. Jan 08 12:55:27 i mean i tried setting this flag to the intent itself but it's getting ignored nce passed to a pending intent Jan 08 12:55:59 wodim, you hvae to put some listener for that Jan 08 12:56:15 i think overriding onDestory() would do it Jan 08 12:56:28 but however android might close it if he's out of memory Jan 08 12:56:41 ya but in that case i think the notification is destroyed Jan 08 12:57:12 um Jan 08 12:57:56 just google something like "android activity swipe listner" Jan 08 12:57:59 listener( Jan 08 12:58:07 listener** Jan 08 12:58:09 >.> Jan 08 12:58:42 so did you see any folders Jan 08 12:58:45 in your system/app directory Jan 08 12:59:16 screwsss, are you kidding me? Jan 08 12:59:42 i send you 2 screenshots. in both of them you can see all folders that are located in system/app Jan 08 12:59:52 theres nothing more than that. Jan 08 12:59:52 if you were to delete any of those folders, would they be system critical? Jan 08 12:59:57 would you lose functionality? Jan 08 13:00:17 i think the phone can explode if you delete the wrong folder. Jan 08 13:00:24 ok fair Jan 08 13:00:31 how should I know? Jan 08 13:00:32 but like i deleted something by accident before Jan 08 13:00:38 you dont even know what you deleted ;) Jan 08 13:00:44 how should you know Jan 08 13:00:53 i thought you were an android man Jan 08 13:01:01 no i dont know what i deleted (long story) Jan 08 13:01:07 yes. so... Jan 08 13:01:19 i deleted a file on my home computer. will this do any problem? Jan 08 13:01:28 you cant say without knowing what file.. Jan 08 13:02:01 also this is android-development and not about messing arround with the system. You should ask that in #android-root Jan 08 13:02:11 this is sort of development Jan 08 13:02:22 android-root has been dead since 2005 im not going to get any advice in there Jan 08 13:02:38 here are the guys that write android apps Jan 08 13:02:50 not the guys that mess with their system folders Jan 08 13:06:09 android did not exist in 2005 :) Jan 08 13:06:41 they rooted before it was cool i think :p Jan 08 13:06:43 xD Jan 08 13:06:47 :) Jan 08 13:07:00 hah hrm Jan 08 13:07:10 so basically. im screwed Jan 08 13:07:15 correct Jan 08 13:07:18 if you tell me to go to android-root you may aswell say you are screwed Jan 08 13:07:19 basically, this is a developer chan Jan 08 13:07:22 and are not going to get any help Jan 08 13:07:53 maybe "stop deleting random folders in your system" is a good advice for your future :) Jan 08 13:07:57 lol Jan 08 13:08:39 if your phone still works maybe it wasnt important :) Jan 08 13:09:03 Does this thing only work with content providers cursors by default (without requery()) http://developer.android.com/reference/android/database/Cursor.html#registerContentObserver(android.database.ContentObserver) ? Jan 08 13:09:09 Chainfire: Check out https://github.com/chrisbanes/gradle-mvn-push Jan 08 13:09:09 from a glance over the content of system/app, all folders contain apks of installed apps Jan 08 13:09:21 so it might just work like some kind of apk cache and you are fine Jan 08 13:09:25 but maybe not. i dont know Jan 08 13:10:21 my phone is still working Jan 08 13:10:44 i feel like an idiot Jan 08 13:10:45 but also Jan 08 13:10:48 i feel stupid Jan 08 13:10:50 but on top of that Jan 08 13:11:00 i have all my system .apks in here obviously Jan 08 13:11:04 but not a single folder Jan 08 13:11:09 u just showed me a screenshot of tons of folders Jan 08 13:11:10 so Jan 08 13:11:12 that makes me wonder Jan 08 13:11:14 how important it was Jan 08 13:11:15 yah? Jan 08 13:11:19 if you're worried maybe spend time backing up data you deem critical, then reflash your ROM Jan 08 13:11:32 couldnt be bothered Jan 08 13:11:35 ive made so many settings and things Jan 08 13:11:42 ill wait until it forces me to do that Jan 08 13:14:24 napalm thanks, I'll give that a read Jan 08 13:14:50 Chainfire: your welcome, let me know if it works. I'll probably be doing that myself soon. Jan 08 13:16:10 yeh Jan 08 13:16:13 it probably wasnt that important Jan 08 13:16:21 can we move onto problem #2 Jan 08 13:16:55 wana know if i can edit files inside of a apk Jan 08 13:16:59 without unzipping it and all of that business Jan 08 13:17:50 screwsss, did you read the topic of that channel? Jan 08 13:18:47 im trying to develop an app Jan 08 13:18:55 i have to do this first tho Jan 08 13:20:18 Hi! I'm trying to create a realistic 3D rendering of my app's screenshot behind smartphone glass: http://i.imgur.com/h00pyER.jpg Jan 08 13:20:21 However, would anybody be able to take a photo of their smartphone with my screenshot on it for comparison? http://i.imgur.com/40EEs9Q.png -- I need to see how it looks like in real life so I can adjust my surface, my lighting, atmospheric settings etc. accordingly. I only have an old GSM phone so :/ Jan 08 13:20:32 you dont want to help me Jan 08 13:20:41 develop my app Jan 08 13:22:22 Hi! Jan 08 13:22:42 screwsss, changing other apks is no development, its modding Jan 08 13:23:23 Are there any good tutorials of android gui animation etc? I find the official docs too arcane.. Jan 08 13:24:09 it will eventually become development Jan 08 13:25:39 ashemark, I recently found a good one to start. let me see if I have a bookmark somewhere.. Jan 08 13:26:26 okay Jan 08 13:26:39 danijoo: sure Jan 08 13:26:43 ashemark, http://www.androiddesignpatterns.com/2014/12/activity-fragment-transitions-in-android-lollipop-part1.html Jan 08 13:26:50 its also a good starting point for pre lollipop Jan 08 13:27:01 oh thanks a ton Jan 08 13:30:37 too bad part 3 & 4 are missing. Jan 08 13:34:02 man Jan 08 13:34:07 im never gonna get this sorted Jan 08 13:36:06 no worries Jan 08 13:37:05 screwsss, short answer to your question: not possible Jan 08 13:38:53 long answer: apks are zip files. you cant modify something in a zip without unzipping it Jan 08 13:40:00 Napalm I'm giving up on this for now Jan 08 13:40:06 I've wasted 4 hours or so already on this Jan 08 13:40:13 :( Jan 08 13:40:25 overly complicated bs Jan 08 13:40:39 Chainfire: i'll let you know if I get it working at some point Jan 08 13:40:44 great Jan 08 13:47:51 Wow. I really need to use Youtube Android Player API to play youtube vids in my app? Jan 08 13:54:05 how to handle insert operations from a cursorloader? Jan 08 13:55:53 Hi guys! Jan 08 13:58:36 I need guidance on how to FIX RIL errors Jan 08 14:03:57 [00:38] long answer: apks are zip files. you cant modify something in a zip without unzipping it Jan 08 14:04:05 would it be too crazy to suggest that i do that and re zip it? Jan 08 14:04:09 and then re instal it somehow Jan 08 14:04:26 no. thats actually what everybody does who wants to do that. Jan 08 14:04:39 for themeing apps Jan 08 14:05:33 so thats not possible Jan 08 14:11:12 i just said it is.. ^^' Jan 08 14:15:18 basically Jan 08 14:15:25 i wanna disable the shutter noise in my phone Jan 08 14:15:29 the default camera app Jan 08 14:15:42 disconnect speaker Jan 08 14:16:11 hysterical Jan 08 14:18:38 go to app settings and disable sounds lol Jan 08 14:19:48 doesnt let me Jan 08 14:19:59 there is a setting to disable shutter Jan 08 14:20:00 but Jan 08 14:20:14 when i click it Jan 08 14:20:17 nothing happens Jan 08 14:20:22 its as if they changed the law or somthing Jan 08 14:21:55 i modified some of the audio files in system/media Jan 08 14:22:03 that actually disabled shutter sound Jan 08 14:22:07 but focus sound remains Jan 08 14:22:14 i believe its getting it from inside the apk Jan 08 14:22:16 i know where it is inside the apk Jan 08 14:22:21 i just need to know how to modify it! Jan 08 14:22:31 so are we in agreeance yes or no Jan 08 14:22:50 if youre not sure or or if theres no way i would rather you just tell me now so i can go to bed Jan 08 14:22:58 screwsss, why do you want to get the answer twice every time? Jan 08 14:23:17 because i thought i read an article here where someone says how it can be done wait let me find it Jan 08 14:23:26 (i think that you might be wrong btw) Jan 08 14:23:55 I said it is possible by changing the files and repackage the apk Jan 08 14:24:28 http://forum.xda-developers.com/showpost.php?p=48202838&postcount=16 Jan 08 14:24:35 i thought u said no Jan 08 14:24:45 [01:04] no. thats actually what everybody does who wants to do that.for themeing apps Jan 08 14:25:14 did you mean yes?? Jan 08 14:25:15 screwsss> would it be too crazy to suggest that ..... Jan 08 14:25:21 oh Jan 08 14:25:26 "no, it would not be crazy" Jan 08 14:25:33 okay Jan 08 14:25:35 so Jan 08 14:25:53 when i zip it back up should it be fast zip or slow zip Jan 08 14:26:03 and i just put it back in system/app ? Jan 08 14:26:08 simple Jan 08 14:27:11 no. you install it Jan 08 14:28:26 really Jan 08 14:28:33 will it instal automatically Jan 08 14:28:35 back to system Jan 08 14:29:05 **YOU** install it Jan 08 14:29:43 so Jan 08 14:29:49 i just put the apk back into system/app Jan 08 14:29:58 and thats that? Jan 08 14:31:28 ok. please find someone else to help you Jan 08 14:31:42 what the Jan 08 14:32:18 your questions somehow make me angry sorry Jan 08 14:32:29 screwsss: what's this got to do with android app development ? Jan 08 14:32:31 i say "install" and you are talking about copying files to some weird places Jan 08 14:32:52 well i dont know how to "install" a apk manually Jan 08 14:32:58 and i dont even know what you are trying to say Jan 08 14:33:36 you open a file browser like ES and click it Jan 08 14:33:43 and then you click install Jan 08 14:34:13 or you can use adb Jan 08 14:34:52 im not a fan of adb Jan 08 14:34:53 shmooz, but not if the skill level is on "how do I intall an apk" Jan 08 14:35:10 yeh but Jan 08 14:35:20 does it now no longer become a system app Jan 08 14:35:39 dont know Jan 08 14:35:40 google it Jan 08 14:35:55 everything you asked in the last 2 hours can be googled in 2 minutes Jan 08 14:36:16 i googled heaps Jan 08 14:36:22 couldnt find any answers Jan 08 14:36:30 plus its easier for me to ask Jan 08 14:36:33 than read through 2 hours of pages Jan 08 14:36:48 if this is the reason, ill ignore your questions npw. Jan 08 14:36:49 yes screwsss your questions are not approriate here, this channel isn't for spoon feeding noobs how to USE android Jan 08 14:36:51 now* Jan 08 14:37:05 i know how to use android lol. Jan 08 14:37:09 i think you guys arent getting the point Jan 08 14:38:09 i want to disable the sound effects in my camera Jan 08 14:38:10 and Jan 08 14:38:17 i think we all got that you are too lazy to google and want us to find answers for you Jan 08 14:38:19 most of the threads i read on this subject for 2 hours Jan 08 14:38:25 ended with ppl giving up Jan 08 14:38:48 i deal with ppl better than i do a search engine Jan 08 14:38:53 and why are you asking android application programmers about this? Jan 08 14:39:05 i figured you guys *might* know Jan 08 14:39:09 how to do what im trying to do Jan 08 14:39:33 shmooz, you should just give up on that :/ Jan 08 14:39:40 a lot of ppl here have been down 'that road before' Jan 08 14:39:51 android-root is dead Jan 08 14:39:58 i may as well type my query into notepad Jan 08 14:40:04 cuz i will get a better response Jan 08 14:40:11 screwsss: which phone do you have ? Jan 08 14:40:23 its not dead. they just stopped answering if the question can be googled :) Jan 08 14:40:36 galaxy note 3 international Jan 08 14:40:51 dammit guys - screwsss paid for a #android(-dev/-root) support contract for immediate assistant with issues, and he's not getting value for money! Jan 08 14:41:04 ^^' Jan 08 14:41:05 wait Jan 08 14:41:09 i didnt pay for nothing Jan 08 14:41:28 Um, does anyone here use AIDE? I'm having a hard time getting R.java to generate Jan 08 14:41:28 wait. you didnt pay screwsss ? Jan 08 14:41:37 How could you enter this channel then? Jan 08 14:41:46 is someone meant to pay me?? Jan 08 14:42:02 screwsss: here you go ... http://www.youtube.com/watch?v=Q_zZjdaowsQ Jan 08 14:42:07 hi Jan 08 14:42:22 shmooz, wow.. there are really videos for something like that? Jan 08 14:42:23 rick rolle again Jan 08 14:42:40 shmooz: 135 dislikes for 100 likes Jan 08 14:42:44 red flag number one Jan 08 14:42:50 but ive already watched this video Jan 08 14:42:52 not even this guy knew Jan 08 14:43:01 actually he did but only works on some models of the phone not the model i have Jan 08 14:43:05 but thats okay cuz im root Jan 08 14:43:29 screwsss, could you please explain how you entered the channel without paying the fee? we need to fix our system Jan 08 14:43:53 double clicked the link in #android Jan 08 14:43:56 in the topic Jan 08 14:43:57 I'd like to know if it's possible to do a soft keyboard on android with custom emoticon (image). I found a lot of resources but always with big problems to do it. And a lot of them no resolve Jan 08 14:44:04 maybe put something in the topic Jan 08 14:44:13 like tollcharge Jan 08 14:44:28 omg did he slip in without paying the fee ?? Jan 08 14:44:35 yeah.. Jan 08 14:44:47 kick him Jan 08 14:45:24 btw. there should really be one.. Jan 08 14:45:35 1$ per question that does not belong in here Jan 08 14:45:45 a penalty jar Jan 08 14:45:58 we all would be rich Jan 08 14:46:24 I don't mind off topic if it doesn't get in the way of on topic, better than nothing when you're bored Jan 08 14:46:33 whats your bank account number Jan 08 14:46:44 is this my question that does not belong here ? Jan 08 14:47:06 sylflo, not releated to you :) Jan 08 14:47:09 yours is fine :) Jan 08 14:47:16 pft Jan 08 14:47:30 sylflo: it does belong here, but there aren't many people around with experience of writing keyboards Jan 08 14:47:35 12417158131 Jan 08 14:47:49 ok thanks for the precision Leeds Jan 08 14:48:55 sylflo: sorry we couldnt help you Jan 08 14:49:01 sylflo: maybe try google. www.google.com Jan 08 14:49:18 yay im an official senior level helper Jan 08 14:49:32 we ?? since when are you we ? Jan 08 14:49:39 im you Jan 08 14:49:46 you see. Jan 08 14:50:18 Speaking of questions, does anyone have experience getting AIDE to generate the R.java? Since I made the last few changes to my project, it refuses to recognize 2 new ids and my MainActivity.java is showing unknown member R errors. It's driving me nuts Jan 08 14:50:47 you gotta eat 40 ovens of bread, hunt 10 bears, and move 3 mountains to be us Jan 08 14:51:50 screwsss I try google and some forums and look into stackoverflow and there a lot of question about it. And the most of them got no response. Jan 08 14:52:55 ArmitaageDS: in general, advice is "don't use AIDE" Jan 08 14:53:20 sylflo, actually few people ever build good working custom keyboards Jan 08 14:53:30 so there arent a lot with experience in it Jan 08 14:53:50 and its hard to find advice. If you want to do that, prepare to have to fiddle arround alot on your own Jan 08 14:54:38 Let's say that I have a reason to use AIDE. Once that's out of the way, any suggestions on how to force it to rebuild the file I need? Jan 08 14:54:40 that said, I'm not sure why a custom emoji should be hard Jan 08 14:55:08 yeah I think I know that now. A friend of mine works on iOS and it's really simple to do a keyboard. Much more thant Android. Jan 08 14:57:40 *than Jan 08 14:58:01 Hi Jan 08 15:00:29 :-/ Jan 08 15:01:04 ArmitaageDS: try renaming the id's , it might be conflicting Jan 08 15:01:40 anybody dah problems with downloadManager.cancel in lollipop? Jan 08 15:03:33 shmooz, just tried that and it still refuses Jan 08 15:03:36 I've been getting RIL errors on my new lollipop build Jan 08 15:03:53 ArmitaageDS: time to move to AS or Eclipse Jan 08 15:04:26 noone talks about AIDE here Jan 08 15:04:50 Don't have a computer with privileges to install one of those, so... Jan 08 15:05:24 ArmitaageDS: then you have better chance rewording your search on google Jan 08 15:06:22 Well, thanks for trying to help Jan 08 15:15:53 goddamnit Jan 08 15:15:56 ... Jan 08 15:16:38 2 android devices, multiple cables, tried all kinds of stuff and on neither will connect properly Jan 08 15:16:55 -on Jan 08 15:17:15 Fraz: what desktop OS ? Jan 08 15:17:27 win 8.1 Jan 08 15:17:27 If linux try lsusb Jan 08 15:17:38 then device manager to state an unknown device Jan 08 15:18:03 Hi, im playing with a philips 65PUS9809 which has android support (4.4.2 i think) but the apps i installed from playstore is clearly only for phones. does anyone have experience with philips and play store apps? or just apps for TVs? Jan 08 15:18:35 the asus isnt an unknown device, its installed. i never get the authorization dialog on the device though. With the lenovo im having another issue Jan 08 15:18:58 as in it wont find the drivers, even using lenovo smart assistantr Jan 08 15:19:05 Hmm... Jan 08 15:19:33 Fraz, still having the same problem? Jan 08 15:19:38 Fraz: look for the specific model of the newest USB drivers for those devices Jan 08 15:19:58 Even with setting statusBarColor to transparent, there still exists a semi-transparent black overlay... is there a way to completely make it 100% transparent? Jan 08 15:20:12 Maybe try installing Google Generic USB Driver Jan 08 15:20:16 shmooz lenovo doesnt seem to have any for this device, just a windows app for installing drivers which fails Jan 08 15:20:33 did you try a live linux distro on USB to see if it works on that? give that a shot and atleast if it doesnt work u can rule out a problem with windows, or confirm a problem with windows Jan 08 15:20:33 Fraz, Jan 08 15:20:49 , yes Jan 08 15:20:53 didnt work also Jan 08 15:20:57 oh ok Jan 08 15:20:58 no authorization dialog Jan 08 15:21:02 try lsusb on linux Jan 08 15:21:04 thats for the asus Jan 08 15:21:15 Fraz: I'm talking about your HTC or Samsung UBS drivers for windows Jan 08 15:21:15 so i would assume its something with the device itself then, not a driver issue Jan 08 15:21:24 or whatever device name is Jan 08 15:21:37 i dont think its a driver issue Jan 08 15:21:54 if it didnt work in linux either then somethin else is going on Jan 08 15:22:02 bynarie, im not sure because im also having trouble getting another (lenovo) device to work now. in this case the drivers just dont seem to want to install using lenovo smart assistant Jan 08 15:22:08 * Fraz tries the google usb drivers Jan 08 15:22:13 hm Jan 08 15:22:45 the google usb drivers are for nexus devices Jan 08 15:22:55 Not really. Jan 08 15:22:57 but worth a shot Jan 08 15:23:06 The vendor id, might match. Jan 08 15:23:09 MasterAwesome, no? Jan 08 15:23:50 For example, motorola's vendor id is the same as google's. So installing Google's USB driver would do the same as downloading a motorola driver Jan 08 15:24:20 oh really i didnt know that Jan 08 15:24:39 thx for the info Jan 08 15:24:42 :P Jan 08 15:26:02 Not really sure about it now, since Lenovo owns Motorola. Jan 08 15:26:03 =] Jan 08 15:26:30 The vendor id basically resides in the init.rc scripts so, you can change it :/ Jan 08 15:27:43 i force installed them Jan 08 15:27:50 I think google made a mistake selling Motorola to lenovo after they bought it Jan 08 15:27:55 still no authorization dialog Jan 08 15:28:03 brb gonna reboot Jan 08 15:30:06 Shouldnt have sold motorola Jan 08 15:30:18 they just started making half decent mobiles Jan 08 15:30:36 I saw their stock increase, its pretty high slope Jan 08 15:31:05 lol Jan 08 15:31:14 whats the stock value right now? Jan 08 15:31:50 65.350.92 (1.43%) Jan 08 15:32:16 usd? Jan 08 15:32:52 yeah Jan 08 15:33:29 They finally started making profits, right when Google sold the company :/ Jan 08 15:33:46 ha Jan 08 15:36:46 GODDAMN! Jan 08 15:36:56 * Fraz shouts at random stuff Jan 08 15:37:30 ive started talking to myself now Jan 08 15:38:44 Great Jan 08 15:38:50 signs of becoming a good dev Jan 08 15:39:09 Throw your mouse around and then you've perfected it Jan 08 15:40:21 nah just bought this razer deathadder! Jan 08 15:41:04 i could throw the lenovo around Jan 08 15:41:05 its not mine Jan 08 15:41:32 is there anything with windows 8 that could be causing this problem? Jan 08 15:42:31 Maybe, live boot a linux Jan 08 15:42:37 he already tried Jan 08 15:42:44 same outcome Jan 08 15:43:17 Ah.. Go to settings->storage->mount settings there Jan 08 15:43:21 already tried that masterawesome, will try lusb shortly though Jan 08 15:43:27 lsusb* Jan 08 15:43:41 just gonna try my desire hd see if i can debug at all on it Jan 08 15:43:46 thats running 2.2 Jan 08 15:44:43 hmm shows as offline Jan 08 15:45:06 2.2? Jan 08 15:45:08 2.2 what? Jan 08 15:45:26 Is it still not possible to read EXIF-Data from a stream with the default Android API? Jan 08 15:46:09 android 2.2 Jan 08 15:46:24 Nope. Jan 08 15:46:30 so i dont need to authorize it Jan 08 15:46:51 Whaaat? Jan 08 15:46:59 what year is this 1990's Jan 08 15:47:22 Why do you have such an outdated OS? Jan 08 15:47:43 <_Auron_> 2.2 O_o Jan 08 15:47:52 oh its 2.3.7:P Jan 08 15:48:01 its running cyanogenmod 7 Jan 08 15:48:23 wow! thats new! Jan 08 15:48:24 can i write unit tests without using robolectric or anything. i just want to write basic tests for two basic methods right now. Jan 08 15:48:30 theres no developer settings:S Jan 08 15:48:34 Oh god even a Wrist Watch > 2.3.7 Jan 08 15:48:39 lol Jan 08 15:48:47 well i havnt used this in years Jan 08 15:48:50 A piece of Rock > 2.3.7 Jan 08 15:48:54 dug it out the other day Jan 08 15:48:58 <_Auron_> I think my droid X has 2.3.4 or something Jan 08 15:49:14 I dug out my rock too :P Jan 08 15:49:22 <_Auron_> but the screen has bursts of dead pixels and is sitting in a drawer at home somewhere Jan 08 15:50:00 lol this desire hd is like new Jan 08 15:50:04 Just like my computer right now Jan 08 15:56:30 Napalm I may have something somewhat working based on generating the necessary files myself Jan 08 15:56:33 its messy Jan 08 15:56:54 you just couldnt stop, could you :D Jan 08 15:57:05 never Jan 08 15:57:22 so many hours wasted though Jan 08 15:57:32 as always with these things :( Jan 08 15:57:40 but such is life with Android development. never no good examples unless you already know what you're doing and don't need the examples ;) Jan 08 15:57:54 ;) as always Jan 08 15:58:02 it wouldnt be fun otherwise :D Jan 08 15:58:11 wouldn't it? Jan 08 15:58:27 s/fun/interesting Jan 08 15:58:35 s/interesting/stressful Jan 08 15:58:41 :) Jan 08 15:59:07 <_Auron_> I generally do okay with android development, but layouts are maddening to me Jan 08 15:59:14 apparently now the jcenter guys still need to manually approve my package, then I can try downloading and testing it myself Jan 08 15:59:31 I'll put the actual script in libsuperuser's github so others can rip it off (assuming they can get it to work, hehe) Jan 08 15:59:32 Chainfire: see PM Jan 08 16:00:57 is there a way to get network usage per app? Jan 08 16:01:14 hey guys.. when i rotate the device my fragment closes and the app goes back to the main page/fragment… how can i prevent that? This is the actual fragment that i dont want to close on rotate: http://paste.ofcode.org/unpwjkqK2akqgQqChNMrNV Jan 08 16:02:23 rigth its confirmed Jan 08 16:02:26 nothing works Jan 08 16:02:37 installed htc sync which is supposed to handle the drivers Jan 08 16:02:46 but it doesnt detect the phone Jan 08 16:09:03 hey all. looking at the watchface apis. cant find any documentation for setCardProgressMode Jan 08 16:09:08 what is card progress mode? Jan 08 16:15:14 any experts with google-play-game-services here today? Jan 08 16:15:45 Good morning Jan 08 16:15:56 good morning :) Jan 08 16:16:17 hellllo guys! Jan 08 16:16:20 Lol just woke up so was about to type "Good morning again" Jan 08 16:16:26 *agaim Jan 08 16:16:28 *again Jan 08 16:16:35 I've a problem. I've a youtube player inside a linear layout with vertical scroll. Jan 08 16:16:46 what should be the size of that playeR? Jan 08 16:17:21 Mattx: Maybe fill the width and warp the height? Jan 08 16:17:28 Well, I figured out what my issue is. Gonna have to get on appfour's case about it, because it's really bad design. The dumb thing wanted me to build my entire layout through the layout designer and made it a pain to make layout_above and layout_below select the views I wanted. But that's something I should take up with appfour. Jan 08 16:17:33 right now it's not playing any video, it seems it is constantly stopped because -I assume- some part of it is covered Jan 08 16:17:55 Mattx: You can enable a feature in the developer options to show you where the layouts are Jan 08 16:17:58 ITs really helpful Jan 08 16:18:02 AndreYonadam, I tried that but it's too big. I have a ad banner at the bottom and a header at the top (with the name of the section etc) Jan 08 16:18:17 oh, interesting. I didn't know that. let me chec Jan 08 16:18:19 check * Jan 08 16:18:30 Mattx: Sure. Put the header outside of the scroll. Jan 08 16:18:55 ok im booted into linux now. What do i do lol Jan 08 16:21:16 neither the lenovo or the asus are doing anything when i connect them. how do i use this lsusb? Jan 08 16:21:51 Fraz: what are you trying to do? Jan 08 16:22:22 trying to get my tablets to show the authorization dialog when connected Jan 08 16:22:55 cant get them working under win 8.1 so trying under linux to confirm whether they work or not Jan 08 16:22:59 I'm trying to load a webpage via a webview, but some of the text is not displayed or different from the version i load in my phones browser. any idea what could cause this? Jan 08 16:24:16 Fraz, try going into your developer settings and revoke all USB authorizations, that usually fixes it for me Jan 08 16:24:50 not in this case Jan 08 16:25:01 ive gone through every possible solution for windows Jan 08 16:25:04 Fraz: Either run `android update adb` from your android SDK or add the VENDOR id from lsub to your ~/.android/adb_usb.ini file and restart adb Jan 08 16:25:22 Fraz: Did you enable developer options on the devices? Jan 08 16:25:27 yup Jan 08 16:25:38 well on windows its straight forward Jan 08 16:25:57 ive explained this about 10 times over in here hehe. ive done all the obvious things Jan 08 16:26:11 first enable developer options on the device and tick the debug usb option Jan 08 16:26:21 then disconnect and reconnect the device Jan 08 16:26:27 in different orders, with different drivers, different cables, different devices Jan 08 16:26:47 yes napalm, thats done Jan 08 16:26:54 then go into device manager find the composite usb device for it and right click update drivers select manually and choose the usb_driver folder from the sdk Jan 08 16:27:03 done Jan 08 16:27:38 the devices are detected in windows, at least the asus and lenovo are. i just never get the authorization popup on either device Jan 08 16:27:59 Syzygy, does the page you're trying to load use javascript? And is javascript enabled in your WebView? Jan 08 16:28:15 and i also dont get them in linux Jan 08 16:28:16 so im lost Jan 08 16:28:17 even once you do; "adb kill-server" and then "adb devices" Jan 08 16:28:25 yup Jan 08 16:28:27 I believe it uses javascript, it works neither with nor without javascript Jan 08 16:28:48 mWebView.getSettings().setJavaScriptEnabled(true); is the specific line I used Jan 08 16:28:50 perhaps its your usb hub/root port itself Jan 08 16:29:11 Fraz: try checking your BIOS settings and make sure it's set to hand off usb correctly to the OS Jan 08 16:29:14 ive tried all ports, theres 6 on the back Jan 08 16:29:20 and ive tried the 2 front ports 2 Jan 08 16:29:29 3 different cables Jan 08 16:29:39 2 different devices Jan 08 16:29:54 google usb and universal usb drivers Jan 08 16:29:57 Syzygy, it's also possible that it detects user agent, either with javascript or server side Jan 08 16:30:01 Fraz: ofc you tried the 'clear auth' option in developer options to reset them Jan 08 16:30:06 yup Jan 08 16:30:18 Fraz: and they dont appear in lsub for linux? Jan 08 16:30:25 ArmitaageDS, so you're saying it's the websites fault? Jan 08 16:30:32 i dont know yet, im not sure how to check:P Jan 08 16:30:36 thats what i need help with now Jan 08 16:30:44 open a terminal and run lsusb Jan 08 16:30:48 i havnt used linux for about 5 years and back then i didnt use it much Jan 08 16:31:25 It could be, syzygy. I would try faking the user agent via the WebView, see if it works then Jan 08 16:31:45 Fraz: this looks like a complete guide for you: https://androidonlinux.wordpress.com/2013/05/12/setting-up-adb-on-linux/ Jan 08 16:31:49 ok, asustek computer Inc shows Jan 08 16:32:32 ArmitaageDS, got any resources for me that show me how to do that? Jan 08 16:32:33 do i even need adb? i just wanted to see if the authorization dialog would pop up Jan 08 16:32:42 since i wont be using linux for dev Jan 08 16:32:51 Fraz: it will only pop up when you run adb Jan 08 16:32:57 oh ok Jan 08 16:33:32 Give me a minute to look up a few, syzygy Jan 08 16:34:20 Fraz: http://developer.android.com/sdk/index.html scroll down on this page and you'll find "SDK tools only" Jan 08 16:34:39 Fraz: grab the linux one and your ready to go, extract it and browse to the folder in a terminal Jan 08 16:34:47 http://stackoverflow.com/questions/5586197/android-user-agent Jan 08 16:34:53 Fraz: do; ./adb devices Jan 08 16:35:12 Fraz: the command starts with ./ for current directory Jan 08 16:35:12 That's how you can set the WebView user agent Jan 08 16:36:03 http://whatsmyuseragent.com Jan 08 16:36:07 now I just need to figure out what I need to set it to. alright, I think I'll manage from here. thanks a lot Jan 08 16:36:14 thanks :> Jan 08 16:36:16 ok, change directory is cd in linux, right? Jan 08 16:36:34 Fraz: yup, same as windows and osx Jan 08 16:36:59 Welcome, syzygy. Hopefully this will be enough to get the site to display correctly Jan 08 16:37:18 ArmitaageDS, so should I just claim that every phone accessing the website has my user agent? or try to build a more legit one? Jan 08 16:39:17 You can try to build a more legit one, but setting every phone to use your user agent isn't entirely wrong. Many apps have the same user agent, regardless of what os they're actually installed on, for one reason or another Jan 08 16:39:54 Napalm this is a live boot btw, is it ok to install stuff? Jan 08 16:39:59 its saying adb isnt installed Jan 08 16:40:30 Fraz: yes its ok to install its all running from RAM, but you dont need to and you cant install ADB anyway Jan 08 16:40:39 Fraz: your in the wrong directoy Jan 08 16:40:43 and when i try to install it says E: Unable to locate package android-tools-adb Jan 08 16:40:56 Fraz: dont try and install anything Jan 08 16:41:09 Fraz: did you download the sdk file as I said earlier? Jan 08 16:41:10 im in android-sdk-linux/tools Jan 08 16:41:14 yeh Jan 08 16:41:24 and then extracted it and cd' to the directory Jan 08 16:41:44 yup Jan 08 16:42:39 right, now cd into the platform-tools directory Jan 08 16:42:57 then run: ls -l Jan 08 16:43:10 now you'll see the list of files for that directory.. you should see adb listed Jan 08 16:43:18 you can then type: ./adb devices Jan 08 16:43:22 there is no platform-tools Jan 08 16:43:24 just platforms Jan 08 16:43:26 and tools Jan 08 16:43:33 im in the tools directory atm Jan 08 16:43:39 Fraz: run the sdk manager Jan 08 16:43:46 the platforms directory is empty Jan 08 16:43:54 go into tools Jan 08 16:43:55 and type android Jan 08 16:44:14 command not found Jan 08 16:44:17 ArmitaageDS, I tried both the useragent from that site, as well as System.getProperty("http.agent"), nothing seems to work Jan 08 16:44:19 omg Jan 08 16:44:25 Fraz: ./android Jan 08 16:44:33 lol Jan 08 16:44:43 bleh Jan 08 16:44:45 java not found Jan 08 16:44:46 Fraz: we are running programs in the sdk, remember Jan 08 16:44:56 and again you didnt follow the instructions Jan 08 16:45:11 Fraz: type this: sudo apt-get install openjdk Jan 08 16:45:36 already tried that, said earlier Jan 08 16:45:49 E: Unable to locate package openjdk Jan 08 16:46:07 Fraz: what distro is this live cd? Jan 08 16:46:09 Syzygy, what website are you trying to display? And does it appear the same in the system browser and chrome browser? Jan 08 16:46:12 ubuntu Jan 08 16:46:22 Fraz: do you have internet? Jan 08 16:46:44 erm yeh, im chatting to you from the installation Jan 08 16:46:49 Fraz: if so, do: sudo apt-get update Jan 08 16:47:13 ok that did stuff Jan 08 16:47:47 now try the previous command to install openjdk (press the up key a few times to find it) Jan 08 16:48:07 still the same Jan 08 16:48:14 unable to locate package openjdk Jan 08 16:48:47 Fraz: do: sudo apt-cache search openjdk Jan 08 16:49:03 ArmitaageDS, a support page of the company I work at, and with lolipop I think chrome is the system browser? Jan 08 16:49:21 Fraz: even better do: sudo apt-get install oracle-java7-installer Jan 08 16:49:26 that should be easier Jan 08 16:49:48 Fraz: or do: sudo apt-get install openjdk-7-jdk Jan 08 16:50:10 lol Jan 08 16:50:12 E: Unable to locate package oracle-java7-installer Jan 08 16:50:20 and the other? Jan 08 16:50:56 ok thats working Jan 08 16:51:36 done Jan 08 16:51:38 after do: java -version Jan 08 16:51:46 what do you get? Jan 08 16:52:14 1.7.0_65 Jan 08 16:52:23 good Jan 08 16:52:32 now type: ./android update adb Jan 08 16:53:15 Fraz: working? doing anything? Jan 08 16:53:25 yeh says i need to restart the server now Jan 08 16:54:00 and the commands arnt working Jan 08 16:54:04 they are Jan 08 16:54:09 your in the wrong directory Jan 08 16:54:10 im still in the tools directory Jan 08 16:54:16 go into platform-tools Jan 08 16:54:22 cd ../platform-tools Jan 08 16:54:29 there isnt a platform-tools directory Jan 08 16:54:39 just add-ons, platforms and tools Jan 08 16:54:43 ok go back into tools and type: ./android Jan 08 16:54:47 platforms is empty Jan 08 16:54:48 if u want to install oracle java you need to add the ppa: webup8team/java Jan 08 16:54:52 it should launch the sdk manager Jan 08 16:54:59 yeh it has Jan 08 16:55:29 untick all of them and make sure only the latest platform tools and build tools are selected Jan 08 16:55:29 install platforms tools now i guess Jan 08 16:55:38 install em Jan 08 16:55:53 now, follow this and pay attention as i said before https://androidonlinux.wordpress.com/2013/05/12/setting-up-adb-on-linux/ Jan 08 16:55:56 brb Jan 08 16:56:38 i was paying attention:) Jan 08 16:56:53 it assumed you already have jdk installed and doesnt tell you what to do if it isnt Jan 08 16:57:01 yes it does Jan 08 16:58:09 brb Jan 08 16:58:18 "Chances are you already have OpenJDK installed, if you do, then run this command in the Terminal." Jan 08 16:58:28 which didnt work Jan 08 16:58:50 then it gives some instructions for "Linux Mint Users!" Jan 08 16:58:52 Fraz, are u still dealing with that same problem? Jan 08 16:58:55 am i a mint user? Jan 08 16:59:00 linux mint = ubuntu Jan 08 16:59:03 bynarie, yeah Jan 08 16:59:05 same thing Jan 08 16:59:09 ohhhh ok i didnt know that Jan 08 16:59:17 i thought mint was some other distribution:P Jan 08 16:59:18 sorry Jan 08 16:59:22 it is Jan 08 16:59:25 but its basically the same Jan 08 16:59:31 Question. Can I assume that my view will get the one touch even after the activity? Jan 08 16:59:40 *on touch Jan 08 16:59:44 are u only trying to install fastboot and adb?? Jan 08 16:59:45 *event Jan 08 17:00:03 napalm is talking me through installing adb Jan 08 17:00:07 u can just do sudo apt-get install android-tools-fastboot android-tools-adb Jan 08 17:00:16 u dont need go install the entire sdk Jan 08 17:00:34 u dont need java Jan 08 17:00:48 just run that one command and you will have ADB and fastboot Jan 08 17:00:56 i think its all done now anyway bynarie Jan 08 17:01:21 ok, well next time ull know... unless you are planning on doing programming theres no reason to install the entire SDK Jan 08 17:01:33 especially when you only need fastboot and adb Jan 08 17:02:53 well im in the platform-tools directory now and its saying The program 'adb' is currently not installed Jan 08 17:03:32 Fraz, just run the sudo apt-get install android-tools-fastboot android-tools-adb Jan 08 17:03:45 simple as that Jan 08 17:03:52 E: Unable to locate package android-tools-fastboot Jan 08 17:03:52 E: Unable to locate package android-tools-adb Jan 08 17:03:56 woah Jan 08 17:04:02 what distro are you on?> Jan 08 17:04:09 ubuntu Jan 08 17:04:22 live usb? Jan 08 17:04:25 or installed? Jan 08 17:04:28 live usb Jan 08 17:05:14 Fraz, run sudo apt-get update Jan 08 17:05:18 then try it again Jan 08 17:06:08 and what version of ubuntu are you on? 14.04? Jan 08 17:06:53 if thats the latest, yes Jan 08 17:07:32 try sudo add-apt-repository ppa:nilarimogard/webupd8 then sudo apt-get update Jan 08 17:07:45 then try to install again Jan 08 17:08:17 its still doing stuff from the previous command, looks to be stuck though Jan 08 17:08:39 its still running the update command? Jan 08 17:08:45 0% [Waiting for headers] [Waiting for headers] Jan 08 17:08:45 yeh Jan 08 17:09:39 are u connected to the internet? Jan 08 17:10:04 yes Jan 08 17:10:17 anyone here use AutoParcel? Jan 08 17:10:25 trying to convince my team to use it Jan 08 17:10:30 just got a load of 404s and Error writing to output file - write (28: No space left on device) Jan 08 17:10:37 bah Jan 08 17:10:56 well i dunno.... ive always installed linux directly to HDD Jan 08 17:11:12 is this installing to the usb or just to ram? Jan 08 17:11:14 u can join #ubuntu and see if someone can help you Jan 08 17:11:21 the usb drive is 14gig Jan 08 17:11:48 depends... if you set a persistant storage file then its storing on the usb Jan 08 17:12:49 Fraz, open up the ubuntu software center and search "android-tools" Jan 08 17:12:49 see if you can install from there Jan 08 17:13:39 android ect4 utilities with sparse support? Jan 08 17:13:46 ext4* Jan 08 17:14:08 no Jan 08 17:14:26 android fastboot procol Jan 08 17:14:29 thats all that shows Jan 08 17:14:44 ok.. u must not have any repos then Jan 08 17:15:00 ok.. u must not have any repos then Jan 08 17:15:00 goto synaptic Jan 08 17:15:00 add the universe repo Jan 08 17:16:09 doesnt look like i have synaptic Jan 08 17:16:38 and theres no install button for it in the software center Jan 08 17:17:16 ok.. find out which version of ubuntu u have specifically.. is it trusty or utopic.. or 14.04 or 14.10 Jan 08 17:18:46 14.04 Jan 08 17:18:50 ok Jan 08 17:18:52 do this Jan 08 17:18:54 goto term Jan 08 17:19:07 sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ trusty universe multiverse" Jan 08 17:19:21 then sudo apt-get update Jan 08 17:19:42 then try the sudo apt-get install android-tools-fastboot Jan 08 17:20:26 theres nothing at all happening now with any of those commands Jan 08 17:20:47 man then theres something wrong with ur ubuntu Jan 08 17:20:57 none of this makes any sense Jan 08 17:21:10 maybe cos disk is full now? Jan 08 17:21:40 prolly Jan 08 17:21:51 yea if ur disk is full that will mess everything up Jan 08 17:21:54 can i install ubuntu without formatting the drive i install it on? Jan 08 17:22:09 well u can but u need to make a partition for it Jan 08 17:22:22 ahh screw it Jan 08 17:22:27 theres only movies on that drive Jan 08 17:22:49 ill go and install it and come back Jan 08 17:22:53 back in a few Jan 08 17:22:54 you would be much better off installing it Jan 08 17:22:55 ok Jan 08 17:22:57 k Jan 08 17:23:02 use ext4 Jan 08 17:23:03 cheers for the help Jan 08 17:23:08 for partition type Jan 08 17:23:10 ok Jan 08 17:23:15 or do auto partition Jan 08 17:23:17 good luck! Jan 08 17:23:28 :| Jan 08 17:36:11 are there other ways to make an app freeze except for blocking/stalling the UI thread somehow? Jan 08 17:37:25 *make* an app freeze? Jan 08 17:40:14 Can't think of another way, fancy42. You can make it crash with an unhandled exception, but not freeze. Jan 08 17:40:40 my app freezes sometimes. i'm struggling with reproducing it. i can't figure out what would take so long on the main thread Jan 08 17:40:50 look at the logcat Jan 08 17:41:27 Are you searching for files? If so, move that to an asynctask Jan 08 17:41:36 if you are able to reproduce it even without looking at what went wrong, will you go about the code looking for lines that are similar to the lines that reproduced it? Jan 08 17:41:57 i can sometimes make the app stutter, so i know *when* it happens, but the real crashes only happen 'in the field' and not in front of the computer.. Jan 08 17:42:09 use Crashlytics Jan 08 17:42:42 you set it up and it reports the crashes/ANRs/etc to a website where you can read them Jan 08 17:42:51 what do you mean by looking at logical? can i somehow only log stuff from a specific thread? Jan 08 17:42:59 wat Jan 08 17:43:10 good luck man Jan 08 17:43:26 thanks :D Jan 08 17:43:49 ArmitaageDS, searching for files? you mean accessing files or doing an actual search? Jan 08 17:44:40 If accessing the file requires the app to search for it, it can take a while Jan 08 17:45:04 Odaym, btw. 'going about the code and looking for lines..' is what i'm doing right now, but i must have a blind spot :/ Jan 08 17:45:27 you're debugging wrong Jan 08 17:45:42 find out how to get informed about what's going on, it's not black magic Jan 08 17:46:16 look at LogCat, not "logical" Jan 08 17:46:34 File operations are the one thing besides network operations that can take a while and unintentionally block the ui thread Jan 08 17:46:37 you dont just sit there and stare at the code Jan 08 17:46:43 i need some advice, what tools i should use to make application of website(the website is directory) i am looking to the side of jquery mobile and phonegap? Jan 08 17:47:00 use Titanium Jan 08 17:47:23 good platform, large community, fast, established, really easy Jan 08 17:47:59 very good documentation too Jan 08 17:48:19 titanium? Jan 08 17:48:20 hmm Jan 08 17:48:24 first time yearding about that Jan 08 17:48:29 headring* Jan 08 17:48:30 they're making their own JS compiler now too Jan 08 17:48:34 hmm Jan 08 17:48:46 used it at company for 9 months Jan 08 17:48:49 so eclipse app would be working faster? Jan 08 17:48:59 there's no such thing as an eclipse app Jan 08 17:49:03 it is just not that "webdeveloper friendly" Jan 08 17:49:14 well Jan 08 17:49:20 i mean android app using java and eclipse Jan 08 17:49:24 ah Jan 08 17:49:31 Of course, doing file operations asynchronously creates other issues that you need to handle in the code. Jan 08 17:49:37 well you dont write android, you write javascript that uses their classes, its really very easy Jan 08 17:50:10 eh i cant get orientated what to use, but i have a large community forum and i need to make app for it, so people could use it on android devices :-/ Jan 08 17:50:15 like var imageView = ImageView { center: true, align: top, width: 20px }... Jan 08 17:50:40 Having a "loading" layout is helpful, if anything in the main layout depends on information from a file Jan 08 17:54:15 can contentobserver be used with sqlite database ? I know how to use it with cursorprovider, but what about other types of data sources? Jan 08 17:54:47 damn, two things I have no idea about in 1 sentence! Jan 08 17:55:23 me? Jan 08 17:55:27 yea Jan 08 17:56:40 Can I be sure that if I call a onTouchListener from activity that it would run before I run an onTouchListener from the view's class itself? I have two onTouchListener's here but I want to be sure one runs before the other. Jan 08 17:56:54 ah lol Jan 08 17:57:04 I'm also a beginner, learnt these recently - so dont worry :) Jan 08 17:58:03 hi! i am developing a game that should run both on PC and Android. I am using the EventBus library https://github.com/greenrobot/EventBus, however on desktop it does not allow to use the lib since it refers to some android-specific stuff Jan 08 17:58:16 how do i use that event library on both PC and Android ? Jan 08 17:58:32 i am pretty sure this one library is well-known for its specifics and someone must know something.. Jan 08 17:58:58 its an android-only lib Jan 08 17:59:45 duh :( Jan 08 18:00:04 could you advice any similar lib that would work for cross-platform? Jan 08 18:00:43 After doing some test I found out that they run simultaneously Jan 08 18:01:41 i doont think there is one Jan 08 18:03:23 hey guys, gradle question. I need to run a 'commandLine' call to build some JNI stuff. This works. However, i need gradle to export some env vars first. I understand that everything is a subshell so how does one go about this? Jan 08 18:04:56 oh appending the var to my command line worked ... like `commandLine "VAR=" + varValue, "bash", blah` Jan 08 18:05:18 damn, spoke too soon, that didnt really work Jan 08 18:06:15 I didnt realized there is a map for env vars. Jan 08 18:10:30 is there a way to get tx bytes sent by app over the cell network? Jan 08 18:11:00 righto Jan 08 18:11:49 TrafficStats seems to only give you tx bytes by app over all network interfaces (doesn't differentiate between cell or wifi) Jan 08 18:14:03 Hey guys. Hoping someone knows off hand if something in particular can be done with the Android API (without root access) Jan 08 18:14:31 I'd like to build an app to auto-configure a SIP account for internet calling. Possible? Jan 08 18:18:51 danijoo: well, maybe there is a preferable java-only framework that works best on android? i do not really need to interop with the android OS Jan 08 18:19:03 all the messaging happens inside a single-threaded open-gl game Jan 08 18:19:21 noncom, no. there arent Jan 08 18:19:32 or at least not that i know Jan 08 18:19:58 oh well.. Jan 08 18:20:33 so much for that feature! Jan 08 18:20:34 :P Jan 08 18:23:50 anyone here use AutoValue or AutoParcel? Jan 08 18:24:21 parcelables are becoming way too big of a pain to manage Jan 08 18:25:02 what's that Jan 08 18:25:12 We use AutoParcel. It’s awesome. Jan 08 18:25:20 It’s the only sane way to do Parcelable Jan 08 18:25:27 https://github.com/frankiesardo/auto-parcel Jan 08 18:25:37 I'm trying to convince my team to use it Jan 08 18:26:02 because write now I'm having to write tests just to ensure something parcels/unparcels correctly Jan 08 18:26:03 tell them either you use it, or they can spend all of their time writing the Parcel code. Jan 08 18:26:14 so that means I'm maintaining equals, hashcode, and parcelable Jan 08 18:26:29 it's not clunky using auto-parcel in practice? Jan 08 18:26:33 with the create() method stuff? Jan 08 18:26:38 And I mean THEM. You won’t write a line of it. If they want something to be parcelable, they can spend the time Jan 08 18:26:45 Nope Jan 08 18:26:59 Well, it’s far less clunky than writing the parcelable stuff Jan 08 18:27:04 yea Jan 08 18:27:11 You do Parcels.wrap() and Parcels.unwrap() Jan 08 18:31:29 does googles guava ver18.0 work on android ? Jan 08 18:31:44 its only dep is javax.annotation Jan 08 18:31:47 will it work? Jan 08 18:31:47 ok, im installing android studio in linux now Jan 08 18:34:59 noncom, for a bus on android, you basically have only 2 options Jan 08 18:35:02 otto and EventBus Jan 08 18:35:16 i think both are android-only Jan 08 18:36:08 noncom, yes, guava works fine on Android Jan 08 18:36:17 oh ok Jan 08 18:37:29 hm, so whats going on here. lollipop addoption is slower than kitkat (0.1% vs 1.1% after first month) Jan 08 18:38:06 g00s, meanwhile, every company says they will update faster then ever :D Jan 08 18:38:55 They spent a lot of money on advertising for KitKat Jan 08 18:39:58 also i think it was a lot of easier for companies to do updates from 4.3 to 4.4 than 4.4 to 5.0 Jan 08 18:40:05 because theres not that much that changed Jan 08 18:40:31 sigh apparently you cant include arbitrary makefiles in Android.mk ... what the fuck Jan 08 18:40:58 some might also wait for 5.0.3 being release Jan 08 18:52:12 hello everyone, i need to convert 2015-01-08T18:04:00Z in to a timestamp. (int) value, how do i do that (i can google it, i just need to know what to search. i am drawing a blamk at the moment) Jan 08 18:52:42 *blank Jan 08 18:53:30 .split('T') Jan 08 18:53:31 :P Jan 08 18:54:55 Fraz, did u get it installed Jan 08 18:57:01 fanno, look for a class called SimpleDateFormat Jan 08 18:57:20 danijoo: thanks will do Jan 08 19:02:56 hey, i have a question around performing downloads in a service and then pausing those downloads...i don't want to end/cancel the service because it needs to keep track of the download progress.... what would be the best way to pull that off? (still trying to wrap my head around services) Jan 08 19:06:34 jobelenus, you could set a variable to false and let the service check that from time to time Jan 08 19:06:41 jobelenus: you could just bind your service and tell it to pause Jan 08 19:06:52 jobelenus: i'd consider writing the download status to your shared prefs if you have a resume function Jan 08 19:07:20 jobelenus: you'd have to write somethign that can make a new http connection and resume the download to take advantage of it, but that way if your users reboot or the service gets OOMd you can recover Jan 08 19:08:00 dragorn: hrmm i guess what im missing (from my understanding) is how references and parameters get passed/bound from the service instance itself and the caller... Jan 08 19:08:42 jobelenus: if you're all one pid (which you are unless you've gone out of the way to change it), you can either make passthrough functions in your binder which call the service, or you can pass the service directly and call it Jan 08 19:09:01 well i am going to want this to be out of the UIThread.. Jan 08 19:09:41 (im sad there isnt a library that will do this heavy/complicated lift... ) Jan 08 19:10:59 dragorn: do you have a good example i can look at? Jan 08 19:11:08 have/know of Jan 08 19:11:21 there's a number of service examples on developer.android.com; that's probably a good place to start Jan 08 19:11:37 you're doing a single process service, so you don't have to worry about the AIDL stuff for calling service functions Jan 08 19:12:07 am i doing single process? im going to have multiple instances of the service running around (1 per file, N files) Jan 08 19:13:51 http://developer.android.com/guide/components/services.html the IntentService is what I'm looking at... from what ive gathered so far, the Intent (somehow) can hold arguments that the service can grab? but no example of how to tell the process that started the service "progress" vs "done", or tell the service "pause" v "resume" Jan 08 19:14:52 does IBinder (somehow) let the caller call arbitrary methods on the service? (e.g. pause, resume) Jan 08 19:24:12 M Jan 08 19:24:46 dragorn: actually this looks a lot like what i want: https://thenewcircle.com/s/post/1340/Deep_Dive_Into_Binder_Presentation.htm#slide-8 though it doesnt have any further communication (pause, resume) to the service Jan 08 19:25:30 jobelenus: there is no pause/resume in a service Jan 08 19:25:36 jobelenus: you can write pause/resume in your download code Jan 08 19:25:41 right... Jan 08 19:25:51 but how does the client talk to the service to say "run this method" Jan 08 19:26:23 jobelenus: via the messenger it passes Jan 08 19:28:32 thats what i cant see yet... it seems the client has zero knowledge of the services running (e.g. super.startService(intent); ) Jan 08 19:28:37 no instance of a service sitting around.. Jan 08 19:28:45 the messenger is inside the intent Jan 08 19:29:52 and the Messenger.send is for the service to send parcels back to the clients handler Jan 08 19:29:54 anyone have any experience with bluetooth connections? an app i inherited is throwing socket errors and i'm not sure where to look to fix them Jan 08 19:30:07 how does the client send info to an already instantiated/running service? Jan 08 19:30:26 niftynei, tell more Jan 08 19:30:28 the client and server seem to be connecting ok, but they're both throwing this on read. https://gist.github.com/niftynei/089591caccf53049bcd6 Jan 08 19:30:43 I read loaders work on application context, what does that mean? Jan 08 19:31:17 it says the socket's closed, but the data gets through somehow Jan 08 19:33:30 niftynei, could you show us the code? what's the android version? Jan 08 19:33:57 niftynei: http://kismetwireless.net/gitweb/?p=kisbee.git;a=tree;f=android/Kisbee/src/net/kismetwireless/android/kisbee;h=712dd85e330e7c2833a29232ea33251c9b0d1456;hb=HEAD is an older proect of mine that does SPP over BT Jan 08 19:34:08 niftynei: all the BT code should be in the KisbeeService file Jan 08 19:34:24 niftynei: it's old and unmaintained (a few years old at this point, written for android 2) but it might be of use Jan 08 19:35:51 Fraz, Jan 08 19:37:32 dragorn: ahhhh i think i see it now.. the BroadcastReceiver Jan 08 19:37:40 sdk version 18 Jan 08 19:39:03 oh man, bluetooth is fun Jan 08 19:39:03 same as the target? Jan 08 19:39:22 unfortunately it's not something i can really show off. Jan 08 19:39:38 tho i'm wondering if it has something to do with the server also looking for BLE connections Jan 08 19:39:55 yah, the bluetooth code's in a lib that's target 18 / compile 18 Jan 08 19:40:16 the client it's rolled into targets 21/compiles 21 Jan 08 19:40:37 i get the same error on phones running 21 and 18 Jan 08 19:40:40 trevor-e using BLE or rdcomm ? Jan 08 19:40:57 the client code's all rdcomm Jan 08 19:41:08 with "fun" meaning "oh god shoot me now" Jan 08 19:41:30 ^ Jan 08 19:41:33 the server's scanning both BLE and rdcomm, which i'm starting to think may be the issue Jan 08 19:41:39 lol Jan 08 19:41:50 I need interesting bluetooth devices to dicker with Jan 08 19:42:10 buy something on DealExtreme, fun for whole family >D Jan 08 19:42:34 * niftynei spins chamber, puts pistol to temple Jan 08 19:42:35 g00s last time I dealt with bluetooth was for gingerbread so don't think it was LE Jan 08 19:42:46 any suggestions on debugging bluetooth stuff would be super helpful Jan 08 19:43:21 like wtf should i even be looking for? Jan 08 19:43:24 i would start with BluetoothChat demo and change it for my needs. Jan 08 19:43:34 heheyeah, thats one way Jan 08 19:44:34 I need a nice thermostat at home... although it's been locked to 75F lately Jan 08 19:44:44 i have an internal lib (in fact a Service class) i intend to open source it, but it's not ready yet Jan 08 19:44:51 bitkiller yah cool, i've been using that as a reference Jan 08 19:44:59 it's a bit outdated, no? Jan 08 19:45:16 niftynei is the socket blowing up on connection, or sometime after that ? Jan 08 19:45:45 i'm not sure. it's gotta be after connection because the data seems to get through ok Jan 08 19:46:12 well , then probably one or both devices are dropping the connection :| Jan 08 19:46:48 pfn the TI SensorTag is fun to play around with Jan 08 19:47:04 even more fun: making your own :) Jan 08 19:47:29 g00s: ok cool, that's something to work with. Jan 08 19:47:31 is there any reason two autocomplete fields can Jan 08 19:47:39 't share an adapter? Jan 08 19:48:03 thanks Jan 08 19:54:31 ok this is fucking crazy Jan 08 19:55:48 Fraz, what now Jan 08 19:58:02 I couldn't fix it yet. YoutubePlayer is not playing any video. it seems it's always covered by something Jan 08 19:58:21 the size is MATHC_PARENT x WRAP_CONTENT Jan 08 19:58:43 I tried with a specific dimension like 400x200 but it doesn't work anyway Jan 08 19:58:51 what else can it be? Jan 08 19:59:53 the operator! Jan 08 20:00:03 =] Jan 08 20:00:17 2 devices, using win 8.1 and linux, 3 different cabled, revoked permissions, restarted adb many times and I STILL CANT GET A GODDAMH AUTHORIZATION PROMPT Jan 08 20:00:21 how the hell is this possible Jan 08 20:00:43 did u get fastboot/adb installed on buntu Jan 08 20:00:48 it has to be the dam device Jan 08 20:01:01 ive got adb installed Jan 08 20:01:04 not sure baout fastboot Jan 08 20:01:08 ok Jan 08 20:01:14 its 2 devices though Jan 08 20:01:24 the asus in linux is always showing as offline Jan 08 20:01:33 the lenovo shows as ??????????????? no permissions Jan 08 20:01:40 well thats crazy Jan 08 20:01:42 the desire hd doesnt show at all Jan 08 20:01:43 did you lsusb Jan 08 20:01:54 no im not sure what im meant to do with that Jan 08 20:02:08 terminal "lsusb" Jan 08 20:02:17 oh yeh i did that Jan 08 20:02:19 paste it on pastebin.co, Jan 08 20:02:31 com Jan 08 20:02:50 why is my game's product page visible world wide when i only distributed it in australia? anyone experienced with this stuff? Jan 08 20:03:10 http://pastebin.com/0mm8trTW Jan 08 20:03:18 thats obviously with the lenovo connected Jan 08 20:03:38 ok thats good Jan 08 20:04:04 http://pastebin.com/MPn8X6tm Jan 08 20:04:05 asus Jan 08 20:04:14 Fraz, did you add the USB IDs to udev? Jan 08 20:04:26 no? Jan 08 20:04:34 im assuming ubuntu still uses udev Jan 08 20:04:37 u shouldnt have to do all that crap Jan 08 20:04:39 not anymore Jan 08 20:04:44 oh ok Jan 08 20:04:48 mines automatic Jan 08 20:04:54 really? Jan 08 20:04:58 but i was just going to suggest that Jan 08 20:05:13 yea Jan 08 20:05:18 maybe it will help Jan 08 20:05:27 how do i do this? Jan 08 20:05:28 Fraz, do lsusb, get the mfr id and device id Jan 08 20:05:44 ls -l /dev/bus/usb/002/017 - Fraz Jan 08 20:06:33 and do this: ls /etc/udev/rules.d/ Jan 08 20:06:51 do you have a file in that dir named NN-Android.rules? Jan 08 20:06:55 where NN is a number Jan 08 20:07:13 or something 'android-y' looking? Jan 08 20:07:21 its 51 Jan 08 20:07:22 just lists a README Jan 08 20:07:29 Fraz, Jan 08 20:07:31 PM me Jan 08 20:07:37 ok Jan 08 20:09:23 I have a question: How can I tell if I should create a summary notification to start a notification group, if I don't know if a summary notification is already on the device? Jan 08 20:10:27 if I just use setGroup on a notification, it doesn't appear because I guess a summary doesn't exist Jan 08 20:17:01 hi all .. I need an invitation to the Google Inbox android application? Does anyone of you use the app to send me an invitation? Jan 08 20:20:04 Dudytz, i do Jan 08 20:20:09 give me ur email via PM Jan 08 20:21:44 matt_j: afaik the only 'real' way to handle that is to record what notifications you show + what notifications they dismiss. at some point I'd love to make a wrapper-thing to do that for me, but I haven't / don't know of any. Jan 08 20:22:07 damn. Seems to defeat the point of "groups" if you have to do the work manually Jan 08 20:22:21 is there any way to query what notifications are currently displayed? Jan 08 20:22:57 matt_j: without having notification-reading permissions, not that I know of. possibly there's something new in 4.4+ that I haven't noticed though. Jan 08 20:23:23 matt_j: also a possibility: if you set multiple notifications with the same group key but different summaries, does it / should it display just the most recent summary? Jan 08 20:24:16 groxx: I'll have to keep experimenting Jan 08 20:25:34 bynarie: can you send me an invite? Jan 08 20:25:46 yes give me ur email addr Jan 08 20:26:05 have you put a Youtube player inside a scrollview? is there any known bug? mine doesn't play, regarless of the size of the player Jan 08 20:26:14 matt_j: I haven't used group summaries before :/ I'd be curious what you find though. possibly it has something to do with wear? Jan 08 20:29:05 groxx: yeah! Jan 08 20:29:17 groxx: just calling setGroup causes *nothing* to show up on the device or wear Jan 08 20:33:22 oh interesting Jan 08 20:34:37 Is there a limit regarding how much data to place into a Bundle in onSaveInstanceState? Jan 08 20:34:40 using setGroupSummary(true) on all notifications caused them to stack on the wearable Jan 08 20:34:47 Would it be sensible to save, say, 500 reddit comments (which might be big)? Jan 08 20:34:52 but did not appear nor played a notification sound on the phone Jan 08 20:37:55 hi Jan 08 20:38:13 i can't get a ListView FooterView to stay at the bottom of the screen Jan 08 20:38:37 chars6: You want it to stay even if the user scrolls the list? Jan 08 20:38:53 TacticalJoke: yes Jan 08 20:39:08 chars6: Footer views don't do that. You'd need a separate View in the layout in which the ListView resides. Jan 08 20:39:11 it isn't set to scroll yet, but i'm going to have to go back and add that eventually Jan 08 20:39:52 TacticalJoke: when i added buttons below the ListView before, they would repeat for every item in the list Jan 08 20:40:04 that's when i went to footers Jan 08 20:40:25 Why would they repeat? Jan 08 20:40:37 It's easy to add a single View or ViewGroup below a ListView Jan 08 20:40:48 hold on, recreating it right now Jan 08 20:43:53 Has anyone had the NoClassDefFound error when using espresso 2.0? Jan 08 20:43:57 Seems really weird Jan 08 20:44:03 TacticalJoke: yeah, i don't know what i'm doing wrong. was just trying to add a TextView below the ListView and it isn't showing up at all. ListView is set to wrap_content Jan 08 20:44:36 does it need to be inside a Layout? Jan 08 20:45:10 I don't think you can use wrap_content for a ListView's dimensions. There's no notion of "content size". Jan 08 20:46:00 If you use a LinearLayout, you can set the ListView's layout_height to 0dp and its layout_weight to 1. Jan 08 20:46:54 TacticalJoke: does the LinearLayout wrap the ListView, the TextView below, or both? Jan 08 20:47:03 Both. Jan 08 20:47:12 ok Jan 08 20:47:29 Napalm, any luck? Jan 08 20:47:49 char6: everything in a layout file has to go into a viewgroup Jan 08 20:48:22 drinfernoo: sorry had no time Jan 08 20:58:16 anyone how hot to close a HttpResponse object without consuming it? Jan 08 20:58:49 its all good Napalm Jan 08 20:58:55 I haven't figured it out yet though lol Jan 08 20:59:03 what were you doing with GNow? Jan 08 20:59:54 anyone using any UI Binding libraries like bindroid, robodroid, butterknife, etc? Jan 08 21:00:03 I use butterknife Jan 08 21:00:09 anyone done a soft launch? Jan 08 21:03:35 yes I thought you might JakeWharton :) Jan 08 21:03:49 the wildly prolific jakewharton it is actually a little amazing Jan 08 21:03:58 is it ok if I ask you a few butterknife questions? Jan 08 21:04:05 no. ask the channel Jan 08 21:05:11 ok well 1) does butterknife just do binding to models during the onCreate()..etc, or does it update the UI automatically when the model changes (observable etc) Jan 08 21:05:31 it does findViewById when you tell it to Jan 08 21:05:31 2) does butterknife do declarative binding in the xml or just imperative in the code Jan 08 21:05:39 did you even read the website? Jan 08 21:05:44 just code Jan 08 21:05:52 i think so but that was my next question Jan 08 21:06:01 was there another website besides the one I saw =:) Jan 08 21:06:34 on't you hate when people ask wthout even bothering to look at cursory documentation? :p Jan 08 21:06:41 ok so it doesn't track changes to the model then is that correct JakeWharton ? I'd have to do that part by myself right? just making sure Jan 08 21:06:54 how can I change the colors in my theme dynamically? Jan 08 21:07:01 come on perry I looked at the cursory docs..I also asked if there were other docs I should look at pfn :) Jan 08 21:07:05 HevvyMetal: it's not a binding framework Jan 08 21:07:12 Is anyone using Android Studio 1.0 Jan 08 21:07:12 it's a glorified findViewById Jan 08 21:07:16 it has nothing to do with your model Jan 08 21:07:17 Silenced_101193: yes Jan 08 21:07:18 anyone know anyone who has done a soft launch? Jan 08 21:07:21 ok fair enough JakeWharton that's sort of what I surmised Jan 08 21:07:31 Tapani, what do you mean? Jan 08 21:07:49 to launch in one country only Jan 08 21:07:53 google play Jan 08 21:07:59 thanks for clarifying that -- as far as "binding frameworks" that do two way binding, notification, etc, are there any that you have used or like and/or are you going to be building something like that JakeWharton ? Jan 08 21:08:12 Silenced_101193 : 1.02 here Jan 08 21:08:22 JakeWharton: I got a doubt . Whenever i create a new project , The resourse (R) is shown as error . Jan 08 21:08:36 JakeWharton: why? Jan 08 21:08:38 so fix the error Jan 08 21:08:46 easiest problem to solve ever Jan 08 21:09:06 pfn: U saying me ? Jan 08 21:09:16 Tapani, I thought gplay let you do that automatically? Jan 08 21:09:38 something is pushing my TextView below the bottom of the screen and i don't know what: http://pastebin.com/wAuwU63x Jan 08 21:10:35 drinfernoo: well i selected Australia only but my product page is visible everywhere Jan 08 21:10:49 what's your app? Jan 08 21:10:52 chars6, can set listview above textview Jan 08 21:10:57 HevvyMetal: have u experienced this error called "Cannot resolve symbol R" in Android studio just after creating a new project ? Jan 08 21:11:44 Holy hell, are your fingers going to fall off if you type "you"? Jan 08 21:11:54 Mavrik, clearly, he is a leper Jan 08 21:11:56 whatitis: i don't follow Jan 08 21:11:58 yo. ;) Jan 08 21:12:06 chars6: Does that even work? I thought layout_width and layout_height had to be set for every View. Jan 08 21:12:35 chars6, you have textview set to bottom, set layout above textview to listview Jan 08 21:12:49 TacticalJoke: for the ListView? yeah it works. i got rid of width and height after you said it doesn't apply to lists Jan 08 21:13:03 I didn't say that. I said that "wrap_content" shouldn't be used. Jan 08 21:13:10 TacticalJoke: oh Jan 08 21:13:12 I'm using android studio/gradle to develop an android/java wrapper to my c++ library. I have 3 modules--app, core, and pluginX atm. pluginX depends on core. How can I reference the c++ headers from core in pluginX? Jan 08 21:13:15 chars6, well, because you didn't set it, it must be implicitly 0 Jan 08 21:13:18 JakeWharton, looking at FragmentStatePagerAdapter, I'm having trouble figuring out how to adapt that code to make save the state of my GridViews. I'm not using arrays to pass the pages to the ViewPager... and they're not fragments Jan 08 21:13:25 you said alignParentTop Jan 08 21:13:28 but you didn't set it above anything Jan 08 21:13:30 so its height is 0 Jan 08 21:13:32 should I be using arrays? Jan 08 21:13:47 HevvyMetal: we don't use that nor do we have plans to nor am i going to build something to do it Jan 08 21:14:11 mygod, someone on reddit actually is developing app that supports <7 O.o Jan 08 21:14:28 rxjava can be somewhat coerced to work like a binding framework Jan 08 21:14:39 yes. we use it for one-way binding Jan 08 21:14:52 very effectively Jan 08 21:15:29 Guys help me out please . Jan 08 21:16:01 facing an error with android studio . Jan 08 21:16:33 TacticalJoke: AFAIK there are 1mb limits for your serialized data. if you need more, stick it on disk, serialize the file URL. Jan 08 21:16:39 Ah. Jan 08 21:16:40 with the ide, or your code in that ide? Jan 08 21:17:46 TacticalJoke: alternatively, just store like the 10 that they're looking at, while you reload the list in the background Jan 08 21:17:56 Silenced_101193, good for you, fix it Jan 08 21:18:09 Silenced_101193, error in createing R is because of bad resources Jan 08 21:18:13 you should have an error for that Jan 08 21:18:13 Unfortunately, the reddit API isn't flexible enough to do that for comments. That's a nice idea where possible, though. Jan 08 21:18:16 come back when you fix that error Jan 08 21:18:28 It's flexible enough to do that for posts. Jan 08 21:19:21 I'll probably just use general caching to handle the save-instance-state thing. Jan 08 21:19:22 TacticalJoke: I just mean to give them something to look at when they come back. then download all the comments, and replace it. if you're feeling nice, try to scroll to where they were. Jan 08 21:19:29 Oh, true. Jan 08 21:19:59 pfn, How do i fix it ? Its just an empty project Jan 08 21:20:24 Silenced_101193, then add files so that it isn't empty Jan 08 21:21:40 If someone is using a RelativeLayout with a child View that has layout_above and layout_below set, what should they set layout_height to? 0dp? Jan 08 21:21:59 I guess it doesn't matter, but just curious. Jan 08 21:22:02 TacticalJoke, whatever they want, because the layout rules take precedence Jan 08 21:22:07 Okay. Jan 08 21:22:29 I just choose wrap_content because it's somewhat the right idea Jan 08 21:22:39 it's just the size of your content is declared by the RL rules Jan 08 21:22:42 yea i've been wanting to look into rxjava pfn Jan 08 21:23:04 are all your android github projects things you did for square or thing you did for the heck of it or ..? either way is cool JakeWharton Jan 08 21:23:25 nothing on my account is for work Jan 08 21:23:34 so getting back to two way binding frameworks (preferably xml) anyone doing that ? bindroid robodroid etc? Jan 08 21:24:15 hrrm interesting so what made you do that many FOSS components if you only did 1 or 2 apps on the store JakeWharton ? I'm surprised you don't work for GooG Jan 08 21:24:21 pfn: Look at this https://www.dropbox.com/s/q20p8fie5h9g5ia/Screenshot%20from%202015-01-09%2002%3A52%3A44.png?dl=0 Jan 08 21:24:34 i just wanted to Jan 08 21:24:43 sure taht's cool Jan 08 21:24:56 did you do any NoSQL/Realm stuff yet? Jan 08 21:25:51 Silenced_101193, so? Jan 08 21:26:03 So, if I have 1MB to work with in onSaveInstanceState (though I might have less because of other stuff), I could store maybe 500 large comments. Seems like just a bad idea. Jan 08 21:26:08 Silenced_101193, why don't you look at your build log? Jan 08 21:26:25 Tapani, incompatible with all of my devices Jan 08 21:26:32 i see hansl & gradle Jan 08 21:26:43 and some way blurry text Jan 08 21:26:47 drinfernoo: ok Jan 08 21:26:53 thanks Jan 08 21:26:59 I think you're good lol Jan 08 21:27:03 why only AUS BTW? Jan 08 21:27:05 pfn: My build fails ! Jan 08 21:27:13 you need to import R Silenced_101193 Jan 08 21:27:24 Silenced_101193, no shit, why don't you read the error Jan 08 21:28:11 drinfernoo: i'm going to have a test launch there before world wide Jan 08 21:28:13 presumably, his activity is generated, so it should already be in the right package Jan 08 21:28:33 well it should be pfn but if you look at his screen shot, it isn't Jan 08 21:28:40 it's scrolled down Jan 08 21:28:57 ok so it's indeterminate then Jan 08 21:29:16 we just need to add "No Homework" to the topic ;0 Jan 08 21:29:19 pfn: See this http://pastebin.com/w2TAkMkR Jan 08 21:29:52 Silenced_101193, so, fix the error Jan 08 21:30:01 Silenced_101193, don't use 21.0.0-rc1 Jan 08 21:30:14 pfn, idk :( Jan 08 21:30:28 -rc1 is L-preview only Jan 08 21:30:41 What should I do about caching? I need to cache things like a list of comments (complete with state such as "comment.isCollapsed"). Should I roll my own? Jan 08 21:30:51 pfn, beginner to android development Jan 08 21:31:03 so are you an android programmer now pfn? Jan 08 21:31:04 Silenced_101193, so why would you add 21.0.0-rc1 Jan 08 21:31:17 Of course, I can't use OkHttp's caching because that's just the HTTP stuff. Jan 08 21:31:38 Or I could use it but I'd have to do other stuff too. Jan 08 21:32:27 I was thinking of writing JSON to files in background threads. I guess that's the simplest way of "rolling my own". Jan 08 21:32:31 pfn: I didnt add anything Jan 08 21:32:48 yeah I'm interested in that too TacticalJoke you can check out realm Jan 08 21:33:09 but I don't like that it's not POJO based there is a base class yo uhave to inherit i think which is stuid Jan 08 21:33:26 i'd like to find one that's pure pojo based Jan 08 21:33:33 with some query capabilities Jan 08 21:33:42 and then just serialize the whole thing not maintian versions of the database Jan 08 21:33:49 if that's something people have worked with Jan 08 21:34:09 I appear to be dumb. I have `notif.defaults |= Notification.DEFAULT_LIGHTS;`, same for vibrate and sound, and everything so far seems fine except when it makes the notification, the LED doesn't flash like for other things like email, etc. Am I dumb? it seems like the docs say this should do it. Jan 08 21:34:11 I think anything that qualifies as a database might be too heavy for what I need. Jan 08 21:34:24 TacticalJoke: probably sqlite. I've been using greenDAO pretty happily (though its default-on not-thread-safe caching is omg frightening), or I've just started poking at Realm (which has other wtf moments, but is pretty simple to use) Jan 08 21:34:56 ColonelPanic001, i've found it to be more reliable to say "setDefaults(DEFAULTS_ALL)" instead of setting flags Jan 08 21:35:03 if I do .setLights(0xff00ff00, 500, 100) on NotificationCompat.Builder, that does work. It just seems like it would be bad form to hardcode it and not "just do whatever the phone should do" Jan 08 21:35:08 Mavrik: thanks, I'll give that a try Jan 08 21:35:24 groxx: Hmm. The thing is, I'm gonna be using this in onSaveInstanceState, so I want writes to be as fast as possible (so that I can read again in onCreate). Would raw file access be more suitable? Jan 08 21:35:25 what does "too heavy" mean? too much code to write by hand, or uses too much memory, or ? sqlite is likely to be faster and better in every way (other than LoC) than anything you roll yourself Jan 08 21:35:38 I mean, writes and reads will be in a background thread, but I still want everything to be as immediate as possible. Jan 08 21:35:44 anyone saved states of gridviews in a ViewPager? Jan 08 21:36:01 I'm having trouble adapting FragmentStatePagerAdapter Jan 08 21:36:15 i just dont see the reason people should use sqlite anymore Jan 08 21:36:21 there should be a better alternative more nosql like Jan 08 21:36:22 So I guess I mean pure speed. Jan 08 21:36:34 well duh that's why it's not threadsafe == pure speeed Jan 08 21:36:59 Mavrik: wtf, that did it. I thought that should have been exactly equivilent to what I had done - thanks. I would not have figured that out. Jan 08 21:37:09 overall given the choice i'd rather have something that is not threadsafe and add my own threadsafe wrapper around it Jan 08 21:37:13 HevvyMetal: because sqlite is way better than everything else. realm looks interesting, but it still feels a little beta (migrations are necessary, but they're still experimental + API might change significantly) Jan 08 21:37:20 what the hell are you doing on my phone that takes so many database commits that it being threadsafe actually noticably impacts performance? Jan 08 21:37:22 way better in what way groxx? Jan 08 21:37:30 faster and more reliable Jan 08 21:37:34 I'm guessing SQLite will be potentially way slower than raw file access in this case because SQLite has to worry about stuff like durability (whereas I don't care whether the power goes off mid-write). Jan 08 21:37:36 than what groxx? Jan 08 21:37:48 Silenced_101193, well, 21.0.0-rc1 is the wrong version, update your sdk and then update your dependency Jan 08 21:37:49 sqlite is good just like sql is good and nosql is good for the (opposite) reasons Jan 08 21:37:51 (Since this is only a temporary cache that isn't particularly important.) Jan 08 21:38:11 some data maps to sql better than others and it's redundant now that most data is graph based and sql has never been taht good with graphs Jan 08 21:38:32 I guess my reading code will just check whether a cache entry was fully written, and if not then just re-download. Jan 08 21:38:35 anyway i'm looking for alternatives to sqlite :) not really debating what is "best" for a given scenario Jan 08 21:38:37 ColonelPanic001, yeh, it seems that some things change over versions and for some reason that invokes proper arcane magick ČP Jan 08 21:38:39 JakeWharton, how can I get Picasso to not reload images on every run? Jan 08 21:39:03 nvm Jan 08 21:39:22 HevvyMetal: sure. but at small data scales it hardly makes a difference, and extremely few nosql stores have anywhere even remotely near the durability of sqlite. Jan 08 21:39:49 it's not the size of the data groxx it's how well it maps to SQL etc Jan 08 21:40:04 pfn: last question . I used my SDK which i used in windows , Now i m in ubuntu . The SDK manager in ubuntu still accepts it . Is there any problem ? Jan 08 21:40:15 the durability I think is a little bit of a red herring as well Jan 08 21:40:27 groxx: Main thing that concerns me is that I want to use a single thread for all of this (reading and writing), and I'm hoping to avoid queuing. Jan 08 21:40:49 HevvyMetal: in principle, sure. in practice, rarely. small data = fast unless you're doing something horrifically wrong. and then you're doing something horrifically wrong - that'll be slow in any storage. Jan 08 21:41:09 TacticalJoke: single thread + avoid queueing is pretty much an oxymoron Jan 08 21:41:14 you're missing my point groxx but this isn't really the channel to debate nosql versus sql Jan 08 21:41:18 i'm asking for nosql options Jan 08 21:41:30 I guess I'll have to simply do this: onSaveInstanceState --> if (alreadyWriting) { doNothing(); // don't add to the queue } Jan 08 21:41:48 And then, when reading back, waiting for N milliseconds before giving up and downloading. Jan 08 21:42:20 HevvyMetal: only one that I know of that sounds promising is Realm. everything else tends to use too much memory / have durability problems. which isn't a red herring - storage and writes fail all the time, people do crazy crap with force-kill. Jan 08 21:42:42 a water pipe just burst in my building Jan 08 21:42:53 I'm not really worried about "durability" as long as it's in memory and I can serialize it later that's enough for me and most apps groxx Jan 08 21:42:55 Yeah, and modern file-systems don't guarantee much (by way of durability) by themselves. Jan 08 21:43:00 chars6 fuuuck Jan 08 21:43:22 drinfernoo: well, not too bad, it flooded the empty apt below me. Jan 08 21:43:25 the problem with realm approach is it never really recycles the dead (deleted) objects on disk from what I can tell and i don't want it to be interactively persistent i'd rather just save at checkpoints groxx Jan 08 21:43:32 HevvyMetal: durability is also things like "I wrote half a file, and now on re-launch it's crashing". Jan 08 21:43:38 HevvyMetal: I guess it depends on the data. In many cases, people care mainly about atomicity. Jan 08 21:43:43 oh yeah not so bad Jan 08 21:43:47 HevvyMetal: if you're handling that well enough, sure, it's fine. most don't. Jan 08 21:43:51 groxx: That's atomicity, isn't it? Jan 08 21:44:04 yeah, that's more accurate. Jan 08 21:44:07 groxx: there's lots of ways to solve that including the way that the android os does it! store a backup file and use that! Jan 08 21:44:15 i'm still lost on getting a button anchored to the bottom of the screen below a listview Jan 08 21:44:18 no i dont think atomicity is needed in a transactional sense on android Jan 08 21:44:28 why would you? mostly android needs to retain data on exit Jan 08 21:44:37 it doesn't need to be transactional per se....it's not a banking system Jan 08 21:44:39 chars6: It's easy. Jan 08 21:45:02 most "transactions" are over the wire now ( game purchaes whatever) and aren't really transactional at the android level from what i can tell Jan 08 21:45:15 uh. wildly different uses of the term there. Jan 08 21:45:15 chars6: Probably the easiest way is what I said above: use a LinearLayout, set the ListView's height to 0, set the ListView's layout_weight to 1, and define the TextView after. Jan 08 21:45:18 chars6, just put it in a different layout Jan 08 21:45:20 But you can also do it with a RelativeLayout. Jan 08 21:45:31 making things transactional just makes things slow Jan 08 21:45:46 HevvyMetal: Isn't atomicity basically always needed? Jan 08 21:45:50 if I fetch 1000 tweets, and insert them into a db, why does each tweet need to be a transaction? I just don't get it Jan 08 21:45:55 no, it isn't always needed! Jan 08 21:45:57 see above Jan 08 21:46:09 HevvyMetal: it sounds like you haven't done databases much. you wouldn't do that with 1000 tweets. Jan 08 21:46:12 Hello guys & gals Jan 08 21:46:14 When is it not needed? I don't see an example above. Jan 08 21:46:14 and that has nothing to do with transactions Jan 08 21:46:16 I have done tons of databases Jan 08 21:46:21 it has a lot to do with transactions Jan 08 21:46:33 i'm just gonna once again say, i'm looking for NoSQL alternatives Jan 08 21:46:37 Even in cases where an app might tolerate a half-written list, it won't be able to tolerate a half-written list item. Jan 08 21:46:37 if you want sql, fine :) Jan 08 21:46:43 There's always gonna be an atomicity requirement at some level. Jan 08 21:46:45 HevvyMetal: Realm looks promising Jan 08 21:46:49 and it's not SQL Jan 08 21:47:01 There will be a point where it says "Either we have a full X or we have no X at all". Jan 08 21:47:07 I know about realm looking for things besides Realm for the reasons I mentioned groxx Jan 08 21:47:07 it's _relational_, but that's orthogonal Jan 08 21:47:26 anyone here collect vinyl records? Jan 08 21:47:28 👍 Jan 08 21:47:53 you do groxx? Jan 08 21:48:17 HevvyMetal: berkeleyDB might be compact enough that it could work. that's a "plain" key/value store afaik Jan 08 21:48:19 for instance groxx, if I download, say, todays movies titles, there is no reason to persist that data....when it reconnects (tomorrow) it wil get the list...hence I'm looking for pure in memory data (that I might serialize) but not something that always and intriniscally stores the data to storage groxx if that makes sense Jan 08 21:48:32 hey all X) Jan 08 21:49:11 Quick Q for you all again. Is it possible to edit account details for Internet calling with a 3rd party app? Jan 08 21:49:14 HevvyMetal: sure. blindly writing everything into is rarely the right behavior Jan 08 21:49:29 should i always be using the latest version of google play services in my app or does it not make much difference? Jan 08 21:49:41 well so that's why I'm looking for things besides realm groxx Jan 08 21:49:43 so any ideas here? Jan 08 21:50:07 whats yur query HevvyMetal? Jan 08 21:50:09 err eclipse is gliching for me.. its producing errors on where i set the r.layout. Jan 08 21:50:22 how do i fix? Jan 08 21:50:29 get on Android Studio DarkChaoz X) Jan 08 21:50:33 DarkChaoz: Do you capitalise the R? Jan 08 21:50:37 lacx any in memory serliazable store for android that stores pojos and has some innate query capability :) Jan 08 21:50:42 s/any/an Jan 08 21:50:42 TacticalJoke: drinfernoo: like this? http://pastebin.com/erGCZUfD Jan 08 21:50:58 No. Jan 08 21:51:02 layout_weight="1" Jan 08 21:51:06 Oops, sorry. I misread. Jan 08 21:51:17 yes Jan 08 21:51:21 its capitalized Jan 08 21:51:24 You need to give a width for the ListView. Jan 08 21:51:24 hmm why not just serialise to file HevvyMetal ? Jan 08 21:51:35 havnt heard of any in-memory ones im afraid Jan 08 21:51:36 chars6, that's probably exactly how I'd do it Jan 08 21:51:39 Also, you should use match_parent, not fill_parent. The latter is deprecated. Jan 08 21:51:41 that's still not doing it Jan 08 21:51:42 HevvyMetal: BerkeleyDB might exist for android, it's old and stable and efficient. there might even be a stand-alone version of IndexedDB somewhere? I haven't seen anything specific for anything but Realm and SQLite, but I wish you luck. more database options is good. Jan 08 21:52:32 i want the listview to be scrollable eventually too Jan 08 21:52:38 That's irrelevant. Jan 08 21:52:49 ListViews scroll when they have enough content. Jan 08 21:52:57 TacticalJoke: any idea if match vs fill actually does anything different? or did they just change the name "because"? Jan 08 21:53:11 I think they simply changed the name. Jan 08 21:53:13 well that's handy Jan 08 21:53:14 From what I read. Jan 08 21:53:16 any ideas to fix? Jan 08 21:53:28 DarkChaoz: You need to give way more info. Jan 08 21:53:29 HevvyMetal: theres Esper (http://esper.codehaus.org/tutorials/faq_esper/faq.html) which yu may get running but its pretty heavyweight Jan 08 21:53:37 There are thousands of possible causes for what you mentioned. Jan 08 21:53:48 DarkChaoz: do you have an "import com.ur_app.R" line anywhere? you might be using something else's R definition Jan 08 21:54:05 TacticalJoke: the button is still not showing up Jan 08 21:54:37 what version of google play services shud i be using, does it affect compatibility? Jan 08 21:55:04 well i did clean build and after that it produced R. errors Jan 08 21:55:23 chars6: Can you post the updated layout file? Jan 08 21:55:38 resources might be screwed DarkChaoz Jan 08 21:55:42 try giving it a layout height instead of wrapping content Jan 08 21:55:57 i managed to corrupt mine a few days ago X) Jan 08 21:56:08 TacticalJoke: http://pastebin.com/e3x1nmVN Jan 08 21:56:21 That's not updated. Jan 08 21:56:28 lacx: I've been wondering the same myself. in principle, the new ones probably have bugfixes the old ones don't. and the new ones have new features. in practice, the new services are backwards compatible quite a ways, and I don't know what happens if you have a newer version than the system is running - is it "forward-compatible" or do they force the user Jan 08 21:56:28 to update? Jan 08 21:56:29 i'll change fill_parent later on Jan 08 21:56:34 oh Jan 08 21:56:40 is there a way to fix it then? Jan 08 21:56:41 try changing it and see Jan 08 21:56:46 I always use match Jan 08 21:56:47 and which resources is messed up Jan 08 21:57:03 DarkChaoz: you probably have other errors. one of them should tell you which resource is messed up, if that's the cause Jan 08 21:57:05 You need to give the ListView a layout_width of match_parent. Jan 08 21:57:24 how do I link one library module with another library module in gradle? both are aars Jan 08 21:57:34 its not exactly clear eh groxx Jan 08 21:57:44 it's already compiling the dependency module aar, but they're not linking the runtimes correctly Jan 08 21:58:07 lacx: yeah :\ fwiw at work we're running a 4.4.x version, and the new ones are 6.5.x, and it works just fine. Jan 08 21:58:21 nah i there isnt any other errors except them Jan 08 21:58:47 DarkChaoz: then you're probably importing the wrong R, or not importing any Jan 08 21:58:48 well once again bdb is something to serialize data groxx Jan 08 21:59:02 i think i had heard of an in memory database called mv or osmething Jan 08 21:59:03 HevvyMetal: so... you're looking for an in-memory query engine? Jan 08 21:59:06 cool groxx im having issues on an app (in 5.0.1) with lib version 5.0.89, so may try updating Jan 08 21:59:21 yeah that would be a lot of it right there groxx anything you've been using? Jan 08 21:59:22 TacticalJoke: ok, done, button is still missing. sry for being a pain Jan 08 21:59:35 chars6: Please post the updated layout. The last thing you posted was identical to the first thing. Jan 08 21:59:38 Im definitely importing them because they are in the res layout folder and imported it correctly Jan 08 21:59:42 does anyone here actually use android studio? Jan 08 22:00:01 at the moment im having issues with MediaRecorder - "start failed: -38" which stackoverflow suggests is to do with another service already running using one (or both) of the encoders for the MediaRecorder Jan 08 22:00:21 TacticalJoke: the current layout is what i just posted, plus a layout_width="match_parent" Jan 08 22:00:29 HevvyMetal: nah. typically I just write my own stuff when it comes to that, since I can optimize the data and storage and querying structure as needed. if you're looking for a general store, no clue. though you _can_ run sqlite in memory in android iirc :) Jan 08 22:01:10 kailoAtWork: afaik most of us do (as in, 50%+, not claiming much more) Jan 08 22:01:11 i think R.java is missing.. but where is it located? Jan 08 22:01:33 Does anyone develop android libraries with it? Jan 08 22:01:44 kailoAtWork: that I dunno :) Jan 08 22:01:45 anyone here an independent consultant or most people working as emps? Jan 08 22:01:53 chars, try giving the button a height, and the listview match parent Jan 08 22:01:58 There seems to be a terrible deficit of documentation on anything gradle/android studio Jan 08 22:02:00 groxx, I don't ;) Jan 08 22:02:06 The button already has a height. Jan 08 22:02:21 TacticalJoke: i have a program, DroidDraw, it looks correct there, but not in the emulator Jan 08 22:02:28 yeah i've mentioned that kailoatwork i think there is a channel bt wasnt very active Jan 08 22:02:48 kailoAtWork: I'm pretty newbish with gradle, but afaik you use settings.gradle to include all your modules, and I would assume `compile "path/to/.aar"` or `compile project(":module_name")` (or something similar) would work. if it doesn't, that's beyond my gradle skillz Jan 08 22:03:12 chars6: Is this the layout for an activity? Jan 08 22:03:23 is there any gradle support for having one JNI aar link against another jni aar? Jan 08 22:03:28 the java files find each other just fine Jan 08 22:03:30 TacticalJoke: yeah, main.xml Jan 08 22:03:39 groxx, whenever I try to do that with multiple gradle projects, it means r Jan 08 22:03:40 but it's not linking against the generated .so in the aar dependency Jan 08 22:03:40 kailoAtWork: http://tools.android.com/tech-docs has quite a bit of info, otherwise it's basically all Gradle, which has a ludicrous amount of documentation (which I mean mostly in a bad way. it takes forever to find anything useful.) Jan 08 22:03:43 for my main activity Jan 08 22:04:26 kailoAtWork: aaah, native code? Studio doesn't support it yet. but: is it not including the .so file in the output apk? Jan 08 22:04:51 groxx, yes Jan 08 22:05:03 hmm, that should work Jan 08 22:05:05 Are you sure you set the ListView's layout_width to "match_parent"? If so, I think I'd try setting android:background="#ff0000" or something for each of them, to try to figure out where they are. Jan 08 22:05:14 if I have an app that depends on my core module (jni + java), the app can call java functions in the module that later call jni Jan 08 22:05:16 however Jan 08 22:05:42 if I have my plugin module (jni + java), which depends on the core module (jni+java), it can't link against the .so in the generated core aar Jan 08 22:05:50 Or perhaps you're not adding anything to the ListView and getting confused about its presence? Jan 08 22:05:52 so it fails at compile time Jan 08 22:06:12 kailoAtWork: ick. definitely sounds annoying. Jan 08 22:06:33 groxx is there any way to avoid it? I'd rather not extract aars and copy around .so's Jan 08 22:06:58 TacticalJoke: i'll change fill to match across the whole project. back in a moment Jan 08 22:07:00 kailoAtWork: I assume gradle has irc rooms, I'd probably try that. nearly all of the build behavior is dictated by gradle (and the Android plugin, but still), not Studio, so gradlers might have ideas Jan 08 22:07:06 BTW, in reference to your XML comment, wrapping a ListView in a ScrollView is strongly *not* recommended by the Android people. Jan 08 22:07:15 chars6: That shouldn't make any difference. Jan 08 22:07:18 But it's a good idea anyway. Jan 08 22:07:21 ok Jan 08 22:07:55 kailoAtWork: I have no idea, unfortunately. have you tried compile project() for _both_ modules? Jan 08 22:10:33 kailoAtWork: fwiw this: http://tools.android.com/tech-docs/new-build-system/user-guide links to this: http://gradle.org/docs/current/userguide/multi_project_builds.html which is probably relevant. but I'm not familiar with that part beyond the very-very-basic stuff. Jan 08 22:12:21 kailoAtWork, wait, your native NDK build script has to link to something in another AAR? Jan 08 22:13:04 that is with GCC linker? Jan 08 22:14:17 TacticalJoke: ok, this isn't making much sense. i set the listview and buttons backgrounds to red and blue, respectively and nothing changed Jan 08 22:15:04 TacticalJoke: i changed the content of the list to make sure i'm installing the right file and that worked, so it's not that it isn't building or compiling the wrong file Jan 08 22:15:22 does anyone happen to have an idea why, if I use the technique described here: http://css-tricks.com/NetMag/FluidWidthVideo/Article-FluidWidthVideo.php for embedding youtube videos that automatically resize, that they wouldn't show up in an android webview? Jan 08 22:15:44 TacticalJoke: i'm just looking at the list (1 item in it) on a black background Jan 08 22:15:45 specifically the technique described Jan 08 22:15:51