**** BEGIN LOGGING AT Sat Feb 14 02:59:58 2015 Feb 14 03:00:16 g00s: Interesting he would crap on a product from a company bought Feb 14 03:00:42 ^ insert "Google" somehwere up there Feb 14 03:23:01 Design question: I'm trying to implement something similar to what the Play Store does when you're in an app selection. So for example you see the app picture as a header, and then as you scroll up it kind of parallaxes off the page and the toolbar appears. Is there a special widget/component that you use for that? Feb 14 03:27:10 im making a screen with [panel-left(linearlayout)][canvas][panel-right(linearlayout), iv gotten the screen size and worked out the exact pixel sizes for the 3 views(by calculating screenSize%, and i have set the sidepanel widths, but i cant seem to find a method to set the width of the canvas ... am i supposed to wra the canvas in another linearlayout? Feb 14 03:27:25 wrap* Feb 14 03:44:29 f10 in game should fix that Feb 14 03:44:40 sorry wrong cchan Feb 14 04:02:56 boolean primitive or Boolean object? Hmm. Feb 14 04:13:33 Does OkHTTP stream by default? Or do I have to specifically tell it to stream? Feb 14 04:13:40 yes. no. Feb 14 04:13:51 no to me? Feb 14 04:14:21 yes. also yes to you Feb 14 04:16:31 wait what Feb 14 04:16:39 so it does not stream by default Feb 14 04:17:32 no it does not not stream by default Feb 14 04:17:39 Alright thanks Feb 14 04:17:43 :) Feb 14 04:17:56 And I'm guessing I need to make it work asynchronously as well, it by nature is not asynchronous? Feb 14 04:18:07 (I'm transitioning from loopj async to OkHTTP) Feb 14 04:18:16 no it is not not asynchronous Feb 14 04:18:28 uh Feb 14 04:18:32 so it IS asynchronous? Feb 14 04:18:34 double negative? Feb 14 04:19:04 your question was worded poorly such that any answer would be ambiguous Feb 14 04:19:09 actually your last two were Feb 14 04:19:25 it is streaming and fully async Feb 14 04:19:45 i'm so confused now :'( Feb 14 04:20:56 nvm Feb 14 04:20:59 I'm just going to read the docs xD Feb 14 04:21:08 feel free to slap me with a large trout Feb 14 04:21:15 * t0astt slaps self with a large trout for not reading docs Feb 14 04:21:24 i haven't suffered mIRC for over a decade Feb 14 04:21:30 haha Feb 14 04:21:55 i gave you a clear and completely unambiguous statement Feb 14 04:22:14 also if you re-read all my answers they unambiguously answer your questions Feb 14 04:24:02 it does not not answer Feb 14 04:32:24 http://www.jokeroo.com/user-content/pictures/animal/2012/2/901914-suprised-koala.html Feb 14 04:36:20 must've heard a not-not joke :p Feb 14 04:36:34 haha Feb 14 04:40:26 AlarmManager.RTC_WAKEUP <-- what does it mean to "wake up" the device? All I want is to run a piece of code at a certain time. No UI or any kind of user interactions are involved. Would AlarmManage.RTC be sufficient or do I need to use RTC_WAKEUP? Feb 14 04:42:28 this is how they boost app rankings http://static4.businessinsider.com/image/54db994569bedd6e65fd9834-545-726/screen%20shot%202015-02-11%20at%2012.37.45%20pm.png Feb 14 04:46:23 jerkface03: the "wakeup" variants will wake the device from a sleep mode. otherwise the event may happen any amount of time later, when something else wakes up the device. Feb 14 04:46:47 groxx: "wakeup" in this case means the screen turns on? Feb 14 04:47:00 jerkface03: no, just the cpu Feb 14 04:47:01 Sculptor they could've just hired my dog Feb 14 04:47:12 groxx: Okay good. Thanks. Feb 14 04:52:26 ah, businessinsider... Feb 14 05:30:04 I'm trying to properly align all of my icons in a listadapter I created with images, so I will be adding spaces based on the length of data taken from a data container. Feb 14 05:30:42 in order to do this, I believe I need to loop through characters in the string I plan to setText backwards, starting at the point I want to insert at, replacing spaces with values backwards Feb 14 05:30:58 That seems cracked out though, does anyone know a better way Feb 14 05:31:09 Anyone know of any custom ratingbar libraries? I'd like to scale the stars in my rating bar, but apparently RatingBar doesn't support that... :| Feb 14 05:32:01 extend ratingbar t0astt Feb 14 05:32:17 change its onCreateView or w/e Feb 14 05:33:19 I'll try that, TheKarlBrown. Thanks Feb 14 05:33:52 think about my string replacement idea if you are good at java Feb 14 05:35:04 nvm its crazy ill figure it out Feb 14 05:54:35 TheKarlBrown: hmm. I'm guessing you want things to be perfectly aligned? Feb 14 05:55:18 TheKarlBrown: would you mind sketching out what you're trying to do, or describing a bit more thoroughly? there are too many possibilities :| Feb 14 05:59:32 On my dataadapter I have string then image then string Feb 14 05:59:36 they need to be spaced Feb 14 06:00:28 I want to have each image evenly on top of each other, or colons inserted after the first string to be evenly on top of each other Feb 14 06:15:29 if you have a lot of similar layouts Feb 14 06:15:41 is it logical to create them all dynamically, as opposed to in XML? Feb 14 06:15:59 no Feb 14 06:16:24 you can use the thing to reuse common pieces Feb 14 06:16:40 didn't even know android layouts had Feb 14 06:16:41 <- noob Feb 14 06:16:48 and then use styles for elements that have the same semantic meaning Feb 14 06:16:54 Anyone here dealt with facebook's app-scoped IDs? I need to get a user cover photo with them, but you can't using their HTTP API Feb 14 06:19:36 Yeah I use hella includes Feb 14 06:35:47 how do you view the javacode for objects in android studio? Feb 14 06:42:01 TheKarlBrown: hm. tbh that kind of layout is a somewhat hard thing to do. how many items do you have, and is it always the same number or does it change? e.g. do you definitely need a listview, or could you use a tableview instead? Feb 14 06:42:16 already have listview and everything implemented Feb 14 06:42:24 I just need to alter the strings that are being displayed Feb 14 06:42:47 also do you know the shortcut to see the java code behind functions (ex. dialogfragment's show method) Feb 14 06:43:04 is there a minimum width that's always safe? e.g. can you put the image 100px to the right, and the second string 200px to the right, or do you need to figure out what the right size should be? Feb 14 06:43:25 cmd-B goes to the definition of a method (in Android Studio, on a Mac. might be ctrl-B on windows.) Feb 14 06:43:49 sweg. potentially, but when you get into different device sizes that will be a pain Feb 14 06:44:19 you can also right-click on whatever you want, and select the "go to" option. there are a bunch of nav destinations there. Feb 14 06:44:34 TheKarlBrown: I usually go back to javap for that Feb 14 06:44:40 TheKarlBrown: yeah. tablelayout will handle that for you (to some degree) which is why I was wondering :) Feb 14 06:45:03 TheKarlBrown: AS has a disassembler they use for .class but if you have the source, I suspect it will always show you that source instead of the disassembled version Feb 14 06:46:17 TheKarlBrown did you have a screenshot of the layout ? Feb 14 06:48:01 they have a decompiler, yes, and it works quite well Feb 14 06:50:38 thanks I found it Feb 14 06:51:01 I dont want to deal with making the booleans and garbage that I would have to add if I started over-writing functions that set values elsewhere in the program Feb 14 06:51:28 TheKarlBrown: so, off the top of my head, this is what I'd suggest trying: https://gist.github.com/Groxx/aab94e93501411f8d7c7 Feb 14 06:51:30 http://i.imgur.com/POIMAg4.png - here is an example of not what i was referring to specifically, but a similar occurrence, spacing wise Feb 14 06:52:19 before you display your data, figure out how big all the strings need to be. then, when you get your row-views, set the textview size to that size. then offset your icons & second strings as is appropriate. Feb 14 06:52:47 Mkay Feb 14 06:53:11 that approach should handle any fonts / densities / etc, as long as the line isn't huge (pushing stuff off screen). and hopefully you don't have tons of strings to display, because that could take a bit of time to compute :\ Feb 14 06:54:39 also, I'm not sure if getDesiredWidth is safe to use on a background thread. maybe not? Feb 14 06:54:49 groxx I will have HUNDREDS of strings to compute Feb 14 06:54:56 so that might not be the move Feb 14 06:55:00 yeah, maybe not. Feb 14 06:55:24 this is going to be getting data from mysql databases by hundred rows :3 Feb 14 06:55:28 then you're kinda stuck with assuming some safe width, or adjusting things on screen to fit the widest sizes that are currently on screen Feb 14 06:56:06 sweg Feb 14 06:56:29 since you want them all to be vertically aligned, you pretty much have to either pre-compute to find the correct size in all cases, or adjust as you go along. Feb 14 06:57:33 How would I go about getting picasso to buffer the cache when using it to load images into an image view in a view pager? Feb 14 06:57:53 lasserix_: a cache is a buffer, do you want a second layer, or do you just want it to cache images in memory for you? Feb 14 06:58:05 viewpager only creates when page is created Feb 14 06:58:24 i want to have those images already cached, before they are created by the instation ofthe page Feb 14 06:59:11 ah. well, viewpager will keep an extra page on either side. if you start loading as soon as it's created / attached, you might be fine. Feb 14 06:59:14 I think i will just be doing scaled pixels for fonts Feb 14 06:59:39 guesswork Feb 14 06:59:48 lasserix_: if not, there's a .fetch() method that'll just do whatever is necessary to get the image, and stick it into the cache (if there is one) Feb 14 07:00:01 ahh yeah perfect thanks Feb 14 07:00:32 lasserix_: alternatively, can you just make the off-screen-views larger on the viewpager? Feb 14 07:00:49 that's basically the same thing, though it might mean more memory use Feb 14 07:01:24 can i make a scheme then subclass request handler that will retrieve from the cache, using a hash from the scheme, so I can use picasso to enable offline viewing? Feb 14 07:01:56 make them larger? i just want to buffer all theimages, and i need to always have the latest of that image available, in case no network connection Feb 14 07:02:22 if you're using a net request library that has request caching, it will probably work offline automagically. OkHttp does that, if you give it a cache folder. Feb 14 07:02:42 but you need proper cache headers from server, i belive Feb 14 07:02:46 lasserix_: sorry, I mean the number of off-screen views. basically to have them pre-fetch ahead of time. Feb 14 07:02:51 yeah. but you can override them too :) Feb 14 07:02:53 which i dont have, unless i can fake it by using timestamp Feb 14 07:03:02 groxx, wait what do you mean? Feb 14 07:03:27 which? if overriding: you can pretty easily add fake cache headers with okhttp. Feb 14 07:03:39 even if the server gives me nothing? Feb 14 07:03:49 "nothing" or "no cache headers"? Feb 14 07:03:54 no cache headers Feb 14 07:03:59 i have a timestamp i think Feb 14 07:04:53 i was also thinking of drawing all my images to bitmaps, then drawing them first, swapping them with the actual view to make loading "appear" instance Feb 14 07:04:55 *instant Feb 14 07:05:02 lasserix_: I think you just make a new Request.Builder().url(etc).header("Cache-Control", "max-age=86400") (caches for one day) Feb 14 07:05:10 groxx thank you so much! Feb 14 07:05:22 lasserix_: there may be a better source, but I'm looking at this: https://github.com/square/okhttp/wiki/Interceptors Feb 14 07:05:45 cool thanks! Feb 14 07:06:12 soon (maybe tonight, maybe within a couple weeks) I need to figure out how to force a load from disk first, then 'refresh' in the background. I have a fair number of things that I want to assume are correct, and only update (asynchronously) if the content changes. Feb 14 07:06:52 lasserix_: ah, also try the bottom of the page. there's a "rewriting responses" section. Feb 14 07:06:57 yeah exactly Feb 14 07:07:28 I suppose the Request.Builder thing is only for out-going headers :| so yeah, you may need an interceptor. Feb 14 07:07:52 i think you could just have an interface on view that dumps a hashed bitmap, which you can store, then a presenter facade that will inject the unpacked bitmap, and swap it with the actual view state Feb 14 07:08:20 that way every view will load instantly Feb 14 07:08:29 yeah. it's totally possible to build something that would work, I'm just hoping I can do it with minimal effort :) Feb 14 07:08:35 hehe Feb 14 07:10:49 lasserix_: looks like possibly there's an easier way, with max-stale in the request headers? not sure, never tried: https://github.com/square/okhttp/wiki/Recipes Feb 14 07:14:39 ooh, bingo. Request.Builder().cacheControl(CacheControl.FORCE_CACHE) looks perfect. Feb 14 07:18:25 this is in conjuction with picasso? Feb 14 07:19:01 yeah, Picasso has .load(whatev).networkPolicy(NetworkPolicy.OFFLINE) that I assume just translates to FORCE_CACHE. Feb 14 07:19:05 for okhttp anyway Feb 14 07:21:19 thanks Feb 14 07:21:24 what do you work on groxx? Feb 14 07:21:32 at the moment, comicchameleon.com Feb 14 07:21:39 well, the android app. Feb 14 07:22:28 cool Feb 14 07:22:31 looks fun to do Feb 14 07:22:40 I needed a side project, I like how they're doing things, so I contacted them a while back :) it's fun Feb 14 07:22:53 if i have a view state that i need to save, that is persist beyond app life cycle, what's the best way of serializing do you think? Feb 14 07:22:57 cool Feb 14 07:23:26 like objectoutputstream? json? Feb 14 07:23:45 can it stay in e.g. savedInstanceState, or do you need it to be completely outside that / something you can recreate at any time later, for any reason? Feb 14 07:24:13 the later Feb 14 07:24:43 like if i had a weather forecast, with a custom view, i need to persist all the model so i can recreate it at any time Feb 14 07:25:26 ah. tbh I'd probably lean towards SharedPreferences if it's simple enough to fit in there. Feb 14 07:25:37 nah too big Feb 14 07:26:04 plus i want to be able to store bitmaps,but i guess ic ould just use a key Feb 14 07:26:12 well maybe not Feb 14 07:26:24 if it's too big for shared prefs, probably sqlite :) though if you haven't done sqlite, you could probably do something with files that wouldn't be too problematic. Feb 14 07:26:33 im fine with sqlite Feb 14 07:26:39 think it is faster than just file io? Feb 14 07:26:49 i like sqlite actually Feb 14 07:27:04 because it does its own caching: often. especially if you have to do query-like things to find pieces of data. Feb 14 07:27:07 plus if i cp it might be useful down the line if they do widgets or some such Feb 14 07:27:17 ahh i didn't know Feb 14 07:27:26 where can i read more about that ? Feb 14 07:27:36 it's more complex than "plain" file i/o though, so I would imagine that would be faster in simple cases / when you have a file you can just directly open. Feb 14 07:27:53 and if comicchameleon is a side project, what do actually do? Feb 14 07:28:11 Hello Developres.. Happy valentines day Feb 14 07:28:15 what about just using like objectoutputstream? Feb 14 07:28:27 work prefers I keep quiet on it, so I do :) a startup, and "stealth mode" does have some benefits. Feb 14 07:28:52 lasserix_: yeah, could make sense. if you don't need queries, it might be simpler. Feb 14 07:29:14 I haven't done java serialization in a looong time, but I assume it's reasonably painless (compared to sqlite) Feb 14 07:30:16 k Feb 14 07:30:32 hmm Feb 14 07:30:34 usually not good idea to use java serialization on android Feb 14 07:30:49 so if you have a listview you want to be able to scroll and click items, you want to use onlongclick correct? Feb 14 07:30:49 why iam getting this error " cannot resolve constructor Íntent(android.widget........ for this line of code Intent intent = new Intent(this, Third_Activity.class); Feb 14 07:30:55 for saving to disk? seems like a reasonable use. Feb 14 07:30:56 i wanted to autorefrech the data so using sqlite would be good to revision since i can just iterate through the tables, finding any stale state Feb 14 07:31:00 lasserix_ gotta know that for interviews :D Feb 14 07:31:12 g00s explain if you could? Feb 14 07:31:25 serialization yeah is bad i've heard, and parceable is for IPC Feb 14 07:31:28 i'm sure you can get a great treatise if you googled it Feb 14 07:31:41 you mean the java serialization right? Feb 14 07:31:44 yes Feb 14 07:31:49 yeah, but parcelable isn't safe to persist to disk Feb 14 07:31:50 yeah i've seen Feb 14 07:32:13 probably within an OS version, but they're explicit about recommending against it Feb 14 07:32:13 groxx yeah. g00s: is that how objectoutputstreams work, based on serializable interface? Feb 14 07:32:24 groxx: yeah i've read that Feb 14 07:32:38 I don't know OOS in particular, but given the name I would assume so Feb 14 07:33:02 google suggests yes Feb 14 07:33:24 for small blobs, is it faster to save the blob in table or just path and read from file? Feb 14 07:33:35 depends on the blob size Feb 14 07:33:53 https://www.sqlite.org/intern-v-extern-blob.html Feb 14 07:33:55 if they're smaller than a page on disk, and they're sequential in the table: probably the table. Feb 14 07:34:19 what kind of page do you mean? Feb 14 07:34:58 the blob would be the size of the background in the playstore navigation header above the list view for the menu Feb 14 07:35:34 g00s's link is correct, but also: if you put a 100byte file on disk, it'll eat up a full file-system "page", because that's the minimum object size. probably doesn't matter as much on flash drives, but it does mean less compact storage than e.g. sqlite achieves, so slower reads of multiple 100-byte bits of data. Feb 14 07:36:01 images should be outside sqlite. Feb 14 07:37:03 databases in general, and sqlite specifically, don't generally shrink their file size. so if you bloat it with images, then delete some rows, then add more, you'll still be using space for the deleted data, possibly forever. Feb 14 07:37:20 you can reclaim it with vacuum Feb 14 07:37:58 yeah. which copies your data to a new database file, then deletes the original :) it exists, few people actually use it, and it's better to just avoid the problem in the first place. Feb 14 07:38:30 especially since images on disk, accessible by file-uri, are supported by pretty much everything Android. images-in-sqlite are not. Feb 14 07:38:55 i agree, i wouldn't put images in sqlite Feb 14 07:39:05 on android. on desktop, maybe. Lr does it Feb 14 07:39:25 Lr? Feb 14 07:39:31 Adobe LightRoom Feb 14 07:39:41 so then id put just a key to path in the table? Feb 14 07:39:51 yep Feb 14 07:40:15 and theoretically i can get picasso to upon recieving a network request GET, stow the bitmap in that path? Feb 14 07:40:28 re in databases on desktop: I still say no, because it's just unkind to people trying to rescue their data from the app when it explodes. but yeah, it doesn't matter as much on a desktop, and it may be simpler to program. Feb 14 07:41:18 picasso doesn't, but you could use picasso to load the image -> save it to disk yourself Feb 14 07:41:38 groxx its for a preview cache Feb 14 07:41:47 g00s: ah. that's not as bad. Feb 14 07:51:27 i think you can make a request handler Feb 14 07:51:34 and a downloader Feb 14 08:01:03 if comicchameleon is your side project, what is it you actually do groxx? Feb 14 08:02:00 lasserix_: a startup, which is perpetually in stealth mode :) they request I keep work separate from play, so I do. Feb 14 08:05:14 i worked it out. i just set layout params to the view holding canvas like every other view)) Feb 14 08:06:53 groxx cool Feb 14 08:10:58 Can passing a ContextWrapper that is initialized with Activity to another class cause a memory leak? Feb 14 08:11:41 will displaymetrics width and height, work on every android device version 4.0 and above? is there any situation on new devices in which it would fail. because im basing my entire game graphics dimensions around it Feb 14 08:12:49 njcomsec: it seems to work in my minor testing, but watch out that it may change on rotation if you have a nav bar Feb 14 08:13:39 well im forcing landscape mode and i am detecting the statusbar and deducting it so hopefully will be ok Feb 14 08:16:29 getting the statusbar height via a getResources method sems to be accurate but just in case that fails ill add a backup height dependant on the dpi or whatever... it seems there are only a few heights liek 19,25,38... but i guess it could change in future Feb 14 08:18:33 also using a Point object and getWindowManager().getDefaultDisplay() seems to give the same result for screen dimensions as displaymetrics, so i added that as a backup to that... though maybe they use the same system variable anyway Feb 14 08:18:43 how do you remove the current fragment from an activity? Feb 14 08:19:52 surf2b1 only if the other class outlives the activity Feb 14 08:20:26 g00s: what about on an orientation change? Feb 14 08:20:36 yeah, dont do that :) Feb 14 08:21:51 so, lets say I pass an activity or contextwrapper to a runnable and run it in a thread. Then the user changes orientation while my background thread is still going. Would that cause a memory leak? Feb 14 08:23:16 surf2b1 you mention 2 threads - but yeah, if the ContextWrapper is being held by the bg thread it will leak Feb 14 08:23:31 g00s: alright. thanks Feb 14 08:23:43 if the bg thread keeps going and the new activity is created Feb 14 08:23:58 im using popbackstack Feb 14 08:39:06 i'm liking tim cook more and more http://www.theguardian.com/technology/2015/feb/13/apple-ceo-tim-cook-challenges-obama-privacy Feb 14 08:41:37 i find that guy annoying Feb 14 08:50:13 huh, i wonder if apple is making a car Feb 14 08:55:33 im having trouble going to a dialogfragment onclick Feb 14 08:55:38 I go to the fragment Feb 14 08:55:58 but once I enter data, I cannot get it back into the fragment Feb 14 08:56:06 the original fragment Feb 14 09:10:53 woohoo... FF/mobile gets a mention too.. http://gizmodo.com/fuck-it-im-going-back-to-firefox-1685425815 Feb 14 09:12:14 or Feb 14 09:12:31 does anyone know the proper way to set data when a fragment is brought to the front via popback Feb 14 09:13:15 is it instance variables? Feb 14 09:22:43 hi Feb 14 09:22:59 could an app speak to another app over sockets in an unroot phone? Feb 14 10:12:33 mun: yes Feb 14 10:16:38 Hi, How do I catch a javascript initiated download event, cause it doesn't seem to work with setDownloadListener in a webview? Feb 14 10:17:23 You could test this issue with downloads from http://sourceforge.net/ inside webview. Feb 14 10:18:39 p_l is this how some free apps talk to their key app for premium access? Feb 14 10:18:57 Since they're separate apps Feb 14 10:19:47 no Feb 14 10:19:57 they use Android IPC Feb 14 10:20:42 more than one way to accomplish this, but you can create an interface and use it to allow another app to access yours Feb 14 10:30:25 im on Android 5.0.2 (art). i got an crash due to "JNI DETECTED ERROR IN APPLICATION: jmethodID was NULL" any hints? (afaik jmethodID used to be a integer) Feb 14 10:30:36 *a crash Feb 14 10:31:17 if jmethodID is pointer, do i have to acquire a global reference? Feb 14 10:33:21 p_l but technically does it breach the Android T&C? Does it day that apps may not talk to each other? Feb 14 10:37:59 no, there's nothing like that, IPC is *core* to many Android behaviours Feb 14 10:44:37 Guys I am gettig java.lang.RuntimeException: Parcelable encountered IOException writing serializable object when I am trying to pass an object from one activity to another via intent Feb 14 10:44:43 any idea what could be the issue Feb 14 10:44:44 ? Feb 14 10:48:00 The first issue is that you're not providing enough information for anyone to help you debug it (like the full stacktrace, and some code) Feb 14 10:49:51 p_l oh right.. Thanks Feb 14 10:51:50 mun: the one play store ToS clause that is barely related to your question involved prohibition of making the application paid-for *by means other than Play Store*, and only if it's distributed through play store (so things like license keys bought on paypal etc.) Feb 14 10:52:41 @simonVT http://pastebin.com/9BHqpVya Feb 14 10:52:44 here it goes Feb 14 10:53:13 I am trying to pass a object which has other objects declared as variables in it Feb 14 10:53:26 all the classes of objects are serializable Feb 14 10:53:30 :( Feb 14 10:53:38 what could be the problem? Feb 14 10:57:44 Your stacktrace has been cut off, so we can't see the real cause.. But I would imagine some field in com.c.db.Comp is not serializable Feb 14 11:00:25 Ah its a class which has other class objects as well Feb 14 11:00:34 those all are serializable Feb 14 11:00:36 :( Feb 14 11:07:07 Probably not Feb 14 11:09:01 leo3: check the full stack trace for NotSerializableException Feb 14 11:16:00 http://pastebin.com/nDhfwyx1 Feb 14 11:16:05 here is the complete stack Feb 14 11:19:57 leo3: Your stacktrace is being cut off (it's too long for logcat). Use getCause on your Throwable to get the exceptions further up in the stack trace Feb 14 11:20:33 I still don't believe every field is serializable Feb 14 11:21:43 hmm Feb 14 11:21:46 okay Feb 14 11:22:23 maybe show the class Feb 14 11:23:51 good day everyone Feb 14 11:26:23 happy caturday you Feb 14 11:28:06 maybe newb question on start. Downloaded this sampe. http://developer.android.com/training/implementing-navigation/lateral.html . Created simple pom.xml with minimum dependencies. Then compiled and installed app Feb 14 11:28:14 and here is the output of logcat Feb 14 11:28:16 https://gist.github.com/anonymous/5201dcf1cb5f1c2f1f60 Feb 14 11:28:36 googled alot. many answers is to be sure activity name in AndroidManifest.xml Feb 14 11:28:51 but I even did not touched it . It was from original sample Feb 14 11:29:55 if is important. Here are my dependencies https://gist.github.com/anonymous/7fde26ae523a8005250d Feb 14 12:21:06 hi there Feb 14 12:21:43 anyone ever have AS stop launching the app after a build? Feb 14 12:21:52 is it normal that my menu keeps hidding once I click on back button to go back to a viewpager fragment? Feb 14 12:21:54 just says "Main Activity session running" and the thing doesn't pop up on the device Feb 14 12:39:46 Odaym, hmm usually I just have to unlock it Feb 14 12:40:00 it was fine 1 build ago Feb 14 12:40:14 suddenly, phone not authorised and all sorts of witchery Feb 14 12:45:28 just tried another app, it launches just fine Feb 14 12:45:35 and no "device unauthorized" in ADB logs Feb 14 12:55:06 well I keep getting that the Activity is started, but it isnt the activity I've specified with HOME and Launcher filters Feb 14 12:55:13 it's another activity that is reached elsewhere Feb 14 12:58:04 yea something got messed up under Run configs Feb 14 12:58:56 fixed Feb 14 12:59:11 no idea what made that activity get added under "app" in Run Configurations Feb 14 13:20:58 lasserix_: Hai. Feb 14 13:21:05 lasserix_: Did my APK go through? Feb 14 13:37:20 Has "everyone" migrated to using Android Studio? Or is it still common to use Eclipse + ADT? Feb 14 13:37:51 yes Feb 14 13:38:02 skfax: Why do you ask? Feb 14 13:38:36 I've been away from Android dev for a while and I just had some issues while converting to Android Studio - so was just wondering Feb 14 13:39:01 I recently moved from Eclipse to Android Studio. It was no hassle at all -- I just created a new project and manually imported everything. Feb 14 13:39:04 I would recommend that, I think. Feb 14 13:39:19 There is an auto-import thing, but manually importing isn't complicated. Feb 14 13:39:50 anyone work with heroku when using GCM (google cloud messaging) it starts erroring when sending back from the server Error R14 (Memory quota exceeded Feb 14 13:40:15 http://stackoverflow.com/questions/28516148/heroku-error-r14-memory-quota-exceeded Feb 14 13:48:15 sounds like a nodejs errorn Feb 14 13:50:34 hm but it is weird because it is only happening when talking to gcm Feb 14 13:56:14 considering you can't show the source of the error, then it must be node or heroku with the problem Feb 14 15:04:07 how do i tell gradle to build javadocs? google isn't exactly my friend with that apparently Feb 14 15:06:03 KekSi, use javadoc task. Feb 14 15:06:27 I mean, first few hits are all exact explanations on how to define it Feb 14 15:16:07 Hi there... Feb 14 15:17:47 I'm trying to scale animate a Textview to fill the entire screen, but the text is increasing along with it. I want just the bounds of the Textview to increase, and the text size to stay the same. Is this possible? Feb 14 15:20:15 I'm using scaleXBy/scaleYBy to scale Feb 14 15:26:37 just throws a ton of "package does not exist" things around Feb 14 15:27:13 so i'm guessing something hasn't been set up properly Feb 14 15:31:39 This is driving me crazy implementing Push notifications through google cloud messaging gives me an Error R14 (Memory quota exceeded) on heroku when the push is 4kb max... anyone understand what possibly can be the issue? (I get the notification but after the first time of receiving the notification the error pops up and no more notifications can be received and the server seems to crash) Feb 14 15:34:26 Lonesoldier728, ehm Feb 14 15:34:32 "Memory quota exceeded" is not a GCM error Feb 14 15:34:44 Your Heroku code is messed up Feb 14 15:36:03 it seems to completely ignore the -bootclasspath i set it to the android- Feb 14 15:36:06 .jar Feb 14 15:36:43 what do you mean by that, it works fine Mavrik it is just when I send a push notification that it seems to fall in this endless error loop Feb 14 15:36:56 Lonesoldier728, I mean, that it's not a GCM issue Feb 14 15:37:04 That's a heroku error. Feb 14 15:37:14 Your code is burning too much memory. Feb 14 15:37:20 or something, dunno about ruby stuff Feb 14 15:38:42 hm Feb 14 15:38:43 KekSi, this works just fine for me: https://gist.github.com/izacus/0f3f488adaf6f6037b21 Feb 14 15:38:51 Is your server storing the messages in ram or something? Feb 14 15:41:25 Mavrik: where do i put that? i just get an error "could not find property libraryVariants" Feb 14 15:41:57 You learn how Gradle works. Feb 14 15:42:00 when i put it in the build.gradle of the module Feb 14 15:42:05 Also update your gradle plugin. Feb 14 15:42:22 Sorry, but you kinda have to understand what that does to properly use gradle. Feb 14 15:42:49 its com.android.tools.build:gradle:1.0.0 Feb 14 15:44:07 i'm guessing its a script that runs that as a lambda vor all libraryvariants Feb 14 15:45:43 and i've come across this snippet about 10 times already Feb 14 16:25:35 yoyo Feb 14 16:28:03 hmm Feb 14 16:42:29 lambda script snippet what? Feb 14 16:51:59 mjello Feb 14 17:08:08 What's up fellas? Feb 14 17:19:35 hi, someone tried to implement telegram in his app already? Feb 14 17:23:08 why would you wanna do that Feb 14 17:23:10 ? Feb 14 17:23:26 It's not even open source, you don't know how strong their encryption is Feb 14 17:27:25 Whats up TacticalJoke Feb 14 17:31:17 Dont know if I got disconnected or not Feb 14 17:32:39 @Afzal: there is an api which seems to be open source Feb 14 17:42:13 ? Feb 14 18:05:51 hey guys.. can i get low-level access to wlan in my app? for example if i want to send a custom probe request packet and recieve it.. is that possible? Feb 14 18:08:49 hello Feb 14 18:17:38 is TacticalJoke around? Feb 14 18:18:14 I saw him TimeOut a few mins ago Feb 14 18:18:18 rats Feb 14 18:18:28 :( Feb 14 18:18:41 MikeWallaceDev: ? Feb 14 18:18:49 He was working on a Toolbar yesterday. I said I was working on a half toolbar... Feb 14 18:19:03 Not finished but I like it : http://scrapeshare.com/?vid=1423937785627-3lq6uc Feb 14 18:20:02 I used to have a ActionBar, and that would take away a pile of space where you couldn't draw. Feb 14 18:20:03 looks nice Feb 14 18:20:08 Thank you :) Feb 14 18:20:13 Yeah. nice job Feb 14 18:20:22 very game like Feb 14 18:20:36 I set it to display for a second, then hide, so the user knows it's there :) Feb 14 18:20:49 yeah, that is important Feb 14 18:21:00 Once I get the graphics, it will be pretty nice. I'm happy :) Feb 14 18:21:28 Happy, because I really didn't like the ActionBar, and this guy is cool :) Feb 14 18:22:40 Hey, I just thought of something. Since I show the user that the bar is there, and moves, do you think it's necessary to put an "arrow button" of some sort? Or would the app logo be enough? Feb 14 18:23:33 The logo is the kangaroo, so it would be his face. Feb 14 18:23:51 It would look nice, that's for sure, but would the user "get it"? Feb 14 18:30:44 Great. I killed the room. Feb 14 18:32:01 still here Feb 14 18:32:40 I posted a question, can you guys see it? Feb 14 18:34:52 if you do the animation i don't think an arrow is needed Feb 14 18:41:19 good evening Feb 14 18:41:28 thanks thepoosh Feb 14 18:41:47 hello Feb 14 18:42:00 Yeah, I'm going to put the logo. I'll change it if needed Feb 14 18:42:05 hello john67 Feb 14 18:45:54 i want to an unsigned apk, with android-studio, according to the net the apk is generated automatically and can be found inside the build/output/apk but inside the folder i have app-debug.apk and unsigned-debug.apk is that the unsigned apk? Feb 14 18:59:47 any of you guys have any analytics in your libraries? Feb 14 19:23:33 Watching Back to the Future right now. It's funny how the crazy scientist is just like any programmer. :D Feb 14 19:24:00 "Check out my latest invention." Feb 14 19:26:09 TacticalJoke did you watch Predestination with Ethan Hawke ? Feb 14 19:26:35 Nah, don't think I ever got around to seeing that. Feb 14 19:26:53 "It's a toaster, that UN-TOASTS toast! And look - it's type-safe!" Feb 14 19:27:14 if you like intelligent time travel movies Feb 14 19:27:24 groxx: Haha. Feb 14 19:27:25 g00s: wait, those exist? Feb 14 19:27:45 groxx this one is about, duh-dih - the time predestination paradox Feb 14 19:28:06 "The life of a time-traveling Temporal Agent. On his final assignment, he must pursue the one criminal that has eluded him throughout time." <- surprise twist: it's him? Feb 14 19:28:10 but i also liked coherence Feb 14 19:28:25 groxx XD Feb 14 19:28:54 The cool thing that time travel into the future is possible. But we'd need better technology to actually do it. Feb 14 19:29:20 TacticalJoke when you figure it out let us know what mobile platforms are being used Feb 14 19:29:29 I'm not sure how many years people could shoot ahead by, but it might be something like 50 years in 1 year. Feb 14 19:29:47 TacticalJoke: but don't tell us if it's windows phone. we don't want to know :'( Feb 14 19:29:47 (By exploiting time dilation.) Feb 14 19:30:25 groxx maybe there are alternate realities - where WP and android are switched Feb 14 19:30:30 and android is reliable Feb 14 19:30:35 woah now Feb 14 19:30:40 and time flows backwards Feb 14 19:30:51 and everyone is on UTC Feb 14 19:30:56 * groxx mind blown Feb 14 19:31:07 alternate realities are weird Feb 14 19:32:22 lol hackathons Feb 14 19:32:47 there's this guy convincing two girls that the django database on his computer is not gonna work on their computer Feb 14 19:33:00 whatever he's saying makes 0 sense Feb 14 19:33:24 there's _one_ hackathon I may end up doing some time. amhacks.com Feb 14 19:34:07 yeah, I always wanted to hack the activity manager too Feb 14 19:34:16 lol Feb 14 19:34:23 lol Feb 14 19:36:39 reddit and Verne Troyer. Urgh. Feb 14 19:37:04 Also: reddit on Valentine's Day. Feb 14 19:37:08 Hi guys, I am moving my project from Eclipse to Android Studio line by line, but it cannot resolve R.drawable.abc_search_dropdown_light and R.style.dialog_animation_fade Feb 14 19:38:21 cheesey_: The first one seems to be an AppCompat thing. Did you add a dependency on support-v7? Feb 14 19:38:50 TacticalJoke: yes i have the following dependency compile 'com.android.support:appcompat-v7:21.0.3' Feb 14 19:39:04 Actually, I guess I should say "on AppCompat". Feb 14 19:39:07 Okay. Feb 14 19:39:33 That's the right dependency statement. Feb 14 19:42:02 groxx, yeah, that's a pretty great movie Feb 14 19:42:19 groxx, even though it's a complete paradox Feb 14 19:42:32 like any time movie, ever :) Feb 14 19:43:26 * pfn doesn't watch sci-fi for the sci Feb 14 19:44:04 pfn + g00s: I'll probably still do my normal thing for movies: 1) wait a few years. 2) if people are still talking about it, lament that I didn't see it earlier. 3) rent. Feb 14 19:44:20 groxx, I torrent everything... Feb 14 19:44:27 saw it a few months back Feb 14 19:44:39 though I guess 3 has two options. A) on netflix: watch. B) not on netflix: forget about it for a couple years. Feb 14 19:45:34 cheesey_: I'm not sure. I'm getting the same message. Feb 14 19:46:04 cheesey_: were you on an older version of the appcompat library? could that drawable have been removed? Feb 14 19:46:22 groxx: i was on v7 Feb 14 19:46:39 v7 is just the API-support-level it targets. 21.0.3 is the version of the library code Feb 14 19:47:25 groxx: i'll have to check. but if they did change the drawable for search dropdown lists, what is it now? Feb 14 19:48:00 I dunno if they did or not, just saying it's a possibility. it seems unlikely you were completely up to date with the eclipse project (since it's so much more of a pain) Feb 14 19:48:38 There are a few with 'search' in the name (e.g., abc_textfield_search_activated_mtrl_alpha), but I'm not sure either. Feb 14 19:48:58 Though that one might be an icon. Feb 14 19:50:33 If you type R.drawable.search and press Ctrl+Space (or the equivalent), you should see a bunch of candidates. Feb 14 19:51:32 what's a good cropping library? Feb 14 19:51:35 I've been using https://github.com/jdamcd/android-crop Feb 14 19:51:41 but it's really bad in fragments Feb 14 19:51:54 since it never gives you an actual intent, they want you to use their own start methods Feb 14 19:53:16 I used to just change their getIntent() method from protected to public when i did dependencies manually Feb 14 19:53:30 but now that i'm using gradle for dependencies, i can't exactly modify the source Feb 14 19:57:45 hey TacticalJoke , did you see my toolbar? I'm very happy with it :) Feb 14 19:57:47 http://scrapeshare.com/?vid=1423937785627-3lq6uc Feb 14 19:59:44 It's totally reusable, XML configurable :) Feb 14 19:59:52 Nice. Feb 14 19:59:55 Are you sticking with Toolbar now? Feb 14 20:00:12 and it's not a Toolbar Feb 14 20:00:38 Linear layout. So you can add whatever you want in it Feb 14 20:01:20 so in the video, the black arrow is part of the "toolbar" , the 4 icons are application buttons that I added via XML Feb 14 20:01:52 I display it for a second, then animate it away, just enough to let the user know about it Feb 14 20:02:22 the style is configurable from the application Feb 14 20:02:48 http://pastebin.com/30U2nVHt Feb 14 20:11:10 I wonder why I can't call getResources when not in the MainActivity? (eg https://gist.github.com/Moter8/c5c566a6c8aa3b5d6274#file-storyactivity-java-L27 ) Feb 14 20:11:17 runtime NPE Feb 14 20:11:36 (I'm still stuck on the stupid resource calling) Feb 14 20:12:14 what line Moter8 ? Feb 14 20:12:32 it's highlighted, #27 in the second file Feb 14 20:12:44 Moter8: Again, gotta be in onCreate. Feb 14 20:12:57 OH Feb 14 20:13:01 You can't get resources until onCreate has been called. Feb 14 20:13:28 Ha, that works... one step closer I guess Feb 14 20:13:32 forget onCreate, the constructor isn't even finished... Feb 14 20:14:31 Hm? the app works fine Feb 14 20:27:56 Does anyone have any experience using the Twitter API for android? I want to get the 'mentions' of the logged in user, but I don't understand some of the parameters. Feb 14 20:30:06 nice, I killed the emulator. Feb 14 20:30:59 TacticalJoke, I got it working!!! Feb 14 20:31:01 m3chanical, well you might wanna ask a question containing your issue ;) Feb 14 20:31:13 The getResources does work outside onCreate now Feb 14 20:31:37 lol alright. I always feel bad just asking a random question.. i feel like i'm making assumptions or whatever. hard to articulate Feb 14 20:31:38 anyway Feb 14 20:31:46 https://gist.github.com/Moter8/88a9c8cbc273b531ef3d#file-storyactivity-java-L57 Feb 14 20:32:10 and I have no idea why Feb 14 20:32:55 i know just about zero regarding twitter (but learning!) so I don't know what some of the parameters to the "getMentions" method mean. let me create a gist quick Feb 14 20:33:46 https://gist.github.com/m3chanical/5851691dd6f38041308b Feb 14 20:34:22 How to animate several views from different activities after finish()? Feb 14 20:34:24 all I want is the test of the tweets. the rest of the data i'm going to discard Feb 14 20:34:34 m3chanical, did you check this out: https://dev.twitter.com/rest/reference/get/statuses/mentions_timeline Feb 14 20:34:43 m3chanical, that API library is just a thin wrapper for the official Twitter API Feb 14 20:34:50 oh lord Feb 14 20:35:11 i even looked around for that lol Feb 14 20:35:11 ? :) Feb 14 20:35:19 thanks. that's exactly what i wanted Feb 14 20:35:26 i feel dumb lol Feb 14 20:35:46 minig4mez, your question makes no sense Feb 14 20:35:52 what do you mean different activities? Feb 14 20:37:10 old activity has some buttons, i want to move them out of the screen, but parallel to this start the new activity, where an image is scaled up Feb 14 20:37:24 *gets Feb 14 20:37:31 sorry for my english Feb 14 20:38:27 if use overridependingtransition, i obviously cannot animate individual views only the whole activity Feb 14 20:38:49 yes, you have activity transitions on API 21+ Feb 14 20:38:54 back Feb 14 20:39:16 https://developer.android.com/training/material/animations.html#Transitions Feb 14 20:39:27 minig4mez, if you want to support older, you'll have to animate buttons, THEN finish the activity Feb 14 20:40:58 so i must add the to be scaled image into the old activity and animate, then just finish, am i right?ß Feb 14 20:44:47 I have a custom view and I add it twice to the container ( a LinearLayout ) . Log messages saw that only the first one goes through onDraw() . Code is : http://pastebin.com/UBe6fDmt Feb 14 20:45:49 Is it because layout params are set to match_parent ? If I set them to wrap_content none of them gets drawn Feb 14 20:49:24 Moter8: Resources.getResources is called from StoryActivity.loadPage, which is called from StoryActivity.onCreate. Feb 14 20:49:40 So it's not the case that you're trying to get the resources before Activity.onCreate. Feb 14 20:50:33 csst0111, um, do you know how layouting works? Feb 14 20:50:45 If you're gonna push a view to linearlayout with match_parent, it'll fill up the whole layout Feb 14 20:50:49 and the second view isn't on screen Feb 14 20:50:52 hence no draw. Feb 14 20:51:01 measure, layout, draw Feb 14 20:51:17 that's for the first case. The 2nd ? Feb 14 20:51:54 I mean with each custom view to wrap content Feb 14 20:54:59 hmmm...if I explicitly set layout params to a values lets say 100 it goes through both onDraw but only one gets drawn again :/ Feb 14 20:58:20 TacticalJoke, I hacked more on it... and failed again Feb 14 20:58:42 :/ Feb 14 21:02:46 No wai. Feb 14 21:03:04 needs more hack Feb 14 21:03:22 and more wai Feb 14 21:03:32 btw I watched videos about the static thing and I think i got it now Feb 14 21:03:36 so hack wai ! Feb 14 21:03:38 for (NullPointerException e : nullPointerExceptions) { fix(e); } Feb 14 21:04:06 if (bug) {help_me()} Feb 14 21:04:22 isn't that condition always true? :) Feb 14 21:04:33 no such thing as non-buggy code! Feb 14 21:06:24 I think this would help fix all your problems: assertThat(moter8.hasLearnedJava()).isTrue(); Feb 14 21:06:45 Later it can serve as a regression test. Feb 14 21:09:20 if(android.documentation.wouldbebetter) thatdbegreat(); Feb 14 21:10:55 I'd like to see this animal getting popular: http://www.reddit.com/r/AdviceAnimals/comments/2vvh3h/reddit_on_valentines_day/ Feb 14 21:10:59 Though it seems to have limited use. Feb 14 21:11:21 MainAtivity > StoryActivity > new Story(this) > inside Story class I call context() Feb 14 21:11:25 and that is a NPE Feb 14 21:11:40 I dont get why, it worked in StoryActivity Feb 14 21:12:06 https://gist.github.com/Moter8/8784cd854abf6ab155bb full gist :( Feb 14 21:13:13 in AS, when i type something like foo.bar( i get a list of suggestions. but is there any way to select one and have AS create the boilerplate? i could swear this was doable in eclipse Feb 14 21:13:14 Moter8: You're doing exactly the same thing. Feb 14 21:13:39 Field initializers run before methods (e.g., onCreate). Feb 14 21:13:47 JesusFreke any idea ? Feb 14 21:14:19 private Story mStory = new Story(StoryActivity.this); Feb 14 21:14:49 csst0111, yes? Feb 14 21:15:03 Moter8: Can't you see that this is exactly the same error that you keep making? Feb 14 21:15:04 whats the point of that line ? Feb 14 21:15:31 I tried to pass the reference of the activity to the Story class Feb 14 21:15:41 to there call getResources Feb 14 21:15:47 It doesn't matter. You're still calling thatActivity.getResources before thatActivity.onCfreate. Feb 14 21:16:28 csst0111 the context isn't attached to the activity until sometime after creation (after the constructors are called) Feb 14 21:16:46 so onCreate is the earlies you can access resources, which need context Feb 14 21:16:58 g00s: If you mean parameters, I think IntelliJ can't do that. :/ Feb 14 21:17:07 Default parameter boilerplate. Feb 14 21:17:19 TacticalJoke do you know where it is ? Feb 14 21:17:38 Eclipse did it, but from what I've seen IntelliJ doesn't have the option. Feb 14 21:17:46 Someone echoed this on reddit recently. Feb 14 21:17:54 oh Feb 14 21:18:11 g00s: what boilerplate Feb 14 21:18:18 g00s: it's just a method? Feb 14 21:18:56 guys, I think i solved it Feb 14 21:19:11 in some cases, like when i subscribe to an observable that takes 2 closures / anonymous inner classes, its quite a bit of boilerplate. eclipse would lets me select one of the possibilities and create it all Feb 14 21:19:44 so if i could say foo.bar(new Action0() { } - eclipse would create that Feb 14 21:19:45 ah. I think you can do the boilerplate when you create the annoymous inner class, but not at the method level Feb 14 21:19:48 https://gist.github.com/Moter8/49639fad2f3adf577671#file-storyactivity-java-L32 Feb 14 21:19:58 Moved the story thing inside the onCreate Feb 14 21:20:03 It now works Feb 14 21:20:13 Moter8: Precisely. Feb 14 21:20:18 gahh! Feb 14 21:20:22 :)) Feb 14 21:20:29 e.g. type foo.bar(new Action0 Feb 14 21:20:30 https://gist.github.com/Moter8/3ea098a2e6ffdd601c6a Feb 14 21:20:46 and then it should provide auto-complete to generate the Action0 boilerplate Feb 14 21:20:51 ^what you guys told me Feb 14 21:21:40 isn't "You cannot call Context.getResources inside that class of yours. " wrong? Feb 14 21:21:57 JesusFreke it only works in some cases. if the overloads are: Action0 | Action0, Action0 | Action0, Action0, Action0 ... i have to type new Action0 and only get the first match finished for me Feb 14 21:22:14 nevermind, thanks for the help anyhow Feb 14 21:22:16 Moter8: At the time, you were trying to create a Context and then call Context.getResources. Feb 14 21:22:22 eclipse would let me use the up/down to select possibilities and then just do everythin Feb 14 21:22:24 I was saying that you'd have to pass in the Context, Resources, or string array. Feb 14 21:22:41 g00s: yeah, not sure offhand. I suspect it should be possible Feb 14 21:22:48 BTW, I'm not sure that it's good design to pass in the Context. Feb 14 21:22:49 TacticalJoke, <3 Feb 14 21:23:01 Why does your object need a whole Context? I think it should be ignorant of such a thing. Feb 14 21:23:11 I mean, it works, but it feels wrong to me. Feb 14 21:25:17 Oh, I can pass the array in too?! Feb 14 21:25:27 You could pass the string array or the Resources instance. Feb 14 21:26:03 (i.e., the return value of "getResources()".) Feb 14 21:26:10 is there anyway to check if ScheduledExecutorService is already running? Feb 14 21:26:23 i have an app of minSdkVersion 19 targetSdkVersion 21 , im trying to install it on my tablette, but i have app not install, the android system of my app is 4.4.2(19) Feb 14 21:27:00 nvm ill just set something to true if it runs Feb 14 21:27:49 how can i solve it? Feb 14 21:28:03 john67: Solve what? Feb 14 21:28:25 AndreYonadam: i have an app of minSdkVersion 19 ,targetSdkVersion 21 , im trying to install it on my tablette, but i have app not install, the android system of my app is 4.4.2(19 Feb 14 21:28:27 john67: I think more info is needed. Feb 14 21:28:34 john67: Somewhere there's an error Feb 14 21:28:35 Find that Feb 14 21:28:39 pretty cool https://www.desmos.com/calculator/9ed6k6wexp Feb 14 21:28:56 on my code there isnt no error Feb 14 21:29:04 isn't no ? Feb 14 21:29:07 john67: Does it install if you further lower the min sdk Feb 14 21:29:08 so there is ! Feb 14 21:29:15 adb install will give you an error if it fails to install Feb 14 21:29:19 That kind of error Feb 14 21:31:59 g00s, will pass the love arozund Feb 14 21:32:03 around Feb 14 21:32:03 is it possible to debug applications without allowing installation from unknown sources generally? (Can I somehow have my phone trust a signing key that I use only for development?) Feb 14 21:32:15 debug applications on a real phone* Feb 14 21:32:42 iirc adb install doesn't need unknown sources checked Feb 14 21:32:58 Yeah, I usually don't have "allow unknown" checked. Feb 14 21:33:22 but it's not like checking unknown sources automatically installs malware Feb 14 21:33:35 you still have to download an apk and go through all the install screesn Feb 14 21:36:25 I organized my classes into separate packages, and now one of my adapters and the corresponding model are giving me errors. " 'user' has protected access". Is that inherent by organizing my classes into packages, or is there a simple fix that I can do while still keeping them in separate packages? Feb 14 21:36:31 i don't feel so bad now, Facebook app is just beginning to get some material .. for a few people :D Feb 14 21:36:44 i think i can safely sit on material until i.o 2015 Feb 14 21:37:07 t0astt, you might wannt learn what "protected" keyword means ;) Feb 14 21:37:29 Mavrik: Good point. I've been meaning to do that for awhile now! Feb 14 21:37:57 it's basically telling you you're trying to call something with "protected" access where you're not allowed to Feb 14 21:38:11 do look at what public/protected/private/package private means in Java and it'll become really clear :) Feb 14 21:39:42 Glad you told me to learn about it, because I just saw a chart that shows access levels and now it makes a ton more sense Feb 14 21:40:02 t0astt http://stackoverflow.com/questions/215497/in-java-whats-the-difference-between-public-default-protected-and-private Feb 14 21:40:15 notice that minor comment there with 311 upvotes Feb 14 21:40:25 AndreYonadam: i have try the minSdk to 16, and i added lintOptions { abortOnError false } but same thing Feb 14 21:40:57 What is the exact error you get? Feb 14 21:42:45 Error:Execution failed for task ':app:lint'. Feb 14 21:43:21 how about turning off errors you actually FIX THEM Feb 14 21:44:45 Mavrik: Errors all fixed now :D Feb 14 21:44:46 AndreYonadam: Error:Execution failed for task ':app:lint'. Feb 14 21:44:54 john67: Where did you add abortOnError false? Feb 14 21:45:36 john67: You should know what the errors are that are causing it thoguh Feb 14 21:45:39 *though Feb 14 21:45:52 The problem isn't with the devie Feb 14 21:45:54 *device Feb 14 21:46:04 AndreYonadam: no, there is no error in the code , Feb 14 21:46:38 john67: Check the gradle console Feb 14 21:49:13 He almost certanly has a Lint error because he's using 21 API on 19 without checing. Feb 14 21:49:15 *checking Feb 14 21:49:21 ^ Feb 14 21:49:23 Yeah Feb 14 21:49:42 AndreYonadam: i checking on the int-results.html Feb 14 21:49:51 int-results.html? Feb 14 21:51:30 AndreYonadam: yeah according to the int-results.html, there re some errors, Feb 14 21:52:04 john67: Yeah you can try fixing them Feb 14 21:54:08 When I'm debugging an Android app with OpenGL, would it be better to use GL trace or API trace? Feb 14 21:55:29 Hi guys, my android game was taken down in some countries with the following reason: REASON FOR REMOVAL: PLACEHOLDER FOR TEXT INPUT Feb 14 21:55:38 anyone had the same or similar problem???? Feb 14 21:56:38 it\s just a classic board game, no fancy content i have no idea why would they remove it in google play in some countries Feb 14 21:56:55 oh, Google Feb 14 21:57:28 I wrote google like 1 month ago wtf and still didn't get any feedback Feb 14 21:57:52 yup, that's how Google works Feb 14 21:58:17 In which countries was it removed? Feb 14 21:58:33 users in the following locale(s): AT, DE, FR, RU Feb 14 21:59:12 I don't even see any pattern in those countries Feb 14 21:59:16 Is this you? http://blotto5.rssing.com/browser.php?indx=3992023&item=48972 Feb 14 21:59:22 If not, they had the same problem. :D Feb 14 21:59:49 it's my friend with whom i made the game Feb 14 22:03:44 hm, any tips if google can be contacted somehow? Feb 14 22:08:24 meh ..google.. Feb 14 22:09:09 damn, that sucks Feb 14 22:09:52 the worst is there is actually noone you can talk to or contact Feb 14 22:09:54 Have you verified whether it's really been taken down for those users? Feb 14 22:10:17 yes, we have some users in those countries and it was confirmed from all Feb 14 22:10:38 they don't even get updates anymore Feb 14 22:13:23 "REASON FOR REMOVAL: PLACEHOLDER FOR TEXT INPUT" wtf does that even mean Feb 14 22:14:12 i didn't find anything on google Feb 14 22:14:29 i didn't either Feb 14 22:15:32 so during i/o 2015 fireside, i wager the first 2 questions will be "when java 8" and "how can we talk to somebody when app is removed" Feb 14 22:15:39 that's what we were asking ourselves too. One of our theories is that the "PLACEHOLDER FOR TEXT INPUT" is where the real reason should have been put but google somehow screwed it up Feb 14 22:15:40 sounds like their removal bot didn't send it to a human resource that would fill in the reason Feb 14 22:16:39 yeah, because it doesn't make any friggin' sense Feb 14 22:16:50 paul01_ if thats the case, its despicable Feb 14 22:17:24 g00s yeah and there is literally noone you can contact to resolve the issue Feb 14 22:17:25 * frankdrey would rage-rant at Google right now Feb 14 22:17:29 but i just had some coffee Feb 14 22:17:31 sure is Feb 14 22:17:38 so I can't be mad anymore :D Feb 14 22:17:40 is there a backwards compatible card view? Feb 14 22:17:43 yay coffee Feb 14 22:18:21 cheesey_ what do you mean, it was blocked like 1 week after the first release Feb 14 22:22:30 You could post to /r/androiddev, but it'd probably culminate in your being accused of "obviously doing something wrong and not giving all the details". Feb 14 22:22:40 People love to pretend that Google's system is perfect and victim-free over there. Feb 14 22:22:53 still cant install app on the tablette Feb 14 22:23:15 john67, fix your errors Feb 14 22:23:31 i dont have errors , but warning Feb 14 22:24:00 TacticalJoke yeah, even if the app should be taken down, there needs to be better communication. and i don't see why they couldn't run the bot filter on the thing as you are submitting, and even preventing submission, instead of these automated retroactive stuff Feb 14 22:24:22 frankdrey: i just have warning Feb 14 22:24:43 TacticalJoke yeah probably, and its the second game in google play, the first one had absolutely no problems Feb 14 22:25:57 How di dyou try to contact Google? Just curious. Feb 14 22:25:57 did* Feb 14 22:26:18 I mean all the descriptions are set, there is no mature or explicit content, it's localized in 3 languages, it has a tutorial, it's free, it has proper screenshots, youtube video etc etc Feb 14 22:26:48 there was a contact email in the Takedown notification Feb 14 22:28:24 Hmm, I'm guessing this is useless? https://support.google.com/googleplay/android-developer/troubleshooter/2857301?hl=en Feb 14 22:30:55 thnx, I already clicked through that and it's just a series of links to the documentation Feb 14 22:31:14 I'm guessing you've checked "Distribute in these countries" and stuff, too. Feb 14 22:31:18 no real contact anywhere ... :) Feb 14 22:31:47 yeah and it was available like 1 week or maybe more Feb 14 22:31:54 will CM eventually have their own app distribution store ? Feb 14 22:32:48 paul01_: Does that "Contact Us" link at the top right go anywhere? Feb 14 22:32:53 On . Feb 14 22:33:19 paul01_: did you use a fake value for your address in your developer account or something? (just guessing here) Feb 14 22:33:29 g00s, I doubt it... you should talk about that in #cyanogenmod :P Feb 14 22:33:54 That lets me e-mail them if users can't download my app. Feb 14 22:33:55 frankdrey i dont use CM, but find anything destabilizing google's power interesting :D Feb 14 22:34:15 haha Feb 14 22:34:18 Publishing apps on Google Play > Users having problems downloading my app > Email Feb 14 22:34:30 JesusFreke: no, it's all real Feb 14 22:34:32 Says they reply in two business days. Feb 14 22:34:35 g00s, it would be almost impossible to do that Feb 14 22:34:50 custom roms are still a hobbyist thing...even though CM is trying Feb 14 22:35:22 paul01_: what app? Feb 14 22:35:52 JesusFreke: what do you mean what app? Feb 14 22:36:21 paul01_ your app Feb 14 22:36:22 :| Feb 14 22:36:32 i still cant install the app, i have a sdk min 16 , and my tablette is 19, i dont have errors on my code Feb 14 22:36:44 i have app not install Feb 14 22:36:53 how can i solve this Feb 14 22:36:58 TacticalJoke: my co-develper wrote there weeks ago, the 2 bussiness days must be some google insider joke Feb 14 22:37:34 the app is https://play.google.com/store/apps/details?id=org.boardnaut.studios.maquis.android Feb 14 22:38:29 huh... Feb 14 22:38:46 now it kinda makes sense why it might be blocked in FR at least Feb 14 22:39:41 and probably DE Feb 14 22:40:09 why ? pardon my ignorance Feb 14 22:40:22 john67: View > Tool Windows > Run. Feb 14 22:41:10 this was one of the theories, but for example wolfenstein works in google play in FR and DE Feb 14 22:41:28 Note that they don't necessarily apply removals consistently. Feb 14 22:41:47 and there are symbols of nazism all over the game Feb 14 22:42:56 TacticalJoke: have done that, but i got ,no errors Feb 14 22:43:22 Maybe you should pastebin the output in that window when you try to run your app. Feb 14 22:43:26 hm doesnt appear to me (wolfenstein) Feb 14 22:44:14 german play store with spanish phone Feb 14 22:44:36 What is the direct link to Wolfenstein? I'm not able to find anything with that exact name. Feb 14 22:45:28 Moter8: so you don't see this game https://play.google.com/store/apps/details?id=com.ichera.autowolf ? Feb 14 22:45:41 oh yes i do Feb 14 22:45:42 lol Feb 14 22:45:43 it's https://play.google.com/store/apps/details?id=com.ichera.autowolf Feb 14 22:45:51 Hey, I want different onStart() method for each build flavor, Do I need to create several activity files? Feb 14 22:46:00 Okay, I see that (in England). Feb 14 22:46:16 the game is not included Feb 14 22:46:21 so why would it show that stuff Feb 14 22:46:22 actually there is event a picture of hitler on one of the screenshots :P Feb 14 22:46:44 * Moter8 is blind Feb 14 22:47:01 it sounds like that doesn't actually include the game though Feb 14 22:50:17 how about this one https://play.google.com/store/apps/details?id=com.AnemwieGames.BerlinDefender_1945 Feb 14 22:50:17 ? Feb 14 22:50:19 :) Feb 14 22:51:47 I don't see why any of these games would break any rules. I'm kinda confused by the whole conversation. Feb 14 22:52:37 ^ Feb 14 22:52:41 TacticalJoke: http://en.wikipedia.org/wiki/Strafgesetzbuch_section_86a Feb 14 22:52:42 * JesusFreke shrugs Feb 14 22:52:56 where are nazi symbols in his app tho Feb 14 22:53:05 not just nazi though Feb 14 22:53:07 (org.boardnaut.studios.maquis.android) Feb 14 22:53:34 "Symbols, within the meaning of subsection (1), shall be, in particular, .... uniforms..."  "Symbols which are so similar as to be mistaken for those named in sentence 1 shall be deemed to be equivalent thereto." Feb 14 22:53:40 * JesusFreke shrugs Feb 14 22:53:47 I'm just guessing though :) Feb 14 22:56:29 Are there any tools online that can grab whatever character is at a certain index of a string? Feb 14 22:57:10 I'm getting an illegal argument exception because of a character at index 91 of my string... and I don't feel like counting that out Feb 14 22:57:15 JesusFreke: hm it could be that the uniforms in the background in the main menu resemble ww2 uniforms, but quite a long stretch :)) Feb 14 22:57:30 t0astt, any good text editor has that Feb 14 22:57:36 even word Feb 14 22:57:43 paul01_: yeah, that's the only thing I can think of. With it being only being banned in a couple of locales, it seems like it has to be something like that Feb 14 22:57:54 some sort of locale specific regulation or something Feb 14 22:57:58 t0astt, http://i.imgur.com/ZmJS6zA.png hue Feb 14 22:58:10 D'oh Feb 14 22:58:12 AS does too Feb 14 22:58:13 lol my bad Feb 14 22:58:13 Couldn't you look at the result of "string.charAt(91)" in the debugger? Feb 14 22:58:36 Moter8: go home Feb 14 22:58:44 * Moter8 found your DadFoundMy Feb 14 22:59:13 So the character at index 91 was a 0, but 2 characters after that is a pipe |. Is | an illegal character? Feb 14 22:59:33 Is it domb of me to be converting an ArrayList into a jsonarray to add to my db? I feel like there should be a much simpler way Feb 14 22:59:36 *dumb Feb 14 22:59:45 Which method is throwing the IllegalArgumentException? Feb 14 22:59:50 ok, thanks guys, I am going to bed, have a nice evening! :) Feb 14 22:59:55 ^ Feb 14 22:59:57 ( 2 ops online? Can't remember the last time I saw that here ) Feb 14 23:00:02 paul01_ let us know what happens Feb 14 23:00:24 TacticalJoke: It's a method that throws together the base of a facebook graph API call, the fields I want returned, and then my access token Feb 14 23:00:38 all right I ll report back if we get any feedback Feb 14 23:00:38 The illegal argument exception occurs within my acces token Feb 14 23:00:50 bb Feb 14 23:00:59 csst0111: it is common practice to not remain opd for long Feb 14 23:01:02 It sounds like a domain-specific error condition that is unrelated to the String class. Feb 14 23:01:42 I tried using URLEncoder.encode(string, "UTF-8") and it broke the string Feb 14 23:03:18 ah ok Feb 14 23:03:32 now I separated out the access token itself and URLEncoder'd that and it works now. Woohoo Feb 14 23:13:18 Toolbar seems to redefine the semantics of 'android:minHeight'. It's no longer about minimum height but about the positions of navigation and overflow icons. Feb 14 23:13:49 yeah Feb 14 23:14:14 kinda weird Feb 14 23:14:45 Yeah. Feb 14 23:17:36 whoa, hi romainguy Feb 14 23:17:43 hey Feb 14 23:18:56 romainguy your photography been going ? any nice trips lately ? Feb 14 23:19:20 unfortunately no, I recently moved and this has kept me quite busy Feb 14 23:19:51 i moved away from AZ - i miss the desert SW. But things are getting crazy there with drought Feb 14 23:20:05 * g00s <3 desert SW for photography Feb 14 23:25:12 TacticalJoke: u told me to send the output of the app, http://pastebin.com/bTUMCTDz Feb 14 23:26:32 The output of View > Tool Windows > Run, not the output of LogCat. :) Feb 14 23:27:04 romainguy have any thoughts on kotlin? Feb 14 23:27:59 why is it always such a bitch to import an exisitng project into eclipse? I swear it never works correctly Feb 14 23:28:21 g00s: It looks pretty interesting, and coming from JetBrains it's bound to have good tools support Feb 14 23:28:27 TacticalJoke: http://pastebin.com/tpbzD44h Feb 14 23:28:29 I always hated Eclipse's notion of a project/workspace. Feb 14 23:28:41 romainguy yeah; i was looking for an opportunity to use it in my android app Feb 14 23:29:02 john67: Do you see your app icon in the list of installed apps? Feb 14 23:29:29 DadFoundMy: Can't you switch to AS? It has a much better project notion (as well as other things). Feb 14 23:29:49 TacticalJoke: yeah i think im going to, im just so used to eclipse Feb 14 23:30:05 TacticalJoke: do you know if AS has a vim like plugin like eclipse does? Feb 14 23:30:22 I heard that it does (IdeaVim), but I haven't tried it. Feb 14 23:30:27 TacticalJoke: which list?i can just see icon, in the emulator thats all Feb 14 23:30:38 the icon Feb 14 23:30:53 john67: I thought your issue was that the app won't install on the device? Feb 14 23:31:12 TacticalJoke: yeah, it wont install on the tablette Feb 14 23:31:21 TacticalJoke: more importantly, AS what the Android tools team is focusing on now Feb 14 23:32:28 Yeah. Especially now that they have JVM unit testing, I can't see a reason for anyone (other than NDK developers) to stay on Eclipse. :) Feb 14 23:32:38 TacticalJoke maybe you can ask cbeust for unit testing wisdom :D Feb 14 23:33:28 its good to see some googlers back :) Feb 14 23:33:54 It's great to see experts in here. Really good for this place. Feb 14 23:34:19 TacticalJoke: the app wont install on tablette, but i have the project icon, display on the tablette when i put the apk inside . is that what u mean? Feb 14 23:34:39 john67: Why do you believe that it won't install on the tablet? Feb 14 23:35:20 TacticalJoke: becos i have app not install, when i try to install the app on the tablette Feb 14 23:35:48 What do you mean by "app not install"? Feb 14 23:36:13 TacticalJoke: JetBrains has released an early access version of CLion, their C/C++ IDE, so even for native code Eclipse might not be needed anymore Feb 14 23:36:20 Oh, cool. Feb 14 23:36:23 It doesn't support the Android NDK out of the box though Feb 14 23:36:53 It's all based on CMake Feb 14 23:36:59 (a project file is any CMake file) Feb 14 23:37:13 can i jusst import a project made in eclipse to AS? Feb 14 23:37:15 TacticalJoke: when i try to install on the tablette , i have " app not installed) Feb 14 23:37:28 john67n: Can you paste the entire error message on pastebin? Feb 14 23:38:09 DadFoundMy: https://developer.android.com/sdk/installing/migrate.html Feb 14 23:43:35 TacticalJoke: the message from the tablette is App not installed . or u want the message from the gradle console? Feb 14 23:46:09 wtf, I am getting this error: http://developer.android.com/guide/topics/ui/menus.html Feb 14 23:46:15 wait not that Feb 14 23:46:55 john67: Sure. I think it would be a good idea for you to also paste all of those lint errors you mentioned earlier. And it might be a good idea to paste your AndroidManifest.xml, too. Feb 14 23:46:59 The more info, the better. Feb 14 23:47:01 I am getting an error telling me that resource fields cant be used in switch cases, but thats was the google example shows in the link above Feb 14 23:47:28 and it was working before i imported the project :/ Feb 14 23:47:31 wtf, I am getting this error : http://www.pornhub.com/view_video.php?viewkey=1724796107 Feb 14 23:47:35 wait not that Feb 14 23:48:37 (well, _I_ thought it was funny :P ) Feb 14 23:48:57 win 5 Feb 14 23:49:04 TacticalJoke: http://pastebin.com/K1Y30WRm Feb 14 23:49:06 DadFoundMy: Is it a library project? Feb 14 23:49:07 oh god im all over the place today Feb 14 23:49:27 TacticalJoke: what do you mean? Feb 14 23:49:32 john67: Please paste the manifest. Feb 14 23:50:13 DadFoundMy: I'm not sure whether this still applies: http://tools.android.com/tips/non-constant-fields Feb 14 23:50:34 I think that's the problem TacticalJoke Feb 14 23:50:43 TacticalJoke: http://pastebin.com/vhZq3jxd Feb 14 23:51:11 TacticalJoke: thats the link that the error brings me to. i think its wierd that my code worked on my PC, but i imported, and that the google example shows what I had Feb 14 23:52:28 TacticalJoke: look at the contextual menus section here: http://developer.android.com/guide/topics/ui/menus.html Feb 14 23:53:10 john67, what's the error? Feb 14 23:53:45 MikeWallaceDev: http://pastebin.com/K1Y30WRm Feb 14 23:54:10 I don't see any error there john67 Feb 14 23:54:18 only warnings Feb 14 23:54:43 MikeWallaceDev: yeah but i cant install my app on the tablette, Feb 14 23:54:59 I read that, what error are you getting? Feb 14 23:56:06 MikeWallaceDev: app not installed , on the tablette Feb 14 23:56:47 I have a ScheduledExecutorService that is created in my activity's onCreate(). The problem is that the user can cause another instance of the ScheduledExecutorService to be created if he rotates the screen. So I added a ScheduledExecutorService.shutdownNow() in the activity's onDestroy. The problem is that the ScheduledExecutorService has a runOnUiThread inside it so I believe that even though I do a ScheduledExecutorService.shu Feb 14 23:56:47 tdownNow() it wont really shutdown the runOnUiThread which is going to keep running despite the ScheduledExecutorService.shutdownNow(). I was wondering if I can check if the ScheduledExecutorService is running prior to starting it again. Feb 14 23:56:47 DadFoundMy: What did you import your project into? Android Studio? Feb 14 23:56:56 that's all you're getting? Where do you see that error? What is the output from the Run window? Feb 14 23:57:01 john67, what tablet you got ? You have set supports-screen for small, normal, large, xlarge screens on your manifest Feb 14 23:57:30 csst0111: i have galaxy tab 4 Feb 14 23:57:43 TacticalJoke: eciplse. i meanily code on my PC, but needed to code on a laptop for the weekend Feb 14 23:57:58 Anyone have any experience with my situation? Feb 14 23:58:30 I wonder whether you imported it as a library or something. I think File > Import Project works. Feb 14 23:59:16 im going to try that next Feb 14 23:59:28 or just switch to Android Studio and never look back :D Feb 15 00:00:13 BTW, when I switched to AS I created a new project and manually imported everything. It was simple in my case. Feb 15 00:00:33 AndreYonadam thats an odd way of doing it. why not just have an executor statically scoped, and on rotation change just cancel the job / pending stuff Feb 15 00:01:19 AndreYonadam time to check out Rx, it has nice completion semantics for work Feb 15 00:02:22 g00s: Just looked at Rx. Looks good. Feb 15 00:02:24 I can't use AAndroid Studio cus it needs admin, and I oten use my college's computer :( Feb 15 00:04:19 MangolyLion on mac i dont think it needs admin, thats weird Feb 15 00:05:29 g00s: Pseudo code http://pastebin.com/z8PLF8wt Feb 15 00:05:49 it would need admin if it was badly installed ( I know, I screwed it up once) Feb 15 00:06:33 I was thinking about destroying the runOnUIthread part too Feb 15 00:06:41 Not sure if that was remotely possible Feb 15 00:07:27 AndreYonadam oh, yo uare probably just better off using a Handler on the UI thread + delayed messages, recursively sheduling themselves at fixed rate Feb 15 00:07:48 oops, didn't see 'fetch for updates and stuff' Feb 15 00:08:01 ok, you could use Rx for that :D Feb 15 00:08:12 Yeah :) Feb 15 00:08:33 I'll think about Rx Feb 15 00:08:36 TacticalJoke: did u found any thing wrong with the manifest? Feb 15 00:08:38 MangolyLion: Are you sure it needs admin? Feb 15 00:08:39 you can either use a Scheduler from an executor, or use the AndroidScheduler Feb 15 00:08:45 john67: No, but I'm no manifest expert. Feb 15 00:09:04 TacticalJoke: oki, oki Feb 15 00:09:09 I thought of using AndroidScheduler Feb 15 00:09:27 I wonder whether it's printing something to LogCat when it's showing "cannot install" or wahtever. Feb 15 00:09:52 TacticalJoke, I'm definitely sure Feb 15 00:09:58 MangolyLion: Which OS? Feb 15 00:10:01 Windy Feb 15 00:11:57 Is it related to this? https://code.google.com/p/android/issues/detail?id=56230 Feb 15 00:16:41 john67: check logcat, there'll be an error message. Or use adb install and have it tell you why it fails. Feb 15 00:18:24 SimonVT: there is no error , http://pastebin.com/1Sr8QSKZ Feb 15 00:20:00 Are you sure you're not filtering logcat? Feb 15 00:23:06 Anyway, get the error message. It tells you what is wrong Feb 15 00:23:40 SimonVT: there is no error Feb 15 00:23:59 There is Feb 15 00:24:03 SimonVT: i can test the app on the emulator, but not on the mobile device Feb 15 00:25:26 i think its bcos im using may be stuff for the version 5, may be i shouldnt Feb 15 00:26:10 Use adb install.. Feb 15 00:26:14 Get the error message Feb 15 00:54:07 g00s: Former Googler :) Feb 15 00:54:19 cbeust just noticed, LinkedIn now :) Feb 15 00:54:29 g00s: No, former LinkedIn too :) Feb 15 00:54:35 haha Feb 15 01:03:15 SimonVT: i got failure Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES] Feb 15 01:07:34 There you go, the apk isn't signed Feb 15 01:12:21 if i have a gridview, and i know how many items will be there, is there some way to have it automatically scale items so that there is no wasted screen space ? Feb 15 01:13:30 hmm android:stretchMode Feb 15 01:26:10 SimonVT: oki Feb 15 01:26:18 new problem now Feb 15 01:26:22 application not installed an existing package by the same name with a conflicting signature is already installed Feb 15 01:27:02 I think you'll need to uninstall the old one. Feb 15 01:28:18 Yes, if the app is already installed, updates will have to be signed with the same key Feb 15 01:28:34 TacticalJoke: how? the app isnt install Feb 15 01:29:16 adb uninstall Feb 15 01:32:57 SimonVT: the app stop when i try to launch it Feb 15 01:35:38 john67: You have a habit of giving way too little info. It's impossible to diagnose "the app stops when I try to launch it". Feb 15 01:35:54 Specific details are the only way to get help. Feb 15 01:37:13 TacticalJoke: its crashes when launch and i have like message "unfortunately cw has stopped " Feb 15 01:37:30 so im about to boot up android studio for the first time. Anything I should know? Feb 15 01:37:44 john67: Then you can figure out the cause of the exception. Feb 15 01:38:15 DadFoundMy: Fasten your seat belt. Feb 15 01:38:26 TacticalJoke: yeah but its on the tablette how can i? plus i have no error on the logcat Feb 15 01:38:36 Disable all filters on LogCat. Feb 15 01:38:57 Possibly search for "exception" to make your life easier (not necessarily recommended). Feb 15 01:39:36 i fastened my seatbelt to get ready for the speed, but now it's just downloading all the support repos :( Feb 15 01:41:14 Is calling notifyDataSetChanged() on an ArrayAdapter asynchronous? I noticed that if I call that and change the array data immediately after, my list gets updated with the new data. So it seems to be asynchronous. Feb 15 01:42:58 DadFoundMy: i've had issues sometimes with logcat not putting out.. having a script to invoke logcat in the terminal has been a handy backup Feb 15 01:43:03 SilentByte: so if you update info soon after calling notifyDataSetChanged() the adapter gets updated with that info??? that kinda blows my mind Feb 15 01:43:06 in android studio Feb 15 01:43:32 xdaimon: yeah ive heard that logcat is a little iffy in as Feb 15 01:44:49 DadFoundMy: are you working with the NDK? Feb 15 01:45:24 DadFoundMy: seems that way... I'm going to retest Feb 15 01:45:29 SilentByte: It should be synchronous. Feb 15 01:45:49 Maybe my problem is elsewhere... Retesting now. Feb 15 01:46:18 xdaimon: is it bad that i dont know what that is... Feb 15 01:46:34 No :) Feb 15 01:47:07 Probably better so lol. Feb 15 01:47:17 SilentByte: maybe notifyDataSetChanged() is being called and then another method that reinstaniates the adapter? Feb 15 01:47:23 i know i have rean into that a bunch Feb 15 01:50:12 android studio just gave me a warning that openjdk doesnt always work. Should I be using oraclejdk? Feb 15 01:54:31 openjdk was what was recommended to download from the source.android website ... so i have just been assuming it's fine and ignoring the warning Feb 15 01:54:36 but i don't know any technical details Feb 15 01:56:04 http://source.android.com/source/initializing.html is where I got that from btw Feb 15 01:57:16 can someone PLEASE tell me why this is giving me a ClassCastException http://pastebin.com/NdhhgyZ7 Feb 15 01:57:28 it says String cannot be cast to Set... where am I doing that at? Feb 15 01:58:45 m3chanical: im going to keep using it then, although I think i am using the one from the ubuntu package Feb 15 02:00:25 guess its a mystery Feb 15 02:01:44 MartialLaw: I copy/pasted your code into android studio and didn't get your error Feb 15 02:05:09 MartialLaw: I'm guessing you put something other than a String set in there with the key "storedName". Feb 15 02:07:32 Yup... Confirmed. Calling notifyDataSetChanged() followed immediately by changing the data in the underlying ArrayList causes the ListView to be updated with the new data. So the notifyDataSetChanged call must be asynchronous?? Feb 15 02:09:03 SilentByte yes, but dont rely on weird timing like that :) Feb 15 02:09:21 TacticalJoke: yup thanks... duhh Feb 15 02:09:22 I looked at the code. I don't see how it could be asynchronous. Feb 15 02:09:35 Is there any way to make it not async? Feb 15 02:09:41 SilentByte: https://android.googlesource.com/platform/frameworks/base/+/d892afc88d3c67a7fe1c9550bfa7a452051d031d/core/java/android/widget/BaseAdapter.java#49 Feb 15 02:09:42 :) Feb 15 02:10:47 Unless it's some ListView-specific part that's async somewhere. Feb 15 02:10:47 ooo android studio lets up open a terminal from inside the ui Feb 15 02:11:40 will a height set in dp scale to all devices? Feb 15 02:12:07 ugh no it wont Feb 15 02:12:25 i cant get these boxes to scale evenly without stacking a weight inside a weight Feb 15 02:13:01 Haha, has anyone come around squeeking about xposed on Lollipop? Feb 15 02:13:10 I've been telling people to stay away. Feb 15 02:13:11 I wish the google docs would tell me that it's asynchronous. That seems pretty important to know. Feb 15 02:13:19 Couple people have bricked trying it. Feb 15 02:14:11 iirc listview just uses it as a way to mark things as dirty, invalidates itself, and picks up the changes on the next draw/layout loop. Feb 15 02:14:40 yeah, from what I can tell it sets a dirty flag, then calls requestLayout Feb 15 02:15:29 which (in some ways) makes more sense than forcing a full recalculation immediately, because then you can notify multiple times without paying for extra computation Feb 15 02:17:44 Is there a way to recalculate immediately though? Feb 15 02:24:07 is there a reason you need to? build things based on what's on-screen, and there shouldn't be any need. Feb 15 02:29:08 Well, I call notifyDataSetChanged() to display an indicator icon in the ListView. Then I modify the underlying ArrayList and send it out over the network to other devices (async operation). It's only when that network operation succeeds that I want to call notifyDataSetChanged() again to display the new values in the ArrayList. Feb 15 02:30:43 then you're probably using the adapter wrong :) keep the modified data entirely separate from the adapter until you're ready to display it. Feb 15 02:31:29 heh, yeah you're probably right Feb 15 02:31:46 Still though, it's important to know when some operation is async, so I won't run into problems like this! Feb 15 02:32:13 can someone help explain viewholderpatterns? Feb 15 02:32:41 kinda. nearly everything with the views is semi-async though, since you e.g. requestLayout() which just sets a flag. Feb 15 02:34:01 Well now I know that. :) Feb 15 02:34:02 TheKarlBrown: viewholders are mostly to speed up things in listview, by caching the findViewById calls. conceptually it's also probably a bit cleaner, since you get types + names in a holder-object. Feb 15 02:34:34 SilentByte: ah. yeah, that's handy to know :) it's also why views won't have sizes or positions right after inflating, which trips up a lot of people at the beginning. Feb 15 02:34:59 TacticalJoke: you were right. i was importing the code as a library. I fixed it, but now I cant run it. how do i import code correctly? Feb 15 02:35:45 I think it's something like File > Import Project in Eclipse. Feb 15 02:36:02 thats what i did that imported the library Feb 15 02:36:44 well i imported it as existing android code, should I just import it as java code? Feb 15 02:37:20 wait so viewholder isnt adapter specific, its good for all kinds of s tuff Feb 15 02:38:23 If you go File > Import... > Existing projects into workspace. Feb 15 02:38:30 TheKarlBrown: yeah, it's just a simple pattern. it's more noticeable with listviews because you need to rapidly and repeatedly find the same views, but e.g. having "TextView label = findViewById(R.id.label)" in your Activity, and then using label.setText("whatever") later instead of findViewById again, is the same principle. Feb 15 02:38:56 I *think* that's what I used to do. It's been a while. Feb 15 02:39:20 groxx: I was thinking that one possibility would be to use ViewGroup.getChildAt instead. Feb 15 02:39:52 ahh yes that worked to import it as general, not android Feb 15 02:39:55 Though I like using a "holder" entity if done right. Feb 15 02:40:00 this will make my life a whole lot easier Feb 15 02:40:09 DadFoundMy: I'd still recommend Android Studio, though. :) Feb 15 02:40:16 TacticalJoke: yeah, I would very much assume you can build a faster 'get my views' than findViewById. depth-first is pretty bad for performance purposes in general (great for memory though, so it's a reasonable choice), and there's no need to dive through everything for _each_ view you want to find if you can do it all in one pass. Feb 15 02:40:19 fuck nvm this didnt work Feb 15 02:40:28 TacticalJoke: yeah i think i will switch eventualy Feb 15 02:40:34 TacticalJoke: findViewById is generic and simple and fast enough though, it's probably not worth the effort :) Feb 15 02:42:10 what would be the best way to update a data container in an activity that a fragment references then have the changed to the given data container shown in the same fragment? Feb 15 02:42:21 I'm trying to make sort functions for data adapters Feb 15 02:43:17 preprocess using a comparator then just give the sorted list Feb 15 02:43:29 DadFoundMy: Weird. I wonder why it's thinking it's a library project. Feb 15 02:44:06 less technically: yeah. sort in the activity, and probably have a 'setData(List)' method on your fragment / however you get the data into your fragment. that can update the adapter and call .notifyDataSetChanged(). Feb 15 02:44:24 TacticalJoke: maybe in my fiddling i made it a library or something :? Feb 15 02:44:54 TheKarlBrown: just make sure that you _always_ call notifyDataSetChanged if you change the data. generally I'd recommend copying the list before giving it to the adapter just so it's impossible for the list to change when you don't expect it. Feb 15 02:45:00 i have a untouched version on drive i thiink i will try Feb 15 02:47:10 well for getting the data back into the fragment, do I want to create a new fragment and parceable it in? or reference the main activity? or call a function? Feb 15 02:49:01 groxx do you use anything like gitflow? Feb 15 02:49:07 that was the part I was curious about :3 Feb 15 02:49:39 groxx: calling findViewById() from a ListView's adapter doesn't matter as much as it did 5 or 7 years ago Feb 15 02:50:07 TheKarlBrown: ah. probably not - the arguments / etc have size limits (so you don't want to put a ton of data in there), and in general I'd recommend building things so it can recreate the data if necessary. Feb 15 02:50:16 most of the performance issues I've seen in apps in recent years come from garbage collections and blocking the UI thread Feb 15 02:50:25 (or just having too many views) Feb 15 02:50:45 romainguy: yeah, I'd be shocked if it's a bottleneck of any kind in most apps Feb 15 02:50:48 i'm probably creating lots of garbage with rx :( Feb 15 02:51:10 lol so which of the 3 did you suggest groxx xD Feb 15 02:51:18 romainguy: is there a technical reason for that, e.g. dalvik started jitting better, or is it just faster CPU + more ram that pushed the balance? Feb 15 02:52:13 groxx: it never was, but circa 2007-2010 it was an easy way to get an extra 5 or 10 fps during scrolls Feb 15 02:52:36 I think the biggest main-thread blocker in my app (a reddit client) is TextViews in ListViews that are suddenly huge (for reddit comments). Feb 15 02:52:38 groxx: better JIT & better CPUs mostly Feb 15 02:53:00 TacticalJoke: laying out a TextView with a lot of content can be very expensive indeed Feb 15 02:53:01 The next biggest appears to be reading from SharedPrefrences. :D Feb 15 02:53:38 I was thinking of moving to RecyclerView eventually, but I wonder whether it's the same there. Feb 15 02:54:04 oh! this reminds me: does anyone know if you can do text layout calculation off the main thread? e.g. with Paint or Layout.getDesiredWidth? it's not immediately clear to me that they're part of the "view stuff only on the main thread" restriction Feb 15 02:54:11 TacticalJoke: RecyclerView won't make TextViews faster Feb 15 02:54:15 Okay. Feb 15 02:54:16 groxx: you can with a Paint Feb 15 02:54:30 sweeeet Feb 15 02:54:33 * g00s is glad romainguy is back Feb 15 02:54:34 groxx: you might be able to with a Layout if you create it yourself but I wouldn't guarantee it will always work Feb 15 02:54:49 romainguy: yeah, that's why I'm thinking the static getDesiredWidth method Feb 15 02:54:55 romainguy: In theory, I guess I would have to create a totally custom TextView substitute (that doesn't even use Layout) to avoid this lag. Does that sound about right? Feb 15 02:55:10 I did try creating something using Layout, and I had the same issue. Feb 15 02:55:17 groxx: it might still rely on non-thread local static fields inside Feb 15 02:55:39 romainguy: yeah, I haven't read enough of its source yet to be sure. I'll stick with paint if I try it in the future, thanks :) Feb 15 02:55:42 we had to do pretty nasty things in the framework to avoid GCs as much as possible Feb 15 02:56:52 heh. I'd believe it. still, I'd prefer an efficient framework over an easy one - you can usually wrap an easier layer on top of it, but it's hard to "unwrap" an inefficient api. Feb 15 02:57:11 indeed Feb 15 02:58:33 romainguy: is having views dump out their bitmap so that later i can just render all the bitmaps, and then swap them out for their actual views, a realistic approach to making "instant" loading in something like a viewpager? **** ENDING LOGGING AT Sun Feb 15 02:59:59 2015