**** BEGIN LOGGING AT Mon May 19 02:59:58 2014 May 19 03:12:02 peres: http://paste.ubuntu.com/7486635/ - why its not showing Toast from line 3, 5, 10, 13, 23, 55. But only shows line 76 Toast msg dialog? May 19 03:16:06 https://www.google.com/events/io/schedule May 19 03:16:14 'the ART runtime' <3 May 19 03:23:06 any cool projects you guys are working on May 19 03:27:49 When the screen rotates in android it will destroy the instance of the activity and re-create that activity. This distroys any state that was saved during the instance. If I programmatically add some UI elements. Will I have to add them again when the screen is rotated? May 19 03:32:47 Doing this: android:configChanges="orientation|screenSize" > seems to have solved the problem. No savedInstanceState non-sense necessary. May 19 03:33:21 are you handling the events manually? May 19 03:34:37 deadmund: you should let the Activity get recreated May 19 03:34:46 deadmund: configChanges should be used as a last resort May 19 03:34:51 no May 19 03:34:55 deadmund: as said so in doc May 19 03:35:09 http://developer.android.com/guide/topics/manifest/activity-element.html#config May 19 03:35:10 configChanges should be used when you have a legitimate reason to use it, and when you still handle the events to produce the appropriate behavior May 19 03:35:22 correct May 19 03:35:30 but i doubt he is May 19 03:35:31 ;) May 19 03:35:34 me too May 19 03:36:00 deadmund: you probably want to read this fully http://developer.android.com/guide/topics/resources/runtime-changes.html May 19 03:36:25 deadmund: sounds like your Fragment or ViewGroup should be maintaining its state correctly May 19 03:48:18 hi May 19 03:49:11 I have a generic async task for fetching json from a url, but I want to have specialised onPostExecute() each time I use it May 19 03:49:16 how can I achieve this? May 19 03:49:40 Anyone has ideas how can i exclude a certain module from getting proguard? May 19 03:51:05 Jonno_FTW: specialised based on what? May 19 03:51:41 what ui elements it changes etc. May 19 03:52:58 what I meant was...how do you determine which "onPostExecute()" you want to use? is it based on particular urls? or at particular times? May 19 03:53:56 which html parser should I use? May 19 04:00:44 barbs: no, I use the json fetcher in different activities, so i need a different onpostexecute for each activity May 19 04:01:37 do I have a subclass of JSONFetcher each time that implements onPreExecute and onPostExecute? May 19 04:03:01 ah, so JSONFetcher derives from AsyncTask? May 19 04:03:13 yes May 19 04:04:32 that's one option...you could also maybe have JSONFetcher hold a reference to a listener, which you call in its onPostExecute. Your activities would implement this interface and pass itself in when you create the JSONFetcher task May 19 04:04:47 that is, if I'm understanding your problem correctly :) May 19 04:05:08 ok May 19 04:07:03 so I have a runnable? May 19 04:07:13 ? May 19 04:08:02 what do you mean by a listener? May 19 04:08:28 I thought you meant have a runnable object and pass it to the constuctor of JSONFetcher May 19 04:08:46 and JSONFetcher runs the runnable in onPostExecute May 19 04:08:49 oh, I meant an interface May 19 04:09:21 so the activity would implement this interface, something like "JSONFetcherListener", which would have one method to implement, something like "onJSONFetcherPostExceute()" May 19 04:09:40 and in the asynctask, you call this method if it's got a listener May 19 04:09:50 I guess you could also do it by passing in a runnable May 19 04:10:12 I have a feeling that might be a little messy though, but whatever you feel comfortable with May 19 04:10:20 jsonfetcher can't be an interface because asynctask is an interface May 19 04:10:26 *isn't an May 19 04:10:57 no, I'm saying create a new interface May 19 04:11:04 have the Activities implement it May 19 04:11:50 could someone please point me to ane xample that shows how I canput a canvas wihin a view? May 19 04:13:21 i'm not experienced in writing interfaces but I think i got it May 19 04:15:37 barbs: how do I get the asynctask to call the listener? May 19 04:23:11 so you'd store the listener as a field, and in the asynctask's onPostExecute(), you'd check that it wasn't null, and if it isn't, you'd call listener.onPostExecute() May 19 04:26:00 cool May 19 04:26:06 if this was SO i'd give you an upvote May 19 04:26:33 aww thanks! May 19 05:35:02 robolectric doesnt work for DialogFragment ? May 19 05:39:53 Hey people May 19 05:40:58 I am converting all activities in an app to fragments but there is an onNewIntent method in one of them. Can anyone help me with how to handle that in fragments? May 19 05:44:42 strange dialog.getView() gives null, but buttefknifes injects it May 19 05:44:44 eh... May 19 05:45:12 gitanshu: freate interface and let the activity implements it ? May 19 05:45:17 gitanshu: AFAIK there's no method that gets called from within the fragment in that case, so you might have to make your own public method and pass in the intent in that case May 19 05:45:27 gitanshu there really is no analog for fragments; if the fragment is already up just call a method on it :) May 19 05:50:56 gordon_, barbs, g00s: thanks, I'll try this. I was just hoping they made something analogous, that'd be simpler. May 19 05:54:28 wait until you will try uiautomator ;) May 19 05:54:46 it's not bad May 19 05:55:47 but lacks docs May 19 05:57:03 I was wondering if you can guys help me with some input. May 19 06:04:50 barbs: I'm stuck again May 19 06:05:14 how do I make a parameter type an Activity that implements JSONFetcherListener? May 19 06:06:53 just make the parameter the interface May 19 06:07:23 so, if you're passing in the listener in the constructor, you might have something like public JSONFetcher(JSONFetcherListener listener) May 19 06:10:01 yeah but I need to get the application context as well May 19 06:10:12 and activity has the context along with the listener May 19 06:13:06 " Mark Zuckerberg is personally supervising an internal effort to build a competing "ephemeral messaging" app" May 19 06:13:16 i don't think Zuckerberg understands May 19 06:13:31 lol May 19 06:13:32 … what ephemeral means May 19 06:13:51 :D May 19 06:13:54 shhh May 19 06:13:59 ephemeral: literally "lasting only one day" May 19 06:14:02 oh wow May 19 06:14:20 if it lasts two days it's not ephemeral ? May 19 06:14:24 :) May 19 06:14:27 we can only hope that he understands totally May 19 06:14:34 yeah for Z it means; we show it for one day, but keep giving the data to our partners forever May 19 06:14:41 haha May 19 06:14:41 i personally dont care May 19 06:14:59 about their new app or whatever May 19 06:15:22 seems like facebook doesnt give much money May 19 06:15:23 ephemeral is a property of secure communications; you can be ephemeral and not be secure though May 19 06:15:46 no idea how snapchat actually stores that data May 19 06:15:59 after the expiration, now its logged, how authorities can access it, etc May 19 06:16:16 probably hmac + ssl login May 19 06:19:05 i guess thats why i hate silicon valley so much, or at least it seems the big companies are focused on such stupid stuff May 19 06:20:29 important stuff like http://www.nytimes.com/2014/05/13/science/earth/collapse-of-parts-of-west-antarctica-ice-sheet-has-begun-scientists-say.html May 19 06:21:18 its not inconceivable in the near future that to buy food, you have to bring in all your urine for phosphorous exchange :) May 19 06:21:27 lets see Z solve that one May 19 06:24:12 excuse me.i use webview to play a local swf, but the interaction isn't very smooth, are there any ways to optimize? thanks for advanced May 19 06:58:37 and thats why its ethical to use ABP http://www.net-security.org/malware_news.php?id=2767 May 19 07:06:05 capella new surface pros already http://www.wpcentral.com/surface-pro-3-real-specs-and-pricing-revealed May 19 07:06:43 yah, I've been watching the news creep out :) May 19 07:07:06 expensive, but i would love one May 19 07:07:39 i7-8GB RAM-512GB - $1949 .... y? May 19 07:07:48 seriously, y? May 19 07:08:16 In a mobile unit? May 19 07:08:28 might be 12" May 19 07:08:39 Get a laptop! May 19 07:08:44 it is :) May 19 07:08:46 but .. yeah i don't have that kind of money May 19 07:08:49 and a real keyboard May 19 07:09:01 etc. .... heh May 19 07:09:13 not sure who MS is targetting for May 19 07:09:46 Home shopping devices are way cheaper in Android and do all the same May 19 07:10:13 high end Devs don't use touchscreens May 19 07:25:19 Hello, I'm trying to use the support libs with gradle as a submodule. How can I use v4 with "compile project"? The best I've got is "Could not find method getAndroidPrebuilt() for arguments [5] on project ':extern:Support:v4'". May 19 07:57:26 Hi, i am trying to get all classes (packages would do a beginning ;-)) that are within the project. explanation: i am having a library (android) which has an activity that gets started on-application-start, and i would like to scan through all classes for a specific method and start the corresponding class... how would i do that? May 19 07:58:01 Package.getPackages() returns null/zero-item-list; so does the reflections library (at least what i tried) May 19 07:58:39 + this example works on a desktop .. so i am kinda lost May 19 08:01:19 PatrickBic: Pastebin? Why would you want to scan through all classes for a specific method? May 19 08:02:58 barq, as in: library gets called on startup (onCreate,...) and scans for an old style main method which it starts later on... May 19 08:04:13 PatrickBic: And you don't know which main method to call? May 19 08:04:28 i dont know where it is. May 19 08:04:48 one can include my library and put the main method in like com.example.SomeClass... or in something.SomeExampleClass or whatnot May 19 08:05:00 Don't know what you mean by library gets called on startup either. May 19 08:05:41 Any reason to not specify that manually? May 19 08:05:58 library has an activity which is the main/launcher activity. in its onCreate it searches for the main method (in any given class) => invokes it May 19 08:06:14 barq, thats what i have atm, but i would prefer to not have that... May 19 08:06:17 What if there is more than one main method? May 19 08:06:40 won't be, won't care.. maybe show up some dialog later on May 19 08:07:10 Use static? May 19 08:07:37 what do you mean? May 19 08:08:27 http://pastebin.com/fivjNc4H <- working on a normal java project on a desktop May 19 08:08:59 Package.getPackages() returns nothing .. stackOverflow has some stuff about it, but nothing useful (at least i didnt find it ;-) ) May 19 08:10:17 And what's the error you get? May 19 08:10:59 that i dont get any packages? May 19 08:11:11 as in runtime "error" (not what one would suspect) May 19 08:11:20 not a compilation/syntax error if you mean that May 19 08:12:24 Maybe because Android handles Files differently than other OSes. May 19 08:13:32 its the Package.getPackages() function, not the file handling (as said earlier)... so the getPackages() function (from the pastebin) DOES work on my laptop (and reports packages), but reports null/zero packages on android (4.2 from what i remember) May 19 08:14:52 Are the java classes on your Android phone? May 19 08:15:02 yep May 19 08:15:25 (and even if not, it should find itself, right?) May 19 08:15:54 i highly suspect that android loads those packages/classes in a different manner (like on first use or whatever) and those aren't known to the classLoader at this point in time May 19 08:20:35 Seems to be a common problem on Android. May 19 08:21:26 I would get the user to specify the location of the main, as one would do with any other program. May 19 08:23:08 running in some sort of problem there.. android starts the library first onCreate, where the main method should already be known... May 19 08:23:27 can't think of a way to specify it without modifying code (as i have it now).. May 19 08:24:37 Config? May 19 08:25:03 yea, would be the one to go i think.. some xml file setting May 19 08:42:21 barq, works just fine. using a meta-data tag in the app's manifest file now May 19 08:42:30 thanks for your patience and the xml file hint :) May 19 08:53:28 textview's autoLink property hightlights my links in textview in blue, but when I click them, browser doesnt start May 19 08:53:32 anyone got this problem before ? May 19 08:53:44 internet gives me Linkify but it doest work either May 19 08:55:30 gordon_: Have you tried this? http://stackoverflow.com/questions/2734270/how-do-i-make-links-in-a-textview-clickable May 19 08:55:55 barq: yes I got it May 19 08:56:00 doesnt help either May 19 08:56:27 Did you push the new version to the phone? May 19 08:57:08 yes I did :) May 19 08:57:15 I got one more idea... May 19 08:59:23 ugh, will try this May 19 08:59:25 http://stackoverflow.com/questions/9164190/the-onclick-of-clickablespan-is-not-working-for-urlspan May 19 09:23:55 would any of you recommend big nerd ranch to learn android development? May 19 09:24:43 i used these ones: http://www.xtensivearts.com/2010/04/16/episode-11-intents-multi-activity-applications/ May 19 09:24:59 after i finished them i was fit enough for my first own app May 19 09:37:02 what's the proper way to use SearchView when i want it to autocomplete suggestions from the web? I want the user to type, and for every new string, ask my server for suggestions, which i want to display in a little popup list below the searchview May 19 09:46:20 you May 19 09:46:22 yo May 19 09:53:02 I am making an app multilingual how to determine what is the code for the particular language to put in values- folder? May 19 09:55:52 I came to this page http://developer.android.com/reference/java/util/Locale.html but it does not have the Nepali language, does that mean it is not supported in android? May 19 09:59:51 Linkify works on android 2.x May 19 09:59:57 dont work on 4.4 and 4.3 May 19 10:16:24 meadhikari: http://developer.android.com/guide/topics/resources/providing-resources.html#LocaleQualifier May 19 10:17:32 Napalm|wrk, thanks man May 19 10:18:05 meadhikari: so it looks like you want values-ne May 19 10:18:13 gordon_: works fine May 19 10:18:20 ya so it seems May 19 10:18:32 gordon_: did you set the LinkMovementMethod? May 19 10:18:39 yes I saw it May 19 10:18:45 it doenst work for me either May 19 10:18:54 will check on newly created project May 19 10:18:59 but ummm May 19 10:19:12 maybe something 'eats' click events May 19 10:23:39 I have some wireframes for an app. It uses tabs and every tab (Fragment)contains a ViewPager to scroll between different Fragments. Is this a bad idea? --> tabs not scrollable but when content of each tab is scrollable with ViewPager May 19 10:23:54 yep tried creating new project - pretty simple May 19 10:23:57 and it works there May 19 10:24:05 seems like something stoles my clicks May 19 10:28:59 android:scaleType centerCrop is not working well on API 10. It works great on API 19. Picture - http://puu.sh/8SmJL.png, Code - http://pastebin.com/91jLmHZw May 19 10:29:41 The docs says goes back to API 1 but I dont know why it is not working May 19 10:33:04 WantToCode: it works on 2.3.3 for me May 19 10:33:45 WantToCode: maybe try android:adjustViewBounds="true", not sure May 19 10:34:14 Please see the image, I ran the same code for both API 19 and API 10. I already have android:adjustViewBounds="true", please see the code. May 19 10:40:20 WantToCode: shmoooz was saying he thnks its your adjustViewBounds that is causing the problem not scaleType="centerCrop" .. and i agree. May 19 10:40:58 or it could be that white widget you got at the bottom and the way it interacts with the image above it May 19 10:41:37 shmoooz: if you look at his layout his top image is just in the FrameLayout behind everything else May 19 10:43:25 WantToCode: i think i see your problem May 19 10:43:34 WantToCode: how are you setting the image on the ImageView in v19 May 19 10:43:36 Napalm|wrk: shmoooz Sorry for misunderstanding, I tried removing the adjustViewBounds and now it is happening in both the APIs. I had added this line when I was testing for API 19 May 19 10:43:45 with Picasso May 19 10:43:52 hmm May 19 10:44:07 it migt be respecting the density.. which might cause the change in aspect May 19 10:44:14 well i mean in the imageSize May 19 10:44:15 I used to have paired controller/model components using inbox handler and a looper. Does this still make sense for displaying model's state in the interface or should I use a simple event bus as well? May 19 10:44:21 which changes the size of the view May 19 10:44:28 right now I have not specificied the different layout's with identifiers and all. May 19 10:44:54 I am just trying to see what works and what not for the normal layouts in different APIs May 19 10:45:10 How can I deal with the Picasso problem then? May 19 10:47:41 shmoooz: if you are talking about the "Scroll to Read" widget, it doesnot interact with the image. It is in front of the whole scrollview, and comes up only when image is large while fitting screen May 19 10:55:12 hey guys. what's the official way to implement view pagers / tabs without the support libraries? May 19 11:04:13 I've found the bug May 19 11:04:29 there was textView.setEnabled(); May 19 11:04:49 which was the cause of not clicking behavious May 19 11:04:54 *behaviour May 19 11:14:13 How would you structure a model-interface bindingin Android? Inbox/Outbox Handler (Observer) or simple event bus? May 19 11:25:06 Is Google Drive storage 5 GB free for Android apps? May 19 11:25:35 I want to sync my app settings on Google Drive for each user May 19 11:25:55 it's free for users, and your app can store into that space, yes :) May 19 11:26:42 CodePulsar: why not AWS? May 19 11:26:56 Because I'm looking for something gratis May 19 11:27:15 I wish more apps would use drive May 19 11:27:25 CodePulsar: you can also do some syncing with play services May 19 11:27:38 At least until our apps settings, favorites, occupy < 5 GB which is the free quota as far as I can tell May 19 11:28:13 hopefully your settings won't go anywhere near 5GB :) May 19 11:28:14 Leeds: with this https://developers.google.com/games/services/android/cloudsave? May 19 11:28:29 Leeds: we have settings, favorites, around 1 MB max at this point May 19 11:28:34 all of them May 19 11:28:51 that would seem to be the doodad, yes May 19 11:29:14 Our manager thinks its a better idea to roll our own syncing solution on our server May 19 11:29:34 without knowing the requirements it's hard to say what's a better idea May 19 11:29:44 if you go cross platform, relying on google drive is not a good idea May 19 11:30:30 Why not? it supports both Android and iOS and that's all we care about May 19 11:30:35 per https://developers.google.com/drive/ May 19 11:35:47 The silence is deafening May 19 11:43:16 With Google Cloud Save does the user need to be signed in on each phone with the same Google account ? May 19 11:44:13 one would imagine so - if not, how do you know they're the same user? May 19 11:45:11 or rather, how does Google know? May 19 11:45:26 indeed May 19 11:47:44 We have our own auth system inside the app so I think for us it would be better to link settings, favorites, scores, etc. with the account in our app instead of the Google account May 19 11:54:48 Has anyone here used a plugin like git-dependencies? I would like to know how to point to the gradle file of a repository I've pulled with that. May 19 11:55:19 Is there a way to put vertical scroll (like listview) inside another vertical scroll (like ScrollView)? May 19 11:55:53 sry, Views with scrollview inside listview May 19 11:58:48 Do you get an error when you try? May 19 11:58:49 yoavst: That sounds odd to have lots of scrollviews as elements of listview. May 19 11:59:31 barq: Well, it isn't my idea May 19 11:59:39 listviews in a scrollview makes more sense to me. May 19 11:59:45 but as I said, do you get an error when you try? May 19 11:59:51 yoavst: shouldn't be an issue, you just need to return false to the onTouch events if the child scrollView has scrolled all the way May 19 11:59:52 anyone knows about this bug http://rom1504.fr/graph_legend_bug_gplay_dev_console_cut.png May 19 11:59:58 (google play dev console bug) May 19 12:00:27 What is the data storage limit for Google Cloud Save per user? May 19 12:01:17 ah, nevermind found it May 19 12:01:30 Four slots, each with 256 kilobytes of storage (total storage size of 1024 kilobytes), slots of what? May 19 12:01:37 candy May 19 12:01:38 the legends on the graph are reversed on gplay dev console May 19 12:01:44 how can I report this ? May 19 12:20:17 Is it better to keep one HD image in xxhdpi folder and let android rescale it according to device OR keeping image in decreasing resolutions in all folders? May 19 12:28:45 WantToCode, depends... usually it's better to have different images May 19 12:28:58 it increases your APK size but you save alot on memory and CPU/IO cost when loading them May 19 12:29:44 which can be very important on older devices -- if you're supporting them May 19 12:29:48 hence "depends" May 19 12:29:49 :) May 19 12:30:05 I have x = 0.294 and want to use modulus on 0.05, so I tried y = x % 0.05 and y = 0.046, what am I doing wrong? want to get 0.290 or 0.295 as result May 19 12:32:13 I'm having trouble getting facial recognition working - any help would be appreciated: http://stackoverflow.com/questions/23728561/android-glass-unable-to-detect-faces-in-onfacedetection May 19 12:32:14 i have like a pretty bad performance when scaling images on my device.. so i would go for keeping multipe copies May 19 12:32:29 Why is it even necessary to have different resolutions? May 19 12:33:15 scaling a ~700x450px image to double its size, takes like 5s .. normal? May 19 12:34:41 FrancescoV, i suspect that modulo only works on integers (guessing). try ((x*1000)%50)/1000 ? May 19 12:37:03 Mavrik, sabton, I would download images for background of the homescreen layout in the app, from my Parse.com server's data browser. It depends upon approximate location i.e. city/state. If I include all the photos in the package, it would become huge. May 19 12:37:57 So I would need to upload images on server, I can either upload one HD image or upload 4-5 resolutions and then downloading them on the first run on app and saving them, all according to dpi. which would be better in this scenario? May 19 12:38:49 is there a way to make a webview load before the transition finished? May 19 12:39:06 i want to move my help pages into a webview but they don't start loading until the transition is already finished May 19 12:39:09 which looks super ugly May 19 12:40:07 mitsuhiko, http://stackoverflow.com/questions/6592091/android-preload-a-url-into-webview-while-splashscreen-is-showing second entry May 19 12:40:41 PatrickBic: just that i don't have a splash screen May 19 12:41:04 as far as i can tell the transition system in android cannot be stopped, can it? May 19 12:41:20 i noticed that when i put a huge image onto a activity it will not start the transition until the image is loaded May 19 12:41:30 but nothing stops the activity creation in the case of webkit May 19 12:44:12 WantToCode, that depends on you May 19 12:44:24 if you'll download HD images it'll take a long time to download and decode\ May 19 12:44:30 if you don't you'll have to resample on server May 19 12:44:45 it also depends how big those "hd" images are in terms of storage/memory May 19 12:46:08 Mavrik: resample on server is equivalent to reducing resolution? HD image, I would say, would be 720p or 1080p. The last image I downloaded is approxmiately 4 MB. May 19 12:47:22 Can I get the dpi of the device easily, on the first run? That would the only criteria for image "type", right? May 19 12:50:23 argh May 19 12:50:29 you can't say 1080p about an image! May 19 12:52:06 Leeds: ok, so an image with the height of approximately 1080 pixels. ok now? :P May 19 12:52:42 WantToCode, 4MB is alot of data to transfer over a mobile connection May 19 12:52:43 O.o May 19 12:52:59 remember, people regullary have only 100 or 200MB of monthly dataplan May 19 12:54:50 If I use Google Drive API for iOS in my port of Android app, does the user need to have a Google account ? May 19 12:54:50 Hello! May 19 12:56:16 Mavrik: Yeah, thats why I was concerned. I am using images from some photographers from Flickr (with CC license). I think I would have to go with different resolutions of images added on the server. Thanks for your time, and to sabton and Leeds too May 19 12:57:05 WantToCode, could it be an option to dynamically load the needed resolution from the server? Don't forget to cache. May 19 12:57:30 I’ve a problem with getaddrinfo failed: EACCES (Permission denied), I do have the permission for accessing internet, and it used to work. I havn’t changed anything that could cause this except I’m now catching an UnknownHostException. May 19 12:57:43 ah, reading up on what was said before that's probably what you planned to do. May 19 12:59:21 Syzygy: Its a one time download per se, on the first app opening. The images are like wallpapers, 5-6 in numbers, according to the approximate location of the user. Thanks for replying. May 19 13:00:27 Maybe warn the user before he downloads the app that it will download up to x mb extra the first time the app is loaded depending on resolution. May 19 13:05:53 I was also thinking about something similar. Add some default wallpapers and then ask at startup if the user wants wallpaper (more, to ask if want to download over wifi or date). Looking 5-6 images per city/states, I would have well over 100-150 images, and making different resolutions of all of them would be cumbersome May 19 13:06:16 *wifi or data May 19 13:38:18 I have a Fragment inside a lib project. Is it possible to creaet an option menu with that Fragment? Currently menu.clear() works but can't see my menu items (loaded from xml) May 19 13:39:03 Can I access the data of each user of my application given that I use Google Drive? May 19 13:39:15 I want to query the data for all users May 19 13:41:21 sometimes I start typing and then I delete the entire thing I've written because I think deep inside "Not worth it...". pthreat.- May 19 13:43:25 ^ May 19 13:45:22 Or is it a privacy concern if the app owner has access to the data of all users in Google Drive? May 19 13:45:39 Moreover, the data is stored on the Drive of each user May 19 13:46:00 So, this means I cannot query it for all the user, except on an individual basis? May 19 13:46:08 *users May 19 13:47:26 pthreat: : D May 19 13:47:26 i have several activities that implement search via the actionbar. in order to do it i need to add an intentfilter on these activities with . Is there a way for me to keep my manifest clean and avoid having to place this in all activities? May 19 13:48:45 osxorgate: do you want to give other apps die ability to search in your app? May 19 13:48:53 danijoo: nope May 19 13:49:07 then dont put that line in any activity May 19 13:49:34 but then i don't get a call to my suggestions content provider May 19 13:50:41 you can use LoaderCallbacks May 19 13:51:30 implement LoaderCallbacks into each activity where you need your search suggestions May 19 13:52:11 and this will be your provider May 19 13:53:05 If you were to send a tuple through an event bus, like Action and Integer, how would you go about to wrap them May 19 13:53:55 go to CVS, get some wrapping paper May 19 13:53:57 xml? May 19 13:54:03 gross May 19 13:54:05 try to get some non-denominational paper, nothing with crosses or santas May 19 13:54:11 haha May 19 13:54:24 ribbons are always in demand, get some ribbon and tie your tuple up May 19 13:54:39 if you're feeling saucy, get one of the pre-made gift tags May 19 13:54:49 lov that idea lov May 19 13:55:28 more seriously, http://developer.android.com/reference/android/util/Pair.html May 19 13:55:49 ah gosh, they really have implemented that in Android stdlib, I totallt forgot May 19 14:00:57 Oh, I remember that one now. May 19 14:04:16 man, using a background image for a layout really kills app responsiveness May 19 14:10:14 init May 19 14:12:00 what kind of an adapter i need to use for AutoCompleteTextView if i want to fetch the results as json string from a web server? May 19 14:15:28 If you were to send all kinds of extra stuff over an event bus, would you implement it like Android has with Intent.extras? May 19 14:17:27 platzhirsch: why not just ask JakeWharton himself? May 19 14:17:58 oh I feel intimidated May 19 14:18:33 Maybe Bundle is a bit more comfy. May 19 14:19:39 hello May 19 14:19:55 Hi, I'm trying to put a parcelable ArrayList in an intent to pass that to an activity. The activity is receiving an incomplete ArrayList, though… always contains the first element only. More detailed explanation/code: https://clbin.com/ZTTiY May 19 14:20:05 I don't understand what could be going wrong May 19 14:22:22 I'm doing a switch statement from MotionEvent, touch down, touch move, touch up. What's the difference between putting a return true/false or break at the end of each case? May 19 14:22:27 Is there a way to have a portion of a Header View in a ListView be clickable. I am having issues with a portion of the Header View that I don't want to be clickable, actually taking on the index of the first item in the list and performing it's on click action May 19 14:23:26 eghdk: the difference between return and break? break will exit from the switch statement but not the method, return will exit from the given method. May 19 14:23:40 eghdk: The boolean you return from any touch events decides whether you want that function to "consume" the touch event. i.e. If you don't want any other layers of touch listeners to know it happened return false, if you don't care or want it to chain on return true May 19 14:24:10 GermainZ: What Android version? May 19 14:24:21 barq: I'm testing it on my device, 4.4.2 May 19 14:25:15 GermainZ: Have you tried: getIntent().getExtras().getParcelableArrayList("updateErrors") ? May 19 14:26:05 yiati: oh. so whether the touch event will keep moving further down the touch events? May 19 14:26:27 barq: I have - same result. May 19 14:27:17 eghdk: http://goo.gl/HRRpFS May 19 14:27:20 Show your whole code with the ArrayList definition. May 19 14:29:14 barq: I can paste all of it if you want, but I define it this way: private ArrayList mInsertErrors = new ArrayList<>(); and add elements using mInsertErrors.add(…) - it's obviously working since the size is correct, no? May 19 14:29:55 Can't help then. The rest looks OK to me. May 19 14:30:03 Alright, thanks :) May 19 14:30:21 yiati: Hah. Thanks man. May 19 14:31:12 GermainZ: Have you checked getIntent().getExtras().getParcelableArrayList("updateErrors").size()? May 19 14:31:40 Without assigning it? May 19 14:31:48 Yes. May 19 14:33:00 barq: same as updateErrors.size() May 19 14:33:28 (3 in the service, 1 & 1 in the activit) May 19 14:34:17 I don't see any service or activity in your code. May 19 14:34:44 barq: thanks, Bundle was what I've been looking for May 19 14:34:53 You're not showing your code. May 19 14:34:54 barq: umm… I marked them in the comments May 19 14:35:30 "// in a service" and "// in ErrorsListActivity's onCreate" May 19 14:47:59 Any help with this? http://stackoverflow.com/questions/23726545 My tagged fragments don't get persisted May 19 14:51:41 GermainZ: Or you could just paste the relevant bits of the service and oncreate such that we can test it rather than guessing. May 19 14:53:36 SimpleOnGestureListener doesnt work on API 10? May 19 14:54:42 yiati, what do you mean by stepping away from the Fragment? May 19 14:55:01 Are you hitting the back button, home button, rotating the device? May 19 14:55:03 etc May 19 14:55:11 yiati, rotating the device May 19 14:57:18 barq: I can personally reproduce it with this code (plus package name/imports): https://clbin.com/5YJtf May 19 14:58:17 and this is ContactInfo: https://clbin.com/WgIZY May 19 14:58:44 What good calendar-month-view components are there except the default and the caldroid? May 19 14:59:10 I have troubles importing caldroid project into android studio May 19 15:00:07 How would I go about to display a time in HH:mm:ss format and animate the seconds as well as the rest when it changes? Just counting up every second May 19 15:02:24 platzhirsch: there are a lot of steps in that question. What, in particular, do you need help with? May 19 15:02:51 lov: so I simply research about animation in Android? May 19 15:02:57 uh... May 19 15:03:11 TextView Animation May 19 15:03:15 ok, so, your question is disturbingly close to "How do I make an app?" May 19 15:03:35 ok, when you say you want to "animate the seconds" May 19 15:03:38 what do you mean? May 19 15:04:14 lov, I think he wants something like Timely May 19 15:04:18 * lov sighs May 19 15:04:28 though I don't want to manipulate the font or anything, just change the text every second :) May 19 15:04:43 you don't need an animation for that May 19 15:04:46 Use a Handler May 19 15:05:20 handler with sleep sending messages to the interface with the updated second? May 19 15:05:49 GermainZ: private ArrayList mInsertErrors = new ArrayList<>(); obviously won't work. May 19 15:06:01 Hello people. Does Google Play take an profit from payed apps ? May 19 15:06:09 barq: why not? May 19 15:06:11 I believe that is true May 19 15:06:17 infoMultiverse: of course May 19 15:06:28 infoMultiverse: 30% IIRC May 19 15:06:35 better offer your app as an apk, don't givem money May 19 15:06:39 download May 19 15:06:49 infoMultiverse: there's a 30% cut taken from the sales. How much of that google actually keeps is not public. May 19 15:06:57 haha May 19 15:06:59 (a certain percentage goes to the carriers, etc) May 19 15:07:04 in the early days, they said things about sharing that with carriers and only keeping admin fees - I don't think anyone has mentioned that idea for a long time now May 19 15:07:17 Leeds: it depends on payment method, afaik May 19 15:07:19 I see lov. May 19 15:07:28 30% May 19 15:07:30 sheesh May 19 15:07:32 Leeds: hey, it could be 0%. May 19 15:07:36 who am I to say? May 19 15:07:41 Is google not rich enough already ? May 19 15:07:53 infoMultiverse: ... it's a company May 19 15:07:54 infoMultiverse: s/google/apple/microsoft/blackberry/etc May 19 15:08:07 * infoMultiverse smiles May 19 15:08:08 infoMultiverse: Also, 30% cut is not that bad, believe me May 19 15:08:10 yeah I know. May 19 15:08:19 infoMultiverse: define enough May 19 15:08:29 infoMultiverse: ios does the same thing May 19 15:08:51 anyway, 30% is the cut from what you charge for your app, how it is distributed then depends on how the client paid (if through their mobile bill, portion goes to network) May 19 15:09:03 Amazon also takes off 30%... May 19 15:09:25 Hey ... we also do apps, then scratch our balls to see profit as they do May 19 15:09:29 and get paid May 19 15:09:31 so May 19 15:09:44 ;) May 19 15:09:45 I scratch my balls frequently and don't make anything. May 19 15:09:45 p_l|backup: they were talking about payments to carriers years before there was any support for carrier billing May 19 15:09:46 where do you work? May 19 15:09:56 lov: and there's that ... May 19 15:10:00 lol May 19 15:10:01 pthreat.inc May 19 15:10:08 tomorrow, I am going to demand a lot more money from my boss, in return for less time scratching my balls May 19 15:10:22 small bussiness, some say the dude is the next java the hut May 19 15:10:27 (? May 19 15:10:28 Leeds: iirc, at least for a time there was some profit sharing from ads etc. May 19 15:10:42 pizza the hut? May 19 15:11:04 anyway, even no profit sharing is better deal than the iPhone 2G/3G deal was back in 2008 May 19 15:11:24 do any of you sell apps on Amazon ? May 19 15:11:30 "yes" May 19 15:11:36 (extremely low sales, so I stopped caring) May 19 15:11:59 oh May 19 15:12:26 Amazon doesn't ship with devices May 19 15:12:29 not that this necessarily means anything for you! May 19 15:12:33 So people just get apps from GPlay May 19 15:12:39 (I actually am going to demand a lot more money from my boss tomorrow, ball-scratching aside) May 19 15:12:41 I also make very little money on play, since I don't really work on my app anymore. May 19 15:12:51 just an order of magnitude more than amazon :) May 19 15:12:51 Amazon App Store ships with amazon devices May 19 15:12:55 Leeds, how much do you make, if you don't care to share? May 19 15:13:04 autrilla: not enough... May 19 15:13:07 SimonVT, which are a very low percetange of all devices sold May 19 15:13:22 Sure May 19 15:13:26 But it does ship with devices May 19 15:14:01 And the number of Kindle Fire things being sold isn't tiny... May 19 15:14:53 I wonder if the Kindle Fire market today is bigger than the whole Android ecosystem was back in the days of, say, Cupcake May 19 15:16:15 I have an interesting problem. I have a vustom view that implements an ontouchListener and does a whole bunch of things to the view. Now I want to do something in the customView that if it is touched, it will do something to all of the other customViews of the same type. But I noticed I can't do this, since the customView doesn't know about all of the other instances. May 19 15:16:34 eghdk: this is true! May 19 15:16:35 So I want to make a method that can perform all of the onTouchEvents from the mainActivity without putting all the code for the ontouch in there. May 19 15:16:49 eghdk: however, your activity/fragment can know about all of these things, and your custom view can expose a custom callback listener! May 19 15:17:32 So in my mainActivity. I want to do customView.setOnTouchListener(){ customView.setOnTouchEvents()}; is this possible? May 19 15:17:56 I also have an interesting problem :3 May 19 15:19:59 eghdk: I don't know, is it? May 19 15:20:16 You can set an on touch listener, certainly, but I don't know if your custom view has a setOnTouchEvents method! May 19 15:23:05 lov: Can you help me do this? "your custom view can expose a custom callback listener" I've never implemented my own callback listener before. May 19 15:24:13 eghdk: it's pretty simple. You write a public static interface for your custom view, and you expose a "setBlahBlahListener(MyCustomListenerInterface foo)" method in your custom view. May 19 15:24:47 When you want to send something to the callback, you have if(myCustomListener != null) { myCustomListener.somethingHappened(args) } May 19 15:25:47 public static interface goes inside my customView class? May 19 15:26:21 actually, static is implied in interface, so just "public interface". May 19 15:26:43 but yes, you can have it as an inter class of your custom view class, or you can make it its own outer class if necessary. May 19 15:27:48 for reference, http://en.wikipedia.org/wiki/Observer_pattern May 19 15:27:53 * lov leaves for coffee May 19 15:28:17 Wooo! Design patterns! May 19 15:28:51 Also this sort of pattern is dealt with in the context of fragments here: http://developer.android.com/training/basics/fragments/communicating.html May 19 15:29:02 Use an event bus! May 19 15:29:04 Not that! May 19 15:29:49 "Syntax error on token "interface", invalid Type" May 19 15:29:55 wut May 19 15:30:44 Inside my customView class, I wrote `public interface OnSelectedListener() { }` but I get an error on interface May 19 15:30:53 Your Java is broken May 19 15:31:25 Oooor did something wrong May 19 15:31:56 Is that actually inside the class? May 19 15:32:09 eghdk, what you wrote makes totally no sense May 19 15:32:31 first remove the parenthesis May 19 15:32:48 then rethink what are you doing... why are you defining your own onselected interface? May 19 15:36:06 So that I can create a method called setOnSelectedListner(new OnSelectedListener)? May 19 15:36:40 uh May 19 15:36:45 "create a method"? May 19 15:36:50 have you rethought what you are doing? May 19 15:37:09 eghdk, what do you mean by "create a method"? May 19 15:37:22 I want to make my own event listener for my class. May 19 15:37:25 ah May 19 15:37:34 well, "new" has nothing to do there then :P May 19 15:37:52 Sorry. I'm really lost with this. May 19 15:38:33 I think I can create a new interface .java, but I don't really want to create a new file just for this. I was wondering if it was possible inside my class. May 19 15:38:58 you can May 19 15:39:12 should *.iml files be ignored by source control? May 19 15:39:40 yes May 19 15:39:56 new OnSelectedListener() { public void onSelected(GLView source) { Log.d("stuff", "There's stuff here!"); } } May 19 15:40:00 pass that May 19 15:40:03 e.g. May 19 15:43:36 Scrollview gone mad on API 10, doesnt scroll, works well with API 19. http://stackoverflow.com/q/23741638/3488870 May 19 15:44:31 puckipedia: ? May 19 15:44:40 Confused. May 19 15:45:03 Don't I have to put something in my customView class to be able to set a onselected listener? May 19 15:46:19 puckipedia: huh? May 19 15:46:45 eghdk: do you know how to write inner classes? There are no parenthesis/. May 19 15:46:56 You may want to learn Java before learning Android. May 19 15:47:06 ^ May 19 15:48:26 Meh, it's a good vehicle to learn Java too ^^ May 19 15:48:27 well they are not that complicated, just learn them the same time, it's a more rocky road but still May 19 15:49:24 Estel, no it's not May 19 15:49:54 autrilla: I think it depends on the user's motivations. May 19 15:50:39 If a prospective student is thinking "It would be SO COOL to make apps on my phone" then suggesting a month spent on Java console apps beforehand feels counter-productive. May 19 15:51:17 Someone who says it would be SO COOL with the intonation I'm hearing at would not get to anything May 19 15:52:20 I think that's a bit unfair, a passion to achieve something concrete is the best motivator, regardless of someone's dialect. May 19 15:52:35 * lov shrugs May 19 15:52:39 I mean, you can learn BOTH May 19 15:52:59 but at this point and time eghdk may wish to learn how to write interfaces :) May 19 15:53:11 lov, .. and then do stuff like what eghdk has done May 19 15:53:51 Estel, Android is a terrible starting place for Jav May 19 15:53:52 a May 19 15:54:20 See? Got some backup here :D May 19 15:54:31 I agree with that statement in isolation :P May 19 15:54:44 And yet it is a good vehicle? May 19 15:54:47 Estel, it has alot of extra setup, uses alot of advanced concepts and has alot of quirks May 19 15:54:54 also all documentation assumes you already know Java well May 19 15:54:56 Well, that would be the first good and bad thing I have ever seen May 19 15:55:09 oh dear, I've started something, haven't I :< May 19 15:55:18 autrilla: if someone's doing Android development then they can learn Java alongside it. If they want to learn Java then avoid Android. May 19 15:55:18 Webdev is probably better starting place May 19 15:55:40 I learnt the most with Vaadin (webdev) May 19 15:55:42 lov: https://www.youtube.com/watch?v=4Uj3zitETs4 May 19 15:55:57 Leeds: more or less. May 19 15:56:14 Mavrik: J2EE for all? :D May 19 15:56:17 I'm more of https://www.youtube.com/watch?v=sOnqjkJTMaA myself. May 19 15:57:45 lov: yeah, I need to definitely finish my intro to java book. hah. Thanks though. Appreciate the help May 19 15:58:23 hello May 19 15:58:38 eghdk grab intro to cobol while you are at it :) May 19 15:58:57 what happens to a fragment when I remove view that I added it too? May 19 15:58:59 *to May 19 15:59:55 g00s: will do May 19 16:00:53 lov: he was better as a werewolf than a hologram May 19 16:01:15 eghdk: take a look at http://docs.oracle.com/javase/tutorial/java/index.html , http://docs.oracle.com/javase/tutorial/essential/index.html , and http://docs.oracle.com/javase/tutorial/collections/index.html May 19 16:01:28 the first link should help you with the essentials you really need to know before doing anything else. May 19 16:03:31 bummer Scout iOS first, grr May 19 16:04:28 in the split ActionBar, is it possible to include labels under the icons on the bottom bar? May 19 16:08:44 small question about textviews in a hashtable, if any1 could help me out plz pm :) May 19 16:10:27 Any help with this? http://stackoverflow.com/questions/23726545 My tagged fragments don't get persisted May 19 16:11:46 lov: This summer difinitely. May 19 16:12:06 I love programming so far. I just need time away from school to actually dedicate to it. May 19 16:12:28 eghdk: fair enough :) May 19 16:12:57 Don't be discouraged if you don't understand how to do something, just bear in mind that things can be confusing and counter-intuitive if you're brand new. May 19 16:13:09 lov: gotta start somewhere. at some point. everyone sucked at java. hah May 19 16:13:12 if you don't know what design patterns are, for example, you might not understand how to make a listener! May 19 16:13:41 Yeah. I bought a book on OOP desgin patterns to read this summer as well. I'm wondering if there are any you want to recomend to me as well. May 19 16:13:44 Let me know. May 19 16:13:52 barq: I just found out what the issue was if you're interested. PendingIntent reuses the created Intents, so the extras weren't actually being updated. Using a flag fixed it (e.g. http://developer.android.com/reference/android/app/PendingIntent.html#FLAG%5FONE%5FSHOT) May 19 16:14:40 If you're new to programming in general, the Head First series of books tends to be pretty decent. May 19 16:14:52 There's a Head First book for Design Patterns which I found to be pretty decent. May 19 16:15:08 Wikipedia has a, frankly, exhaustive portal for computer science in general. May 19 16:15:59 You can generally ask for Java help in ##java, but be warned that they're a bunch of assholes in there, and if you say "Android" or mention an Android-specific class, they'll just clam up and stop helping. May 19 16:17:11 Android doesn't use Java anyway so…. May 19 16:17:27 To be fair though, it makes more sense to ask here if it's not a general Java question May 19 16:17:35 well, it does May 19 16:17:42 puckipedia: sarcasm.jpg May 19 16:17:46 it uses the java language, but not the java vm May 19 16:17:48 :P May 19 16:19:03 and that's the exact sort of pendantic reasoning that makes them decide that they don't want to help anyone who uses Android >:( May 19 16:19:16 "It's not the one true java, ENOTSUPPORTED" May 19 16:19:38 blasphemeh! May 19 16:20:14 there are some good points in there about general lack of compatibility, but they're lost within the full and luscious neckbeards. May 19 16:20:42 They answer plain java questions May 19 16:20:50 not if you say the word "Android" anywhere. May 19 16:21:01 Yeah. I've learnt not to say it May 19 16:24:15 DrawerLayout is exasperating. seems like onDrawerClosed gets called another 500ms or so after it looks closed to me; takes about 1 second when all is said and done May 19 16:25:19 starting a fragment transaction or startactivity with a hardcoded delay (350ms or so) still seems repulsive May 19 16:25:31 It does indeed May 19 16:25:59 well, i think the android teams need more neckbeards; the OS seems cobbled together by a bunch of kids May 19 16:26:11 How come I get boners with php but not with java ... May 19 16:26:13 * pthreat ponders May 19 16:26:23 except for DH,i don't know if anybody has a fucking idea how to write an API or OS May 19 16:26:29 pthreat: ... you're a one sick fuck May 19 16:26:40 (or code that works) May 19 16:26:54 g00s: I think that's generic case... May 19 16:26:57 p_l|backup: Yes! :D May 19 16:27:00 pthreat: pretty gross bro. May 19 16:27:02 g00s, is the NavDrawer implemented by Android? May 19 16:27:05 It's generik iirc May 19 16:27:11 lov: hey! Its figured speech May 19 16:27:13 its support library May 19 16:27:13 g00s: and current crop of neckbeards might not be good at it May 19 16:27:25 I mean sometimes ... I don't even want to go to the bathroom when coding with PHP I swear ... May 19 16:27:48 with java is like "Ok time for a snack ..." May 19 16:27:55 "Derogatory term for slovenly nerdy people who have no sense of hygene or grooming", oops May 19 16:27:59 Guess I'm out of shape with it and that's why May 19 16:28:01 i thought it meant older farts May 19 16:28:05 mikedg: pthreat is out mikedg-ing you May 19 16:28:09 you need to step it up May 19 16:28:24 wha? lol May 19 16:28:48 lov: Thanks for the service manifest line still thanking you for that one May 19 16:28:49 pthreat: compiling kills the boners May 19 16:28:52 o/ May 19 16:28:53 it's a scientific fact May 19 16:28:56 mikedg: yeah! May 19 16:28:57 TRUE May 19 16:29:03 if you want boners for android development, use html and javascript May 19 16:29:06 and make chromeapps May 19 16:29:42 pthreat: no problem, common forgetful mistake. May 19 16:29:48 I was going to but ... I can't since I have to read fs stuff May 19 16:29:52 :( May 19 16:29:55 lov: :) May 19 16:30:27 yeah you don't belong here perlsyntax! LEAVE! May 19 16:31:01 http://learnyouahaskell.com/syntax-in-functions May 19 16:31:03 I ... May 19 16:31:09 why May 19 16:31:10 youcan read fs stuff with java May 19 16:31:17 buy a 0 day chrome exploit use that May 19 16:31:27 i saw one going for $150,000 the other day May 19 16:31:31 mikedg: haha May 19 16:31:43 mikedg: Yeah I know I'm doing that (with java, doing an android app) May 19 16:31:49 mikedg: fair enough May 19 16:32:15 factorial :: (Integral a) => a -> a Haskell makes NO sense in my head May 19 16:32:17 thank god May 19 16:32:56 learnyouahaskell is one of those terrible documentations for new language :P May 19 16:33:36 wtf is => a -> a ^ 2 lambda(z) * PI May 19 16:33:41 xD May 19 16:33:51 GAMMA RAYS! May 19 16:33:56 * pthreat pew pew pew May 19 16:34:13 oh no ... bruce banner shows up! May 19 16:34:18 ehhh May 19 16:34:29 factorial :: (Integral a) => a -> a is quite readable May 19 16:34:39 compared to majority of haskell May 19 16:34:52 p_l|backup: haha thanks for adding to the majority :* May 19 16:35:41 "A function that takes an argument of type 'a' and returns an argument of the same type, where type 'a' belongs to typeclass Integral" May 19 16:35:44 or something like that May 19 16:35:48 p_l|backup: I'm overreacting I know I'm joking (partly) May 19 16:35:56 it's when you encounter math-wankery that stuff gets bad May 19 16:36:13 like category theory stuff? May 19 16:36:18 Now in all seriousness ... I like my C style or Java style functions :D May 19 16:37:19 flam_: no, like wanking over mathematical concepts and misusing them, while serious haskell programmers don't give a fuck ;) May 19 16:37:22 I see stuff like that and it just hurts my eyes, I don't even want to think about advanced haskell May 19 16:37:32 flam_: i.e. attaching lots of math-wankery mysticism May 19 16:37:40 haha May 19 16:37:49 I know a wanker like that! May 19 16:38:06 unnecessary use of complex terms because they sound like math professor that you didn't understand in college class you failed, etc. May 19 16:38:23 Someone promote this guy for channel op please May 19 16:38:27 p_l|backup++ May 19 16:38:45 p_l|backup: it's a mystic logic back dooring reverse engineering math logic, you just don't see it May 19 16:38:52 algorithm ... May 19 16:43:36 is there a way to add a string to the value from strings.xml in xml? like the string is "name" and I just want to add a '*' without actually changing the value in strings.xml May 19 16:44:50 there's a lot of missing context in this question May 19 16:45:40 getResources().getString(R.string.foo) + "*" ? May 19 16:46:05 no, i want to add the '*' in the layout xml May 19 16:46:14 I doubt it's possible May 19 16:46:15 and this is why context matters. May 19 16:46:18 probably not May 19 16:46:21 i've never seen it May 19 16:48:36 markmarkmark: it's not possible. May 19 16:48:50 also, I don't think you can put special characters into the xml name tag. May 19 16:48:51 yeah i figured May 19 16:49:11 even if you could do it, it'd be a pretty bad idea; hardcoding strings is Bad News when it comes time to do i18n May 19 17:02:09 Using retrofit, if I wanted to create a RestAdapter.Builder() that had a lot of presets built into it, how might I do that? May 19 17:04:14 like what? May 19 17:04:23 Is it possible to read out whether the device is playing audio? May 19 17:05:08 Do you have an alternative for sharedpreference in a Sync process May 19 17:06:22 I'd love to have a RestAdapter build with a default requestInterceptor, for instance May 19 17:07:58 Can somebody help me with this. The scrollview's scroll doesnt work in API 10, but does work with API 19, after adding onTouchListener - http://stackoverflow.com/q/23741638/3488870. May 19 17:10:41 shekibobo: you should only be calling RestAdapter.Builder once May 19 17:16:54 i did some logging while the app was running: the app is running as admin, destination directory is writable, files can be created there, how can i give the app copy rights then? May 19 17:18:01 ups, sorry May 19 17:18:33 Any help with this? http://stackoverflow.com/questions/23726545 My tagged fragments don't get persisted May 19 17:30:29 i have 16 textviews which i want to store in a hasmap could someone help me with that? May 19 17:31:13 in the split ActionBar, is it possible to include labels under the icons on the bottom bar? May 19 17:56:28 Is there a way to get the native window ID without using android_main and querying the android_app state? What if Java is my entry point, but native code still needs the native window ID? May 19 18:09:02 I use assembleRelease with signingConfig but it doesn't generate any apk. why? May 19 18:10:10 http://pastebin.com/eHsyW7U8 May 19 18:11:47 yoavst: I'm doing essentially the same thing, and it's working for me. are you getting a build error? are you looking in build/apk for your apk? May 19 18:12:06 there is no build/apk May 19 18:12:23 21:09:35: Executing external task 'assembleRelease'... 21:09:35: External task execution finished 'assembleRelease'. May 19 18:12:55 but gradle console output this: May 19 18:13:11 http://pastebin.com/bPAXXKsd May 19 18:14:35 not sure if this will fix it. but you could try lintOptions { abortOnError false } May 19 18:14:44 I May 19 18:14:51 'll do that when I'll back. thanks May 19 18:15:22 yoavst: also it looks like there are errors in the gradle build. May 19 18:18:50 He already has abortOnError false.. Chances are you're just looking in the wrong build folder May 19 18:19:20 It's app/build/apk/ May 19 18:22:06 hello everybody May 19 18:31:11 SimonVT: There is no /app/build/apk May 19 18:31:44 yoavst: you have a build foldre right? May 19 18:31:55 yes I have /app/build May 19 18:34:10 I also tried it using gradle bin from cmd May 19 18:34:16 still no apk May 19 18:37:57 http://pastebin.com/BCv33fRr May 19 18:40:39 someone have idea why? it still works with the gui dialog May 19 18:46:58 Try gradle clean assembleRelease --info May 19 18:47:00 See what it says May 19 18:47:29 I can't imagine the signing and zipalign tasks would succeed if there was no apk May 19 18:50:22 Ok, it running, I'll paste the results May 19 18:52:24 is it still the case in Play you can't convert a private beta to public, and vice versa ? May 19 18:52:34 alpha / beta May 19 18:53:40 g00s: I believe you can go from alpha-beta-prod now May 19 18:54:02 g00s: I have promoted an app from beta to prod before for sure May 19 18:54:18 I don't think he's talking about the apk May 19 18:54:30 davidcorrado ok, but there was a distinction between public and private alpa/beta May 19 18:54:54 when they first implemented this, you had to choose … and once chosen, you could not change May 19 18:54:59 just wondering if thats the same May 19 18:55:13 not sure if i should do public / private; have to really think this through May 19 18:55:27 the g00s is l00s May 19 18:55:36 hey mikedg May 19 18:56:57 SimonVT: http://pastebin.com/FMMm73FU May 19 18:58:03 I have a question. How do I show a view once and only once under the collapsed portion of an expandablelistview’s group if the group has multiple children. May 19 18:58:06 ? May 19 18:58:27 Well, it says it created the apk May 19 18:58:35 Show the content of C:\Users\Yoav\Documents\AndroidStudioProjects\ChangeSystem\app\build\ May 19 18:59:12 yoavst http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/find.mspx?mfr=true May 19 18:59:32 oops, wrong command May 19 18:59:39 Oh wait. I could use the Boolean islastchild… I figured it out. May 19 19:00:22 oh i guess : dir *.apk /b /s should do it May 19 19:00:31 Oh yes, soon I'll be able to set a bounty for my question.. I hope that gets me an answer May 19 19:06:29 wtf May 19 19:06:35 it says there is build/apk May 19 19:06:56 but AS... May 19 19:07:17 AS doesn't show all folders in build/ May 19 19:07:32 Can I force it show apk folder? May 19 19:07:43 I have no idea May 19 19:08:43 So today you learned to actually check the folder May 19 19:09:10 I checked May 19 19:09:25 but with gradle assembleRelease there wasn't this folder May 19 19:09:36 only with gradle clean assembleRelease --info May 19 19:12:16 SimonVT: Thanks for telling me to clean if something doesn't work :) May 19 19:14:22 Android dev 101 ^_^ May 19 19:22:30 Is there a way to check is it the release varient from applicationVariants.all? May 19 19:28:50 Can somebody help me with this. The scrollview's scroll doesnt work in API 10 (work fine with API 19) after adding onTouchListener - http://stackoverflow.com/q/23741638/3488870. May 19 19:31:59 JakeWharton: re: RestAdapter, is the idea to initialize the rest adapter in the main activity and use that same one everywhere somehow? What if I'm using different activities? Or is there a singleton version that gets set up and can be used? May 19 19:34:08 shekibobo: You should make your own singleton class with the RestAdapter in it May 19 19:34:29 makes sense, thanks May 19 19:34:46 Or inject it May 19 19:36:04 Yes, if you are using a dependency injecter such as Dagger, if not then a Singleton will do May 19 19:36:28 How do you guys usually do apps that need a custom font for all TextView/EditText elements? Subclassing TextView/EditText where the constructor sets the type face to use? May 19 19:37:37 I have a radiogroup with 2 radio buttons. I am getting the button id of the selected one by using radiogroup.getCheckedRadioButtonId(), but it always returns -1 even with one selected. May 19 19:37:39 Any theories? May 19 19:38:29 XML looks like it the id's match up May 19 19:40:27 Eep, never thought of the fact it could be where i'm initilizing the controls May 19 19:40:35 /facepalm ill try changing that around May 19 19:42:59 Shouldn't the hint of a EditText get removed once it's focused? May 19 19:43:37 No, once text is entered May 19 19:44:40 Nope, tried moving around my statements, still returns -1 err time May 19 19:48:14 Why did I read Man Your Rims? May 19 19:48:17 Jesus ... May 19 19:48:37 it can be three ways May 19 19:48:40 no problem :) May 19 19:48:47 p_l|backup: yes I know it's because I'm a sick fuck, point taken. Thanks May 19 19:48:54 crack3r: you white? May 19 19:48:58 Also, in debugger, radiogroup shows the two children, but each have the mChecked property of false May 19 19:49:08 Thus it looks like that is where the problem is stemming from May 19 19:49:11 brown, you? May 19 19:49:24 Why crack3r then ... May 19 19:49:27 I don't get it May 19 19:49:30 it's not even funny May 19 19:49:43 Maybe it's the new term for one who smokes crack May 19 19:49:48 or maybe even creates it May 19 19:49:51 good point ... May 19 19:50:02 ManyouRisms: you cool May 19 19:50:05 that, who wants some May 19 19:50:21 heh! May 19 19:50:42 I sure don't! My cousin used to do that crazy ass shit ended up crazy and in prison May 19 19:51:54 Everything in moderation brotha May 19 19:52:35 ManyouRisms knows what's up May 19 19:52:56 how do I totally reset android studio theme? May 19 19:53:11 I have an half white and the other black May 19 19:53:30 Half cracker, half ..... May 19 19:53:43 tiger woods May 19 20:03:29 guhhhh what a stupid problem. If in my running app i select something with my fat finger, the progam doesn't consider it checked May 19 20:03:42 If i use toggle or check in code, it then is considered checked May 19 20:03:51 Por que amigos May 19 20:04:25 Can an Android app turn cellular/GPS on and off? May 19 20:04:59 hmm... with SECURE_SETTINGS permission? I think... May 19 20:05:13 been years since I used an application that needed it May 19 20:06:09 I don't think it's permitted anymore. May 19 20:06:17 Too many hijinks. May 19 20:06:37 not as a standard app May 19 20:11:15 Hey guys, I'm wireframing for an opensource todo app using taskwarrior. I was wondering if anyone had any features that they wish more/any todo applications had. May 19 20:14:28 This is an internal-only app, is there a way to change settings to allow our app to do it on internal phones? May 19 20:16:17 tkeith: is your app preloaded on the device? If yes, signatureOrSystem permissions. May 19 20:16:21 If no, no. May 19 20:16:43 god damnit API 10! This incompetency! :@ May 19 20:17:36 Hmm, the boss was just examining the sliding panes in the Google Hangouts app and it seems like something we’d like to use. Would they be using SlidingPaneLayout? Is the source available or is Hangouts a closed source app? May 19 20:19:25 Hangouts is closed source. May 19 20:19:32 d’oh May 19 20:20:39 colintheshots: where are they May 19 20:21:07 pthreat: using a 7” tablet in portrait mode results in sliding panes May 19 20:21:41 colintheshots: no man ...the shots ... where the fuck are the shots Colin ... May 19 20:21:55 colintheshots: jk dude May 19 20:21:59 Oh I just call em where I see em May 19 20:22:14 Yeah, hangouts uses SlidingPaneLayout (or at least a layout that works like SlidingPaneLayout) May 19 20:22:31 I just figrued out you and lov at a bar ... I come in and sit at the table STARE at you like a very deep and scaring look and say ... "COLIN ... THE SHOTS" May 19 20:22:36 I'm just screwed up May 19 20:22:45 is stackoverflow down? May 19 20:22:50 let me check May 19 20:22:57 gdrc: negative May 19 20:23:20 gdrc: http://www.downforeveryoneorjustme.com/stackoverflow.com May 19 20:23:21 why the hell I can't connect to it then? :S May 19 20:23:49 cant even ping it May 19 20:23:50 * capella is baaaaaack :) May 19 20:23:51 colintheshots: https://www.youtube.com/watch?v=Jl3-lzlzOJI at 16:24 SlidingPaneLayout May 19 20:24:24 WantToCode: Thanks! May 19 20:24:50 and there was a small guide at BigNerdRanch(?) IIRC May 19 20:25:01 Happy to help for the first time here :) May 19 20:27:18 on twitter other people cant connect to stackoverflow, is not just me ;) May 19 20:34:49 anyone done a view pager like in the gmail app for swiping through a list view from the detail screen? May 19 20:35:20 Please anyone help me with this. I have wasted whole day on this silly issue. The scrollview's scroll doesnt work in API 10 (work fine with API 19) after adding onTouchListener - http://stackoverflow.com/q/23741638/3488870. May 19 20:39:25 https://www.youtube.com/watch?v=CbHHz6OA5D4 May 19 20:39:27 dance you fools May 19 20:39:36 o/ \o\ /o/ May 19 21:00:23 I'm searching for library that consumes rest apis and convert the result into a list of custom class (same of AFNetworking in iOS) May 19 21:02:22 gdrc: http://square.github.io/retrofit/ maybe May 19 21:11:54 i have a list view. the layout for each item has android:background="?android:attr/activatedBackgroundIndicator" in the layout xml. which when an item is selected it is highlighted blue. but now i also want different background colors for the items depending on the data which is set in a custom adapter. this background color over riders the background indicator.... im not sure how to resolve this, does anybody have a May 19 21:11:54 suggestion ? May 19 21:12:38 wow, i apologize for spelling. late night May 19 21:24:36 Hello May 19 21:57:15 I'm looking to start a development project for an Android app. I'm wondering, though, would it be better to develop on Linux, Windows, or does it not make any difference? May 19 21:57:30 kruug: no difference May 19 21:57:31 In my case, my Windows has better hardware, so things may run faster on there May 19 21:57:57 GermainZ: quick, to the point, perfect :) May 19 21:58:01 thanks! May 19 21:58:04 \o/ May 19 22:16:52 http://lpaste.net/104328 <- How do I send and get the actual msg of a http request/response? I can get the 200 OK but not the actual msg. What am i doing wrong? May 19 22:27:20 why aren't you logging any of the exceptions? May 19 22:27:31 that's the reason you don't know what's not working. May 19 22:31:39 try { } catch (Exception e) { } // woohoo ! May 19 22:33:09 ? I think it is working but I dont know how to set and get the body/msg...? May 19 22:34:03 Or rather, IT IS working since I get the response, I jsut need to get the msg. May 19 22:34:45 g00s nobody could help me earlier could i try you ? May 19 22:35:47 Zylinx i don't have enough scrollback, you'll have to paste the question again May 19 22:37:28 i think i have narrowed my question down to, is it possible to have a background state indicator set in the xml aswell as set a background color on each item programatically in the adapter for a listview ? May 19 22:38:15 where the background color would show when state is not selected. but when selected use the indicator resource to change the color to selected blue May 19 22:40:04 i'm not good with the gui things :( May 19 22:47:55 ^ guis are very touchy things May 19 22:48:46 yeah May 19 22:48:51 sigh May 19 22:50:23 in my layout xml i had android:background="?android:attr/activatedBackgroundIndicator" which dont ask me how but worked for highlighting selected items. now i want multiple background colors for different items and it overrides that selector indicator attribute thing so it doesnt work. which makes sence, but also mankes me want to cry May 19 22:50:34 because i really dont have time to dig into this May 19 22:53:59 how do I set a button to wrap to the width of the phone? May 19 22:57:16 JakeWharton: can retrofit return the html from a response? May 19 22:57:24 yes May 19 22:58:13 JakeWharton: with what object/type? May 19 22:58:35 well you can either use Response or you'll have to set a custom Converter that deserializes to a String or something May 19 23:04:06 Shoudlnt WRAP_CONTENT drag a button to the whole width of the view? May 19 23:10:42 if the content is large enough May 19 23:13:09 lamela: wrap_content means that the bounds will match the required size to fit the content, and no more. May 19 23:13:22 so if a button only needed 100dp to render, then it would only measure to be 100dp wide. May 19 23:13:30 even if you gave it 300dp May 19 23:14:20 what you're probably looking for is LinearLayout's layout_weight concept, where you can specify that a view's dimension should be a ratio of the remaining space after measuring other children along the orientation's axis. May 19 23:14:56 for instance,