**** BEGIN LOGGING AT Sat Jul 19 03:00:00 2014 Jul 19 04:36:16 g00s:Any experience implementing an ExecutorService / ThreadPool? Jul 19 04:38:04 capella do you mean writing your very own Executor (implementing the interface), or using an Executor ? Jul 19 04:38:36 anyhow, i'm rusty with that stuff. i've been using rx for most things, or HandlerThread Jul 19 04:39:08 mmm... considering a parallel thread pool vs our current single threaded background thread Jul 19 04:39:30 so its more about tuning the Executor then Jul 19 04:40:11 yah ... we have bacground threads that can run in parallel but get backed up behind long running network threads for example Jul 19 04:40:31 /can /could Jul 19 04:40:53 is this FF ? Jul 19 04:41:02 yep Jul 19 04:41:24 started out by debuggin an issue where copying to the clipboard delays by 50 seconds .... wtf? Jul 19 04:41:29 oh that context is probably pretty complicated Jul 19 04:42:16 with EE stuff I always tested a few pool configurations empirically Jul 19 04:42:38 j2EE Jul 19 04:44:39 I;ve just started looking at this, and Im wondering about implementation ... can I create a newFixedThreadPool() that runs in parallel to our existing single threaded background ThreadUtils , and stage over the logic, or do I have to cut the existing ThreadUtils into the newFixedThreadPool() at a fixed thread right from the start... Jul 19 04:45:00 if that makes sense Jul 19 04:45:53 i donno. gotta be careful about deadlock and livelocks Jul 19 04:46:05 concurrency is a big part of the design of an app Jul 19 04:46:15 tell me :) Jul 19 04:46:17 i'm not familair with FF's architecture / design at all Jul 19 04:46:34 except that i can't figure out what damn tab is eating all my CPU :) Jul 19 04:46:41 ah, well Im still looking for background / theory Jul 19 04:46:48 oh that again ! Jul 19 04:47:11 i haven't started FF in over a month now, since i can't resolve that Jul 19 04:47:17 using chrome atm Jul 19 04:47:17 you mean in general? Or a specific issue that's bugging you? Jul 19 04:47:40 specific issue; i asked in #firefox there was no resolution Jul 19 04:48:30 well, i might have to use some session manager thing to save off chunks of tabs or some silliness Jul 19 04:48:51 I mean you have a set of common suspect URL/Tabs and one is the problem and experimenting with closing them in random orer doesn't reveal the bad guy? Jul 19 04:49:41 Or you want a generic way to rate tabs by CPU consumption? Jul 19 04:50:01 i have around 60 tabs, somebody is eating my CPU and i can't figure out who Jul 19 04:50:08 i gave up Jul 19 04:50:18 oh, yah, that'd be a lot of screwing around Jul 19 04:50:58 its about 30% cpu so, enough to make fans kick in etc Jul 19 04:51:12 it makes no sense, because i have 'don't load tabs until opened' Jul 19 04:51:31 and even some plugin that disables JS on tabs thats aren't loaded Jul 19 04:51:45 its proabably some stupid thing with adblock, dunno Jul 19 04:52:05 oh yeah, and i have adblock and noscript set up to not run crap unless clicked Jul 19 04:52:12 totally mindboggling Jul 19 04:52:30 so theoretically, all the FG tabs shouldn't even be running any JS Jul 19 04:52:48 oh well, using chrome atm. for now, until they fix that Jul 19 04:53:28 AND i have gif animations disabled, uggh! Jul 19 04:53:51 i'm growing discontent with FF, but chome sucks Jul 19 04:54:52 Let me try asking ... last I understood, Android was originally single Threaded, then we created the ability to excute multiple Threads in parallel and turned it on by default, but that fracked people who's apps depended on arrival time thread serialization so they dropped the parallel thread count to 1 to make all happy ... am I correct so far Jul 19 04:56:18 well 1 thread count is serial, ok Jul 19 04:56:58 "arrival time thread serialization " ... capella what is this ? Jul 19 04:57:22 was something basically getting messed up because results were out of order ? Jul 19 04:57:39 Non parallel thread completion wont hurt .... some apps assume fifo Jul 19 04:58:01 Right, threads out of order messed up some old apps Jul 19 04:58:54 well, if you can determine the dependencies between threads, you can execute them in parallel but deliver the result FIFO Jul 19 04:59:08 rxjava is good at that btw :) Jul 19 04:59:22 I have to write a demo "hello world" app showing how to do the basics of an api i've developed. The main function of this api is to serve up datastructures that will be used in a listview... for a hello world application, does anyone think that using a base adapter subclass would be too much? Should I just stick to arrayadpter? Jul 19 04:59:29 capella, async task, not android Jul 19 04:59:47 what I wonder is, FF uses that single threaded queue to execute background tasks already ... if i simply implement a |ExecutorService executor = Executors.newFixedThreadPool(5);| then throw threads at it, does that new thread pool run in parallel to the already existing one? Jul 19 04:59:57 oh, maybe Im confusing terminology Jul 19 05:00:08 capella it should Jul 19 05:00:13 threads are threads Jul 19 05:00:23 life is life Jul 19 05:00:35 p is np Jul 19 05:01:15 mmm ... I need to more clearly define my point of confusion :) Jul 19 05:01:38 capella you can have any number of executors, with their own thread pools Jul 19 05:02:00 if you want a serial # for legacy, and a parallel one for ... everything else, thats fine Jul 19 05:02:15 that sounds promising and what I expected as an answer Jul 19 05:02:31 g00s: yes that last thing you said Jul 19 05:03:56 cool then ... I'll keep reading ... then get brave and throw the code together and learn from the subsequent explosions Jul 19 05:05:21 capella the other option to take, however, is just execute them all in parallel and deliver the results serially Jul 19 05:05:38 so in that case, dumb parallelism, the upper bound in time is only the longest operation Jul 19 05:06:00 mmm .. pretty sure that's not an option ... I'd never get that past my reviewers in any amount of reasonable time Jul 19 05:06:21 this assumes - dumb parallelism - that there are no dependencies between these results Jul 19 05:06:26 phasing in a new [parallel service then cutting the older consumers over later is easier to digest Jul 19 05:06:41 if its provably correct, it should be fine with rational people :) Jul 19 05:07:00 Have you *seen* the code base?? :P Jul 19 05:07:01 ok Jul 19 05:07:07 non-trivial Jul 19 05:07:31 sure, probably lots of reviewers, etc. i understand Jul 19 05:07:46 this is how a project takes on technical debt Jul 19 05:07:48 But it's not reasonable waiting for keyboard copy-to-clipboard to wait 50 seconds while a bacground thread downloads a page's favicon Jul 19 05:08:03 additive suboptimal pieces of work Jul 19 05:08:29 i can't wati for a page to load in more than 5 seconds, i give up Jul 19 05:08:32 due to being required to run the copy-to-clipboard through a looper based on some older keyboards Jul 19 05:08:33 hehe Jul 19 05:09:09 long story ... short version is I'm on a mission :) Jul 19 05:09:44 \o/ Jul 19 05:11:09 pfn: thanks for the correction :) keep my feet to the fire Jul 19 05:12:11 dont burn them Jul 19 05:13:01 i just learned that those people who walk over the coals - they really do burn their feat soetimes Jul 19 05:13:16 i thought it was all a hoax, like at the anthony robbins events hehe Jul 19 05:13:41 * g00s throws some coal over towards capella's flammable code Jul 19 05:13:56 * g00s runs ! Jul 19 05:14:30 well my brain is certainly getting fried Jul 19 05:15:02 me too man, i'm readin an economics book Jul 19 05:15:18 http://www.amazon.com/Contending-Economic-Theories-Neoclassical-Keynesian-ebook/dp/B00946TR46 Jul 19 05:18:50 "Neoclassical", what an Orwellian self-designation Jul 19 05:19:03 Hi morning Jul 19 05:19:40 g00s: a keynesian? Jul 19 05:19:57 I dont want to come to login screen everytime I enter the app. I want my app to save the login details till next restart Jul 19 05:20:20 I am looking for SahredPreferences Jul 19 05:20:29 SharedPreferences Jul 19 05:20:36 capella i was reading about neoliberalism, capitalism, and environment. i thought i should step back and get a better grounding to read about the major theories and how they compare Jul 19 05:20:41 But not understanding how it is working Jul 19 05:20:50 g00s: capella any help? Jul 19 05:21:03 http://stackoverflow.com/questions/9964480/how-to-display-login-screen-only-one-time Jul 19 05:21:19 niru: what don't you understand about sharedpreferences? Jul 19 05:21:25 The neo part of neoclassical means they threw almost everything the classical people said in the garbage. What they kept was usually what was wrong. The classical part means they still use Adam Smith's name and reputation, despite the fact that they don't believe what he did Jul 19 05:22:34 Ologn hopefully i will understand what you said when i am finished with the book :P Jul 19 05:22:50 I agree with Ologn in general. Jul 19 05:22:50 Leeds: Does the SharedPreference hold the file name that I want to stop reappearing? Jul 19 05:22:58 you should read Adam Smith directly. Jul 19 05:23:13 niru: sharedprefences hold key/value pairs Jul 19 05:23:15 capella (reading the backlog): Android has always been multi-threaded (since 1.0 release, at least). But iirc, there was some change in how ASyncTasks worked, which is probably what you were referring to. Jul 19 05:23:39 The main thing to understand in economics is this: In astronomy, almost all astronomers are interested in the truth. So what topic are people most interested in lying about? Obviously how the pie is divided up in terms of money. So "economic theories" are usually BS made up by one party or another to help them keep more money for themselves. It's the field where people are most motivated to lie. Jul 19 05:24:27 Leeds: Then if the page is not yet visitied it will be the pagename and 0? Jul 19 05:24:37 and if visited it is pagename and 1? Jul 19 05:24:41 niru: what you do with the key and value is up to you Jul 19 05:24:49 Ologn interesting Jul 19 05:25:18 i only got interested, as i said reading about the environment - but from a systems perspective, ecomics must impact environment Jul 19 05:25:49 Even the name economics is BS...the field used to be called political economy. But for PR efforts they decided to throw out the word political, because they wanted people to believe they were objective, just at the point they stopped being objective at all...anyhow I'll stop talking about it before I got into a long rant... Jul 19 05:25:50 from a system perspective the issue of the "rational actor" is really important. Jul 19 05:25:54 jesusfreke: yah ... typed faster than my brain was thinking .... ;) Jul 19 05:26:13 Ologn :D Jul 19 05:26:17 which is how I code Jul 19 05:26:42 capella oh were you asking about AsyncTask ? i thought you were asking about Executors in general Jul 19 05:27:03 Well, I was talking about Executors, and mixed in the AsyncTask story Jul 19 05:27:22 as I was falling back and trying to remember it Jul 19 05:27:51 Collage apps are trending for tablets...damn, mine is still only half-finished...have to get cracking on it.... Jul 19 05:28:03 a logical "fade shot" that came out less than coherent Jul 19 05:28:04 oh so that makes sense then, you were wondering if you could use 2 AsyncTasks confifured differently, ahh Jul 19 05:28:27 Ologn what is a collage app? for photos ? Jul 19 05:29:13 g00s: yaa, I'm working on one because they're popular...once I got into it I realized the design part of the app was harder than I thought. Hard decisions to make. Jul 19 05:30:32 you can do it ! Jul 19 05:31:10 piccollage is really good Jul 19 05:33:29 Collage apps are so popular, piccollage is not in the majors because it has "only" 10 million downloads Jul 19 05:41:12 So I guess my answer is "we have a single threaded background Thread, because we do things like support 2.2 devices and ... whatever" Jul 19 05:41:38 I notice pixlr has a fairly good collage feature. Jul 19 05:41:53 How do I force a BaseAdapter's ListView to re-get its views? I've got some data that occasionally changes formats and I can't seem to figure out how to make a BaseAdapter's getView get called when needed. Jul 19 05:42:08 I like the interface, you can move the image around with your finger inside the cell Jul 19 05:43:33 indrora, notifyDatasetChanged Jul 19 05:46:21 indrora ApiDemos has plenty of BaseAdapter examples Jul 19 05:46:43 Yeah. Unfortunately, these are changing based on a /setting/. Jul 19 05:46:57 my listeners are getting reaped on a regular basis. Jul 19 05:49:51 Now Leeds I have used SharedPreferences settings in an empty activity. How should I be linking this activity with the login page. Jul 19 05:50:05 Will public static final String PREFS_NAME = "MainActivity"; wor? Jul 19 05:50:08 work? Jul 19 05:55:36 indora: notifyDataSetChanged or SetAdapter after updating your arraylists Jul 19 05:56:49 hey goos, those authors are out of umass which has a real good econ program, in fact they put out this magazine: http://www.dollarsandsense.org/ Jul 19 05:57:39 lasserix_ cool, thanks :) my bro went to umass Jul 19 05:58:20 ahh cool, i wanted to go their too when i graduated high school Jul 19 05:58:51 one of the cools things, is its part of the 5 college consotorium so you can even (as a male) take classes at mount holyoke (women's college) ;p Jul 19 05:59:32 sounds like a good plan XD Jul 19 05:59:43 Anyways, i was debating how complicated to develop an app that is going to be used as the "hello world" app showing how to use a (service) android api / sdk Jul 19 05:59:57 do you think things like a base adapter are too much for such an app? Jul 19 06:00:33 to keep everything but the api usage really really simple i wanted to original use like arrayadapter, but then it's kind of too limited Jul 19 06:01:00 i use BaseAdapter for everything not involving cursors Jul 19 06:01:02 or for instance, should i try and keep the android themeing (action bar, etc) if i don't really need to include it? Jul 19 06:01:19 hmm, yeah i guess any developer worth their salt has some exposure to using base adapters Jul 19 06:01:24 *at least Jul 19 06:02:23 maybe there's something out there i can check out, do you know any libraries for android that have a webpage with tutorials showing how to do coding with the library? Jul 19 06:02:26 lasserix_, if you have a listview you should be doing a custom adapter extending on BaseAdapter Jul 19 06:02:55 shmooz: yeah i know, but i didn't want to put too much attention on base adapters or any of the UI Jul 19 06:02:58 lasserix_ i'm already liking http://www.dollarsandsense.org/archives/2014/0714boyce.html Jul 19 06:03:39 g00s: yeah there is a q and a somewhere that's really good for getting a clear understanding of common economic issues/topics/miscomprehended thigns Jul 19 06:04:09 shmooz, Neither work. Jul 19 06:04:54 indrora: are you extending BaseAdapter ? Jul 19 06:05:04 shmooz, Yes. Jul 19 06:05:15 both work for me Jul 19 06:05:17 oh shoomz: the question so say i use a base adapter, should i then take the time to use view holder and etc etc? Jul 19 06:05:44 (i am capable of doing it, i just wanted to avoid "boilerplate" since the app/code is about using the api, not about making an efficient listview) Jul 19 06:07:00 lasserix_, not sure, but I found it necessary for a local or remote crowded list to lazy load and buffer only a small area if it's a big list Jul 19 06:07:25 shmooz: the point of the app is not for releasing on the store, it's a demonstration of the library Jul 19 06:08:05 so i am not worried about doing stuff like adding lazy loading, etc etc etc i just want to show how to do like apicall.start() apicall.stop() apicall.doSomethingThatGivesMeData() Jul 19 06:08:07 oh ok Jul 19 06:08:28 that's why i was wondering if a base adapter is overkill / detracts from the focus on the project Jul 19 06:09:07 anyone play with dart by the way? Jul 19 06:09:13 lasserix_ implementing baseadapter is like, 15 lines of code ? Jul 19 06:09:15 I would tell them to get ready to digest more Jul 19 06:09:34 and maybe have a advanced way of doing it as well if they want to look at that Jul 19 06:09:51 g00s yeah but the thing is, its 15 lines of code other people who might do a code review will pester me about it Jul 19 06:09:53 ;p Jul 19 06:09:58 lasserix_: hi Jul 19 06:10:05 *other people who have no android expirience Jul 19 06:10:10 niru hello niru Jul 19 06:19:26 niru how is your gitting? Jul 19 06:20:38 lasserix_: There were majority who prefered svn in the group so we had to go with svn :( Though its similar to git Jul 19 06:21:17 lasserix_: can you please check http://pastebin.com/YWPSnZLS Jul 19 06:22:33 lasserix_: I want same the userlogin page and from 2nd time app starting should firectly go to home page Jul 19 06:22:34 I don't know, can you buy me a beer future with a few bitcoins? ;p Jul 19 06:23:31 uh Jul 19 06:23:34 do they have to log in each time? Jul 19 06:24:29 lasserix_: no I want to restrict login to one time Jul 19 06:25:03 niru: are you actually saving the login state/credentials? Jul 19 06:25:04 Oh cool ... merry xmas http://docs.oracle.com/javase/1.5.0/docs/guide/jpda/jdwp-spec.html Jul 19 06:26:14 Leeds: at present I dont have a database available. Jul 19 06:26:31 niru: yes, that has absolutely nothing to do with the question I just asked Jul 19 06:26:57 Leeds: yes I want to save the login state Jul 19 06:27:36 "Hey, did you do the washing up?" "No, my boss' uncle is French." Jul 19 06:27:54 so the answer is in fact "no, I'm not saving the login state or credentials anywhere" Jul 19 06:28:14 Leeds: :) Jul 19 06:30:00 Leeds: so my code will not work? Jul 19 06:30:33 *what* code? do you or do you not have any code to store, retrieve, check, etc. the login state and credentials? Jul 19 06:30:44 niru: http://pastebin.com/h4hhsyrj Jul 19 06:31:24 Leeds: I got your point... Jul 19 06:31:50 but as leeds says, umm this will basically just make your app goto app list activity every time after the first time it's oncreate is called Jul 19 06:33:13 lasserix_: and I want that Jul 19 06:33:27 lasserix_: I dont want to login again and again Jul 19 06:34:43 niru are you doing a server log in? Jul 19 06:35:28 lasserix_: right now no. Jul 19 06:35:54 anyone know how to turn off some warning in Android Studio? I keep getting method invocation may NPE on things that i want it to ignore Jul 19 06:36:05 are you, uh, actually doing anything? Jul 19 06:37:00 public SomeSurfaceView(Context c) { super(c); SurfaceHolder sh = getHolder(); sh.addCallBack(this); } Jul 19 06:37:02 lasserix_: Leeds sorry if I have spoilt your time. May be right now I am confused... Jul 19 06:37:12 sh.addCallBack(this); is causing the warning Jul 19 06:37:13 Nevermind my question -- I was caching a SpannableString that I shouldn't have. Jul 19 06:37:31 with reasaon messing up things... Jul 19 06:37:38 afaik that's not going to return null Jul 19 06:37:40 with/without Jul 19 06:38:06 niru did you look at the link i posted? Jul 19 06:38:25 lasserix_: yes its making some sense to me lasserix_ Jul 19 06:38:26 it's not really much of a change, what you wrote will work. you can, however, only do the commit once, the first time it returns false Jul 19 06:39:51 Leeds: should I really check if it's null and like finish the activity if so? Jul 19 06:40:41 lasserix_: dunno... is it possible for this to ever be null? Jul 19 06:41:02 Leeds: afaik it will never return null, since that's what the surfaceview is supposed to do Jul 19 06:41:20 then I'd ignore it Jul 19 06:41:43 Is there a way to make the warning ignored for this line without adding anything? Jul 19 06:42:04 Having squigly lines randomly about the code kind of clutters it up Jul 19 06:42:29 you're asking the wrong person there... Jul 19 06:43:53 hehe sorry Jul 19 07:19:58 Do views have a way to automatically call back on activity life cycle calls? Jul 19 07:20:18 err get the call Jul 19 07:34:52 Anyone know what Watches is the android studio debugger? Jul 19 07:46:24 lasserix_: are you there? Jul 19 07:49:29 has anyong using genymotion run into an infite "eglSurfaceAttrib not implemented" error message? no crash or anything, no stacktrace, just error log messages. Jul 19 07:50:18 niru: what's up? Jul 19 07:50:38 mattblang: is there no native dump maybe? Jul 19 07:51:43 lasserix_ let me show you this. made a brand new project, generated a nav drawer activity and master detail flow. check this out: http://pastebin.com/anaeEZRr . If I uncomment that line it does it, very weird Jul 19 07:52:31 does dashboarrdactivity start? Jul 19 07:53:31 it does, but does't start all the way Jul 19 07:53:47 like, I can see the nav drawer hasn't loaded Jul 19 07:57:41 uhh well Jul 19 07:57:43 use a debugger Jul 19 07:57:47 and figure out when it crashes Jul 19 07:57:54 since this is telling you nothing Jul 19 08:06:55 niru whats up? Jul 19 08:17:52 if Im painting a bg android:background with a drawable:bitmap can I somehow distore/mirror that bitmap? I know if I tile it I can use the mirror attribute to make it alternate so its seamless but how to mirror a scaled bg bitmap that fills to the entire bg view? Jul 19 08:33:40 lasserix_: sorry I though we are away Jul 19 08:35:08 lasserix_: what exactly is this stmt doing !logindetails.getBoolean(SHARED_PREFS_KEY_LOGGED_IN1, false) Jul 19 08:35:18 if(!logindetails.getBoolean(SHARED_PREFS_KEY_LOGGED_IN1, false)) Jul 19 08:35:21 what do you think it is doing? Jul 19 08:35:38 rgr you can do it with a matrix object Jul 19 08:35:46 it is checking if the key is false? Jul 19 08:38:17 no Jul 19 08:38:21 its getting the key Jul 19 08:38:34 and returning false if there was no entry for the key Jul 19 08:38:44 did you look at what getBoolean does? Jul 19 08:39:21 the idea is since you have not set it the first time you run the app, it'll not be there and hence the second parameter, which we pass false in, will be returned Jul 19 08:39:41 !false = true, therefore we will commit the key with a value of true Jul 19 08:39:50 and the next time you run this, it'll return true Jul 19 08:40:49 goos: what's kind of funny is i am setting up my surface view, and i used a real simple eulerian integration for the test case (just a dot moving in one dimension), however i bounded it. so now I have a chaotic oscillator (since it drifts due to the discrepency in the eulerian integration) Jul 19 08:40:49 hehe Jul 19 08:41:04 hehe Jul 19 08:46:01 Does anyone know, when you call surfaceHolder.lock() to get the canvas, this guarantees that the UI thread is no longer using the canvas to redraw the view? Jul 19 08:46:51 i see a lot of people synchronizing in their surfaceview thread when they draw to the canvas after calling lock() (before unlockCanvasAndPost) even if they do not use a seperate logic thread, Jul 19 08:47:22 but why? since i assume lock and unlock handle synchronization of the canvas from the UI thread, why the extra synchronization? Jul 19 09:03:39 Is there a way to test low memory situations on device? Jul 19 09:04:13 matrix objects require me overrding draw methods? No built in mirror attribute? Jul 19 09:05:18 ekx: unfortunatly no. and thats a big problem Jul 19 09:05:34 what exactly do you want to test? Jul 19 09:06:22 its not really the apps decision on whats high and low thats why. The "OS" should "make it happen". But then thats also an issue with Java and garbage collection anyway. It sucks. Jul 19 09:07:25 danijoo: I want to test my app's lifecycle, make sure it saves state properly in low memory situations. Right now I save state when I receive APP_CMD_PAUSE Jul 19 09:07:40 I hope that's good enough, but it's kind of hard to be sure without testing. Jul 19 09:07:46 There are only a few things that _can_ happen if you app is in background Jul 19 09:08:07 1) android shuts down the whole app and 2) android shuts down some activty and saves its instanceState Jul 19 09:08:20 hm Jul 19 09:08:36 Probably easy to test that first one Jul 19 09:08:54 Shutting down only the activity, but saving the instanceState is not something I know how to do. Jul 19 09:08:54 you cant really do anything against 1 one anyway Jul 19 09:09:08 rgr no you are using wrong matrix, matrix is canvas related object Jul 19 09:09:09 ekx: thats not something you do. android just do it Jul 19 09:09:18 ah okaah Jul 19 09:09:30 rgr: http://stackoverflow.com/questions/7925278/drawing-mirrored-bitmaps-in-android Jul 19 09:09:31 memory low -> android calls onSaveInstanceState -> onDestroy and bam, its gone Jul 19 09:09:58 ekx you can also subclass Application class and override onLowMemory Jul 19 09:10:01 all you have to do is make sure you are saving your stuff in that methods (never be sure that onDestroy is actually called though) Jul 19 09:10:24 danijoo/ekx you want to save your shit when onPause gets called Jul 19 09:10:33 lasserix_: is that the main takeaway? Jul 19 09:10:41 lasserix_: yep Jul 19 09:10:45 nice. Jul 19 09:10:45 if you have a lot of shit to save, use a flag to determine if you need to save (if any changes have been made) Jul 19 09:10:57 not instancestates though. they have their own method ;) Jul 19 09:11:02 ekx: umm it's one way you can get a callback when the low memory gets fired Jul 19 09:11:12 oh yeah Jul 19 09:11:55 and for onLoWMemory, dont rely on it Jul 19 09:12:01 most often it will be called Jul 19 09:12:05 but its not a doctrine Jul 19 09:12:05 hehe just helps with testing ;p Jul 19 09:12:22 if android is in mood, it just skips everything and send a sigkill Jul 19 09:12:31 haha Jul 19 09:12:33 that's shitty Jul 19 09:12:35 :) Jul 19 09:12:42 onRestoreInstanceState() is NOT called when you press the back button and return to the activity Jul 19 09:13:09 yes because back button finishs the application, its completly recreated Jul 19 09:13:15 the activity * Jul 19 09:13:25 neat Jul 19 09:13:27 did not know that Jul 19 09:20:10 yes, thats would require implementing everything myself as I said. I was hoping for a built in transform for something so simple. I guess it doesnt exist. Jul 19 09:21:25 there is a built in transform Jul 19 09:22:14 did you read the second answer? Jul 19 09:22:29 canvas.save() draw your sprite canvas.scale(1, -1); canvas.restore() Jul 19 09:22:45 * scale(-1, 1) Jul 19 09:29:16 my Android code looks hella messy Jul 19 09:29:27 I'm not sure whether it's because of Eclipse making everyhting look comical Jul 19 09:29:27 or Jul 19 09:29:31 my code is bad Jul 19 09:29:44 Why not both! Jul 19 09:29:47 heh Jul 19 09:29:56 possibly Jul 19 09:34:46 Hello just init'd git in an existing android studio project, now when i come back to android studio there's a bunch of red marks on my files Jul 19 09:34:56 is there something i have to do to enable tracking in android studio? Jul 19 09:35:33 red file name means it's not in git Jul 19 09:35:42 i added it all from cmd line Jul 19 09:35:51 it should be in there Jul 19 09:36:18 open then changes tab and refresh it from there maybe? Jul 19 09:36:46 changes tab? Jul 19 09:37:07 heh if i do commit to a file says no changes detected Jul 19 09:39:28 wow gooey for the git in as is nice Jul 19 09:39:48 ? Jul 19 09:46:23 never use ui for git but it looks nice Jul 19 09:46:29 still trrying to solve this problem Jul 19 09:49:51 ahh just opened up one too many directories Jul 19 09:51:06 now just need inductive charger + wireless adb = perfect Jul 19 09:51:29 ahh they do sell them Jul 19 09:51:32 awesome! Jul 19 09:55:17 i wonder why they didn't make the angle adjustable? http://www.amazon.com/TYLT-Wireless-Charger-all-Phones/dp/B00DG8NUC8?tag=at88-20 Jul 19 10:10:29 Should I be using APP_CMD_PAUSE or APP_CMD_LOST_FOCUS to turn off sounds, pause gameplay, and re-enable the screen sleep timer? Jul 19 10:42:55 utility tp auto generate an animation-list xml from the contents of a resource directory? Jul 19 11:04:49 is "am" (command-line activity manager interface) guaranteed to be present on all android devices? Jul 19 11:52:38 xyz: I think it would have to be a pretty odd device which didn't have it Jul 19 11:53:43 Leeds: what about different versions of it? can I be sure it works the same way? Jul 19 11:54:06 I'm currently using it in my NDK program this way "am start -n is.xyz.vcmi/is.xyz.vcmi.MainActivity --user 0" Jul 19 11:54:44 I'm not sure when --user would have been added Jul 19 11:55:02 I don't think it's a supported interface in any way, so it *could* be missing, or change randomly at any time Jul 19 11:55:16 if there's no user it doesn't start because "Permission Denial: startActivity asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL" Jul 19 11:55:27 ah, okay Jul 19 11:56:16 i'd recommand against starting activities from the NDK tbqh Jul 19 11:56:24 why? Jul 19 11:56:28 it uses a lot of ram because it loads another copy of zygote Jul 19 11:56:42 after the process is started, the ram is free, but still Jul 19 11:57:08 well it's supposed to be a "launcher" for another application Jul 19 11:57:21 (and there's no native interface to start them; so am does have to be used) Jul 19 11:57:32 why are you writing a "launcher" in pure NDK? Jul 19 11:57:42 I'm not writing it, I'm porting existing one Jul 19 11:57:50 why are you porting it the wrong way? Jul 19 11:57:51 :P Jul 19 11:58:00 there's an app written in C++/SDL and a launcher written in C++/Qt Jul 19 11:58:03 put some java layer in there Jul 19 11:58:16 what do you mean/ Jul 19 11:58:49 i mean load the native code with java and have the native code call back to the java that loaded it by some means to start new activities Jul 19 11:59:32 there are no 'pure' native apps in android anyway, they all get wrapped in java at some point Jul 19 12:00:00 well, i shouldn't say that, there are some misc small utilities. but anything that has any user interaction has java wrapping Jul 19 12:00:13 yes, i know that Jul 19 12:00:44 but for me it's really more simple to just have two applications, one of them being optional Jul 19 12:01:02 if the NDK lets you do JNI without your own wrapping, you can use JNI Jul 19 12:01:15 i suspect that it does, since the app has to be registered w/ the framework to do a number of things Jul 19 12:01:42 xyz: ? who said anything about making it one app? Jul 19 12:02:10 ah, then i got you wrong Jul 19 12:02:18 using "am" intead of the Android API is the problem Jul 19 12:02:31 but anyway you're suggesting to write it in java and call it? Jul 19 12:02:45 i'm suggesting you call the Android API to start the activity Jul 19 12:02:51 which is a java api Jul 19 12:03:10 it's probably easier to implement that part in java, and call from native code Jul 19 12:03:17 because you have to create an intent, etc Jul 19 12:03:33 yeah i'm afraid i'll want to kill myself if i start implementing all these jni calls to api Jul 19 12:03:35 (am does this internally in a very hackish manner) Jul 19 12:03:52 xyz: "all these"? you only need one, for starting an activity :/ Jul 19 12:04:08 assuming you implement a java function that uses the android apis Jul 19 12:05:08 in that case yes, but i wasn't talking about it Jul 19 12:08:43 okay, thanks for your help, i'll do that Jul 19 12:10:52 How do I view threads in Android Studio? Jul 19 12:17:41 Is there no simple way to view the threads like there was in the eclipse ddms? Jul 19 12:22:21 lasserix_: http://tools.android.com/tips/traceview Jul 19 12:22:42 that's a bit overkill just need to test pausing on a game thread Jul 19 12:22:55 with android studio it seems i have to set breakpoints just to see the running threads?!/ Jul 19 12:36:03 lasserix_: when you hit the Debug button , you don't see a threads tab ? Jul 19 12:39:40 yeah i do but its kind of fucked up Jul 19 12:41:09 now its always trying to start the debugger Jul 19 12:41:10 fucking Jul 19 12:42:16 How do I pinch-zoom and pan several views (imageviews & textviews) in a parent layout all together. i wanna zoom and pan the parent layout basically. Jul 19 12:43:03 Ijsut want to see the active threads running without debugging/stepping through etc etc Jul 19 12:43:31 epiphany_1985_86: one way is to grab a bitmap of the parent view canvas, apply the matrix transformations Jul 19 12:43:44 dispatch draw those over the stuff Jul 19 12:45:41 well the weird thing is i have a pause thing, it throwing an NPE cause the loop doesn't get to the pause wait till after the draw, but i can't debug this Jul 19 12:47:55 derp guess i am just too tired Jul 19 12:48:07 was manually pausing it via button, forgot to add onPause propogation Jul 19 12:48:08 doh Jul 19 12:48:46 lasserix_: thanks. Jul 19 13:44:06 what takes precedence over wrap_content and layout_weight? I'm not getting consistent results for some obscure reason. Jul 19 13:58:42 rgr the parent layout can effect it Jul 19 15:11:52 any of you AS/Intellij experts know if theres a feature to auto update a column of numbers? eg a bunch of identical lines with "0" in them and I hilite the column and generate a sequence of 0-n? Jul 19 15:14:47 Someone tried Android L? Jul 19 15:15:14 I'm curious about the audio low latency capabilities, I don't know if there is some new api for it Jul 19 15:19:04 can I jump from the file in AS/Ij to its location in the project structure? I know its there somewhere just cant see it! Jul 19 15:25:43 hi guys Jul 19 15:26:11 I have an issue with french accent to be parsed by json Jul 19 15:26:21 this text comes from an edit text Jul 19 15:26:59 I have tried to use new String(name.getBytes(), "UTF-8") but it didnt recognize the accents Jul 19 15:29:00 post code at least showing people what name is and how its defined. Jul 19 15:32:40 this single directoy for resources such as drawables is insane. a few animation-lists and you're swamped with a 1970s flat directory nightmare. Jul 19 15:52:51 rgr, alt-f1 Jul 19 15:54:20 Hi all Jul 19 15:54:53 ah thats it. doh. ta. Jul 19 16:02:09 How to send a POST text with a file? My code sends to server a file, but I want add a POST with text. My code: http://pastebin.com/9AZTGc6n Jul 19 16:07:39 hey guys Jul 19 16:07:52 i’m sending repeatedly requests using retrofit Jul 19 16:07:59 and at somepoint i start getting 400 responses Jul 19 16:08:58 Nick-S: 400 responses? Woah, you must be sending 400 requests too :) Jul 19 16:09:16 autrillla: could you help me? Jul 19 16:09:23 bad pun is bad Jul 19 16:09:28 bad pun? Jul 19 16:09:31 Maybe Jul 19 16:09:45 400 is bad request Jul 19 16:09:54 it means what i’m sending is not understood by the server? Jul 19 16:09:56 Your resquests are badly formed Jul 19 16:09:58 Exactly Jul 19 16:10:05 it is not related to socket problems? Jul 19 16:10:12 No, I don't think so Jul 19 16:10:54 Does it _always_ happen? Jul 19 16:11:00 With that kind of request of course Jul 19 16:11:25 first of all i use retrofit, and underneath i started using OkHttp Jul 19 16:11:35 but i was using Apache and it had same stuff going Jul 19 16:11:56 it definitly doesnt always happen Jul 19 16:12:07 it starts to happen after a certain time the app is running Jul 19 16:12:24 the only thing i would suspect that i have no control of are the cookies Jul 19 16:13:14 No clue then Jul 19 16:13:53 ? Jul 19 16:15:47 autrilla: what about asynctask Jul 19 16:15:56 rgr: I think it will get better once they release Android Studio with the "Android" view Jul 19 16:15:58 is there any reason to use it? Jul 19 16:15:59 What about it Jul 19 16:16:04 which collapses most of the resources Jul 19 16:16:12 Nick-S: for what I hear, Retrofit + OkHTTP is better Jul 19 16:16:16 Maybe JakeWharton can help Jul 19 16:16:22 i just want to not get this error Jul 19 16:20:13 autrilla: it seems like there is a bad socket error Jul 19 16:20:52 autrilla: when i turn off the wifi and i still haven’t switched to 3g i get the error too Jul 19 16:21:00 400, and there’s no server to return it Jul 19 16:21:49 any take on that? Jul 19 16:34:37 Someone has an idea how to upload with a file also a text ($_POST)? My code: http://pastebin.com/9AZTGc6n Thanks in advance Jul 19 16:36:01 well in fairness you can mangle it now with gradle manually. Jul 19 16:40:55 rithea: Use a library that helps you. Jul 19 16:41:13 For example OkHttp (using a recipie from their Wiki) or http-requests by Kevin Sawicki Jul 19 16:41:17 Both on github Jul 19 16:47:29 kakazza can I do that without use a library Jul 19 16:52:06 I'll use json, thanks the same Jul 19 17:07:35 Android studio needs a proper ddms view Jul 19 17:07:43 that's what it's missing the most Jul 19 17:08:10 you miss out on half the potential debugging functionality because of it Jul 19 17:19:39 Retrofit detected an unsupported OkHttp on the classpath. I'm using last Retrofit and OkHttp version Jul 19 17:19:58 Define last. Jul 19 17:21:13 + for both in gradle. Jul 19 17:21:21 Versions, ok? Jul 19 17:21:28 Just +? Jul 19 17:21:34 What does gradle load? Jul 19 17:21:43 how check? Jul 19 17:21:56 What does External Libraries in the Project View of Android Studio say? Jul 19 17:22:44 okhttp 2 retrofit 161 Jul 19 17:23:17 oh, seems adding compile 'com.squareup.okhttp:okhttp-urlconnection:2.0.0' make retrofit working Jul 19 17:23:27 As it says in the docs Jul 19 17:23:36 Was about to say that. Good you figured it out :) Jul 19 17:24:06 In fact I red that but I was sure urlconnection was in okhttp lib. thanks. Jul 19 17:32:01 Swich to an ORM when you have already done most of your tables: worst decision ever. Jul 19 17:58:54 I'd like to know If I override cacheColorHint property of the app theme with whatever color, the result is a crappy orange. Jul 19 18:06:14 android java support multi line strings? something like this http://paste.ubuntu.com/7820850/ Jul 19 18:07:34 nope Jul 19 18:07:41 nope Jul 19 18:07:50 IDEA will automatically properly quote multiline pastes tho Jul 19 18:18:27 use scala ;-) Jul 19 18:19:09 no u! Jul 19 18:20:21 ah I have to use Java because of Android :( Jul 19 18:21:21 pfn actually uses Scala for Android and maintains a project of some sorts which makes this wizardry work Jul 19 18:22:08 hi, what do you think is the future of the android sdk, do you think it will continue to be java based (i prefer python) do you think it's worth it to invest learning android at this point? Jul 19 18:22:47 really? :) Jul 19 18:23:21 kakazza: really? :) Jul 19 18:23:44 really Jul 19 18:24:00 https://github.com/pfn/android-sdk-plugin Jul 19 18:24:19 madprops: last time I checked groovy looked very promising but AFAIK it had no support for android Jul 19 18:28:02 what kind of projects are being written in scala for android? is there something where choosing scala could be beneficial when writing the app? never tried it :/ Jul 19 18:29:58 Adyrhan: sounds like you should talk to pfn :) Jul 19 18:31:05 what does sbt stands for? Jul 19 18:31:28 I think he's here JesusFreke, he may answer if he wants :) Jul 19 18:33:03 Adyrhan: right, that was a summoning invocation for him :) Jul 19 18:33:12 Is OpenGL much faster than the standard interface to drawing? Like canvs, rectshape and so on. Jul 19 18:33:23 there are plenty of apps written in scala Jul 19 18:33:29 Google turns up a bunch Jul 19 18:33:53 If doing something like a maze game where you control a ball by tilting your phone, would you recommend OpenGL or the "simple graphics api"? Jul 19 18:33:58 Adyrhan, it's always beneficial to use a non sucky language Jul 19 18:34:06 pfn: google make scala apps? Jul 19 18:34:24 pfn: i thought scala on android was a bit sketchy still... Jul 19 18:35:18 Google as in the verb Jul 19 18:36:12 anyway, one high profile app that comes to mind is bump Jul 19 18:36:34 fallen out of favor now, but it was written in scala at some point Jul 19 18:36:42 :D java is not of my taste either, pfn Jul 19 18:37:47 the app has fallen out of favor, that is Jul 19 18:39:28 is it me or android studio is slooow Jul 19 18:39:58 it is slow, but depends on what cpu/ram have you installed :) Jul 19 18:40:16 and what image you're using, if you're talking about the emulator Jul 19 18:40:19 I've given a new opportunity now to it, now that I've got new hardware Jul 19 18:40:20 I would love to try scala for android but I don't understand this plugin :( Jul 19 18:40:23 (hint: use the x86/atom ones) Jul 19 18:42:43 I'll have to try Scala. I've always wanted to learn some functional programming skills Jul 19 18:45:24 Is OpenGL much faster than the standard interface to drawing? Like canvs, rectshape and so on. If doing something like a maze game where you control a ball by tilting your phone, would you recommend OpenGL or the "simple graphics api"? Jul 19 18:46:27 * gordon_ has no idea Jul 19 18:47:57 neutralizer, there's nothing to understand, it's a build plugin Jul 19 18:49:18 backjauer, faster as in how fast the gpu chip draws it, I believe using OpenGL directly is quicker, but not sure really. May be if the canvas uses hw acceleration (opengl) behind the scenes, but thats something I don't know. Jul 19 18:49:58 pfn: extreme newbie here! can you tell me what it does? does it convert scala code to java for android? Jul 19 18:51:18 neutralizer, if you're not comfortable programming, I don't recommend Jul 19 18:51:56 there is no conversion Jul 19 18:52:41 scala compiles to jvm byte code, exactly like java Jul 19 18:53:33 it's not about my comfortability. I don't understand how scala could use android sdk. Jul 19 18:53:54 scala is a jvm language Jul 19 18:54:22 and like all jvm languages, can access all java libraries Jul 19 18:54:28 that's it Jul 19 18:55:07 pfn: thanks for the info. now I understand the high level part of it Jul 19 18:56:04 some jvm languages are more suitable for android than others, scala is one Jul 19 18:57:07 I though they would have to tweak some things because its not that they would really run in jvm, but dalvik, or now ART Jul 19 18:57:23 pfn: what is SBT? Jul 19 18:57:40 is xamerin like scala Jul 19 18:57:42 ? Jul 19 18:58:16 detachYo xamarin? hmm nope, thats c# if I'm not mistaken Jul 19 18:59:24 oh okay Jul 19 18:59:39 xamarin is completely different because it is unrelated to java at all Jul 19 18:59:58 neutralizer, it is analogous to gradle and maven Jul 19 19:00:14 pfn: just found it :D Jul 19 19:00:18 gradle and ma Jul 19 19:00:25 oops https://github.com/sbt/sbt Jul 19 19:00:57 pfn: thanks again Jul 19 19:00:59 pfn, does it work well the tools for scala in windows? Jul 19 19:01:08 Adyrhan, yes Jul 19 19:01:24 I'll download the sdk and play a little :) Jul 19 19:01:43 no sdk to download Jul 19 19:01:55 what do I need then? Jul 19 19:02:11 just sbt, assuming you have java and android already Jul 19 19:02:22 ohh ok Jul 19 19:05:08 when I use PackageManagr.getInstalledApplications(), how come I don't get the Camera app? Is it because it's part of the gallery? Jul 19 19:05:19 hi all; question about locationclient: after creating new object, i call locationclient.connect() which calls onConnected method. should locationclient.disconnect() then also call onDisconnected() method? becasuse it doesn't run, even if i call .disconnect(); - i don't get any error ither. Jul 19 19:07:40 Adyrhan, use intellij if you want an ide Jul 19 19:08:00 Eclipse sucks and android studio is too limited Jul 19 19:09:32 I see, I installed Android Studio since I got the new laptop, I guess intellij still is more versatile Jul 19 19:29:40 g00s: There? I'm still thinking about Executor's and creating a .newFixedThreadPool(NTHREDS) and I haven't dug far enough into the code to find the right way to determine NTHREADS .... Jul 19 19:29:41 Realisitically for my app having 2 available initially would suffice, but I wonder: Is the Thread pool size bound by the number of available CPU cores? Or is this logical load balancing handled by the OS? Jul 19 19:30:40 ... and of course let me know if you're not the one to ask ... Jul 19 19:30:48 hey capella hmm. ideally, the thread pool would grow and shrink as needed Jul 19 19:31:00 Well, no, it can't be unbounded Jul 19 19:31:35 and as I said, I'd only realistically need two to start with, but does that imply my target device would require two cores at minimum? Jul 19 19:31:51 most devices have at least 2 cores now Jul 19 19:31:59 however Jul 19 19:32:15 Yah, but we support 2.2 so ... grandfather considerations ... Jul 19 19:32:30 capella, depends on the workload Jul 19 19:32:49 and I'm tending to believe the logical queues are time shared among cores ... even if only one is available Jul 19 19:32:52 but 2xcore is a good start Jul 19 19:33:03 pfn, are you using a intellij for scala ? Jul 19 19:33:08 Adyrhan, yes Jul 19 19:33:15 ah : pfn .... so my last statement? -----------^ Jul 19 19:33:25 an intellij plugin I meant, sorry :) Jul 19 19:33:26 I use intellij for everything, except c Jul 19 19:33:36 Adyrhan, ships with intellij Jul 19 19:34:02 capella lots of parameters to tune here http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ThreadPoolExecutor.html Jul 19 19:34:05 capella: you can have as many threads as you want (within some physical limits, of course) Jul 19 19:34:21 capella: if you have more threads than cores, then the threads are time-sliced to run on the available physical cores Jul 19 19:34:31 thats the thing :) Jul 19 19:34:35 capella, if threads are mostly idle, you can easily have a large pool size with respect to cores Jul 19 19:34:56 if jobs are extremely cpu intensive, then you'll want a lower ratio Jul 19 19:35:02 pfn, I may have downloaded a wrong package then :/ I can only see java, android with gradle, maven, gradle, groovy, but no sbt or scala Jul 19 19:35:05 jesusfreke got to my question :) Jul 19 19:35:31 Adyrhan, for Scala, go into jetbrains plugins Jul 19 19:35:40 for sbt, go into 3rd party Jul 19 19:35:44 basically: I'm ok creating a pool with two threads, even on a signle core device Jul 19 19:36:03 depends on workload Jul 19 19:36:06 as I suspected Jul 19 19:36:38 workload initially will be almost nill ... as we're implementing the service and adding runnables as we get comfortable Jul 19 19:37:03 multiple threads make sense even on single core, for example, while io/network blocks, other threads can do their thing Jul 19 19:37:25 right, that's why the type of workload is important Jul 19 19:37:57 frankdrey: thats the issue Im fixing ... we have tasks like copy-to-clipboard that currently are blocking behind a network call thats taking ~30 seconds as our current implementation is single threaded background Jul 19 19:38:04 capella this is one of those areas, you just have to test & measure. sometimes too many threads thrash the cash. maybe the pool should be bigger, or smaller. maybe you can use keep-alive to discard idle threads. Jul 19 19:38:14 *cache, heh Jul 19 19:38:34 yah: B) Im start to get a nice fuzzy feeling Jul 19 19:38:55 pfn, Ok thx Jul 19 19:39:36 capella you can have a minimum pool size with on demand construction for a larger # too Jul 19 19:40:15 Oh yah, I spotted that option .... maybe for later Jul 19 19:40:39 Phase II is to cut our Favicon loaders over to the new ThreadPool Jul 19 19:40:52 Phase I is just to cut our Clipboard service Jul 19 19:41:19 Favicons can get intensive and would really benefit, but would require tuning Jul 19 19:41:30 vs. throw more threads Jul 19 19:42:18 Now, I'm going to read and see if there's a thing like ThreadPool priorities Jul 19 19:42:31 Objective: put at least 4 hours of development every day to my app. Jul 19 19:43:55 capella from what i understand, the thread scheduler in the linux kernel has to be tuned by SoC vendors, and often it is not. so its hit or miss many times Jul 19 19:44:13 * frankdrey feels like capella's project is a helluva lot more organized then his :| Jul 19 19:44:22 I just create a Thread when I need it :p Jul 19 19:44:31 * capella used to be an applications project manager Jul 19 19:45:08 I'm familiar with designing 9 month projects involving 12 devs Jul 19 19:45:58 adn Q/A, and security, and Systems Admins, and UI designers, and etc. heh ;) Jul 19 19:46:08 its crazy, sometimes the same SoC can perform better with just once core running :) Jul 19 19:46:37 meh - first article I find g00s says http://stackoverflow.com/questions/4560985/passing-thread-priorities-to-thread-pools Jul 19 19:46:45 its really up to qualcomm, samsung, etc to tune that . if they don't ... heh Jul 19 19:46:57 and the OS involved, yah Jul 19 19:47:10 though here, I have a know target OS Jul 19 19:47:16 *known Jul 19 19:49:05 well, now I don't feel so bad :P i'm just some kid that just graduated :P Jul 19 19:49:38 autrilla thats a good goal http://ejohn.org/blog/write-code-every-day/ Jul 19 19:51:06 frankdrey: I'm working with an intern that just graduated, and he's brilliant ... experience comes next Jul 19 19:52:00 mmm ... handling ThreadPool shutdown is the next reasearch point Jul 19 19:52:39 g00s: nice blog post Jul 19 19:53:06 If I give it 4 hours each day (after 8 of work), I should be able to finish it soon Jul 19 19:53:12 Soon(tm) Jul 19 19:56:38 i got a little distracted by L wondering how i could skate where the puck was heading, but the support lib 21 is still RC and i'm not clear on a bunch of things, so i should just keep going holo-minded Jul 19 20:03:39 Which game engine do you recommend? For 2D, for 3D? Jul 19 20:04:03 i've been playing with libgdx, it's pretty nice, check it out Jul 19 20:14:31 capella your usb port on the N7 still working ? mine is going kaput Jul 19 20:14:51 g00s: Weird! Mine *got better* Jul 19 20:15:03 might need to do wireless charging + adb over wifi; but i always had problems with the latter unless i first connected it to USB first Jul 19 20:15:15 I'm avoiding excessive manipulation of the device, but it seems much more stable Jul 19 20:15:27 "excessive manipulation" Jul 19 20:15:35 are you playing catch with it :) Jul 19 20:15:53 No, it's mostly fixed in place on my desktop Jul 19 20:16:19 g00s, if you're rooted, adb over wifi should work without connecting to usb first Jul 19 20:16:33 frankdrey ok thanks; yeah not rooted Jul 19 20:17:13 i didn't have a usb cable and i spent about an hour trying to figure out how to set it up, gave up and spent 5 minutes rooting :p Jul 19 20:17:34 i hope they come out with some better connector soon; mini/micro usb kinda sucks Jul 19 20:17:45 too wimpy Jul 19 20:18:13 has anyone used libgdx on linux? Jul 19 20:18:37 it should work fine, i mean, it's all java Jul 19 20:18:42 * frankdrey will try in a second Jul 19 20:42:14 backjauer, sorry, installing jre in my VM :P Jul 19 20:56:48 you wanted to say jdk ? Jul 19 21:00:14 nah, i have the thing compiled already Jul 19 21:00:17 just wanna at least run it Jul 19 21:00:20 in linux Jul 19 21:01:07 meh, i give up :p Jul 19 21:01:22 i forgot i'm gonna need to set the resources path and all Jul 19 21:02:34 is the asynctask threadpool shared between all apps? Jul 19 21:06:18 frankdrey: no, just within a process Jul 19 21:06:43 although, you can specify a different executor if needed Jul 19 21:06:52 aha Jul 19 21:07:01 my friend is trying to convince me to switch to an asynctask Jul 19 21:07:09 i'm using a thread and runOnUiThread Jul 19 21:07:29 (don't laugh at my code :P) https://github.com/andreyrd/ListLauncher/blob/master/src/com/amagital/listlauncher/LauncherActivity.java Jul 19 21:08:49 line 116 is where i use the thread Jul 19 21:10:34 frankdrey: using an asynctask in that situation would be slightly better, because it wouldn't have to spin up a new thread Jul 19 21:11:17 and you don't have to explicitely do the runOnUiThread thing, you just put that code in the onPostExecute method Jul 19 21:11:27 but wouldn't asynctask have to spin up a new thread either way? Jul 19 21:11:34 or is there always a ready background thread? Jul 19 21:12:20 tbh, I'm not sure when the thread would actually be started. My guess would be on first use, so yeah. It would still have to start a thread the first time, assuming it hasn't been started by something else already (potentially not even in your code..) Jul 19 21:12:37 also, I just set android:configChanges="orientation" and it works fine without me handling the changes Jul 19 21:12:40 ah, I see Jul 19 21:13:00 I guess for something this simple, destroying the activity on rotation is dumb and pointless :P Jul 19 21:13:34 or is it in case you wanted to have a new layout for landscape? Jul 19 21:15:00 eh, I dunno, it works for me Jul 19 21:15:13 * frankdrey wrote this because he always wanted a list launcher :P Jul 19 21:15:28 and I want to see how google play publishing works, so I'll be messing with that maybe on monday Jul 19 21:15:57 or...today :D Jul 19 21:38:57 is there a tool where I can put in hex color code and it will show the color it is? Jul 19 21:39:27 http://www.color-hex.com/ Jul 19 21:40:01 just about any color picker anywhere? :) Jul 19 21:40:25 What's the best way to get a complete understanding scrolling/sizing behaviors of a listview? Having a hell of a time with a listview that should be auto-scrolling actually knowing where the bottom is Jul 19 21:42:29 thanks.. but I'm confused. how do I find out the color of say.. #ff111111 Jul 19 21:42:37 or #ffcccccc Jul 19 21:42:44 that includes transparency Jul 19 21:42:44 remove the FF Jul 19 21:42:51 argb Jul 19 21:42:52 ahhh Jul 19 21:42:56 ff = fully opaque Jul 19 21:43:05 thanks! Jul 19 21:43:06 wait Jul 19 21:43:07 makes sense now Jul 19 21:43:11 does android use rgba or argb? Jul 19 21:43:21 argb Jul 19 21:43:42 cool Jul 19 21:43:57 gbar Jul 19 21:44:00 gotta mix it up Jul 19 21:45:48 is there a guide to what the first two letters mean? Jul 19 21:45:51 like bf? Jul 19 21:46:18 boyfriend? Jul 19 21:46:23 Akkord93: you're familiar with hexadecimal notation? Jul 19 21:46:28 and how to convert that to decimal? Jul 19 21:50:41 * capella learned octal before hex Jul 19 21:50:55 * capella used >old< computers Jul 19 21:51:21 capella: how did you protect them from dinosaurs? Jul 19 21:52:10 fire! Jul 19 21:52:32 which was counter productive when they burst into flames, there was nothing left to protect Jul 19 21:52:45 stupid vauum tubes Jul 19 21:53:04 heh - I never used vacuum tubes Jul 19 21:53:10 for the record Jul 19 21:53:40 I have Jul 19 21:53:44 in a guitar amp ;) Jul 19 21:54:22 oh, audio systems yah Jul 19 21:54:34 Hi, can i request developer help? Jul 19 21:54:56 can you? Jul 19 21:55:01 uboat55, your ticket has been filed with the #android-dev support desk. Please hold. Jul 19 21:55:13 uboat55, congratulations, you may present your inquiry. Jul 19 21:55:22 ... hummms the girl from ipanema Jul 19 21:55:37 Thanks. Past here? Jul 19 21:55:55 https://www.youtube.com/watch?v=aPwGvzhUkB0 Jul 19 21:56:00 if it's long, use dpaste.de or something Jul 19 21:56:23 okay, I caved and switched to Asynctask :/ Jul 19 21:56:57 Can i past link, cause i already post it on one web page Jul 19 21:57:11 sure Jul 19 21:57:19 Thx Jul 19 21:57:54 android.stackexchange.com/questions/77336/usb-otg-for-motorola-mb865-att-4-0-4 Jul 19 21:58:50 that's more of a question for #android-root Jul 19 21:58:53 we do app development Jul 19 21:59:20 before you go there https://www.youtube.com/watch?v=aPwGvzhUkB0 Jul 19 21:59:56 Its not related with develop? Jul 19 22:02:05 Ok thx for answer Jul 19 22:03:06 'lo Jul 19 22:03:38 So my application crashed when I opened it Jul 19 22:03:53 And there are a lot of error messages in logcat but how do you tell which one is related to the crash? Jul 19 22:06:25 the one with your code in the stacktrace Jul 19 22:07:30 Allen300: the one that occurred at the time when your app crashed :) Jul 19 22:07:56 If you're using a decent IDE it'll highlight it red and give you a blue link to where in your code Jul 19 22:08:12 decent IDE = IntelliJ ;) Jul 19 22:25:30 canvs2321: btw i think i know the way to solve my problem Jul 19 22:25:37 retainInstance! Jul 19 22:25:45 * sq hides Jul 19 22:26:09 also 16gb of ram since android studio eats all of it Jul 19 22:27:46 hmm Jul 19 22:28:05 Is eclipse, in the android development world, known to be a real crappy software to create applications? Jul 19 22:28:55 Allen300: it's mostly just personal preference. I don't care for it personally, but some do. Jul 19 22:29:01 not only in android :D Jul 19 22:29:15 when I was doing JEE stuff Jul 19 22:29:37 eclipse was opening xml file for like 5 seconds Jul 19 22:29:52 what is the most common/liked software to develop android in? Jul 19 22:30:06 wel Jul 19 22:30:07 l Jul 19 22:30:15 you can use vim Jul 19 22:30:17 anyway Jul 19 22:30:25 gradle is important ;) Jul 19 22:30:38 Allen300: Android Studio is the new upcoming thing. I mostly just use intellij IDEA (which is what Android Studio is based on) Jul 19 22:30:48 ah I see Jul 19 22:30:51 Android Studio is still in beta and being actively developed, etc. Jul 19 22:30:53 yeah maybe I'll try intellij Jul 19 22:30:58 all patches are going back to intellij Jul 19 22:31:00 from AS Jul 19 22:31:02 yea Jul 19 22:31:23 is gradle build system stable yet ? Jul 19 22:31:28 Is there no way to get around how slow it takes to load the emulator? every little change needs to restart the emulator Jul 19 22:31:34 (to test it) Jul 19 22:31:43 no? Jul 19 22:31:55 Allen300: you don't need to restart the emulator, just reinstall the application Jul 19 22:31:55 thanks JesusFreke :-) Jul 19 22:32:00 I mean you dont need to restart it Jul 19 22:32:11 keepguessing: :) Jul 19 22:32:18 dont remember what's gradle's task for that Jul 19 22:33:45 Wat Jul 19 22:34:24 gordon_, I've been using libgdx with gradle in IntelliJ, no problems Jul 19 22:35:34 Any of you have a manual or something like that. I want to create an easy development of Android. I have already installed Android Studio Jul 19 22:35:47 d.android.com Jul 19 22:35:58 Thanks Jul 19 22:37:47 JuanZ_Col: https://developer.android.com/training/basics/firstapp/index.html Jul 19 22:39:12 So res > drawable are where all the icons are stored. right? Jul 19 22:39:30 Hi guys! I am mainly C # developer. I want to start an app. Is it a good idea today to dev in cross-platform technology? Is it a myth? I quickly look on Xamarin (mono). Also Ionic Framework and famo.us (hybrid HTML5). Jul 19 22:41:24 but some say it is not terrible .... In Xamarin effect is nice, but embeds 50 mo dependency (I think with Mono / SDK). And HTML5 encapsulate is difficult to maintain in all platform (it seem) Jul 19 22:41:36 html5 is a joke Jul 19 22:42:27 gordon_: Ionic is a joke ? Jul 19 22:42:41 dont know ionic Jul 19 22:42:50 for mono there's something.. Jul 19 22:42:52 mono hammer ? Jul 19 22:42:53 or something Jul 19 22:43:05 there was some screencast explaining mvvm with mono Jul 19 22:44:13 dont know how good it is Jul 19 22:44:27 it was for ios and blackberry Jul 19 22:44:30 and android Jul 19 22:44:35 JesusFreke: Thanks! Jul 19 22:44:46 or windows phone ? Jul 19 22:44:57 for ios there's robovm Jul 19 22:45:01 never used it anyway Jul 19 22:45:19 my app ? android early... Jul 19 22:45:30 iOS may be.. Jul 19 22:45:51 dont know if you can test ios app with robovm Jul 19 22:45:57 I mean unit tests or integration tets Jul 19 22:46:00 *tests Jul 19 22:46:09 also Jul 19 22:46:11 if you're serious Jul 19 22:46:15 write tests from the start Jul 19 22:46:24 later you will have a lot of problems Jul 19 22:46:29 #personal_story Jul 19 22:46:55 hehe ;) Jul 19 22:47:17 and get good libs... Jul 19 22:47:18 and DI Jul 19 22:47:35 and proguard from the start Jul 19 22:48:43 hello Jul 19 22:48:49 do you know anything about "r-cannot-be-resolved-to-a-variable"? Jul 19 22:55:21 plotino: probably means you either have a problem with your resources, or they just haven't been built yet. Jul 19 22:55:44 The R class is generated when the resources are compiled Jul 19 23:06:45 I'm having trouble getting an AdapterViewFlipper in a widget to respond to taps - here's the relevant snippets of code. http://paste.debian.net/hidden/3bbc7149/ Jul 19 23:08:08 rats. apologies for any repeat, my network dropped. I'm having trouble getting an AdapterViewFlipper in a widget to respond to taps - here's the relevant snippets of code. http://paste.debian.net/hidden/3bbc7149/ Jul 19 23:08:52 ouch ... so I seem to want to post a runnable to a looper thread I've created in an Executor pool with a ThreadFactory ... mmm ... is this a thing? Jul 19 23:09:01 Of interest (I think) is the target ids in setOnClickFillinIntent(). stackoverflow.wisdom seems to suggest that it should be set to the parent of the container rather than the container itsself, but none of that seems to get the thing to work Jul 19 23:10:08 capella: hm. What is the underlying objective? Just to run something in a background thread? Jul 19 23:10:26 primary issue is it requires a looper Jul 19 23:10:56 I'm trying to blend that with a ThreadPool and that part may not be compatible Jul 19 23:12:37 so .. I'm stuck @ wondering ... "Can one create a looper Thread in a ThreadPool" Jul 19 23:13:05 or is that just wrong on so many levels :P Jul 19 23:13:59 capella: I suspect you'd need to write your own Executor to send the task to a looper thread Jul 19 23:14:47 ah ... go up a level conceptually ... ouch ... hmmm Jul 19 23:14:57 how hard do I want to work :) Jul 19 23:17:31 Typically, if you're using a looper thread, you send Runnables to a Handler associated with that Looper Jul 19 23:17:57 or implement the logic in the Handler itself, and send messages instead of Runnables Jul 19 23:19:27 I need help understanding views. Jul 19 23:19:36 That's what I have already ... single threaded BackgroundThread with a looper ... I want to enable parallel Threading of which I can post Runnables that require a looper Jul 19 23:19:53 Those may be incompabible objectives Jul 19 23:21:08 I tried a naive implementation and of course it bombed ... no default lopper apparantly in a ThreadPool Jul 19 23:21:38 er, ThreadPoolExecutor() Jul 19 23:21:52 Are you reimplementing AsyncTask?:p Jul 19 23:22:08 * detachYo is lost. Jul 19 23:23:13 still not saying it right, no looper in the thread created in the DefaultThreadFactory Jul 19 23:24:07 I have a and two , what is the best way to put them each in their own line? Jul 19 23:24:57 orientation => vertical Jul 19 23:25:06 Allen Jul 19 23:25:32 linearlayout? Jul 19 23:25:37 Yes Jul 19 23:25:56 A LinearLayout lays children out in a row Jul 19 23:26:11 Do you want it to be vertical or horizontal? Jul 19 23:26:31 View1 View2 Jul 19 23:26:33 Or Jul 19 23:26:35 View1 Jul 19 23:26:37 View2 Jul 19 23:26:39 TextView Jul 19 23:26:41 :P Jul 19 23:26:50 maybe abandon the ThreadPool requirement, just post it to an asynchtask with a looper and be done with it Jul 19 23:26:59 Wait... Jul 19 23:27:00 -_- Jul 19 23:27:08 Thought that's what you were lost on lol Jul 19 23:27:29 haha, I am good with simple stuff. Jul 19 23:27:36 Allen300 asked that Jul 19 23:27:43 I need to understand fragments Jul 19 23:27:49 Yeah just noticed :p Jul 19 23:28:07 More specific? Jul 19 23:28:34 I need to dynamically create a linearlayout containg textview and button Jul 19 23:28:42 then add that to horizontalscrollview Jul 19 23:28:51 I am able to do all that programatically Jul 19 23:29:06 but I was wondering how would I create a file that has stub of linearlayout with textview and button Jul 19 23:29:23 then when needed add that to the horizontalscrollview Jul 19 23:29:37 Your end goal wouldn't happen to be what ViewPager does?:p Jul 19 23:29:51 Nope Jul 19 23:30:03 Alright Jul 19 23:30:12 I don't need viewpager, because I want to be able to scroll through the horizontallscrollview Jul 19 23:30:20 continuous scroll Jul 19 23:30:28 good suggestion though :P Jul 19 23:30:54 So you need to create a fragment layout and a fragment that loads that layout in it's onCreateView (you know how to do that, right?) Jul 19 23:31:23 Then inside your horizontalscrollview, you need a dummy view with an id Jul 19 23:31:26 YES thats what I need. and No, I don't. Jul 19 23:31:34 A "container" Jul 19 23:31:35 have the dummy view going arrdy Jul 19 23:31:39 yup Jul 19 23:31:53 hey all, just getting cold start with android studio 0.8.2 - first message is "Gradle project sync failed" - second message (when trying to run default "Hello World") is "nothing to show". Any hints about how to get started? Jul 19 23:31:57 Alright, so extend Fragment and override onCreateView Jul 19 23:33:04 sounds good, I am changing my spot now, I'll connect back in an hour and discuss further Jul 19 23:33:07 thanks frankdrey Jul 19 23:33:09 ! Jul 19 23:33:21 Alright :p Jul 19 23:45:55 ok i have a minor problem i dont know how to fix or if it is even fixable Jul 19 23:46:23 relationship problems? Jul 19 23:46:31 i have a NDK library which I created. I am creating an app which uses it Jul 19 23:46:31 plenty of fish in the sea Jul 19 23:46:55 but. EVERY call into the library has to be named according to the moronic JNI convention Jul 19 23:47:14 i.e. i have to say what app its being called from. what module within that app, which function within that module Jul 19 23:47:45 question. now do i create an NDK library that does NOT have carnal knowledge of the specific application using it Jul 19 23:48:01 i.e. i can link it in to MY application and you can link it in to your application Jul 19 23:48:08 is that even possible? Jul 19 23:49:30 JAVA_com_calling-app-name_calling-function-name_ndk-function-name Jul 19 23:50:59 how do i create a "JAVA_ndkfunction()" that does not specify "the one place in the main app that can call this native function" Jul 19 23:57:13 huh? Jul 20 00:00:19 http://www.science.uva.nl/ict/ossdocs/java/tutorial/native1.1/implementing/declare.html Jul 20 00:00:26 this is an example of JNI in use Jul 20 00:00:39 thers a jni function (native function) in a library called getLine() Jul 20 00:00:59 I440r, write a java side for the library as well and put it in a specific pacakge that you know in hte native side, then just use that from your actual applcation Jul 20 00:01:01 the java function called Prompt() calls this native function Jul 20 00:01:16 therefore the native function MUST be called Java_Prompt_getLine() Jul 20 00:01:42 i.e. you can only call that native function from within the prompt.java file Jul 20 00:02:02 zharf that wont work either Jul 20 00:02:07 why not Jul 20 00:02:10 I use it all the time Jul 20 00:02:11 -.- Jul 20 00:02:16 YOU use it Jul 20 00:02:20 and android SDK uses it too Jul 20 00:02:32 give me your library. ill add it to MY project. your library wont work for me Jul 20 00:02:49 ... if you think that, then you misunderstand me Jul 20 00:03:03 the library consists of java side and a native side Jul 20 00:03:08 because your jni functions will be called Java_com_myapplicatoion_myclass_myfunction_jnifuncname() Jul 20 00:03:12 or some bullshit like that Jul 20 00:03:41 for example. my app is com.reality.retrorpg <--- my game Jul 20 00:04:14 then write a fucking com.my.native.Library and use that from com.reality.retrorpg Jul 20 00:04:15 then NDK library functions have to be named Java_com_reality_regrorpg_XXXXX_blah() Jul 20 00:04:28 it's not that hard Jul 20 00:04:36 where xxxxx is the specific java calling it Jul 20 00:04:39 if you know anything about software development at all Jul 20 00:04:51 its java i am nub at Jul 20 00:04:56 not software devel Jul 20 00:05:39 I'm too tired for your incompentence, good night Jul 20 00:05:54 saying that NDK will be easy... Jul 20 00:05:56 ty for all the fish Jul 20 00:06:03 is like calling for trouble ;D Jul 20 00:06:51 gordon_, meh, only real trouble you can get to with ndk is to forget to use jtypes and use ctypes instead... loads of fun with stack trashing right there Jul 20 00:08:38 it lacks tooling Jul 20 00:08:46 hope jetbrains will do something with that Jul 20 00:08:50 with ndk and jni Jul 20 00:09:06 it did it twice Jul 20 00:09:08 I mean jni Jul 20 00:09:16 and I dont feel like doing it again Jul 20 00:09:19 it's just pain in ass Jul 20 00:10:06 I write jni stuff all the time, it's just normal C, really... Jul 20 00:11:53 well in my case its normal assembler :) Jul 20 00:12:56 the library works, its just its specific to the app using it right now Jul 20 00:13:00 bad mojo Jul 20 00:13:13 but seriously, just write a java class in some library specific package (outside of your application package), make the native side use that and then just use it through the library java class in the rest of the application Jul 20 00:13:18 it's basic abstraction Jul 20 00:13:54 so.. i create a new package called com.ndklibname and all the jni functions are named according to that package? Jul 20 00:14:01 yes Jul 20 00:14:31 so i release the java linkage as source to you with the ndk library as binary... you can use Jul 20 00:15:13 java.nio.ByteBuffer does it... it just has a few public native methods in addition to some java methods Jul 20 00:15:38 the library would consist of the ndk binary and the java class file Jul 20 00:18:09 erm. then i have no idea how to build that library. Jul 20 00:18:32 my ndk build builds ONLY the library sources in assemler and c Jul 20 00:18:56 how do i load the library. i would have to load the class associated with it and the library at the same time Jul 20 00:19:00 how does that work? Jul 20 00:19:06 how do i package the library? Jul 20 00:19:10 huh Jul 20 00:19:18 static { System.loadLibrary("foo"); } Jul 20 00:19:20 how is this even a problem... Jul 20 00:19:30 * pfn boggles Jul 20 00:19:30 and the class gets loaded how? Jul 20 00:19:44 java magic Jul 20 00:19:45 users if your library reference your class Jul 20 00:19:48 I440r: by the classloader, like all java classes Jul 20 00:19:49 fucking duh Jul 20 00:21:09 pfn if you come into #forth asking "stupid dumbass NUB questions" we will go out of our way to explain it to you in what ever terms it takes for you to fully understand the answer Jul 20 00:21:19 we certainly wont treat you like your some kind of moron Jul 20 00:21:43 you just earned a ./ignore Jul 20 00:21:54 thank you Jul 20 00:22:08 because your idiocy isn't really worth helping Jul 20 00:22:12 sorry, but these things should be painfully obvious if you even spent so much as an hour or two reading up on how java works Jul 20 00:22:40 classpath is the first problem a beginning java programming runs into Jul 20 00:22:51 sonOfRa, i can just include the java sources for the libraries wrapper in my main apps build. this really isnt the way it should be done though. Jul 20 00:22:54 this is why IDEs are bad :p Jul 20 00:22:57 and stupid dumbass nub questions, you've been doing this for more than 6 months now Jul 20 00:23:09 how do i package the wrapper class with the jni library ? Jul 20 00:23:22 You package them in a .jar file, like all java libraries Jul 20 00:23:47 And you toss the native libraries into jniLibs/ under your source folder Jul 20 00:23:57 and how do i build this jar. my ndk build does not build any java or create any jar files Jul 20 00:24:34 the ndk build automatically puts the .so in there Jul 20 00:24:43 but thats just the .so. not the .class Jul 20 00:24:45 You want this library available outside of this specific application? Jul 20 00:24:50 YES Jul 20 00:24:58 Then I would very much recommend separating the build process from your android application Jul 20 00:25:18 one of the problems may be that only Android L is showing up in the Android Emulator Device Manager. It won't let me create one... Jul 20 00:25:21 I use CMake for building my JNI stuff, as it builds both java AND native code very nicely Jul 20 00:25:23 well. it is separated, its just currently within the same source tree. Jul 20 00:25:45 i can pull out the jni/ and create a separate project Jul 20 00:26:21 which would contain the one java class with the right package name and i still dont know how to build that class and the ndk stuff Jul 20 00:26:22 mind taking this to PMs? This will take some explaining, don't want to flood the channel. Jul 20 00:26:27 and end up with a jar not a .apk Jul 20 00:26:32 sure Jul 20 00:27:10 the library IS working. it does what its supposed to do. its just very specific to this one app Jul 20 00:27:38 i knew it would be when i was creating it. i just dont know how to make it not specific is all Jul 20 00:34:34 does someone know if finally android.text.clipboardmanager has been dropped from android 4.4? Jul 20 00:35:18 I'm trying to run a code that gets that system service but crashes only when run on android 4.4 Jul 20 00:35:38 I guess I'll have to make a version for 4.4 using the new api :/ Jul 20 00:45:23 I doubt it's been removed... Jul 20 00:46:09 but moving to new apis is always a better option Jul 20 00:53:58 its weird because it says something about being using a handler (an android.os.handler) in a thread with no looper Jul 20 00:54:51 and I'm not using such handler in my app. it throws that runtime exception just when trying to obtain the instance for clipboardmanager Jul 20 01:04:50 that generally means you're not in the main thread Jul 20 01:05:01 when something expects you to be Jul 20 01:11:16 :Zharf - thanks Jul 20 01:12:19 huh? who was he Jul 20 01:18:41 Adyrhan, wrong thread Jul 20 01:39:23 <[R]> given a string "KEYCODE_F1", how can i figure out the value in KeyEvent for it? Jul 20 01:39:42 reflection Jul 20 01:40:09 <[R]> without reflection Jul 20 01:40:14 <[R]> i'm worried thats going to be too slow Jul 20 01:40:43 why do you only have a string? Jul 20 01:40:58 [R]: ^ Jul 20 01:41:00 <[R]> because i'm trying to be nice? Jul 20 01:41:08 <[R]> its a config file people ahve to edit by hand Jul 20 01:41:20 that sounds naff Jul 20 01:41:24 and since its config file Jul 20 01:41:33 you can interpret it on launch so speed should not be an issue Jul 20 01:41:39 <[R]> yeah, i was thinking about doing that Jul 20 01:41:57 you can always cache the reflection results anyhow Jul 20 02:34:01 How can I have a project to select contact phone number? Jul 20 02:35:30 hey guys, I have a task I'd like to run in the background for up to 10 seconds, and then I'd like to interrupt it. What would you recommend using for this? Jul 20 02:35:51 Alarm? Jul 20 02:37:15 How do I pass variable to ViewPager's fragment upon a link click? Jul 20 02:45:41 In other words, I have a ViewPager, and a list, I want the first fragment to be opened with the second fragment's clicked item info Jul 20 02:45:56 How can I pass the list's clicked item to the next page, Jul 20 02:46:45 detachYo, I dunno if fragments can easily support that Jul 20 02:47:55 actually Jul 20 02:47:56 http://developer.android.com/guide/components/fragments.html#CommunicatingWithActivity Jul 20 02:48:20 you can have one fragment tell the activity which in turn tells the other fragment Jul 20 02:49:54 * frankdrey just realized he really should get rid of the callback objects I created and passed to my fragment constructor Jul 20 02:49:56 really bad idea Jul 20 02:50:05 it'll be destroyed on rotation iirc Jul 20 02:50:53 there are so many things I want to redo in my project :P Jul 20 02:51:01 generally the older the code, the more I want to redo it Jul 20 02:52:19 frankdrey Jul 20 02:52:23 i get what you're saying Jul 20 02:52:27 is it possible to have an android project build not to an apk but just produce the .class files? Jul 20 02:53:05 but having hard time implementing that Jul 20 02:53:08 <[R]> I440r: i have all the .class files in my project.... Jul 20 02:53:32 frankdrey: I am able to send from list fragment back to mainactivity, but how do I call fragment two from mainactivity? Jul 20 02:53:55 [R] u dont undestand. there is no main here, this java is part of an NDK library. its a wrapper java for the ndk library. this lib will be included in my main app - i need to build the NDK stuff and its wrapper Jul 20 02:54:47 detachYo, get a reference from FragmentManager to the Fragment Jul 20 02:54:54 cast to *your* fragment object Jul 20 02:54:57 and call a method Jul 20 02:55:00 the simple way is to have javac compile the wrapper java file but... this file needs to include AssetManager stuff. i.e. i need the android build environment Jul 20 02:55:30 <[R]> and why do you dont whatever hte normal process is? Jul 20 02:55:33 i need android to build this wrapper.java to my NDK library but NOT produce anything other than its associated .class Jul 20 02:55:34 frankdrey, are there examples anywhere? I am new to android dev Jul 20 02:55:43 whats the normal process Jul 20 02:55:59 detachYo, on that same link :) it's a little harder to notice, a shorter section above the activity stuff Jul 20 02:57:29 im stripping out ALL knowledge of any specific application from the library. the lib will not care which application uses it. right now it does Jul 20 02:57:56 this is why i need a separate android project for this library. but this project isnt an application. its an NDK library Jul 20 02:58:04 with a java wrapper Jul 20 02:58:19 how do i get android to NOT try to produce an apk Jul 20 02:59:59 <[R]> i know in eclipse there is an option to say its a library... **** ENDING LOGGING AT Sun Jul 20 03:00:00 2014