**** BEGIN LOGGING AT Thu Apr 03 02:59:59 2014 Apr 03 03:01:50 g00s: Thanks. Got something to play with over the weekend! Apr 03 03:02:01 sensen let me know how it goes :) Apr 03 03:02:11 bankai_au a newish presentation on rx + android http://www.slideshare.net/TimoTuominen1/rxjava-architectures-on-android-8-android-livecode-32531688 Apr 03 03:02:26 argh i hate slideshows Apr 03 03:02:33 yeah Apr 03 03:03:13 i replaced all my event buses with rx Apr 03 03:03:21 worked well so far Apr 03 03:03:47 its eventually finding way into each corner of the app ;) Apr 03 03:04:57 From which version of Android release. Google Chrome version 33+ will be natively available instead of other web browsers? Apr 03 03:05:07 the challenge though, is when you are living withing the ComponentsCallback lifecycle, and you need to poll at some android callback Apr 03 03:05:16 can someone please kick him? Apr 03 03:05:37 so its not all push all the time :( Apr 03 03:06:19 g00s: how are you sharing the observables between components? Apr 03 03:07:19 f2prateek i know there is some stuff in rxjava-android, but i haven't looked at it so far. right now, some stuff like event buses are subscribed to in fragments and unsubscribed in onStop Apr 03 03:07:44 BehaviorSubject works well for that + CompositeSubscription Apr 03 03:08:02 i haven't figured this all out. but i'm working hard to, it "feels right" to me Apr 03 03:08:05 When WebRTC is used in Android. Why the system get frozen and hang while doing HD 1080p and 60fps Apr 03 03:09:03 f2prateek its pretty easy to rx-ify a lot of the android APIs like , sensors Apr 03 03:09:17 i just use it when it make sense, where i think i may compose events Apr 03 03:10:11 I was interested in how different components, say a service might post messages to fragment Apr 03 03:11:00 yeah i bind to the service and getObservable() which gives back a BehaviorSubject Apr 03 03:11:10 getState(), etc Apr 03 03:12:16 Interesting Apr 03 03:12:45 Does seem more involved and couple than using an event bus though Apr 03 03:12:50 *coupled Apr 03 03:12:52 so in that presentation, slide 16 .. i haven't done all of that Apr 03 03:13:02 still kind of wondering how well it all works Apr 03 03:13:34 is theer a way to tell android Studio to always ignore an ambiguous import conflict? If you ue Jackson, it has a Pair class, and i always want to use java.util.pair Apr 03 03:13:41 but it makes me choose every time Apr 03 03:14:10 f2prateek yeah, the bus is more decoupled. i liked this approach more though, because i have found it more useful to specify the exact timing and flow of events. my older app just become a buch of random onXXX it become hard to reason about the timing of things Apr 03 03:14:52 and then of course the composability Apr 03 03:15:13 i think the greenrobot event bus had ordered events Apr 03 03:15:26 so you can get some timing there, like chain of responsability type behavior Apr 03 03:15:41 each could mutate the object and pass it on to the next Apr 03 03:16:01 kinda like real android receiver priorities, not localbroadcastreceiver in support lib Apr 03 03:18:07 g00s: good point on the timing part Apr 03 03:19:05 i'm cautiously optimistic about rx so far; gotta worry about leaking references and GC Apr 03 03:20:00 yeah, he covers that in slide 20 Apr 03 03:20:01 and junit testing is a sl*t Apr 03 03:25:32 "Has been ported to most platform and languages (except PHP)" Apr 03 03:25:33 ha Apr 03 03:27:21 hey does anyknow how to read from bt properly? Apr 03 03:27:34 im trying to figure out if im sending data correctly, but i only recieve "1" Apr 03 03:29:48 jareddlc its just a stream Apr 03 03:30:44 g00s: im following the tutorial: http://developer.android.com/guide/topics/connectivity/bluetooth.html so im not sure if im sending data correctly, but i dont get what i expect Apr 03 03:31:42 however i want to log bytes Apr 03 03:33:38 jareddlc one thing that is useful in debugging BT stuff is to grab some TeeInputStream class somewhere Apr 03 03:33:53 have it save the raw bytes to a file, for debugging, etc Apr 03 03:34:49 hold on, here is mine. its very simple Apr 03 03:35:55 http://pastebin.com/DZH7b3AM Apr 03 03:36:06 if you find any problems with it, let me know :) Apr 03 03:36:25 its not a complete version - only the methods used by the streams returned by BluetoothSocket Apr 03 03:36:45 no warranties, of course ;0 Apr 03 03:38:39 thats neat, however Apr 03 03:39:00 g00s: i see what it does is expects byte[] buffer, int byteOffset, int byteCount but the example doesnt do that Apr 03 03:39:07 thats probably one of my problems Apr 03 03:39:33 inputStream.read() expects * Apr 03 03:39:51 thx i'll make those changes Apr 03 03:46:01 g00s: by any chance are you using arduino? Apr 03 03:46:08 no Apr 03 03:46:27 hah http://www.scmp.com/news/hong-kong/article/1463336/costly-government-apps-lag-popularity-game Apr 03 03:46:28 k Apr 03 03:48:34 3.8 million downloads is quite a lot Apr 03 03:48:53 is there a way to dynamically assign an onSizeChanged handler to a *View? Apr 03 03:49:06 more than half of hk Apr 03 03:49:29 oh, they're the star, i see Apr 03 03:49:41 yup, that's pretty impressive - they've crushed me :) I'm hoping to hit the 50k bucket this summer... Apr 03 03:50:13 i've 4 apps up, 97, 35, 156 & 43 current installs Apr 03 03:50:14 wooo Apr 03 03:50:48 slightly over 6k installs for my HK weather app Apr 03 03:51:05 The red tide app cost HK$128,000 for its development and first-year maintenance. Apr 03 03:51:41 g00s: that's about how much tax I've paid in the past 4 years :) Apr 03 03:51:54 that's not a huge amount Apr 03 03:51:58 16k us Apr 03 03:52:16 i wouldn't do a years work for that Apr 03 03:52:26 oh yeah, 16501 Apr 03 03:52:37 yeah, but... 10 downloads? Apr 03 03:52:57 that is pretty poor Apr 03 03:53:03 for that much, they could have had someone hand-deliver tide notices to sailors :) Apr 03 03:53:37 my lowest install figure is 139 Apr 03 03:53:49 i assume you'd get that just from idle browisng and random installs Apr 03 03:54:18 what did i expect... Apr 03 03:54:19 i have no idea about the apps i'm paid to write Apr 03 03:56:19 i'd be interested in hearing what the root cause of low downloads was. OTOH, i don't want to download a handful of silly apps Apr 03 03:56:55 i could see something potentially useful, like if the govt has to broadcast events like red tide, they have ONE app to do it, and you subscribe to the events you are interested in Apr 03 03:56:59 sounds like mqtt :D Apr 03 03:57:10 Hello, anyone know if it's possible to send an xml layout file in an intent? Apr 03 03:58:02 just set mime and ok, but why? Apr 03 03:58:20 g00s: figured it out, needed to dump it to a byteArray Apr 03 03:58:23 lasserix, there's almost certainly a better way to do that Apr 03 03:58:56 alex_pp: i want to send one xml layout file from one app to a different app Apr 03 03:59:11 then no Apr 03 03:59:17 unless you own both Apr 03 03:59:22 right okay Apr 03 03:59:26 just curious Apr 03 03:59:45 lasserix you have me worried Apr 03 03:59:51 ? Apr 03 03:59:55 what .. put that in your hea Apr 03 03:59:58 *head Apr 03 04:00:13 ahh just an idea to do an implementation of a project at work, Apr 03 04:01:21 they are trying to do some kind of android api and i was thinking of how to minimize surface area of interface Apr 03 04:01:30 api/sdk Apr 03 04:04:16 ahh Apr 03 04:04:35 Anyone come across cool apps lately? Apr 03 04:04:44 *from a developer point of view Apr 03 04:06:05 i came across this library today Apr 03 04:06:07 http://metrics.codahale.com/ Apr 03 04:06:34 thats about it, still looking at it / ganglia Apr 03 04:08:08 hmm Apr 03 04:08:11 link broken? Apr 03 04:08:23 maybe you guys killed it Apr 03 04:09:13 what's ganglia do? Apr 03 04:09:27 http://ganglia.sourceforge.net/ Apr 03 04:09:31 monitoring Apr 03 04:09:57 sorry i am little unexpirienced, what's an actual use case of this? Apr 03 04:10:03 err like real life example Apr 03 04:10:37 collect & visualize metrics for ALL THE THINGS Apr 03 04:11:22 hehe reminds me of how i like to trail off when describing something at work "oh yeah we got that task about the thing that does the thing with the thing that doesn't function when it is supposed to happen..." Apr 03 04:11:38 you can use it with rrdtool Apr 03 04:11:41 what would you actually use ganglia for? Apr 03 04:11:59 monitoring your infrastructure Apr 03 04:12:16 at dhl we had expensive HP stuff for that Apr 03 04:12:30 ahh so for instance you could moniter your bitcoin mining cluster? Apr 03 04:12:56 g00s: do u get odd BT data? example: im sending string "blink" and i get "b" and then next "link" Apr 03 04:13:28 we used http://en.wikipedia.org/wiki/HP_OpenView which was expensive Apr 03 04:13:43 jareddlc sure, could be buffering Apr 03 04:14:08 hello, im having a little problem im trying to create an instance of an adapter inside a fragmetn and im getting this: No enclosing instance of type MainActivity is accessible. Must qualify the allocation with an enclosing instance of type MainActivity (e.g. x.new A() where x is an instance of MainActivity). What could be wrong? Apr 03 04:16:09 ohh g00s so metrics is a good eay to do some profiling in an app say? Apr 03 04:16:56 i'm trying to determine if that first link (metrics.codehale) could be used like GA without the G Apr 03 04:20:53 ? Apr 03 04:34:58 anyone know a good repo of animations? Apr 03 04:35:02 you use HPOV? you poor poor thing, what a disgusting, repulsive piece of software Apr 03 04:35:43 thats what they had, yeah. lots of HP stuff Apr 03 04:36:04 we use it at my work, i can't believe it's still around, it's rotten in so many areas Apr 03 04:36:32 g00s: on another note, what's a good use case for Observable.delay(...) ? Apr 03 04:36:34 we had tons of tech. international side was all JEE on hpux; US (airnorne) was windows + mainframe Apr 03 04:36:44 *airborne Apr 03 04:40:31 bankai_au i can't think of anything atm; i've gone through the catalog and only used a few (map, filter, zip, etc). but i try to keep these in mind for future Apr 03 04:42:31 anyone know how to disable an IME suggestions bar? it keeps overlapping some of my UI Apr 03 04:44:24 noSuggestions Apr 03 04:44:47 ? Apr 03 04:44:53 textNoSuggestions Apr 03 04:45:09 this is an extremely Googleable question Apr 03 04:45:35 Ahh but the problem is that a hint to the IME Apr 03 04:45:55 it does not have to honor it, which causes the problem for the layout Apr 03 04:46:06 but the ime doesn't show a suggestions bar unless it's broken Apr 03 04:46:11 indeed Apr 03 04:46:29 Sorry, let me rephrase: is there a way to find the height of my UI window relative to the top of the IME? Apr 03 04:46:36 which ime is this a problem on Apr 03 04:46:55 umm let's see i was using a stock htc butterfly phone Apr 03 04:47:02 does it matter? make your UI scroll Apr 03 04:47:10 uhh Apr 03 04:47:19 use adjustPan as necessary Apr 03 04:47:23 the text input field is covered up by the suggests bar Apr 03 04:47:50 i had tried adjustpan but if that should fix it ill try working it again Apr 03 04:47:56 thanks Apr 03 04:52:56 oh JakeWharton: in a pinch I needed access to activity context in a class with no direct accessor. so i wrapped the activity context as a static nested class singelton inside the activity using a weakreference to hold the context. I was thinking of using it in general when I need to do certain functions requiring context in arbitrary classes--do you see any problems with this? Apr 03 04:53:32 g00s: actually perhaps something like ... a listview, that you want to queue up WS fetches ? Apr 03 04:53:40 i think it was not a bad way to generally provide context statically... Apr 03 04:54:15 why not just store the application instance on a static field of the application class? the only time it goes away is when the process is destroyed Apr 03 04:54:28 still gross gross gross, but not as crazy Apr 03 04:54:48 hmm Apr 03 04:54:49 okay Apr 03 04:55:09 I was trying to make certain abstracted encapsulated classes as atomic as possible Apr 03 04:55:21 err self-contained, i mean Apr 03 04:55:52 Jake: to be sure, I could use such an instance to get a content resolver, but i couldn't use that to inflate layouts correct? Apr 03 04:56:23 you should be able to, but the fact that you would use it as so worries me Apr 03 04:56:28 i was trying to prepare some layouts off the main thread, passing them back to the main thread then adding them as they are needed Apr 03 04:56:38 a class with no direct accessor to a Context (something I don't buy in general) is responsible for inflating layouts? Apr 03 04:57:11 i rolled my own "list view" where everything is pooled and created up front Apr 03 04:57:22 you don't work at Facebook do you? Apr 03 04:57:26 hehe no Apr 03 04:57:30 they do this crap for Paper on iOS Apr 03 04:58:19 no i just measured a preallocated "listview" (with no adapter or a custom one anyways) versus the normal listview using viewholder and convertview, and it saved about 200ms between invalidations Apr 03 04:58:34 *between invalidating Apr 03 04:58:55 and also makes a lot of custom animations and touch controller responses easier to handle Apr 03 04:59:20 so i wanted to inflate/construct all of this in code off the main thread, and pass it back when i actually need it Apr 03 04:59:38 that was the motivation anyways Apr 03 05:00:40 probably overkill but my bosses are literally more concerned with the first 4 seconds the very first time someone starts the app then 90% of the rest of the time the app is ever used ;p Apr 03 05:01:11 is the inflation the slow part or is it the measure/layout pass? Apr 03 05:01:37 ahh so on notifydataset changed Apr 03 05:01:49 the total time it took for getview to be called Apr 03 05:02:16 was up to 200ms longer than doing everything preallocated Apr 03 05:02:41 and just doing setText etc etc Apr 03 05:04:21 sorry if that doesn't answer your question, my time profile was just a measure of how long it took for the UI to reflect the new data set Apr 03 05:05:39 i was thinking you could do the same thing by setting getItemViewType and count to the exact number of rows which would cache every row along the same train of thought Apr 03 05:06:28 anyways i was just wondering if it is safe to do this pre-inflation stuff off the UI thread Apr 03 05:06:37 sorry kinda rambling now... Apr 03 05:06:57 can i override JUST the toString method of the android pair class, or do i have to implement my own Pair class? Apr 03 05:07:11 regreddit sure Apr 03 05:07:24 i need to use a Pair in an arrayAdapter, but it requires a toString that *works* Apr 03 05:07:47 regreddit cant you just toStringForAdapter? Apr 03 05:08:03 I dont understand Apr 03 05:08:16 what class are you using for pair? Apr 03 05:08:37 what toString should do for a pair is return Pair.first in my casae Apr 03 05:08:50 why does it have to be toString Apr 03 05:08:53 Android.util.pair Apr 03 05:08:55 can't you just getFirst Apr 03 05:09:56 so you can definatly override toString Apr 03 05:10:00 this pair is an array of pairs that I pass to an ArrayAdapter Apr 03 05:10:08 that then is used for a spinner Apr 03 05:10:11 but you could just as easily subclass Pair and add a method getFirst Apr 03 05:10:14 and getSecond Apr 03 05:10:21 it internally calls toString on my Array Apr 03 05:10:44 you cannot change the fact it calls toString? Apr 03 05:10:55 I dont think so Apr 03 05:11:00 why not ? Apr 03 05:11:05 can you post your code? Apr 03 05:11:06 I dont know ) Apr 03 05:11:09 or the relevant part Apr 03 05:11:10 sure Apr 03 05:11:23 one sec Apr 03 05:11:28 hey guys Apr 03 05:11:44 A pound of any combination of quarters, dimes and half-dollars is worth $20. Apr 03 05:12:08 that's not always true Apr 03 05:12:39 Hi DrNick9998! Apr 03 05:14:14 lasserix: https://pastee.org/3zb9g Apr 03 05:16:02 Pair is an anti-pattern. Use a concrete type with semantic meaning! Apr 03 05:16:36 well, if I did, it would be a name/value pair that accepted generics in this case ) Apr 03 05:16:44 thats why I use Pair Apr 03 05:16:57 hey JakeWharton, long time Apr 03 05:17:16 or 99% of the time Apr 03 05:17:36 class UsefulPair extends Pair ? :P Apr 03 05:18:13 yeah, I guess I might as well just implement it myself, its only like 10 loc Apr 03 05:21:58 tuples in java almost always make readability worse Apr 03 05:22:12 in languages where you can say (x,y,x) = (1,2,3) thats nice Apr 03 05:22:53 yeah tuple return type in python is nice ;) Apr 03 05:23:09 i generally agree Apr 03 05:23:12 i HAVE used Pair Apr 03 05:23:22 but i'd much sooner make a class Point { int x, y; } Apr 03 05:23:39 if you use a lot of them byte buffer it Apr 03 05:25:27 yeah make x & y public final ;) Apr 03 05:28:42 canadiancow: greetings Apr 03 05:31:52 My app has some data I want to share between a Service and an Activity. I decided to make my own Application class, and this data is a member of this Application. It's easy to access from both components, just use getApplication() Apr 03 05:32:01 uh, is this a good idea? Apr 03 05:32:43 RustyShackleford may as well make it a singleton if you do that ;) Apr 03 05:32:48 the focus of this app is primarily the Service. What if the Application, but the Service is still running? Apr 03 05:33:28 well the data is static, but I need to first parse a text file Apr 03 05:33:35 that might be a better idea Apr 03 05:33:39 make the data public static in the Service ? Apr 03 05:34:17 rusty whats the service? just to do a long running task? Apr 03 05:34:27 you can definatly use an intent service if its a "own shot" task Apr 03 05:34:55 The city has speed cameras. This service would monitor your location and direction, and warn you when you are approaching one Apr 03 05:35:03 if its not, or if you need to do somethign involving multiple simaltaneous threads, you can use a service. binding the service will give you direct access in the activity to the service methods Apr 03 05:35:32 ahh okay so you want a long running service, not bound to the activity, running its own thread Apr 03 05:35:48 so the data I want to share is an ArrayList, containing the locations of the speed cameras Apr 03 05:36:26 so rusty i had to research something similar what i found the easiest (for me anyways) way to do this is have a service that has a thread Apr 03 05:36:48 the service also a messanger which comes from the intent sent by the activity Apr 03 05:37:02 which is a reference to the handler, so you can post messages to your activity from your service Apr 03 05:37:18 so everytime the service detects whatever you need to inform Apr 03 05:37:30 i have a primitive handler set up already Apr 03 05:37:41 you can check whether the activity is alive (send an intent stating it's alive, when activity destroyed send an intent stating its dead) Apr 03 05:37:46 but my service is its own process Apr 03 05:37:52 that's okay Apr 03 05:38:17 just means you have to pass the messenger via the bind method Apr 03 05:38:25 but im not even sure you have to do that Apr 03 05:38:55 http://www.survivingwithandroid.com/2014/01/android-bound-service-ipc-with-messenger.html Apr 03 05:38:59 I'm still a bit confused how handlers work Apr 03 05:39:15 so a handler is nothign more than a thread callback essentially Apr 03 05:39:31 the main thread has what's called a looper which is a synchronized message queue Apr 03 05:39:49 this feeds the handleMessage of the handler which you want to override Apr 03 05:39:52 a handler is what processes messages on the queue Apr 03 05:40:19 who/what calls Handler.handleMessage()? Apr 03 05:40:22 if you create the handler on the ui thread it'll belong to the ui thread, you can do that explicilty by creating the handler with the overload constructor getMainLooper as arguemnt Apr 03 05:40:36 you override handleMessage on your subclass of the handler Apr 03 05:40:48 the message queue calls it Apr 03 05:41:27 RustyShackleford this is not tested code but you can lookat it and can give you the idea Apr 03 05:41:28 http://pastebin.com/iVkBS2wg Apr 03 05:42:18 two main things you should always make a message using Message.obtain Apr 03 05:42:34 and a static nested handler subclass must contain a weakreference to the activity that hosts it Apr 03 05:42:40 i love all of u so much Apr 03 05:42:52 if there's no ipc, just post runnables Apr 03 05:43:05 pfn: he said the service is in its own Apr 03 05:43:08 brb Apr 03 05:43:26 in its own process? why Apr 03 05:43:41 dunno ask him Apr 03 05:44:49 pfn, well it seemed easier than a thread Apr 03 05:44:59 hehe ! Apr 03 05:45:03 I used android:process=":remote" in Android.xml Apr 03 05:45:11 bam, i don't need to worry about threads Apr 03 05:45:15 you did that just to avoid a thread, thats hilarious Apr 03 05:45:22 maybe Apr 03 05:45:30 RustyShackleford i'm going to submit that to the daily WTF Apr 03 05:45:31 should I just spawn a thread? Apr 03 05:46:26 yeah ;) Apr 03 05:46:28 what exactly is wrong with a separate process? Apr 03 05:46:40 well then you have to worry about ipc Apr 03 05:46:41 there was an earthquake in chile Apr 03 05:46:48 nick9998 you're a little late ! Apr 03 05:46:59 8.2 was yesterday Apr 03 05:47:05 the service really has higher priority than the Activity Apr 03 05:47:09 i'm not the best newsman Apr 03 05:47:37 hopefully people evacuate in case of tsunami Apr 03 05:55:58 canvs2321, lasserix: here? Apr 03 05:56:37 it's not. Apr 03 05:57:19 if you think it is, you're in for a rude awakening Apr 03 05:58:14 pfn: are you talking to me? Apr 03 06:00:48 anyone about atm who wouldn't mind helping me out quick? Apr 03 06:03:05 amazwon: just ask, don't ask for permission to ask Apr 03 06:05:43 I was just wondering if anyone knew of a way to use a dummy view here that works, my code works on an emulator, just not on my device http://pastebin.com/QUYezr99 , Apr 03 06:06:24 thepoosh whats up? Apr 03 06:06:29 be specific, read esr's smart questions guide Apr 03 06:06:54 RustyShakleford you ONLY really need to do IPC when you have multiple apps that are going to use the same service Apr 03 06:06:54 lasserix: wanted to thank you for yesterday and to tell you I now have a pending pull request! Apr 03 06:07:03 RustyShackleford: otherwise it's a lot of f-ing headache Apr 03 06:07:17 amazwon: are all those sleeps on the main thread? Apr 03 06:07:20 RustyShackleford: also you can change the priority of your service (ipc or not) Apr 03 06:07:45 thepoosh: ahh right on :) Apr 03 06:07:49 yep Apr 03 06:08:38 and because the reason of the AsyncTask was for DB access, I didn't change to runnables Apr 03 06:08:59 lasserix, what's difficult about IPC? Apr 03 06:09:01 ahh they are the same thing Apr 03 06:09:18 asyncTask was more intuitive to me Apr 03 06:09:19 RustyShakleford: do you know anything about sockets? Apr 03 06:09:20 not that i'm trying to be difficult, but I figured it out after quite alot of googling Apr 03 06:09:27 RustyShackleford: or proxy classes? Apr 03 06:09:28 eh, not really Apr 03 06:09:28 @thepoosh, what do you mean? sorry Apr 03 06:09:34 RustyShackleford: or how to successfully manage memory Apr 03 06:09:49 amazwon: in your code, there are 2 calls to Thread.sleep(5000) Apr 03 06:10:03 maybe how to manage memory Apr 03 06:10:16 @thepoosh, ah i see, they were to test something, because it didndt work on my device so used that to run after i type the passcode in Apr 03 06:10:18 RustyShackleford: look at this way: why would you ever set up a server-client relationship on amazon cloud computing space to do the functionality of a calculator Apr 03 06:10:33 anyway I'll look into spawning another thread Apr 03 06:10:38 hmmm, that is how you get ANRs Apr 03 06:10:39 you MUST Apr 03 06:10:42 bankai_au i wonder if the rx .delay() observable could be used like a z^-1 block as a digital filter. make an IIR/FIR out of .delay() and .sum() Apr 03 06:10:44 spawn another thread using a service, Apr 03 06:10:49 i'm looking at this project again after shelving it for several weeks Apr 03 06:11:11 i just hacked together something that kinda-sorta works Apr 03 06:11:17 Rusty: what's the service supposed to do ? constantly moniter traffic stuff in the background all the time or only when the app activity is in the foreground? Apr 03 06:11:41 yeah I kinda planned to keep it in the background always Apr 03 06:11:52 how many apps are going to use the service? Apr 03 06:12:06 just this one Apr 03 06:12:06 *distinct apps Apr 03 06:12:15 yeah then don't bother putting it into its own process Apr 03 06:12:26 you have no reason to. Apr 03 06:12:42 again it's like starting a virtual machine just to run a calcultor Apr 03 06:12:48 also perhaps some kind of interactive notification in the notification screen Apr 03 06:13:14 so all you need is a local service with a messenger Apr 03 06:13:31 you dont need a messenger :| Apr 03 06:13:37 you can probably start the service sticky, and use a broadcast reciever to start it on boot Apr 03 06:13:43 g00s: what's the better way to do that? Apr 03 06:13:49 bind it? Apr 03 06:13:49 messenger is ok for ipc , like small protocols over ipc Apr 03 06:14:36 g00s: how would I send non-parceable objects from a local service to my activity, and send requests to do tasks from the activity to the service without binding ? Apr 03 06:14:50 *without binding or using messenger Apr 03 06:15:02 its all in the same process, don't say the word "parcel" or "bundle" Apr 03 06:15:23 well i guess you need those to pass shit to your activities and fragments Apr 03 06:15:23 umm okay, but still how do you send objects back and forth? Apr 03 06:16:09 i think i said that like 20 minutes ago Apr 03 06:16:12 specifically i need the activity to send flags to the service, i am guessing using a handler is faster than an intent, and i need to send objects from the service to the activity Apr 03 06:16:16 just put a static in your service Apr 03 06:16:25 oh you can do that? Apr 03 06:16:35 ahh that's cool Apr 03 06:17:23 is JakeWharton in the house? Apr 03 06:17:24 so i can use a singelton int he service, call it directly from my activity, and then if i have to push results to UI use runonui or postonui in the activity on the object from the singlleton in the service? Apr 03 06:17:25 no Apr 03 06:17:31 you could put the objects in a public static Queue Apr 03 06:17:41 and the service just blocks as its reading that Apr 03 06:17:43 so many ways Apr 03 06:17:46 JakeWharton: in here: https://github.com/JakeWharton/NineOldAndroids/ Apr 03 06:18:06 are there any gradle/proguard specific instructions? Apr 03 06:18:14 hasn't been updated in 2 years... Apr 03 06:18:15 g00s: and i can use the basic / run on ui method types to push results from the background thread singleton service? Apr 03 06:18:27 no Apr 03 06:18:28 *"types" -> methods Apr 03 06:18:38 doesn't use reflection, gradle can handle jars Apr 03 06:18:46 yay! Apr 03 06:18:46 you should be minSdkVersion="14" by now! Apr 03 06:18:52 hmmm Apr 03 06:18:59 my minSdk is still 10 Apr 03 06:19:03 for some reason Apr 03 06:19:10 += 4 Apr 03 06:19:13 or 5 Apr 03 06:19:21 I wish Apr 03 06:19:30 we still have some 2.3.* users Apr 03 06:19:42 what about proguard? Apr 03 06:19:49 so? they can stay on an old version Apr 03 06:19:58 hmmmm Apr 03 06:20:06 it's a product/CTO decision Apr 03 06:20:11 I don't get to make it Apr 03 06:20:15 show them numbers Apr 03 06:20:31 g00s: thanks for pointing that out--i am not above using singletons but since i have only been comfortable with them recently, i was used to always routing stuff via handler Apr 03 06:20:39 describe to them how your development process will be sped up by X% by dropping Y% of users on GB where X > Y Apr 03 06:20:44 will do my best, I promise Apr 03 06:21:04 thepoosh just copy all those assets manually Apr 03 06:21:07 describe to them how the quality of the app will be increase by X% by dropping Y% of users on GB where X > Y Apr 03 06:22:16 JakeWharton: http://pbrd.co/1hD80R0 Apr 03 06:22:23 I cannpt drop 10% of my users Apr 03 06:22:28 I mean, they wont Apr 03 06:22:46 you aren't Apr 03 06:22:51 you just aren't shipping them new feautres Apr 03 06:23:04 but as a result you can ship new features 20% faster Apr 03 06:23:10 well Apr 03 06:23:14 app quality goes up more than 20% Apr 03 06:23:22 you can monetize 20% better Apr 03 06:23:28 I don't think they will be convinced unfortunately Apr 03 06:23:58 JakeWharton: these are my bosses: https://www.youtube.com/watch?v=BKorP55Aqvg Apr 03 06:24:19 well draw some fucking kittens in the form of a line and make them be convinced! Apr 03 06:24:32 lol Apr 03 06:24:34 tell them, because geometry ! Apr 03 06:24:41 because MATH!!! Apr 03 06:25:27 thepoosh you are the expert, aren't you ? Apr 03 06:25:32 lol Apr 03 06:25:46 thepoosh did you see that video today :) Apr 03 06:26:15 I saw it three days ago, posted it in my company office FB page just to see my boss post it on his wall Apr 03 06:26:31 victory, i guess :D Apr 03 06:26:48 saying "you ask me what my day looks like" Apr 03 06:27:05 and then I commented, "asking me to draw red lines with green ink" Apr 03 06:27:14 THAT was victory Apr 03 06:27:54 7 perpendicular Apr 03 06:27:57 JakeWharton: anywho, you say "drop 2.3.*" instead of managing this? Apr 03 06:27:59 yes yes Apr 03 06:28:23 a friend here said his problem was using the word "nearly" when he said it's impossible Apr 03 06:28:53 never give hope when no hope should be given ;) Apr 03 06:29:15 yes Apr 03 06:36:39 Hi, I have a problem with action bar sherlock Apr 03 06:41:34 b0t: why not use the appcompat actionbar? Apr 03 06:42:37 because I'm modifying an open source app, and do not feel like working too much Apr 03 07:02:03 Hi, I am starting to develop my first app. Which should be a gallery app. And I was hoping to get some tips from people which know what they are doing. My main questions would be: what should I use to show picutres? They can also be animated so ImageView does not work. Is there something for both? Apr 03 07:02:37 I have read to use VideoView or split the image and animate it by myself in imageView. Which would be better? Apr 03 07:02:57 And also, swiping images to browse through the gallery. What should I use here? Apr 03 07:05:13 does anyone here know if there is any technical support availble for android developers on motorola or samsung? (we are havning touchscreen issues (probably due to the driver design) on some device models and would like to know if there's any workarounds) Apr 03 07:12:51 thepoosh: did you mean "why not use minSdkVersion=14"? Apr 03 07:13:57 bankai_au: are you still there? Apr 03 07:22:25 In my little android set up here IVe set up some test cases in my "pure java" (ie no android calls) library and I can test from intellij. But when I rund "gradle test" from the top level Im getting unknown class exceptions. If theres any gradle heads here that rely on it for their android builds, am I wrong in thinking gradle should take care of adding classpath to a run based on the gradle project hierarchy? Apr 03 07:24:29 JakeWharton: I will not be able to do this alone, the product people will not allow it Apr 03 07:24:47 I was talking about supporting the library Apr 03 07:24:55 creatorb1: yep Apr 03 07:26:03 i meant in your recommendation of appcompat Apr 03 07:26:27 oh Apr 03 07:26:36 I meant using the support library Apr 03 07:26:44 because they added it to suppot v4 Apr 03 07:26:58 there is maven repo for facebook sdk? Apr 03 07:27:21 kamol: https://github.com/facebook/facebook-android-sdk Apr 03 07:27:29 I think you'll find more information there Apr 03 07:27:41 but why bother recommending appcompat when you can recommend minSdkVersion=14? Apr 03 07:27:54 hmmmm Apr 03 07:27:59 didn't think about it like that Apr 03 07:28:18 thepoosh: I am looking for maven repo, so I can include in sbt Apr 03 07:28:23 the default in eclipse creatine project is still misSdk="8" Apr 03 07:28:57 creatine is good stuff Apr 03 07:29:09 *creating Apr 03 07:29:17 g00s: thanks for pointing out my failures Apr 03 07:32:14 bankai_au : yess :-D , i'm found this http://moinur-rahman.blogspot.com/2012/02/connection-between-android-app-and.html nah that i mean, i have run that and it's works, but now i want to add the script on my app when user click submit button, then will download my new db on my server and that automatically replace old db on user application, maybe you or someone else on here can help me? Apr 03 07:33:49 so what's your question? Apr 03 07:37:26 bankai_au : first, i'm confused how to convert my db to the jsonscript? Apr 03 07:39:34 you know what json is? Apr 03 07:40:48 The guy who fights against Freddy, right? Apr 03 07:41:06 the web 2.0 vrsion of him Apr 03 07:41:07 heh Apr 03 07:41:43 lol Apr 03 07:41:56 Nilium use anything like Sketch ? Apr 03 07:42:10 Sketch is still too buggy, inkscape still too far behind Apr 03 07:46:06 rgr: yeah, i know how to get the data for cloud but i mean i'm confused how to replace new data to old db on my db sqlite... Apr 03 07:49:08 I dont know what you mean "data for the cloud". Assuming you receive a shed load of json representing your server side data then you need to decode that and submit to your local DB depending on your own data model. That or use a system where your server can do a db dump that you can simply restore on the client side. How did the data get into your client side database in the irst place? That would seem to suggest you already know Apr 03 07:49:08 how. Or is your question : how do I use sqlite? Apr 03 07:52:28 hey whats the best way to differentiate between different builds. like ifdef for debug and production targets Apr 03 07:52:38 stupid iOS Developer here :-) Apr 03 07:52:52 BuildConfig.DEBUG Apr 03 07:53:19 can I differentiate there between maybe light version and pro version? Apr 03 07:53:33 how are you building Apr 03 07:53:34 ? Apr 03 07:55:06 interesting, MS is making Cortana extendable by 3rd party apps. Apr 03 07:55:13 well right now out of eclipse. but we want to differentiate within code and not branch stuff out Apr 03 07:56:04 bluey-_ if you are using gradle it should be easy Apr 03 07:56:14 using gradle to build my app and having my "android bit" and my core library both set as includes in my settings.gradle a "gradle test" at the top level directory SHOULD find the test right? (src/test subdir and all code annotated with @Test etc). Or do I need to specifically tell gradle these tests exist. Tests run fine from intellij as junit tests configured in the IDE. Apr 03 07:56:30 I think this company is still working on maven :-/ Apr 03 07:56:45 yeah, with gradle you can add build config lines to different flavours super easily Apr 03 07:56:49 bluey-_: here is how we do it: our entire app is marked as a library, then we have two different projects that depend on it, one is called .free the other .pro, then in features, that are limited to .pro, we check for app name Apr 03 07:57:16 bluey-_: this way we have common code for different apps Apr 03 07:57:21 sounds like a lot of refactoring Apr 03 07:57:32 or, you could add a resource file with a boolean, or whatever Apr 03 07:57:36 or check your package name Apr 03 07:57:42 millions of ways really Apr 03 07:57:57 I think the package name would be a quick and dirty approache... hmm Apr 03 07:58:32 I guess I'll get it through ApplicationInfo or? Apr 03 07:58:36 g00s: Not sure what Sketch is and I don't like Inkscape because it has the world's second worst user interface. Apr 03 07:58:55 gimp is #1 right ? Apr 03 07:59:23 No. FontForge. Apr 03 07:59:28 oh hah ! Apr 03 07:59:41 well, i'm all ears for affordable vector in mac ;) Apr 03 08:00:16 I just use Photoshop 'cause I don't need special vector stuff all that often. Apr 03 08:00:33 i guess adobe may have an affordable subscription Apr 03 08:03:07 bluey-_, any context object Apr 03 08:03:16 gas getPackageName Apr 03 08:03:18 *has Apr 03 08:03:28 yeah I think I got it :-) Apr 03 08:03:46 They did have an affordable subscription, I believe it's less affordable now that the photographers' discount period might've ended Apr 03 08:03:52 still need to get into all those android concepts Apr 03 08:04:18 At any rate, I got Photoshop for $10 a month, which considering how much I use it is at least cheaper than when I used to have to do a full license/upgrade Apr 03 08:04:39 yeah, i don't use Ps, but i'd pay $10/mo for Ai Apr 03 08:05:20 Well, that one's not $10/mo Apr 03 08:05:50 It's important for me at least since I actually have to upgrade this time. Older versions of Photoshop have a burning hatred of retina displays and Mac OS 10.9 Apr 03 08:19:34 Pretty new to Android, am trying to schedule an alarm with AlarmManager to cancel an added notification in the future... not really sure how to call the cancel function from alarmManager.set() Apr 03 08:21:35 you need to build a pending intent that matches the one you set previously Apr 03 08:21:36 https://developer.android.com/reference/android/app/AlarmManager.html#cancel(android.app.PendingIntent) Apr 03 08:22:47 whoops, reread Apr 03 08:23:37 create a pending intent that calls sends either sends a broardcast or starts a service and in there call notificationmanager.concel with the same id as you used when you created the notification Apr 03 08:23:38 https://developer.android.com/reference/android/app/NotificationManager.html#cancel(int) Apr 03 08:24:15 is a nice way to generate unique IDs Apr 03 08:29:28 Guys, please advise: will mac book air i5/4096/13'3 be enough for android dev? Apr 03 08:29:41 i have 2009 MBP Apr 03 08:29:46 barely enough Apr 03 08:29:57 Core2 Apr 03 08:30:10 best if you have > 4G memory Apr 03 08:30:22 Does it need to be a laptop? Apr 03 08:30:43 Take a long, hard look at whether you actually need a laptop. Apr 03 08:31:01 yep, i have 1 room and a little child. at 10pm he goes to sleep and i goe to kitchen Apr 03 08:31:23 should be ok Apr 03 08:31:34 use a device not the emulator though Apr 03 08:31:43 my old MBP was fine Apr 03 08:32:22 who is it in here that does all their android work in vi? Apr 03 08:32:52 leeds Apr 03 08:33:15 so, there always that option, then you could use any old junker Apr 03 08:33:21 vim - close enough Apr 03 08:33:23 with patience Apr 03 08:33:32 and mvn or gradle Apr 03 08:33:38 whoa, there is no NumberPickerPreference ? man google is lazy Apr 03 08:33:52 Nobody uses vi. Apr 03 08:34:22 What would a number picker preference do? Apr 03 08:34:31 it would be a Number Picker Apr 03 08:34:35 pick a number, save it in a preference Apr 03 08:34:35 ha Apr 03 08:35:16 Nilium: pick a number, any number... is your number... 3? Apr 03 08:36:36 * Nilium looks at his card Apr 03 08:36:39 It was a queen. Apr 03 08:37:08 Wait.. no, just Dr. Frank N Furter. Easy mistake. Apr 03 08:37:29 is it ok for fragments to keep referneces to their views at all? (since replacing them on the stack doesnt destroy the isntance) Apr 03 08:38:04 rhcake if you do that in onCreate, does it matter :) Apr 03 08:39:14 rhcake: Considering Fragment provides getView, I'd say yes, it's fine. Apr 03 08:39:18 >_> im not following Apr 03 08:39:26 Just don't retain the reference if it's not needed. Apr 03 08:39:50 So you don't accidentally leak a context or something. Apr 03 08:40:36 So maybe grab the references in onViewCreated and set them to null in onDestroyView. Apr 03 08:40:46 using getView all the time :/ what a minor inconvenience Apr 03 08:42:00 Utterly unacceptable. Actually, though, you probably don't want to use getView if you're going to need to find a subview by ID every time. Apr 03 08:44:05 how else would i find it without getView? Apr 03 08:44:25 rhcake you should be OK. notice, there is onDestroyView Apr 03 08:45:20 i fiugred setting the referneces to null would be hacky way of handling this Apr 03 08:47:57 you don't need to Apr 03 08:48:15 if that is necessary, every gapp aosp app has huge problems Apr 03 08:48:30 look at the iosched code for examples Apr 03 08:57:40 MILF Apr 03 08:58:17 wat? Apr 03 08:58:19 its so big o_o will looking at their code actually answer my question Apr 03 08:58:36 So I am trying to have an AlarmManager cancel a notification that has been added to trigger in the future. The Android docs say to use a PendingIntent with getBroadcast that matches the one that I added the notification with. From here I call cancel from the notificationManager with the same id as the notification... my question is... Apr 03 08:59:18 Should I create a separate BroadCast Receiver class for cancelling this notification? I imagine I have to cancel the notificaiton within onReceive? Apr 03 09:02:43 hmhm I'm trying to read the AndroidManifest.xml Metadata (AplicationInfo) but it crashes... I think it's returning a null object. anyone knows why and what is a workaround Apr 03 09:09:09 bluey-_ it should work; you're doing something wrong ;) Apr 03 09:26:22 I’m getting IllegalStateException, already consumed: EntityUtils.toString(theHttpEntity); Apr 03 09:26:27 but i’m only calling that 1 time Apr 03 09:27:10 but on subsequent calls function containing that, the incoming parameter theHttpEntity is the same object address for some reason.. maybe not discarded or..? Apr 03 09:27:27 what’s wrong here? http://hastebin.com/fefujeqece.avrasm Apr 03 09:28:51 i have a question. Kindly give your inputs. there is mediacodec which has got introduced in JB. http://developer.android.com/reference/android/media/MediaCodec.html . I want to know how can i use it for hardware decoding?. Apr 03 09:48:38 i have a strange issue with android maps api v2: occasionally my inapp map remains black / blank for the whole time. the only solution which works is reinstall the app. have someone any idea? Apr 03 09:48:47 Hi all, I add a fragment in onResumeFragments, but a little time later, I can't find the fragment, what can be the problem? Apr 03 09:52:45 google app code sure is messy Apr 03 10:00:49 rhcake thats because most android apis result in messy client code Apr 03 10:05:51 ok the io apps fragments dont dereference their views, though it still feels like the right thing to do Apr 03 10:09:08 How can I stop a LinearLayout from changing height when it's ScrollView parent changes height? Apr 03 10:09:52 Ankhwatcher: wrap_content Apr 03 10:10:31 shmooz: yes but I need it to be the size of the full screen Apr 03 10:10:39 I need it remain the size of the full screen Apr 03 10:12:18 what would you recommend as a good starter book for android. especially one that skips all the java stuff Apr 03 10:17:42 i think they all skip java. maybe big nerd Apr 03 10:18:04 most up to date is probably commonsware, but it was only meh when i read it a few years ago Apr 03 10:21:36 Hi guys. I'm experiencing a strange crash when running this code http://pastebin.com/F6umYUVc based on this training tutorial http://developer.android.com/guide/topics/ui/dialogs.html#DialogFragment Here is the stacktrace I have http://pastebin.com/HfAqNT3K Do you know what could be the cause of that? Apr 03 10:22:25 I checked on the web and found several possible solution but none are working. return builder.show() instead of create() (which is non sense), try to make our own AlertDialog class, etc. Apr 03 10:22:52 bluey-_: having recently been learning I would almost say dont bother. Do the android dev course google provides and then learn to harness the power of intellij or similiar to query and read up on classes etc. I used the dietel book but while its ok nothing beats actually building and compiling code in the oood IDE. Apr 03 10:23:11 s/oood/good Apr 03 10:24:04 yeah. I'll think you're right. But I hate in this process to read classes from people who can't code and sometimes don't notice it :-/ Apr 03 10:24:50 what people cant code? Be careful with that view. Its often projection. Apr 03 10:25:09 well or use bad design pattern Apr 03 10:25:52 you need to accept that a prepared API wont be as you would do it. They never are. But often only after you become familiar with someting do you realise it was done like that for a reason. Apr 03 10:34:11 anyone used sl4a Apr 03 10:34:14 android scripting Apr 03 10:34:23 or is there a channel specific for that ? Apr 03 10:42:55 why is googles io app calling isAdded() from onSaveInstanceState() in their fragment >_> is there any scenarion where it might not be added Apr 03 10:43:05 Hi, anyone used APK Extension Files ? Apr 03 10:43:44 I have a Samsung Galaxy S4 mini connected over USB, and I'm testing my Phonegap app with the file service. In the Application Manager, the phone says that there's "test access to protected storage". Is saving files from web apps not supported on Android yet? Apr 03 10:43:54 omarino: most do Apr 03 10:45:13 If I have different resolutions of images for my app (1080p, 720p, 480p), Is it possible to make the Google Play download the correct resolution of the images based on the device it self? Apr 03 10:47:33 omarino: No, unless you implement that logic yourself in the app Apr 03 10:49:20 Smilex: Where will the logic download the files from? Is it possible to make it download from the APK Expansion Files? Apr 03 10:49:33 or do I have to have a host for my app? Apr 03 10:49:53 omarino: i don't quite understand the situation you are describing - you want to have the Google Play app display different size images accoding to the size of the device that is viewing your app in Google Play? Apr 03 10:50:47 No, my app requires a lot of images to run (~60mb), I wanted to use APK Expansion Files to download the images Apr 03 10:51:08 Still no one for my question asked above? ^ Apr 03 10:54:49 omarino: with the expansion files you can store all of the assets. What I meant was that you hosted the images on your server, and the app would download the correct images Apr 03 11:00:00 wget: PM me Apr 03 11:00:44 Hey guys Apr 03 11:00:51 So I'm doing a download in a thread Apr 03 11:01:33 Should I: a) Try to minimize CPU usage while it happens, by slowing it down with Thread.sleep or b) let it have high CPU usage? Apr 03 11:01:58 Hi there. I am going through a book. I see I can swipe through items in a list using ListPager. But how do I write custom swipe handlers? Eg, I want to swipe between sections in my app (fragments) for example... Apr 03 11:02:18 Gargron just set it to background priority Apr 03 11:02:33 g00s, how do I set a thread's priority? Apr 03 11:02:40 google knows Apr 03 11:04:19 g00s, Thread.MIN_PRIORITY, is that it? Apr 03 11:04:28 should be Apr 03 11:04:40 g00s, ok, got it Apr 03 11:04:43 testing Apr 03 11:05:25 CPU still at ~70 during the download Apr 03 11:05:26 also http://developer.android.com/reference/android/os/Process.html#THREAD_PRIORITY_BACKGROUND Apr 03 11:07:54 Smilex: got you, thanks! Apr 03 11:09:00 g00s, ok, testing with the background one now Apr 03 11:11:50 sensen wasn't able to solve my problem neither? Next one! ;-) Apr 03 11:11:50 Does any one have an idea? Apr 03 11:18:49 I'm running into issues testing an NFC operation. I have 'successfully' mocked a tag, but due to it being a mock, I'm unable to put it to use it in my code, as .connect() results in a NPE. Suggestions ? Apr 03 11:19:22 hi Apr 03 11:19:38 The mock was made using the android.nfc.Tag createMockTag. Apr 03 11:19:39 if my app doesn't use the action bar, how do i show the 3 dots settings menu when the device hasn't got a hardware key? Apr 03 11:24:47 Is there any way you correctly mock the ndef.connect() method ? Apr 03 11:34:54 Hi all. I got a onTouchListener that fires a couple of times when touched. How would I destroy it after the initial first time touched? Apr 03 11:35:35 i've tried setting it to null, but I can't reference the onTouchListener from within the ontouch event Apr 03 11:38:34 ThomQ: maybe make a counter you increment at the first time, then if the counter is > 1, you do not execute the event Apr 03 11:38:56 a counter or a boolean, same algorithm. Apr 03 11:40:51 ThomQ: Btw, why do you need to destroy that event listener? Apr 03 11:41:04 JVM = garbage collector. Apr 03 11:41:24 wget: It won't be used after the 1 click. Building now, with that counter :) Apr 03 11:42:08 ThomQ: Ok, or use a boolean boolean evenTrigerred = false; you put to true after the 1st click ;-) Apr 03 11:43:13 wget: K. Counter seems to fire 3 times, so i'll try the boolean Apr 03 11:45:57 ThomQ: Btw, if you use the method onTouch() to detect a click, this isn't the right way to proceed. Apr 03 11:46:27 Got it working Apr 03 11:46:31 Ow, its not? Apr 03 11:47:05 ThomQ: The onTouch() method is called each time you touch AND move your finger on the screen. So the method can be called several times, even if you haven't clicked several times Apr 03 11:47:16 Yeah exactly. I gathered as much Apr 03 11:47:41 Should I use another method? Apr 03 11:47:51 To avoid that, I put a condition to the MotionEvent, the latter must be MotionEvent.ACTION_DOWN. Apr 03 11:50:01 ThomQ: Btw, if you use a button, use setOnClickListener instead. Apr 03 11:50:18 ahh k, cool Apr 03 11:54:34 ThomQ: admob all good now, right? Apr 03 11:54:56 Yup, it worked for me a day or two ago :) Apr 03 11:55:26 me too Apr 03 12:14:58 Does anyone by chance have an invite for the Chrome Remote Desktop app? I would love to try it out! Apr 03 12:16:12 probably someone at the NSA Apr 03 12:17:25 No they have been doing that for years! Apr 03 12:19:32 Unable to find test for com.squareup.spoon.Spoon#screenshot ^^ Apr 03 12:22:32 I add values to DATA1, DATA2 and DATA3 columns for a raw contact that gets aggregated, but only the value associated with DATA3 is displayed in the contact application. anybody know why this is? Apr 03 12:23:59 I'm very new to android dev and I'm trying to create an emulator Apr 03 12:24:11 But I can only make it work with arm Apr 03 12:24:25 which is terribly slow on my macbook Apr 03 12:24:57 but every time I try and make one with x86 it crashes on boot Apr 03 12:25:03 mikker try genymotion Apr 03 12:26:20 g00s: downloading it right away Apr 03 12:26:28 Any Idea why the AlarmManager does not fire any PendingIntent on Android TV Box Although the same application works fine on a tablet or phone ? Apr 03 12:26:37 yuck - sign up needed Apr 03 12:44:45 Has anyone seen the latest developments on androids hitting earth? Apr 03 12:45:15 what? Apr 03 12:45:48 does anyone know how to imitate the effect of the 3-dots option menu on the action bar using an imagebutton? i just can't seem to get the menu to show up at the corner of the button Apr 03 12:45:55 should i be using a context menu? Apr 03 12:50:39 g00s: Genymotion is indeed a lot faster Apr 03 12:51:28 :) Apr 03 12:51:59 <3 Genymotion Apr 03 12:53:12 hi Apr 03 12:53:27 the regular android emulator is fast enough for me with HAXM Apr 03 12:54:03 i have a menuitem witth actionLayout to layout_test, in my layout_test i have a edittext, how i put the focus in edittext when click on this menuitem ? Apr 03 12:54:25 oh, I didn't notice the x86 troubles part Apr 03 12:54:29 nevermind Apr 03 12:56:48 itamz: I have no idea what their origin is but I've tried (it feels like) everything Apr 03 12:57:02 But alas no x86 Apr 03 13:03:16 Is there any indicator in android SDK that can show, that I am developing for a TV Box devcie ? Apr 03 13:08:58 Hello everybody, how can i have menu item in action bar on the top side while having item on bottom side too? Apr 03 13:09:18 Hey, I need an EditText with the numbers only keyboard, but I need to be able to edit the text at some points to something that's not numeric. i've tried setting the input type to number which gives me the numeric keypad and also to remove the input filters which doesn't seem to work.... any idea how can i accomplish that? Apr 03 13:12:58 When I try to bind this service http://pastebin.com/j1hn2TQk using this code http://pastebin.com/6bZJ6LAU it will not bind. Apr 03 13:12:59 here is my Manifest: http://pastebin.com/eTW9Wz9K Apr 03 13:23:57 any book you can recommend ? Apr 03 13:28:02 what can be the problem for this: adding a fragment to supportfragmentmanager, getting the fragment by tag 10 seconds later, but it returns null (tag is the same) Apr 03 13:36:48 If I want volley to not retry a request to I set the retry count to 1 or to 0? Apr 03 13:39:09 Ankhwatcher: 1 Apr 03 13:40:42 Hello everybody, how can i have menu item in action bar on the top side while having item on bottom side too? Apr 03 13:40:47 from the code. you can see it might not be named the best :) https://android.googlesource.com/platform/frameworks/volley/+/kitkat-dev/src/com/android/volley/DefaultRetryPolicy.java Apr 03 13:43:09 using the support lib v4, has this some issues for using fragments / limitations or something else? Apr 03 13:54:09 When I try to bind this service http://pastebin.com/j1hn2TQk using this code http://pastebin.com/6bZJ6LAU it will not bind. Apr 03 13:54:11 here is my Manifest: http://pastebin.com/eTW9Wz9K Apr 03 13:55:12 jaynewstrom: thanks Apr 03 13:59:39 hi all! Apr 03 13:59:52 There is no option menu if the activity set FEATURE_NO_TITLE, why ? Apr 03 14:00:36 Ankhwatcher: i looked into the code a little more. and i'm not entirely sure what i told you is right. I have a note to look into that later today. for my self too :) Apr 03 14:01:25 hah Apr 03 14:01:29 well let me know Apr 03 14:02:25 wait if 1 means no retries and that's the default then shouldn't my app already be not retrying? Apr 03 14:02:48 When I try to bind this service http://pastebin.com/j1hn2TQk using this code http://pastebin.com/6bZJ6LAU it will not bind. Apr 03 14:02:50 here is my Manifest: http://pastebin.com/eTW9Wz9K Apr 03 14:02:55 plz help Apr 03 14:04:08 Hey I have a IntentService being started by startService in an activity that gets kicked off at boot Apr 03 14:04:16 but it seems to get killed... Apr 03 14:04:29 I thought that an IntentService that was started with startService wouldn't die? Apr 03 14:09:12 Ankhwatcher: I'll let you know if I get to it today. not sure when i'll finish what i'm working on Apr 03 14:09:21 let me know if you find anything too please :) Apr 03 14:14:09 SuperNoeMan, it gets killed when there are no jobs to run Apr 03 14:23:58 With regards to the latest android phones and privacy. Is there more security when using a dumby camera preview in the most recent android versions? Apr 03 14:24:31 pfn: but the documentation says that if you create it with startService, it runs until stopService or stopSelf? Apr 03 14:26:23 I never called stopSelf or stopService Apr 03 14:26:25 .... Apr 03 14:26:45 false, it can stop at any time Apr 03 14:27:05 pfn: what? then how do I keep it from stopping? Apr 03 14:27:16 pfn: why would they put a lie up there on the documentation? Apr 03 14:27:56 http://developer.android.com/guide/components/services.html#CreatingAService Apr 03 14:28:08 might want to scroll to "Creating a Started Service" Apr 03 14:28:37 ah ok Apr 03 14:28:38 Stops the service after all start requests have been handled, so you never have to call Apr 03 14:28:43 that tells me everything Apr 03 14:39:43 hey guys. I have a VideoView i'm trying to point at an RTSP stream consisting of h.264 video without sound. When I try this, it appears to crash AudioFlinger (log message: "AudioFlinger server died!") is there any way to get VideoView to not look for an audio stream? Apr 03 14:40:16 when you are making layouts using the qualified layout folders, do you leave a copy in the main layout folder as a fallback? Apr 03 14:44:00 SuperNoeMan, reading the docs OP Apr 03 14:44:28 pfn: it turns out that a IntentService won't kill itself if it is bound... Apr 03 14:44:33 so I have to figure out how to bind it Apr 03 14:44:38 hum i have an activityA and in some case activityA should launch another instance of it but it does nothing(no crash, no launch). i'm pretty sure that recently i haven't any problem to do this Apr 03 14:44:39 I had the order of activities mixed up Apr 03 14:44:40 it won't kill itself until it gets unbound Apr 03 14:44:44 I was having trouble binding it Apr 03 14:44:50 binding it is dumb Apr 03 14:44:51 #1 Apr 03 14:45:03 #2, if you don't want the service to exit, don't use an intent service Apr 03 14:45:18 well, I need to communicate with it anyway Apr 03 14:45:27 and I'm only ever going to need one event processed at a time by it Apr 03 14:45:35 so binding it was something I was already planning on Apr 03 14:45:48 I had commented out the bind calls because they were causing an exception Apr 03 14:45:50 is it allow/good to add a fragment in onResume of the FragmentActivity? Apr 03 14:48:11 an activity can't call itself? Apr 03 14:53:05 are services bound to specific activities or to the application? Apr 03 14:53:16 like, can I bind to a service in one activity, and then unbind in another? Apr 03 14:55:08 SuperNoeMan: A bound service runs only as long as another application component is bound to it Apr 03 14:55:54 oh ok. FrancescoV how can I get a specific service that already exists from an activity that needs to communicate with it? Apr 03 14:59:03 SuperNoeMan: maybe this will help you: http://developer.android.com/guide/components/bound-services.html I haven't done it before Apr 03 14:59:52 SuperNoeMan, a bound service is bound to the service connection, nothing else Apr 03 15:00:02 erm Apr 03 15:00:04 no, that's not right Apr 03 15:00:07 So I am writing an android widget, as users may have many widgets on one screen my onUpdate updates many widgets and may take a very long time. The problem is, I can't find a way to reliably let my update call finish as it seems it sometimes is interrupted after some time. And if I use a asynctask thatone is sometimes also closed. What should I actually do to be sure that the update call finishes? Apr 03 15:00:10 it's bound by context Apr 03 15:00:29 since the stupid service connection isn't used in unbind Apr 03 15:01:03 phasip, split updating data into a separate service if it takes too long. Apr 03 15:02:03 whats a good phone to use to test on? Apr 03 15:03:41 Okay Mavrik, I'll try that Apr 03 15:05:41 amazwon, the one most of your users are likely to use. Apr 03 15:06:02 also, more broken the better :P Apr 03 15:06:14 probably Apr 03 15:26:39 Mavrik: Thanks! It seems to be working Apr 03 15:27:58 A question to the people who use Otto in here, if you don't need to actually pass data through a post, but want to use it as more of a notification to do something, do you just create an empty class with a descriptive name? Apr 03 15:28:39 so to say I want to start looking for a location, and this needs to be triggered elsewhere, bus.post(new FindLocationEvent()); Apr 03 15:29:07 where FindLocationEvent is just: public class FindLocationEvent{} Apr 03 15:45:09 Anyone have any experience with android remote management? I'm surprised there aren't more solutions for remotely controlling android devices Apr 03 15:45:40 I've tried using VNC server, but it keeps crashing, or just doesn't work for my phone Apr 03 15:51:31 ugh, how do I use buildnumber-maven-plugin to generate a buildnumber that android-maven-plugin can use in Apr 03 15:51:41 it keeps coming up blank and defaulting to pom version Apr 03 15:51:45 * pfn kicks maven Apr 03 15:51:55 bacon1989: sounds like you want remote screen not remote management. there isn't anything non-hacky for remote screen, it's not really in the architecture Apr 03 15:56:51 dragorn: yeah, it seems that way from what i've seen so far Apr 03 15:57:14 i'm hoping there would be better support in upcoming versions of android Apr 03 15:59:05 Is it allowed to add a Fragment in onResumeFragments? Fragment is visible but can't find it by tag, what can be the problems/solutions? Apr 03 16:02:50 bacon1989: I don't think it's somethign people are generally trying to do w/ android, so I wouldn't count on it Apr 03 16:05:14 What is monthly earnings from google ads? Apr 03 16:06:06 dragorn: what is a better alternative for a cheap, powerful device that you can throw full 1080p video on? Apr 03 16:06:33 bacon1989: depends on what you define as 1080p Apr 03 16:06:42 bacon1989: chromecast with plex is what I use. Apr 03 16:06:49 MalekAlrwily: well, it's the amount you make each month from Google ads... Apr 03 16:06:59 the android model is more remote control than remote display driving Apr 03 16:07:37 majority of what goes for 1080p video will easily go on some of the older (but top-end) android devices. SGS2 managed to put *more* than that. Avoid Tegra2 like hell Apr 03 16:08:00 Leeds: for clicks or views Apr 03 16:08:03 ? Apr 03 16:08:11 clicks, normally Apr 03 16:08:13 well, we have an android app that boots on startup and goes straight to a webview displaying our information Apr 03 16:08:33 the problem is remote controlling the android device Apr 03 16:08:42 Leeds: no earning for views? Apr 03 16:08:54 views are easy Apr 03 16:09:00 it's fully rooted, so i've been just suggesting rolling our own remote control through screenshots and emulated finger taps Apr 03 16:09:18 but we need to look at third-party alternatives first Apr 03 16:09:22 bacon1989: so control the webview via js or a tcp socket? Apr 03 16:09:35 no not the webview, the actual device Apr 03 16:09:45 the main use for the device is displaying a webview though Apr 03 16:09:46 Leeds: is there a way to change it to the views? Apr 03 16:09:58 MalekAlrwily: I don't think so... Apr 03 16:10:04 :( Apr 03 16:10:19 views are nearly worthless Apr 03 16:10:20 but we need to mak esure the displays are running, so it would be nice to be able to get screenshots, and even control the device remotely Apr 03 16:10:24 sort of like a VNC session Apr 03 16:10:40 for troubleshooting etc Apr 03 16:11:27 one major downfall to VNC is all the portforwarding we would have to do, where as with our windows systems, we can just use LogMeIn from a web browser to remote into our systems Apr 03 16:12:46 One that looked promising was 3CX Mobile Device Manager, but it only offers a shell. They had some sort of remote viewer in one of their older versions, but I guess they got fed up with it and stopped trying to develop it Apr 03 16:13:00 So I can only imagine that development in this realm is rather difficult Apr 03 16:14:21 Leeds: What about this: https://support.google.com/adsense/answer/190515 Apr 03 16:15:31 MalekAlrwily: as far as I know that's a backwards calculation - that is, if you earned $10 from 100 clicks, and that came from 10000 ad views, you're earning $1 per thousand views Apr 03 16:17:36 :( Apr 03 16:18:41 anyone around want to do me a quick off-topic favour? Apr 03 16:33:55 hey folks, this doesnt seem to be a big question but it's unanswered on SO, maybe you could help http://stackoverflow.com/questions/22839275/android-edittext-force-numeric-keyboard-but-allow-non-numeric-chars Apr 03 16:50:55 what is the difference between loader // fragment without UI // service ? why do I need the service, if I can do things async-ly with loader and why do I need the service when I can do the same with fragment-without-ui ? Apr 03 16:57:46 rsz: Services can run in the background even when the user is using a different app Apr 03 16:58:12 rsz: If you can do something without a Service you probably don't need a service Apr 03 16:59:49 ok, thanks yiati. Apr 03 17:03:06 Hi all is there a way on Oriantatio Landscape to tell wittch direction so the screen is not upside down Apr 03 17:11:20 IchGuckLive, https://stackoverflow.com/questions/14477133/how-to-use-android-sensor-event-to-determine-if-device-is-facing-up-or-down Apr 03 17:11:47 Thanks Apr 03 17:11:49 If i got you right.. Apr 03 17:11:58 bp Apr 03 17:12:00 np Apr 03 17:13:38 i got one mashine the app is runing on that starts the app upside down in landscape mode Apr 03 17:24:50 My Android Studio kept freezing, so I deleted my preferences and reimported the project. Now it says it can’t find the Google APIs, even though the version it’s requesting is definitely installed. Apr 03 17:27:17 did you update to 0.5.4 Apr 03 17:44:30 anyone using RxJava for android? Apr 03 17:45:01 hi, anyone knows what exactly "Wi-Fi optimizations", in Advanced Settings, do? Apr 03 17:45:12 in order to save battery Apr 03 17:45:12 Mango_Man: That’s my question, too. I’m really interested in it. Apr 03 17:45:54 colintheshots: it looks lovely, and i can see how it'd be useful for expressing async calls. but there's very little mention of it beyond several blog posts on google. Apr 03 17:46:18 on the android side, not general java/scala/jvm stuff Apr 03 17:54:11 Anyone know a social networking tutorial for android ? video or non-video is okay. Apr 03 17:54:31 Hey, anyone knows if a commercial app can use LGPL libraries? Apr 03 18:01:17 man, continuation passing style is a really complicated name for something that's actually really simple in practice Apr 03 18:04:04 hey, any good and recent lecture about gradle and android? I need to wrap my head around gradle to migrate from an ant project with multiple jni projects Apr 03 18:06:53 Mango_Man: i am Apr 03 18:07:54 JakeWharton: yeah i'm reading your u2020 app's source code at the moment for rxjava usage Apr 03 18:08:05 it doesn't use it very extensively Apr 03 18:11:53 How do you take a screenshot with your phone. I thought you could press volume down + power, but that doesn't seem to work? Apr 03 18:13:29 never mind, had to hold it for 1 second Apr 03 18:30:35 good morning (ugt) - I wonder if anyone can help me with how I can do my initial setup in my application... My intended flow is described here : http://pastebin.com/JdZn0m4g Apr 03 18:49:07 Ankhwatcher: it looks like making network requests with 0 for the maxNumRetries works. Apr 03 18:52:13 codetroll for #2 you can set android:launchMode="singleTask" for the splash screen, I believe. Apr 03 18:52:40 theblang - thanks I will look into that.. Apr 03 18:55:24 codetroll for progress bar you could use http://developer.android.com/reference/android/app/Activity.html#setProgressBarIndeterminateVisibility(boolean) Apr 03 18:55:49 theblang on my way..... :) Apr 03 18:57:33 codetroll for chaining together your website calls, if you need the data from website a before requesting to website b, you can launch a new async task from the onPostExecute of your first async task. that is how I did it anyway, not sure if it is the best way Apr 03 18:58:21 codetroll for showing a progress message, I used Toasts rather than change text in the action bar. Apr 03 18:58:27 That is what I have seen as well.. It is not very nice code to look at though.. Apr 03 18:58:59 Well - I'd prefer to have a progress bar - but toasts may be the solution if I can't get it to work.. Apr 03 18:59:00 codetroll which code? Apr 03 18:59:37 codetroll well, you can do both. I do in all of my server queries. I just display the indeterminate bar, then display a toast when the request is complete Apr 03 18:59:47 my async calls, chained.. But I can probably move stuff about so it doesn't look cluttered Apr 03 18:59:49 ah ok Apr 03 19:00:17 codetroll I see what you mean, you don't want to flash a lot of Toasts. for me I just had to display one when everything was done Apr 03 19:01:15 Yeah - I want the entire process to be displayed.. I hate when a lot of stuff happens and you can't see what is happening ;) Apr 03 19:02:01 codetroll yeah, im not sure wha tthe best way to handle that would be... let me know what you end up doing Apr 03 19:02:37 I will.. I will probably take my time to get the progress bar working before I fall back to toasts ;) Apr 03 19:20:59 Hm, when I use the wizard in Eclipse to make a new Android project, and/or add a new Activity, it creates a class extending ActionBarActivity with an onCreate() that adds a PlaceHolderFragement to a SupportFragmentManager. Is this really the standard? Apr 03 19:21:30 I think it used to be just a simple Activity with a plain onCreate(). Apr 03 19:21:43 No ActionBar, not Fragments.. Apr 03 19:21:50 It is if you're using fragments and supporting API<14 Apr 03 19:22:42 I'd like to support API<14 but I'm not sure about if I want the Fragments... Apr 03 19:24:53 Anyway, I'm just struggling with a layout where I cannot make my ImageView align with the bottom of the screen. So I tried tracing what was going on, and I realized that my Fragment was of course inside the Activity's layout, and thought that could be causing the trouble. But the Activity's layout is a FrameLayout which I guess is harmless... Apr 03 19:25:53 what happens if you call start service on a service that already exists? Apr 03 19:25:55 Zta: is the base of the fragment a RelativeLayout? Apr 03 19:27:31 “Every call to this method will result in a corresponding call to the target service's onStartCommand(Intent, int, int) method, with the intent given here. This provides a convenient way to submit jobs to a service without having to bind and call on to its interface.” Apr 03 19:27:33 SuperNoeMan: Apr 03 19:27:35 ^ Apr 03 19:32:12 SuperNoeMan: if it's already running it keeps running. I just always call start, it doens't hurt anything. Apr 03 19:32:25 thepoosh: interesting, I think I didn't realize that. That's handy. Apr 03 19:32:54 dragorn: all i did is go to the docs on that method Apr 03 19:33:03 hello Apr 03 19:33:05 in the Context.startService Apr 03 19:33:10 dunkel2: ! Apr 03 19:33:25 thepoosh: yes it is. Apr 03 19:34:49 i add a fragmetn to the backstage that new fragmetn sets a new title for the actionbar, but when i pop that fragment i dont get back my previous title, how can i detect in the previous fragment that that fragmetn is now on the window to change back the title? Apr 03 19:34:51 thepoosh: Currently the only child of the RelativeLayout is an ImageView with alignParentBottom="true" and wrap_content. But maybe those attributes don't work when there are no other Views in the Layout? Apr 03 19:35:28 could it be that the image is just too large? Apr 03 19:35:30 thepoosh: oh i'm sure, but I didn't remember reading it however long ago. Not sure I actually need it, but it's convenient. Apr 03 19:35:39 yes Apr 03 19:35:46 docs are very convinient Apr 03 19:36:06 thepoosh: the image is displayed in the center of the screen, but fits in the width. Apr 03 19:36:30 well, it seems like the "wrap_content" is doing this to you Apr 03 19:44:12 it acts like a match_parent if I understand it correctly. Apr 03 19:46:23 Zta: it resizes according to the size of the bitmap Apr 03 19:50:38 how can i call a fragmetn method in the onBackStackChanged listener Apr 03 20:00:46 hi Apr 03 20:00:54 any can help me with Autocompletetextview ? Apr 03 20:00:59 thepoosh: Please see http://imgur.com/DexA7ia Apr 03 20:02:05 I want the grass to be at the bottom of the view and stretch to the width of the image. The orange RelativeLayout "innerlayout" should fill out the rest above the image. Apr 03 20:03:13 (I probably haven't thought this though, because rotating the screen to a horizontal orientation will fill everything with grass, but ... that's a different problem =) Right now I don't understand why the grass is centered) Apr 03 20:10:10 Anyone? Apr 03 20:10:25 Try https://developer.android.com/reference/android/widget/ImageView.html#attr_android:adjustViewBounds Apr 03 20:13:33 SimonVT: YAY! Thanks =) Apr 03 20:15:58 I'm too new to Android layouts to understand why this isn't the default... Apr 03 20:18:11 It happens because the image is larger than drawn on screen.. By the default the width and height is the images size Apr 03 20:18:37 Since there's a constraint on how wide it can be (match_parent), the width is no longer the images width Apr 03 20:18:45 The height is still the images height Apr 03 20:18:58 (since it just wraps content) Apr 03 20:19:33 Ah.. Apr 03 20:19:48 The default behavior is to just fit the image within the bounds of the view Apr 03 20:20:10 but still without preserving aspect ration? Apr 03 20:21:58 Lets say you wanted the ImageView to draw the image as tall as it is, and just crop away the sides Apr 03 20:22:12 Then you wouldn't want the imageview to ensure its aspect ratio matches that of the image Apr 03 20:23:12 hm, true. Apr 03 20:23:30 I guess I need to experiment a little with this. Apr 03 20:23:56 The most common usecase is to display an image that's smaller than the screen.. For this case the defaults work Apr 03 20:24:23 (at least mine is) Apr 03 20:24:44 Look into ScaleType as well, you'll need to know about those Apr 03 20:24:55 https://developer.android.com/reference/android/widget/ImageView.ScaleType.html Apr 03 20:25:08 Basic image scaling Apr 03 20:28:55 I can't get my (really simple application) to register scroll and fling gestures, can someone take a look? http://pastebin.com/ikN6yzbn Apr 03 20:29:01 When I scroll or fling nothing happens, where it should log something. Apr 03 20:33:32 SimonVT: Thanks a lot. Apr 03 20:33:46 arphen: are you setting the activity as a scroll listener somewhere? Apr 03 20:34:16 you'd have to do listView.setOnScrollListener(this); Apr 03 20:35:31 shoot. after looking at your code. you're using gesture detector. don't mind me Apr 03 21:09:02 What is the best way to swap out a fragment that is being serviced by a ViewPager? Apr 03 21:10:31 just swap it out in your adapter Apr 03 21:11:09 okay, I'm needing to do a tab view, and in each tab view a somewhat linear progression of screens, as items are selected. Apr 03 21:13:36 Hey guys, where does http://www.appannie.com get all the data about apps? It seems the play store only displays the newest coolest highest rated apps. Apr 03 21:19:38 pfn: do I need to notify the viewpager that something has changed? (e.g. calling setAdapter again?) Apr 03 21:19:50 jaynewstrom, is that correct as gesture detector? Apr 03 21:23:06 arphen: no. read the class overview http://developer.android.com/reference/android/view/GestureDetector.html Apr 03 21:39:05 hey, anybody done a controllers.json yet for amazon fire tv? Apr 03 21:40:06 I can't get my (really simple application) to register scroll and fling gestures, can someone take a look? http://pastebin.com/ikN6yzbn Apr 03 21:40:14 When I scroll or fling nothing happens, where it should log something. Apr 03 21:40:48 hey guys Apr 03 21:43:11 I have a questioin regarding encryption...so I encrypted my rooted ls980 (sprint lg g2) while on cm11, and then BOOM my password doesn't work. I could still get into cwm recovery, but the only thing it let me format was the /system. It won't let me format /data. Also, possibly BECAUSE I formatted the /system I may have lost root? Now when I try to close cwm recovery, it says I don't Apr 03 21:43:11 have root access, and asks me if I want to root the phone (it never seems to work, it still asks every time). WTF do I do? Haven't had use of my phone in 5 days, and I wanted to start working on developping :'( Apr 03 21:43:53 oh right, and adb isn't recognizing the phone... Apr 03 21:55:44 When I try to bind this service http://pastebin.com/j1hn2TQk using this code http://pastebin.com/6bZJ6LAU it will not bind. Apr 03 21:55:46 here is my Manifest: http://pastebin.com/eTW9Wz9K Apr 03 21:56:46 TSCHAKMac, notifyDataSetChanged, as with all adapters Apr 03 21:56:56 TSCHAKMac, you also need to set an appropriate tag on the fragment Apr 03 21:57:02 default fragmentpageradapter is dumb Apr 03 21:57:17 okay. Apr 03 22:01:34 * MDTech-us_MAN is breakin' walls! http://cur.cursors-4u.net/smilies/images1/smi20.gif Apr 03 22:01:42 * MDTech-us_MAN is sledge hammering his computer! http://youtu.be/SAT1eBpJyG8?t=30s Apr 03 22:01:55 WHAT GIVES Apr 03 22:02:10 because, you lack details Apr 03 22:02:14 google esr smart questions Apr 03 22:02:52 what info do you need? Apr 03 22:04:19 can anyone help me? Apr 03 22:04:29 I have a questioin regarding ridding a phone of encryption...so I encrypted my rooted ls980 (sprint lg g2) while on cm11, and then BOOM my password doesn't work. I could still get into cwm recovery, but the only thing it let me format was the /system. It won't let me format /data. Also, possibly BECAUSE I formatted the /system I may have lost root? Now when I try to close cwm recovery, Apr 03 22:04:30 it says I don't have root access, and asks me if I want to root the phone (it never seems to work, it still asks every time). WTF do I do? Haven't had use of my phone in 5 days, and I wanted to start working on developping :'( Apr 03 22:06:41 nimwho: see #android-root , #android-rom , and also the guys at #verizons3 helped Apr 03 22:07:21 please note, #verizons3 is MOSTLY for the Galaxy S3, but you still can ask around Apr 03 22:08:48 Might anyone know why my focusChangeListener on a SearchView isn't being called when I click the SearchView and it gains focus/shows keyboard? Apr 03 22:08:53 pfn: I used the tutorial at http://developer.android.com/guide/components/bound-services.html#Binder Apr 03 22:20:49 pfn: When I removed the loop that checks weather the service is binded and I get the following error: http://pastebin.com/SG2Yvqdn Apr 03 22:27:36 Is there a way to bind to a service in a different process? Apr 03 22:41:16 so fix your NPE Apr 03 22:41:18 sounds like an easy problem Apr 03 22:49:31 and "loop" wtf are you looping on Apr 03 22:50:39 what garbage are you doing... Apr 03 22:51:45 AS bugfix update \o/ Apr 03 22:58:01 Hi all. I've been googling for a bit now, but I cant find any more info on swiping views, except the http://developer.android.com/design/patterns/swipe-views.html page which doesn't give any script reference links at all. All I could find was stuff about swiping tabs, which i'm not using. Could anyone point me in the right direction? Apr 03 23:12:10 is there some way to quickly switch between projects in AS/intellij so I don't kick off a build each time? one thing I really loved about eclipse , being able to have multiple projects open at the same time Apr 03 23:13:35 "The import android cannot be Apr 03 23:13:36 resolved" Apr 03 23:13:40 What does this error mean? Apr 03 23:14:12 Also this :"The import java.io cannot be resolved" Apr 03 23:14:26 I am getting these in a project Apr 03 23:14:31 Hi. Apr 03 23:14:35 on eclipse Apr 03 23:14:41 Anyone knows android programming well and will help me for btc/ltc? Apr 03 23:14:42 ah, it was open in new window (not replace) Apr 03 23:15:14 I recently moved my project to a new windows installation BUT this error does not occur in other projects Apr 03 23:27:47 Anyone knows android programming well and will help me for btc/ltc? Apr 03 23:28:10 bazil5: see /topic Apr 03 23:29:12 what is btc/ltc ? Apr 03 23:29:47 bitcoin/litecoin Apr 03 23:29:56 do you even internet!? ;) Apr 03 23:30:18 buttcoin Apr 03 23:30:46 I remember I was offered bitcoins or regular monies for a job Apr 03 23:31:21 I sort of question the sanity of anyone offering or taking buttcoins in exchange for work Apr 03 23:31:32 I've been paid >£4k from various projects in bitcoin Apr 03 23:31:36 Is there any way to disable the highlighting of a single row in the middle of a ListView without losing the separators above and below that row? using areAllItemsEnabled and isEnabled removes those separators. Apr 03 23:32:30 johnhamelink, only if you cashed them out straightaway Apr 03 23:32:37 lupine: ha Apr 03 23:33:01 for srs, nobody in the bitcoin ecosystem can run infrastructure Apr 03 23:33:02 I didn't actually, I used them to pay some developers in other countries with no exchange conversion fee ;) Apr 03 23:35:14 actually, you paid 2 conversion fees Apr 03 23:35:38 from to bitcoin, then bitcoin to Apr 03 23:35:57 or at least 1 side paid one of those fees :) Apr 03 23:36:28 JesusFreke: nah, I was paid in btc, then paid someone else Apr 03 23:36:31 so no conversion fee for moi Apr 03 23:36:58 yeah, fair enough, if it stays in btc. Apr 03 23:37:14 yeah :) Apr 03 23:42:16 where can i upload an eclipse project for assistance? Apr 04 00:07:44 Hello… I’m coding in html 5 and for some reason I can’t get this image to display on android 2.3. It shows when I navigate directly to the images URL but not inside my page. Apr 04 00:09:06 hi. I am getting an error: cannot convert from type mapsactivity to fragment, after following androidhive's tutorial on Android Tab Layout with Swipeable Views Apr 04 00:09:38 CrispyClean html5, android 2.3 ? LOL ! Apr 04 00:09:42 return new MapsActivity; : Type mismatch: cannot convert from type MapsActivity to Fragment Apr 04 00:10:02 return new MapsActivity(); : Type mismatch: cannot convert from type MapsActivity to Fragment Apr 04 00:10:02 rather Apr 04 00:11:24 hello Apr 04 00:11:32 g00s i know i know but everything else works… even an audio tage. It’s just one jpg :-( Apr 04 00:12:11 hi dunkel2 Apr 04 00:13:13 how can i make my app compatible with android 2.3? Apr 04 00:13:38 do i just need to change this value? android:minSdkVersion="16" Apr 04 00:13:52 dunkel2: you have to make sure you're not using any incompatible apis Apr 04 00:14:37 In some cases, you can have dynamic checks on the api level "protecting" calls to apis that didn't exist in 2.3 or whatever Apr 04 00:14:54 yeah, my minsdkversion is like 11 right now Apr 04 00:14:56 of course, you have to either disable whatever that feature is, or provide some workaround/alternate implementation Apr 04 00:15:00 for this app I'm working on Apr 04 00:15:14 mm i see, and how can i know the incompatible apis? Apr 04 00:15:18 but yes, changing the minsdk is the first step. That will at least let it be installed Apr 04 00:15:28 my app is pretty simple Apr 04 00:15:32 jsut normal stuff Apr 04 00:15:36 but im using the drawer Apr 04 00:15:39 and fragments Apr 04 00:15:40 dunkel2: I believe there should be some lint checks. But I don't know offhand how to run the android linter Apr 04 00:16:06 well, if you're using fragments, you'll have to use the support library in order to use them on 2.3 Apr 04 00:16:18 because fragments didn't exist on 2.3 Apr 04 00:17:00 Hi guys, I'm having a problem, ever time that I import a project I'm getting a lot of app.v4.fragments and a style error