**** BEGIN LOGGING AT Fri May 16 02:59:58 2014 May 16 03:04:16 he left.. May 16 03:19:17 ok guess I got idea how to do that May 16 03:19:33 just new java project May 16 03:22:48 guess if I want to specify tests order I need to make different goals in ant script ? May 16 04:19:37 ehlo May 16 04:23:34 g00s_ thanks man. yeah, is that you? May 16 04:34:36 why the heck does etsy's AndroidStaggeredGrid completely mess up its layout 10% of the time? this is so frustrating May 16 04:35:25 it might just be my emulator though, seems to not mess up on a real device May 16 04:37:56 argh, one of these days i'm going to write my own staggeredgrid library... May 16 05:16:58 picasso's API is the best, i can implement imageview rounded corners in a transformation May 16 05:28:31 if anyone using picasso: is there any way to pass arguments into a transformation? May 16 05:28:40 constructor May 16 05:30:13 oh yeah, thanks May 16 05:30:21 :) May 16 05:33:11 JakeWharton: so how to make context menu on the images of u2020? Sorry, for bugging you with that question May 16 05:33:27 click listener + popup menu May 16 05:33:49 or popup window May 16 05:33:52 i always mix up the two May 16 05:34:24 where I need to add this onClickListener? May 16 05:36:41 on GalleryItemView ? May 16 05:37:19 on the item clicked May 16 05:37:32 for the item to be clicked* May 16 05:38:33 canvs2321-: any peace of code? :) sorry May 16 05:39:36 you populate the images right? do it when you decide to give your images locatable locations May 16 05:40:40 canvs2321-: here https://github.com/JakeWharton/u2020/blob/master/src/main/java/com/jakewharton/u2020/ui/gallery/GalleryItemView.java#L52 ? May 16 05:44:10 that shows how the view is described. you'd set your clicklistener where you inflate a layout that incorporates the use of that view. after inflating the layout and defining the items, you set the clicklistener where you need it May 16 05:45:42 canvs2321-: you mean here https://github.com/JakeWharton/u2020/blob/master/src/main/java/com/jakewharton/u2020/ui/gallery/GalleryAdapter.java#L46 ? May 16 05:46:39 that has nothing todo with setting up a clicklistener :/ May 16 05:47:34 what is the difference between fragment.isVisible() and !fragment.isHidden() ? May 16 05:47:41 because they are not returning the same value :s May 16 05:48:24 Siamaster: based on what? May 16 05:48:41 their visibility -.- May 16 05:49:28 canvs2321-: like this http://pastie.org/9180700 ? May 16 05:50:17 Siamaster: You aren't helping your case any. no code, no returns etc.... May 16 05:50:27 no test results May 16 05:51:07 canvs2321-: onFinishInflate() https://github.com/JakeWharton/u2020/blob/master/src/main/java/com/jakewharton/u2020/ui/gallery/GalleryView.java May 16 05:51:35 if you haven't had this happen to you, you don't need to answer May 16 05:52:36 kamol: You set your click/onLongClick listener on whatever view you want. Then you deal with that action. You are just posting a bunch of code, without thinking how simple it is, once you inflate a layout, define your views, then set the click listeners May 16 05:52:59 Siamaster i've probably read the javadoc between the 2 like 50 times and still don't get it either :) May 16 05:53:03 Siamaster: What is their different values? May 16 05:53:19 &why checking both? May 16 05:53:49 i just noticed that isVisible is returning false, when the fragment is infact visible May 16 05:54:02 however the ishidden was also returning false May 16 05:54:06 View.GONE & View.INVISIBLE are different but both should return Visible == False May 16 05:54:10 so i got confused ^ May 16 05:54:13 ^^ May 16 06:00:11 canvs2321-: ok, I am readying your messages repeatedly :) let me try May 16 06:00:54 return isAdded() && !isHidden() && mView != null && mView.getWindowToken() != null && mView.getVisibility() == View.VISIBLE; May 16 06:00:55 wow ok May 16 06:01:06 that's what isVisible returns May 16 06:07:59 Is there a way to find the intersecting path from 2 paths? May 16 06:37:10 so I'm asked to implement AES 128 bit encryption, and there are only 2 methods to achieve this that I see being tossed around the interwebs May 16 06:37:25 the two methods are shown in the question here, http://stackoverflow.com/questions/8622367/what-are-best-practices-for-using-aes-encryption-in-android May 16 06:38:07 the first one encrypts fine given a seed, but then fails to decrypt given the same seed, BadPaddingException May 16 06:38:18 and I haven't tried the second one May 16 06:38:46 sorry that's the second one (SimpleCrypto) that behaves like I just mentioned May 16 06:42:34 Sicp maybe bouncycastle? May 16 06:42:42 that library May 16 06:42:44 I remember the name May 16 06:43:19 or spongycastle http://rtyley.github.io/spongycastle/ May 16 06:45:45 oh man, stackoverflow is down May 16 06:45:54 programmers everywhere are weeping right now May 16 06:46:11 that basically means the android docs are down XD May 16 06:47:11 hey guys, I'm including another java project within an android gradle build but it is failing at dex because it can't find the included project May 16 06:47:19 everything compiles nicely though May 16 06:47:20 it's down isn't it May 16 06:47:24 I was wondering May 16 06:47:29 so seems like some issue with packaging May 16 06:48:59 well, time to change careers May 16 06:49:41 Sicp are you stuck w something? maybe I can help May 16 06:50:07 nah, not stuck yet May 16 06:50:12 waiting to become stuck May 16 06:50:19 it'll take about 10 more minutes May 16 06:51:16 let's hear what you're upto May 16 06:51:22 *lets May 16 06:51:50 AES May 16 06:52:04 with zero knowledge of real world encryption May 16 06:52:08 woes May 16 06:52:25 ah crypto May 16 06:52:26 Spongy has no usage examples May 16 06:53:34 sorry Sicp, I can't help you with that either :( May 16 06:54:19 Sicp, what kind of AES are you doing? May 16 06:54:28 CBC? May 16 06:54:34 ECB May 16 06:54:36 also, what's your exact goal. May 16 06:54:37 ugh. May 16 06:54:59 just a proof of concept, encrypt something and decrypt it back to original May 16 06:55:37 yeah, if possible use CBC :P May 16 06:55:43 but otherwise, this works, tested: http://techie-experience.blogspot.com/2012/10/encryption-and-decryption-using-aes.html May 16 06:55:50 note the padding. May 16 06:55:52 there's a thread I've saved which talks about the difference between those May 16 06:55:56 but so is down May 16 06:56:39 thanks I will read and try May 16 06:57:09 Sicp, ECB means that each block of your message is encrypted separately May 16 06:57:21 and that its bad for Strings May 16 06:57:24 I remember that line May 16 06:57:26 CBC chains the encryption so it's significantly harder to find out the contents and key May 16 06:57:32 because it doesn't leak pattern as much May 16 06:58:00 CBC is better in pretty much all use cases, but it does require you to generate an IV and send it with your message. May 16 06:59:09 https://gist.github.com/mping/3899247 May 16 06:59:24 (note that IV MUST be fully random and change for every message :) ) May 16 07:04:41 when you have a class which implements Parcelable, the constructor has (Parcel in), so when I create an object of that class do I need to send a specific parameter? what if I wanted to use other parameters in the constructor? May 16 07:05:41 i'm sure Nilium is ready to sign up http://techcrunch.com/2014/05/15/circle-emerges-from-stealth-to-bring-bitcoin-to-the-masses/ May 16 07:06:06 Only if it means tearing it apart from the inside. May 16 07:06:13 Also, I really need to stop saving emails as drafts instead of sending them. May 16 07:06:20 Nilium still have your tooth :) ? May 16 07:06:40 Yes. Had my bite adjusted, thought it was fixed but chewing still hurts when I bite, so maybe not. May 16 07:06:51 The tooth's sensitivity is still an issue but that'll hopefully subside on its own. May 16 07:07:47 If not, that's root canal territory and I dread it mostly for the price and the fact that it'll mean drilling through the crown I had put on May 16 07:09:58 The really annoying thing is I can't afford anything like that righ tnow. May 16 07:11:45 Secondarily annoying is that my family just told me I was imagining the tooth problems until it became clear there really was a problem. Sort of standard for everyone to just treat me like I'm crazy now. May 16 07:13:07 what does the cat think ? May 16 07:13:35 the first answer in the SO question I posted above, works May 16 07:13:35 just tried May 16 07:13:35 and it's CBC May 16 07:14:05 it is not impressed May 16 07:14:23 Cat thinks it wants food. May 16 07:14:29 http://i.imgur.com/GgMAntA.jpg ⇐ Much like this baby macaw. May 16 07:15:16 lol May 16 07:18:53 Parrots are so cute. May 16 07:19:00 ugh; i'd like to create a Menu and use MenuInflater.inflate(int, Menu) … but there are actually 3 kinds of menus, and the most sane one (OptionsMenu) has a provate ctor May 16 07:19:15 *private May 16 07:20:03 context menu doesn't support icons May 16 07:24:23 Sicp yeah, with SO gone i'm dead May 16 07:24:34 fuck it, time for bed May 16 07:27:58 Private ctors: the spice of life. May 16 07:53:15 canvs2321-: thank you for your hints May 16 07:53:45 JakeWharton: thank you, I am on the way to make popup window :) May 16 07:58:02 the second answer here uses the ECB that I want, http://stackoverflow.com/questions/6877758/android-aes-encryption-zero-padding May 16 07:58:33 but when I want to decrypt, I can only get the last portion of the message decrypted back May 16 07:58:56 http://pastie.org/9180991 May 16 07:59:17 I only get back "sage" May 16 08:02:47 Hm, Stack Overflow's in maintenance mode, it looks like May 16 08:02:54 And I wanted to see if the answer I wrote earlier had gotten more upvotes :/ May 16 08:06:20 How to check if my app is having memory leak? May 16 08:07:12 Profile it. May 16 08:08:01 Can you please elaborate? Currently I am removing getApplicationContext() from my classes. I read about it yesterday May 16 08:08:53 Why would you remove that? May 16 08:10:14 StackOverflow seems to be offline right now, but I read few questions about Context. and at many places it was written getApplicationContext() may lead to memory leak as it is not re-created on config changes etc, while activity is recreated May 16 08:10:49 so getApplicationContext() should be used only for those things which needs to be maintained throughout the process May 16 08:11:00 and would not be affected by config changes May 16 08:12:10 You're supposed to use the application context in place of a regular context where it makes sense because that avoids context leaks. May 16 08:12:13 Nilium: see this discussion here http://stackoverflow.com/questions/3826905/singletons-vs-application-context-in-android May 16 08:13:14 http://android-developers.blogspot.com/2009/01/avoiding-memory-leaks.html ⇐ See this blog post here. May 16 08:14:46 Yes, Thank you, I read that yesterday. Basically the thing I understood is, never hold on to any variable or view if you dont really need it to be..um..permanent(?). Is this right? May 16 08:15:27 Being a new developer, always thought I can get context only by getApplicationContext. Everywhere I did getActivity().getApplicationContext() to get the context May 16 08:15:41 Activities are contexts. May 16 08:16:40 Then if I have 2 different activities, will i have 2 contexts then? The context should be one, right? May 16 08:17:06 You'll have at least three contexts. May 16 08:17:43 The application context, which always exists, the current activity context, and any other activity's context may or may not exist. May 16 08:20:18 If you retain references to either past their lifespan, it goes without saying that you're leaking them. May 16 08:20:18 *either activity May 16 08:20:19 Thanks for the application. Last question - As the activity extends context, in a fragment class, are these things are same? - getActivity().this; getActivity().getApplicationContext() and MyActivity,this? May 16 08:20:26 *thanks for the explaination May 16 08:21:00 No. May 16 08:21:36 As I already explained, the application context is different from the activity contexts (and isn't an activity anyway) May 16 08:21:49 yes, ok. May 16 08:22:47 Also, I'm pretty sure getActivity().this doesn't really make sense and MyActivity.this similarly doesn't (why not just 'this') May 16 08:23:42 The last one only really seems to make sense in the context of an inner class, which is one of those things you might want to avoid having in an activity/context/service/etc. class May 16 08:24:56 I think I understand a bit now. Thanks for the time. :) May 16 08:25:57 Still. Is there a tool or something to "monitor" a leak? May 16 08:26:09 while the app is running May 16 08:27:18 I have a gradle issue: 1) android project that refs 2) java project, compiles fine but lint/dex fails because can't file classes of java project May 16 08:27:39 You can do the usual hprof profiling stuff. Might be other tools. You'll have to look that up yourself. May 16 08:27:39 do I have to copy jars (task) for this? May 16 08:27:51 Thanks Nilium May 16 08:28:42 Hopefully that helps. When in doubt, read the docs. May 16 08:52:50 Is it necessary to use the support lib for DrawerLayout if I am only targeting v16? May 16 09:03:18 Guys, I was just about to Export Signed Application Project and got Fatal Lint Errors that aborted my exportation, and entire Android Manifest file practically turned red? May 16 09:03:18 Error message says: "app_name" is not translated in af, am, ar, be, bg, ca, cs, da, de, el, en-rGB, en-rIN, es, es-rUS, et-rEE, fa, fi, fr, fr-rCA, hi, hr, hu, hy-rAM, in, it, iw, ja, ka-rGE, km-rKH, ko, lo-rLA, lt, lv, mn-rMN, ms-rMY, nb, nl, pl, pt, pt-rBR, pt-rPT, ro, ru, sk, sl, sr, sv, sw, th, tl, tr, uk, vi, zh-rCN, zh-rHK, zh-rTW, zu May 16 09:03:18 Since when you need to translate every single thing into every single language? May 16 09:03:18 I didnt have to do this previous time May 16 09:03:18 somewhere, you are claiming that it is May 16 09:03:18 and being held responsible for your claim May 16 09:03:18 barq: yes May 16 09:03:19 remove Lint Error Checking May 16 09:03:19 ok, how/where do I do this? May 16 09:03:19 I develop in Eclipse May 16 09:03:19 I think it's in the same menu you used for Export Signed May 16 09:03:19 ok May 16 09:03:19 Ill take a look May 16 09:03:19 sec May 16 09:03:20 I have something there called "Clear Lint Markers"? May 16 09:03:20 http://stackoverflow.com/questions/15083673/every-time-i-make-some-changes-android-lint-error-comes-why-so May 16 09:03:20 nvm think Ive found it http://android-er.blogspot.se/2012/12/turn-off-lint-error-checking.html May 16 09:03:20 same yea May 16 09:03:20 ah ok May 16 09:03:21 ok so now that site recommends me to clean and rebuild May 16 09:03:21 is this easy to do? May 16 09:03:21 I have found under "Source" Clean Up May 16 09:03:21 is that it? May 16 09:03:21 when right clicking my project May 16 09:03:23 nvm May 16 09:03:24 foundit May 16 09:03:29 thx for help, Sicp :) May 16 09:05:05 hi May 16 09:05:22 Has anyone had any styling issues with the SearchView when it came to samsung devices? May 16 09:05:46 JakeWharton: did you encounter anything like this while working with ABS? May 16 09:06:19 My styling applies fine on non-samsung devices, samsung devices seem to be reapplying their own style or reverting my change May 16 09:06:35 its actually visible when expanding the searchview May 16 09:06:47 it has my applied style then quickly gets overritten by something else May 16 09:07:01 I still can't find any working example of AES ECB May 16 09:07:06 hm May 16 09:07:06 I test this on an LG and it behaved exactly as expected May 16 09:07:10 I got CBC to work, but can't get ECB! May 16 09:07:12 imagine May 16 09:07:14 * GyrosGeier has a curious problem May 16 09:07:36 when the power is plugged in, I get random taps generated May 16 09:18:30 ok I got it to work May 16 09:18:35 I beat it May 16 09:18:43 with a ..calculator May 16 09:19:57 hmmmm May 16 09:19:57 No g00s.. May 16 09:19:57 Ok, sleep then. May 16 09:34:39 in this layout http://pastie.org/9181235 how can i declear that the ListView should never push the linearlayout below it out of the screen? May 16 09:35:06 what happens now is everything looks fine until it gets too many items in the list then it just takes up all the screen space May 16 09:37:53 Any1 here knows what dimensions a screenshot for 7-10 inch tablets on Google Play should have? May 16 09:38:10 they only mention minimum dimensions: 320px, maximum: 3840px or something like that May 16 09:45:05 Any idea why the MediaPlayer is not emitting an error event when the WiFi connection is turned off? May 16 09:45:13 While playing a remote HTTP stream of course May 16 09:48:03 Trekka12, the dimensions of the Nexus 7 and Nexus 10 May 16 09:55:05 ok, encryption works May 16 09:55:16 I'm going to post a gist about it, by Golly May 16 10:12:40 ok ty autrilla, btw. if I dont physically own a nexus 10, possible to still get a screenshot from one somehow? May 16 10:12:50 I only own Nexus 7 May 16 10:13:05 Trekka12, device art generator I think it was called May 16 10:13:17 but to make the app "tablet based" I have to add hardware-requirements in Manifest file Google Play says, As well as a 10 inch tablet screenshot May 16 10:13:21 ok May 16 10:13:23 ill check May 16 10:13:23 ty May 16 10:19:04 is the file i upload to the playstore bitwise identically to the ones my users will download? May 16 10:27:50 o/ May 16 10:33:22 Hi all, I have two Locations (lat + long), is there a default function to get he center of the two? May 16 10:42:11 anyone using uiautomator ? May 16 10:51:57 guess anybody May 16 10:51:59 *nobody May 16 10:53:35 uiautomator/ May 16 10:53:38 what's that? May 16 10:59:54 If a service is started from inside an activity, on which thread does it run? The main thread? May 16 11:06:23 ok I manager May 16 11:06:27 *managed May 16 11:06:36 and he left May 16 11:06:43 so no uiautomator for him May 16 11:07:27 a little bit pain in ass May 16 11:07:41 but when using wisely, might be good tool May 16 11:24:41 Does the google-play-services_lib crash on 2.2, even if not using it? I tried not calling any functions in it, if the Build.VERSION was too small, but there was still a crash report. May 16 11:25:58 shouldnt. Do you have a stacktrace? May 16 11:29:49 FrancescoV: write it with simple algebric geometry May 16 11:30:14 danijoo: Stack trace = http://pastebin.com/RzVnvAHH (not sure how to deobfuscate it, using retrace doesn't seem to help). May 16 11:30:44 ok. then it is worth nothing ;) May 16 11:31:39 danijoo: Can still see it's all com.google.android.gms.internal., and some thread. May 16 11:32:21 which GPS are you using? the new one or the support version for Froyo? May 16 11:32:58 The new one. But I don't do any calls to it if it's running on Froyo. May 16 11:34:02 so you are running something like if(android.os.Build.VERSION.SDK_INT >= 9) ? May 16 11:34:34 Yes, Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD (which is equivalent). May 16 11:35:08 mh.. that should work May 16 11:35:24 can you post the code where the error occures? May 16 11:36:05 No, because I don't know where it occurs, seems to be in some random thread that I don't start. May 16 11:36:36 then I cant help you. sorry. maybe someone else has a solution May 16 11:38:05 Guessing maybe the library starts a thread from some init function, which then crashes. If so, not sure what to do about it. May 16 11:38:15 Thanks, anyway. May 16 11:38:24 it shouldnt do that. May 16 11:38:40 unless you use it or some views from it May 16 11:39:20 But the stactrace is really strange, as it does not include anything from you application.. May 16 11:39:29 that makes it really hard to debug May 16 11:39:32 good luck though :) May 16 11:39:48 Oh... Maybe figured out why. Was looking at the wrong app. The Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD check is missing. May 16 11:39:52 Thanks. May 16 11:39:59 :) May 16 11:40:14 ☺ May 16 11:45:25 If a service is started from inside an activity, on which thread does it run? The main thread? May 16 11:45:36 service always starts on main thread May 16 11:45:45 same main thread like any other activity runs :) May 16 11:46:40 Mavrik: if I use a media player inside a service, wouldn't you think it would make sense to start it in its own thread? May 16 11:46:53 so other actions can be executed in the activity, while the player runs in the background? May 16 11:46:56 is it possible to have a menu item in the actionbar with an icon and text under? May 16 11:47:10 you should pretty much always start a new thread in a service May 16 11:47:25 Mavrik: vanilla Runnable or AsyncTask? May 16 11:47:55 like class ServiceLauncher implements Runnable May 16 11:51:05 I'm constructing ~100 Polygons from a JSON file. Doesn't seem to be great performance wise. Would I see markedly better performance reading from a plain old text file instead? May 16 11:53:14 Depends if you're able to write a parser that performs better May 16 11:53:20 platzhirsch, Runnable is just an interface. May 16 11:53:31 Mavrik: sure, but you pass it to Thread May 16 11:53:58 If you're not using a json streaming api, you'll probably be able to gain a bit there May 16 11:54:10 new Thread(new ServiceLauncher()).start() May 16 11:58:22 Hey again guys, A Question about this for the Android manifest file... - I am using minimumSDK 11, and Google Play says is below minimumSDK 13 it is recommended to have it as: - But if I have this as such, Does that make my app Not work - on the Smartphones? May 16 11:59:41 Trekka12: large is everything with more than 640x480 May 16 12:00:06 smaller phones will not be supported if you dont add normal support May 16 12:00:14 oO no it isn't May 16 12:00:25 large refers to screen size, not resolution May 16 12:00:45 Also, minsdk 11 is pointless May 16 12:00:47 "large screens are at least 640dp x 480dp" May 16 12:00:48 Up it to 15 May 16 12:01:22 Yes, dp May 16 12:01:39 sorry :) Im always talking about dp when talking about sizes in android May 16 12:01:48 nexus 5 is normal, that's hardly a "smaller phone" May 16 12:02:43 If admob throws a java.lang.SecurityException, on some phones with a buggy version of google play services installed, would using setDefaultUncaughtExceptionHandler and discarding SecurityExceptions work? May 16 12:03:09 Cyp_: what is your goal? Just not getting that exception reported anymore? May 16 12:03:47 Goal would be stop whatever thread the ads are using from crashing the rest of the app. May 16 12:04:08 Not sure whether it would do that, or just stop the reports. May 16 12:04:40 im not sure May 16 12:04:50 btw is there already a version where this bug is fixed? May 16 12:04:54 (This is a different crash than I was asking about earlier.) May 16 12:05:20 yeah i know that one. Have the same issue but just ignoring it :p May 16 12:06:52 As far as I understood from skimming random posts, it broke, then was fixed, then later broke again recently, and was maybe fixed again (and will maybe break again someday). May 16 12:06:56 danijoo but what is I do not have the tag at all? May 16 12:07:03 (But might have understood completely wrong.) May 16 12:07:14 any site with all android stock roms? May 16 12:07:16 SimonVT why pointless?= May 16 12:07:28 Trekka12: why should you do that? May 16 12:07:45 It isnt there to begin with I mean? May 16 12:07:49 either you are supporting everything with that or nothing. dunno May 16 12:07:50 ergo - might not be needed? May 16 12:08:04 try it out :) May 16 12:08:06 How come it works on emulator and device when runned as config without the tag then? May 16 12:08:30 Trekka12, because http://developer.android.com/about/dashboards/index.html#Platform May 16 12:08:36 because the screen support tag does not prevent from installation May 16 12:08:55 ? May 16 12:09:03 Do most users report crashes? Does one reported crash mean there was 1 crash total or 10 crashes, 9 of which weren't reported? May 16 12:09:04 it tells the google play store if the app should show up for that device May 16 12:09:27 Cyp_: Noone reports crashes May 16 12:09:33 danijoo - my last app i published on google play did not have tag and it works perfectly? May 16 12:09:35 its confusing May 16 12:09:46 Cyp_: I would go with about 1% or lower May 16 12:10:07 Trekka12: then no tags might mean "support for every size" May 16 12:10:40 that is the problem 'might' It would be awesome if google developers or someone actually had concrete answer :/ hate the vagueness ;P May 16 12:11:14 since I bet also several others have the same question, an answer should exist somewhere ud think May 16 12:11:22 I dont understand where your problem is: actually there are only 2 possibilities. Either it means support for nothing (which would make no sense at all) or support for everything May 16 12:11:31 ok May 16 12:11:39 that it worked for you, points out that support for everything is actually true May 16 12:11:44 ok May 16 12:11:46 true May 16 12:11:47 Hmmm, if 1% report crashes, then it crashes on start for about 400% of users. May 16 12:11:50 didnt think of it that way May 16 12:11:56 Ill keep it clean of the tag then May 16 12:12:09 ls May 16 12:12:10 seems to save lot of extra work if I had to list every device category known to man May 16 12:12:12 ;P May 16 12:12:33 ;) May 16 12:12:54 Thanks for help mate, rly appreciate it and u taking time and having patience :) May 16 12:12:55 ty May 16 12:13:47 Cyp_: maybe even lower.. I have about 120k active installs for an app and under 10 reports of that GPS issue May 16 12:13:59 SimonVT, why would I up the minSDK to 15? May 16 12:14:07 wouldnt that mean support for Less devices? May 16 12:14:31 Click the link to see the amazing number of devices running 11-14 May 16 12:14:45 oh u sent a link May 16 12:14:49 to preoccupied to notice May 16 12:14:50 sory May 16 12:14:53 ill check it now May 16 12:15:58 more ppl are still on api 8 then 11 ^^ May 16 12:16:32 hmm, so ur argument is that the 17% of the available users on a roughly estimate for my app, is not worth having support for? May 16 12:16:53 how so danijoo? it says 1% API 8 only May 16 12:17:07 while 16% on api 10 May 16 12:17:09 oh May 16 12:17:10 nvm May 16 12:17:15 I misread May 16 12:17:21 forget what i said SimonVT May 16 12:17:24 and 11-14 isnt even listed :) May 16 12:17:29 noticed that now May 16 12:17:29 xD May 16 12:17:32 my bad May 16 12:17:39 13 is listed tho May 16 12:17:50 maybe I should lower it to api lvl 10? May 16 12:17:56 to account for those 16%? May 16 12:18:00 so basically you only have to decide between 8, 10 and up May 16 12:18:11 8,10, 15 and up May 16 12:19:01 hmm. May 16 12:19:11 10 is equally pointless May 16 12:19:13 just afraid I might lose a function within the app if I go down to 10 instead of 11 May 16 12:19:18 how so? May 16 12:19:47 16% of all android users in my eyes is A Lot May 16 12:20:04 Trekka12: just check if your app would be affected by downgrade and if you can workaround it May 16 12:20:15 any simple way of checking that? May 16 12:20:22 It's unlikely that 16% of your users will be running gb May 16 12:20:23 run it :) May 16 12:20:29 except for manually lowering the minSDK api req. and see if it crashes and burns?= May 16 12:20:38 The added development time isn't worth it May 16 12:20:51 check whats changed since then and if you use these function May 16 12:20:55 what changing the manifest xml file? May 16 12:20:58 hi guys i waant release an update of my application. before inserting google maps api I had a file. keystore. I always have to use that files that I've always used from the beginning? May 16 12:20:59 1 line of code May 16 12:21:02 isnt worth 16%? May 16 12:21:20 U dont have to roxdragon, but u could May 16 12:21:23 Trekka12: I think this is also largly dependent on the kind of your app May 16 12:21:24 It's not just 1 line of code May 16 12:21:35 its not SimonVT? May 16 12:21:57 If you want to write a decent app, you should to take advantage of the APIs newer platforms offers May 16 12:22:01 For example if its a game, its unlikly that you ever get 16% because the audience for games iusually buys new phones every 1-2 years May 16 12:22:15 danijoo its a company representative app with fragment based user interface - and the support library, google maps api, email function, call function May 16 12:22:16 While still maintaining compatible with older platforms that don't have these features May 16 12:22:32 Release certificate <<<< in android doc May 16 12:22:48 i can release my app with previous .keystore? May 16 12:23:13 did u have google maps API b4 update? May 16 12:23:21 check the docs Trekka12 May 16 12:23:36 ? May 16 12:24:02 otherwise you use debug certificate during development, and the release api key you get from google console if i remember correctly May 16 12:24:24 whilst the debug certificate u get from window > preferences > android > build in eclipse interface May 16 12:24:42 Trekka12: i have download Google maps API from SDK.... and i have read this https://developers.google.com/maps/documentation/android/start?hl=it May 16 12:24:53 but u havent added it yet? May 16 12:25:06 Trekka12: yes is work fine May 16 12:25:08 I thought ur update with API was done already May 16 12:25:14 SimonVT: btw I have 12.2% for Api 10. So I wouldnt call that pointless May 16 12:25:24 haha May 16 12:25:26 :) May 16 12:25:35 well what do u know :) May 16 12:25:46 it* May 16 12:25:56 but it really depends on what audience and stuff like that May 16 12:26:00 yea May 16 12:26:11 I want to be able to reach out to as much ppl as possible May 16 12:26:25 If you can support it easily, I would still develeop for API 10 May 16 12:26:27 due to the fact that its supposed to reach out to all the comapnys customers as well as potential customers May 16 12:26:33 ok May 16 12:26:39 what docs were u refering to earlier danijoo? May 16 12:26:51 api version changelogs May 16 12:26:51 where I could see whether api 10 will ruin my app or not? May 16 12:26:59 via wikipedia? May 16 12:27:01 there you can see what google aded with new api versions May 16 12:27:07 cuz ive read them there once b4 i think May 16 12:27:56 http://developer.android.com/reference/android/os/Build.VERSION_CODES.html if youclick on aan API level here, you get the changes May 16 12:28:17 If you go down from your current api level step by step, you should see how far you can get May 16 12:28:23 http://en.wikipedia.org/wiki/Android_version_history May 16 12:28:32 ah May 16 12:28:37 same thing on my wiki page May 16 12:28:41 yeah May 16 12:28:50 but still expect a bit more of work May 16 12:29:05 bugfixes and stuff like that May 16 12:29:17 because old versions sometimes behave a bit ... "silly" May 16 12:29:23 ;/ May 16 12:29:27 ok, nvm then May 16 12:29:37 a task for another assignment :) May 16 12:29:45 im on a deadline unfortunality May 16 12:29:50 have to focus on whats important May 16 12:30:08 thought it was as simple as changing the minSDK in manifest xml file May 16 12:30:17 but if not.. dno if im prepared to invest more time into it May 16 12:32:59 how much more work were talking May 16 12:33:00 ? May 16 12:34:36 danijoo: If I was making an app now, I wouldn't spend the extra development time it takes to get another 10% users May 16 12:34:51 And force myself to support it for the next few years while compatibility becomes increasingly painful May 16 12:35:27 SimonVT: I agree. Its definitly easier writing with support from the scratch then downgrade.. May 16 12:35:42 But I still would support :) May 16 12:36:15 If we talk about income, 10% is a lot.. May 16 12:37:21 Not if it adds 15% to your development time May 16 12:38:40 well. I dont do this full time and as I dont have any other ideas for new apps, its worth it May 16 12:39:26 it really depends on an app May 16 12:39:40 yes May 16 12:39:51 if you have an app that only shows data and can be useful to wide audience - you have to be dipshit to not take a step to support it slightly further back May 16 12:39:58 if it's a game or video app... not worth it May 16 12:41:02 Yeah thats what I said Mavrik. 1) Its by far easier to add support for only showing some textviews and stuff and 2) the usual audience for a game buys new phones and dont hang on api 8 May 16 12:41:35 not to mention that these phones often dont have the needed hardware anyways May 16 12:42:03 the thing is mostly to just consider the fact that most people don't hang on to API8 phones by choice May 16 12:42:17 and to think if including ABS and 9oldandroids is really that painful May 16 12:43:15 ABS works like a charm for example May 16 12:43:19 and not really much work. May 16 12:44:50 there are quirks still :) May 16 12:44:55 but graceful degradation and all that May 16 13:03:07 For a media player running in a service, would you recommend a vanilla Java thread or a HandlerThread? May 16 13:06:23 both are just a thread May 16 13:06:26 it's the API that's different May 16 13:06:36 use the one that covers your usecase. May 16 13:06:59 yeah don't see a looper case there May 16 13:07:06 still have to figure out if I really need a thread May 16 13:15:53 Should data sources and database helpers be singletons? May 16 13:21:57 hello May 16 13:22:25 i can't start android-sdk-update-manager on gentoo linux. i get Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Display May 16 13:27:01 solved it May 16 13:29:06 Hi there. May 16 13:31:18 1) What would be the most elegant way to communicate between fragments: e.g. in one fragment something happens through asynctask and I'd like this value to be transferred to another fragment's gui element like spinner or smth? 2) How to preserve gui settings/values when switching between fragments e.g. I'm in home fragment and I have some buttons and spinners, switches etc with values, now I go to another fragment and go back to home and values are May 16 13:31:54 1.) Use a message bug. May 16 13:31:57 *message bus May 16 13:32:09 (EventBus / Otto on github) May 16 13:32:12 Mavrik which bus are you using May 16 13:32:18 Otto with Dagger is awesome May 16 13:32:40 Once you learn to use it, of course. It's simple to learn. May 16 13:33:11 Otto is pretty good May 16 13:33:17 mattblang, I prefer EventBus May 16 13:33:21 but both work May 16 13:33:35 IIRC Otto got the functionality I've missed in the later versions May 16 13:35:49 Mavrik: thanx for the otto, what about second q? May 16 13:35:55 Mavrik, autrilla, jonc-1 say you are loading two fragments in. you want one to tell the other to do something. when could you fire the message? I guess the question is how does it load the fragments in. does it completely load one, then the other, or does it load them in parallel, calling the lifecycle functions May 16 13:36:03 just using Otto May 16 13:36:22 how would I pass the Bus() object to a service? Wrap it inside a parcelable class? This seems to be annoying May 16 13:36:32 Mavrik, autrilla, jonc-1 becase if it loaded them in serial you couldn't tell one to do something to the other in the lifecycle methods since one of them wouldn't be loaded, and thus not registered with the bus May 16 13:36:51 or use dagger for it? ^^ May 16 13:37:00 platzhirsch, or just make a singleton? May 16 13:37:04 default buses are good as singletons May 16 13:37:09 platzhirsch, singleton May 16 13:37:10 ah right, I just need a singleton May 16 13:37:14 Otto is annoying because it doesn't have thread switching May 16 13:37:18 declare as static May 16 13:37:23 e.g. dispatching messages from background tasks to main thread is annoying as hell May 16 13:37:24 mh May 16 13:37:29 Use Dagger to automagically inject the singleton May 16 13:37:41 Mavrik: shit, this is exactly what I need to do May 16 13:38:03 EventBus has "onEventMainThread" which will always receive event on the main thread May 16 13:38:05 inject a singleton? I would simply declare a bus variable as static in my activity May 16 13:38:17 mattblang, hmm, that's an interesting issue, race conditions between fragments are really problematic May 16 13:38:24 Mavrik: but you can enforce main.thread retrieval on Otto May 16 13:38:26 platzhirsch, that's also possible. Now I prefer injection though May 16 13:38:32 mattblang, honesly... I'd really look into the code to see if you can somehow get rid of the race condition May 16 13:38:46 mattblang, you need to process the event in the lifecycle methods? May 16 13:38:50 platzhirsch, yes, but that means you still have to add pointless boilerplate to do runOnUiThread May 16 13:38:56 Mavrik, jonc-1 well, I haven't done any code yet. that is the reason. wasn't sure how that would work. May 16 13:38:59 it's just a check, not actuall thread dispatcher May 16 13:39:28 Otto is fine for my use case. I guess if your use case is different, EventBus might be better May 16 13:39:28 mattblang, what kind of event are we talking about? May 16 13:39:55 For now I just have an event to recreate the actionbar May 16 13:40:26 Mavrik, jonc-1 yeah, like imagine a master detail. with event bus it would be cool if you could tell the master to fire a load event to the detail to autoload to the first item in the list May 16 13:40:27 also sticky events make lifecycle handling so much easier :) May 16 13:40:46 mattblang, if I have to, I use sticky events from EventBus for this May 16 13:41:05 sticky events "wait" until they're replaced and get delivered automatically when an object registeres as sticky May 16 13:41:12 so you send a stick event May 16 13:41:21 and when a new fragment registeres to bus in onResume May 16 13:41:26 it'll get delivered the waiting event with data May 16 13:41:32 and it can immediately show the adta May 16 13:41:48 Mavrik, I think you can do that with Otto too May 16 13:41:52 that's how I usually handle loaded data passing around fragments... it also simplifies handling of orientation changes and stuff May 16 13:42:04 autrilla, mhm, I think there are some kind of static producers now there too May 16 13:42:48 mattblang, that pretty much solves your race condition because the event will wait on the bus and get delivered to everyone listening for it until it's replaced or manually removed :) May 16 13:43:17 Mavrik, if you register in the constructor you'll get the sticky event before lifecycle methods ever get fired? May 16 13:43:22 Should data sources and database helpers be singletons? May 16 13:43:30 jonc-1, yes. May 16 13:43:39 That's pretty awesome May 16 13:43:42 I always register on the bus in onResume / on Pause May 16 13:43:47 autrilla, "depends" May 16 13:43:59 Mavrik Ahh, cool. yeah. the reason I ask is because I recently tried to move to a single activity architecture, but that got way too complicated. I think I am about to move back to activities, just using fragments when I need to do a master/detail. I hate to do that. was thinking maybe the event bus would help May 16 13:43:59 Mavrik, on what? May 16 13:44:11 Mavrik help with the single activity architecture design that is May 16 13:44:25 autrilla, how often do you read from the datasources... keeping the DB open when you don't use it is a waste of resources May 16 13:44:33 autrilla, if you read / write to DB constantly... yesh May 16 13:44:41 Mavrik, why not just the constructor? If you are keeping a reference inside the fragment to the data you need, it should only be needed if destroyed correct? May 16 13:44:52 Mavrik, I see, so I should just construct the data source, use it and close it May 16 13:45:02 If I'm not reading constantly May 16 13:45:08 Hi. I have a problem with ViewStubs. I have 2 viewstubs in my layout file. I fetch an imageURL with JSoup from some pages and use it display an image with Picasso. If the imageUrl is present, then the ViewStub with "Text overlay over image" is used, otherwise the viewstub with a simple textview. May 16 13:45:13 Although the height I have given is wrap_content but the image loads (from the viewstub) loads with half the required height. All layouts are here http://pastebin.com/HmunMzLy May 16 13:45:48 jonc-1, just my style... I usually send events around that rely on fragments being properly constructed May 16 13:46:11 This happens almost 90% of time, and rarely image is displayed with full height May 16 13:53:10 If I have an ArrayAdapter hooked to a list view it works fine if I initialize it directly with new elements, they all get displayed, but at a later point not so much anymore May 16 13:57:14 A question if I may address it? May 16 13:57:53 If anyone is around, that is. May 16 14:00:22 Kal`Darion, sure May 16 14:00:48 platzhirsch, what do you mean? May 16 14:01:23 autrilla: ah, I think I just have to set up onNotifyChange to true May 16 14:01:30 arrAdapt.setNotifyOnChange(true); May 16 14:01:46 platzhirsch, or just call notifyDataSetChanged() May 16 14:01:59 yeah, or just call notifyDatasetChanged whenever you make a change May 16 14:02:00 Well, autrilla, I copied the contents of my cell phone (all files and folders) to my computer. Is there a way to decode the SMS files to read them on my computer until I can replace my cell? May 16 14:02:27 There was information on my cell that I am in need of. May 16 14:02:57 autrilla: yeah maybe, because setNotifyOnChange does not work May 16 14:02:57 Kal`Darion, this is not the place to ask that. You can ask at #android. May 16 14:03:01 Thoughts on secrets with ProGuard?: http://developer.android.com/tools/help/proguard.html May 16 14:03:14 I did, there is a hundred people in there and no one responding. May 16 14:04:42 Kal`Darion, what is your SMS app? May 16 14:04:59 Also, do you have another Android phone? May 16 14:05:27 I have an old phone I'm not doing anything with, yes. May 16 14:05:42 I'm not sure on the SMS app. whatever the phone uses for text messaging. May 16 14:06:01 autrilla: apparently only notifyDataSetChanged helped here. Cheers man May 16 14:06:09 No problem May 16 14:06:11 Please use #android for help with your device. This channel is for app dev. May 16 14:21:30 Otto or EventBus is so much better than LocalBroadcasts May 16 14:22:30 otto is pretty awesome May 16 14:22:41 local broadcasts....overkill imo May 16 14:25:39 I have two widgets that I wanna have in one LinearLayout, I want the second to have layout_width= "wrap_content" and the first one to layout_width="fill_parent". But this results in the first taking up all the space immediately, what should I do? May 16 14:25:52 I´m getting some native errors in my bug report list. How should I go about fixing them, or should I just ignore them? My app does not use the NDK. May 16 14:26:29 mihalybak: you use layout_weight for that May 16 14:26:51 how? :( May 16 14:29:12 mihalybak: You set layout_weight=¨1¨ to the left one that should fill up the available space. May 16 14:52:17 What view can I use to display a small "Scroll to Read" at the bottom of a scrollview, and when the user scrolls up it slides-down? May 16 14:53:27 Make a FrameLayout and put your scrollview & textview with the text in it. May 16 14:53:32 And align the textview to the bottom May 16 14:54:46 Thanks. how can I make it in a circular shape? May 16 14:55:01 Use a drawable May 16 14:55:06 Search on Google May 16 14:55:16 Ok thanks May 16 14:59:36 Is it possible to use LocalBroadcastManager in v16? May 16 15:00:24 It´s in android.support, so I think yes May 16 15:01:42 yes May 16 15:02:49 Can't import the lib. May 16 15:03:23 The lib is default, look it up May 16 15:04:22 import cannot be resolved May 16 15:04:50 https://developer.android.com/tools/support-library/setup.html May 16 15:17:41 I want to have items ordered by position, so I have a position column. How can I make it so that if the last position is 4, the next one will be five? May 16 15:18:13 Is this about databases, UI, Java List? May 16 15:18:38 Floens, databases May 16 15:20:05 If you´re using sqlite, and you mean that when you´re inserting a new row the position should be one more than the last position, set autoincrement on the position column. May 16 15:22:36 so... there's a 50 toast limit on Android apps, it appears :D May 16 15:22:53 autrilla: be aware that using auto-increment and then deleting somethign will lead to non-contiguous lists. it'll still be ordered, but it won't be contiguous May 16 15:22:56 * Hiraghm lols May 16 15:23:20 dragorn, I want it to be continous, that's the thing May 16 15:23:28 How does this query look? http://pastebin.com/T2e32nBt May 16 15:23:31 you'll have to re-order manually then May 16 15:23:31 Hiraghm: Try opening 100 AlertDialogs. It crashes most phones May 16 15:24:23 I was using Toasts to track variables I was parsing out of a text file, (also logging their values) May 16 15:24:46 hm. can you re-use Toasts with different text? May 16 15:25:10 shopping lists have categories, and I don't really know if I did it right May 16 15:25:13 If I have support lib 19.1 installed is that compatible with v16? May 16 15:25:45 Hiraghm: why not use logcat? And I don´t think so May 16 15:25:51 barq: yes May 16 15:26:02 autrilla: Why not use ORM? May 16 15:26:13 Floens, it has problems with HashMaps May 16 15:26:23 And this allows for more control May 16 15:26:25 And for more bugs May 16 15:26:29 Oh ok May 16 15:26:39 autrilla: does the position have to be stored in the database? when you get it out, you'll probably be putting it in a listview, at which point it'll give you a position when you go to put the information in a view anyway May 16 15:26:58 then you'll never have to worry about what position it's in while it's in the database, just that it's sorted May 16 15:27:03 frankdoyle, yes, because I want reordering May 16 15:27:22 Floens, I am using logcat. It was just a convenient way to avoid looking from my tablet to my monitor and back May 16 15:27:48 frankdoyle, does the query seem ok? May 16 15:28:00 autrilla: they can be ordered without being continuous May 16 15:28:11 autrilla: You can set all the positions again after the reorder May 16 15:28:12 a list with ids 1,4,5,7,8,9 is still in order May 16 15:28:24 After the app run, I check logcat to verify. Actually, Toast not-showing all the variables logcat was showing helped me root out an error May 16 15:28:47 frankdoyle, yeah, but how could I tell it that the item with ID 1 goes after the item with id 4? May 16 15:28:48 Hiraghm: https://play.google.com/store/apps/details?id=com.readystatesoftware.ghostlog this may be handy for you May 16 15:30:22 autrilla: you sort by something other than ID. so if id 1 has string "apple" and id 4 has "cup" and you sort by the string instead of the id, then when you change id 1 to "desk" it'll come after May 16 15:30:30 I´m getting some native errors in bug reports on the dev console. How should I go about fixing them, or should I just ignore them? My app does not use the NDK. May 16 15:30:39 frankdoyle, for example with the position field. That's what I sort with May 16 15:30:48 Thanks.... that looks perfect! May 16 15:31:04 yeah, but positions don't have to be contiguous May 16 15:31:28 I'm just trying to parse MD5 files. May 16 15:31:49 that'll be perfect for dumping the data as I read it in. May 16 15:31:49 frankdoyle, no, not really May 16 15:32:03 It's more tidy if they are May 16 15:32:12 is the nav drawer becoming essentially required for apps that are at least moderatly complex? May 16 15:32:24 or is there a good alternative May 16 15:32:33 For complex apps, I'd use it May 16 15:32:34 autrilla: what do you care if it's tidy? the database certainly doesn't May 16 15:32:42 frankdoyle, OCD May 16 15:32:46 :p May 16 15:33:29 but then you're turning what should be a simple insert into a much more complex operation May 16 15:33:30 Mavrik, for data source usage on an Adapter, should I keep it alive for as long as the adapter is used, and let GC take care of it? May 16 15:33:51 frankdoyle, then just setting it to autoincrement would suffice May 16 15:33:52 I see May 16 15:35:29 autrilla: what kind of data are you working with? May 16 15:35:34 if you can give an answer May 16 15:37:05 frankdoyle, what do you mean? May 16 15:37:18 Mostly strings May 16 15:37:33 autrilla: like, are you trying to order people, songs, purchases? May 16 15:37:49 frankdoyle, categories, shopping lists and products May 16 15:43:49 I'm having trouble playing an MP4 file in a video tag in a webview when the MP4 is encoded with Wowza. It works wonderfully when the MP4 is encoded with Handbrake, using the Web optimized options. My first question is, how can I tell what options an MP4 file was encoded with? Can I see if it is using incorrect codecs or codec options? May 16 15:44:05 hello guys May 16 15:44:27 yesterday and today i've try to demand my question in root channel May 16 15:44:37 but i've not receive a reply.. May 16 15:44:53 Jonathan_Eyre: MediaInfo to inspect video codecs http://mediaarea.net/en/MediaInfo May 16 15:45:02 if someone know the behavior of certificate in android, pls see this: May 16 15:45:10 Floens: Thanks! May 16 15:45:12 http://stackoverflow.com/questions/23697191/android-system-certificate-add-it-programmatically May 16 15:45:54 Jonathan_Eyre: Video playback abilities differs greatly per device. You´re gonna have a bad time :P May 16 15:52:37 why does the amazon app store have to be sideloaded? just curious. May 16 15:53:21 Is DatabaseManager deprecated in v4? May 16 15:54:00 There´s no DatabaseManager? May 16 15:54:44 There used to be in v3 May 16 15:55:13 The ContentProvider for SQLite May 16 15:55:36 What are you trying to do? May 16 15:56:29 Getting up to standard with the v4 stuff. Looking at ContentProviders now. May 16 16:05:11 why can't i search a gradle project? I imported it with the eclipse gradle plugin May 16 16:06:45 dont know if you can use android gradle project with eclipse May 16 16:16:09 Hey guys, can you suggest an open source android project where i can contribute even if i am not a expert developer? writing tests or even translation would work to begin with :) May 16 16:17:57 meadhikari: HoloIrc seems to need tests... It crashes from time to time, as well. May 16 16:17:58 Translate to what language? May 16 16:18:02 I created a new android project with android studio, i added a button on a fragment and set in it's xml that the onclick with call foo function, in the PlacedholderFragment class i created a public void foo(View v). but the runtime can't find it. i get an exception when i click the button.what am i missing ? May 16 16:18:38 Ologn, i know English and Hindi and Nepali too May 16 16:21:23 hi! I'm using NVidia's NDK debugger via the Eclipse plugin. it successfully launches the application, but fails to enter the debug mode, saying "GdbServerReceiver: /system/bin/sh: gdbserver: not found". I verified that gdbserver is bundled inside the APK at lib/armeabi/gdbserver. not sure what to do next May 16 16:24:00 nfrs: it needs to be in the path May 16 16:24:37 p_l|backup, how can I add it? May 16 16:25:06 nfrs: root the device, add gdbserver to /system/bin or /system/xbin May 16 16:25:41 p_l|backup, *sigh* I wanted to avoid rooting it, and one of the manuals said bundling the gdbserver didn't require root May 16 16:26:03 nfrs: at the very least then, you need to change the path used to start gdbserver May 16 16:26:15 p_l|backup, sure, but how? May 16 16:26:28 no idea, I'm not using NVidia's tools May 16 16:27:05 how does the deployment process work? does it extract apk's contents somewhere on the sd card? May 16 16:27:17 if so, maybe I could give the absolute path May 16 16:28:24 the plugin allows to specify arbitrary path in the filesystem May 16 16:34:19 Why does this just create the first table? http://pastebin.com/tFHq6FBP May 16 16:36:02 autrilla: have you tried executing them one by one? May 16 16:36:21 danijoo, no, I should try that May 16 16:37:25 yeah. maybe there is an error in your syntax May 16 16:37:33 its kinda hard to see it in this format :) May 16 16:39:04 danijoo, Caused by: android.database.sqlite.SQLiteException: near "autoincrement": syntax error (code 1): , while compiling: CREATE TABLE categories(_id integer primary key autoincrement, name text not null, hidden text, shoppinglistID integer, position integer autoincrement); May 16 16:39:25 what the heck is hidden text? May 16 16:40:25 hidden as text type May 16 16:40:30 no May 16 16:40:36 this is what you defines as variables.. May 16 16:40:41 ah, nvm May 16 16:40:42 yes May 16 16:40:43 COLUMN_NAME + " text not null, " + COLUMN_HIDDEN + " text, May 16 16:40:52 COLUMN_HIDDEN = "hidden" May 16 16:41:05 yeah yeah May 16 16:41:08 I'm dumb May 16 16:41:22 what's the error in that SQL query? May 16 16:41:27 It looks ok to me May 16 16:41:41 mh May 16 16:41:45 yeah it looks ok May 16 16:41:55 let me try that in a real mysql database sec. May 16 16:45:35 actually its auto_increment for mysql :) May 16 16:45:46 CREATE TABLE categories(_id integer primary key auto_increment, name text not null, hidden text, shoppinglistID integer, position integer auto_increment); should work May 16 16:45:50 danijoo, and for SQLite too? May 16 16:46:31 danijoo, because it doesn't give any errors for the first statement May 16 16:46:39 Which has autoincrement too May 16 16:46:50 youre right.. May 16 16:47:06 ah wait.. May 16 16:48:38 sqlite automatically assumes an integer primary key to be autoincrementing May 16 16:48:55 does sqlite even have autoincrement for other keys? May 16 16:49:03 not sure May 16 16:49:18 you can just define _id as integer primary key and it should work May 16 16:49:33 primary key should, foreign shouldn't May 16 16:49:42 Mavrik: maybe for chars? dont know May 16 16:49:54 I'm 80% sure sqlite has no autoincrement as such May 16 16:49:58 but you need to set a trigger May 16 16:50:06 been awhile since I did something like that :) May 16 16:50:09 I never worked with it outside of android May 16 16:50:22 Yep, Napalm told me to look at triggers yesterday, but someone told me using autoincrement would be simpler May 16 16:50:24 because its just a shitty version of mysql :D May 16 16:50:39 autrilla: _id automatically autoincrements May 16 16:50:40 It's difficult to make something worse than mysql May 16 16:50:45 just delete that keyword May 16 16:50:50 Has anyone here been able to get a test project setup in the same dir as the project they're testing? May 16 16:51:02 https://www.sqlite.org/autoinc.html May 16 16:51:03 danijoo, the problem is not with that autoincrement, but with the next one May 16 16:51:05 autrilla: sqlite is a lot worse in my opinion :D May 16 16:51:12 I've been trying to follow the instructions from Google but it doesn't work out the way they say it will May 16 16:51:42 autrilla: if you leave autoincrement away syntax is ok May 16 16:52:07 CREATE TABLE categories(_id integer primary key, name text not null, hidden text, shoppinglistID integer, position integer autoincrement); ? May 16 16:52:07 in the gmail app, if you are on an email detail, you cans wipe to continue going through the list without having to go back. what type of view is this? May 16 16:52:16 I doubt that will work, but lets test May 16 16:52:37 ok. now I know why. May 16 16:52:53 Because I need triggers? May 16 16:52:57 besides sqlite does not have an autoincrement, you are trying to set it on 2 columns May 16 16:53:04 _id and position May 16 16:53:34 it doesn't? May 16 16:53:35 So yeah, I need triggers May 16 16:53:44 if you run that on this site: http://sqlfiddle.com/ May 16 16:53:51 you get "Schema Creation Failed: Incorrect table definition; there can be only one auto column and it must be defined as a key: " May 16 16:53:54 It just doesn't allow autoincrement on stuff that aren't primary keys May 16 16:54:36 Now let's get onto that rusty SQL May 16 16:54:50 so yeah.. you would need a trigger on your position column May 16 16:55:10 If I set up a trigger, I should even be able to have it all tidied up, so that positions go from 0 to numberofproducts May 16 16:55:49 If you only want to go from 0 to numberofproducts May 16 16:55:57 why not using _id for that? May 16 16:56:55 rusty SQL ^^ May 16 16:57:20 i totally agree. I learned to love mongoDB some time ago May 16 16:57:22 danijoo, because changing the primary key is not a good practice May 16 16:57:32 nosql databases are so much easier to plan May 16 16:57:55 autrilla: changing an autoincrementing field isnt good practice too :p May 16 16:58:14 danijoo, it's not going to be autoincrementing ! May 16 16:58:33 "position integer autoincrement" oO May 16 16:58:46 Not anymore! May 16 16:59:07 did you split those tables to 3 strings instead? May 16 16:59:08 ok ;) May 16 16:59:49 razor-, yes May 16 16:59:59 and it worked? May 16 17:00:07 No and yes May 16 17:00:13 it should also work as one string but its easier to debug if you keep things seperated May 16 17:00:25 no and yes? May 16 17:00:42 razor-: is was a syntax problem, not a problem that it is in one string May 16 17:01:12 but if you run it as one execute, its hard to find the command that causes the problem because the rest of the commands wont be executed May 16 17:13:06 Would this be a correct trigger? CREATE TRIGGER fix_shoppinglist_positions AFTER INSERT ON shoppinglists FOR EACH ROW BEGIN ATOMIC UPDATE (and here I'd have to set each position, but I have no clue how to do it) END; May 16 17:24:50 It seems like the gator outside the office is gone May 16 17:40:38 Hi my list selector is not retained on screen rotation, the listview is and the detail fragment too. The item is still selected because the correct details are displayed in the the detail fragment. only the list selector colors are not retained. May 16 17:41:58 how are you setting the colours, WantToCode ? May 16 17:42:19 I have had my own listselector but it not working with ?android:attr/activatedBackgroundIndicator also May 16 17:42:29 i have single choice activated May 16 17:42:41 and setRetainInstance also May 16 17:42:48 and you're saving the selected items in onSaveInstanceState ? May 16 17:42:53 yes May 16 17:43:11 and setting them in onResume? May 16 17:43:12 the correct details from the selected item is also displayed May 16 17:44:37 in onViewCreated, I check if the savedPosition is there, if yes then mListView.setItemChecked(position, true); May 16 17:45:09 I think checked is different from activated May 16 17:45:14 but I'm not sure May 16 17:45:42 for singleChoice mode, shouldnt we use setItemChecked? May 16 17:45:57 lemme check the docs May 16 17:46:26 setSelection May 16 17:46:27 "Sets the checked state of the specified position. The is only valid if the choice mode has been set to CHOICE_MODE_SINGLE or CHOICE_MODE_MULTIPLE." May 16 17:47:02 should I use setSelection? May 16 17:47:06 think so May 16 17:47:19 let me try May 16 17:49:23 um. I dont think so. The list is bouncing and list items rearrange on click May 16 17:50:11 hm, ok May 16 18:00:50 leslie: my savedInstanceState which I receive as argument in onViewCreated is null. May 16 18:03:58 leslie: in my onSaveInstanceState I have the super command and putInt command for the Bundle. May 16 18:10:21 how do I reverse tether so that my android device can connect to the internet over usb? May 16 18:11:27 sdaq: Not exactly what you want, but can't you create a hotspot? May 16 18:11:53 flan3002: unfortunately this needs to be a wired connection May 16 18:12:17 flan3002: it is for a demo in a large conference where wifi connectivity is unreliable May 16 18:12:27 You're going to have to trick it into seeing it as a network device May 16 18:12:57 could you just use the computer you'd be hooking it up to as a wireless hotspot (some wireless cards allow this) May 16 18:13:01 sdaq: Unreliable? When created from the very device that delivers the connection? May 16 18:13:47 there will be a small laptop running a server that the android device will need to talk to through the usb connection May 16 18:13:52 flan3002, sdaq is not asking to have the android device be the source of the network connection May 16 18:13:57 so no internet actually. May 16 18:14:10 you don't need internet, just a network connection May 16 18:14:20 jonc-1: correct May 16 18:14:32 jonc-1: I know. I use my laptop from time to time as a hotspot... May 16 18:15:02 http://lifehacker.com/5369381/turn-your-windows-7-pc-into-a-wireless-hotspot May 16 18:15:05 sdaq: And for that purpose, even hosting on the phone will do. May 16 18:15:51 I wonder if this will do: http://www.anothem.net/archives/2010/10/15/android-usb-connection-to-pc/ May 16 18:15:59 use adb to forward ports May 16 18:16:24 give er hell and find out May 16 18:16:35 shouldn't take more than a few minutes to get it going May 16 18:16:40 jonc-1: But... for a demo wireless is so much cooler™. May 16 18:17:06 the lifehacker link is wireless May 16 18:17:11 except when it doesn't work May 16 18:17:28 there doesn't need to be an active internet connection, just an active network connection available May 16 18:17:40 we actually do that here May 16 18:17:54 some of our stuff goes into areas where we are not allowed to connect to their networks May 16 18:18:06 so we have to run our own little network for our demos May 16 18:18:39 the shitty thing is, some places we aren't allowed to have any sort of network running at any time May 16 18:19:20 leslie: any ideas? May 16 18:19:34 g00s: solve my problem please? :( May 16 18:21:18 sorry, I was afk, WantToCode May 16 18:21:30 g00s: my list selector is not retained on screen rotation, the listview is and the detail fragment too. The item is still selected because the correct details are displayed in the the detail fragment. only the list selector colors are not retained. the Bundles are all null when I check them after rotation. May 16 18:22:39 leslie: I have found that the bundles are all null. tried in onCreate too May 16 18:22:58 uh, you saved the data in onSaveInstancetate ? May 16 18:23:05 yeah May 16 18:23:14 setRetainInstance? May 16 18:23:24 maybe. I dunno May 16 18:23:44 g00s: outstate.putInt(..) and then the super.onSaveIn... May 16 18:23:56 leslie: its set to true May 16 18:24:11 is it a listfragment? May 16 18:24:20 yes May 16 18:24:47 I have given the listview the default ID android:id="@android:id/list" May 16 18:25:40 try setting setRetainInstance to false? May 16 18:27:17 leslie: nah. It reloads the list if set to false. May 16 18:27:29 ah, hm May 16 18:32:03 holy shit everyone, heads up ! May 16 18:32:15 this is very important http://www.ericsink.com/entries/multiple_sqlite_problem.html May 16 18:32:27 if you are using sqlite ;) May 16 18:32:57 I think autrilla have had a day with sqlite. May 16 18:33:11 Oh I have May 16 18:34:28 Still trying to do that trigger thing May 16 18:36:46 I am still stuck with this null Bundle! :@ May 16 18:37:32 its a shame the bundled sqlite versions are so out of date May 16 18:38:20 its also a pain to fin docs pertinent to a specific version, since the website always has the latest May 16 18:40:01 the I/O schedule is up May 16 18:41:24 I wonder how easy it is to use your own sqlite implementation with the ndk May 16 18:42:11 leslie from C it should be OK; you'd have to figure out how to get to it from javathough May 16 18:42:43 yeah. I guess you could copy the jni stuff from the Android source May 16 18:43:09 is there a way to query if i'm running in an instrumentation test? May 16 18:43:21 JakeWharton, what? May 16 18:43:28 If you are running what May 16 18:43:34 the app May 16 18:43:36 http://developer.android.com/reference/android/app/ActivityManager.html#isRunningInTestHarness%28%29 May 16 18:43:47 isn't there a method called something like userIsAMonkey? May 16 18:43:53 or is that different? May 16 18:43:54 hi, is there any known issue with aosp/master and manta? i cant seem to be able to build a working system image May 16 18:43:58 yes. but i'm not using monkeyrunner May 16 18:44:03 ah right May 16 18:44:44 leslie: You mean http://developer.android.com/reference/android/os/UserManager.html#isUserAGoat() ? May 16 18:45:02 no, a different one, flan3002 May 16 18:45:25 flan3002 http://developer.android.com/reference/android/app/ActivityManager.html#isUserAMonkey() May 16 18:45:55 Oh, that one actually has a purpose... O.o May 16 18:46:05 :P May 16 18:46:24 I like the query for teleportating goats more... May 16 18:46:37 *teleporting May 16 18:47:44 Finally I think I've got the trigger, I have to run this in it: SET @a:=0; UPDATE shoppinglists JOIN (select id, @a:=@a+1 AS new_position from shoppinglists order by position asc) AS positions USING(id) SET table.position = new_position May 16 18:47:44 JakeWharton http://developer.android.com/reference/android/app/ActivityManager.html#isRunningInTestHarness%28%29 maybe? May 16 18:48:02 yeah, i just pasted that May 16 18:48:06 it references the device, not the app May 16 18:48:21 hm May 16 18:52:52 leslie g00s I chaged my mAcitivatedPosition integer to static. It is now working, but I am not sure if it is a good practice. Using static variables causes leaks? May 16 18:53:24 well, not really May 16 18:53:30 because the memory is still available May 16 18:53:46 leaks are when you can't reach memory you have allocated May 16 18:54:05 should I make it null at onDestoy or somewhere? May 16 18:54:27 maybe there's some way of checking if android.test.runner is loaded, JakeWharton ? May 16 18:54:53 hey autrilla May 16 18:55:08 Hey! May 16 18:55:35 Needless to say I did as you said a dropped SQlite May 16 18:55:35 JakeWharton: could you add a buildConfigField in your build.gradle and use that? May 16 18:55:38 ORMLite* May 16 18:56:03 jaynewstrom: that doesn't let me know how the app was started at runtime May 16 18:56:07 i could still open it manually May 16 18:57:25 i see. i'm curious as to what you need it for. i know you do some crazy stuff. but that seems like an interesting use case. May 16 18:59:48 Napalm, I should just add the trigger when creating the database, right? And set it for every table modification May 16 19:00:28 jaynewstrom: i want to force certain configurations May 16 19:01:19 Like what? i would guess you would want your tests to run with very very similar configurations to what production does. otherwise what are you testing? May 16 19:02:47 hey, guys. does anyone know of a FOSS alternative phone app? i've been struggling for a few days to superimpose my view in front of samsung's own phone app during an active call. May 16 19:02:54 i want to force the use of mock data May 16 19:03:04 we don't use instrumentation tests for testing much May 16 19:03:17 just for walking through the app and assembling screenshots and GIFs May 16 19:04:09 autrilla: have you figured out how to get your trigger working for position field? May 16 19:04:17 gotcha. i would think you could use gradle or dependency injection for getting your mock data too. but clearly i'm not exactly sure what you're doing. anyway, if you find out a way to do it. i would be curious as to what you find. May 16 19:04:32 we are using dependency injection but the testable app is configurable May 16 19:04:39 it can point to prod, staging, or mock data May 16 19:04:54 i want to force mock data (and ignore the config setting) when the app is running under instrumentation May 16 19:05:09 Napalm, I think so, I'm writing it to IDEA now May 16 19:05:41 i know a shitty way to solve it... public static boolean IS_TEST = false; and then set it to true inside the runner May 16 19:05:48 but i had hoped there existed already a query API May 16 19:07:17 true. May 16 19:07:27 I can almost guarantee it isn't going to work May 16 19:08:25 yeah except it does May 16 19:08:52 i guarantee it! May 16 19:08:59 JakeWharton, I wasn't talking about your thing, I wish I knew what you are talking about May 16 19:09:02 oh :( May 16 19:09:12 multiplayer notepad fail May 16 19:09:44 My thing did indeed fail, but I think it's because of a previous mistake May 16 19:10:07 hello everybody May 16 19:10:27 autrilla: you want a trigger on before insert into your table to find the next position location and set it to the field May 16 19:10:59 Napalm, yes, that too. But I also need a trigger to set the positions nicely, so that they go from 0 to the number of rows May 16 19:11:00 Caused by: android.database.sqlite.SQLiteException: near "SET": syntax error (code 1): , while compiling: CREATE TRIGGER fix_shoppinglist_positions AFTER INSERT ON shoppinglists BEGIN SET @a:=0; UPDATE shoppinglists JOIN (select _id, @a:=@a+1 AS new_position from shoppinglists order by position asc) AS positions USING(id) SET shoppinglists.position = new_position END; May 16 19:11:03 I knew it! May 16 19:11:49 ? May 16 19:12:12 that looks crazy May 16 19:12:14 Ah, I am missing ATOMIC, BEGIN ATOMIC, I think May 16 19:12:35 Napalm, and that's just to tidy the positions May 16 19:14:16 Napalm, is there a better way to do it? May 16 19:14:20 (silly question) May 16 19:14:26 What is the better way to do it? May 16 19:16:06 anyone know about my active call question? May 16 19:16:54 jbsio: What do you mean? What's wrong with the AOSP app? May 16 19:19:19 hm, aren;t that many android sessions at i/o May 16 19:20:37 actually seems the focus is web apps May 16 19:20:41 autrilla: whats your CREATE TABLE.. PM it too me May 16 19:20:53 g00s: i noticed that also :( May 16 19:21:04 its only 2 days this year though May 16 19:23:30 jbsio: Tried that? May 16 19:29:47 flan3002: i'm working on my own app as part of a project that integrates with active call May 16 19:30:23 on some samsung devices, com.sec.phone gets launched when simulating picking up the hook to start the call, which blocks my view from being visible. May 16 19:30:42 Napalm MenuBuilder is private :| May 16 19:30:56 screw it, for this app i'm just going to one-off the drawer May 16 19:31:00 ? May 16 19:31:01 lol May 16 19:31:30 MenuInflater.inflate(int, Menu) ... May 16 19:31:38 what to put into Menu ? May 16 19:31:47 Context Menu / Submenu don't allow icons May 16 19:31:52 jbsio: Well, I don't (want to) own a Samsung phone, you'll have to find someone else... Good luck. May 16 19:31:52 Submenu doesn't allow submenus May 16 19:31:54 yes you can May 16 19:32:13 i had submenus in submenus work before May 16 19:32:16 ive May 16 19:32:22 O.o May 16 19:37:20 flan3002: thanks anyways May 16 19:38:53 g00s, why do you want to use a Menu for the drawer? May 16 19:42:11 autrilla meh; i just thought it would be easy to specify icons, text, id's in a menu.xml and inflate that … then just have the listadapter show the menuItems May 16 19:42:22 no big deal May 16 19:42:32 g00s, the last time I did it I just made a layout for it, it's easier May 16 19:42:40 hehe i think so ! May 16 19:42:45 has anyone here ever used scala for android? May 16 19:42:58 danijoo pfn and Nilium May 16 19:43:15 is it really worth a try? May 16 19:43:24 they like it May 16 19:43:53 I have a new project and think about learning scala while doing it May 16 19:44:38 so performance is basivally the same, isnt it? May 16 19:44:53 its just another way to actually write the code down May 16 19:45:15 i have no idea really; one thing is I think you have to use proguard - which to me, was a big negative May 16 19:45:52 why do I need that? (I didnt really know anything about how to actually use scala) May 16 19:46:06 might be the scala runtime is too big May 16 19:46:18 Nilium can help, pfn is on vacation May 16 19:46:23 Why is transfer from AsyncTask to Retrofit so weird ^.^ May 16 19:46:47 What's weird? May 16 19:48:22 Dont know yet :D Will tell you once i get something working ^^ May 16 20:10:45 Because AsyncTask is awful May 16 20:11:43 JakeWharton, what alternative do you recomend? May 16 20:11:52 is there a way to change my drive for my system folder in android studio? May 16 20:11:59 Retrofit, of course! May 16 20:12:22 Isn't retrofit for REST? May 16 20:12:45 autrilla: what else do you use asynctasks for? May 16 20:13:25 Reading files? May 16 20:13:32 frankdoyle, I don't use them currently, but for example, for reading files May 16 20:13:45 Endless possibilities really May 16 20:14:50 JakeWharton i know thath, thath why i am transfering now our calls to retrofit :) May 16 20:15:38 ArcaneWater: retrofit has a "Callback" that then handles threading stuff for you, that way you don't have to use AsyncTask May 16 20:16:45 Yep saw thath now i am just checking if its possible just to read what is in response after post without "models" (will be done later) May 16 20:26:19 yes. AsyncTasks are perfect for local async May 16 20:28:01 wooooooooot, i have conquered you relativelayout May 16 20:31:15 anyone here use espresso? May 16 20:31:25 i do May 16 20:31:59 I'm trying to set it up in android studio with your double-espresso library May 16 20:32:18 https://gist.github.com/anonymous/07ac16f66ee929c4c755 May 16 20:33:25 my questions are: 1) is that gist right? 2) what's the proper folder structure? 3) Is there like a hello-world on this stuff somewhere? May 16 20:33:57 hello May 16 20:34:03 if you've got a sec to look that over anyway May 16 20:34:05 I'm trying to access a drawable in a class thats not an activity, but I can't see my drawables. May 16 20:35:15 Anyone interested in MVVM? May 16 20:37:10 Hello May 16 20:38:09 shekibobo: it looks right May 16 20:38:17 No idea what MVVM is, so no. May 16 20:38:28 the GitHub repo for double-espresso has two demo projects in it May 16 20:38:38 otherwise you'll have to refer to the normal espresso Google Code page May 16 20:38:49 ok, I'll take a look at those May 16 20:38:49 thanks May 16 20:39:32 JakeWharton: that would be espresso-sample and espresso-tester? May 16 20:40:27 just the first one May 16 20:40:34 ok May 16 20:40:45 cool, thanks May 16 20:51:35 Good evening folks.. I have just renamed my main project package and now it complains about duplicate classes for R and BuildConfig.. how can I fix this? May 16 20:53:38 clean build May 16 20:54:01 already did that May 16 20:55:47 also it tells me to look at the compiler output, where can I find that? May 16 21:01:15 getting layouts to look just right burns so many hours May 16 21:01:26 screw that. I cant even get scala to run with AS May 16 21:01:51 +1 to screw Scala May 16 21:02:51 sounds like you are no fan of it JakeWharton May 16 21:05:15 i was just trying to troll since i thought you were actually saying screw AS May 16 21:06:30 I actually like AS (although I dont really understand gradle) May 16 21:07:53 me too May 16 21:08:00 build output is this : http://pastebin.com/JV8Jq0S6 (as well as old and new package name.. fyi) May 16 21:15:50 hm maybe I should give IntelliJ another try for this May 16 21:17:26 birbeck - any ideas if clean build doesn't work? May 16 21:17:36 danijoo_, you mean... you used.... (eww)... Eclipse? May 16 21:17:42 (now I feel dirty for using the word= May 16 21:17:53 No. AS May 16 21:17:55 codetroll: i dunno, try optimize imports? May 16 21:17:59 ah, good May 16 21:18:37 But I wanted to try scala, found tutorials that mentions buttons for IntelliJ that werent present in AS. May 16 21:18:56 there are no references to the old packagename as far as I can see... I merely created a new package and moved all my classes to it.. May 16 21:18:58 and as things lead to things, now I am at reading stuff about why use IntelliJ over AS :D May 16 21:19:08 um May 16 21:19:27 AS is just IDEA with everything but Android/Java removed :) May 16 21:19:41 codetroll: did you rename it in AndroidManifest.xml? May 16 21:19:49 yes... May 16 21:19:54 yeah thats why im now thinking of switching :) May 16 21:20:33 can I move .gradle folder from C:\ ? I have a SDD and theres no space :/ May 16 21:20:37 using AS May 16 21:20:55 I did a full search in the project folder for the old one.. the duplicate packages are located in my own package and in a compability package.. May 16 21:21:12 weems: You can. You just have to tell AS where to find it then May 16 21:21:21 and ... how do I do that lol May 16 21:21:35 also need to move .android May 16 21:21:39 if possible May 16 21:23:11 .android is 5 MB on my pc May 16 21:25:03 i think you only have to change your PATH variable to move .gradle May 16 21:25:09 but im not sure May 16 21:25:13 its just a guess May 16 21:28:30 danijoo, my .android is 207mb May 16 21:28:37 oO May 16 21:29:01 danijoo_ i think you need to use intellij with scala, not AS May 16 21:29:15 something about different product codes May 16 21:29:22 plugins, etc May 16 21:31:08 yeah Im already downloading it. At least I dont have to bother about gradle then May 16 21:31:51 pfn has a build plugin May 16 21:32:01 weems: .android is 13 meg for me. I wonder if something is wrong w/ yours. May 16 21:32:26 yeah I already stumbled about it on github May 16 21:33:04 and the help page also tells me to use intellj ;) May 16 21:33:48 dragorn, hmmmmmmmmm May 16 21:36:10 weems: maybe not, but i have a LOT of android projects May 16 21:37:57 dragorn, strange and i have done barely anything lol May 16 21:38:01 havent* May 16 21:38:26 weems: oh, i know why May 16 21:38:28 weems: you have an emulator May 16 21:38:35 weboo: avd device files live in there. May 16 21:38:46 autonick fail May 16 21:38:58 yeah May 16 21:39:05 can i move that May 16 21:39:18 ah :) thats why my is so small. I use virtualbox May 16 21:39:30 uh yeah May 16 21:40:05 I installed the adt on my alt drive not my ssd but it still uses data on C:\ user folder for .android :/ May 16 21:40:12 is there some env variable May 16 21:40:17 to set for it May 16 21:42:38 weems you can check if there are some entries for it in your env variables May 16 21:43:00 k May 16 21:43:37 or maybe there is some kind of configuration file in the android-sdk folder that defines .android May 16 21:48:12 can you just move it and make a shortcut? May 16 21:48:18 i have no idea how transparent shortcuts are in windows May 16 21:48:37 good idea May 16 21:48:58 arent windowns shortcuts behaving like soft links in unix? May 16 21:49:44 i'd hope so, but I have no idea May 16 21:49:51 don't feel like firing up a windows vm right now either May 16 22:36:26 That's a big netsplit May 16 23:03:58 is it possible to sacle the action bar so it’s larger on tablets than phones? May 16 23:07:58 SpNg hm, i did find May 16 23:08:11 but its not clear if thats width or height May 16 23:13:14 g00s: its the height May 16 23:13:37 cool, so maybe SpNg can theme that May 16 23:14:15 g00s: ok thanks. May 16 23:14:17 Napalm so i just learned something then, that attribute has a format of dimension AND an enum May 16 23:14:32 i didn't know that was possible; the docs for suck ass May 16 23:14:57 we'll probably beusing css in a few years :D May 16 23:14:57 its funny that the IDE doesn't auto-complete declare-styleable either May 16 23:17:17 hi guys i have this project, and i want adapt all layouts for all screens. Can u help me? May 16 23:18:35 roxdragon see I/O talks like multiversion UI May 16 23:20:24 roxdragon also https://docs.google.com/file/d/0Bz3qX4EBhUvwZWlHekI3Y0wxSUk/view?sle=true&pli=1 May 16 23:20:31 g00s i have read doc but i don't understand.... create layout-lare / small / xlarge and i put *xml file?! but this doesn't work for me May 16 23:20:57 its a pain yeah but it should work May 16 23:26:06 i have edited androidmanifest but doesn't work.. there is a simple solution? May 16 23:29:45 g00s, do you have the video for those slides? May 16 23:31:29 autrilla i dont May 16 23:31:33 maybe Napalm does May 16 23:31:44 autrilla: https://www.youtube.com/playlist?list=PLWz5rJ2EKKc8j2B95zGMb8muZvrIy-wcF May 16 23:31:48 :D May 16 23:31:50 i have everything May 16 23:31:54 hehe May 16 23:33:01 g00s: http://www.youtube.com/watch?v=iJPFSNu_QNs :D May 16 23:34:47 di dyou see 'steven spielberg presents' ha May 16 23:35:02 Napalm, is there a particular video for that one, or is that PDF just a combination of all of them? May 16 23:41:27 Napalm maybe you know; i find youtube organization very confusing. so there are videos, playlists, channels. now in my android YouTube app, i'm subscribed to 'Android Developers' but i can't figure out how to drill down to see all devbyte videos, for example May 16 23:41:43 seems like the videos are all mixed up, i see stuff in japanese for example May 16 23:42:10 nope the japanese videos are in the DevBytes playlists May 16 23:42:53 wait, perhaps not May 16 23:42:54 v May 16 23:42:54 https://www.youtube.com/playlist?list=PLWz5rJ2EKKc_XOgcRukSoKKjewFJZrKV0 May 16 23:43:58 so that link you just posted above, 'Android Design in Action' … everything is neatly ordered from the first one, to the last. i don't see japanese and portuguese stuff mixed in there. May 16 23:44:14 but in the android app, i haven't managed to get that filter May 16 23:44:54 ok, this is what i was confused about May 16 23:45:20 there are some like DevBytes: Media Router Frameowrk at the top level in Playlists tab May 16 23:45:40 and then at the bottom there is a DevBytes that has what seems like the list you posted above May 16 23:45:54 * g00s wanted to use youtube app because i think its supposed to do offline viewing May 16 23:51:29 Windows 8.1 is updating itself very often.. another reboot May 16 23:54:24 Have you seen me disconnect or is my bouncer doing a good job? May 16 23:55:25 Hihihi. Has anyone integrated paypal into their app? If so, did Google take a percentage? May 17 00:05:41 Way to go, Google: http://i.imgur.com/dDX4E4v.png May 17 00:06:07 decltype: what app? May 17 00:06:35 Napalm: http://goo.gl/6oNUP0 May 17 00:06:47 i get a 404 for that May 17 00:07:25 What was the original reason for removal? May 17 00:07:36 keyword spam May 17 00:08:08 fuck? really.. and they take you down for that May 17 00:08:24 thats strange decltype i remember seeing your original description May 17 00:08:29 So basically you shoved a bunch of keywords into your description and got hit for it May 17 00:08:37 yeah, i think it was somewhat verbose at the end but it din't look stake-down worthy May 17 00:08:41 This is the notification I was given: http://i.imgur.com/cCpsG1J.png May 17 00:09:15 ah May 17 00:09:30 so it may have been impersonation of the official ? May 17 00:09:33 I think it was less keyword spam and more that you used a trademarked name. May 17 00:09:38 its because you put all the product names in your description May 17 00:09:50 "ArenaNet, Arena.net, Guild Wars, Guild Wars Factions, Factions, Guild Wars Nightfall, Nightfall, Guild Wars: Eye of the North, Eye of the North, Guild Wars 2" May 17 00:09:53 pretty verbose May 17 00:10:08 That is, there's no indication by the title alone that your app's not some official guild wars thing. May 17 00:10:23 As you can see here (http://guildwars.com/support/legal/termsofuse.php), the disclaimer is required when talking about their product. May 17 00:10:28 couldn't you just write "All logo and trademarks are the property of their respective owners." May 17 00:10:36 That might also do it. May 17 00:10:45 The part that says "Are there any legal notices and disclaimers that I need to have on my site when talking about your products?" May 17 00:11:00 its not your site May 17 00:11:01 :D May 17 00:11:11 That doesn't give you free reign to infringe upon trademarks and/or copyrights, Napalm. May 17 00:11:18 i know May 17 00:11:20 im kidding May 17 00:11:27 yea.. so you gotta be able to appeal this May 17 00:11:34 waaait, he did exactly what they said. May 17 00:11:35 perhaps talk to guildwars May 17 00:12:06 Are there any legal notices and disclaimers that I need to have on my site when talking about your products? May 17 00:12:16 That doesn't mean he wouldn't violate Google's policies by doing what they said. May 17 00:12:32 yeah, fuck google May 17 00:13:27 decltype do you think the 'investigation' was started by guildwars because of something else, like the title of the app ? May 17 00:13:38 decltype: you might aswell email guildwars and ask them to contact google on your behalf with a history of all the email transactions May 17 00:13:46 g00s: I'm almost certain it was the automatic keyword spam detection. May 17 00:14:03 oh, so you got fucked by an algorithm May 17 00:14:10 fucked hard May 17 00:14:11 well, at least you weren't applying for a loan May 17 00:14:12 :( May 17 00:14:25 or applying for admittance to an old age home or something May 17 00:17:26 that is what is called an 'algorithmic jail' May 17 00:19:43 g00s May 17 00:20:11 layout-sw600dp : error: invalid resource name... can you helo me? May 17 00:21:28 i dont see what is wrong with that May 17 00:21:36 what is your targetSdk May 17 00:27:04 android:minSdkVersion="9" android:targetSdkVersion="19" /> g00s May 17 00:28:11 g00s: http://hostimage.webjapt.com/ May 17 00:30:44 solved May 17 01:23:22 okay, so say you are implementing a nav drawer. the example seems to push towards loading in fragments rather than starting new activities. so say you have a couple list activities, about activity, etc etc and you turn them into fragments. Now, you want to do some tablet config, let's say master / detail. Should you use nested fragments, by essentially making a MasterDetail fragment that will kind of act as the activity do May 17 01:23:23 es with regards to interfaces, being the common point of communication between the list and detail? May 17 01:24:02 having trouble conceptualizing how this is supposed to work. i've read a lot of people say a single activity architecture gets too crazy, but then again, like I mentioned, the nav drawer seems to push for that (and fragments load a lot quicker than launching activities) May 17 02:24:19 Im in elcipse trying to install a github repo with maven. I got it to complete a maven install, and it builds without error. However there are no apks, it is not reconized as an android project. Ever guide just says just do install I have no idea what to do next May 17 02:36:22 hi May 17 02:51:33 Im finally going to make my first game May 17 02:51:45 it's a unique animated word game May 17 02:52:39 and I made a simple particle system live wallpaper, just white bubbles floating **** ENDING LOGGING AT Sat May 17 02:59:59 2014