**** BEGIN LOGGING AT Thu Jun 19 02:59:59 2014 Jun 19 03:01:50 heh thats interesting Jun 19 03:02:05 I was reading this also holds true for the Amazon app store. Jun 19 03:03:12 i guess lots of android devs are putting their private keys in the apk too Jun 19 03:03:36 that sounds like a good idea, at a glance. Jun 19 03:04:16 I can see that given the human resources available right now it would be very easy to duplicate an app Jun 19 03:04:35 also I assume many of the copies are malware and stuff Jun 19 03:04:45 Or open source Jun 19 03:05:17 FOSS is always a good thing ;) Jun 19 03:05:37 I went over 5 million downloads cloning an open source app Jun 19 03:05:52 FBReader Jun 19 03:06:36 what does it do? Jun 19 03:06:52 You can read books Jun 19 03:07:03 I did some work on it though Jun 19 03:07:50 I admit I wish I could find the source for the Google Plus app, there are some bugs I would like to fix Jun 19 03:08:05 it's one big bug really, isn't it ? Jun 19 03:08:12 heh Jun 19 03:08:53 Google can be really incompetent when it comes to app dev, or maybe, arrogant is the right word. Jun 19 03:09:24 almost as if they don't care to test anything except on Nexus Jun 19 03:09:37 get a nexus then Jun 19 03:09:51 I was wondering if anyone knows how to fix this. I'm in Activity C of my application. I press home, and press multi task, and click my application. I'm back at C. I press home, open the app drawer, click my app and I'm on A. Same thing if I go home and click on my app icon on the home screen. Back to activity A. Whats with that?! Jun 19 03:10:40 I am not sure I am right, I was trying to be forgiving, I suspect they just don't care to fix bugs because they think it does not matter. Jun 19 03:11:48 anyway, its one thing I miss about pure linux dev, being able to get at the source. Jun 19 03:12:36 sounds like you need to store stuff when you lose focus Jun 19 03:12:49 and then restore it, etc Jun 19 03:12:58 using OnPause and OnResume maybe Jun 19 03:30:23 I guess now that Asus is making the Nexus its ok to get one Jun 19 03:37:21 Carbonflux which nexus ? Jun 19 03:37:39 10 inch? Jun 19 03:37:46 probably 8 Jun 19 03:38:37 I just try to avoid Samsung when I can because I have personally had more problems with their hardware than any other vendor, this is a subjective opinion clearly Jun 19 03:39:03 We’ve had nothing but good luck with our Nexus 10s. Jun 19 03:39:44 i wish dev console gave some stats on screen size Jun 19 03:40:43 If I start my app and navigate from Activity A > B > C then I'm in Activity C of my application. I press home, and press multi task, and click my application, and BAM. I'm back at C. This is the result I want. If at this point I press home, open the app drawer, click my app icon... and WHOA. I'm on A. This is not intended. The same thing happens if I go home and click on my app icon on the home screen. Back to activity A. Whats Jun 19 03:40:46 I got samasung's galaxy nexus and it's pretty nice Jun 19 03:40:47 Anyone have any ideas? Jun 19 03:40:48 I got an Asus FHD, its been perfect, except for the G+ app, heh. Jun 19 03:42:02 ya I had an idea eghdk Jun 19 03:42:50 are you handling onPause and onResume correctly? Jun 19 03:43:25 you might need to reset the activity in onResume Jun 19 03:44:01 Hmm... I just might have found the problem. Jun 19 03:44:21 3 times in the app I setFlags() on my intent. Jun 19 03:45:00 I have no idea why this was added. I'm guessing a while ago... but also.. I have no idea why adding it is breaking the launch of the application? Jun 19 03:45:55 did you try stepping thru it in the debugger? Jun 19 03:46:48 are there any android models that don't play h.264 and/or aac in video files? Jun 19 04:27:18 mmm that 'firefly' feature on the 'fire phone' looks alright Jun 19 04:29:20 you mean Amazon Goggles? Jun 19 04:29:32 / Shazam Jun 19 04:29:35 yeah but it has pretty glittery lights, googles doesn't have that Jun 19 04:30:01 i'm sure i'd use that all the time Jun 19 04:30:22 it's one of those things "oh that's really cool", but it never works when you want it, so you never bother even trying Jun 19 04:30:31 like i do goggles and shazam Jun 19 04:31:14 gonna be kinda weird to walk into a store, point your phone at an item, and firefly it :D Jun 19 04:31:43 i think thats why BestBuy exists Jun 19 04:34:36 ok i'm going to ask a beginner question Jun 19 04:35:10 no you can't do network ops on the main thread Jun 19 04:35:17 so, having used fragments enough, i mostly get it. but when doing master detail specifically, is it more modern / best practive to put those in the sae activity ? Jun 19 04:36:28 the old google blog had them in separate activities for the phone case Jun 19 04:36:50 just wondering if that still holds, still - as it did then - seemed kinda lame Jun 19 04:38:11 so far i was assigning fragments to one activity by conceptual grouping and/or master-detail Jun 19 04:38:25 so even for the phone case i have m-d in one activity Jun 19 04:38:34 maybe i'm not getting something Jun 19 04:40:59 do you need to comport it ? Jun 19 04:41:16 comport? Jun 19 04:41:35 my guess is the design docs were written that way to emphasize the nature of the encapsulation Jun 19 04:41:43 you think i should hook them together with com port eh ? Jun 19 04:41:45 :) Jun 19 04:41:48 heh Jun 19 04:42:03 oh that's the wrong word hmm Jun 19 04:42:18 "contain it in-itself" Jun 19 04:42:22 is kind of what i meant Jun 19 04:42:42 i think mark murphy did a m-d session at a recent droidcon, would have liked to see that Jun 19 04:42:46 i had the same notion too, so i just used one activity, my guess is they wanted to be "logically" backwards compatible Jun 19 04:43:25 well, i dont use 1 activity for the whole app; the activity is for 'conceptually related stuff' Jun 19 04:43:38 just wondering if m-d falls into 'conceptually related' Jun 19 04:43:48 i guess .. Jun 19 04:44:35 will be fun to see how iosched 2014 is structured Jun 19 04:44:49 as long as roman nurik still worked on it, and not some intern Jun 19 04:46:27 i would say the idea is they used a seperate activity since it is easier to leverage the xmlness Jun 19 04:46:36 that android studio navigation editor will be nice when it gets fragment support … but i'm kinda nervous there, that they try to gen code Jun 19 04:46:49 but if you can handle that on your own, since it is conceptually related, then why make a seperate activity you don't really need? Jun 19 04:47:54 can a class implement more than one thing? Jun 19 04:48:05 jamesson sure Jun 19 04:48:15 in other words, can I say baz implements foo omplements bar? Jun 19 04:48:23 *implements Jun 19 04:48:40 implements foo,ba Jun 19 04:48:43 ya Jun 19 04:49:01 oh so I can even use comma delimited? Jun 19 04:49:03 jamesson, are you asking foo implements a implements b or foo implements a, b? Jun 19 04:49:17 lasserix: either way Jun 19 04:49:30 lasserix: or, do they do different things? Jun 19 04:49:49 this is a java question, but you are talking about classes and interfaces Jun 19 04:50:13 foo implements a implements b means a which is an interface implements b which is also an interface, and foo is the class that implements a Jun 19 04:50:31 foo implements a, b means a and b are intefaces and implemented by the class foo Jun 19 04:50:46 lasserix: sorry, I really do wish I had done more prior java work, but as it stands my java is what it is Jun 19 04:50:54 oh no problem Jun 19 04:50:57 but, thanks, that's actually very useful Jun 19 04:52:25 also the first one is impossible Jun 19 04:52:39 because an interface has no implementation, the implementing class does the implementation Jun 19 04:52:45 lasserix also wondering if using nav-drawer in the activity, with the detail section not being represented in the drawer … maybe thats a good scenario for breaking them into separate activities Jun 19 04:53:05 but since you are saying a implements b, then a MUST implement b but by definition a cannot implement b since it is an interface Jun 19 04:53:35 so to answer your question directly, a class can implement one to many interfaces, syntax is to seperate by comma Jun 19 04:53:41 (foo implements a, b) Jun 19 04:53:51 shoulda just said that to start with haha Jun 19 04:54:07 lasserix: perfect. Now i actually completely understand how fragments work. Jun 19 04:54:20 bankai_au: yeah but for his java learning thought i would spell it out a little more clearly, can be confusing ;p Jun 19 04:55:02 jamesson now, what happens when you have to implement foo twice. if the protocol has no way to differentiate the source, then you don't implement those as 'class x implements foo' but make 2 private inner classes Jun 19 04:55:53 but then you can pass x around the same way Jun 19 04:56:23 because it violates Liskov substitution principle Jun 19 04:56:46 oops, should say 'then you can't pass x' Jun 19 05:00:53 g00s: in other words, 2 implements from the same fragments for instance? Jun 19 05:01:20 jamesson i only bring this up because it happens often , you have multiple onClick listeners Jun 19 05:01:41 you could say Fragment implements View.onClickListerer ... Jun 19 05:02:01 but if you have to have multiple listeners, it becomes cumborsome Jun 19 05:02:10 g00s: in the same fragment, right? Jun 19 05:02:18 jamesson yes Jun 19 05:02:46 g00s: yes it seems intuitive that multiple onclicklisteners in one fragment is a bad idea Jun 19 05:02:46 in that onClick(View v) its ok but kinda lame to say if ( v == foo ) then if ( v == bar ) then ... Jun 19 05:03:21 and java doesn't let you switch on reference to an object (switch v) { case foo: case bar: } Jun 19 05:04:08 often they are defined as anonymous inner classes (Leeds hates those) Jun 19 05:04:17 I do! Jun 19 05:04:20 XD Jun 19 05:04:27 Hi All Jun 19 05:04:36 hey maybe we get lambdas at i/o XD Jun 19 05:05:11 yes, in buckets Jun 19 05:05:19 I want 5 kilos Jun 19 05:05:33 few days back when I created a project and added a new activity to it I was able to see the back arrow symbol in the actionbar but today when I created a new activity inside a project I dont see any option to go back Jun 19 05:05:37 any idea why? Jun 19 05:05:44 i still haven't tried retrolamda, i can use that if desperate enough Jun 19 05:05:51 is it that I did not extend Actionbar? Jun 19 05:06:48 I used to select the Blank activity Jun 19 05:07:13 Is there any option to add the back arrow symbol now? Jun 19 05:07:46 g00s: why would like to use retrolambda ? Jun 19 05:07:50 it looks like big hack Jun 19 05:08:02 gordon_ yeah thats why i'm not using it :P Jun 19 05:08:13 I'd rather use scala / kotlin or whatever Jun 19 05:08:41 i like using whats officially supported Jun 19 05:08:54 if google said 'scala, now!' i'd do scala for sure Jun 19 05:09:55 not to get into that whole argument. i think the android apis were shaped by java, and i'd have to be convinced using another language makes much difference Jun 19 05:09:58 nuh they'll go for swift for sure Jun 19 05:10:07 heh Jun 19 05:10:13 bankai_au++ Jun 19 05:10:18 swiftDart Jun 19 05:10:18 I'm sure they will Jun 19 05:12:26 https://lh6.googleusercontent.com/-ymrk4xKjqIs/U6Bn6S84_6I/AAAAAAAAQxA/o2vqyLcGIds/w896-h598-no/uxreview-copy.jpg Jun 19 05:12:29 so much google Jun 19 05:12:42 oh, what loser has all that junk ? Jun 19 05:13:07 i have a Windows Phone, Nexus Tablet, and Mac laptop XD Jun 19 05:13:20 * g00s doesn't put eggs in one basket Jun 19 05:13:44 g00s: speaking of rxjava ... i think it's funny that of all people in the world MS came up with RX... they have the most block happy OS in the world Jun 19 05:13:45 makes life interesting Jun 19 05:13:59 bankai_au: google employee :D Jun 19 05:14:33 bankai_au that guy was pretty smart (eric) Jun 19 05:15:07 i got the impression rx was a research project that eventually made its way into the platform Jun 19 05:15:17 ahh Jun 19 05:15:27 is it in windows now? Jun 19 05:15:41 its on windows phone, not sure about others Jun 19 05:17:10 eric left MS btw Jun 19 05:17:17 what's his last name? Jun 19 05:17:20 meijer Jun 19 05:17:25 g00s: rxJava is based on that ,net functional extensions Jun 19 05:17:44 and guy who was working in ms was working on rxJava too Jun 19 05:19:26 i have to see if spring reactor works on android again Jun 19 05:24:23 i'm sure bankai_au is working away at rxSwift Jun 19 05:24:49 yep, almost finished actually Jun 19 05:24:57 \o/ Jun 19 05:25:04 then i have to write teh bindings for robovm and we'll be sweet Jun 19 05:25:21 bankai_au will be famous Jun 19 05:25:29 i'll be able to say 'i chat with bankai_au' Jun 19 05:25:31 for hacking up shit no one will use ? nice nice Jun 19 05:27:56 sorry friends I got the solution it through AndroidManifest file Jun 19 05:28:19 niru forget to put the parent ? Jun 19 05:28:26 yes :) Jun 19 05:28:54 g00s: didnt know about spring reactor Jun 19 05:29:17 gordon_ if you use it with lmax, it definitely wont work on android Jun 19 05:29:17 g00s, what if I have a back button and what to go to the parent. What listener should I put for the button? Jun 19 05:29:21 looks terrible anyway Jun 19 05:29:28 but there is another option Jun 19 05:29:30 dont want to use it Jun 19 05:29:49 niru ctivity has something like onBackButtonPressed Jun 19 05:29:50 g00s, will moveTaskToBack(true); work? I directs me to the home directly without the previous page? Jun 19 05:29:53 8activity Jun 19 05:30:00 ah ok.... Jun 19 05:30:11 java 8 support looks better Jun 19 05:32:54 gordon_ did you work for google, or was that just a picture of a googler's stuff ? Jun 19 05:36:04 just a picture of googler Jun 19 05:36:26 * capella hates when I'm trying to help someone with something I'm not sure I understand, and they announce "got it" and just drop off the channel Jun 19 05:36:52 TELL ME FIRST !!!!! :p Jun 19 05:39:15 g00s: but working for google might be fun Jun 19 05:39:50 probably is :) Jun 19 05:40:43 there are people who stop working for google so you never know Jun 19 05:41:16 wonder if I would pass interview :D Jun 19 05:41:19 must try one day Jun 19 05:47:18 actually being a code monkey at google sucks from what i hear Jun 19 05:47:24 it sounds glamarous, but... Jun 19 05:47:38 even jbq came to work at yahoo ;) Jun 19 05:48:36 yahoo is hiring android devs btw, loads of them Jun 19 05:48:44 kinda weird we previousily had the cult of personality (i'll gloss over those famous characters in history) and now that corporations are people too, we basically have cult of corporate personality ;p Jun 19 05:49:49 wabz: yahoo? wher Jun 19 05:49:49 e Jun 19 05:50:12 sunnyvale, CA Jun 19 05:50:59 eh.. wrong country Jun 19 05:51:08 hmm.. what about australia Jun 19 05:51:18 I may be hiring shortly Jun 19 05:51:34 let me know when you open office in japan ;) Jun 19 05:51:45 yahoo japan is a bit different Jun 19 05:51:49 it's a joint venture Jun 19 05:52:22 yeah Jun 19 05:54:45 If I add social sign in to my app what happens if the user decides to delete his social account? Jun 19 06:17:48 wtf is going on my damn R file isn't building Jun 19 06:18:00 maybe syntax error in xml Jun 19 06:18:09 try building from the command line Jun 19 06:19:59 whats that? Jun 19 06:20:03 is that ant debug? Jun 19 06:21:33 g00s what is the command for that I'm on linux Jun 19 06:21:38 can I get any link for how to connect to sqlite through ADT and start Jun 19 06:21:44 any startup tutorial Jun 19 06:22:08 I dont find it in the developer.android.com Jun 19 06:22:21 dazpetty look at the docs for 'android update project' and then make sure you have ant installed Jun 19 06:22:29 i've been using gradle, don't really remember Jun 19 06:22:50 now thats fucken great, its been working before and now I've gotta run around like a fucken idiot Jun 19 06:24:51 can I get any link for how to connect to sqlite through ADT and start Jun 19 06:26:28 dazpetty: are you using Eclipse? Jun 19 06:26:41 yeah Jun 19 06:27:01 dazpetty: so, when I was on eclipse that was a constant problem. Short term solution was to do a clean and build again. Long term solution is to move to IntelliJ Jun 19 06:27:09 so what am I supposed to do now? just rummage through xml files as if i can remember how they are all supposed to look by haeart Jun 19 06:27:42 *sigh I've been told to move to IntelliJ before Jun 19 06:27:47 I guess I should Jun 19 06:28:18 dazpetty: yeah. I think after the 6th time I got this R not found I said fuck it and moved. Jun 19 06:28:38 well it makes me feel good to know I'm not the only one Jun 19 06:28:42 if it doesn't build, there should be an error message somewhere - unless eclipse is hiding it Jun 19 06:29:57 what is with the intellij liscence? Jun 19 06:30:04 I'm supposed to pay if I go commercial Jun 19 06:30:13 ? Jun 19 06:30:53 dazpetty: no Jun 19 06:31:06 dazpetty: the community one is good enough. the "Ultimate" one is just for more features, etc Jun 19 06:34:29 gradle is a kind of thing to make it so it doesn't matter whether you develop it eclipse or intellij or netbeans, that it should work together right? Jun 19 06:36:10 dazpetty: kinda, although I still use maven, since support for that is more solid than gradle Jun 19 06:37:41 ahh Jun 19 06:37:50 I just cant work today Jun 19 06:37:53 my head wont get there Jun 19 06:37:53 dazpetty: ? Jun 19 06:37:55 its anoying Jun 19 06:38:13 hey thepoosh Jun 19 06:38:22 what seems to be the issue? Jun 19 06:38:39 R file problems Jun 19 06:38:50 and the second tutorial at developer.android.com not going well Jun 19 06:39:00 that means one of your xml files didn't parse correctly Jun 19 06:39:15 yeah but i have no idea what or where Jun 19 06:39:42 seriously though, doesn't Eclipse tell you where the error is??? Jun 19 06:39:46 does one of them have a red spot? Jun 19 06:39:55 Leeds: it does Jun 19 06:40:31 well i just deleted it and I'm starting again Jun 19 06:40:37 i notice the tutorial says Jun 19 06:40:49 to add this: Jun 19 06:40:55 to tha manifest file Jun 19 06:41:12 but it seems the project is allready setup to read from styles.xml Jun 19 06:43:45 then it says to add android:icon="@drawable/ic_action_search" Jun 19 06:43:46 and android:title="@string/action_search" Jun 19 06:43:46 to menu/main_activity_actions.xml Jun 19 06:43:48 dazpetty: http://tools.android.com/recent/androidstudio061released && http://tools.android.com/download/studio/canary/0-6-1 Jun 19 06:44:47 whats that? I'm allready installing intelliJ Jun 19 06:45:08 dazpetty: IntelliJ IDEA just for Android Jun 19 06:45:10 dazpetty: are you trying to fix your existing error, or follow a tutorial? Jun 19 06:45:17 tutorial Jun 19 06:45:52 dazpetty: https://en.wikipedia.org/wiki/Android_Studio Jun 19 06:46:39 Can I use sqlite database with the emulator. I mean can I create an application to store data in the database and retrieve data through emulator or do i need a device Jun 19 06:46:55 niru: You can use the emulator for that. Jun 19 06:47:05 CodePulsar, ok Jun 19 06:50:53 i got bd exp with AS Jun 19 06:54:55 bloody hell, my fonts look aweful in intellij Jun 19 06:57:42 anybody else got this? Jun 19 07:06:30 increase font size, change appearance Jun 19 07:06:43 change your desktop environment theme Jun 19 07:06:57 dazpetty: Are you on Ubuntu ? Jun 19 07:08:50 can i have listener on asyntask? when task exits? Jun 19 07:12:50 yes rimad Jun 19 07:27:39 I plan on using a framework like phonegap, is someone using phonegap in here? Jun 19 07:28:05 mpajor: there's also #phonegap where you might have better luck Jun 19 07:28:36 YuviPanda: just jumped in there Jun 19 07:28:39 cheerios :-) Jun 19 07:40:02 Hi, I try to load my local html into a webview with loadDataWithBaseURL. The html is visible but the path is not correct. It's in my Internal Storage, in /data/data/bt.bitmunks.poperinge/files/html, but with that path it isn't working, what should the path be? Jun 19 07:51:42 hello. android studio is trying to use jdk 1.9 when I have 1.7 installed Jun 19 07:53:04 vedu: JDK 1.9 doesn't exist yet Jun 19 07:53:53 CodePulsar: yes. I am getting this error for any build: http://pastie.org/9304401 Jun 19 07:55:24 vedu: Android Studio will try to locate a JDK installation directory which will be used to run the IDE. It'll try (in order) to search for the JDK using the environment variables: STUDIO_JDK, JDK_HOME, JAVA_HOME in PATH. Jun 19 07:55:44 vedu: You have to change the value of the variable that it is set to point to the JDK 1.7 Jun 19 07:56:08 vedu: Are you able to run Android Studio ? Jun 19 07:56:16 lol Jun 19 07:56:28 jdk 1.9 Jun 19 07:56:33 CodePulsar: yes Android Studio works just fine. Jun 19 07:56:48 vedu: Then change the language level for the project, You can find that in settings Jun 19 07:57:00 I downloaded and unpacked the newestone a week ago, and then updated it Jun 19 07:59:41 I cannot find "language level" in file>settings Jun 19 08:01:12 vedu: http://www.jetbrains.com/idea/webhelp/project-general-settings-page.html Jun 19 08:01:22 vedu: File | Project Structure | Project Jun 19 08:02:12 CodePulsar: right. sorry for my trivial questions Jun 19 08:03:07 which one should I use to remove that error Jun 19 08:03:31 vedu: 1.7 should work fine, if it doesn't use 1.6 Jun 19 08:03:50 I'm not sure that'll fix the error maybe there's a bug in AS Jun 19 08:07:30 CodePulsar: setting language level to 6 fixed it. I am using 1.7 only Jun 19 08:07:41 CodePulsar: thank you. seems so trivial now Jun 19 08:08:05 Hello, anyone know how to represent a float in json? Jun 19 08:09:06 lasserix, maybe this can help http://www.tutorialspoint.com/json/json_data_types.htm Jun 19 08:09:44 Number type i think you want Jun 19 08:10:18 thanks Jun 19 08:10:29 Hey Jun 19 08:10:30 lasserix: http://tools.ietf.org/html/rfc4627#section-2.4 Jun 19 08:10:43 note 10.1 2k14 arrived. such a great display. Jun 19 08:10:52 but it lags as fuck Jun 19 08:12:17 vedu: You can find the thing you're looking for faster in Android Studio by using the Find Action shortcut i.e. CTRL + SHIFT + A. I hope you know about http://www.jetbrains.com/idea/docs/IntelliJIDEA_ReferenceCard.pdf :-) Jun 19 08:13:40 lasserix: http://www.json.org/number.gif Jun 19 08:16:08 CodePulsar: I just learnt it ;-) I just started using android studio Jun 19 08:16:31 hey does anyone know how to upgrade the shell when i adb shell ? Jun 19 08:16:50 /j #facebook Jun 19 08:17:00 lasserix: upgrade the shell on the device? Jun 19 08:17:24 Yeah like how can i add color schemes, autotab completion etc Jun 19 08:17:27 how do i add to the action bar, that bullshit tutorial on developers.android.com is out of date and ruining my life Jun 19 08:18:08 dazpetty: no, it's your dress sense that's ruining your life... Jun 19 08:18:20 lasserix: The shell Android is using is MirBSD Korn shell aka mksh, have a look at their documentation: https://www.mirbsd.org/mksh.htm Jun 19 08:18:46 I don't get google, they're the biggest company in IT, you think they'd have the common sense to make their OS easy to develop for Jun 19 08:18:47 dazpetty: seriously, a little more patience, a little less melodrama... Jun 19 08:18:50 damn u on a roll ;p Jun 19 08:19:18 lasserix: the adb shell is really meant as a basic debugging and system scripting tool - it's not meant as a general-purpose interactive shell Jun 19 08:19:35 dazpetty: look on stackoverflow or use the ah hem google search engine to search for up to date tutorials, you know since you can order the search results by date... Jun 19 08:19:56 Leeds: yeah, I was just hoping i could update at least for autocomplete ;p Jun 19 08:20:43 Sorry for a noob question, is it possible to run scripts out if it? Jun 19 08:20:51 lasserix: of course Jun 19 08:20:53 Basically I need to tail a log file on something I'm working on Jun 19 08:20:53 ok thanks lasseric Jun 19 08:21:40 Oh and the other thing is if I alter the file system, ie like redploy the app, the adb shell does not "know" i did that until i restart it, is this normal? Jun 19 08:21:51 lasserix: make sure your device has http://www.busybox.net on it Jun 19 08:21:53 CodePulsar: thanks, i will look into how to do that Jun 19 08:22:11 do you recomend a particular package for busy box? Jun 19 08:22:13 lasserix: the easiest way you can test is: adb shell busybox Jun 19 08:22:27 stock android doesn't have busybox Jun 19 08:22:51 ahh yeah I did install it already when I rooted the device Jun 19 08:23:20 lasserix: I don't have a recommandation. I'm using CyanogenMod on a rooted Nexus device. But from what I see there are apps even on Google Play that provide BusyBox Jun 19 08:26:19 hrm something is wrong with my preferences Jun 19 08:26:35 android.preference.Preference cannot be cast to android.preference.GenericInflater$Parent Jun 19 08:30:29 CodePulsar: yeah that is how i installed it, just curious: how do you install it not from an app from the store / or does it just come with the rom? Jun 19 08:30:51 hello. running adb devices, it shows my device as offline. Jun 19 08:31:10 I think I have rooted my device but I am not sure Jun 19 08:32:15 so if i use gradle, do i not have to have this R java file horseshit that CONSTANTLY dies on me? Jun 19 08:39:05 dazpetty you should take a break, get a pint of bitter or if you are in denmark roll up a cigeratte and take a long walk, find inner peace and give it another go. Jun 19 08:39:52 but yeah i believe it does Jun 19 08:40:03 grade is just a build system for handling dependencies Jun 19 08:40:07 ok thanks man I'm sorry Jun 19 08:40:17 are you just starting out? Jun 19 08:40:21 yeah.. Jun 19 08:40:33 I'm an android game developer Jun 19 08:40:34 don't worry it gets easier after the initial bum rush Jun 19 08:40:42 i had all those same problems Jun 19 08:40:44 I use a package called libGDX, its really good Jun 19 08:40:59 yeah i just started using that for some games im doing on the weekends :) Jun 19 08:41:11 arhh cool Jun 19 08:41:15 do you have anything up yet? Jun 19 08:41:25 no, i literally just started. Jun 19 08:42:02 i work at a company, but i was a little niave and thought i could cash out enough with my optiosn, but that looks like a very long shot, so back to coding after hours to make my millions :) Jun 19 08:42:03 ah ok Jun 19 08:42:21 lol Jun 19 08:42:29 yeah the greate thing about gdx is you can debug just in java Jun 19 08:42:36 or c++ Jun 19 08:42:47 well my website is www.dazpetty.com and you will find my in the libgdx channel here on freenode aswell Jun 19 08:43:14 I've never used c++ with android, it seems like more of these problems Jun 19 08:43:28 um if you are just starting out i highly recomend making some simple non game apps just to come to grips with how android dev enviroment works Jun 19 08:43:51 if you know what you are doing you'd be a fool not too, but Chris Preugot proved it's unecessary Jun 19 08:44:37 you should watch all of this guy's videos http://www.youtube.com/watch?v=7-62tRHLcHk Jun 19 08:45:13 http://arstechnica.com/security/2014/06/undergrad-breaks-android-crypto-ransomware/ Jun 19 08:45:21 oh man i think you just violating some serious unspoken rule of irc! now i know the face behind the nick argghhh it can't be unseen! Jun 19 08:45:22 ;p Jun 19 08:46:48 well I've been working with games and libgdx for a while, generally speaking I don't need to touch the android crap, its just java Jun 19 08:47:32 lasserix: not sure, haven't used an app from store to install busybox Jun 19 08:48:03 vedu: sudo adb kill-server && sudo adb start-server && sadb devices Jun 19 08:48:15 err Jun 19 08:49:01 daz are you making 3d first person games? Jun 19 08:49:30 lasserix, nope, their a bit outside the range of the technology Jun 19 08:49:31 think one of the toughest problems there is getting a natural navigation interaction Jun 19 08:49:36 libgdx isn't quite ready for it Jun 19 08:49:44 ? Jun 19 08:49:54 gdx totally supports opengl2es Jun 19 08:50:07 it does but you need more than that Jun 19 08:50:21 such as? Jun 19 08:50:45 well just some sort of reliable way to import/export levels for a start Jun 19 08:51:04 they've said themselves that the code isn't quite ready yet on that front Jun 19 08:51:15 can you point me to that link? Jun 19 08:51:18 i'm trying to override a method from the calendarview class and somehow it says the method doesn't belong to the superclass Jun 19 08:51:24 in which cases can't we override methods? Jun 19 08:51:32 i dont see how loading levels is necessarily the responsibility of the open source cross platform game engine ;p Jun 19 08:52:21 by loading levels i assume you mean importing them into the game, not when the user is actually playing the game, moving to a new section of the map? Jun 19 08:52:29 I'm sorry lasserix I'd probably just put my foot in my mouth if I tried to give you a detailed answer on this, but you can ask in the libgdx channel Jun 19 08:52:32 sorry i am just one of my game ideas is definatly a 3d first person type of thing Jun 19 08:53:13 its not impossible Jun 19 08:53:30 its just that in contrast to all the features the 2d engine has properly implimented it is a little bit lacking Jun 19 08:53:38 they even have bullet physics Jun 19 08:54:05 code it up yourself and contribute it ;p that's the idea with open source, right? Jun 19 08:54:15 otherwise you can shell out a couple hundred for unity :/ Jun 19 08:54:47 do you have any games out for download? Jun 19 08:56:20 so i extended a class and can't override a method from it. Ideas? Jun 19 08:56:27 have you thought about getting an oculus rift / or the non fb'pwned version of one? think there's great future market for games utilizing that Jun 19 08:56:45 jvrodrigues: the method can be declared final in the superclass making it non-overridable Jun 19 08:56:55 lasserix, it's not Jun 19 08:57:10 private void setUpHeader() Jun 19 08:57:11 are you using same access modifiers? Jun 19 08:57:15 yeah Jun 19 08:57:20 private is within the class only Jun 19 08:57:24 you need to use protected Jun 19 08:57:28 or package protected Jun 19 08:57:34 depending on your package space Jun 19 08:57:56 so i can't override private methods? Jun 19 08:58:02 no Jun 19 08:58:16 in java no, well not usually. you can with reflection if you really want to get fanzy Jun 19 08:58:32 ah Jun 19 08:58:33 didn't know that Jun 19 08:59:04 but public -> everyone private -> only the class that defines protected -> only subclasses no access modifer is "package protected" which means only within same package (where a subpackage is considered a package) Jun 19 08:59:13 can i copy paste an android sdk class and change the things i feel like changing? Jun 19 08:59:25 there is a delimiter between only subclasses and no acces modifier Jun 19 08:59:29 sure Jun 19 08:59:47 anyone familiar with crashes like this: java.lang.RuntimeException: Unable to start activity ComponentInfo{}: java.lang.RuntimeException: Parcel android.os.Parcel@429bfc98: Unmarshalling unknown type code 28 at offset 616 ? I've seen some reports every now and then from apps in google play but I've never managed to reproduce or figure out what causes these Jun 19 09:00:10 Zharf most the entire stack trace Jun 19 09:00:14 *post Jun 19 09:01:09 CodePulsar: tried. now my device is "offline" and I do not have root access. also, there is some mtp problem. I can only read data Jun 19 09:01:24 vedu try switching from mtp to camera Jun 19 09:02:14 lasserix: how do i java Jun 19 09:02:48 vedu: android update sdk --no-ui Jun 19 09:02:57 vedu: android update adb Jun 19 09:03:46 vedu: toggle USB debugging off/on in Settings > ‘Developer Options’ and see if the prompt comes up to request you to approve the RSA signature and allow your desktop to access the device Jun 19 09:04:12 vedu: try the above ^ Jun 19 09:06:04 my n5 won't connect unless i have it in mount camera (NOT mtp) mode Jun 19 09:06:13 thats weird Jun 19 09:06:23 Jesperhead: attend the International School of Barista Mastery Jun 19 09:06:40 ah you work at a starbucks? Jun 19 09:07:10 no but you asked me how do i java Jun 19 09:07:22 oh.. wow man its way too late, right over my head Jun 19 09:07:26 hehe ;p Jun 19 09:07:33 well that question is like wtf ...? Jun 19 09:07:35 ;p Jun 19 09:07:40 was said in jest Jun 19 09:07:50 hehe yeah way too late over my head too Jun 19 09:08:12 although i think i will use that at work just to see the look on peoples faces Jun 19 09:08:20 hahaha Jun 19 09:08:30 "umm excuse me, could i bother you for a moment, how do I ah hem terminal"? Jun 19 09:08:48 use it to talk trash too: Bro do you even ssh? Jun 19 09:10:37 vedu: after you update sdk and adb, do sudo adb kill-server && sudo adb start-server Jun 19 09:10:54 vedu: make sure you run the commands with sudo Jun 19 09:13:53 vedu: adb commands that is Jun 19 09:15:54 Hi all, I use the next code to decompress my zip and extract it in internal storage http://www.jondev.net/articles/Unzipping_Files_with_Android_%28Programmatically%29 but this operation takes a lot of time, is external storage faster? or is there a better decompress method? Jun 19 09:17:38 FrancescoV: Yes. Jun 19 09:18:03 FrancescoV: That guy is decompressing 1 byte at a time, use buffers Jun 19 09:20:02 FrancescoV: read in a byte[] buffer = new byte[4096]; and write in a BufferedOutputStream instead of FileOutputStream Jun 19 09:20:58 CodePulsar: something like this one? http://stackoverflow.com/questions/4504291/how-to-speed-up-unzipping-time-in-java-android Jun 19 09:22:23 like the 2nd anser Jun 19 09:24:26 FrancescoV: yes, you could also wrap the ZipInputStream in a BufferedInputStream Jun 19 09:25:21 FileInputStream fis = new FileInputStream(zipname); ZipInputStream zis = new ZipInputStream(new BufferedInputStream(fis)); Jun 19 09:27:40 I'd like to ask about the advantages of using CursorAdapter vs ArrayAdapter ? What is the difference between querying the database and then populate the array and give to the ArrayAdapter vs Giving a cursor to the CursorAdapter ? Jun 19 09:36:22 in my preferences.xml I have a log out button that I just need to launch my logout class (asynctask, no layout required, not an activity). How can I launch through the xml? I suspect it's an intent of some sort Jun 19 09:43:41 Hi, I've a class that extends Application, I want to access to this Application object from a Fragment but when I instantiate it with (MyClass) getActivity.getApplication() I throw a null pointer exception, how can I fix it? Jun 19 09:52:26 any way to just pull current logcat messages? adb logcat prints the whole thing (>10000 lines) Jun 19 09:56:05 R4md4c: in depends on how many rows the query returns, using a cursor allows you to fetch rows incrementally instead of ALL of them at once like ArrayAdapter Jun 19 09:56:37 CodePulsar: So we can say that CurosrAdapter is more memory efficient than ArrayAdapter ? Jun 19 09:56:52 R4md4c: yes Jun 19 09:58:23 I have textview in a listview. How can I set the text to be in the midle of the cell. What i mean by that is, that the text is now pushed to the line of the listview and I want it floating in the middle Jun 19 09:58:36 R4md4c: and performance wise it is faster to use a CursorAdapter if you have lots of records to return Jun 19 09:58:51 R4md4c: some people recommend using a custom adapter with a content provider Jun 19 10:03:13 CodePulsar: Seems that there is a consensus on always using ContentProvider to provide data for application Jun 19 10:18:03 ok. my app has login/logout functionality. logging is handled by my login class, and logging out by my logging out class. after logging in or logging out, I make changes to my app shared preferences in a few methods named "after_log_in()" and "after_log_out()", then call them from the login/logout activity. when i try it, I get nullpointerexeption on login.setShouldDisableView(true); Jun 19 10:20:34 you'd have to paste bin it Jun 19 10:20:52 meh, lasserix left already, oh well... if anyone else has any idea for this http://95aeac9178a305d6.paste.se/ Jun 19 10:21:45 i honestly couldn't work with parcels to save my life, sorry Jun 19 10:22:12 if you read it carefully, it's never touching any of my code :) Jun 19 10:22:16 jvrodrigues: heres my preferences activity: http://pastebin.com/XUpr93Hr Jun 19 10:22:27 and I've never managed to get this exception on any of my devices Jun 19 10:23:18 jvrodrigues: then, in whatever class (login or logout), i simply private preferences myPref = new preferences(); then myPref.after_log_in(); Jun 19 10:23:46 Hello, Could anyone help me understand how most androids app interact with an API ? Jun 19 10:25:06 Jesperhead, the login object is not defined Jun 19 10:25:35 yes it is Jun 19 10:25:37 private Preference login = findPreference("login"); Jun 19 10:26:01 try adding an if statement Jun 19 10:26:11 if(login != null} Jun 19 10:26:19 and you-ll see how you wont get that null Jun 19 10:27:03 i could be wrong tho, but its pretty much the only thing i can see Jun 19 10:27:10 has findPreference can return null Jun 19 10:27:18 as* Jun 19 10:28:21 Sigh, seriously considering using nested LinearLayouts because I just can't get a proper solution to work :( Jun 19 10:28:34 ew Jun 19 10:28:54 Estel, whats wrong with nested linearlayouts_ Jun 19 10:29:11 jvrodrigues: if they have weights (which is the point) they're really inefficient Jun 19 10:29:46 LinearLayout lLayout = new LinearLayout(this); int lLayoutID2 = lLayout.getId(); <--- getId() returns "-1". Why is that? Jun 19 10:30:26 jesperj: you haven't set an id? Jun 19 10:30:40 you mean a key? Jun 19 10:30:42 Estel: Oh it doesn't get one set automatically upon creation? Jun 19 10:30:44 I'm not sure what you were expecting? Jun 19 10:31:18 jesperj: nope. Has to be specified in xml or code Jun 19 10:31:23 How can I safely create non clashing resource IDs? Jun 19 10:31:25 end result: when first viewing preferences, the logout button is grayed out and unclickable, and the login button is enabled/clickable Jun 19 10:31:27 That makes sense then :) Jun 19 10:31:32 must I use contentprovider to work with with syncadapter? Jun 19 10:31:40 marrrk: namespace them? Jun 19 10:31:40 oh wow Jun 19 10:31:46 there is another jesper in here Jun 19 10:31:50 Estel: In code? Jun 19 10:32:39 jesper party Jun 19 10:32:50 setId Jun 19 10:33:33 ? Jun 19 11:04:03 Hi Jun 19 11:05:00 In adt can I create a new java file simply by rightclicking the hierarchy or its must to use new activity icon Jun 19 11:06:09 What I want is one save button should save the data to the database. But my onCreate method already has parameters for Bundle SaveInstanceState Jun 19 11:06:29 whereas the database needs it as onCreate(SQLitedatabase db) Jun 19 11:06:42 how can i go ahead with two onCreate methods Jun 19 11:06:55 ohoh you should read about databases Jun 19 11:07:04 preferences.java: http://pastebin.com/XUpr93Hr , logout.java: http://pastebin.com/rcYW8vmN Why is line79 of logout.java causing a null pointer exception? Jun 19 11:07:47 the save button should listen to the button click so I cannot remove the bundle instance Jun 19 11:08:10 well technically the NPE is at line 20 of preferences: logout.setShouldDisableView(false); Jun 19 11:08:12 onCreate(SQLitedatabase db) is not a method of activity but SQLiteDatabaseHelper.class Jun 19 11:13:31 danijoo, so you mean I need to extend the SQLDatabaseHelper? Jun 19 11:13:52 yes. You have to create a class that handles your database Jun 19 11:14:05 see http://www.vogella.com/tutorials/AndroidSQLite/article.html Jun 19 11:17:15 Can/Should I use shared preferences for a short dynamic list of strings? Or is a database better for that? Jun 19 11:19:02 database is for large datasets Jun 19 11:19:18 wouldnt bother to use it for small things because its lots of work. Jun 19 11:20:48 marrrk, that depends... handling lists and things like that in SharedPreferences is really tedious Jun 19 11:21:02 also remember, that sharedprefs are just an XML document, so every change requires a full rewrite of the XML Jun 19 11:21:07 Okay, I’ll probably need a db sooner or later. Jun 19 11:21:50 But in this case actually, I think it’s fine. Jun 19 11:27:06 hello Jun 19 11:27:58 makes sense to use only one main activity and lot of top level fragments (with a navigation drawer layout) for an entire application? Jun 19 11:28:46 ehm, I have also details fragment linked to the top-level fragments Jun 19 11:29:38 I don't get when to use activities over fragments right now (too newbie).. Jun 19 11:38:28 thanks danijoo I am going through the tutorial Jun 19 11:41:07 hello. How to add one project as library to another project in android studio Jun 19 11:44:58 vedu: with care Jun 19 11:45:22 vedu: Do you use Gradle? Jun 19 11:46:09 vedu: http://stackoverflow.com/a/19188384/313113 Jun 19 11:49:16 CodePulsar: no the project uses gradle but the library does not use gradle Jun 19 11:49:45 I am working on the library only, and I need to add it is as external sources Jun 19 11:49:45 i am trying to understand something. My MainActivity extends ListActivity. Still I can see an action bar in the emulator, when I haven't extended ActionBarActivity, why ? Jun 19 11:50:03 magic Jun 19 11:50:33 can someone clarify it for me ? I'm a beginner to android dev and quite confused Jun 19 11:50:49 prishabh: what xml layout are you loading? Jun 19 11:51:01 prishabh: with setContentView Jun 19 11:51:31 activity_main, CodePulsar Jun 19 11:51:49 prishabh: what is the theme of the activity in AndroidManifest.xml ? Jun 19 11:52:34 hmm, I just see android:theme="@style/AppTheme" in AndroidManifest.xml when searching for 'theme' Jun 19 11:53:18 is it that Activity by default has action bar, ActionBarActivity is just meant to support action bar for older devices/API ? Jun 19 11:54:01 Yes Jun 19 11:54:23 I see, thanks kakazza Jun 19 11:54:37 If you're new, I'd not worry about API level <15 and set minSdkVersion="15" Jun 19 11:55:06 By the time you feel comfortable enough with Android and have an app you want to publish there won't be many users on API <15 left. Jun 19 11:55:12 prishabh: do you have anything in styles.xml? Jun 19 11:55:17 my build.gradle has this "minSdkVersion 14" under defaultConfig { Jun 19 11:55:29 im targetting 9 + Jun 19 11:55:32 FEEL MY PAIN GUISE Jun 19 11:55:33 CodePulsar: yes,