**** BEGIN LOGGING AT Sat Aug 16 02:59:58 2014 Aug 16 03:44:43 hello Aug 16 04:14:16 interesting video https://www.youtube.com/watch?v=7Pq-S557XQU Aug 16 04:14:58 is that the one where you watch a cat video and get rooted? Aug 16 04:16:41 i wouldn't do that Aug 16 04:16:43 no Aug 16 04:17:18 how automation will take over everything Aug 16 04:50:57 What login system should i use for my social networking app? Aug 16 04:57:42 eh? Aug 16 04:59:09 * g00s doesn't use social apps, so i have no idea ;) Aug 16 05:01:18 i guess IRC is social Aug 16 05:03:40 g00s that video seriousily niave ;p Aug 16 05:04:08 lots of people talked about it on HN / slashdot, etc. one thing nobody called it was naive Aug 16 05:04:31 oh what article/post was this linked to? Aug 16 05:04:49 along the same lines is http://www.amazon.com/The-Second-Machine-Age-Technologies/dp/0393239357 Aug 16 05:04:56 which is definitely not naive Aug 16 05:05:18 I have a dilema … do include a theme editor with my app ? or maybe keep it back for me doing premium themes and or release of it as IAP later ? Aug 16 05:05:31 later sounds good Aug 16 05:05:35 people will pay to trick their shit Aug 16 05:05:45 and its legimate use case of asking for money Aug 16 05:05:54 since functionality is free, but customization is pay Aug 16 05:05:59 well they have simple settings/colors etc atm with some themes Aug 16 05:06:11 but they can only alter stuff, not create Aug 16 05:06:21 StingRay_ why not make the theme editor a web site like kuler Aug 16 05:06:31 people can create, share, grab Aug 16 05:06:35 cause I fkin hate web dev Aug 16 05:06:46 but yes my theme format would be able to do that easy Aug 16 05:06:52 for a web dev Aug 16 05:06:53 :) Aug 16 05:07:16 g00s: machines don't replace people, they make the number of people you need much less. there is a very important difference here. and by niave i mean it presumes the optimize that the very serious crisis of the question of jobs and value in era of total automation Aug 16 05:08:06 presume the optimize? i couldn't follow Aug 16 05:08:11 (grammar) Aug 16 05:08:21 sorry i am a little ... Aug 16 05:08:22 uhh Aug 16 05:08:35 let's see, well i take back what i said, but in the beginning of the video Aug 16 05:08:59 when he says machines make it easier and there exists abundance and etc, totally overlooks disparities of distribution and access to resources for instance Aug 16 05:09:04 but i was being premature Aug 16 05:09:08 long video ;p Aug 16 05:09:25 that sounds post - scarcity, is that what you meant ? Aug 16 05:09:44 umm kind of Aug 16 05:09:46 but yeah Aug 16 05:10:05 the whole question of how do we measure value and the necessity of labor in that post scarcity Aug 16 05:11:33 sorry i am too lazy to have a real discussion on this topic right now Aug 16 05:11:35 nice video tho Aug 16 05:11:43 also that fish cannon was awesome! Aug 16 05:12:10 their other product is really cool too, i wonder if they use it in vineyards because bruised grapes seriousily undermine the quality of the wine Aug 16 05:13:05 oh i only saw the fish canon :) Aug 16 05:14:09 you should check out their fruit tube Aug 16 05:14:12 totally sci fi Aug 16 05:14:21 brb Aug 16 05:23:24 it will be cool when someone comes up with a powerful enough ai to solve nearly intractable math and physics problems Aug 16 05:23:58 my guess is if we ever get like time travel or something more realistic but that improbably it will be by an AI and we will not be able to intrepret how it works, but it just well Aug 16 05:24:30 kind of like the queuing algorihtm that was developed for tcp/ip networking some time back Aug 16 05:24:48 faster than anything we have, but no one sure how it really works except the ai that could never explain it (just like an idiot savant) Aug 16 05:25:41 stepeh hawking thinks AI is the greatest threat to humanity. this seems a decent book on the idea http://www.amazon.com/Superintelligence-Dangers-Strategies-Nick-Bostrom/dp/0199678111 Aug 16 05:26:19 you should read charles strauss accelerando Aug 16 05:26:27 sci fi ? Aug 16 05:26:35 super tek cyber sci fi Aug 16 05:26:38 yeah it is pretty awesome Aug 16 05:26:46 im not interested in fiction really Aug 16 05:26:49 the main character creates an algorithm to generate corporate entities that regulate themselves Aug 16 05:27:02 well for the speculative nature of the future it is really, really good Aug 16 05:27:47 but then going down this line of evolution, as human consciousness increasingly is merged with computer interfaces (wetware) this combines with the rise of the generate corporate entitiy Aug 16 05:27:57 anyways it gets crazy complicated and fun to think about Aug 16 05:29:22 but anyways he solves the fermi paradox by proposing that advanced intellgient sapients end up invevitably becoming "online" (ie like the singularity) as a result post-humans will not want to venture into space to travel because the distance from the center is a loss of bandwidth Aug 16 05:29:34 and since consciousness is merged online, no one wants to be out of the loop Aug 16 05:29:38 anyways fun to think about Aug 16 05:29:43 :) Aug 16 05:30:11 have you read bostroms book? Aug 16 05:31:39 anyone know a good english dictionary list? Aug 16 05:39:55 anyone use automated testing whenmaking their own apps? Aug 16 05:40:57 yup, great book Aug 16 05:41:14 I also like when the main char gets his "glasses" stolen ;) Aug 16 05:42:10 taking 1/2 his brain with them, a downside of wearables Aug 16 05:47:59 how do I pause the locat in AS ? Aug 16 05:49:43 if it's anything like eclipse, you don't ever pause it, you just disable autoscroll Aug 16 06:03:58 thats what I mean :) Aug 16 06:04:40 StingRay_ you select a line Aug 16 06:05:48 oh ffs Aug 16 06:05:50 cheers Aug 16 06:07:54 Got logged out, did anyone have a feedback on my previous question? Aug 16 06:09:24 Is geofencing fire and forget and runs in the background even when the app is closed? Aug 16 06:09:25 StingRay_: you can use regex in your filters, so for instance i rpefix all my tags and then or them to catch what i need Aug 16 06:09:43 same Aug 16 06:09:53 I just could not get it to stop scrolling Aug 16 06:17:40 anyone know good intellij plugins to use with android dev? Aug 16 06:37:08 gah why is this so complicated Aug 16 06:37:15 or am i overcomplicating it? Aug 16 06:37:35 i haven't used play services yet Aug 16 06:37:47 kinda trying to avoid that whole ball of shit Aug 16 06:37:49 arg now back to deciding whether to just use libgdx Aug 16 06:38:12 lasserix_: what for ? Aug 16 06:38:31 I just grabbed it to have a play when I find the time :) Aug 16 06:39:06 Oh i have a word game im making Aug 16 06:39:33 i got dewitters game loop implemented, then had to make a screen manager for at least switching between game surface view and menu system Aug 16 06:39:51 but i wanted to abstract it a little, so i was looking at libgdx, and then its pretty clean so... Aug 16 06:40:14 only thing is like like dewitters game loop logic Aug 16 06:41:01 (decouples the deterministic time step for physics simulation with interpolated render as fast as you can screen output) Aug 16 06:41:59 anyways Aug 16 06:42:57 Hi all Aug 16 06:43:21 My Logcat suddenly stopped showing any of my system outputs Aug 16 06:44:01 probably has worms! Aug 16 06:44:06 in AS try recycling adb Aug 16 06:44:18 last icon : restart Aug 16 06:44:40 lasserix_: :) worms? Aug 16 06:44:40 it would be great if ... they could finally get adb to work well Aug 16 06:47:28 just use terminal to tail it Aug 16 06:47:36 then set up greps for whatever you want to follow :) Aug 16 06:47:56 brew install pidcat Aug 16 06:48:12 then run 'pidcat' or 'pidcat com.your.package' Aug 16 06:48:41 I have a half assed pidcat ripoff in my plugin Aug 16 06:50:17 well i ripped the coloring from jeff sharkey Aug 16 06:50:35 turtles all the way blah blah blah... Aug 16 06:51:52 jasta has one too Aug 16 06:52:27 mine is based on jasta's and jeff's :P Aug 16 06:55:04 https://github.com/pfn/android-sdk-plugin/blob/master/src/commands.scala#L429 Aug 16 06:55:06 heh Aug 16 06:58:34 another great one from adb : error: protocol fault (no status) Aug 16 07:05:38 niru: you there? Aug 16 07:06:00 detachYo: yes I got it Aug 16 07:07:12 coolio Aug 16 07:09:32 is there any quick function to determine a rows position based on an ORDER BY query ? Aug 16 07:09:33 something like a list of users and scores, given the user name they are ranked ?? in the table etc Aug 16 07:10:57 ah I found it on SO :) Aug 16 07:14:50 StingRay_: not sure what you mean Aug 16 07:15:06 but do share please :D Aug 16 07:16:19 uh? Aug 16 07:17:43 StingRay_: you asked a question then said you found the answer, and I was also wondering how you can achieve ^ that, so I asked if you can share the answer Aug 16 07:18:13 oh there are a few ways depending on accuracy Aug 16 07:19:08 GROUP_CONCAT is one way Aug 16 07:19:23 but maybe not the best if there are millions of records :) Aug 16 07:19:34 since it would have to do 2 sweeps of the entire table Aug 16 07:19:36 why would you have millions of records in internal database Aug 16 07:19:38 :D Aug 16 07:19:48 that would suck though, honestly Aug 16 07:19:58 erm, what ? Aug 16 07:20:08 having to store millions of records in the phone Aug 16 07:20:33 well thats a totally different argument Aug 16 07:20:38 * detachYo loves his vaper Aug 16 07:20:39 true Aug 16 07:20:40 and really notihng to do with my question Aug 16 07:20:42 lol Aug 16 07:20:48 ok Aug 16 07:20:49 not even in the ball park tbh Aug 16 07:21:43 Does anyone know if this: http://developer.android.com/training/location/geofencing.html#RequestGeofences can also be achieved with BroadcastReceiver instead of IntentService? Aug 16 07:27:56 why? Aug 16 07:28:01 :) Aug 16 07:34:38 What do you mean why? Aug 16 07:34:52 Why am I asking this question or why do I want to know if anyone does know? Aug 16 07:35:34 no why would you prefer a to do something in a broadcast receiver rather than a convenient off ui thread intent service ? Aug 16 07:36:20 Hi. I am not sure if this is the right place to ask this so, if it's not, please suggest an alternative channel I should check out. I am developing a web app that basically displays a site in php. The real work is done on the website itself, the app just functions as a browser for it. My site includes analytics software that collects data on the users. I want to differentiate between a regular browser visiting my site and the app. I understand tha Aug 16 07:36:41 because someone told me in this channel that i should use broadcastreceiver instead of intentservice Aug 16 07:37:20 ArmitaageDS: pass in a query parameter if its from the app, and based on that check if it is Aug 16 07:37:34 or set a session (not sure if possible, never done this before) Aug 16 07:37:46 this = webviews and stuff Aug 16 07:40:57 is there a way to bind the structure view to a specific code tab while the current editor focus is in another code tab in android studio? Aug 16 07:41:43 I mean, I want to identify the app with a custom made user agent, but I want the agent to also provide system information as normal. Aug 16 07:45:51 ArmitaageDS, are you using AndroidHttpClient from your app? If so, you can set the user agent to whatever you want when you call newInstance().. Aug 16 08:09:39 Has anyone seen this error before: Aug 16 08:10:02 E/AndroidRuntime(1500): java.lang.NoClassDefFoundError: org.keyconsultant.parse.logintutorial.LoginActivity Aug 16 08:10:23 NoClassDefFoundError Aug 16 08:10:31 Any idea how to fix? Aug 16 08:11:15 did you declare it in your activity? Aug 16 08:11:22 *manifest Aug 16 08:11:28 yeah Aug 16 08:11:44 is it the correct fully qualified package name? no typos? Aug 16 08:12:32 - yeahit looks ok Aug 16 08:13:12 at build time it cant find that class Aug 16 08:13:24 is the access modifer private by chance? Aug 16 08:14:03 i imagine it is if the manifest has no problem picking it up Aug 16 08:15:29 No, its public. Aug 16 08:15:38 I'm using webview element. I just want to modify the default agent to include the basic system information from the default agent plus a bit extra to identify the app. I'm just not sure if just appending it to the end will cause issues for most analytics software Aug 16 08:15:38 clean project Aug 16 08:15:49 clear cache Aug 16 08:15:53 delete /gen Aug 16 08:17:26 Ok wait a minute Aug 16 08:26:40 lasserix_, the activity which cannot be found is in a different package than the package written at the top of the manifest Aug 16 08:26:45 Could that be the problem? Aug 16 08:27:08 Hi guys, I’m new to android development. I have installed IntelliJ and trying to set it up for Android development. I have hit a small snag. Is it okay if I ask the question here? I went to the Jetbrains IRC channel but its not active atm Aug 16 08:31:02 Hello guys. I use ListView to show many images. And after scroll 5-6 pages I have "Out of memory" Aug 16 08:31:16 Jov: really ? Aug 16 08:31:24 you were given all the answers yesterday Aug 16 08:31:32 I tell about it yesterday. I know :) Aug 16 08:31:56 you need to learn a bit on listViews and bitmap loading Aug 16 08:32:04 And I use now resized images Aug 16 08:33:17 Yes. I know. But why ListView don't remove old views? Or bitmaps need unload manually? Aug 16 08:33:48 depends totally on your use Aug 16 08:33:58 i have problem with edittext and showing the comma "," character Aug 16 08:34:04 pastebin the adapter Aug 16 08:34:09 StingRay_: moment Aug 16 08:35:32 StingRay_: http://pastebin.com/VGW0dVn9 Aug 16 08:36:01 StingRay_: It I try to recycle. But have error in first assign adapter Aug 16 08:37:04 Jov: you should really go read the listView tutorials Aug 16 08:37:28 StingRay_: It without recicle and works only for first 5-6 pages http://pastebin.com/KAqhsaB6 Aug 16 08:38:06 I find simples for this adapter in stackowerflow :) Aug 16 08:38:38 convertView <--- is the recycled view also simply blind division by 2 for working out what the image size is, erm, not a great idea Aug 16 08:39:14 Wow. What I should make with this view? :) Aug 16 08:39:21 Kill him? Aug 16 08:39:29 :) Aug 16 08:40:08 Jov: my suggestions to you, A. go throught the listView tutorials on d.android.com B. lean about viewHolder models C. maybe use an asyc image loader like universalImageLoader and use that Aug 16 08:40:18 About division, I want remove this and make normal layout. Aug 16 08:40:21 I think if you do A,B,C you will be done with this problem Aug 16 08:41:18 :) Aug 16 08:41:24 Ok. You are right Aug 16 08:41:52 I say this cause I think your approach is making it 10x harder on yourself than it needs to be :) Aug 16 08:43:08 i have problem with edittext and showing the comma "," character, i tried google but nothing works Aug 16 08:43:37 freelancerbob: that makes no sense Aug 16 08:43:42 or I need more coffee Aug 16 08:43:48 * StingRay_ goes for more coffee Aug 16 08:44:00 Coffee! Aug 16 08:44:19 Of cause! It should solve all my problems!!! :) Aug 16 08:49:16 I need to take a break man debugging this one bug for 2 hours Aug 16 08:49:47 This is what's bad about android, just gives you a generalized error and then you have to look for what's causing it for hours Aug 16 08:50:54 StingRay_: http://stackoverflow.com/questions/3821539/decimal-separator-comma-with-numberdecimal-inputtype-in-edittext Aug 16 08:51:02 but nothing helps Aug 16 08:51:39 We need to petition google for a better debugger Aug 16 08:52:24 the debugger is great.. whats your prob? Aug 16 08:52:27 pifon1: decimal to me doesn't and has never been "," Aug 16 08:52:52 I would not class that as a bug Aug 16 08:53:02 and I'm from europe Aug 16 08:53:02 That was freelancerbob's problem StingRay_ Aug 16 08:53:08 oh yeah sorry Aug 16 08:53:27 your the "not including the lib properly guy" ? Aug 16 08:53:29 debuggers are a mixed blessing because one can get into the habit of not running the code in their head. Aug 16 08:53:29 :) Aug 16 08:53:57 * StingRay_ goes to make coffee Aug 16 08:54:08 * danijoo follows.. Aug 16 08:54:36 My problem was: Aug 16 08:54:45 E/AndroidRuntime(1500): java.lang.NoClassDefFoundError: org.keyconsultant.parse.logintutorial.LoginActivity Aug 16 08:56:03 yes Aug 16 08:56:13 pifon1: lasserix_, the activity which cannot be found is in a different package than the package written at the top of the manifest Aug 16 08:56:22 when launching the app ? Aug 16 08:56:24 have you tried to put it under the same package? Aug 16 08:56:38 No havent tried that Aug 16 08:56:45 try it :) Aug 16 08:56:57 well you should not need to Aug 16 08:56:57 No that error happens when I launch that activity from within the app Aug 16 08:57:04 if the path is correct in manifest Aug 16 08:57:07 easiest way is make an empy inherited class Aug 16 08:57:24 StingRay_: its another error if the manifest declaration is wrong Aug 16 08:57:42 it then says something like "did you declared your class in the manifest"? Aug 16 09:06:59 orientation changes rape my application way too hard Aug 16 09:09:12 you mean rape the design and implentation that you have choosen ? Aug 16 09:09:13 :) Aug 16 09:09:25 design is fine, but it breaks pretty much Aug 16 09:09:47 one thing I notice is that search searches again Aug 16 09:10:01 then the design and implementation is wrong Aug 16 09:10:17 i dont understand why this searches again Aug 16 09:10:31 and "design is fine, but it breaks" is erm… not correct :) Aug 16 09:10:40 look at android lifecycle Aug 16 09:10:52 activity lifecycle and stack Aug 16 09:11:00 then you will understand how to design with it Aug 16 09:11:02 :) Aug 16 09:11:33 well, my main issue right now is that the search action repeats Aug 16 09:11:41 yes Aug 16 09:11:52 and i dont understand the reason why Aug 16 09:12:02 which is why I directed you to the answer Aug 16 09:12:04 :) Aug 16 09:12:05 show as the class :) Aug 16 09:12:20 "look at android lifecycle" Aug 16 09:12:26 is there an updated list of different android devices aspect ratio and also percentage of the market that uses each? Aug 16 09:13:23 mountSin: https://developer.android.com/about/dashboards/index.html?utm_source=ausdroid.net Aug 16 09:14:22 StingRay_: Wow! I get a coffee and I make it! All works! :) Aug 16 09:14:23 thanks Aug 16 09:14:27 StingRay_: Thanks! Aug 16 09:16:20 hmm, if orientation is changed, does the intent change? or does it stay the same it was before that happened Aug 16 09:16:34 the same. but you process it again Aug 16 09:16:49 shit Aug 16 09:17:08 the activity is recreated from scratch Aug 16 09:17:15 so onCreate is run again with all you do in it Aug 16 09:18:30 good to know the intent doesnt change Aug 16 09:18:32 solves my problem Aug 16 09:59:16 please help me..... Aug 16 09:59:20 I have this code http://pastebin.com/mMZExczq Aug 16 09:59:31 Why is that system,out.println not showing up Aug 16 09:59:37 is anything wrong with the code Aug 16 10:01:00 niru: not showing up in LogCat? Aug 16 10:01:26 (you also really should use android.util.Log instead of System.out) Aug 16 10:02:44 Chamooze: yes Aug 16 10:03:10 Chamooze: I dont see the System.out line at all in my logcat whereas other System.out and .err lines are shown Aug 16 10:03:22 Chamooze: do you find any mistake with the code? Aug 16 10:04:32 Apart from misspelling "label" in the put(), I can't see anything that would cause it to skip the System.out-line Aug 16 10:04:41 Chamooze: whereas if i check for the Log.d("TAG","hello"); it is there in Logcat Aug 16 10:05:08 tried debugging and stepping through the code? Aug 16 10:06:04 no let me try Aug 16 10:12:23 you put something with tag "lable" in it, and try to get something with tag "label" Aug 16 10:12:37 which is null, as the tags differ Aug 16 10:12:55 doesn't explain why there's no output at all Aug 16 10:13:06 then in System.out you try to add that null to a string which raises a NullPointerException Aug 16 10:13:15 nah Aug 16 10:13:17 that is not catched because its not a JSONException and your app crashes Aug 16 10:13:20 null.getString returns "null" Aug 16 10:13:56 toString() even Aug 16 10:14:05 sicher? Aug 16 10:14:08 ups. Aug 16 10:14:10 sure? i mean Aug 16 10:14:11 :D Aug 16 10:14:16 yeah Aug 16 10:14:31 plenty of times have i accidentally printed a null value :P Aug 16 10:14:42 and you dont get any other logcat error? Aug 16 10:15:08 oh, not me having issues :D Aug 16 10:15:32 oh :D Aug 16 10:15:34 sorry Aug 16 10:15:35 yeah Aug 16 10:15:37 ^^ Aug 16 10:15:37 kind of expected niru to say he's getting NPEs instead of expected output :) Aug 16 10:15:38 danijoo: ouch sorry Aug 16 10:15:45 I got your points Aug 16 10:16:01 Chamooze: I did not get any errors though Aug 16 10:16:46 weird.. anyway, does switching to using Log fix the problem? I mean, it's best to avoid using System.out altogether Aug 16 10:17:20 does System.out print to logcat? Aug 16 10:17:34 helicopter88: sometimes.. ^^' Aug 16 10:17:45 usually it should Aug 16 10:17:50 i've never had problems getting it to print to logcat Aug 16 10:17:51 unless it doesnt Aug 16 10:18:05 I use Log.d/e/whatever Aug 16 10:18:19 helicopter88: and thats what everybody should do Aug 16 10:18:24 yeah, i do too mostly - sometimes i just forget :) Aug 16 10:19:23 Hi! I was using SoundPool to play ogg sounds in an activity's onCreate() method and I am facing something weird. The sound plays in debug mode but not in normal mode. Aug 16 10:20:17 Btw, does anyone know if it's possible somehow to have a "dynamically drawable" texture (something like drawing on a Bitmap with Canvas) in OpenGL/ES? My googlefu is weak. :( Aug 16 10:21:29 danijoo: Chamooze even Log.d does not show any output.I changed label to lable. I think some issue with that try block Aug 16 10:22:56 niru: did you debug it? does it run that line? Aug 16 10:24:25 Chamooze: yes just now it is showing FORM2 Aug 16 10:24:33 is the data is holding FORM2 Aug 16 10:24:51 Same problem on phone and emulator :/ Help! Aug 16 10:25:05 Chamooze: I think since morning I have issues with Logcat Aug 16 10:25:40 maybe something up with your logcat filter(s)? Aug 16 10:25:53 not sure.. i just tried, couldn't replicate your issue Aug 16 10:26:08 Chamooze: Is that working for you? Aug 16 10:26:57 not the exact same code, just System.out'ing a null variable.. Aug 16 10:29:29 Chamooze: I have to dive into Logcat now :( Aug 16 10:34:11 danijoo: I want to display both FORM1 and FORM2 in a listview. I know how I will display them in a listview. But the obj.getString(name) takes only one value.How to make it to take both form1 and form2? Aug 16 10:34:50 Can I do this. Check for length and iterate over the getString? Aug 16 10:42:56 Cab you explain that again please. Check for length and iterate over the getString? What has that to do with two "forms"? Aug 16 10:43:58 rgr: hi Aug 16 10:44:40 I have a jsonobject as follows http://pastebin.com/rU89jFSn Aug 16 10:47:51 ok hard question Aug 16 10:48:14 can you generate and bing OglES 2.0 textures in NDK and then use them in Java render loop? :) Aug 16 10:49:58 How get all child (visible) views in GridView in onItemClickListener? I have parent var and I think I can access to views through parent var. But don't know how. Aug 16 10:50:28 In simply I need update imageResource in all ImageViews in greed view Aug 16 10:51:03 niru: obj.getString("FORM1") + obj.getString("FORM2") ? Aug 16 10:51:57 Hi, I am trying to start google play services, and now I am fighting with GooglePlayServicesUtil.getErrorDialog() . It's last parameter is requestCode, and people are passing there some random numbers. Is there a proper place these requestCodes are defined, so I can use them without hardcoding? Aug 16 10:53:25 akuda_: just pass a random value. Aug 16 10:53:26 like "static final int REQUEST_CODE_RECOVER_PLAY_SERVICES = 1001;" I found in some tutorial Aug 16 10:53:34 where do they take it from? Aug 16 10:53:43 danijoo: thanks its working Aug 16 10:53:52 the code has no meaning akuda. Aug 16 10:54:05 you pass it in as "payload", and get it back under some circumstances Aug 16 10:54:22 like you do in startActivityForResult Aug 16 10:54:37 danijoo, so the dialog ignores it? Aug 16 10:55:43 yeah. check the documentation on startActivityForResult if you want to know what this is for Aug 16 10:55:53 its only used as callback payload Aug 16 10:59:45 danijoo, so I show the dialog, and what then? I understand a user can both do what it asks for, and do "cancel" or something, but show returns "void" Aug 16 11:00:06 danijoo, should I write a listener, and handle the stuff? Aug 16 11:01:06 startActivityForResult Aug 16 11:01:07 read it Aug 16 11:09:42 danijoo, OK, so I should pass something there, and in case it's returnet to onActivityResult then handle the output, resultCodes, right? Where can I find a list of possible resultCodes of this dialog? Aug 16 11:11:56 akuda_: dialogs and result codes? activites have result codes Aug 16 11:12:09 a dialog is within the same activity that fired it Aug 16 11:13:07 akuda_: this is how I implemented it. Maybe it helps you https://gist.github.com/danijoo/be8c93699d439909b143 Aug 16 11:14:20 and then call this method in every onResume Aug 16 11:40:52 danijoo, yes, that helps. and what do you do, when the method returns false? just "finish()"? Aug 16 12:02:16 akuda_: depends on you Aug 16 12:02:51 if its false. the usern has no googleplayservices. You could finish, or you could allow him to continue but without the gps features Aug 16 12:33:01 i see that sometimes invalidateOptionsMenu() doesn't call onCreateOptionsMenu(). can i somehow ensure onCreateOptionsMenu is always called? Aug 16 12:33:28 or, is there another way change a view that's inside action bar? Aug 16 12:35:10 you can hold a reference to the menu and call all possible functions on it. Aug 16 12:36:56 i have something like this http://i.stack.imgur.com/Bb8tW.png, and i'm holding a reference to that textview that says 03, but when i try to alter it the app crashes Aug 16 12:37:34 hello, my question is not strictly on developing, but could require a developer to answer: i want to stream all my 4.4 android tablet sounds (including calls, as skype using representing it's voice calls as android calls) to my linux PC with pulseaudio audiosystem. i don't mind recompiling android kernel, but please elaborate if total replacement of android audiosystem is needed for my task, or Aug 16 12:37:40 can some kind of audio monitor be used? Aug 16 12:42:15 Hi; Can someone tell me why this line in strings >>> From %s to %s produces error: Multiple substitutions specified in non-positional format? Aug 16 12:42:51 calling it like getString(R.string.range_from_to, string1, string2) Aug 16 12:43:20 lordgreg: if you want more then 1 substitution you have to do %1$s Aug 16 12:43:26 with ascending numbers Aug 16 12:43:42 From %1$s to %2$ss Aug 16 12:43:52 From %1$s to %2$s Aug 16 12:44:16 damn, almost certain i've tried it before -.- Aug 16 12:44:25 because stringformat needs to know at which position argument1 should substitute Aug 16 12:44:29 thank you danijoo Aug 16 12:44:31 yw Aug 16 12:45:55 sometimes i just hit the wall and have no clue what's wrong... even if it such a little bug like this one was. Aug 16 12:55:45 Is using SharedPreferences for storing app settings like sound on/off etc a good idea? Or should I use SQLite DB? Aug 16 12:56:42 good idea Aug 16 12:56:56 SQL is for bigdata. not for preferences Aug 16 12:59:43 bissl zocken? Aug 16 13:01:25 wrong channel? :p Aug 16 13:01:35 yeah XD haha Aug 16 13:01:39 sry Aug 16 13:01:46 ^^' which game :p Aug 16 13:01:50 cs: go Aug 16 13:02:00 pff Aug 16 13:02:21 i would play quake 3 too, if there wouldnt be only norwegian servers Aug 16 13:09:24 danijoo: nope, you're right, i'm retarded. i was saving the reference to the textview.. and then inflating it again and doing stuff on the old reference... Aug 16 13:20:52 yay, got rid of invalidateOptionsMenu altogether. Aug 16 13:49:41 Does CardFragment have to be used in a GridViewPager? Aug 16 13:51:24 no Aug 16 13:59:17 How can I make a notification with an expandable page? Aug 16 13:59:27 (on Android wear) Aug 16 14:11:34 hey ppl Aug 16 14:12:33 hey arruah Aug 16 14:12:43 anybody can help me to build this project on Ubuntu? https://github.com/kncgroup/bitcoin-wallet Aug 16 14:13:09 a am n00b, sorry Aug 16 14:13:51 i need export this project to Android Studio Aug 16 14:13:56 Read the android developer tutorials. Aug 16 14:14:30 you can export the gradle files from eclipse I think : I assume you use eclipse? Aug 16 14:14:37 I have read the manual Aug 16 14:15:35 This project is about using maven. And requires a library ActionBarSherlock. I can not install it. Aug 16 14:16:12 which ide format is it in? Aug 16 14:16:34 eclipse. so use eclipse to build it. Aug 16 14:17:04 github sources ar usually without any project files that make them eclipse/as dependent Aug 16 14:17:16 so you have to import them on your own Aug 16 14:18:06 danijoo, i can't build ActionBarSherlock dependence Aug 16 14:18:26 Since the project layout doesnt conform to AS. it has the pom.xml Aug 16 14:18:41 arruah: why do you want to compile it instead of using the google play version? Aug 16 14:18:45 arruah: why cant you? Aug 16 14:19:02 rgr: you cant do gradle-less projects in AS? wow.. Aug 16 14:19:12 I didnt say that. Aug 16 14:19:41 I said its in eclipse layout. And for a noob to manually address that is serious reading and build.gradle stuff. Clearly he isnt up to that now. Aug 16 14:19:50 true.. Aug 16 14:20:02 https://play.google.com/store/apps/details?id=com.kncwallet.wallet Aug 16 14:21:04 danijoo, Aug 16 14:21:04 I want to check how it works and build the project itself. Aug 16 14:21:44 arruah: sorry cant look at that source anymore without getting bleeding eyes.. Aug 16 14:21:55 all dependencies includes as jars <.< Aug 16 14:22:06 no need to dazzle him. Aug 16 14:22:11 i dont Aug 16 14:22:41 cant see any source of actionbarsherlock in the github Aug 16 14:22:47 did you add it manually? Aug 16 14:23:19 danijoo, https://github.com/schildbach/bitcoin-wallet/tree/master/wallet is parent project Aug 16 14:23:32 yep Aug 16 14:23:38 and there is no ActionBarSherlock Aug 16 14:23:41 in the libs Aug 16 14:24:15 danijoo, "# clone ActionBarSherlock library project" Aug 16 14:24:54 where do you read that? Aug 16 14:25:05 danijoo, here https://github.com/schildbach/bitcoin-wallet/tree/master/wallet Aug 16 14:26:11 why don't you use maven like it tells you to Aug 16 14:26:44 the directions look quite clear and straightforward Aug 16 14:26:55 pfn, i can't build ActionBarSherloc Aug 16 14:27:27 arruah: you dont need to "build" it. You have to include the sources Aug 16 14:27:31 why would you build it Aug 16 14:27:43 follow the instructions in that readme Aug 16 14:27:48 just follow the guide. theres no word about biilding it Aug 16 14:27:52 you run maven and you're done Aug 16 14:27:55 ? Aug 16 14:27:59 danijoo, How to do it? Aug 16 14:28:14 https://github.com/schildbach/bitcoin-wallet/blob/master/wallet/README Aug 16 14:28:19 line by line.. Aug 16 14:28:23 follow the instructions Aug 16 14:28:23 ok, i will try Aug 16 14:28:29 dont do more commands then it tells you Aug 16 14:28:30 tells you step by step how to build it Aug 16 14:29:01 but how i can export this project to Android Studio? Aug 16 14:29:26 this is hardly an andorid studio compatible format Aug 16 14:29:33 woudl require lots of work to do it. Aug 16 14:29:39 arruah, you import it from maven Aug 16 14:29:49 i feel like android is playing tricks on me. i populate a listview with an adapter in a separate thread showing placeholder images next to the title of the item. meanwhile on another thread the images are getting loaded, and when done, via runOnUiThread the images SHOULD get loaded into the view; and it looks like they do, just not when i'm looking at them. the only ones that seem to update are the ones which are currently scrolled out of view; Aug 16 14:29:53 android studio imports maven, iirc Aug 16 14:30:17 RobinJ, notifydatasetchanged Aug 16 14:30:20 danijoo, so then eclipse easier? Aug 16 14:30:30 pfn; what? Aug 16 14:30:32 obviously since its in eclipse format. Aug 16 14:30:33 arruah, android studio imports maven Aug 16 14:30:47 read the README. Aug 16 14:30:47 RobinJ, that's you're answer Aug 16 14:30:51 pfn, ok i will try Aug 16 14:31:04 android studio imports maven Aug 16 14:33:17 if i have a remote view in a notification, and i want to update an ImageButton's image, do you have to show a whole new notification? or is it possible to get a ref to that imagebutton? Aug 16 14:34:58 replace the remote views Aug 16 14:35:09 i am making my first android app. I am only gonna script python, so i just downloaded a template for this. Unfortunately i have to do some editing in the other files as well, for instance androidmanifest.xml. What is the rules for the manifest package name? it now says "com.dummy.fooforandroid" Aug 16 14:35:14 honestly i don't see how that'd be my solution 0.o Aug 16 14:35:19 yeah, you need to post an updated notification Aug 16 14:35:43 Can i change it to "appname" ? or do i have to have at least 2x "." in the name? Aug 16 14:35:49 ok, that's what i thought. just wanted to make sure there wasn't an easier way. thank you pfn Aug 16 14:36:30 patchie, it should be unique and not collide with anything in dns you do not own Aug 16 14:37:05 but it doesnt matter a wit until you come to publish. then you're stuck with it. Aug 16 14:37:07 pfn, aha, yep. but i cant put anything i want in it? Aug 16 14:37:17 pfn: googleing that gives me the impression that i'm not using views and adapters the way i'm supposed to ;.; Aug 16 14:37:20 yes you can if you're not publishing and just developing. Aug 16 14:37:39 you can put just about anything you want that's ascii Aug 16 14:37:46 publishing or developing Aug 16 14:37:57 just don't collide with anyone Aug 16 14:38:03 ahh, so i can call it my appname without dot's in the name? Aug 16 14:38:17 cool, then i understand Aug 16 14:38:17 recommended names follow a dns style convention Aug 16 14:38:33 why is that? Aug 16 14:38:43 you might as well get used to reverse name format e.g net.you.yourapp Aug 16 14:38:58 read package naming guidelines, duh Aug 16 14:38:58 because its readable and provably unique : dns. Aug 16 14:39:01 use. google Aug 16 14:39:18 http://stackoverflow.com/questions/6273892/android-package-name-convention Aug 16 14:39:27 thanks Aug 16 14:40:17 that comes from more than just android Aug 16 14:41:58 i see, good way to make sure it is unique. Aug 16 14:42:17 for the notification, do you have to use a whole new remote view? Aug 16 14:43:08 or does setBitmap work even on an imagebutton? Aug 16 14:43:18 pfn: thanks! that was unexpectedly simple :P Aug 16 14:44:58 er Aug 16 14:45:26 pfn: now all the images load, but when i scroll some out of view and scroll them back into view they've been replaced by a random other image which is also in the listview.. Aug 16 14:48:36 Guys is this activity declaration right in the manifest: Aug 16 14:48:36 http://pastebin.com/wWM4kufb Aug 16 14:48:50 The app crashes whn i try to access that activity Aug 16 14:49:06 Says it cant find the class. Aug 16 14:49:29 pifon: and does org.keyconsultant.parse.logintutorial.LoginActivity exist ? Aug 16 14:49:39 yes Aug 16 14:49:55 should i share a pastebin of that class? Aug 16 14:49:55 and included in build system ? Aug 16 14:50:06 the class means nothing Aug 16 14:50:10 this is execution Aug 16 14:50:27 It is in the apk if thats what you're asking Aug 16 14:50:36 in src Aug 16 14:50:42 in that path ? Aug 16 14:50:46 yes Aug 16 14:51:11 can reference it fine in the ide ? Aug 16 14:51:15 yea Aug 16 14:51:34 pastebin FULL exception Aug 16 14:51:53 ok Aug 16 14:52:43 StingRay_, http://pastebin.com/qApWFyku Aug 16 15:02:01 damnit Aug 16 15:02:14 need to wastch out with running too much code in adapter's getview method it seems :) Aug 16 15:03:24 anyone know an open source music player app? i'd love to browse some code Aug 16 15:04:52 cyanogenmod apollo Aug 16 15:17:42 StingRay_ did you find anything... Aug 16 15:18:31 I'll try changing the classpath Aug 16 15:18:33 well I suspect it's just not built into it Aug 16 15:18:39 build system ? Aug 16 15:18:47 was following this tutorial http://www.vogella.com/tutorials/Android/article.html#tutorialtemperature and got stuck in 25.7 Create utility class - no idea where to put that piece of code.. he says to create a class but where ? how ?... can somebody prescribe me a good android turorial where i can learn by doing examples ? Aug 16 15:18:50 No the class's classpath Aug 16 15:19:02 no I mean what is the build system ? Aug 16 15:19:25 I'm using the android sdk bundle with eclipse.. Aug 16 15:19:31 dalvik i guess Aug 16 15:19:42 ANT Aug 16 15:19:52 unless you configured gradle Aug 16 15:20:11 and whats the build config for ant look like ? Aug 16 15:24:27 No its not gradle Aug 16 15:25:19 well the buildconfig says this: Aug 16 15:25:21 public final static boolean DEBUG = true; Aug 16 15:25:25 thats all Aug 16 15:25:54 ok i wated for some time, so will repost it Aug 16 15:25:56 was following this tutorial http://www.vogella.com/tutorials/Android/article.html#tutorialtemperature and got stuck in 25.7 Create utility class - no idea where to put that piece of code.. he says to create a class but where ? how ?... can somebody prescribe me a good android turorial where i can learn by doing examples ? Aug 16 15:26:49 pifon: make sure however you have everything setup that the lib and path are being built Aug 16 15:27:14 i know that http://developer.android.com/training/basics/firstapp/building-ui.html will be receiving higher plus... but any other user friendly step by step article ? Aug 16 15:27:54 maybe do a cmd line build to see all the output, I'm not much of a programmer so can't really help much beyond that… but I just think the build configuration is not including that path… decompile the apk to confirm Aug 16 15:29:01 solofight: just create a file called ConverterUtil.java Aug 16 15:29:15 ok Aug 16 15:29:17 Leeds: oh, thank you Aug 16 15:29:40 Leeds: am i following an effective tutorial to learn android dev ? Aug 16 15:29:52 solofight: I suspect from your question that it's assuming a certain level of Java Aug 16 15:30:17 oh Aug 16 15:30:57 not necessarily a *high* level, just a... certain level Aug 16 15:31:53 Leeds: Thank you will create the file and continue with the example Aug 16 15:31:59 have fun :) Aug 16 15:38:19 I'm using ZooperWidget and it has a feature to output shell commands but it has a 500ms timeout Aug 16 15:38:59 this is prooving difficult for me due to the fact that my shell commands rely on data from websites so the 500ms time limit isn't really reasonable Aug 16 15:39:15 I was wondering if I could modify the .apk or change this in some way? Aug 16 15:43:38 Well I decided to throw all the login code away and use a different approach Aug 16 15:43:56 It has been 6 hours and that bug has defeated me lol Aug 16 15:44:31 Glitches: you'd probably be better finding somewhere more specific to that widget - or just ask the authors directly Aug 16 15:45:25 Leeds: Yea, I guess... I'm gonna try their forums Aug 16 15:51:43 hi Aug 16 15:52:08 the dev console shows that i am getting several of those AdActivity-Internal errors Aug 16 15:52:09 http://ideone.com/3gFX8r Aug 16 15:52:24 com.google.android.gms.ads.AdActivity seems to cause a NPE in its ctor or so Aug 16 15:52:29 is there anything i can do about it? Aug 16 15:54:23 smart_ptr: what version of playservice are you using? Aug 16 15:54:34 nvm Aug 16 15:54:42 you cant do anything about it Aug 16 15:54:45 see: https://groups.google.com/forum/#!topic/google-admob-ads-sdk/Pppd2drmXJw Aug 16 15:55:33 Seems like its already fixed in the play services app. You still see this error because there are users that havent updated yet Aug 16 15:55:39 I am not quite sure how to tell, I am using the one which came with adt-bundle-mac-x86_64-2014070 Aug 16 15:56:05 ah, okay Aug 16 15:56:52 July 29 about 5% of users received the fix. Aug 16 15:57:06 I guess in a few weeks the error should be gone completely Aug 16 15:57:54 i writing a celcius to fahrenheit code, i get an error message saying Error:(37, 9) error: cannot find symbol variable text... and the related line is text = (EditText) findViewById(R.id.editText); Aug 16 15:58:25 i suppose the purpose of using the text is to assign the value entered by the user in the text box and do operations on the value later Aug 16 15:58:34 solofight: You didnt declase text Aug 16 15:58:51 TextView text = (EditText) findViewById(R.id.editText); Aug 16 15:58:54 is correct Aug 16 15:59:19 danijoo: got it :) thank you Aug 16 16:08:35 according to this http://developer.android.com/training/basics/activity-lifecycle/starting.html an acticity always will go to onResume after onStart.... why ? there can be scenarios where it goes to onStop after onStart right ? Aug 16 16:09:43 according to the lifecycle diagram Aug 16 16:09:59 resumed = = running state ? Aug 16 16:13:13 solofight: no. There is ALWAYS an onResume Aug 16 16:14:07 * solofight goes to read in detail about the difference between onStart and onResume states Aug 16 16:14:12 Resumed = Visible to the user Aug 16 16:14:44 See onStart as something in between onCreate and onResume Aug 16 16:14:49 usually you dont have to use it Aug 16 16:14:53 danijoo: so start is just running at the background ? Aug 16 16:14:57 put your logic in onCreate and onResume Aug 16 16:15:03 oh Aug 16 16:15:07 no its running one after one Aug 16 16:15:12 like its shown in the diagram Aug 16 16:15:36 what is a typical use case where i will need all 3 states namely onCreate, onStart and onResume ? Aug 16 16:16:09 protected void onStart () - Called after onCreate(Bundle) — or after onRestart() when the activity had been stopped, but is now again being displayed to the user. It will be followed by onResume(). Aug 16 16:16:36 solofight: No usecase that I can imagine now Aug 16 16:16:52 there might be some, but If theres no one comming into your mind, you dont need it :) Aug 16 16:18:41 danijoo: then why do we have it in the first place ? Aug 16 16:19:17 really? That surprises me and seems a bit of a non answer sicne onrestart is called after an app is hidden and then onstart is certainly called then too. Aug 16 16:19:28 if i don't know the purpose of why its there - then how will i know whether practically i will need it or not ? Aug 16 16:19:41 you do know the purpose. Its documented. Aug 16 16:19:49 I am taking some photos in a loop and the picturecallback happens only after the method finishes. Is there an elegant way to wait until all callbacks are complete before I proceed? Aug 16 16:19:56 but there are many ways to skin a cat. Aug 16 16:19:57 solofight: I dont know. Maybe its for important stuff inside the framework Aug 16 16:20:09 that you could change, but dont need to in 999 of 1000 cases. Aug 16 16:20:22 oh Aug 16 16:20:33 Please explain that. Aug 16 16:20:38 I guess most of the code that works in OnResume could also go in OnStart Aug 16 16:20:48 I raelly dont know what its for. Aug 16 16:20:57 Hi guys! Aug 16 16:20:57 I am having problems in implementing basic authentication using Android Volley Aug 16 16:21:16 Can anyone please tell me how to do it? Aug 16 16:22:15 solofight, rgr great answer: http://stackoverflow.com/questions/4553605/difference-between-onstart-and-onresume Aug 16 16:22:58 yes. Which shows they have defined uses. And its wrong to say the are effectively the same. Aug 16 16:23:47 rgr: thing is you can still put everything in onResume in most cases as there is no case where one is called without the other Aug 16 16:24:48 I implemented it.But I am getting a 401 error response code from server. Aug 16 16:24:48 https://github.com/KaushikChavali/WebViewerVolley Aug 16 16:25:00 also be careful with this example because its not sure that onStop and onDestroy is called. You dont want to leave your care with a running engine :p Aug 16 16:25:14 care = car * Aug 16 16:25:22 I really shouldnt use keyboards today.. Aug 16 16:27:57 okay after further reading. onStart -> activity (partially) visible; onResume -> user can interact Aug 16 16:28:53 danijoo: thanks for the link - great answer indeed Aug 16 16:29:42 yeah Aug 16 16:30:10 danijoo: one more user clarrified more - Think of it as a person behind a glass door. You can see the person but you can't interact (talk/listen/shake hands) with him. OnResume is like the door opener after which you can begin the interaction. Aug 16 16:30:14 thanks man Aug 16 16:30:17 danijoo: ++ Aug 16 16:30:26 , danijoo++ Aug 16 16:30:31 . danijoo++ Aug 16 16:31:01 yw Aug 16 16:31:06 we should have a bot here - its fun Aug 16 16:31:09 and now im out to get beers :o Aug 16 16:31:11 like in #perl :) Aug 16 16:31:21 danijoo: cheers Aug 16 16:39:35 is there a way to get the image resource from an imagebutton? Aug 16 16:40:06 whats the best way to download and install an APK from inside my own apk Aug 16 16:45:34 Can anyone please help me in implementing basic authentication using Android volley! Aug 16 16:47:27 Does context.getSharedPreferences() automatically create the file if it doesn't exist? Aug 16 16:50:30 astroduck: I suspect it's the comit() that does Aug 16 16:50:38 astroduck not sure, but you'd usually want to use PreferenceManager.getDefaultSharedPreferences(context) Aug 16 16:50:54 (unless using a non-standard preferences xml file) Aug 16 17:09:52 StingRay_ Chainfire: And how do I change an existing value? Does putString also update values? Aug 16 17:11:58 in mem yes Aug 16 17:12:07 commit() writes it Aug 16 17:12:11 just read the docs Aug 16 17:12:13 all there Aug 16 17:14:10 whats the best way to check if two numbers are the same sign? (eg both positive or both negative)? Aug 16 17:16:04 rgr: (x < 0) == (y < 0) ? Aug 16 17:16:35 hey not bad Aug 16 17:17:27 rgr: :D Aug 16 17:19:35 rgr: Might fail in case of signed +/-0.0 Aug 16 17:21:04 Hi, I want optical (cd/dvd) drive support in Android and after googling for hours there doesn't to be a simple solution. What kernel drivers do I need for reading udf dvd's on a external usb dvd drive? Aug 16 17:25:38 thank's gyus i did it http://blog.synyx.de/2013/09/building-android-projects-with-maven-part-1-setup/ Aug 16 17:44:10 hi, I have the problem with GooglePlayServicesUtil.getErrorDialog(code, GameActivity.this, REQUEST_CODE_RECOVER_PLAY_SERVICES); Aug 16 17:44:27 I receive via onActivityResult Aug 16 17:44:48 only resultCode = RESULT_CANCELED Aug 16 17:45:25 any clues? Aug 16 17:55:41 where do i import Downloader from?? i need to use this: Downloader.downloadFile(urls[i]); Aug 16 17:56:56 what downloader do you have in mind ? lol Aug 16 17:57:48 THE downloader Aug 16 17:57:49 :P Aug 16 17:58:01 the one used in here: http://developer.android.com/reference/android/os/AsyncTask.html Aug 16 17:58:12 StingRay_: jug6ernaut: ^ Aug 16 17:59:09 luist: I think thats there as an example Aug 16 17:59:14 not as a class you call and use Aug 16 17:59:26 Downloader is something you would create maybe ? Aug 16 17:59:31 that sucks :P Aug 16 17:59:38 not really Aug 16 17:59:42 but heyho Aug 16 17:59:52 isn’t there a native download class? Aug 16 18:00:14 im already having trouble removing the downloads from the main thread and making them asynchronous Aug 16 18:00:24 -_- Aug 16 18:00:42 http://developer.android.com/reference/android/app/DownloadManager.html Aug 16 18:00:45 the struggles are real Aug 16 18:00:45 O.o Aug 16 18:01:20 oooh this sounds good Aug 16 18:08:11 DownloadManager seems to be already async right Aug 16 18:10:53 gingerbread corresponds to what API? Aug 16 18:11:28 to oul Aug 16 18:11:33 old even Aug 16 18:12:12 anti nobody got time for gb Aug 16 18:12:23 lets say im using DownloadManager which was added in API 9, my minSdkVersion must be at least 9 in the gradle, right? Aug 16 18:14:43 jug6ernaut: ^ Aug 16 18:15:09 Is there an SVG or GIF of the new Android L circular loading spinner? (this one: http://material-design.storage.googleapis.com/videos/components-progressandactivity-progressandactivity-_20spec.circular_201_large_xhdpi.webm) Aug 16 18:20:36 tsyd: why not have a look ? Aug 16 18:21:05 source is out Aug 16 18:21:11 well preview source Aug 16 18:21:43 I think I'll have to. Was hoping someone already created an animated SVG. :) Aug 16 18:22:00 never heard of animated svg Aug 16 18:22:12 no such thing I dont think :) Aug 16 19:56:54 Hello. i have a service that runs a process that writes triggers into the client databsase to watch for changes in that database. problem is when reading from the table it it can occasionaly lock the database while the client is trying to access their database: is there any way around this? should I abandon the use of the process that writes the triggers? Aug 16 19:59:34 hi all- question- when updating app using android studio, adb removes it first or just updates it; my question- if i've created alarms (alarmmanager) in previous version of app and the compile and install using studio afterwards, will alarms also get deleted? if not, how to delete them? Aug 16 20:41:58 hello friends... Aug 16 20:42:29 please what is the best way to get the id of a product/item from a gridView... Aug 16 20:42:53 good day everyone Aug 16 20:44:45 hello detachYo Aug 16 20:55:13 I have a boot up broadcast receiver, that sets queries the database and sets up alarm managers. Is it a good idea to have it exported or not? Aug 16 20:56:40 how do i reference default button height in android layout? Aug 16 20:57:27 hello friends... please how can i get the product database ID from the onItemClick .. http://pastebin.com/zGdNegMN Aug 16 20:57:34 there's @dimen/abs__action_button_min_width Aug 16 20:57:38 but not height.. Aug 16 20:58:51 hello collegue... please how can i get the product database ID from the onItemClick .. http://pastebin.com/zGdNegMN Aug 16 20:59:08 hello, I'm in a bit of a pickle Aug 16 20:59:23 I'm trying to override oncreateoptionsmenu from mapfragment Aug 16 20:59:27 I'm not sure how... Aug 16 21:00:08 can anyone help? Aug 16 21:03:43 hello collegue... please how can i get the product database ID from the onItemClick .. http://pastebin.com/zGdNegMN Aug 16 21:38:06 ublic void onItemClick(AdapterView parent, View view, int position, long id) { Aug 16 21:38:15 hackacke see any of those parameters that might be useful for you? Aug 16 21:43:47 weechat 1.0, been a long time coming Aug 16 21:44:43 irssi! Aug 16 21:48:03 anyone have expuience with phonegap? I need help setting it up Aug 16 21:51:54 most people here are anti phonegap Aug 16 21:52:27 yeah, i know Aug 16 21:52:28 skyflyer you should also consider starting android-phonegap or something, because all those poor people get no love here Aug 16 21:56:13 hm, this is bizarre bankai_au ... i have a dir in the filesystem not showing up in AS file tree Aug 16 21:56:32 f5 Aug 16 21:58:06 heh, on mac f5 is copy class Aug 16 21:58:13 but anyhow i did synchronize and that didn't work Aug 16 21:58:41 i'll reimport the project Aug 16 22:07:26 Is it possible to add Something(Perhaps horizontalScrollView) to be able to scroll through a number picker using the whole screen? Aug 16 22:07:59 I'm pretty bad at UI so I basically have no idea how to accomplish this task Aug 16 22:10:17 Have you considered using a spinner? Aug 16 22:13:33 hello friend, please help me... how can i get product database ID when user click using onItemClick ... code here http://pastebin.com/zGdNegMN Aug 16 22:14:54 SilentByte: It's for a timepicker, I hate it's UX, so I want to remake it, I want to scroll horizontal to change the time and scroll vertical to change the minutes Aug 16 22:15:08 using the whole screen Aug 16 22:17:37 I guess it's scrollers i'm looking for.. Aug 16 22:18:56 Or no, it's not.. Aug 16 22:19:04 hmm... I'm not much of a help. Never did anything like that. But can't you use some kind of gesture listener? Aug 16 22:20:34 I have no idea SilentByte I'll look into it, I know java not android platform :< Aug 16 22:21:28 http://stackoverflow.com/questions/13231756/how-to-handle-left-slide-and-right-slide-events Aug 16 22:21:50 Maybe something like that? Aug 16 22:22:01 hello friend, please help me... how can i get product database ID when user click using onItemClick ... code here http://pastebin.com/zGdNegMN Aug 16 22:27:28 SilentByte: thanks i'll hack it Aug 16 22:36:09 SilentByte: http://developer.android.com/reference/android/view/TouchDelegate.html Aug 16 22:39:30 Hey guys, is there an accepted way to detect a swipe gesture? It looks like there are a couple different ways to do it. Aug 16 22:46:30 hello friend, please help me... how can i get product database ID when user click using onItemClick ... code here http://pastebin.com/zGdNegMN Aug 16 22:46:38 does anyone know why my app is crashing when i try to download a file with this setting: setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED); Aug 16 22:47:54 i have an xml with a android:id/empty textview. when i open the app and fire up the keyboard with this textview on screen, it doesn't get resized and pushes up the action bar. however, when i swipe it away and back (it's a fragment in a viewpager), it behaves normally. what could be the issue? Aug 16 22:53:52 Anyone know how to get custom cnn rss new Aug 16 22:54:48 ewww Aug 16 22:55:33 SilentByte: I did it! Aug 16 22:55:36 SilentByte: to 50%! Aug 16 22:55:53 SilentByte: Do you know if I can "filter" gestures somehow? Aug 16 23:21:54 g00s: sometimes IJ is very lacky with doing a dir listing, you collapse the dir, then open it again it'll usually pick it up Aug 16 23:22:03 lacky? laggy ... Aug 16 23:25:36 I need help with Geofence stuff. Aug 16 23:41:41 made a SO question. halp! http://stackoverflow.com/questions/25344984/how-do-i-make-an-empty-view-inside-listfragment-resize-automatically-at-all-time Aug 16 23:49:46 you shouldnt be using abs any more Aug 16 23:50:05 poor one out for the fallen homie Aug 16 23:50:30 silly google play, publish my app so I can sleep! Aug 16 23:51:21 JakeWharton: lol Aug 16 23:52:03 Zharf: how long ago u publish? Aug 16 23:52:06 it can take a while Aug 16 23:52:11 or...WILL take a while Aug 16 23:52:19 I know... Aug 16 23:52:25 it usually takes about an hour for me :p Aug 16 23:57:15 why not? Aug 17 00:01:08 Beg: Sorry, I was away. Don't know much about gestures unfortunately. Haven't worked with them yet. But I'm glad you got something working =] Aug 17 00:01:51 squirrel, because you should forget that android <4.0 ever existed Aug 17 00:11:21 well, probably. but I'm not sure if that will solve the problem. that stuff is using the latest api under the hood anyway... Aug 17 00:12:00 cls Aug 17 00:14:40 jug6ernaut, there, live in less than an hour Aug 17 00:19:21 Zharf: lol nice Aug 17 00:19:32 Zharf: now wait for the crash reports :P Aug 17 00:20:00 pft, it won't crash Aug 17 00:20:35 http://justpaste.it/gosz Aug 17 00:20:40 Can someone explain what could go wrong in terms of layout? Aug 17 00:20:48 because nothing is showing up on the screen except the first TextView Aug 17 00:21:39 weight only works along the orientation Aug 17 00:21:57 so a vertical linear layout will distribute weight vertically, not horizontally Aug 17 00:23:03 ahhh my baddd that's why Aug 17 00:23:08 thank you JakeWharton Aug 17 00:23:44 okay another quick issue Aug 17 00:23:44 I've got a pretty strange problem - I'm getting a response using OkHttp and when I try to assign the response.body().string() to a String variable, I get an illegalstateexception Aug 17 00:23:55 But if I just Log it then it shows up fine Aug 17 00:23:58 full stacktrace please Aug 17 00:24:26 Everything on there is lining up. But the first TextView is wrap_content. The two EditText and the TextView after are weighted Aug 17 00:24:37 So how can I have the first Textview in its own line? Aug 17 00:27:12 This is all I get: "08-16 20:25:44.478 22016-22089/com.palindromicstudios.hebrewwordguess E/MY_APP_TAG﹕ java.lang.IllegalStateException: closed" Aug 17 00:28:09 are you calling it twice? Aug 17 00:28:51 No Aug 17 00:29:35 I make the call, log it (and it shows up correctly), then when I try to assign it to a String or put it in SharedPreferences, I get the exception Aug 17 00:30:07 ^ I tried each of those things separately, not one after the otehr Aug 17 00:30:48 show me code Aug 17 00:31:19 Sure, hang on Aug 17 00:32:03 Well, apparently asking the question has made it all work Aug 17 00:32:14 That was rather weird though Aug 17 00:32:30 I took out a completely unrelated log statement and it didn't crash Aug 17 00:33:06 Thanks for your help (and all your other invaluable work) Aug 17 00:51:19 Hello I have a quick question. Does anyone know of a solid way to have a secure leaderboard? My idea is to require an internet connection and have my server on google compute engine transmit the game data and have the device respond with the users actions and then have my compute engine server send data to app engine about the game results. This feels like it’s secure and difficult to hack especially if my protocol is difficul Aug 17 00:51:23 costing more money that it makes since it will be a free game with ads and I might only make a few cents per user. So does anyone have any experience with this kind of thing? Is this the best way? Aug 17 00:59:02 bankai_au re-imported - works now, but doesn't show up in the tree. oh well, weirdness Aug 17 00:59:23 it was a generated folder under build/ (build/source-generated) Aug 17 00:59:43 i can see it with shell/Finder, but it doesn't show in AS Aug 17 01:11:48 If I run the app on my android Aug 17 01:12:02 what's the best way to debug it if it crashes? Aug 17 01:15:25 unit tests Aug 17 01:17:23 hm, not sure how to handle this. i have 2 gradle sub-projects we'll call bluetooth-classic and bluetooth-le. for the -le project minSdk would be 4.3 because LE isn't supported. but then the whole project becomes min = 4.3 Aug 17 01:18:16 but of course, -classic is available all the way down to 2.2. so the project should work on a much larger range of things than what -le subproject supports Aug 17 01:18:59 technically, the requirement is uses-feature : bluetooth | bluetool.le required=true Aug 17 01:19:08 but there is no way to express that Aug 17 01:20:00 JesusFreke, logcat the app? Aug 17 01:20:16 Lencl: adb logcat. or the logcat view in your IDE Aug 17 01:20:27 it should have the full stack trace of the exception that caused the crash Aug 17 01:20:47 yes but I use the phone separate from the IDE Aug 17 01:20:59 cause the IDE won't run it Aug 17 01:21:15 so I download .apk and install it every time Aug 17 01:21:19 then use adb, like I suggested Aug 17 01:23:38 Lencl: I have no idea what "alogcat" is. Aug 17 01:23:49 it's an app. it's logcat Aug 17 01:23:57 connect your phone to your computer, enable adb, and use the adb tool that's provided via the android sdk Aug 17 01:24:12 in newer versions of android, apps don't have access to logcat Aug 17 01:24:13 ohh I see Aug 17 01:24:16 okay tank you Aug 17 01:24:42 or rather, they only see a filtered view of logcat, that only includes their own entries Aug 17 01:27:11 JesusFreke, thank you so much that was the best way Aug 17 01:42:32 what are raw asset files? Aug 17 01:45:02 luist: vs? Aug 17 01:45:16 or rather, i assume you mean raw resources Aug 17 01:45:43 can i keep configuration files as raw asset files? Aug 17 01:46:20 either something is an asset (not directly referenced and not given an ID during resource generation) or it's a resource, which may be in the raw directory (directly referenced as a R.id.foo, etc) Aug 17 01:46:32 neither is writeable so I don't imagine you'd find much use making a config file there Aug 17 01:53:43 JesusFreke, lol the logcat is going crazy Aug 17 01:54:20 how am I supposed to track where my app is?? Aug 17 02:02:38 whats the best place to download a config file that only my app will use? Aug 17 02:03:30 your apps data folder? Aug 17 02:17:49 canvs2321: how do i set that up? Aug 17 02:18:16 canvs2321: like… is there an environment variable for it Aug 17 02:35:29 I need help understanding how broadcastreceivers can work with geofence. Aug 17 02:35:57 From my app, if lets say a user can set multiple geofences, what is the role of broadcast? Aug 17 02:37:48 intelliJ or Eclipse? Aug 17 02:40:12 hey guys… this simple code is downloading a file to my regular downloads folder: http://paste.ofcode.org/c2Njnkp9FJXavPZKS9Gacz i need to move this file to my app data folder (internal storage) or just download there already… any suggestions? Aug 17 02:40:29 JesusFreke: Lencl: that's because it starts with a default filter for your app, you can change the filter in filter configurations to show all log output Aug 17 02:43:44 anyone? :( Aug 17 02:43:54 noone is developing at saturday night? thats a shame Aug 17 02:47:23 luist: use manager.setDestinationInExternalFilesDir Aug 17 02:47:25 luist: you try googling? Aug 17 02:47:45 luist: https://developer.android.com/reference/android/app/DownloadManager.Request.html#setDestinationInExternalFilesDir(android.content.Context, java.lang.String, java.lang.String) Aug 17 02:53:19 lasserix hm, i'm tempted to read this ... but its fiction http://www.amazon.com/The-Collapse-Western-Civilization-Future-ebook/dp/B00K33E4J2 **** ENDING LOGGING AT Sun Aug 17 02:59:58 2014