**** BEGIN LOGGING AT Mon Aug 11 02:59:58 2014 Aug 11 03:38:07 anyone know if calling setVisibility(GONE) on a surfaceview will cause the surface to be destroyed (ie onSurfaceDestroyed gets called)? Aug 11 03:39:21 lasserix better check the SurfaceHolder.Callback.surfaceDestroyed :) Aug 11 03:39:28 :P Aug 11 03:39:29 go test it Aug 11 03:39:49 does no one not know? obviousily i can test it Aug 11 03:39:50 asking for 2 days is a bigger waste of time than writing a test Aug 11 03:40:00 i am still in the process of writing the menu state manager Aug 11 03:40:09 but thank your for paying attention ;p Aug 11 03:42:15 ugh good books make it difficult to get coding done Aug 11 03:42:34 lasserix what are you reading ? Aug 11 03:42:41 * g00s_ sucker for good books :) Aug 11 03:42:57 robin hobb's farseer trilogy Aug 11 03:43:39 ah fiction, never heard of it Aug 11 03:43:45 pretty good, very engrossing. Aug 11 03:44:07 makes me kind of long for the days of ultima online, but that was a previous life heh Aug 11 03:44:42 if you need some good stuff to read, margarat atwood's MadAdam trilogy is awesome Aug 11 03:45:20 * g00s_ realizes madg00s sounds better than g00s Aug 11 03:46:00 if you want something technocyberish Accelerando by Charles Strass is really good Aug 11 03:46:16 also the Eschaton series is fun space science fiction Aug 11 03:46:31 and since you like econ, I definatly recomend his Merchant Princess series Aug 11 03:46:47 Paul Krugman says its one of the better fiction books about economy Aug 11 03:46:55 orly Aug 11 03:47:00 (its not really about economy, per say, but the world it is has such) Aug 11 03:47:41 imagine a world where us never had independence, and is still ruled by medival europe (no christ) and some people have the ability to teloport to our world Aug 11 03:47:49 you can imagine what you might do economically ... Aug 11 03:47:56 anyways those are all good if you need something to read Aug 11 03:49:34 you making a new app? Aug 11 03:50:26 lasserix i just grabbed http://www.amazon.com/The-Poverty-Capitalism-Economic-Meltdown/dp/0745333303 Aug 11 03:50:48 no, just extending an old app. trying to get some big things done before the OEM release new hardware Aug 11 03:51:31 is it just me or firefox really struggles on amazon - maybe their JS is killing it Aug 11 03:53:34 automation is really gong to throw our valuation system into a death spiral Aug 11 03:53:36 it's just you Aug 11 03:53:43 damn it capella-s3 Aug 11 03:54:10 Charles David George "Charlie" Stross (born 18 October 1964) is a British writer of science fiction, Lovecraftian horror and fantasy. He was born in Leeds. Aug 11 03:54:13 "before the OEM release new hardware" what does this mean? Aug 11 03:54:30 * capella-s3 wonders if that hurt much Aug 11 03:54:50 lasserix i interface with hw via bluetooth, and when they release their next gen stuff in sep i want to make sure my app supports it Aug 11 03:54:57 ahh i see Aug 11 03:55:08 which of course they are doing before the holidays Aug 11 03:55:17 oh shit Aug 11 03:55:17 its the ol holiday rish for app devs \o/ Aug 11 03:55:20 yeah time to prepare! Aug 11 03:55:21 *rush Aug 11 03:55:38 release by thanksgiving and market for xmas? Aug 11 03:55:48 ahh i really need to finish this game Aug 11 03:56:19 man canada looks like a great place to go Aug 11 03:56:29 "Canada is suffering "a desperate and growing shortage" of computer developers and software engineers" Aug 11 03:56:50 hi everyone Aug 11 03:57:03 Hi Dr. Nick! Aug 11 03:57:07 plus in 50 years, there won't be any water in the US west ha Aug 11 03:57:24 as long as i can get a job where i dont have to show up till 11 am, i am down to go! Aug 11 03:59:00 we should start a collective and then contract out the combined skill Aug 11 03:59:18 Hello, I switched computers and I am trying to run a program with android studio. I have a galaxy tab 4 with kit kat installed. I can't access it to run my program on in android studio. Does anybody have an idea of what is going on? Aug 11 03:59:51 ellie_fitzy: u using windows? Aug 11 03:59:59 do you have command line access to adb> Aug 11 04:00:05 lasserix: windows 7 Aug 11 04:00:14 can you run adb from command line? Aug 11 04:00:17 lasserix: how do I get that? Aug 11 04:00:41 you have to add sdk/platform sdk/platform-tools to your path enviromental variable Aug 11 04:00:48 well you dont have to but recomended Aug 11 04:00:54 you should download cygwin Aug 11 04:01:13 anyways dont worry about all this Aug 11 04:01:49 in android studio goto Tools->Android->Android Device Moniter Aug 11 04:01:56 see if your galaxy shows up Aug 11 04:01:58 because the US pays better than Canada Aug 11 04:01:59 capella still waiting on FF to get some kind of control over canvas fingerprinting Aug 11 04:02:15 it does not show up. No connected devices Aug 11 04:02:21 File a bug? Aug 11 04:02:41 ellie_fitzy: it worked before when you used eclipse? Aug 11 04:02:44 did you install the drivers? Aug 11 04:02:54 *the galaxy drivers Aug 11 04:03:03 I never used eclipse. I had to switch computers. It showed up on the other computers. Aug 11 04:03:17 goto device manager Aug 11 04:03:22 when you have the galaxy plugged in Aug 11 04:03:30 see if you have unrecoginized device in the device manager list Aug 11 04:03:30 capella i think its been filed Aug 11 04:03:38 if you do you need to find the drivers and install them Aug 11 04:03:52 it is recognized as a tablet. Aug 11 04:04:19 :) Well that's the first step ... get yourself cc:ed and follow the developments is what you do next Aug 11 04:04:23 capella https://bugzilla.mozilla.org/show_bug.cgi?id=1041818 Aug 11 04:04:40 on the device, find the USB Connection mode Aug 11 04:04:54 usually it'll show up on the status tray at the top when you plug in the device to the computer Aug 11 04:05:07 try setting it to Picture Mode instead of Media/Storage mode or vica versa and see if that works Aug 11 04:05:15 it says it is connected as a media device or MTP Aug 11 04:05:17 * capella reading ... Aug 11 04:05:20 capella you can work on it an become famous Aug 11 04:05:30 ellie_fitzy: yeah try the other connection mode Aug 11 04:06:37 g00s_ er .... I don't see it as a high priority issue :/ Aug 11 04:06:47 still nothing Aug 11 04:06:54 capella oh well, i guess you don't understand ;) Aug 11 04:07:07 the implications Aug 11 04:07:11 will installing drivers from : http://developer.samsung.com/samsung-mobile help? Which ones do I install Aug 11 04:07:21 g00s_ Not really ... though it's got the attention of those that can make a difference if it's important enough Aug 11 04:08:03 I don't see fingerprinting as a huge issue, when there's so many other ways of tracking available to the ad-guys Aug 11 04:09:01 they do try to stick ids in every nook and cranny Aug 11 04:09:46 I know, but it's like fighting gnats .... there's just too many and they're more annoying than hugely dangerous Aug 11 04:10:16 lasserix: will installing drivers from : http://developer.samsung.com/samsung-mobile help? Which ones do I install Aug 11 04:10:20 To me in any case ... your mileage may vary Aug 11 04:10:59 man arduino looks really interesting Aug 11 04:12:26 detachYo: its awesome if you are coming from coding in plain C Aug 11 04:13:02 i have never done C Aug 11 04:13:58 assembler ftw :) Aug 11 04:14:16 arduino has very beginner friendly environment Aug 11 04:14:27 very good* Aug 11 04:16:19 i'll give it a try one day Aug 11 04:20:07 in content provider, when I update, it returns number of rows updated, instead of the id of the row, correct? Aug 11 04:23:34 yep Aug 11 04:25:56 hehe http://i.imgur.com/S8HtOIr.png Aug 11 04:26:34 Yup, saw that today, pretty funny hah Aug 11 04:29:27 capella: I actually worked in the same place as him, as a graduate - never met him, I think he left before I started Aug 11 04:30:41 Heh - was a joke of course ;) But cool co-incidence Aug 11 04:30:57 I know this is the wrong place to ask but does anyone know about the Android file system and mount points? Aug 11 04:31:25 quite a lot of people have been born in Leeds - it's quite a major city :) Aug 11 04:35:07 CoolApps: I don't think they do no Aug 11 04:35:17 detachYo: arduino is great. I recommend getting a kit or something if you wanted to look into it. something like www.freetronics.com/expkit Aug 11 04:36:06 I need to get these corrected, too bad TWRP was a little misleading with it's "repair". Aug 11 04:38:04 I wouldn't understand repair instructions from Toilet Water Reptar Plotter either Aug 11 04:40:45 barbs: what can I do with that kit? Aug 11 04:41:27 detachYo: nothing too crazy, but enough to get started. comes with lots of leds, resistors, a light sensor, a buzzer thingy, small servo Aug 11 04:41:36 breadboard, cables Aug 11 04:41:40 a few switches Aug 11 04:44:22 Just checked and it looks like it is all right. Aug 11 04:44:49 it looks pretty neat Aug 11 04:45:29 barbs: my goal is to eventually make automated home system with arduino Aug 11 04:45:31 and android Aug 11 04:45:36 not yet though :) Aug 11 04:45:39 QUESTION: I have several text files which lists image filenames & the set of related images how do I create ImageView instances from these images? Aug 11 04:45:59 Nivag: open the file, read the filenames/paths, create Aug 11 04:46:10 detachYo: sounds like fun ^^ Aug 11 04:46:19 barbs: yup :) Aug 11 04:52:31 Probably best if I work this problem backwards, so initially assume that i have a file house.png in a known place (where?), how do I construct an ImageView (or should I use some other class?) instance programmatically Aug 11 04:56:33 "How does one place resources in a referenceable location in a project?" Aug 11 04:59:27 oh today is a supermoon Aug 11 04:59:30 hey all, if I try to load a LOCAL asset (.png, in /assets folder) in my webview to a REMOTE html, with file:///android_asset/ uri's in the css, I am met with [INFO:CONSOLE(0)] "Not allowed to load local resource: file:///android_asset/.png. Can anyone shed some more info on this? Is there a way I accomplish this without hosting the html locally? I am trying to make the webview... Aug 11 04:59:31 ...load faster. the url is dedicated to the webview so the src can be modified as needed Aug 11 05:03:17 I can see that ImageView has the method setImageBitmap(Bitmap bm), and BitmapFactory has decodeStream(InputStream is) & decodeStream(InputStream is, Rect outPadding, BitmapFactory.Options opts). Which looks good, but where do I put the image files & what name do I give FileInputStream(String name) ? Aug 11 05:04:07 well, I think it's time to go buy a new phone Aug 11 05:04:18 Leeds what happened to the old one :P Aug 11 05:04:21 GF take it :D Aug 11 05:05:12 Nivag: perhaps check into the File native lib Aug 11 05:05:43 nope... wandered in to see the HTC E8 (the 'plastic M8') on Saturday, and was offered a very good price for it, trading in the old phone Aug 11 05:06:09 don't forget to wipe it, which i guess means encript it first Aug 11 05:06:14 My target is Android 4.4.4, I do not need to consider anything earlier Aug 11 05:06:17 *encrypt Aug 11 05:06:46 ?File native lib - do understand, sorry Aug 11 05:07:12 eh, not sure I can be bothered :) I'll do a quick wipe, of course Aug 11 05:08:02 How can I listen for when a listview becomes enabled/disabled ? Aug 11 05:08:06 sorry, I meant I do NOT understand Aug 11 05:08:43 g00s_: supermoon visible where? Aug 11 05:09:01 detachYo i guess wherever :) its close to the earth Aug 11 05:09:25 of course, where there is a full moon its big & bright Aug 11 05:09:36 moonrise is nice Aug 11 05:09:51 I can't find a sort of setOnEnabledChangedEvent for View Aug 11 05:09:54 what should I use? Aug 11 05:09:59 lemme check it Aug 11 05:10:02 http://developer.android.com/reference/java/io/File.html Aug 11 05:11:33 g00s_: supermoon != fullmoon :P Aug 11 05:12:25 oh man Aug 11 05:18:09 johnflux: what is enabling and disabling it ? are you sure thats what you mean ? Aug 11 05:18:29 or do you mean visible ? focused ? drawn ? layout ? Aug 11 05:19:26 StingRay_: listView.setEnabled(false) Aug 11 05:19:42 but I mean what is setting that ? Aug 11 05:19:54 that is the cause of you not being aware of when ? Aug 11 05:20:07 StingRay_: I'm trying to get it so that when I disable a listview, then all the items inside get disabled Aug 11 05:20:29 StingRay_: so I'm thinking that I should modify the AdapterArray to return false for the enabled if the listview it is in is disabled Aug 11 05:22:11 and whats the reasin/use ? Aug 11 05:22:27 cause never needed to do anything like that before Aug 11 05:22:32 eason* Aug 11 05:22:45 oh god, need coffee *reason Aug 11 05:23:18 StingRay_: I let the user filter the list by typing in something. I want to gray out the list while it is applying the filter Aug 11 05:24:00 so what the user is filtering out is still visible ? Aug 11 05:24:52 StingRay_: ah no sorry I mean: results are visible. user starts to type something. all of the listview is grayed out temporarily. user stops typing, and waits. filter is applied. The listview is ungrayed Aug 11 05:25:53 StingRay_: so it's gray just while the user is typing, just for some visual feedback Aug 11 05:28:04 maybe I should just have a gray translucent rectangle over the top that I set as visible :-) Aug 11 05:29:24 just seems odd for the way android/filters works Aug 11 05:29:33 or what is the norm Aug 11 05:30:11 also seems a bit like for sakes sake Aug 11 05:31:09 the use is presented with information that is not valid for the action they want but it's ok cause they can do nothing with it, oh and if they change their minds and try it will probably have started the filter so they will touch thin air :) Aug 11 05:32:16 but yeah you could just set a flag on the listView Aug 11 05:32:26 myListSetAllEnabled(false) Aug 11 05:32:49 then in getView actually set it from the mVarEnabled that the previous method set Aug 11 05:36:18 oh man, you know when a company makes a great, no perfect product, you love it, and then they release the sucessor and it of course falls short Aug 11 05:37:40 I do, every assasins creed game after brotherhood Aug 11 05:37:42 :) Aug 11 05:37:59 i love my lumia 521, but the 530 just got 2mm fatter Aug 11 05:38:12 thats quite a bit :| Aug 11 05:38:15 and thats why it falls short ? Aug 11 05:38:20 9mm vs 11mm Aug 11 05:38:34 yeah cause i run with this 521, its so small Aug 11 05:39:01 i'll have to buy another one just in case Aug 11 05:39:16 that franchize has netted over a billion dollars Aug 11 05:39:52 i'm impressed by what wp 8 can do with such low specs Aug 11 05:39:59 it is butter smooth Aug 11 05:41:14 $69 low specs Aug 11 05:41:22 same with ios Aug 11 05:41:43 the a7 is pretty killer Aug 11 05:41:44 say what you want, iphone is not a highend spec phone Aug 11 05:42:16 g00s_: that seems to happen with every chat program Aug 11 05:42:39 that reminds me, still want to try weechat Aug 11 05:42:40 g00s_: they start off nice and simple, doing exactly what I want. Then they add in all sorts of new features and making the UI worse and worse.. Aug 11 05:43:56 canadiancow http://i.imgur.com/2SCugii.jpg Aug 11 05:48:23 that awesome feeling where you implement a whole new feature with one compile run Aug 11 05:48:26 haha Aug 11 05:52:40 I don't recognize that feeling :D Aug 11 05:58:15 detachYo, and not break a few existing ones in the process? Aug 11 06:01:15 ravilov: and fix some existing bugs in the process Aug 11 06:01:27 i was surprised to be honest Aug 11 06:02:00 "like, this works? actually? meaning no problem... hm something must be off... let's test again... after bunch of testing, things worked fine." Aug 11 06:02:28 well, given that i spent good hour on the logic, i kinda, sorta expected it to work Aug 11 06:03:33 enough work for night Aug 11 06:03:34 im outty Aug 11 06:03:37 gnite everyone Aug 11 06:40:23 hm, interesting https://github.com/wyvernlang/wyvern Aug 11 07:00:38 g00s_: hey dude Aug 11 07:00:52 hi gdrc Aug 11 07:01:11 internet is not working but irc yes mmh Aug 11 07:02:06 time for http over irc proxy :P Aug 11 07:51:44 can i use com.mysql.jdbc.Driver in my Android app ? Aug 11 07:54:25 uhlm, yes Aug 11 07:54:54 You could have tried Google http://stackoverflow.com/questions/15732853/how-to-connect-android-app-to-mysql-database Aug 11 08:04:54 autrilla: i did. first 8 stackoverflow responses i read stated that it was not possible but without really saying why, and instead refering to php/restful solutions Aug 11 08:05:45 just like all the anwsers but one in your link Aug 11 08:05:46 :) Aug 11 08:06:13 i dont see why i would need a restful medium when i can do it directly Aug 11 08:06:39 Because MySQL is bad, and accessing databases directly is usually bad too. Aug 11 08:06:57 That is exactly why most databases come preconfigured to only listen on localhost Aug 11 08:16:04 hi all, I have nexus5, and I want to save a file to the external storage. I have WRITE_EXTERNAL_STORAGE permissions in the manifest, however it fails with "android open failed: EACCES (Permission denied)" Aug 11 08:17:04 It should almost be considered criminal negligence to allow a client to access a database directly! Aug 11 08:18:22 meital: I have done that recently successfully Aug 11 08:19:09 meital: to write to external storage Aug 11 08:19:27 Nivag: I'm using robotium (takeScreenshot method), so the code should be ok. My question is specifically about nexus device. Did you run it successfully on nexus? Aug 11 08:19:27 would you likec to see the relevbant code? Aug 11 08:19:44 on a nexus 7 Aug 11 08:19:56 ah ok :) so yes, I would like to see the code Aug 11 08:20:15 give me a minute or 3... Aug 11 08:20:39 thanks! Aug 11 08:24:26 meital: http://fpaste.org/124577/77453911 feel free to criticize the code! :-) I'm new to programming Android, so I'm sure there are better ways of achieving my aims! Aug 11 08:25:30 Nivag: thanks! I'm new as well, so don't expect too much criticism ;) Aug 11 08:25:57 meital: for example, the method abort(Throwable t) is a horrible kludge! Aug 11 08:29:28 meital: is the code of any help to you? constants defined in http://fpaste.org/124578/45745140/ Aug 11 08:30:02 Nivag: still reading it, but it's a different way then what they used in robotium Aug 11 08:31:45 hmm Aug 11 08:31:55 Nivag, what's the function of the abort() call? Aug 11 08:33:35 meital: Well, in my normal Java apps, it would output to the console - but In Android, I've no clue how to do that, nor write to use the 'official' logging facility correctly! Aug 11 08:34:03 & then die! Aug 11 08:36:46 meital: I normally write stuff forservers, this is tghe start of my first Android app\ Aug 11 08:37:13 android.util.Log for logging; as for "die", either use finish() when in an activity, or else propagate the exception until it can be handled in a nice way (message box, log, toast, whatever) Aug 11 08:38:15 ravilov: that seems far too civilized! I'll give it a try thanks! Aug 11 08:38:59 Nivag, don't do that in Android Aug 11 08:39:04 the System.exit() thing Aug 11 08:39:14 it'll eat up all your crash reports and you won't see them from your users Aug 11 08:39:44 what is a fling event? Aug 11 08:40:26 place finger near bottom of screen, swipe upwards in a quick fashion, release Aug 11 08:40:38 (ie. exactly like the word says) Aug 11 08:40:43 I see Aug 11 08:40:50 Mavrik: I'll consider my wrist slapped! :-) This is an example to gain understanding, I will now test out the ideas from ravilov: Aug 11 08:40:53 thanks Aug 11 08:43:05 What should I use if I want to hold & move something around? Aug 11 08:46:01 compac, drag and drop? :) Aug 11 08:46:17 ah, right :p Aug 11 08:52:00 ravilov, anyone: I'm using Eclipse Luna: When I force an exception in my Android App, I seem to just a several lines with single characters appearing in the LogCat window & nothing extra in the console window - So I guess I'm missing the obvious somewhere... Aug 11 08:53:45 the console won't and shouldn't ever say anything Aug 11 08:53:49 that's not how android works Aug 11 08:53:59 as for logcat, you should see the stack trace Aug 11 08:54:23 lots of D's E's & W's - looks like they might be categories, but where do I look for the actual log entries??? Aug 11 08:55:00 should be in the same window, just slightly to the right? Aug 11 08:55:40 as for "letters", check out developer.android.com (always a good source of information) about android.util.Log, it tells you all about logging levels Aug 11 08:56:55 yeah the heading is 'Level' in the grey bar above, there is only blank space to the right Aug 11 08:59:03 weird Aug 11 08:59:48 you can always get full logs with adb logcat, but the eclipse window should show them too, unless your eclipse is messed up somehow Aug 11 09:00:46 hi guys. in my Android app i have this method to query data from a remote mysql database: http://bpaste.net/show/4ZjGyXTDZTpGQweEc7uk/ Aug 11 09:00:46 on line 10. as i understand i query for an arraylist. is that right ? Aug 11 09:00:56 all i want is to query for one integer at a time, that is the ID and use the String that is associated with the ID. Aug 11 09:01:59 ravilov: What settings should I check, I'm not aware of doing anything that would cause the problem, - but I've been in the business too long to claim I've done that might be causing the problem!!! :-) Aug 11 09:02:24 ravilov: ... might not be ... Aug 11 09:03:05 honestly, I don't know Aug 11 09:03:11 my logcat window just - works Aug 11 09:03:34 maybe you could do a screenshot or something, I'm having a hard time imagining this tbh Aug 11 09:04:52 ravilov: What version of Eclipse are you using? Aug 11 09:04:59 3.8 Aug 11 09:05:09 no idea what "codename" is that Aug 11 09:05:09 is it normal for IMMERSIVE_STICKY to be invalid when IME is up and in use ? Aug 11 09:06:28 Hi Aug 11 09:07:53 anyone use IMMERSIVE_STICK ? Aug 11 09:07:59 ravilov: I'm on 4.4, I have a screenshot of a reduced window that should be sufficient, normally the window would use all of my 30" screen. Should I email it, or ... ? Aug 11 09:09:32 oh and uhlm line 11 is the actual getting of data Aug 11 09:10:39 Nivag, you can upload it to some picture sharing service such as tinypic or imgur, you can delete it later if you like Aug 11 09:10:58 although I guess the problem can easily be 4.4 Aug 11 09:11:03 I have a draft of a GCM implementation thanks to developer.android.com, but there's one thing which I can't understand. Currently, my server knows about the REGISTRATION_ID of the device, because my device is just sending a message to the server. Is it ok? Because on developer.android.com there is an info, that I should implement a method, which informs my server about device registration id. Aug 11 09:11:11 Specifically, "Sends the registration ID to your server over HTTP, so it can use GCM/HTTP or CCS to send messages to your app. Not needed for this demo since the device sends upstream messages to a server that echoes back the message." Aug 11 09:11:24 * ravilov is just so reluctant with upgrades, and this would be why ;) Aug 11 09:12:21 ravilov: any preference? I've not used such a service before Aug 11 09:12:36 whichever you like Aug 11 09:12:39 it's time you use one then Aug 11 09:12:40 :p Aug 11 09:13:14 * Nivag wonders if I can feed it punched cards... Aug 11 09:13:43 probably not, but feel free to punch some cards if it gets too frustrating :p Aug 11 09:15:20 swistak35: sounds fine Aug 11 09:15:51 StingRay_: thanks Aug 11 09:18:03 according to a blog post I recall reading there is no normal conditions that would invalidate that reg info Aug 11 09:18:14 ravilov: http://i61.tinypic.com/10wld1i.png Aug 11 09:18:40 having said that I do re-reg the device every x time period so I dont store irrelevant reg info Aug 11 09:18:51 so obviously store a timestamp too Aug 11 09:20:56 ravilov: I do have most of a box of unused 80 col punched cards, good for shopping lists! I'm glad I no longer have to use them to actually program, last used such 25 years ago... Aug 11 09:23:15 Hey, I'm trying to build (ndk-build) an executable where I'm using pthreads stuff, and I keep getting linker errors about unresolved pthread_* functions Aug 11 09:24:00 danyz, set APP_PLATFORM to android-9 or newer Aug 11 09:24:01 Does anyone here know what's it about? because as far as I know, pthreads is paths of libc.so on android Aug 11 09:24:11 since pthreads were exposed in Android9+ Aug 11 09:24:12 *part Aug 11 09:24:16 ahhh Aug 11 09:24:17 thanks Aug 11 09:25:14 Umm.....still the same thing. I'm running "ndk-build APP_PLATFORM=android-19", and I have the latest ndk (r10) Aug 11 09:27:39 Nivag, yeah no idea, I don't even know how I'd remove columns from the logcat window even if I wanted to Aug 11 09:27:44 Nivag, my logcat window: http://i.imgur.com/4nrcprB.jpg Aug 11 09:30:08 ravilov: I've just got the first column, but I've never done anything to hide/remove the other columns - as far as I can tell! Aug 11 09:30:55 Mavrik: Do you have any idea of what it might be? Aug 11 09:31:10 not really Aug 11 09:31:20 either you're calling parts of pthreads that aren't implemented. Aug 11 09:31:29 or APP_PLATFORM isn't taken into account / is overriden Aug 11 09:31:36 but without more information I cannot tell Aug 11 09:32:16 Nivag, yeah I don't know if you even *can* add or remove columns, so no idea what to suggest Aug 11 09:35:07 Mavrik: Sorry to nag, but would you mind taking a look at http://pastebin.com/aqUhbiNw ? Aug 11 09:37:54 ravilov: I went looking for files mentioning logcat, could not see anything obvious: http://fpaste.org/124584/07749816 Aug 11 09:38:48 yeah you won't find anything Aug 11 09:38:51 it's part of ADT Aug 11 09:38:54 ravilov: except, perhaps... metadata/.plugins/org.eclipse.core.runtime/.settings/com.android.ide.eclipse.ddms.prefs:logcat.view.colsize.Level=2145 Aug 11 09:39:38 I don't even have that file Aug 11 09:39:49 wait Aug 11 09:40:23 what happens when you scroll that window to the right? are more columns there? Aug 11 09:41:00 Nivag, http://fpaste.org/124586/07750055/ Aug 11 09:43:41 ravilov: That worked! I know see all the columns, :-) Aug 11 09:44:38 Nivag, cool! Aug 11 09:44:55 still no idea what happened Aug 11 09:45:01 but eh, at least now it works Aug 11 09:46:10 ravilov: just checked my laptop, that too is using Eclipse Luna, but it has all the columns - so maybe it was 'just a random file corruption'??? Aug 11 09:46:46 possible I guess Aug 11 09:47:05 ravilov: programming is EASY, anyone can do it!!! Oh yeah??? Aug 11 09:47:25 well yes Aug 11 09:47:34 anyone can write a hello world code snippet :p Aug 11 09:48:29 Hi! I'm looking for someone who has in-depth experience with authentication on Google Play Services. I have some worries with regards to verification tokens for use with third-party servers. Aug 11 09:49:30 The first program I ever wrote was to visualize cosines of complex numbers Using BASIC - before I took my first course in Computer Science in 1968 and was formally taught programming in FORTRAN Aug 11 09:50:45 nice Aug 11 09:51:34 software development is all about finding new ways to go insane... :-) Aug 11 09:53:16 software development is about making sand into your number crunching slave! Aug 11 09:54:21 asfdd, I would think a good part of that process would be hardware developmen Aug 11 09:54:24 asfdd: so you would start a recipie for rice pudding "First grow your rice..." ??? :-) Aug 11 09:54:24 t Aug 11 09:54:52 Nivag, "if you want to make an apple pie from scratch, you must first invent the universe" Aug 11 09:55:23 How many software developers does it take to change a light bulb? Aug 11 09:55:28 (-- Carl Sagan, btw) Aug 11 09:55:42 None! It is a hardware problem... Aug 11 09:55:54 isn't that douglas adams ravilov? Aug 11 09:56:06 not as far as I know Aug 11 09:56:16 google will now :P Aug 11 09:56:26 yaeh its sagen Aug 11 09:56:34 asfdd, http://www.brainyquote.com/quotes/quotes/c/carlsagan137409.html Aug 11 09:56:36 ha Aug 11 09:57:09 I think that LogCat column problem must be the weirdest problem that I've ever had solved via IRC! Aug 11 09:57:32 glad to be a part of your weirdness :p Aug 11 09:57:41 but wait, there will surely be weirder down the road Aug 11 09:57:59 * Nivag chuckles Aug 11 10:03:13 I have some png images that I need to programmatically display. So I want to know: Aug 11 10:03:15 (1) where to put them in the res directory (probably drawable-xhdpi ?) Aug 11 10:03:16 (2) what filename I should use to create a FileInputStream object Aug 11 10:04:14 res/ is extremely special Aug 11 10:04:24 you don't ever see or access stuff in there as files Aug 11 10:05:32 actually, generally speaking, you don't access any of the "built-in" (ie. APK-packaged) stuff as files Aug 11 10:06:32 Is it normal behaviour that TaskStackBuilder doesnt create the synthetic backstack directly? Aug 11 10:06:44 you access the res/ stuff via Activity.getResources(), I'm not sure how you access the assets/ stuff Aug 11 10:07:10 When I have 3 activitys (A,B,C) which each other as parent in this order, and go to C from A using TaskStackBuilder Aug 11 10:07:29 and press back, B is shown (thats good) Aug 11 10:07:38 according to a brief google, this should force my app into landscape mode. It doesnt. android:screenOrientation="landscape" android:configChanges="orientation|keyboardHidden". I can do it programmatically but its something I'd prefer in the manifest. Is this deprecated or something do you know? Aug 11 10:07:38 but B seems not to be on the backstack until i press back Aug 11 10:08:28 with Assets you use an AssetManager instance. Similar. Aug 11 10:11:16 rgr: I think that settings is per activity, not per app Aug 11 10:11:36 any good resources to getting started in dev? :'()' Aug 11 10:12:02 cestdiego: do you know java? Aug 11 10:12:08 yep Aug 11 10:12:36 but I find it difficult to understand fragments and activities (never done java gui either) Aug 11 10:12:50 yeah thats hard from the beginning Aug 11 10:13:07 cestdiego, not sure this channel is exactly appropriate for "beginner" level stuff, as there are tons upon tons of resources readily available online Aug 11 10:13:09 I'd recommend to NOT use the android developer tutorials Aug 11 10:13:12 this is more of a problem solving place Aug 11 10:13:19 heinrisch: you have a site for that? The xml attribute is in the activity xml definition so it would be for this specific activity. Aug 11 10:13:34 as they are more for advanced stuff. Every other tutorial should be fine until you get the basics Aug 11 10:13:43 danijoo_: thats pretty extreme. They are very good. Aug 11 10:13:58 rgr: they are good if you know what you are doing Aug 11 10:14:18 (Im assuming you know some basic java etc of course) Aug 11 10:14:30 ravilov: oh ok. I will come when I am more into the basics. I'll hang out though, just to know if sth cool happens around here Aug 11 10:14:45 there are often stuff like unnamed variables and crosslinks to xml files that arent explained Aug 11 10:15:01 which is OK if you know whats going on. But i have seen a lot of new users struggling with that Aug 11 10:15:06 cestdiego: vogella has some good tutorials but the android dev docs are excellent for explaining fragments and lifecycle IMO. Try them and see. Aug 11 10:15:12 because its not really "from the scratch" Aug 11 10:15:38 rgr: not sure I understand you.. you asked to force an app into landscape, I don't think that is possible. android:screenOrientation works on a activity Aug 11 10:15:52 danijoo_, the code examples might not be, but there is a lot of "theory behind the scenes" explained there as well, you're not supposed to dig straight into the code anyway Aug 11 10:15:57 rgr: thx. Will check it right now Aug 11 10:16:43 the theory is important cestdiego . But type the code in and step through it and get a feel for how it hangs together. Set breakpoints in onCreate, on Start, onPause etc and get to understand teh lifecycle. Time well spent. Aug 11 10:17:01 ravilov: yes. the docs are nice as a backup if you want to look the theory up or want an explanation for something. But to actually start coding its better to use a tutorial from a blog or sth Aug 11 10:17:06 but thats my opinion ;) Aug 11 10:17:55 yes, people are always impatient and want to dig straight in, but that's not how it's intended Aug 11 10:18:06 I find most blogs to be plain wrong and out of date. Vogella is the exception. Most of the blogs I came across at beginner level just lifted the code from the Android samples (cestdiego: check out the samples in the sdk!) and changed the variable names! Aug 11 10:18:19 if you want to dig straight in then other tutorials might be better, but that's not necessarily the right way to do stuff, danijoo Aug 11 10:18:44 * rgr is amazed. He totally agrees with ravilov.. ;) Aug 11 10:18:50 ravilov: but its the way how you get people into doing stuff :) Aug 11 10:19:08 there is no correct way Aug 11 10:19:09 Playing arround etc... Aug 11 10:19:24 too many variables, socail, background, age Aug 11 10:19:25 rgr: Yeah, sometime very outdated, but that's why google search tools exit :D. But even with that I had trouble. (haven't thought about the sdk samples) Aug 11 10:19:28 by doing the tutorials from google which do it right in the main :) And you can "play around" with their sample code in the SDK - people often forget that. All ready to go with AS. Aug 11 10:19:34 Nobody wants to read 100 pages of doc before writing the first line of code Aug 11 10:19:34 social* Aug 11 10:19:49 StingRay_, correct, many ways can get you to the goal, it's just a matter of how quickly and efficiently ;) Aug 11 10:19:59 danijoo: you dont need to. Have you done the tutporials? Youre coding in an half hour. Aug 11 10:20:03 ravilov: Aug 11 10:20:05 tutorials will get you into coding sooner, but you won't necessarily actually *know* what you're doing Aug 11 10:20:28 Yeah Long ago ;) Aug 11 10:20:41 And its important with Android to understand the techniques sooner rather than later or you'll get very frustrated as we see here daily with no programmers with app gold in their eyes wondering why their code freezes..... Aug 11 10:20:46 Well I think its really a question of taste.. Aug 11 10:21:22 cestdiego: https://developer.android.com/guide/index.html see the link to building your first app, there is a section there on fragments, as well as other places Aug 11 10:21:42 everything is a matter of taste but its not up for debate that nooobs need to understand how Android works. Thats takes some spadework and reading and coding ... and the tutorials are a good upto date source for that with the benefits of introducing the programmer to the proper API docs. Aug 11 10:21:52 I can only talk for myself but back in those days I really disliked the google tutorials and went fine with some other just to come back to the dev pages when i was more eperienced and got the basic concept Aug 11 10:22:52 yes, I think we get that. But thats different frmo saying they're crap. I disagree and while they could be better, what couldnt, they are a valuable first step and constantly evolve and include things like coding to compatability layers etc. Aug 11 10:22:54 danijoo, you can always contact google and tell them you find their guides not noob-friendly enough :p Aug 11 10:23:18 Not to mention, again, the SDK samples which are ready to go. Aug 11 10:25:08 ravilov: just found http://developer.android.com/tools/projects/index.html & http://developer.android.com/reference/android/content/res/AssetManager.html - So I think I may have it sussed. Aug 11 10:25:34 * Nivag touches something made of wood (his head) for good luck... Aug 11 10:26:07 cool, good luck Aug 11 10:28:33 I think the main problem is that it is simply not possibly to learn it in a linear fashion - you have build lots of conceptual models, and at the start they are all vague & disjoint, or linking in ways that are not immediately obvious - to me at least, and I've been programming for over 40 years! Aug 11 10:29:11 * danijoo agrees Aug 11 10:32:27 and unless you need an App which exactly matches an example, you are are very much on your own, so you HAVE to learn how to work with uncertainty and feel your way through the invisible mist which inhabits the multidimensional maze you are trying to navigate. Very scary, and somewhat overwhelming at the start. Aug 11 10:33:02 Nivag: I've started with android programming just a few days ago Aug 11 10:33:26 Nivag: so far I've been able to find an exact example for each step that i want to do Aug 11 10:34:07 Nivag: and if there isn't an example, it's probably a bad idea or not possible :-) Aug 11 10:34:29 or it's a great idea Aug 11 10:34:30 johnflux: you're lucky, may the god continue to smile favourably at you! Aug 11 10:34:35 that no1 has thought of Aug 11 10:34:36 gods Aug 11 10:35:14 well look at me, I'm an artist/designer more than a programmer, and I'm getting by in android Aug 11 10:35:17 that says lots :) Aug 11 10:36:29 I get to do things people have not done before, so while I look for parts that have been done, I need to know which parts to use, and create the structure for them and write logic to cover the new bits Aug 11 10:36:55 so you're a programmer then .... Aug 11 10:37:32 when I'm not wearing my software architect hat! Aug 11 10:38:22 most programmers consider themselves to be SW architects too. not everyone codes to a strict formal spec handed down to them. Specifically in a place like this. Aug 11 10:38:40 Now. back to #ontop. setSystemUiVisibility is messing me around. I just want to hide the system bars. Aug 11 10:38:45 #ontopic Aug 11 10:39:25 there is only 1 system bar ? Aug 11 10:39:35 you mean nav bar also ? Aug 11 10:39:44 and status bar Aug 11 10:40:56 good video about it here. https://www.youtube.com/embed/cBi8fjv90E4 (devbytes) Aug 11 10:41:24 I think the key thing is to have a clear idea of the users needs and a good architectural vision. Way back when I did COBOL, I found that the more I did System Analysis, the better I was at programming. Initially I was too focused on neat logic and data structures Aug 11 10:42:05 rgr: I got a prob with IMMERSIVE_STICKY Aug 11 10:42:20 I want it to persist in dialogs and IME shows Aug 11 10:42:36 but it does not and is a little, erm, hacky I think Aug 11 10:43:21 you need to reset it in onWindowFocus in tihnk. Aug 11 10:43:29 its in the docs. Aug 11 10:43:48 ah ok yes, brilliant, now try and dismiss a dialog with outside touch set Aug 11 10:43:51 cant do it :) Aug 11 10:43:53 A lot of formally rigorous methodology gets bogged down in too much detail and is impractical for even small scale practical systems. Aug 11 10:44:19 so to me just seems, horrid atm Aug 11 10:44:25 Actually its covered with a listener at 4:15 in that video link. Aug 11 10:44:26 unless I'm missing something Aug 11 10:45:20 fragmentDialog with cancellableOutsideTouch set does not work I think Aug 11 10:45:25 well not last time I tried Aug 11 10:45:45 reguardless of listeners due to how the window manager takes over for the display mode Aug 11 10:46:34 Its covered in how to handle it at 4:30 in that vid. And you obviously need a listener because its a multitasking OS and people switch between apps and need to have system bars etc er-enabled. Your app needs to know about that. Aug 11 10:46:52 no your not getting what I'm saying Aug 11 10:46:56 dont matter :) Aug 11 10:47:07 4:07 Aug 11 10:47:14 yes that a listener Aug 11 10:47:22 ok Aug 11 10:47:33 tell me where is says cancellableOutsideTouch works this way now Aug 11 10:47:59 cause it does not, and the way it works is bugged in IMMERSIVE_STICKY with hacks Aug 11 10:48:37 fair enough.... Aug 11 10:48:46 the options I'm left with are maintain immersive with fragmentDialogs, or have them work with outside touch cancel Aug 11 10:49:54 Is it only the first time that the emulator is launched that takes ages? Aug 11 10:50:30 For some reason, I cannot install HAXM, either. Sucks. Aug 11 10:50:31 hopefully Aug 11 10:51:26 winsoff: buy intel processor Aug 11 10:51:34 Got an I3 Aug 11 10:51:41 wonder if I accidentally disabled it Aug 11 10:53:27 Nevermind, found it. Aug 11 10:53:31 Hyper-v was allowed. Aug 11 10:54:48 uninstall that shit Aug 11 10:54:59 lol Aug 11 10:56:17 GooglePlayServicesUtil.isGooglePlayServicesAvailable(this) returns SERVICE_VERSION_UPDATE_REQUIRED but play service on play store doesnt have Update button. Just uninstall and open. What the hell? Aug 11 10:58:45 StingRay_: Did you code GBA? Aug 11 10:58:58 GBA ? Aug 11 10:59:06 Nevermind. Gameboy Advance Aug 11 10:59:28 no I was an artist/td and only in consoles, not hand helds Aug 11 10:59:41 so ps,ps2,ps3 etc Aug 11 11:00:04 ok, there was a StingRay in an old GBA development channel like 10 years ago, that's why I'm asking. Aug 11 11:00:09 Is using GCM (on xmpp) is fine for implementing real-time communication in application? Aug 11 11:01:10 swistak35: heavy communication ? Aug 11 11:01:22 cause will that not start to cost you if going beyond quota ? Aug 11 11:02:34 StingRay_: but GCM is free, as far as I know Aug 11 11:02:51 Well, we can simplify it, that it's chat application Aug 11 11:03:59 oh yeah Aug 11 11:04:09 why did I get the impression it was quota'd Aug 11 11:04:20 odd, maybe it was a long time ago Aug 11 11:04:41 dam I may include RT chat in my app now :) Aug 11 11:04:48 I was interested mostly about what is ping between this kind of messaging, is it significantly larger than some HTTP requests Aug 11 11:05:25 swistak35: very variable, but my app is sms/mms so adding a gcm type it's not all that bad due to others being slow slow Aug 11 11:05:45 because most usages of GCM I see are kind of "send notification", and it's not important if delivery will took 0.5 second or 10 seconds Aug 11 11:05:52 gcm can be like 10ms to quite a significant time I think Aug 11 11:07:00 StingRay_: whatsapp is using gcm, too Aug 11 11:07:14 huh ? Aug 11 11:07:19 I really doubt that Aug 11 11:07:26 they have their own servers no ? Aug 11 11:07:39 yeah, nothing to do with GCM Aug 11 11:07:52 iirc, unless they changed it, but that would be silly Aug 11 11:08:10 app sends to server -> server notifies user b over gcm -> user b takes data from server Aug 11 11:08:23 they cant use gcm Aug 11 11:08:37 they user their own servers and structure Aug 11 11:08:59 yes. but their servers use gcm to notify the messages receiver that there is a new message Aug 11 11:09:11 prove it Aug 11 11:09:22 cause that would be silly to use google when they have their own system Aug 11 11:09:45 their own system that is more battle tested for the type of use too Aug 11 11:09:46 :) Aug 11 11:09:59 give me a second. it was in their faq.. somewhere.. Aug 11 11:10:32 here you go: http://www.whatsapp.com/faq/en/android/20887936 Aug 11 11:10:42 under "If messages are still taking too long to reach your phone" Aug 11 11:10:53 „It may be that you are not receiving your message pushes from Google's push notification service.“ Aug 11 11:11:17 wtf!! Aug 11 11:11:38 also, how can google allow that crap Aug 11 11:11:53 because thats what gcm is built for.. Aug 11 11:12:25 I know why it's there Aug 11 11:12:42 I just dont know why a moster like whatsapp would use something external like that Aug 11 11:12:56 because its a pain to develop such a service on your own Aug 11 11:12:57 when they have 20+ services running on your phone anyways Aug 11 11:13:16 push requires a (more or less) constant connection from the phone to the server Aug 11 11:13:21 so why reinvent the wheel.. Aug 11 11:14:16 there are many more push services than googles Aug 11 11:14:22 They are only using it for a "ping" though Aug 11 11:14:24 and many have bigger applications too Aug 11 11:14:38 its just "hey, new messaged to get from our whatsapp servers" Aug 11 11:14:55 I know what it does Aug 11 11:14:57 and is Aug 11 11:15:04 just shocked me there Aug 11 11:15:06 StingRay_: I dont know why they decided to use goodle. maybe its the most accurate or sth. Aug 11 11:15:25 StingRay_: felt the same when I found out :) Aug 11 11:15:56 or the most native one. dunno.. Aug 11 11:16:04 to me, I would think having such a core element bound to a 3rd party… makes me …well…. just shocked :) Aug 11 11:16:07 but I I had too, I would use this one, too.. Aug 11 11:16:36 yeah but when I have 20 million users and 100+ dev staff I wouldn't Aug 11 11:16:42 StingRay_: Its not really third party if you use a google feature thats designed for android when coding for android.. Aug 11 11:16:50 * ravilov believes the combo just happens to work best, both android and gcm being from the same vendor Aug 11 11:17:16 obviously they only use gcm on android, on other platforms they use whatever Aug 11 11:17:22 yeah Aug 11 11:17:33 for iOS they use iOS's native one Aug 11 11:17:45 and for android.. I'd call gcm the native one too Aug 11 11:18:20 can anyone remember if GCM had a quota when they released the api access ? Aug 11 11:19:02 June 27, 2012 Aug 11 11:19:39 the middle part of my question was the question bit :) Aug 11 11:20:10 "had a quota" at release ?? Aug 11 11:21:17 * ravilov remembers not Aug 11 11:21:19 sorry. not native english. I expected quota to mean something different :D Aug 11 11:21:29 lol Aug 11 11:21:30 me neither :/ Aug 11 11:21:36 quota is latin and pretty universal :p Aug 11 11:22:08 not in silly german :) Aug 11 11:22:26 here its "Kontingent" Aug 11 11:23:27 right... german... http://i.imgur.com/a1aIsFc.jpg Aug 11 11:23:38 : D Aug 11 11:24:06 from googleling, GCM never had any quotas Aug 11 11:24:25 it was the replacement for C2DM, which had quotas, though Aug 11 11:26:08 ahaaa, yeah that was it Aug 11 11:26:23 thanks, could not remember why I never thought of using it for my app Aug 11 11:26:33 and was pretty sure cause of the quota Aug 11 11:26:36 yw Aug 11 11:28:51 I am issuing to show a progress dialog in the onPreExecute() method of AsyncTask, but sometimes it does not show up Aug 11 11:29:27 platzhirsch: code? Aug 11 11:30:19 danijoo: sure, just the two overriden methods though http://pastebin.com/fB5AE1Um Aug 11 11:30:40 mContext comes through the constructor and is the SettingsActivity Aug 11 11:31:15 maybe it's because I want to show it after the user selected an image from camera/gallery and it's still on a different activity while already trying to display the progress dialog Aug 11 11:31:32 is it reproduceable or just random? Aug 11 11:31:36 random Aug 11 11:31:43 seems like a race condition in the UI thread to me Aug 11 11:32:30 code looks ok to me Aug 11 11:32:47 oh I got a nice error now from the WindowManager Aug 11 11:32:49 you can always use runInUiThread() if you're running inside an activity, that way you'll push it into a queue and thus avoid any race conditions Aug 11 11:33:18 SettingsActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@4247d788 that was originally added here Aug 11 11:34:22 I assume it's just that, displaying the progress dialog while there is still another activity on top Aug 11 11:35:10 isnt that usually thrown if you try to use the context of a closed activity to show a dialog? Aug 11 11:35:24 platzhirsch: a common issue. http://stackoverflow.com/questions/5832699/asynctask-onpreexecute-progressdialog Aug 11 11:35:47 it says its something, like you guessed, with the context. Aug 11 11:35:52 hopefully relevant. Aug 11 11:36:21 from here: http://stackoverflow.com/questions/2850573/activity-has-leaked-window-that-was-originally-added this usually occures when your async task results in an exception causing the activity to shut down Aug 11 11:36:22 rgr: yeah seems so, thanks for digging that out Aug 11 11:36:40 (first comment under approved answer) Aug 11 11:38:03 maybe I should handle the progress bar in onResume Aug 11 11:38:09 A great way to learn here I find is to google things I dont know : cant think of any problem ever asked that didnt already have someone posting it in StackOverflow! :))) All down to google-foo! Aug 11 11:38:46 yes, also ran into some of the questions Aug 11 11:39:06 platzhirsch, why not show the dialog and THEN launch your asynctask? Aug 11 11:39:42 ravilov: yes, I think that will be it, although I thought I already try this :) I'll give it another go Aug 11 11:40:10 there should be no issues with an onTouch on a SurfaceView? It's not responding for some reason. Gah. Aug 11 11:40:35 surfaceview is... special Aug 11 11:40:43 platzhirsch: as an aside I know I need to clear in my head when a context is an activity equivalent and not... Aug 11 11:40:56 (ie you can cast it to MyActivity) Aug 11 11:41:45 rgr: i consider casting a context to an activity is a bad designchoice most of the time. Aug 11 11:41:58 hahaha. Took ages. My SurfaceView was implementing View.onTouchListener and NOT SurfaceView.onTouchListener. DOh! Aug 11 11:42:05 I usually don't when I am thinking of AsyncTask as context independent Aug 11 11:43:36 what would be the best way to implement a long formatted text in an android application? Aug 11 11:43:53 storing it in HTML would be a pro, maybe an offline webview? Aug 11 11:44:10 it has images and some text formatting Aug 11 11:44:13 Jaycob: you can use html in textviews, too Aug 11 11:44:21 oh nvm.. not if it has images.. Aug 11 11:44:23 how limited is that though? Aug 11 11:44:26 yeah thought so.. Aug 11 11:44:30 limited to text formatting :/ Aug 11 11:44:31 humph. or maybe not. still no motion event. I bet this is something to do with immersive settings. Aug 11 11:44:43 in this case a webview might be the way to go Aug 11 11:44:50 but where to store the HTML? Aug 11 11:45:13 you mean where to store the images? Aug 11 11:45:16 that too Aug 11 11:45:20 assets Aug 11 11:45:24 and how to link to the images in the HTML Aug 11 11:45:24 html you can store anywhere as strings or assets. Aug 11 11:45:38 and then you need to rebuild it. YOu need to think it out if you really want to do this. Aug 11 11:46:02 yeah currently I have the html in the assets folder and I'm reading it as a string into the webview via loadData Aug 11 11:46:07 Jaycob: You can define the image sources in your html code from assets. Aug 11 11:46:09 but I'm clueless about how to get the images working Aug 11 11:46:18 see http://stackoverflow.com/questions/3152422/webview-load-html-from-assets-directory Aug 11 11:46:41 that doesnt address his real issue. Aug 11 11:47:12 that's also what confused me, some say that the assets doesn't have a file path and somewhere file://android_assets is referred to Aug 11 11:47:26 sure. from my understanding you just put the images in your assets and assume it to be the root path from html Aug 11 11:48:10 Jaycob: Aug 11 11:48:17 how complex are these pages ? Aug 11 11:48:20 ah ok. I see. I was thinking more of him using something like a rewrite rule. Aug 11 11:48:22 and why have them in the app ? Aug 11 11:48:37 so they can be viewed offline Aug 11 11:48:37 StingRay_: where else would he haven them? Aug 11 11:48:41 online Aug 11 11:48:46 depends what it is Aug 11 11:48:51 is it some site ? Aug 11 11:49:03 no, it is a text guide Aug 11 11:49:06 obviously it depend but that fact he wants it in the app kind of suggests that its wanted offline or "packaged". Aug 11 11:49:20 like a PDF Aug 11 11:49:35 Jaycob: ah ok, and the formatting/css how complex is it ? Aug 11 11:49:57 so if I do Aug 11 11:51:13 Jaycob: yeah should. Aug 11 11:51:24 cool, will try that! thanks! :) Aug 11 11:51:53 and I assume if your hml is stored in file///android_asset/html/ you can even left the rest out and do Aug 11 11:52:18 yeah, ok Aug 11 11:52:20 my html knowledge is a bit rusty though, so that might be wrong Aug 11 11:53:11 well if it's treated as a directory even in the apk then it should work Aug 11 11:53:40 assets keep their directory structure, yeah Aug 11 11:54:53 but they are compressed so you may need that file///android_asset/ stuff to tell android to decompress them. Im not much into that Aug 11 11:55:10 try it out :) Aug 11 11:55:50 worked with just the relative path (image file name)! Aug 11 11:55:55 awesome, thanks a lot! Aug 11 11:56:01 yw Aug 11 12:00:11 If I have a custom view, its legal to set an onTouchListener in its constructor or not? Or should I do this in a call back of some sort? Aug 11 12:01:01 should be fine if it's just a view Aug 11 12:01:29 yeah. I thought so. must be something else foobarring it then. Aug 11 12:01:30 saves you a line of code I guess :) Aug 11 12:04:45 btw, is this really the right way to handle the wake-lock underlocked exception: http://stackoverflow.com/questions/12140844/java-lang-runtimeexception-wakelock-under-locked-c2dm-lib ? Aug 11 12:08:07 Jaycob: sounds like this is a bug in googles code and theres not much else you can do about it Aug 11 12:08:49 My app need to play a large number of sounds at the same time. The theoretical worst-case scenario is 20 sounds simultaneously. Practical max number is around 15, typical number is around 5 or 6. What's the most performant way to do this? At the moment I'm just using one mediaPlayer object per sound Aug 11 12:09:24 hi all Aug 11 12:09:39 can i take the ripple effect from Android L and use it in my app for kitkat? Aug 11 12:10:00 performance seems to be just fine on modern devices, but older devices and some gingerbread devices refuse to start some mediaplayers when X are already active. The limit doesn't seem to be predictable Aug 11 12:10:43 I guess you might want to look into mixing them manually Aug 11 12:12:09 pellis: why not ? it's jsut a view … onDraw and a circle that scales :) Aug 11 12:12:18 ravilov, how would I do that? I just have no idea... Aug 11 12:12:39 StingRay_: is there any library that brings some of material design backported to Kitkat? Aug 11 12:13:07 well no, but it's all just pastel colors and dropshadows Aug 11 12:13:21 not really a thing…more just… there already ? Aug 11 12:13:32 d0de, I guess that would be pure math, not really android-specific Aug 11 12:13:34 unless you mean the z stuff that you may want to animate Aug 11 12:13:36 it's just an idea Aug 11 12:14:28 ravilov, sure. I think it's out of my league to be honest. Would using soundpool be any more performant than using a mediaplayer for each sound? Aug 11 12:14:37 mmm I don't know if that would be efficient enough though Aug 11 12:14:50 d0de, no idea, I've never actually used sound on android Aug 11 12:16:11 nevermind, looks like the memory limits / requirements of soundpool make it unsuitable for my needs Aug 11 12:20:28 d0de: just out of curiosity, why do you need to play so many sounds? does it add anything to user experience? Aug 11 12:20:48 in a mixing app yeah :) Aug 11 12:21:56 java.lang.Object[] cannot be cast to java.lang.String[] in asynctask. error is thrown regarding the params portion of the task lolwut Aug 11 12:21:58 why don't you actually mix the sounds? Aug 11 12:22:26 I dont like to complain about the great dev tools available for free. But ddms on linux really needs to work better. It is very very finnicky about when I can Retrieve allocation history. More often than not it simply doesnt work. Aug 11 12:22:50 heinrisch, it's basically an audio mixing app Aug 11 12:23:09 it allows people to mix together different types of sound to create background noise Aug 11 12:23:23 d0de: would it be feasible to stream the sounds as data, and produce a combined stream,. and just play that as one sound? Aug 11 12:24:04 Nivag, I don't see why not. It's all local. But I wouldn't know where to start implementing such a system Aug 11 12:24:10 I'm a very inexperienced programmer Aug 11 12:24:14 ah ok, then you should probably mix the sounds, not just play them simultaneously Aug 11 12:24:36 there should be libraries to help you Aug 11 12:25:04 GooglePlayServicesUtil.isGooglePlayServicesAvailable(this) returns SERVICE_VERSION_UPDATE_REQUIRED but play service on play store doesnt have Update button. Just uninstall and open. Can you please tell me what version do you have? Aug 11 12:25:23 I haven't found anything. Most people seem to suggest using the low-level AudioTrack and just building the system yourself Aug 11 12:25:42 have you checked this?: http://stackoverflow.com/questions/13228196/audio-song-mixer-in-android-programatically Aug 11 12:25:52 which I'm pretty sure is beyond my abilities at this point. And using MediaPlayer actually works pretty well, it's just a bit inefficient Aug 11 12:25:56 d0de: what is the file format of the sounds & the algorithm used? There is probably existing code to existing code to convert the file format to a more tractable set of values Aug 11 12:25:57 gdrc: maybe the version your app needs isnt available for that particular device? Aug 11 12:26:10 mixing the sounds manually would be quite a task since he has to scale etc I would think. And are there such libraries. I doubt it. Aug 11 12:26:47 (not to mention taking into account the codecs uses etc) Aug 11 12:27:15 Nivag, I'm using mp4 / AAC but could trivially switch to something else. Aug 11 12:27:39 but the samples themselves are pretty long, so I'm confident I can't use soundpool Aug 11 12:27:47 danijoo: I tried with a moto g and samsung note 10.1 2014. same error. Aug 11 12:28:02 ffmpeg can mix audio streams Aug 11 12:28:13 basically unlimited codec support Aug 11 12:28:30 problem for u will be getting it to work on Android (requires native code / NDK) Aug 11 12:28:57 sounds are wave forms, and wave forms can be added. So if you can convert the files to a suitable digital representations, you could add them, then convert to something else? Aug 11 12:29:07 danijoo: here's the erro: Google Play services out of date. Requires 5208000 but found 5089036 Aug 11 12:29:22 gdrc: did you define google play vservices version in your manifest? Aug 11 12:29:29 android:name="com.google.android.gms.version" Aug 11 12:29:30 android:value="@integer/google_play_services_version"/> Aug 11 12:29:37 https://gist.github.com/anonymous/b9ea4fa4ce301357ae74 Aug 11 12:29:48 ok.. uhmm. Aug 11 12:29:53 Nivag, but it would have to be done on-the-fly every time the volume of any individual sound was changed by the user. I think it would be complex to implement Aug 11 12:30:08 what version of gcm are you using? the newest? Aug 11 12:30:21 im on 4.4+ and it works fine. Aug 11 12:30:21 compile 'com.google.android.gms:play-services:+' Aug 11 12:30:35 is this correct? Aug 11 12:30:50 that always give you the newest, yeah Aug 11 12:31:05 lets try an older version Aug 11 12:31:09 put this in compile 'com.google.android.gms:play-services:4.4.+' Aug 11 12:31:14 and check if it fixes your problem Aug 11 12:31:28 d0de: pity I'm fully committed, or I be intreseted inn taking it on (sound is not my field) but the coding challenge seems doable Aug 11 12:32:30 incidentally, I've been using the Eclipse ADT bundle. It got borked when I was trying to update ADT to use the android billing library. I'm going to uninstall everything, then install Ecilpse and then ADT again not using the bundle. Is there any guide for doing this on windows? It was a real PITA last time... Aug 11 12:33:44 d0de: when yo cremated a combined sound sample for an interval of time, you would be multiplying the individual sound samples by a weighting - the user altering the volume 'simply' translates into changing the weighting. Aug 11 12:34:20 gdrc: I think if you just put a + instead of a subversion (like 4.4+), it automatically requests wants the newest possible version which might not be available for all devices Aug 11 12:34:28 Nivag, wouldn't you have to recreate the sample each time through? Aug 11 12:34:56 it's typical for the volume of a sample to change multiple times a second Aug 11 12:34:59 d0de: it might help to upgrade to Linux, I hated using Microsoft for development! Aug 11 12:35:08 danijoo: I'm waiting for gradle.. Aug 11 12:35:32 d0de: you might be able to do some sort of caching Aug 11 12:35:42 I thought that might be the answer :P Aug 11 12:36:13 i want to create an alertdialog with a list, but i want the adapter to be able to set the title of the dialog dynamically. but i can only set the adapter /before/ the dialog is created. what should i do?.. Aug 11 12:36:21 if that IS actually an optimisation worth doing! Aug 11 12:37:43 danijoo: you saved me. Aug 11 12:38:33 you are welcome. I recommend to not use google play services 5.x until we have a bigger userbase with this Aug 11 12:40:11 ok thanks, till yesterday worked like a charm Aug 11 12:40:54 maybe at this point gradle/google decided that its time to push out a new version thats not yet supported by your devices Aug 11 12:42:00 You guys know how I can install python on my android so I can do 'adb shell' and then 'python file.py'? Aug 11 12:42:04 I just want some way to run python scripts in the shell Aug 11 12:42:39 ok.. spend the day googling and following tutorials without much luck here. i have a mysql database that holds a lot of items consisting of a quote, and an ID number assigend to that quote. from my android app i simply want to connect to my database using a query for a number that equals an ID for a quote, and then display that quote in my app. Aug 11 12:43:19 in java i used the JDBC driver and it was really easy. i am told now that direct connection like using JDBC is not safe and should be avoided Aug 11 12:43:57 uhlm: Yea, you don't want to essentially give your client full access to your database Aug 11 12:44:13 might be a good idea Aug 11 12:44:14 uhlm: were you connecting over unsecure network to an unsecure database from unsecure device you did not control? Aug 11 12:44:29 :nope Aug 11 12:44:34 because that's the situation you're in with mobile Aug 11 12:44:39 ahaa Aug 11 12:45:30 uhlm: you should put some kind of backend in front of your database and do it over Http(s) Aug 11 12:45:50 but connecting to a db in your client then you might as well give the hacker your database Aug 11 12:45:58 something like https://yourserver.com/quotes/id Aug 11 12:45:59 not necessarily HTTP(S) - just an extra layer that insulates your server and prevents straight db access etc. Aug 11 12:46:25 and let your server do the database querieing and responding depending on the id Aug 11 12:46:28 access != ability to write dont forget. Aug 11 12:46:36 p_l: thats why i put the s in ( ) Aug 11 12:46:38 * p_l bets any app that uses JDBC directly to server is going to a) suck for UX due to connection issues b) probably give the whole machine the server is on to any script kiddie with sqlmap ;) Aug 11 12:46:48 well. i have been looking at guides to help implement a php layer between my app and the mysql database. but they all seems so "advanced" for mt simple needs. includes logins and using arraylists to query for data. i am at a really simple point where i have a single number. query the database , receives string of the quote, displays it. then another number, query db, recevice string display it. Aug 11 12:46:51 danijoo: I meant that it doesn't have to be HTTP-related at all Aug 11 12:46:58 Hi, I've implemented google play services in my game (leaderboards), I did all the steps required for testing and I get a crash after I uploaded it to an emulator and I try to authenticate the user... should I upload the most recent apk to the dev console and access get the apk from there? Aug 11 12:47:10 p_l: its the easiest to implement though Aug 11 12:47:13 but what to do is create a web app which can return the data in json or something. really easy and encapsulates the db. Aug 11 12:47:15 rgr: yes. But tell me, how many people use multiple accounts with fine-grained security? :) Aug 11 12:47:36 sure :) Aug 11 12:48:01 gah. This immersive mode stuff really is glitchy. Aug 11 12:48:05 uhlm: that wouldnt require more than one php script Aug 11 12:48:15 if its only id->quote Aug 11 12:48:54 danijoo: i already have that i think. but it is the part of connecting my android app to the php script i seem to be confused about Aug 11 12:49:14 Glitches: android devices wont have python installed, so you cant simply say 'python file.py', guess this might help https://code.google.com/p/python-for-android/wiki/RunPythonFromShell Aug 11 12:49:21 ok general question, after uploading apk to the dev console how do I download it to test? Aug 11 12:49:37 http://stackoverflow.com/questions/2607371/making-a-web-request-and-getting-request-in-json-format-in-android Aug 11 12:49:45 uhlm: all your app needs to do is going to the correct URL for your script and get the site content. Its a simple http-get Aug 11 12:49:49 uhlm: ^^ Aug 11 12:50:12 mountSin: From play store like an ordinary user Aug 11 12:50:20 there is no special download page for the hoster Aug 11 12:50:30 clearly you need to create the server side. A simple piece of PHP after the usual spadework. Aug 11 12:51:06 bhargavg: Thanks Aug 11 12:51:06 danijoo: so messing around with a Java class like this here is overkill? http://bpaste.net/show/vnEbDyLcYOSVXjIngS4M/ Aug 11 12:51:32 uhlm: the link I gave shows you. Aug 11 12:51:58 yeah. see the link :) Aug 11 12:52:22 so whats the flags to setSystemUIVisibility to hide nav, system bar but leave my damn activity toolbar? Aug 11 12:54:35 i will check out the link. however at first glance i did not see where a custom component like a integer representing the ID of a quote is passed from the app Aug 11 12:55:08 thats trivial and passed as part of the url Aug 11 12:55:25 eg http://myurl?ID=xxx Aug 11 13:02:11 I want to release as much resources as possible in the onPuase() method of an activity containing a listview with a large adapter. Aug 11 13:02:26 Is listView.setAdapter(null) the way to go here? Aug 11 13:04:31 having trouble with getting my app versioncode through packageinfo lib. When I try to instantiate the object, I received NPE (I assume) on the context being passed to the method. Aug 11 13:06:25 its a static method Aug 11 13:06:44 same method found here https://developer.android.com/google/gcm/client.html under "getAppVersion" Aug 11 13:12:27 say i want to use simple_list_item_1, but i want to change the font, and only the font Aug 11 13:12:36 can i 'subclass' it somehow? Aug 11 13:13:47 Is there a built-in way to hide/obscure the activities' content when using the action bar's SearchView or am I best off to just wrap everything in a RelativeLayout and add a view with background on everthing? Aug 11 13:14:01 sqrrl: simple_list_item_1.xml only contains a textview Aug 11 13:14:22 after inflating it, you can cast it to TextView and set the fonr promatically Aug 11 13:14:29 font* Aug 11 13:15:57 danijoo: i know Aug 11 13:16:58 not sure what you are asking then.. You cant create an inherited xml if thats your question.. Aug 11 13:18:07 how?.. Aug 11 13:18:23 > can't < Aug 11 13:18:36 ah Aug 11 13:18:42 damn :< Aug 11 13:18:53 you cna create a view though Aug 11 13:18:56 and change the font by code Aug 11 13:19:12 yeah Aug 11 13:19:23 but that's a bit of a roundabout way Aug 11 13:19:23 you can copy-paste the code of simple_list_item_1.xml and change the font in the xml though Aug 11 13:19:31 depends how you work Aug 11 13:19:41 i create almost all ui compositions by code instead of xml Aug 11 13:19:43 copy/pasting would break compability Aug 11 13:19:44 because such limitations Aug 11 13:19:51 save it as your own simple_list_item_1 and there you go Aug 11 13:20:04 so i create a view base view in xml then reuse that by making ofr example a list by code Aug 11 13:20:09 compability for what? its a textview.xml Aug 11 13:20:22 it's a 12 line textview xml Aug 11 13:20:31 if he changes background color in the orignal xml Aug 11 13:20:34 with stuff like "?android:attr/listPreferredItemHeightSmall" Aug 11 13:20:42 or stuff like that Aug 11 13:21:15 then you should override it promatically. its the most straight forwareded way Aug 11 13:21:36 yeah, i guess i'll do just that Aug 11 13:25:45 anyone know how a url is interpreted in the default message app ? does it have a dictionary of valid gtlds or does it perform a lookup through google to ensure the domain is valid ? Aug 11 13:27:06 Roswell_r: doesnt it just look if its a valid url pattern? Aug 11 13:27:25 im pretty sure it doesnt do any domain lookups using a network connection.. Aug 11 13:27:52 you wouldn't expect so, but i tried using one of the new gtlds and it didn't interpret it as a link Aug 11 13:29:02 how should it be a dns lookup through google then. Aug 11 13:29:52 i don't know, perhaps it has a list of valid gtlds Aug 11 13:32:05 for example 'http://your.photos/ffej1' yet a normal dot com or even 'http://goo.gl/ffej1' is interpretted correctly. Aug 11 13:32:56 well at least the last one is a valid address! Aug 11 13:41:20 asfdd, cept doing it by code sucks Aug 11 13:41:49 why? Aug 11 13:42:14 because its far nore work and far less to adapt. Aug 11 13:42:25 less easy Aug 11 13:42:45 and you cant swap different layouts in and out so easily. Aug 11 13:42:55 its the only way if he dont want to write its own xml though Aug 11 13:43:25 obviously if he doesnt want to "write xml". Thats why people do write xml which is a piece of cake with eclipse or AS/Ij Aug 11 13:43:37 writing 10 lines of ui construction to get inhertiance doesn't really bother me Aug 11 13:43:56 dont even try to suggest writing it all in java is easier that some ready mad xml components :) Aug 11 13:43:58 its much more frequent i want to extend a view with a single feature than i want to replace an entire layout Aug 11 13:44:09 i said him he should just copy/paste the xml and make the changes but he didnt want. Aug 11 13:44:17 Hi! How can i browse /storage/emulated/0/*? Aug 11 13:44:28 ...with eclipse file explorer? Aug 11 13:44:30 sure, you wont be convinced. But I agree with pfn : unless you have very specialised reasons writing in code is dumb. Aug 11 13:44:38 rgr its not about not writing any xml, its about declearing the base views as xml then the extensions to them in code Aug 11 13:45:01 rgr, in java Aug 11 13:45:18 asfdd: sure. Aug 11 13:45:25 I've found macroid to be generally quite good Aug 11 13:45:48 (that said the buggy layout designer could be better in AS) Aug 11 13:46:17 the amount of xml in android is just silly Aug 11 13:46:22 slowly switching my non java apps to macroid Aug 11 13:46:47 heh. an extra 6-10fps by moving to immersive mode. Thats a surprise actually. Aug 11 13:47:01 I guess less clipping. Aug 11 13:47:58 Can someone tell me what emulator is this? http://oi61.tinypic.com/2dhh9ns.jpg Aug 11 13:57:18 can apps access the same files on /storage/emulated/0/...? Aug 11 13:57:28 i mean two different apps Aug 11 13:57:43 one is creating the file, the other one is reading? Aug 11 14:00:29 http://stackoverflow.com/questions/10946231/how-to-read-data-written-to-a-file-from-one-android-application-using-another-an Aug 11 14:00:35 2s Aug 11 14:01:46 or did you mean at the same *time*? In which case all the usual caveats about doing such things apply. Aug 11 14:03:40 rgr: no, not at the same time. The fist app records a video to /storage/emulated/0/video.mpg, the second app reads the video from there. Currently the second app says: Failed to open file '/storage/...' (no such file or directory) Aug 11 14:07:33 ah, missed the android.permission.READ_EXTERNAL_STORAGE permission on the second app ;-) Aug 11 14:13:46 see link then Aug 11 14:14:55 In a linear layout set to fill_parent width, It is possible to left align some child views and right align others right? I thought setting gravity="right" to an Image view which is the last child in my LinearLayout would cause it to align right? Aug 11 14:16:54 ah use relativelayout. hm. Aug 11 14:17:01 no. Aug 11 14:17:10 LinearLayout has no alignment parameters. Aug 11 14:17:17 It always stacks views it contains Aug 11 14:17:20 mountSin: I don't think that's an emulator. That's just for viewing android device's screen on PC. http://droid-at-screen.ribomation.com/ Aug 11 14:17:27 you can fake it with an empty view that has weight set. Aug 11 14:18:01 yeash I saw that but thought "yuck" :) The as/ij editor could sort of disable alignment options I think. cheers. Aug 11 14:18:29 Well if you're using the GUI editor... stop :P Aug 11 14:20:18 The gui editor is very useful at time to learn abuot xml namepaces. But no Im not. I just use th preview at times. Aug 11 14:22:14 the gui editor is about altogether useless Aug 11 14:22:44 Mavrik, there is layout gravitu Aug 11 14:22:47 gravity Aug 11 14:22:58 which is valid for linear layout Aug 11 14:23:05 iirc Aug 11 14:23:46 Hmm, I've only seen valid gravity in FrameLayout and Relativelayout - Linear doesn't really let margins / empty areas Aug 11 14:26:13 it has gravity in the perpendicular axis Aug 11 14:26:35 eg a horizontal linear layout may specify vertical gravity and vice versa Aug 11 14:27:26 if you want gravity in the layout axis then you must resort to weights Aug 11 14:27:52 or stub views for struts and springs Aug 11 14:29:45 you guys keep disparaging the gui editor but it really does have its uses not least to immediately see changes when you mess with the xml attributes. Very useful indeed. When it works that is ;) Aug 11 14:30:16 exactly. when it works.. :D Aug 11 14:30:42 hey guys Aug 11 14:31:06 wondering if you can set a custom typeface on a letter only, not the whole textview Aug 11 14:31:10 maybe with SpannableString? Aug 11 14:35:14 Sicp: I had the same problem never found a solution, Ended up using multiple TextViews Aug 11 14:36:19 nah there's definitely a solution Aug 11 14:36:20 Sicp: should work with SpannableString and TypefaceSpan Aug 11 14:37:16 * MadMan2021 is booting up AS to try this :O. Aug 11 14:39:24 If I have a listview hooked up to the database with a cursoradapter, and then a progressbar in one of the list items that I'm updating manually (not through the database), is there a way to update it without updating the whole listview? Or should I just update the whole listview? Aug 11 14:42:53 vozz, if you call getCHild on listview, it'll redraw the view Aug 11 14:43:01 note that getChild uses displayed view number, not listview position Aug 11 14:43:37 Is there any documentation on the FlavorConstants.java file? Aug 11 14:45:28 jk Aug 11 14:46:57 Mavrik: I guess I would need to maintain some info on what is actually being displayed in the listview? Aug 11 14:47:15 How would I do that? Aug 11 15:05:58 Hi Aug 11 15:06:07 I am new customer ;) Aug 11 15:06:45 I have got a *strange* stacktrace: http://ow.ly/3oa5fJ Aug 11 15:08:41 strange? Aug 11 15:09:30 The core of error isn't clear Aug 11 15:09:48 your webview is the reason Aug 11 15:09:49 you can't know anything about the error by this stacktrace Aug 11 15:10:04 I don't have any webview Aug 11 15:10:17 but maybe it is the ad network Aug 11 15:11:24 you can't know anything about the error by this stacktrace Aug 11 15:11:32 then provide more useful information Aug 11 15:11:38 at least without giving us a context for it.. Aug 11 15:11:56 I don't have anything to provide Aug 11 15:11:58 xD Aug 11 15:12:22 then I can't know anything about the error Aug 11 15:12:26 good luch then Aug 11 15:15:42 hello, how can i pull up google maps on android and find the quickest route to multiple address's? Aug 11 15:16:12 or at the very least have it create a route based off the order in which i feed it address's Aug 11 15:20:07 I have a problem with a listview and animateLayoutChanges = true. My layout consists of the root element with animateLayoutChanges = true, a listview and below that a horizontalscrollview. When I scroll the listview down, the horizontalscrollviews visibility is set to gone, but when I stop scrolling before the animation finishes a white area remains. Aug 11 15:20:12 any idea how i can fix that? Aug 11 15:24:03 How do I set this listener on my MenuItems? http://developer.android.com/reference/android/support/v4/view/MenuItemCompat.OnActionExpandListener.html Aug 11 15:24:12 I get a type mischeck of course Aug 11 15:25:44 platzhirsch: https://developer.android.com/reference/android/support/v4/view/MenuItemCompat.html#setOnActionExpandListener(android.view.MenuItem,%20android.support.v4.view.MenuItemCompat.OnActionExpandListener) Aug 11 15:25:47 MenuItemCompat.setOnActionExpandListener(menuItem, listener); Aug 11 15:25:56 (its in the docs...) Aug 11 15:25:59 ah gottcha Aug 11 15:26:08 danijoo SimonVT: thanks for pointing out Aug 11 15:30:44 is there a way I can force my listview to redraw once the animation has finished? Aug 11 15:35:32 @Syzygy_ have you checked what hierarchy view says? though my initial thought is you may be doing something unsafe which is breaking it Aug 11 15:36:32 I have not yet done so, but both layouts should be hierarchical brothers. Aug 11 15:37:46 I assume when the listview has more space available because the other view is gone, it doesn't automaticaly redraw. Aug 11 15:38:29 leaving the white area. as soon as I move it, the area is filled. Aug 11 15:38:33 hey guys, i was just wondering, if i could use intents to communicate between services that i author Aug 11 15:39:01 and i was also wondering, if i could check if i could know if a service is up and running by bindService ‘ing it and getting the result Aug 11 15:39:25 i'd probably debug it and try and figure out what exactly the source of the white area is, i'm afraid i can't be of much more help Aug 11 15:41:59 mgreg, according to hierarchy view, the white area is part of the listview Aug 11 15:46:01 mgreg, maybe you can tell more from that than me. https://www.dropbox.com/s/0l7hvsejko41azi/Screenshot%202014-08-11%2017.43.12.png Aug 11 15:51:41 @Syzygy_ for the white bit do you mean the lower half of the screen? Aug 11 15:52:00 yes Aug 11 15:52:25 (that list view has more than 16 entries, 500 in fact. Aug 11 15:55:11 it sounds somewhat familiar, but i'm a bit rusty with android Aug 11 15:55:32 anyone else have issues with ddms under linux? it's becoming a real bottleneck to hunting down gc issues now. Aug 11 15:55:58 are you making a super call to the other draw methods? (if appropriate) Aug 11 15:56:07 its running fine under osx (which I assume uses the same binaries) Aug 11 15:57:20 the issue is connectivity it seems. plus oodles of GLib-GObject-CRITICAL type errors on the console when running from terminal. Aug 11 15:57:55 have a look at android:cacheColorHint and android:scrollingCache too, other than that, pass Aug 11 16:05:32 mgreg, I doubt that colorhint will do anything since the issue isn't being "under" a color, the view just doesn't refresh. Aug 11 16:05:48 still, I guess it's worth a try Aug 11 16:07:02 yeah it's just somethign google suggested Aug 11 16:07:34 i've not actually done any android programming for a couple of years so i'm a bit out of touch with it Aug 11 16:07:55 is there a graphic UI builder for android apps already? Aug 11 16:08:06 LiENUS: you’re here too… omg ¬¬ Aug 11 16:08:40 luist: android studio, intellij, eclipse.. they all have an UI builder Aug 11 16:11:55 luist: But please. Don't rely on the UI builder. Actually, I've found that using only the preview while hand-editing the XML made me produce layouts faster and better. Aug 11 16:12:47 +1 Aug 11 16:16:41 does anyone devel in Qt for android? Aug 11 16:18:29 luist: Do you ask because of game-dev or app-dev? Aug 11 16:18:57 Hi! What's that text called which shows up when I long press something like a button Aug 11 16:19:16 is there a way to catch all errors from DownloadManager? Aug 11 16:21:03 astroduck: Toast. Aug 11 16:21:11 No... Aug 11 16:21:24 flan3002: app Aug 11 16:21:31 flan3002: to be more deployable Aug 11 16:21:37 astroduck: I think it's https://developer.android.com/reference/android/widget/PopupMenu.html Aug 11 16:21:57 luist: More deployable? Like... iOS? Aug 11 16:21:58 astroduck: are you talking about the 'help text' sort of thing? Aug 11 16:22:05 is there a way to use Tasker's tasks in your app? Like an intent? Aug 11 16:23:23 I think there are few maniacs who build applications with Qt on Android... but it's not common Aug 11 16:23:35 Afzal: check out Tasker's site regarding API etc Aug 11 16:24:45 flan3002: like… linux and windows Aug 11 16:24:55 * flan3002 blinks. Aug 11 16:25:03 Relevance? Aug 11 16:25:40 You want to deploy the same thing to GNU/Linux, Doors and Android? You're crazy... Aug 11 16:27:00 p_l looks like tthere is a nice API to do that stuff! Aug 11 16:27:18 Afzal, you could launch a broadcast intent and make tasker respond to it? Aug 11 16:28:09 ravilov, I want to allow the user to choose an existing tasker task to run from my app Aug 11 16:28:12 http://tasker.dinglisch.net/invoketasks.html :) Aug 11 16:28:29 ah I see Aug 11 16:31:19 qt on android :) *blink* Aug 11 16:33:53 flan3002: isnt that the sole purpose of Qt? Aug 11 16:34:23 flan3002: obviously the UI need a couple changes, but the rest should be fine Aug 11 16:34:48 given that it's just been spun out of the ashes of Nokia - again... I'm not sure Qt *has* a purpose... apart from KDE, of course Aug 11 16:35:28 im using framelayout casue for some reason when I add fragments to my main it needs to be framelayout to get hte proper match_parent height Aug 11 16:35:47 but now my framelayout is complaining about using child LinearLayout Aug 11 16:36:04 how do you layout using framelayout? Aug 11 16:39:41 Colorspace simulation in L is cool... Aug 11 16:41:31 so I see there is no way to tell view pager to not instantiate any fragments to the left or right. any good hacks for this? have a view pager with tabs for a detail and google map. i really don't want the map loading evertime. it only needs to load when the user wants to use the map Aug 11 16:42:50 mattblang, offscreen limit Aug 11 16:42:52 I published an app on google play some hours ago. the webpage can be accessed directly but it doesnt show up when searching for it. is it normal that it takes a few hours/a day or so before it shows in the search? Aug 11 16:42:55 mattblang: theres a method to have set offscreen limit Aug 11 16:42:59 mattblang, use uservisibility hint Aug 11 16:43:01 jesperj: Yeah... Aug 11 16:43:11 ok cool. thanks Aug 11 16:43:13 Who knows why it takes so long... Aug 11 16:43:23 flan3002: yeah it's strange Aug 11 16:43:50 Hello Aug 11 16:44:19 is there anyway to set connection timeout in Picasso? Aug 11 16:44:26 Some parts of L are really ugly... Yeah, preview, but... Aug 11 16:44:32 bhargavg: subclass a Downloader Aug 11 16:44:47 or pass in an OkHttpClient with timeouts configured Aug 11 16:45:02 JakeWharton: oh great, thanks Aug 11 16:45:09 flan3002: for example? Aug 11 16:47:56 I have a class that extends AsyncTask and has a bunch of methods, I want to call those methods directly from outside the class. All the methods should be executed in background, what's the best way to do it? I have to put a switch inside doInBackground? or is there a way to declare different methods in such a way that they are executed in background when you call them from outside the class itself? VeryLargeFileManipulator Aug 11 16:49:06 that sound very very wrong.. Aug 11 16:49:27 i think you didnt understand asyncTask Aug 11 16:50:15 its for doing ONE JOB and then stop. Not for running in background and waiting for you to call a method. Aug 11 16:50:54 flan3002: hmm. visiting the app google play webpage on a pc browser, i see the cover art and screenshots, but accessing it from a smartphone, the screenshots are just blank and cant be clicked on. guess that might also be fixed "in time" Aug 11 16:50:54 http://stackoverflow.com/questions/25248308/framelayout-adding-content-to-framelayout-to-display-properly Aug 11 16:51:56 danijoo: My short experience with L summarized: Ugh, booting for 15 minutes now (yeah, ART, granted), feels really sluggish (okay, beta), why do I only have the 'back' nav key? I can't pull down the quick settings, even when swiping really fast, they retract immediately. The keyboard is obviously unfinished, even more when swiping. Most parts of the settings need polish, like Battery graphs and the apps Aug 11 16:51:58 storage bar at the bottom. The action-icons got different colors. The polished parts feel good though (calculator and dialer), while the 'easteregg' (android_L.flv) is boring still... Okay, wasn't a summary. ^^ Aug 11 16:52:17 And yes, I realize this is all subject to change... Aug 11 16:54:14 flan3002: first boot time must be that long because it has to recompile the apps.. thats why its art.. Aug 11 16:54:46 for the sluggish feel, I dont have that problems on my nexus 4.. Aug 11 16:55:03 I know, still doesn't help when first time users need to do that. New phones will likely have the apps precompiled... Aug 11 16:57:23 How do you stop a service when the main thread/app crashes? Aug 11 17:03:05 danijoo, they mentioned art supporting JIT in a slide at I/O I wonder what devices will end up with JIT, I'm guessing its meant for devices with low storage Aug 11 17:03:48 LiENUS: the less the better.. Aug 11 17:04:02 danijoo, the less what? Aug 11 17:04:16 devices with jit Aug 11 17:04:46 there shouldnt be a performance difference between aot and jit, just startup speed difference, the jit art should in theory still have llvm as the backend Aug 11 17:05:14 in fact iirc when mono went through this they found jit'd code to be faster due to not needing relocatable symbols Aug 11 17:05:39 its not that i dont like jit, its that i dislike fragmentation Aug 11 17:05:53 its just another point you may have to worry about Aug 11 17:07:24 in what way is that fragmentation? Aug 11 17:08:44 platzhirsch, if it's the same process, then it's implicitly stopped... Aug 11 17:10:04 pfn: mhmm Aug 11 17:10:17 oh well, we have implemented a NonStopService Aug 11 17:10:22 which keeps on executing ^^ Aug 11 17:10:32 hello all! first time in this room. I’m trying to send analytics events from a webview using the Google Analytics for Android SDK but it doesn’t seem to work. Is this possible? Aug 11 17:10:36 then put it back into the same process Aug 11 17:10:44 or don't return START_STICKY Aug 11 17:14:37 danijoo: I didn't understand it wrong. I just want to do one Job and stop, but I want to wrap multiple "jobs" inside one class so I don't have to create multiple classes for all those methods/tasks that are related to each other (not that they call each other or that one is called after another, but they all perform similar/not equal tasks and so I want to wrap all those inside a single class. Aug 11 17:31:21 what's the command of adb to show logs? Aug 11 17:31:39 real time logs Aug 11 17:31:43 adb logcat Aug 11 17:31:52 thanks Aug 11 17:35:00 adb --help Aug 11 17:54:08 is there an all in one installer for android development? Aug 11 17:54:38 andrew9183: I think there is an android studio package containing the sdk, Aug 11 17:54:44 ok thanks Aug 11 18:17:41 flan3002: what's "normal" waiting time before it shows up in search results? a day? two days? Aug 11 18:18:12 I don't know... It's been a while since I've waited for an app to appear in search... Aug 11 18:18:25 flan3002: ok. Aug 11 18:18:46 I just wonder when I should contact google support about it. I guess I'll give it a day or two Aug 11 18:19:55 It will show up, give it time... Aug 11 18:21:54 yeah :) Aug 11 18:22:01 I'm pretty impatient heh Aug 11 18:22:37 also, this channel rocks. people always are helpful \o/. Thanks for that Aug 11 18:23:03 * jesperj hands out pints of cyber beer Aug 11 18:24:11 I was having a hard time to find alpha/beta testers for my app so I just went ahead and released a production APK after trying to test it myself. Aug 11 18:24:36 I guess I'll see from eventual bug reports by angry users if it is indeed buggy Aug 11 18:24:59 works on my phone, the avd's Ive tried, and two friend's phones Aug 11 18:25:10 You might, but if you put warnings everywhere, they shouldn't be as surprised. Aug 11 18:25:42 want to take a look at it? Aug 11 18:26:42 http://toadking.sourceforge.net Aug 11 18:27:51 I released it as donationware. somethign tells me i wont get one $ even hehe Aug 11 18:27:54 dinnertime. bbl Aug 11 18:31:07 sweet http://phandroid.com/2014/08/11/acer-chromebook-13-tegra-k1/ Aug 11 18:31:19 should get one if it can be converted to ubuntu Aug 11 18:34:12 pfn, danijoo I asked earlier about limiting a view pager so that it doesn't pre-initialize any fragments to the right or left. the problem with the offscreen limit call is that the minimum has to be 1 Aug 11 18:35:14 mattblang, then use the user visible hint Aug 11 18:40:20 Good morning. I am attempting to install L on a Nexus 5 using Ubuntu 14.04 and Android Studio. When I try and run the flash-all command I get a message < waiting for device > and it hangs there. I tried looking for the device in Android Device Manager and it does not show there at all. I have the device booted in fastboot mode, but iot does show Lock State locked. Can anyone point me in the right direction? Google has run out Aug 11 18:40:59 jpedroza2k: #android-root Aug 11 18:41:24 Anyone know how to from google drive content uri to get the file extension? It does not seem to be in the contentresolver query Aug 11 18:41:25 thanks! Aug 11 18:41:28 jesperj: have you got these "doctors and nurses" on board? Is it just these three elements (energy, concentration and sleep) that they are supposed to guess your health with? Aug 11 18:45:38 rgr: you specify your own "markers" to track Aug 11 18:46:07 and about docs and nurses being "on board", that is something between patient and doc/nurse to agree to use the tool... Aug 11 18:47:55 I see. Aug 11 18:48:48 jesperj: how did you came to the name :) Aug 11 18:49:29 danijoo: my fiancee made a funny face and i said she looked like a "very determined toad king". then i just decided to use that name for the project Aug 11 18:51:46 ^^ Aug 11 18:54:07 I have a TextView and I want to made the first few letters bold or highlight them (as the user types, to show matches) Aug 11 18:54:12 how should I do this? Aug 11 18:55:05 use html Aug 11 18:55:07 then Aug 11 18:55:10 Html.fromHtml Aug 11 18:55:30 in setText(Html.fromHtml(Ttitle)) Aug 11 18:56:03 lasserix: thanks. I wonder if it's working using an actual text selection Aug 11 18:56:28 I basically a ListView of TextView's Aug 11 18:56:42 *have Aug 11 18:58:15 phh Aug 11 18:58:20 that a littlecomplicated Aug 11 18:58:28 basically you're going to have to get the user entered text Aug 11 18:58:33 then regex match it for each listview Aug 11 18:58:38 by overriding getview Aug 11 18:58:44 and setting it with html as i mentioned Aug 11 19:01:57 Instead of html you can use spannable strings Aug 11 19:02:15 html.fromhtml can be taxing/slow Aug 11 19:02:18 depending on your use case Aug 11 19:03:39 Html.fromHtml() basically creates spannable strings for you Aug 11 19:04:04 my point is if he johnflux knows its the first few letters Aug 11 19:04:13 theres no need to have Html.fromHtml do it for you Aug 11 19:05:15 anyone know what this means in android SDK: INSTALL_FAILED_OLDER_SDK Aug 11 19:05:15 desmin88: he said the first few Aug 11 19:05:16 I would even have two adjacent textviews, one for highlighted text and the other for the rest Aug 11 19:05:24 desmin88: ah sorry - yes I know exactly which letters and how many Aug 11 19:05:25 i have it set to the device android version Aug 11 19:05:46 desmin88: what does a spannable string look like? Aug 11 19:05:56 johnflux: If you know which letters and how many, just make the spannable string yourself. Html.fromHtml is not the best in this use case Aug 11 19:06:14 http://stackoverflow.com/questions/10979821/how-to-make-part-of-the-text-bold-in-android-at-runtime Aug 11 19:06:15 johnflux, like parsed html, lol Aug 11 19:06:18 it's just an object Aug 11 19:06:25 holding text and metadata Aug 11 19:07:18 ravilov: thanks - this is perfect Aug 11 19:07:36 ... Aug 11 19:07:45 oh cool didn't know you could doit this way Aug 11 19:07:48 thanks too :) Aug 11 19:08:05 miles better than using html.fromhtml if you know exactly what has to be spanned Aug 11 19:08:51 If you have two admob house ads within one campaign, will they rotate? Aug 11 19:09:00 It looks like only the first one is showing Aug 11 19:11:39 hmm.. maybe not Aug 11 19:14:40 I didnt know about spannable texts. Very nice indeed. Defo. Aug 11 19:16:28 I personally use it to set the first letter in my actionbar to be a different color from the rest Aug 11 19:16:30 :p Aug 11 19:21:41 test Aug 11 19:21:43 Oh hey. Aug 11 19:23:59 your communications device is functioning within normal parameters Aug 11 19:47:43 So - Question, what is the best way to gather GPS location on a button press. I know 99.9% of the time when the (my) phone starts up it wipes the GPS cache and I have to gather the location on boot. This seems like a pain in patootie - What can I do to get around this? I would honestly rather have it that the app grabs the GPS data at the push of a button but I dont know how to do that with the cache clearing going on - It just displays 0 Aug 11 19:47:43 ,0 for x,y. Aug 11 19:48:53 Yes I just explained myself twice. - Derp. Aug 11 19:49:24 I have 3 activities, and the flow is A->B->C, and B is a list based on a parameter passed in A, and C is a detailview of a listitem of B. So when going from A to B, I pass the parameter via an intent, but when I go to C, and use up navigation to go back to B, the activity is recreated without the intent from A. So the list isn't constructed correctly. How can I do this? Aug 11 19:49:49 syndarion: Use 1 activity and 3 fragments and page between them Aug 11 19:50:28 but for the sake of fixing it, how are you navigating up Aug 11 19:50:43 desmin88: and what if it have to be activities? My employer likes the animation :p Aug 11 19:51:20 Page between the fragments with an animation Aug 11 19:51:24 not too hard Aug 11 19:52:06 how come logcat says "scheduling ad refresh 60000 milliseconds from now" ? I've configured the ad to show every 45 second Aug 11 19:52:13 to refresh* Aug 11 19:52:16 desmin88: thanks :) Aug 11 19:52:33 You dont need 3 activities for this, a simple fragment with a view pager and animations will make it easier Aug 11 19:52:50 syndarion: are you using navutils Aug 11 19:53:10 desmin88: well I already have it in 3 activities atm, using singleTask and stuff to keep the list Aug 11 19:53:30 I was asking because when going up from C to B, the animation is in the wrong direction Aug 11 19:53:53 and I believe I'm not using navutils Aug 11 19:54:05 how are you doing up navigation Aug 11 19:54:24 the parent activity is set in the manifest Aug 11 19:54:35 in code Aug 11 19:54:37 how are you Aug 11 19:55:10 I don't. It's the default arrow in the actionbar. Aug 11 19:55:34 "NavUtils.navigateUpFromSameTask(this);" Aug 11 19:56:23 do you happen to know the id of the arrow? Aug 11 19:56:45 yes Aug 11 19:56:57 but there are a couple ways to do navigation between activities Aug 11 19:57:01 which are you doing Aug 11 19:57:45 fairly basic I believe, since I'm new at this. Go to an activity using startActivity, and go back using the up arrow in the actionbar. Aug 11 19:58:22 show me your codde Aug 11 19:58:24 code* Aug 11 19:58:42 which part? Aug 11 19:59:05 just paste me an activity class Aug 11 20:01:01 http://pastie.org/private/7myiat8m5zzj1j9wjn8zg Aug 11 20:01:04 there you go Aug 11 20:01:52 excuse my amateurism :p Aug 11 20:02:22 this is activity c Aug 11 20:02:22 right Aug 11 20:02:47 correct Aug 11 20:02:56 this one has the incorrect transition animation Aug 11 20:03:03 i tried to intall cyanogemmod on a galaxy nexus. i overwritten the "/sdcard" mount folder to the gapps.zip (so now /sdcard is a simple file with 100MB dimension). Any idea how to recreate /sdcard folder point to the right stuff? Aug 11 20:03:10 ivali: wrong channel. Aug 11 20:03:15 I believe it has something to do with the singleTask launchmode of activity B Aug 11 20:04:02 syndarion: can you give me a and b Aug 11 20:06:01 desmin88: A starts B with an intent containing a type_id. B is just a listview, with an onitemclicklistener, that starts C with an intent containing an id. Aug 11 20:06:15 right Aug 11 20:06:25 how can i get the path for the sqlite db for external songs? i tried using EXTERNAL_CONTENT_URI.getPath(), but no dice Aug 11 20:09:57 syndarion: Just switch your app to use 1 activity and 3 fragments Aug 11 20:10:03 thats what they are there for Aug 11 20:11:27 desmin88: guess I'll go with that. Since I only need support for Android 4.0 and up, what would be the best way to do the transitions? Aug 11 20:11:37 using a view pager Aug 11 20:12:50 and keeping the type_id of fragment B in the activity, when showing fragment C, right? Aug 11 20:13:19 you can preserve the state of fragment b Aug 11 20:13:29 desmin88: the viewpager doesn't animate the actionbar? :/ Aug 11 20:13:48 so when you go from viewing the detail in fragment C, back to the masterof fragment B youll have the same state Aug 11 20:15:39 I'm trying to run python in the shell of my android using Py4A and I've set it up properly Aug 11 20:15:49 cool Aug 11 20:15:58 but when I do 'sh python.sh' I get '/data/data/com.googlecode.python3forandroid/files/python3/bin/python3: can't execute: Permission denied' Aug 11 20:16:07 Does my device need to be rooted? Aug 11 20:16:07 oh Aug 11 20:17:27 how can i sort a content provider's results by a field, but case-insensitive? Aug 11 20:21:31 i'm trying to sort all of a user's songs by song name, and to do this i'm using their content provider which gives me a cursor, but they don't seem to offer any way of sorting by case-insensitive, which is very frustrating Aug 11 20:22:11 am i supposed to pull out rows from the cursor and sort them myself? is there some way to get to the database that content provider is using? Aug 11 20:26:06 is there anyway to change the icon on the left of the search view? the answer here didn't work (http://stackoverflow.com/q/14006150/1747491) Aug 11 20:28:53 Wheeeeeee!! First notification on Android! :p Aug 11 20:35:38 Afzal: grats! :p Aug 11 20:35:45 syndarion, lol thanks :p Aug 11 20:35:57 Never needed to create one until now Aug 11 20:38:11 Is there anyway to see what sql queries the api generates? Aug 11 20:43:17 I had a typo in a query(Data.Content_URI string and log cat spit out the entire sql line with the error. I would like to know if there's any way to see these sql statements. Aug 11 20:44:34 Anyone? Aug 11 20:46:03 Is there something wrong with my question? Aug 11 20:50:48 Did you try googling it Aug 11 20:51:23 whom, did you get an answer to your question? Aug 11 20:51:29 whomp Aug 11 20:51:54 tc059_, not really Aug 11 20:54:09 I've been trying to dig into the contact database with little success. Aug 11 20:56:47 whomp: cant you specifiy something like TITLE COLLATE NOCASE part of of your sort clause? Aug 11 20:57:04 whomp, are you using ContactsContract.Data Aug 11 20:57:07 rgr, i ended up doing that. it feels really hacky Aug 11 20:57:10 but it works Aug 11 20:57:15 why? Its SQL. Aug 11 20:57:39 people online seemed to say that you couldn't do a case insensitive sort with the query function Aug 11 20:57:45 but maybe they were wrong :) Aug 11 20:57:46 the rest of the object just constructs the SQL for you I dare say. Aug 11 20:58:03 they probably are if its indeed standard sql. Aug 11 20:58:07 I dont know. Aug 11 20:58:21 but that was a generic answer from me as I dont know content providers. Aug 11 20:58:26 yeah it's ok for now, but i was just hoping for a cleaner solution Aug 11 20:58:33 its perfectly clean. Aug 11 20:58:38 and uber powerful. Aug 11 20:58:51 (assuming you can apply other such sql constructs to the order by clause) Aug 11 20:59:49 you might even try Lower(title) or somesuch Aug 11 21:09:18 what does “clobbers” mean ? Aug 11 21:14:57 in what context? Aug 11 21:15:23 adding a plugin Aug 11 21:15:29 generally it means to hit - generally quite hard... Aug 11 21:15:55 what kind of plugin where? Aug 11 21:16:01 andrew9183: in the context of software, it usually means to overwrite or delete some data Aug 11 21:16:05 ah Aug 11 21:16:23 probably to trash some data accidentally. Aug 11 21:18:36 oh thats not good. adb screenrecord has not not recorded in landscape. Aug 11 21:23:25 andrew9183: probably means "overwrites" Aug 11 21:23:34 or, "overwrites irreversably" Aug 11 21:25:07 oh haha, ok makes sense Aug 11 21:33:35 Hit run in android-studio, now the emulator boots, but now nothing happens after the emulator is running. Aug 11 21:33:38 What did I do? Aug 11 21:35:58 winsoff, hit run again? Aug 11 21:36:10 With the emulator already booted, right? Aug 11 21:36:13 yes Aug 11 21:36:42 Oh, it can select running devices Aug 11 21:36:45 That makes more sense. Aug 11 21:36:58 Was it much harder to get an android project going before android studio? Aug 11 21:37:36 no Aug 11 21:38:16 not much Aug 11 21:38:44 So I have no excuse for being this late to the party! Aug 11 21:42:55 A lot of people pop in and say that ;) They they discover they need to learn java and actually read docs and APIs understand and the basics of a multithreaded OS and the idiosyncrasies and weaknesses and strengths of the Android activity lifecycle and ecosystem and tend to waddle off quite sharpish ;) Best of luck!! Aug 11 21:44:25 Also, I am just starting with the entire android API, and android studio gave me a mainactivity class that extends ActionBarActivity, but it says I require an appcompat theme? Aug 11 21:44:29 How do I change the theme? Aug 11 21:44:55 winsoff, styles.xml, google it Aug 11 21:45:06 Thanks for the direction. Aug 11 21:58:48 the search view I implemented will sometimes make the action bar go blank when trying to expand. anyone seen this before? Aug 11 22:00:52 winsoff: use the google tutorial. stuff like appcompat is explained. Aug 11 22:01:42 Oh, sweet. Aug 11 22:02:46 But really google first and ask later. There is no problem or Q you will have that isnt already covered in StackOverflow. Loads of noobs have gone before you! Aug 11 22:03:14 Ask when you need a pointer or something further explaining or you want to ask about the benefits of one approach over another. Aug 11 22:03:24 Loads of good advice here then. Aug 11 22:05:09 do yall generally implement your options menu on the activity level, or fragment level? Aug 11 22:10:38 Activity level Aug 11 22:16:13 yiati yeah, i think im about to change to that. i had a searchview from a listfragment that I was including. but when in master detail, if I click the search icon quickly after changing fragments the entire action bar goes blank Aug 11 22:24:13 Hi, I am using canvas and paint to draw a path. Aug 11 22:24:31 But the curve is blurry does anyone have an idea to make it not blurry Aug 11 22:24:38 I am using cubicto Aug 11 22:25:02 How do I get root access to my phone? Aug 11 22:25:25 Why are all these tutorials based on phone model and service provider?.. Aug 11 22:25:42 Because the rom is specific to th phone Aug 11 22:25:49 because they vary depending on phone model and service provider Aug 11 22:25:50 obviously Aug 11 22:26:05 You have to find how to flash your specific phone Aug 11 22:26:15 wtf... what if I have some random Icelandic service provider maybe 5 people use... Aug 11 22:26:32 #android-root Aug 11 22:26:33 Provider doesn't matter as much as model Aug 11 22:26:35 we don't care here Aug 11 22:26:54 pfn: Oh, I appologize, didn't know that existed Aug 11 22:27:22 Glitches, see topic Aug 11 22:28:10 pfn: tl;dr Aug 11 22:28:12 So anyone know how to make a bezier curve not be blurry Aug 11 22:29:11 I have a detail activity, with a loader. In it's menu, there's an "Edit" action, opening a new edit activity. Would it be best to reload all the data in the edit activity, or just pass it with the intent? Aug 11 22:34:00 How big is the data Aug 11 22:34:07 @syndarion Aug 11 22:34:25 if it' to big just load using sqllite save it then reload the cursor Aug 11 22:34:33 syndarion what happened to using fragments Aug 11 22:34:50 desmin88: different activities :p Aug 11 22:35:13 desmin88: the app contains a lot of lists going to a detailview :p Aug 11 22:35:32 so? Aug 11 22:36:52 desmin88: well, it's nearly finished, using activities, and my employer had no comments on our last meeting. So I'm trying to keep as much of the code as possible, since it's due thursday… Aug 11 22:37:24 probably for the next version, if the app is still assigned to me, I'll overhaul everything using fragments. Aug 11 22:37:27 :/ Aug 11 22:38:28 desmin88: and another problem is, the app consists of a main screen, which links to the many lists. Aug 11 22:38:50 so not just A->B->C, but A->B->C; A->D-E; A->F-G and so on. Aug 11 22:39:02 honestly seems like a perfect case for fragments Aug 11 22:39:23 Main activity A which displays your access points to each list Aug 11 22:39:47 Have a dynamic fragment which displays different list data depending which they clicked on Aug 11 22:43:59 desmin88: sorry, got disconnected Aug 11 22:44:09 last thing I've seen is "hope you get it" Aug 11 22:44:35 so, everything that starts with => comes from the [main route screen] Aug 11 22:44:55 where would you use activities or fragments? :) Aug 11 22:45:18 1 main activity Aug 11 22:45:40 is your access point to each separate list Aug 11 22:45:49 when you click on a list Aug 11 22:46:01 bring up a fragment Aug 11 22:46:37 so ALL the screens I've mentioned in 1 activity? Aug 11 22:46:42 isn't that bad practice? :/ Aug 11 22:46:55 no Aug 11 22:47:37 I believe the google docs say so? Aug 11 22:47:51 you probably wouldnt use just one activity Aug 11 22:47:58 since it seems your doing master detail with lists Aug 11 22:48:00 so 2 activities Aug 11 22:55:33 I am developing an app for a Nexus 7 using Android 4.4.4, that needs to record test scores consisting of 10 or so pages, each with a heading section with some text specific to the page, and a body section with 1 to 5 images centrally placed. Text and images defined in the assets directory, app does not know prior to loading how many pages or the number of images per page (except that the... Aug 11 22:55:35 ...number of images is at most 5 , and there are unlikely to be more than 20 such pages) Aug 11 22:55:36 What is the best option: Aug 11 22:55:38 (1) 2 fragments that I change dynamically as the user changes the page Aug 11 22:55:39 (2) construct separate pages in advance Aug 11 22:55:41 Comments & questions? Aug 11 22:56:03 the heading fragment will mostly have common text Aug 11 22:57:08 you can have a viewpager Aug 11 22:57:21 that allows them to swipe between each page Aug 11 22:57:26 This is for a unversity, so unlikely to b e in any app store! Aug 11 22:57:32 Nivag: look at google analytics app for comparison Aug 11 22:59:04 bankai_au: do you have a URL I can look at for that? I use very few apps myself, and only had a smartphone for about a year! Aug 11 23:00:58 Nivag: ViewPager should be fine Aug 11 23:01:07 desmin88: is it 'safe' to use viewpager? it is in a support lib, and I had the impression that it might be replaced by something else soon! Though, I may be totally wrong here!!! :-) Aug 11 23:01:19 it is safe Aug 11 23:01:27 Nivag: Supportlib does not mean ist replaced soon Aug 11 23:01:45 it means its that great that android wanted it to be available for older devices, too :) Aug 11 23:02:49 its really save. There are tons of apps using it. Aug 11 23:03:18 This will never be used on older devices, the tablets (about 5) are being bought specifically for a prototype to test the feasibility. Aug 11 23:04:13 yeah Im just saying that it isnt in the supportlib because its deprecated or being replaced soon Aug 11 23:04:32 So I should construct all the page in the activities onCreate() method? Aug 11 23:04:58 pages Aug 11 23:06:08 In your activity you have a viewpager, and in onCreate, you need to set a FragmentPagerAdapter to that viewpager Aug 11 23:06:30 this adapter manages the creation and recycling of your fragments containing your images Aug 11 23:07:24 You can write your own adapter and let it create the fragments with their content as needed (it only has to extend FragmentPagerAdapter Aug 11 23:07:44 I was thinking of having specific next & prior buttons. Partly my upbringing dating from when Mighty Mainframes ruled the Earth - and partly because I need to control when the user can move on, so I could grey out the next button until it could be used. Aug 11 23:08:44 danijoo: got it Aug 11 23:09:22 Nivag: thats fine. You can disable the gestures of viewpager and implement your own buttons on that Aug 11 23:09:54 oh dear, don't do that Aug 11 23:11:19 robin williams has died and youre all here talking about android Aug 11 23:11:23 how disrespectful Aug 11 23:11:51 Nivag: but you may want the fragments to handle your loading instead of manually controlling the viewpager Aug 11 23:12:00 hi Aug 11 23:12:15 google glass has emulator? Aug 11 23:12:17 danijoo: Can I have my cake and eat it? Have buttons & also swipe gestures? So the buttons can be used as buttons, or merely as indicators to say the swipe in that direction will be honoured? Aug 11 23:12:47 if you conform to design guidelines, you don't need silly things like that Aug 11 23:13:47 Nivag: also this is possible, it's not really how viewpager works. Aug 11 23:14:19 * Nivag gone to RTFM on viewpager, back soon... Aug 11 23:14:20 its purpose is more like book, going from site to site with the ability to go forward and backward.. Aug 11 23:14:45 while the pager dynamically creates the sites for you Aug 11 23:15:16 t0th_-: is this a real question? Aug 11 23:16:29 viewpager can work however you want Aug 11 23:16:36 the code is available for you to modify as you see fit Aug 11 23:16:46 or you can just disable/enable functionality as desire Aug 11 23:16:48 d Aug 11 23:17:19 pfn: I said its possible. Its just not how people usually use it :) Aug 11 23:18:19 hi all Aug 11 23:18:41 i am trying to use layout Aug 11 23:18:44 danijoo, anyone with non-trivial requirements does stuff with it differently Aug 11 23:18:44 layout Aug 11 23:18:59 pfn: I agree Aug 11 23:19:14 layout_weight, but i keep getting the error: "suspicious size this will make the view invisible" Aug 11 23:19:56 this occurs due to setting the layout_height to 0dp Aug 11 23:20:13 jubjub_: paste your layout Aug 11 23:21:54 http://pastebin.com/bM9LJP12 Aug 11 23:22:42 should put a weightsum in your parent LL Aug 11 23:22:43 and it only happens with the last two layouts Aug 11 23:22:51 i tried that too Aug 11 23:23:00 didn't help Aug 11 23:23:14 and all your other ll Aug 11 23:23:24 canvs2321-: android usually assumes the combined sum of all layout sums as weightsum if you dont put it in. Aug 11 23:23:27 you need to tell it what a weight of 6 is equal too Aug 11 23:23:39 I am an extremely experienced developer in OTHER fields, and I'm quite capable of over complicating things unnecessarily! So I want to fit in to the normal Android way as much as is practicable, and not have any more complicated logic than is appropriate! This is my first venture into 'smartphone' development. Aug 11 23:23:48 well that'd help narrow it down, he has crazy weight sizes Aug 11 23:24:19 plus has weights&doesn't set the width/heights to 0dp Aug 11 23:24:22 it looks a mess Aug 11 23:25:25 i see :S Aug 11 23:25:29 canvs2321-: do you need to set both height and width to 0dp, i thought it was only height Aug 11 23:25:46 jubjub_: set the one value to zero that should be handled by weight Aug 11 23:25:49 i'm saying either or Aug 11 23:26:03 plus nested nested weighted is bad Aug 11 23:26:09 really bad Aug 11 23:26:21 perfomance killer #1 Aug 11 23:26:23 danijoo: what is the best way to handle this layout, and why is it bad Aug 11 23:26:23 jubjub_: you should rethink your layout Aug 11 23:26:36 nested layouts have a really bad performance Aug 11 23:26:41 ton's of overdraw/calculating sizes Aug 11 23:26:54 with so many weights, you might go better with relative layouts.. Aug 11 23:27:21 Ah! This is what gave me pause for concern: Aug 11 23:27:23 http://developer.android.com/reference/android/support/v4/view/ViewPager.html Aug 11 23:27:25 […] Aug 11 23:27:26 Note this class is currently under early design and development. The API will likely change in later updates of the compatibility library, requiring changes to the source code of apps when they are compiled against the newer version Aug 11 23:27:28 […] Aug 11 23:27:53 Nivag: you can consider this as being outdated I guess Aug 11 23:28:11 jubjub_: this a calculator app? Aug 11 23:28:13 It hasnt changed for a lot of time.. Aug 11 23:28:25 canvs2321-: yes Aug 11 23:28:38 danijoo: The comment, I assume? Aug 11 23:28:44 yeah Aug 11 23:30:25 ViewPager in its current state is about 2 years old Aug 11 23:30:46 So I wont expect any more changes to it Aug 11 23:31:04 Is Android L, something that might be relevant, or something I should ignore? Strictly this is a prototype to be delivered prior to the formal release of Android L, but If I bget the next contract Android L will have been released. Aug 11 23:32:29 Everything written under android 4.x should be compatible to L. Maybe with some minor changes in the underlaying code if you do something exotic Aug 11 23:32:34 canvs2321-: i just want to make a simple calculator so i don't think the latency with nested LL is that visible to the user. Correct? Aug 11 23:32:41 The API likely doesnt change, only the design guidelines Aug 11 23:33:46 Thanks all! I wish I had IRC when I was learning COBOL many moons ago! :-) Aug 11 23:34:34 you are welcome. And I'm out now. its 1 am here :p Aug 11 23:34:36 Can you fix my S0c7? Aug 11 23:34:40 good night everybody Aug 11 23:35:09 11:35am here in NZ Aug 11 23:41:37 jubjub_: correct. There will be no latency issues really with that. In fact I have a view overlying a canvas where I write direct to the surface and its pretty quick. Aug 11 23:42:03 jubjub_: what about something like this, http://pastebin.com/hzbMgxJV i didn't put all your id names&extra stuff in, just a quick mockup Aug 11 23:43:41 oh wow Aug 11 23:43:47 thats a lot of nested linear layouts Aug 11 23:44:13 they aren't nested/nested/nested that he had Aug 11 23:44:38 they are one layer in each Aug 11 23:45:04 deep* Aug 11 23:45:15 looks good thanks canvs2321- Aug 11 23:45:16 yeah Aug 11 23:45:48 what about a grid layout Aug 11 23:46:08 desmin88: do a mockup Aug 11 23:46:58 thats essentially what youve created here Aug 11 23:47:02 with stacking linear layouts Aug 11 23:47:49 i just copied what he was doing, i'm not rewriting it anew :) Aug 11 23:48:09 im not telling you to Aug 11 23:48:37 jubjub_: Look into using a gridlayout Aug 11 23:51:40 http://stackoverflow.com/a/10033481 Aug 11 23:52:23 desmin88: looking into that now Aug 11 23:54:26 anyone use the forName (String className) method in java.lang.Class? (I am using Android 4.4.4) It might solve a design/implentation issue I have. Aug 11 23:54:28 for a calc app there is no issue. no need to create issues where there are none. Aug 11 23:54:45 Nivag: what are you using it for? Aug 11 23:56:27 not sure yet! But I might have a string in a configuration file that I can convert to a class to instantiate for a specific set of behaviours. Stiill looking atv option Aug 11 23:56:54 eek Aug 11 23:57:17 I use this technique successfully in my first commeriocal Java project Aug 12 00:07:02 hey, I seem to be having a problem with samsung phones when taking a picture. it doesn't seem to return the location properly or what it does return seems to be stretched or something. has anyone seen something similar? Aug 12 00:09:16 How did the programmer die in the shower? Aug 12 00:09:44 He read the shampoo bottle instructions: Lather. Rinse. Repeat. Aug 12 00:12:26 A programmer is sent to the supermarket with instructions to "buy butter and if they have eggs then buy a dozen." Aug 12 00:12:26 Aug 12 00:12:30 Returning with 12 butters, the programmer says, "they had eggs". Aug 12 00:14:05 How many programmers does it take to change a light bulb? Aug 12 00:14:22 None, Its a hardware problem. Aug 12 00:19:20 /join #git Aug 12 00:24:10 byte0x00, #programmerjokes Aug 12 00:24:14 but they're all old Aug 12 00:24:29 so? Aug 12 00:24:45 u wana go get me some new ones.. by my guess ;] Aug 12 00:48:44 im installing kali linux in my android since it a did a random factory reset trrying to use clockworkmodrecovery Aug 12 00:49:11 i have to start all over, but good thing i pulled the .apk's from the system file into my SD Aug 12 00:49:43 Network spoofer is a must have app if ur rooted Aug 12 00:50:00 i kept directing an employee to a porn website Aug 12 00:50:10 he had no idea wtf was going on Aug 12 00:50:24 That's a great story man. Could you tell it again, do you have time? Aug 12 00:50:29 YES Aug 12 00:50:34 I have a lot fuckin time Aug 12 00:50:41 Excellent. Begin. Aug 12 00:50:46 is there a built in way to map from the display metrics densityDpi value to the dpi "name" eg "mdpi"? Aug 12 00:50:57 some other time bro Aug 12 00:59:12 rgr: im confused as to what you mean Aug 12 00:59:59 you know what mdpi means I guess. I just wanted to know if there was a dpi setting to string name mapping built in. Ive done it myself anyway, Aug 12 01:00:53 oh Aug 12 01:00:57 i see what you mean Aug 12 01:03:18 http://stackoverflow.com/a/19256186 Aug 12 01:03:56 already done but thanks. Aug 12 01:08:22 mornin' Aug 12 01:09:33 hello Aug 12 01:09:47 anyone managed to launch android emulator with haxm support on linux? Aug 12 01:14:31 gordon_: there's no haxm on linux. What you want is KVM Aug 12 01:17:46 p_l: I got kvm Aug 12 01:18:10 do you have any source or link how to launch it ? Aug 12 01:24:26 gordon_: just pick x86 avd, afaik Aug 12 01:26:28 of course, you need to be able to use KVM as the user you launch the emulator as Aug 12 01:26:48 yes I got kvm and modules loaded Aug 12 01:26:57 started VM from console but windows doesnt shown up Aug 12 01:27:13 is there some magical switch to show the gui ? Aug 12 01:27:18 ➜ tools ./emulator -avd android -qemu -m 2048 -enable-kvm Aug 12 01:27:22 this is how I launch it Aug 12 01:27:44 there should be no need for special switches to enable window Aug 12 01:29:56 wonder why it doesnt work then Aug 12 01:30:27 maybe I need to add myself to some group Aug 12 01:30:31 nothing on wiki Aug 12 01:38:07 rgr, what's the point of doing so? you can create values-mdpi/strings.xml Aug 12 01:40:06 eh.. dont know why it doesnt work Aug 12 01:49:19 p_l: it works Aug 12 01:49:30 just need to set other skin in android emulator options Aug 12 02:03:07 hey all.. looking for help on linking ffmpeg into my app natively Aug 12 02:03:26 anybody have experience doing this? Aug 12 02:04:58 I'm geting this message when I load the library in my app: Aug 12 02:04:59 caused by cannot locate symbol "atof" referenced by Aug 12 02:05:11 java.lang.UnsatisfiedLinkError: dlopen failed: could not load library "libavformat-55.so" needed by "libhlcam-integration.so"; caused by cannot locate symbol "atof" referenced by "libavformat-55.so"... Aug 12 02:13:38 Guest36168: bionic's dynamic loader doesn't support chained dependencies, iirc - so you have to first manually load libavformat then libhlcam-integration Aug 12 02:18:42 but atof... Aug 12 02:19:03 that should be a libc function, maybe it's not in bionic Aug 12 02:19:05 P_l: if i load libavformat first, I get the same error..sort of Aug 12 02:19:06 java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "atof" referenced by "libavformat-55.so"... Aug 12 02:19:34 right.. atof was moved into the header file of stdlib as an inline function Aug 12 02:20:02 ahh Aug 12 02:20:09 sorry, it's late here, didn't notice Aug 12 02:20:14 it was? Aug 12 02:20:49 anyway, sounds like it's linked against the wrong libc Aug 12 02:21:00 dunno how, but yeah Aug 12 02:22:52 I found this: https://code.google.com/p/android/issues/detail?id=73725&can=1&q=atof&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars Aug 12 02:23:19 I'm using ndk r10, so there is a mismatch since my device is running on non-L Aug 12 02:23:21 damn.. Aug 12 02:23:30 I guess I need to build using an older ndk.. ? Aug 12 02:24:24 I don't understand all the ramifications of the bug, but I think that means I have to build against an older NDK that has the inline functions Aug 12 02:24:29 What's the easiest way to append an ArrayList to a file, and then later create an ArrayList from the file? I'm really awful at reading/writing files Aug 12 02:26:05 p_l: what do you think Aug 12 02:30:08 that I should have been asleep 3 hours ago even according to UTC :| Aug 12 02:53:24 Guest36168, the solution sounds simple, use older ndk Aug 12 02:55:07 and yeah what's not to understand **** ENDING LOGGING AT Tue Aug 12 02:59:58 2014