**** BEGIN LOGGING AT Thu Jan 29 03:00:00 2015 Jan 29 03:34:32 that's a fantastic domain name xD Jan 29 04:15:02 oh man, forget kotlin https://github.com/lhartikk/ArnoldC Jan 29 04:16:03 it's showtime Jan 29 04:31:04 in the sdk manager... do i only need the latest build tools? (under Tools), or do i need to download the build tools for every API i want to build for(minimum api) Jan 29 04:31:44 i seem to remember being able to build for lower APIs using only the latest build tools but just want to check Jan 29 04:32:15 latest Jan 29 04:32:50 thanks Jan 29 04:43:19 g00s: I assume you've seen lolcode? http://lolcode.org/ Jan 29 04:44:00 I kinda wanna make an android variant of it, just to write a lolcat app in it. Jan 29 04:44:14 yeah this has been around for a while Jan 29 04:44:54 BUKKIT CheezBurger Jan 29 05:19:51 Hey, I am working on an android app using OpenGL ES and I would like to be able to use android's default UI system layerd on top of the render. I understand that I may be able to do this with ViewGroup... Are there any good tutorials on this? I have looked at the javadoc and haven't been able to make much sense of how to do this with my GLSurfaceView. I would also like to make sure that any touch events not handled by buttons Jan 29 05:19:51 on the UI are sent to my touchmanager for the game. Jan 29 05:20:12 In addition, is GestureDetector what most devs use for touch response themselves? Jan 29 05:20:25 Thanks in advance, and sorry for long read Jan 29 05:41:45 Mad3ngineer_: I haven't used GLSurfaceView, but this might get you going: https://gist.github.com/Groxx/bc09cc690974479ff9df Jan 29 05:42:04 thanks groxx! I'll read through that Jan 29 05:42:49 Mad3ngineer_: since GLSurfaceView appears in the XML before the Button, the button will be drawn over it. if you add a click listener on the button, the button will handle clicks - anything else _should_ fall through to the FrameLayout, which can forward events to wherever you need (set an onTouchListener) Jan 29 05:43:55 ah, right. Thank you so much Jan 29 05:43:57 I'm still figuring out the details of touch handling in android, unfortunately - not sure I can give you too many good suggestions beyond that :) check the developer.android.com site's tutorials / etc, they're pretty good. and the sample code. Jan 29 05:44:34 haha yeah, I am trying to use GestureDetector and ScaleGestureDetector, implementing those. Jan 29 05:46:43 yeah, probably start off extending SimpleGestureDetector, and working from there. I've got a few gesturedetectors working "together" in a reasonably complex view at the moment, but it feels pretty far from ideal - I'm not convinced it's the right approach. Jan 29 05:47:30 I'll read into it a bit. I am not happy with mine either... I still don't fully understand the whole system, but until I understand it, it is held together using staples and super glue xP Jan 29 05:47:42 When I get the hang of it, I'll go back and clean up Jan 29 05:48:35 :) one valuable thing / source of trouble that I didn't catch earlier on: parent-views can intercept touch events in onInterceptTouchEvent (or something similar), and children can requestDisallowTouchInterception(true|false). you can do some reasonably crazy stuff with that, for good or bad Jan 29 05:49:58 hmm, may be useful for some cases, but I don't think that would be an everyday thing Jan 29 06:18:13 how can I to backup the entire phone into img files? Jan 29 06:22:34 I'm playing around with some RxJava and planning out UI rotations. I have some URL requests that I'd like not to kill on rotation for instance if the user is loading a web page Jan 29 06:23:23 I believe I can set up the requests to monitor progress so that if the subscriber cancels the subscription, the http request just stops itself too. onprogress etc. Jan 29 06:25:43 LFS: try #android-dev Jan 29 06:27:54 this is android-dev Jan 29 06:27:55 groxx: android-dev is full of fuckers like you Jan 29 06:28:13 dude.. Jan 29 06:28:24 facepalm Jan 29 06:28:29 LFS: uh huh. because that'll help. Jan 29 06:28:37 just mistyped. Jan 29 06:28:41 groxx: ok mother fucker Jan 29 06:28:49 if you want an answer to your question about backing up an entire phone to image files, thats not the way to ask Jan 29 06:29:17 i mean, you can ask if you want, using that technique, but have fun waiting for an answer Jan 29 06:30:57 Mad3ngineer_: as if I give a fuck!!! Jan 29 06:31:29 dude, if you dont care then why are you still here waiting for an answer? Jan 29 06:33:00 groxx, I am working on getting GLSurfaceView integrated with the system, I seem to have it all XML coded properly, but the GLSurfaceView file... I screwed something up. I am getting java.lang.NullPointerException: Attempt to invoke virtual method 'void android.opengl.GLSurfaceView$GLThread.surfaceCreated()' on a null object reference. Here is the pastebin: http://pastebin.com/eNAed4Ss Jan 29 06:33:20 right after I did my first ignore too. thanks SimonVT :) Jan 29 06:33:28 thanks SimonVT! Jan 29 06:34:34 He seemed pleasant Jan 29 06:34:38 Mad3ngineer_: hm. I'll have to sleep pretty soon, but... Jan 29 06:34:49 yeah, no frets man. if you don't wanna answer, its all good Jan 29 06:34:50 are you calling on created yourself? Jan 29 06:35:07 sorry, surface created. Jan 29 06:35:13 you mean onSurfaceCreated? Jan 29 06:35:39 should I be super.onSurfaceCreated() for all of those methods? Jan 29 06:36:04 err, that doesnt work... Jan 29 06:36:06 it says it tried to call surfaceCreated when it crashed. Jan 29 06:36:25 if you can, generally you do. that might be an interface though Jan 29 06:37:00 ah, yeah, its an interface. no super. and yeah though, I'm not sure why it is crashing it. What should I have instead of super.onSurfaceCreated? Jan 29 06:37:09 I *suspect* you haven't fully set up the glsurfaceview, and the crash is the result. like it's missing a listener or something. Jan 29 06:37:31 but I haven't used it. Jan 29 06:37:50 OOOOH wow I forgot to set the renderer Jan 29 06:37:52 gotta recommend docs / sample code / google, sorry :/ Jan 29 06:37:58 a simple setGLRenderer(this) Jan 29 06:37:58 haha Jan 29 06:38:16 the days of being a new android developer... Thanks for all the help man :) Jan 29 06:38:26 groxx, if you are googling, i fixed it Jan 29 06:38:39 np :) Jan 29 06:39:11 ah there we go. seems to be working now Jan 29 06:40:38 SimonVT: I'm not wondering that you can kick, all asses do :) including your father and mother Jan 29 06:40:42 asses family Jan 29 06:40:56 how many other fucking nicks do you want me to come with? Jan 29 06:40:59 you piece of shit Jan 29 06:41:04 mother fuckers Jan 29 06:41:14 KALIN do you have nothing better to do than whine about getting kicked? Jan 29 06:41:16 kick this one too you sick fuck donkey Jan 29 06:41:20 I will come with anothr Jan 29 06:41:24 you piece of shit Jan 29 06:41:25 lol Jan 29 06:41:27 kick now Jan 29 06:41:31 hey ass Jan 29 06:41:38 you bitch ass Jan 29 06:41:39 dude you have no life Jan 29 06:41:42 you need one Jan 29 06:41:47 Mad3ngineer_: glad to hear it :) hope your evening goes productively, I'm off o/ Jan 29 06:41:58 aight, get some rest groxx :) Jan 29 06:42:05 Please just ignore him :) Jan 29 06:42:33 ok SimonVT Jan 29 06:45:04
  • no i have no life with mother fuckers like you ... in perfect world I fuck your face off if you talk to me like that but it's your good luck hidding behind keyboards you sick mother fucker bastards Jan 29 06:45:08
  • kick again now Jan 29 06:45:11
  • my ass Jan 29 06:45:14
  • fuckers Jan 29 06:45:28 Li: don't you have school tomorrow? Jan 29 06:45:41 oh god this is funny xD Jan 29 06:45:49 he described what he is doing Jan 29 06:46:01 Please just ignore him, deuteros__ Jan 29 06:46:15 I wish irc supported hellbanning Jan 29 06:46:19 ^ Jan 29 06:46:19 best way to deal with these idiots Jan 29 06:46:44 I wonder how long this is going to last Jan 29 06:47:15 New drinking game: take a shot for every time he makes a new nick Jan 29 06:51:05 The Visual Studio homepage shows an Android (emulator/simulator) screenshot: http://www.visualstudio.com/ Jan 29 06:51:56 heh Jan 29 07:20:56 yo guys Jan 29 07:21:02 having fun with android? Jan 29 07:21:37 trying to figure out why setRequestedUiOrientation() doesnt work' Jan 29 07:22:19 Sorry, neverworked with that method :) Jan 29 07:22:28 yeah, ill figure it out :) Jan 29 07:22:40 I'm working with PreferenceFragment at the moment, and trying to understand if I could use one of the objects to achieve image uploads (profile pics) Jan 29 07:22:52 or should I just custom code my preference screen with my ownset of view objects in a lyout Jan 29 07:23:07 I cannot say... I am just getting into android's UI system Jan 29 07:23:15 that stuff is all beyond me Jan 29 07:23:33 I am trying to layer a UI system on top of a GLSurfaceView Jan 29 07:24:53 I am very curious... How can I use one activity's xml file to store the data for multiple menus in a game, then switch between them? Jan 29 07:25:09 such as having your main FrameLayout, then the GLSurfaceView, then the different menus Jan 29 07:30:16 Hi, i'm currently programming java/android. There is just one thing i don't undestand about programming in general. How am I supposed to find all the right libraries and useful/important commands to achieve my goal. My approach is to look for tutorials, but how do they know? I can't just read random library docs. Jan 29 07:30:51 By Googling it usually Jan 29 07:31:32 Oracle has the Java docs and developer.android.com has the Android specific stuff Jan 29 07:31:49 Yeah, that i mean by 'tutorials'. 'Googling and see how other people solved it' Jan 29 07:32:26 There isn't an abundance of high quality Android tutorials out there unfortunately Jan 29 07:32:56 The Big Nerd Ranch book might be helpful if you want a well rounded introduction Jan 29 07:35:38 So someone is writing a good library. It happens that a random guy picks up that random library and writes his random solution for a random problem. Now this guy is either writing an online post or a book. Really? Jan 29 07:36:04 good morning everyone , can i change a viewpager's shadow that appears on the last item (if try to get next an ellipse shadow appears) Jan 29 07:37:45 I believe it's the ScrollView that draws that, different versions of android show different things Jan 29 07:38:34 d0LLy: I can't tell what you're asking. Jan 29 07:43:05 TacticalJoke: So, hence i want to create an interface with Java. How should/can i know that something like android.wdget.RelativeLayout or android.widget.Button exists? Jan 29 07:43:25 d0LLy: By reading the docs? Jan 29 07:43:58 if you have a good IDE, it looks things up for you in the libraries and shows you possible classes to use Jan 29 07:44:19 auto importing, and other stuff... not sure if that is the answer you want Jan 29 07:45:07 By reading tutorials, by going through the javadocs, by googling specific problems and seeing what solutions others have come up with.. Lots of ways Jan 29 07:45:08 having some android dev books helps a lot Jan 29 07:45:49 (not sure if my msg sent, i think i got d/ced). does anyone know if using Volley RequestQueue will do http pipelining? Jan 29 07:45:51 I have started with basic Java knowlege and google seems to be doing it for me... then again I am no big successful android dev... yet :) Jan 29 07:45:53 deuteros__: That's my point. this was a really basic and easy example. There are more complex/random tasks than creating an interface. Jan 29 07:46:11 d0lly, googling is the only sure answer Jan 29 07:46:18 d0LLy: What is your point? I don't understand. :) Jan 29 07:46:20 morning Jan 29 07:46:24 no one said it would be easy to make apps Jan 29 07:46:26 well, for me anyways Jan 29 07:46:39 no one said it would be eaasssaaayyy Jan 29 07:46:47 such a shame for us to paaart Jan 29 07:46:48 haha Jan 29 07:47:08 you are asking a wide question and the answer is to google things. You always have internet, right? So using google isn't a problem :) Jan 29 07:47:09 There are two dimensions: 1) having an idea of what exists (broad) and 2) knowing how to implement it (deep) Jan 29 07:47:23 ^ good analogy Jan 29 07:47:29 programming is problem solving Jan 29 07:47:38 Use tutorials and books to get a lay of the land, then use google and dig into a specific topic Jan 29 07:47:40 why are we talking about meta-things? Jan 29 07:47:42 Mad3ngineer_: Okay, google. But how do the ones posting the solutions know the libraries/methods to use? Jan 29 07:47:45 except we dont only solve the problems Jan 29 07:47:48 but we also make them! Jan 29 07:47:54 sometimes unintentionally Jan 29 07:48:10 d0LLy all of the libraries are out there Jan 29 07:48:17 those people probably googled to get the solution Jan 29 07:48:28 but how does google know? lol Jan 29 07:48:32 google so smart Jan 29 07:48:38 nah man Jan 29 07:48:42 one second Jan 29 07:49:00 the better question is, how does the website google links to know? Because someone wrote it. and google links to it because of web crawlers :) Jan 29 07:49:04 Mad3ngineer_: So they just randomly come across a good solution and this will information will spread. Jan 29 07:49:15 dolly i am going to give you a very helpful link Jan 29 07:49:17 http://developer.android.com/training/index.html Jan 29 07:49:31 im sure there are people who study the docs and experiment all day Jan 29 07:49:42 Sites such as StackOverflow have a voting system. Jan 29 07:49:44 read through this, and it has everything you will need for basic app development. If you get a problem you cant solve and need a new api function, Jan 29 07:49:48 go to stackoverflow Jan 29 07:49:49 It's not bullet-proof, but it works quite well. Jan 29 07:50:13 but really, that site has pretty much everything... God google did a good job documenting Jan 29 07:50:17 no one studies the docs man Jan 29 07:50:31 no one? Jan 29 07:50:35 no one. Jan 29 07:50:36 im sure someone does Jan 29 07:50:43 it's just that the way of figuring out a problem varies from one person to the other, for some people getting an SO answer is enough Jan 29 07:50:56 for others, figuring out primarily what a View is, then going from there, that's their way Jan 29 07:50:57 either way yeah odaym i agree though... Jan 29 07:51:04 the latter get more knowledge, you get a tiny answer Jan 29 07:51:20 for everyday programming, it is more effective to get the tiny answer Jan 29 07:51:23 they are more passionate about it than you, easy Jan 29 07:51:27 i assume thats your point Jan 29 07:51:28 i think the point is, there is no magical voice going to tell you exactly what you need all the time Jan 29 07:51:34 ^ Jan 29 07:51:52 being a program is figuring out what your problem is and figuring a way to solve it or divide it into smaller problems Jan 29 07:52:02 Same with life in general, of course. Jan 29 07:52:08 sure Jan 29 07:52:17 No magic man waiting to answer your questions. Jan 29 07:52:24 sadly, no xP Jan 29 07:52:29 man! Jan 29 07:52:48 I've been programming Android for like say 2 years, ok Jan 29 07:53:05 great, the ONLY stackoverflow contribution I made was facilitating a question taht someone here had the solution to Jan 29 07:53:19 njcomsec: Seems like there are people who study random docs. Thanks. Jan 29 07:53:41 and that's after alll of the things I've tried and done. someone who will write Otto or whatever, these people have studied wayyyyyy more than you Jan 29 07:53:58 its only fair Jan 29 07:54:18 but you are hit with end results, like a stackoverflow answer, and you assume this guy is no better than you..HE IS! Jan 29 07:54:22 step 1: know what you want to do. step 2: google solutions. step 3: pick one or a mixture and try it. step 4: google again and find an api that does what you want and wish you saw first off. step 5: be happy you tried it yourself first because you learned something. Jan 29 07:54:37 this has been discussed here for so long Jan 29 07:54:42 i know... Jan 29 07:54:49 step 6: post your solution in a blog Jan 29 07:55:01 I seriously need some sleep Jan 29 07:55:05 Asking here is also good. Jan 29 07:55:15 Or on SO or /r/androiddev, I guess. Jan 29 07:55:24 I got some helpful answers. but you have to be spefific, not such a wide problem Jan 29 07:55:58 the thing that I do the most is the following. When I'm googling for looking for a solution to some problem and I am faced with the solution that I sense is the most appropriate, I try that solution and I dont switch solutions when something comes up in the primary solution Jan 29 07:56:10 I keep on the one that everybody says "this is the way it should be done" Jan 29 07:56:14 until it's done Jan 29 07:56:37 switching solutions will end up giving me some shitty workaround that will always make me feel bad that I chose it Jan 29 07:57:34 it's just a matter of knowing how much you dont know Jan 29 07:57:42 yep Jan 29 07:58:13 It's a matter of not spending your time coming up with solutions for problems that have already been solved Jan 29 07:58:24 One of the things I am starting to learn as a programmer is to limit the scope of your code to what you need.... Here I am having tinkered with java for 3 or 4 years, and I am just starting to realise that... Anyone else have to learn that? Jan 29 07:58:32 you can't say that outright, no Jan 29 07:58:53 cause people who create code are the ones who know the exact meaning of not attempting to reinvent the wheel Jan 29 07:59:08 like say I want a gridview for my app, something that will allow me to rearrange the cells drag and drop and have them wiggle Jan 29 07:59:31 instantly I google for that. imagine there is no library for that. what do I do? I dont implement it, cause I have NO idea where to start with something like that Jan 29 07:59:52 that's the difference between me and a person who has written drag-n-drop gridview Jan 29 08:00:09 we are not equal at all Jan 29 08:01:06 there are few who are really hackers nowadays Jan 29 08:01:11 hi.. i've a question.. i known that it is impossible to have a full persistent service, but i would like to known what is the way to have a "persistent" content observer? Jan 29 08:01:17 we are just users for those hackers... Jan 29 08:01:44 I hate when people call skiddies hackers... Jan 29 08:01:55 on video games, "WAAA A HACKER!!!" ugh.... Jan 29 08:02:00 lol Jan 29 08:02:07 and the movie that just came out, Hacker Jan 29 08:02:09 or no, Blackhat Jan 29 08:02:15 yea they expanded their dictionary Jan 29 08:02:34 I haven't seen it yet Jan 29 08:02:38 worth seeing? Jan 29 08:02:50 I didnt see it, something with that title is unseeable Jan 29 08:03:07 haha Jan 29 08:03:22 Odaym: Agree a lot. Though it's no magic to start writing your own code from scratch Jan 29 08:03:26 also the only reason they used Blackhat instead of Hacker was copyright infringement xP Jan 29 08:03:32 probably Jan 29 08:03:38 *joking speculation* Jan 29 08:03:41 it's not magic at all, you're just copy pasting from Google docs Jan 29 08:04:09 the real work and real magic is when you write something like picasso or drag-sort-listview or some of those big libraries that we depend on Jan 29 08:04:17 real magic is when you write something that others can use to write magic Jan 29 08:04:19 BAM! Jan 29 08:04:44 but those people didnt do it after work with a cup of tea, they did it for their jobs, at their jobs, so its not like they are supermen Jan 29 08:05:07 thin line between what you think is superpowers and what 8 hours on the job can do Jan 29 08:05:38 that's not true Jan 29 08:05:47 yes it is, you ain't no einstein Jan 29 08:05:54 Man, I would love to own my own software company... Maybe an indie game company. That would be frickin awesome Jan 29 08:05:56 dream job Jan 29 08:06:11 how and which part isnt true, JakeWharton , I mean Jan 29 08:06:22 "those people didnt do it after work with a cup of tea, they did it for their jobs, at their jobs" Jan 29 08:06:25 not true Jan 29 08:06:28 yea, you did those libs at home? Jan 29 08:06:32 isnt it BY SQUARE? Jan 29 08:06:54 what about the kotlin paper/ Jan 29 08:07:05 the paper was all in my free time Jan 29 08:07:10 ActionBarSherlock was all in my free time Jan 29 08:07:11 ok, that one is understandable Jan 29 08:07:29 nine-old-androids? Jan 29 08:07:33 free time Jan 29 08:07:44 well, intersting conversation... I must be off to sleep. Nice to meet you all. Jan 29 08:07:46 I do stuff like that in my free time, but not so impacting Jan 29 08:07:49 I do a lot of hacking on my free time, some of it eventually bleeds back into my day job and a few times, became part of my job Jan 29 08:07:50 Odaym: Especially in programming modularity is very important. You can't write everything on your own. This leads to my original question. What is the best way to find solutions. Apperently it's google and stackoverflow. Jan 29 08:08:10 the best way to find solution is to find what the problem is, exactly.. Jan 29 08:08:12 books Jan 29 08:08:23 njcomsec: or books :) Jan 29 08:08:26 most of what you see everyday is a vague idea of what is needed or what you want Jan 29 08:08:29 talking to other progrmmers Jan 29 08:09:25 conversation really helps to get ideas going Jan 29 08:09:26 well yea yesterday I was working on something in free time and today Im implementing it on the job, but I dont go out to build some big things with other people in mind Jan 29 08:09:30 it's just not how I think Jan 29 08:10:03 I make apps of my own, sure, but nothing for other developers Jan 29 08:10:09 me too Jan 29 08:10:21 simply dont know what other developers need! Jan 29 08:10:38 I might know what ordinary people need though, therefore I make them in apps Jan 29 08:10:39 im just trying to make a living Jan 29 08:10:51 Odaym: other developers need what you need to get your job done more easily Jan 29 08:11:10 true, but to solve those kinds of things you have to be very knowledgeable of the meta-code :P Jan 29 08:11:16 If you wrote something to make your life as a developer easier, chances are that other developers might benefit from it too Jan 29 08:11:27 Most successful open source projects started exactly like this Jan 29 08:11:35 the code that lets ME write code, you have to read the source and whatnot, it's a big barrier between you and other developers Jan 29 08:11:38 i hve great respect for people who help others... but i dont have that luxary... im poor as hell and need to make money Jan 29 08:11:46 which is not magic either Jan 29 08:12:46 I read Masters of Doom some time ago Jan 29 08:12:50 you should all read it Jan 29 08:12:51 well i happily share my knowledge with others Jan 29 08:13:11 i mean i just cant afford to work on an entire project dedicated to helping people Jan 29 08:15:03 thing is, spending more time on anything will yield better results Jan 29 08:15:06 that's it Jan 29 08:15:10 im 30, live with parents and i literally have zero savings Jan 29 08:15:19 27, same Jan 29 08:15:20 so fucking what Jan 29 08:15:34 it isnt the point of the discussion Jan 29 08:15:45 ok Jan 29 08:16:08 Im not American though Jan 29 08:17:35 lol, why would my question on how to migrate users from paid to iap get downvoted in /r/androiddev Jan 29 08:17:49 because that subreddit sucks Jan 29 08:17:54 reddit is retarded Jan 29 08:18:04 I've not been able to get an atom's worth of benefit from it Jan 29 08:18:09 been subscribed a long time Jan 29 08:18:11 yeah, i wonder if people just downvote shit so their submission rises Jan 29 08:18:40 it's just "how do I get started" and "I made this and that app" Jan 29 08:18:50 plus news taken from Google blog repeated there Jan 29 08:19:03 "We did Google pull my app for infringement" Jan 29 08:19:05 Why* Jan 29 08:19:09 ^^ and that Jan 29 08:19:10 "How can I make this huge social app with video recording and CV in two days?@ Jan 29 08:19:11 I see that every day Jan 29 08:19:11 they love that Jan 29 08:19:39 *huge* social app Jan 29 08:19:40 lol Jan 29 08:19:54 seems precise enough Jan 29 08:22:37 is android filetransfer neccessary with 4.4.4? with my 4.2 phone, its file system would automagically show up when plugged into my mbp Jan 29 08:22:40 i just want to be able to move songs from computer to phone Jan 29 08:26:52 lizzin: try #android, this channel is for app dev Jan 29 08:28:48 SimonVT: ok Jan 29 08:30:05 what is countdowntimer onTick method ? Jan 29 08:30:52 It's a method Jan 29 08:31:29 what does countdowntimer onTick method do ? Jan 29 08:31:33 :D Jan 29 08:32:40 https://developer.android.com/reference/android/os/CountDownTimer.html#onTick(long) Jan 29 08:33:06 It's a callback fired on regular interval Jan 29 08:33:44 i will start a countdown when fragment oncreateView , everytime it will be reset so i guess i dont need it, right? Jan 29 08:35:39 If you don't need a callback on a regular internal, no, you don't need it Jan 29 08:36:00 is it possible to transfer data from an MCU to an Android phone reliably? how much data? Jan 29 08:38:18 can I debug memory leaks in Andriod Studio? Jan 29 08:38:34 counting live objects of each class would be pretty cool Jan 29 08:40:11 You can do a heap dump and open it in e.g. Eclipse MAT Jan 29 08:41:33 bahaba: Do you speak about an internal or external MCU? Jan 29 08:41:35 Surely there is something besides Eclipse that can count live instances Jan 29 08:43:57 bahaba: The amount of data depends on the BUS the MCU and the databus the phone uses. Jan 29 08:44:41 d0LLy: what do you mean internal and external? Jan 29 08:45:07 anyway, i mean: a sensor connected to an mcu, mcu connected to phone via micro USB, data exchange between them Jan 29 08:45:16 and you can send and receive both ways? Jan 29 08:46:55 can I count isntances in DDMS? Jan 29 08:47:54 bahaba: You are talking about a single Micro Control Unit (MCU), right? Jan 29 08:48:03 d0LLy: yes Jan 29 08:48:32 and is there an alternative to USB (not wireless)? Jan 29 08:49:48 bahaba: You connected a MCU with USB? They tend to have in- and out-put pins Jan 29 08:50:35 d0LLy: im just asking if it is possibl Jan 29 08:50:41 do they still make the ioio boards ? Jan 29 08:50:47 i need sensor -> send data to phone Jan 29 08:51:08 perhaps sensor needs to store info if phone contact is lost Jan 29 08:52:23 hey thebiffman Jan 29 08:52:25 oops Jan 29 08:52:30 hey thepoosh Jan 29 08:52:31 hey g00s Jan 29 08:52:32 :D Jan 29 08:52:38 heh XD Jan 29 08:54:22 bahaba: If you can address the MCU and it has some kind of API to communicate with, it should be possible to read/write data. Jan 29 08:54:59 d0LLy: ok ty. and USB is really the only alternative? Jan 29 08:55:04 for wired comm Jan 29 08:55:22 android 5 settings has a card like effect, I mean boxes. How can that be achieved with Preferences? Jan 29 08:56:21 not seeing in ddms or AS anywhere that I can count object instances.. Jan 29 08:56:25 MAT has standalone Jan 29 08:56:30 probably going there Jan 29 08:58:59 is getPreferences() different for every activity? Jan 29 09:00:11 astroduck: https://developer.android.com/reference/android/app/Activity.html#getPreferences(int) Jan 29 09:00:12 bahaba: Sorry, can't help you there, never connected a mcu via usb Jan 29 09:01:21 whats an mcu? Jan 29 09:01:56 SimonVT: So any way to get app wide preferences file? Jan 29 09:02:04 microcontroller Jan 29 09:02:49 SimonVT: How about PreferenceManager.getDefaultSharedPreferences() using application context? Jan 29 09:04:03 astroduck: Yep, getDefaultSharedPreferences always returns the same SharedPreferences Jan 29 09:11:05 Hi all, somebody experience with beacons? Jan 29 09:27:37 guys ive been trying it for an hour and i still couldn't do it. How to change fragments in a viewpager automatically ? for example every 5 sec Jan 29 09:30:32 @sci-fi check http://stackoverflow.com/questions/17080006/switch-fragments-after-every-5-seconds-using-view-pager-android Jan 29 09:31:15 let me try Jan 29 09:36:20 williamd: ok it works, now i should activate this when user clicked a button Jan 29 09:38:48 in a nested PreferenceScreen, the actionbar disappears, has anyone else faced this? Jan 29 09:46:22 client wants to hit a an API endpoint and may end up with overlapping requests but only wants the most recently requested response Jan 29 09:46:55 CloseableHttpClient or...where we going with this? Jan 29 09:54:21 Did anyone else notice a huge drop in in-app purchases yesterday/today? I have an app that gets at least $100 every day for the last couple years and today it was almost nothing. Jan 29 09:56:09 surf2b1, check app store positions Jan 29 09:56:25 knapper_tech: what do you mean? Jan 29 09:56:44 look up your plat store positions for various search terms and top rankings Jan 29 09:56:46 just checked another app. first one went down 86%, second one went down 70% Jan 29 09:56:51 ah Jan 29 09:57:03 could just be a reporting window glitch :-/ Jan 29 09:57:15 I'm using pretty old in-app purchase code. IAP v2 I think Jan 29 09:57:21 I hope so Jan 29 09:57:35 surf2b1, oh...might run some test purchases Jan 29 09:58:02 doing that atm. thanks. just wanted to see if anyone else had issues today Jan 29 10:01:10 yep, Google Play services was updated and now in-app purchases don't work for v2 Jan 29 10:01:12 damn Jan 29 10:01:15 surf2b1, IAP v2 got shot down yesterday Jan 29 10:01:32 they sent a warning about that about 3 months ago ^^' Jan 29 10:01:50 shows how often I check. In the dev console or via email? Jan 29 10:02:00 dev console Jan 29 10:02:06 not sure about email Jan 29 10:02:09 i get too many Jan 29 10:02:22 thanks. Guess number 1 priority will be upgrading that Jan 29 10:02:35 I get too many too so I usually skip over them Jan 29 10:07:15 Hey, can someone tell me if it is possible for an Android app to detect whether it was installed through the Play Store or manually via opening an APK? Jan 29 10:08:59 moeh: getPackageManager().getInstallerPackageName().equals("com.android.vending") is most likely the easiest way but it can be easily tricked Jan 29 10:18:58 I'm pretty sure there was no emails about IAP shutdowns Jan 29 10:19:32 but IAP v2 was old and horrible anyway Jan 29 10:22:26 surf2b1: Thanks! What do you mean by tricked? What possibilities are there? Jan 29 10:23:10 moeh: someone could install the package through adb and set the installer package name. adb install -i com.android.vending -r the.apk Jan 29 10:23:47 getInstallerPackageName() may also return null so if you use it just a heads up Jan 29 10:48:35 on lollipop how to remove shadow of Toolbar? Jan 29 10:53:40 Hello guys, can some of you diehard android developer rockstars give me a hint what the best way is to retain a timer object in case of orientation change? I was thinking to put it in MainApplication, but if there's a better and cleaner way, drop it :) I rather don't want to use a headless Fragment, because it's to overwhelming for just keeping a timer object. Jan 29 10:53:53 Thank you =D Jan 29 10:55:46 I just had an idea to save the last state of the timer and after recreating it, I can update the last state. Hmm, sounds not bad. Jan 29 10:56:28 So no need to retain Timer. Jan 29 10:56:45 Im a Rockstar :P Jan 29 10:59:29 Juse use a Singleton to manage your timers Jan 29 10:59:32 Subscribe to events Jan 29 11:00:54 SimonVT, MainApplication is a singleton too, if not, at least it's there all over the app's lifetime. Jan 29 11:01:32 No need to clutter your Application subclass unless necessary Jan 29 11:01:34 Hi guys, does anyone have an idea on this one: http://stackoverflow.com/questions/8346638/start-activity-from-exit-car-mode-broadcast-receiver ?? i`m experiencing exactly the same Jan 29 11:02:21 But I'm interested in your second comment, do you mean registering events like the Otto lib? Jan 29 11:03:57 Sure, or just a plain old listener Jan 29 11:04:43 SimonVT, thnx my friend :) Jan 29 11:25:20 Hello! I am going to make my first android app. I´ve heard I should make the app targeting one api. Where old and new phones can run the application. Jan 29 11:25:23 Which api is it ? Jan 29 11:27:04 target should probably be the highest one possible Jan 29 11:27:24 so.. api 19 ? Jan 29 11:30:43 HSaka: http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels Jan 29 11:30:45 21 Jan 29 11:31:11 thepoosh, ty. So anroid phones who uses 2.3 should be able to run the app as well ? Jan 29 11:34:17 HSaka, minSDK defines the lowest possible sdk Jan 29 11:34:25 for your first app, set it to 15 Jan 29 11:34:40 okey, thank you :) Jan 29 11:34:41 minSDKVersion=15, targetSDKVersion=19, maxSDKVersion=21 Jan 29 11:35:15 dont set targetSDKVersion to 21 yet. there was a bug with doing it (cant remember what it was though) Jan 29 11:35:30 So i should just set it to 19 then ? Jan 29 11:35:34 15,19,19 ? Jan 29 11:35:42 no. 15,19,21 Jan 29 11:36:07 okey : ) Jan 29 11:36:19 read: "my app is designed for andorid 4.4, but it can run on everything above 4.0.3 until 5.x" Jan 29 11:37:00 Don't set maxSdkVersion Jan 29 11:37:50 just leave it blank then ? Jan 29 11:38:02 or "interger" Jan 29 11:38:12 omit it Jan 29 11:39:23 okey, thank you Jan 29 11:40:47 Nothing shows up in my Navigation Drawer, any idea why, here's the code - http://pastie.org/9871066 Jan 29 11:41:03 hi Jan 29 11:41:21 how i can put <> inside the my text <> Jan 29 11:41:22 ? Jan 29 11:41:58 t0th_-_, escape them Jan 29 11:42:10 \<\> ? Jan 29 11:42:15 try it Jan 29 11:43:12 i will try encode it Jan 29 11:45:33 strange , not sure whats wrong Jan 29 11:53:22 thanks danijoo Jan 29 11:54:21 how do i make thread start running after another thread? Jan 29 11:54:39 is that what rxjava does? and what else gives me this kind of funcitonality? Jan 29 11:55:20 is it supported in android? Jan 29 11:56:04 call the method to start another thread when first one finishes maybe? Jan 29 11:57:33 Maybe Nick-S wants the second thread to catch the first thread. But it will have to run faster. Jan 29 11:58:09 ^^ Jan 29 11:59:48 haha Jan 29 12:00:02 yes but is there a pattern like that? Jan 29 12:00:15 i like code beutity Jan 29 12:00:20 like tell one thread to depend on other Jan 29 12:00:31 i think javascript has some nice stuff for it Jan 29 12:00:38 or one nodejs library i remember Jan 29 12:04:29 in android studio, which is the option to change the current line babackground color? Jan 29 12:04:40 i can find the color for literally everything else but this Jan 29 12:07:13 njcomsec, in intellij its Editor -> Colors&Fonts -> General -> The checkbox named "background" Jan 29 12:07:19 should be the same in AS Jan 29 12:08:20 Hello i've run in to a issue and i don't know how to solve this, the problem is as follows, I have a app that has countdown timers, when a timer is started and the app is closed a service will make a notification that the timer is done and the activity will be started again when u click on it and tell the activity that it's done. Now how can i do this when 2 timers are almost done at the same time ? cause the user will only press o Jan 29 12:08:25 you have to change that background color for the attribute "caret row" Jan 29 12:09:19 Should i store ondestroy the now time and back on create() again the now time and compare them to see if any other timer is done ? Jan 29 12:09:45 Nick-S, if processing in your thread must be serialized, why do you need separate threads? Jan 29 12:09:45 ahh caret row... thnanks Jan 29 12:10:04 FlipBill: true nice question Jan 29 12:10:10 s/your thread/your application/ Jan 29 12:10:33 hyrixo, onDestroy might not get called by the system os its a bad idea Jan 29 12:10:38 better use onPause Jan 29 12:11:46 any way, message handler seems to resemble what you have in mind Jan 29 12:12:19 But not exactly. Jan 29 12:14:50 But would u say that is the best way to handle it or is there a way to read inc notifications ? Jan 29 12:16:49 you can put some identifier in the pending intent from the notification Jan 29 12:17:32 Well i putextra in it that i read in oncreate() Jan 29 12:18:07 But that doesn't get called again when a timer ends during runtime or when i have 2 notifications at the same time Jan 29 12:18:21 how do you go about checking if two lists of objects differ? Jan 29 12:18:48 hyrixo, onNewIntent() maybe Jan 29 12:19:22 added a tweaked version of my old LD game to play shop... meaning to distribute the enhanced source code to people who have bought two of my assets. https://play.google.com/store/apps/details?id=com.strobotnik.llab Jan 29 12:19:23 would like to hear if there's technical problems with that (requires android 4.0+ device) Jan 29 12:20:15 Nick-S, discussion on that here: http://stackoverflow.com/questions/16207718/java-compare-two-lists-object-values Jan 29 12:20:31 What do you think is better? (I have a website in an apk expansion file and need to access the website in a webview, plus be able to send links to pdf files in the website via intent to external pdf viewer app) 1) unzipping the apk/obb file on external media (takes 78mb for obb file + 156mb for extracted) or 2) only use a JOBB created apk/obb file, and mount it with StoreManager (requires API 9, but keeps file size down to the 78mb apk/obb fil Jan 29 12:20:31 e only) Jan 29 12:20:32 yes i saw that Jan 29 12:20:35 but it looks strange Jan 29 12:21:00 danijoo, don't understand how that works :/ Jan 29 12:21:07 but it doesn't check for the content of the object Jan 29 12:21:11 how i can solve Cannot start compilation: the output path is not specified for module "mydemo". Specify the output path in Configure Project. in Android studio? Jan 29 12:21:45 arrays.equals? Jan 29 12:21:52 I infer that your question is not really about comparing lists, then. Jan 29 12:22:07 danijoo, if i understand it right i could make the notification pop up during the acitvity and call the onNewIntent() Jan 29 12:22:29 i mean Lists Jan 29 12:22:31 but rather, more specific Jan 29 12:23:10 OK, Lists. Still, how do you define equalitiy for your purposes? Jan 29 12:23:48 flip: maybe there's soemthing that enables me to implement equality for my type? Jan 29 12:24:40 Nick-S, yes, I think that's what you are looking for. A Comparator method of some kind. Jan 29 12:25:08 Nick-S, i.e. a method that you would code for yourself for this purpose. Jan 29 12:25:26 yes Jan 29 12:25:39 flip so theres something like that included in the java libs? Jan 29 12:25:52 Are you familiar with how one overrides Comparator to use Sort? Jan 29 12:26:50 No, I am suggesting you have to wirte your comparator because only you know what makes equality for your purpose. Jan 29 12:27:00 I must leave office for 30 minutes. Jan 29 12:31:24 Nick-S, http://stackoverflow.com/questions/16069106/how-to-compare-two-java-objects Jan 29 12:32:48 flip: i am reading no worries Jan 29 12:33:46 Do you guys just unzip the apk expansion files or do you use something like the apk zip library or storemanager to access the data? Jan 29 12:35:10 man, I can't even find any tutorials for StoreManager, just the reference doc at http://developer.android.com/reference/android/os/storage/StorageManager.html Jan 29 12:35:37 maybe just unzipping the apk is the easiest and safest option Jan 29 12:35:48 apk/apk expansion file Jan 29 12:38:09 Hello! Im trying to use androids SurfaceTexture to render Video. I need to be able to control the texture from C++(I want it to intergrate with cocos2dx), but I dont really seem to be able to bind it, I dont get GL_ERRORs. Anyone that might be able to point me in the right direction? :) Jan 29 13:01:30 Hi all Jan 29 13:03:40 perlsyntax, Don't you mean printf "Hi all"; ?? Jan 29 13:05:21 @FlipBill: thats way to readable to be perl, are you sure you are doing it right? ;) Jan 29 13:06:46 Hello. Jan 29 13:07:36 http://stackoverflow.com/questions/28191549/can-i-load-html-pages-from-apk-expansion-file-into-webview-without-unzipping Jan 29 13:07:53 http://pastie.org/9871235 : The function "connect" is triggered by an onClick event on some button. I want a way to pass the "token" variable from the onCreate method to the connect method. Jan 29 13:07:57 lootic, My dialect could be obscure. Jan 29 13:08:05 Hey FlipBill Jan 29 13:08:30 * FlipBill tips hat Jan 29 13:11:03 haha Jan 29 13:19:26 So I'm trying to test a project I found on github Jan 29 13:19:29 i cannot use this theme Theme.AppCompat.Light.DarkActionBar Jan 29 13:19:36 why not Jan 29 13:19:46 I see this in it