**** BEGIN LOGGING AT Mon Mar 10 02:59:58 2014 Mar 10 03:07:22 how do you mean ? Mar 10 03:13:52 Hi Mar 10 03:14:01 Is it possible to define constants in an android xml file? Mar 10 03:14:15 ie. instead of putting android:defaultValue="xyz" could I define xyz earlier in the file?> Mar 10 03:14:50 ir7466: maybe create a string array in resources ? Mar 10 03:15:07 well the file is already in resources Mar 10 03:15:19 it's not a huge deal Mar 10 03:15:31 I was just hoping I could add a bunch of constants at the top of the file and reference them throughout Mar 10 03:19:43 ir7466, you can do stuff like this test@string/test Mar 10 03:20:22 can I do it in android:defaultValue? Mar 10 03:21:45 ok, I see I can now Mar 10 03:21:52 but that means the string has to be in strings.xml Mar 10 03:21:58 can I put it in like, config.xml? Mar 10 03:22:05 and do like, @config/test Mar 10 03:23:45 bankai_, sorry I didn't see your message in amongst all the people quitting. I just meant, does literally append the new value into the preferencescreen settings xml file or does it store it elsewhere Mar 10 03:26:23 XML Mar 10 03:27:56 hello, could someone help me fix a file. smali? Mar 10 03:28:11 Guyz -any idea how I can change the network type? Mar 10 03:29:19 b0t: i believe there's a #smali channel Mar 10 03:29:42 thanks!! Mar 10 03:30:19 sleep all there Mar 10 03:31:00 is there a way to hook into when the sharedpreferences update bankai_? for example, say it needs to be stored in millisecond but I want the user to type in the number of minutes? before it gets saved, is it possible for me to go in and manipulate that number? Mar 10 03:31:34 yep Mar 10 03:32:15 Without root Mar 10 03:33:44 Mind_Hacker: in an app? Mar 10 03:34:03 Yeah Mar 10 03:34:08 bankai_ what would it be called, so I know what to search for? Mar 10 03:34:38 variations of "sharedpreferences update hook" aren't showing me much on google Mar 10 03:35:27 are you talking about sharedpreferences or a prefencefragment/activity ? Mar 10 03:36:25 just extend a preference view Mar 10 03:36:27 when the user changes it from a preferenceactivity Mar 10 03:36:58 do I need to override some methods in my class extending PreferenceActivity? Mar 10 03:39:44 you could, but if you've got a a listpref or something you can set entries and entryvalues as different things Mar 10 03:40:19 well just using the simple example of converting milliseconds to minutes Mar 10 03:40:36 say it's stored as milliseconds in the settings.xml, how would I make it display as minutes in the UI? Mar 10 03:41:07 android:entries and android:entryValues (if you're talking about a listpreference) Mar 10 03:41:26 I'm talking about an edit text Mar 10 03:41:30 in this particular scenario Mar 10 03:41:32 I have a custom textView that changes it's text every 10 seconds. Almost like a custom chronometer but with text. I have this custom view as the only item in my ListView. In my getView method of customListAdapter I set up the custom view. It works great on every device except for seemingly ICS (4.0.x devices) and it's driving me insane how I can't seem to get it to update. I've steeped through my code, and my update code is gettin Mar 10 03:41:47 you'll have to roll your own fun for that, i believe Mar 10 03:42:19 surely people have to manipulate the settings data regularly though? Mar 10 03:43:42 http://stackoverflow.com/questions/2542938/sharedpreferences-onsharedpreferencechangelistener-not-being-called-consistently ........... maybe registerOnSharedPreferenceChangeListener ? Mar 10 03:44:16 hello Mar 10 03:44:26 here is a silly problem. I messed up and created a new app as a blank activity instead of a default one using the helloworld template. I have added a activity and a layout for it. however, when I do R.layout.activity_main eclipse does not know the R. part. Mar 10 03:44:34 ive also added the activity to my manifest. Mar 10 03:45:58 few things can cause that - your XML file isn't right or eclipse isn't right.... clean your project, if that doesn't work then your XML file is missing something or misconfigured Mar 10 03:46:43 i did try a clean and a restart. Mar 10 03:47:30 the context help says something is wrong with my build path, but i clicked the part about manual config and I compared it to another project. i did not see anything glaring. Mar 10 03:51:26 Its probably because eclipse fucked up.I'd say delete the project(not from the disk) and import it once again.Might help Mar 10 03:51:53 frankly, unless you've done a bunch of work, I'd say delete it and start from scratch Mar 10 03:52:19 yeah, i was about to do that. Mar 10 03:52:42 its such a pain, pulling up seperate project properties and doing comparisions. Mar 10 03:53:12 i need help with a smali file Mar 10 03:54:31 b0t: this still isn't the right channel Mar 10 03:55:20 smali is not android developer? Mar 10 03:55:49 I think b0ts really a bot Mar 10 03:57:17 no Android developer uses smali Mar 10 03:58:14 no, only uses android smali Mar 10 03:58:50 The bot is plagueing every channel here.Just saw it in java now Mar 10 03:58:54 So I was going to make a joke about 'no true Android developer', but thought I should find out what a smali is first. Mar 10 03:59:03 First link points to #smali on freenode. Mar 10 03:59:08 hahaha Mar 10 04:04:19 * Gumboot wonders about a channel populated with bots which randomly post links to search results as replies to anything said by non-bots. Mar 10 04:16:40 hello all Mar 10 04:42:48 is there any difference between Preferences and Shared Preferences? Mar 10 04:42:51 how do I know what I am using? Mar 10 04:43:48 SharedPreferences is just a means of access. PreferencesFragment/Activity is a way to provide end-user manipulation Mar 10 04:44:09 Well I am using "onSharedPreferenceChanged" so listen to when a value gets changed Mar 10 04:44:18 But some websites refer to onPreferenceChanged Mar 10 04:44:24 How do I know what I should be using? Mar 10 04:45:47 lets put it this way. If I want to have a validation on the preference values, how would I do it? Mar 10 04:46:17 there are 2 things, SharedPreferences apis like .putString .getInt, etc --- and there is the Preferences Framework (ListPreference) Mar 10 04:46:39 i think its Preference.onPreferenceChanged (without looking) Mar 10 04:47:37 bankai_ just learned the hard way, PreferenceFragment can't be retainInstance(true) if in a preferenceActivity (with header). ugh, fucking docs ! Mar 10 04:48:20 ok Mar 10 04:48:21 thanks Mar 10 04:48:40 * g00s just wasted about a day there :| Mar 10 04:49:27 is it possible to pre-validate preferences? Mar 10 04:50:06 sure Mar 10 04:50:06 ie. before loading it on to the screen, check that it is valid? ie. say somehow 40000 got saved for a particular setting, but the limits are it must be between 0 and 10000. is it possible to pick that up before displaying it? Mar 10 04:50:24 well, you are the one who saves it. so don't save it wrong Mar 10 04:50:52 the specific example I'm thinking of is converting minutes to milliseconds Mar 10 04:51:01 the particular setting should save in milliseconds Mar 10 04:51:06 but the user should see minutes Mar 10 04:51:27 its your responsability to validate before saving Mar 10 04:51:46 ignoring validation, what if it's just about the conversion Mar 10 04:52:22 the config value should be stored in milliseconds, but displayed to the user in minutes. is there an event I can hook into before the value is displayed on the screen? Mar 10 04:53:37 ir7446: you retrieve your known value, and convert it anywhere/anytime you desire before being .setText()'d Mar 10 04:54:11 canvs2321, how do you mean? Mar 10 04:54:36 I'm getting a serious vibe that I may as well just store it in minutes here Mar 10 04:55:07 get your ms value, and convert it at anytime to whatever format you want. then set your textview with that value Mar 10 04:55:32 But I can't do it at any time, because the preference activity automatically loads everything Mar 10 04:55:45 so I'd need to hook into some sort of onload method to do the conversion Mar 10 04:55:58 hook into that, look for the specific key, set the text Mar 10 04:56:07 but I don't know where "that" is Mar 10 04:56:35 oh wow bankai_ AS 0.5.1 & gradle 0.9 work without a hitch, first time ! Mar 10 04:56:44 i think you should switch ! Mar 10 04:56:46 you just get your sharedpreference key to object value, and do a conversion on that value Mar 10 04:56:47 XD Mar 10 04:56:51 gonna flood here Mar 10 04:56:52 static String formatIntervalMinutes(final long l) Mar 10 04:56:52 { Mar 10 04:56:52 final long hr = TimeUnit.MILLISECONDS.toHours(l); Mar 10 04:56:52 final long min = TimeUnit.MILLISECONDS.toMinutes(l - TimeUnit.HOURS.toMillis(hr)); Mar 10 04:56:52 final long sec = TimeUnit.MILLISECONDS.toSeconds(l - TimeUnit.HOURS.toMillis(hr) - TimeUnit.MINUTES.toMillis(min)); Mar 10 04:56:53 no way!!!! i just upgraded IJ, leave me alone :P Mar 10 04:56:53 return String.format("%02dm:%02ds", min, sec); Mar 10 04:56:54 } Mar 10 04:57:09 the conversion doesn't worry me Mar 10 04:57:16 it's WHERE I do that conversion Mar 10 04:57:27 where does formatIntervalMinutes get called from? Mar 10 04:57:33 anywhere you want once you get your value to convert! Mar 10 04:58:01 But that's assuming that I call formatIntervalMinutes everywhere in the code Mar 10 04:58:11 when it would be much simpler to just do the conversion on the settings screen Mar 10 04:58:12 bah, you are confused/lost Mar 10 04:58:34 show me code where you are getting your value Mar 10 04:58:52 okay... it's for an http timeout setting right. so everywhere in the code, I currently call a static int which is *xyz* milliseconds Mar 10 04:59:04 show code Mar 10 04:59:06 I want to make that a preference value, so the user could change it if they want Mar 10 04:59:17 But I don't want them to see the milliseconds Mar 10 04:59:20 I want them to enter minutes Mar 10 04:59:45 then if they are entering data, you take your minutes and convert to milliseconds if you need? Mar 10 04:59:51 yes Mar 10 04:59:54 precisely Mar 10 04:59:55 but if entering seconds, why convert? Mar 10 05:00:04 I don't want them to enter milliseconds Mar 10 05:00:12 I want the end user to only deal in minutes Mar 10 05:00:19 what i'm saying is, why store as milliseconds? Mar 10 05:00:44 Because I want the backend to deal in milliseconds, rather than converting from minutes to milliseconds a hundred times in the code Mar 10 05:00:57 I'd prefer to just do the conversion once - on the settings/preferences screen Mar 10 05:00:59 like i said, you are confused. Mar 10 05:01:15 with 0 code. your typing is useless Mar 10 05:01:26 ir7466 simple, use a list preference with log scale Mar 10 05:01:27 What do you want me to show you? Mar 10 05:01:36 values are seconds, entryValues are milliseconds Mar 10 05:01:39 anything besides theory Mar 10 05:01:42 If I had the code I wouldn't be in this situation Mar 10 05:02:05 1, 2, 5, 10, 30 seconds, 1 min, 2 min, etc Mar 10 05:02:17 ir7466: how long u been at java? Mar 10 05:02:26 g00s: that is the most sensible thing I've read so far Mar 10 05:03:53 canvs2321: I don't have any code to show you. My question was, is there some method I can hook into when the preference screen loads so I can change the values. I can't show you any code because I still don't know whether such a method exists, whether it can be overridden or whether what I'm thinking of is even possible Mar 10 05:04:20 the listpreference will do it on the fly Mar 10 05:04:43 its like a map, keys presented to user, value stored in prefs Mar 10 05:04:47 g00s: with the milliseconds as the value in the list preference? Mar 10 05:04:53 entryValue Mar 10 05:04:59 the entries will be human readable Mar 10 05:05:02 yeah, that is a good idea Mar 10 05:05:03 i'll show Mar 10 05:05:11 *sighs* already been through this an hour ago Mar 10 05:05:14 one sec Mar 10 05:05:15 it's okay g00s, I've done a list preference for something else Mar 10 05:05:32 I can see how it would be done for this Mar 10 05:06:22 setting timeouts is an advanced customization though, do you really need a preference ? Mar 10 05:06:38 then its like, ok prefs for # retry attempts, time between retries, etc Mar 10 05:06:50 exponential backoff multipliers :) Mar 10 05:06:58 to be honest, I'm just curious how something like this would be possible now Mar 10 05:07:20 for example, say you had a preference that was a unix timestamp. how could you convert it to a human readable date on the preferences screen? Mar 10 05:07:23 none of the apps i have used have prefs for this kind of thing, but ok Mar 10 05:08:19 Clearly, onPreferenceChange() can be used to convert it back after the user has entered something. But so far nobody has known of a way to do the initial conversion from the stored value to what the user sees on the screen, if that makes sense Mar 10 05:09:06 override the preferencefragment and you can do whatever you want however you want Mar 10 05:09:49 If I override, then do I have to create the layout files myself? Mar 10 05:10:01 bankai_ look what you did now Mar 10 05:10:07 or as pfn said before just extend a preference view Mar 10 05:11:36 or you could work rxjava in there and make the text observable Mar 10 05:12:06 I find it hard to believe this is not something that people have to regularly deal with. I mean that unix timestamp to human readable date example would have heaps of real world applications Mar 10 05:12:19 as a preference? Mar 10 05:12:28 sure, why not? Mar 10 05:12:43 say you have an app that wants to store a birthday as a preference, who knows Mar 10 05:17:40 Easy... Mar 10 05:18:03 Please do share :) Mar 10 05:18:18 Why complain About trivial things Mar 10 05:18:33 Seeing the http timeout example offends everyone, the unix timestamp to human readable date example would be fine Mar 10 05:19:18 g00s: do you dagger? Mar 10 05:19:25 bankai_ no Mar 10 05:20:19 hehe https://blog.avast.com/2014/03/07/google-play-whats-the-newest-threat-on-the-official-android-market/ Mar 10 05:20:22 " The app tries to parse phone numbers from applications such as Whatsapp or ChatOn in order to subscribe them to a premium messaging service." Mar 10 05:20:33 android permissions ftl Mar 10 05:22:56 wonder if they spam that url with invalid/fake phone numbers Mar 10 05:23:30 I would :p Mar 10 05:23:44 the facebook page explaining their permissions is the worst Mar 10 05:24:21 https://www.facebook.com/help/210676372433246 "Keep in mind that this list doesn’t include all of the Android permissions we request or all of our uses of those permissions" Mar 10 05:24:24 .. Mar 10 05:24:48 ir7466: just write your convert method to give the exact output you want, it's easy Mar 10 05:24:58 and call it from anywhere Mar 10 05:25:53 it seems inefficient to call a convert method, say, 30 times throughout the code when really it only needs to be called twice... when the preference screen loads and when the user changes the value Mar 10 05:26:18 well you said you want it stored in ms and displayed in minutes Mar 10 05:26:25 yes Mar 10 05:26:33 alrightey then Mar 10 05:27:29 make less than 30 the times you have to call it Mar 10 05:27:50 I want to thank you guys for your help, contrary to what you may think I'm not trying to piss you off with trivial questions, I am legitimately confused about how to go about fixing this issue Mar 10 05:28:02 its not an issue Mar 10 05:28:20 its choosing the representation for stored data. pref, db or whatever Mar 10 05:28:26 or sending it over the wire Mar 10 05:28:50 g00s: I accept that your idea of using the listpreference is probably the best way to do it Mar 10 05:28:58 And to be honest I will probably do it that way Mar 10 05:29:16 But I believe this is something I may come across again, instead of ignoring the problem I'd like to know how I could do it Mar 10 05:29:45 The date/timestamp issue is surely a perfect example? Nobody wants to store a date string to represent a date, you'd want a Date object or a timestamp Mar 10 05:30:05 But you still need to present it to the user in a format they understand, ie. a date string Mar 10 05:31:07 ir7466: I'm scanning video files and getting their durations in ms and I had to write my own conversion to get the right formatting with the padding and everything I need Mar 10 05:31:08 if your users don't understand Unix time stamps... get new users Mar 10 05:31:25 Come on Mar 10 05:31:29 For a preference screen in an app? Mar 10 05:31:41 yeah, also define your own epoch. like , ms past your birthday or something Mar 10 05:32:30 So short of overriding the preference fragment, this isn't possible Mar 10 05:32:50 ir7466 how about, if you app ever gets 1 stars because users are complaining that the preference screen is taking too long to show a value - then worry about it Mar 10 05:32:57 its .not an ussue. Mar 10 05:33:21 I accept you don't like the http timeout example Mar 10 05:33:45 like if something is 1 second I had to display it as "00:01" Mar 10 05:34:41 shmooz: any where else in the code, no problem. but the preference screen seems like a completely different beast Mar 10 05:35:10 hey dudes, i have a dynamically populated listview and i'd like to be able to apply paintflags to items that have already been created Mar 10 05:35:11 there is no clear way, I can see, to hook into the functionality where the preference value gets loaded. like if you hit an edittextpreference, where it pops up on to the screen Mar 10 05:35:22 how would i get the id of the clicked item? Mar 10 05:35:28 i have the onclick stuff setup Mar 10 05:35:33 if I could just hook into that, hit setText() and convert the value - i'd be sorted Mar 10 05:35:50 just not sure to do the findViewById part on a dynamically created textview Mar 10 05:36:25 can you do something like getViewById(this)? Mar 10 05:39:00 View.getId() Mar 10 05:39:16 cheers will try now Mar 10 05:41:41 it's giving me the error "cant cast from int to textview". Mar 10 05:43:45 aww monash, huh? fancy pants Mar 10 05:43:58 is monash fancy?? Mar 10 05:44:02 no Mar 10 05:44:45 ahh found an example of how to use that. Mar 10 05:44:49 .getid Mar 10 05:44:56 should be cool from here. Mar 10 05:44:59 thanks. Mar 10 05:58:49 do you guys have naming conventions to distinguish CAB vs regular action bar menus under res/menus ? Mar 10 05:59:21 CAB? Mar 10 05:59:28 contextual action bar Mar 10 05:59:56 I probably wouldn't bother. Mar 10 06:00:27 Shouldn't have so many menus that you need a naming convention to tell them apart by something other than a descriptive name. Mar 10 06:19:15 g00s: wouldn't it be nice if we could have subfolders in res? Mar 10 06:20:20 yes, the whole resource system sucks Mar 10 06:21:11 "lets implement all these permutations with directories" Mar 10 06:22:48 lol Mar 10 06:23:28 But let's not allow nested directories for organization Mar 10 06:23:53 gj google Mar 10 06:24:05 dj doogle Mar 10 06:24:35 too many resources ftl Mar 10 06:25:03 and if you have to organize your menus you're probably over engineering Mar 10 06:26:21 on that note, it'd be trivial to support sub directories Mar 10 06:27:04 but why would google do anything logical.. Mar 10 06:27:23 should be simple patches to aapt and various ide integrations Mar 10 06:27:37 submit a patch, easy Mar 10 06:27:57 no, why bother with what's not necessary Mar 10 06:28:11 and if someone wants it, they can submit a patch Mar 10 06:29:35 so disregard all conveniences because theyre not necessary? Mar 10 06:30:06 http://stackoverflow.com/questions/22276802/when-should-you-be-making-a-server-request-vs-storing-it-in-a-db-android Mar 10 06:30:07 no, do things that add value Mar 10 06:30:08 disregard everything invest in buttcoins Mar 10 06:30:10 any thoughts people? Mar 10 06:30:33 trying to figure out the frequency of making server requests vs holding off a couple min etc... Mar 10 06:30:38 if it doesn't add value, and there isn't an interest in doing it, then it is not worth doing Mar 10 06:30:49 LoneSoldier728 there are several presentations on that Mar 10 06:30:55 and at least one book ;) Mar 10 06:31:07 links? Mar 10 06:31:10 :) Mar 10 06:31:15 uh, i'm too lazy to google Mar 10 06:31:20 you'll have to google Mar 10 06:31:23 what do I google Mar 10 06:31:26 look at the last I/O Mar 10 06:31:27 really, bitch and whine all you want, if you want it, submit a patch, or pay someone to do it Mar 10 06:31:27 that is what I had a hard time with Mar 10 06:31:38 well there seems to be atleast some interest Mar 10 06:31:43 and it does add value Mar 10 06:32:31 if you think so, do it Mar 10 06:32:38 I don't Mar 10 06:32:55 i just might Mar 10 06:33:28 g00s you add it to the SO question ill mark urs right... i cant find it Mar 10 06:33:38 i dont use SO Mar 10 06:34:00 well then I will mark you right here : ) Mar 10 06:34:17 and crap, its not listed http://developer.android.com/channels/io2013.html Mar 10 06:34:43 i can think of 2 io sessions, a book , and s series in devbytes Mar 10 06:34:58 i can never find shit on youtube :) Mar 10 06:35:02 im looking for articles or something Mar 10 06:35:27 to read, do you have any ideas on the subject yourself though? Mar 10 06:35:48 reto did the devbytes Mar 10 06:55:05 Hi Mar 10 06:55:17 Question : Which framework is best for testing android apps. Mar 10 07:01:08 JUnit Mar 10 07:01:57 (your question is far too vague) Mar 10 07:04:02 hi guys for app dev, for http client to a restful api, what is the de factor library and what not people use? Mar 10 07:06:21 thnx JakeWharton Mar 10 07:06:51 flaccid: depends on your requirements. I'm biased towards Retrofit over OkHttp. Mar 10 07:07:38 I see there are many threads on SO that saying Robolectric is best for testing Mar 10 07:08:03 Robolectric uses a specialized JUnit test runner Mar 10 07:08:18 it's for unit testing if that's what you're looking for Mar 10 07:08:50 hmm, I am looking for unit testing for now Mar 10 07:08:56 JUnit is also for same right ? Mar 10 07:09:28 JUnit is pretty much what all testing runs on: unit, integration, acceptance Mar 10 07:09:29 JakeWharton: i see. is it wrong to use java jars like jersey? Mar 10 07:09:57 flaccid: no. i just think jersey's client is gross Mar 10 07:10:09 okay thank you JakeWharton Mar 10 07:10:43 what if you symlinked subfolders in res/layout to res/layout? Mar 10 07:11:17 morning :) is there a way to determine the lowest targetSdkVersion the current project code could address? Mar 10 07:11:43 McGo: no. targetSdkVersion affects runtime behavior. you can't know how the code will deal with that Mar 10 07:11:56 if you mean minsdkversion then its not that hard Mar 10 07:12:17 JakeWharton: so basically just do this http://square.github.io/retrofit/ right? Mar 10 07:12:25 flaccid: that is what I use, yes Mar 10 07:12:39 it certainly isn't the only solution Mar 10 07:12:55 * desmin88 but its the best Mar 10 07:12:59 :p Mar 10 07:14:08 desmin88: sure i ment that :D Mar 10 07:14:27 whats your current minsdk Mar 10 07:14:59 17 Mar 10 07:15:20 why did you pick 17 Mar 10 07:15:35 good question. next one ;) Mar 10 07:15:43 JakeWharton: retrofit is interesting. i just found doing jersey was pretty easy last project, https://github.com/flaccid/com.rightscale.api.client/blob/master/src/com/rightscale/api/client/RightScaleAPIClient.java Mar 10 07:15:47 change it to 16 and run lint Mar 10 07:15:47 no really: I had a testing device running with 4.2 Mar 10 07:15:57 was just gonna say that JakeWharton Mar 10 07:16:06 you can increment down and run lint/see if your ide gets mad at you Mar 10 07:16:07 that easy? Mar 10 07:16:15 Sorry for asking ;) Mar 10 07:16:53 dont go lower than 14 :) Mar 10 07:22:21 JakeWharton: I know that target sdk affects runtime and does certain optimizations etc etc, but are there any examples of those i.e what exactly happens? Mar 10 07:22:57 targetSdkVersion 14 or higher enables hardware rendering by default, for example Mar 10 07:23:24 you can find a list of what changing the targetSdkVersion affects on the API summary Mar 10 07:23:57 sweet Mar 10 07:23:58 thanks Mar 10 07:25:34 e.g., http://developer.android.com/about/versions/android-4.4.html#Behaviors Mar 10 07:26:13 ok, I will start with 14 than. Mar 10 08:00:20 LoneSoldier728 find them yet ? Mar 10 08:00:28 yeah thanks a bunch Mar 10 08:00:51 retos' devbytes ? Mar 10 08:00:55 ok guys, next question. What is best practise for this scenario. I have a Class Call it "Queue" and another Class "Queueitem". The Class Queue has a variable of type List and a method getNextItem(Queueitem item) that has to return the next item based on the given one. Mar 10 08:01:07 yep Mar 10 08:01:11 it is a good post Mar 10 08:01:26 is there some kind of standard in java for dealing with that? Mar 10 08:01:27 this guy http://chimera.labs.oreilly.com/books/1230000000545 Mar 10 08:01:27 got to watch the videos but it gave me a good idea the readings for now Mar 10 08:01:42 i think he did the i/o talk in 2013 Mar 10 08:01:47 maybe it wasn't android specific Mar 10 08:01:56 or do i have to iterate through the list and check if the current is the given item and return the next one then? Mar 10 08:02:12 feels.. by hand ;) Mar 10 08:02:18 gah damn it, here it is Mar 10 08:02:20 https://developers.google.com/events/io/sessions/327864330 Mar 10 08:03:01 anyone here work with mongodb? Mar 10 08:03:23 LoneSoldier728 thats that scalable thing that doesn't scale, right? Mar 10 08:03:35 lol what do you mean doesnt scale? Mar 10 08:03:40 hehe Mar 10 08:03:50 why do you say that... I know I saw people writing against it here and there Mar 10 08:04:02 maybe its gotten better, its been know to be pretty wimpy Mar 10 08:04:33 i haven't used it. i still haven't used any nosql product Mar 10 08:04:39 i'm behind man Mar 10 08:05:24 LoneSoldier728: worked with it a bit from php / node but I'm not that deep into it Mar 10 08:06:35 yeah working with it with nodejs... and actually using a database design for recent activities... just trying to figure out how to specify the collection... http://pastebin.com/cjc5YbKR Mar 10 08:07:17 It was on one of their blogs I use mongoose (nodejs) if you are familiar McGo and I am just trying to make sense how I name the collections in mongoose? Mar 10 08:08:07 wait let my checkout my proj, can't remember without havin a look Mar 10 08:09:14 ok Mar 10 08:09:52 LoneSoldier728: Isn't it that you simply define the Schema in mongoose and it will create and name the collection for you? Mar 10 08:11:11 yeah Mar 10 08:11:22 but i am confused about shardCollection Mar 10 08:11:39 afaik mongoose does not support that. Mar 10 08:12:30 yeah it looks confusing, what do I have to do with mongoose Mar 10 08:12:45 like what is shard key Mar 10 08:13:15 shard key, sounds like an item for Dota 2 Mar 10 08:13:22 lol Mar 10 08:13:37 from http://mongoosejs.com/docs/guide.html The shardKey option is used when we have a sharded MongoDB architecture. Each sharded collection is given a shard key which must be present in all insert/update operations. We just need to set this schema option to the same shard key and we’ll be all set. Note that Mongoose does not send the shardcollection command for you. You must configure your shards yourself. Mar 10 08:13:47 sound like custom bild foreign key stuff Mar 10 08:14:11 I never used that. Mar 10 08:14:37 basically i came to the point where a relational db better fitted my needs. Mar 10 08:14:40 but they are saying you have to present the shard key... how do I get that, and is it the same always.. I was under the impression that shards make separate little collections? Mar 10 08:15:02 i might just use native mongodb for this then Mar 10 08:15:28 idk i prefered the nosql take on things Mar 10 08:15:42 :) like reading my thoughts from that project in those days Mar 10 08:15:50 LoneSoldier728 why did you choose mongo over sql db like postgresql Mar 10 08:16:32 that sounds good and i like the (proclaimed) scalability but.. you know.. I never needed that... Mar 10 08:16:36 i was actually thinking of using postgresql but then just liked using mongo and i have used sqlite so not a fan of choosing columns strictly Mar 10 08:16:57 realized the project with mysql/drupal and it is running perfectly. Mar 10 08:16:59 it is easier to use, no injection issues Mar 10 08:17:38 i may use cassandra for some time series stuff Mar 10 08:18:16 but almost always, relational wins ;) Mar 10 08:18:31 ok, graph dbs, like neo Mar 10 08:19:34 also, postgresql has json functions, not sure if you saw that Mar 10 08:19:41 and a json type Mar 10 08:21:18 g00s: uh i didn't know that… Mar 10 08:21:36 -o+e Mar 10 08:32:44 Hi folks. Anyone with a working logback-android setup? Tried everything from the git page and nothing is getting logged. Everything compiling fine, log back.xml in the assets directory. Mar 10 08:33:56 one of my testers is running 4.1.2 jellybean on a droid razr maxx hd and they're just getting a blank screen - eclipse log is showing errors regarding precision identifiers in the shaders http://pastebin.com/QKUBqjfU Mar 10 08:34:35 runs fine on my testing devices, shaders are really basic - anything stand out that might be causing that precision problem? Mar 10 08:36:17 rgr i looked at that a while back, but never used it Mar 10 08:37:51 rgr was there a specific appender you needed ? like tossing logs over the network ? Mar 10 08:38:25 no. as simpel as logcat for now. Using the maven dependencies the docs suggest I end up with : Mar 10 08:39:16 http://i.imgur.com/7Od0efK.jpg Mar 10 08:39:19 awful mess. Mar 10 08:39:42 and this with a basic hello world app and the simplest logback.xml possible. Mar 10 08:41:20 i nominate that error message as best dissertation ever Mar 10 08:42:17 rgr, I have seen that before. Mar 10 08:42:18 i've seen that error before, i think it's caused by a weird maven module import Mar 10 08:42:24 http://stackoverflow.com/questions/17740909/android-studio-pre-dexing-fails/17833629 Mar 10 08:42:41 Solution is to use JarJar to change the package names in the library JAR Mar 10 08:42:41 but I have no idea what it means to change the scope to provided : scope of what? Mar 10 08:42:45 do people use some sort of analytics lib or Google Analytics or best to just create your own? Mar 10 08:43:11 by own meaning to store a count for each time a user visits a page Mar 10 08:43:13 (this is intellij btw but close enough I guess) Mar 10 08:43:14 rgr i thought logback-android was supposed to work out of the box ;) Mar 10 08:43:24 or screen I should say Mar 10 08:43:26 try just grabbing the jar file and seeing if that works Mar 10 08:43:33 it does if I dont include classic .. well it compiles but I get no output. Mar 10 08:43:58 rgr: file -> project structure Mar 10 08:44:08 yeah i wish logcat had hierarchical loggers Mar 10 08:44:19 select modules on the left side, then find the module which is importing the library Mar 10 08:44:33 select the dependencies tab on the right hand side of the screen Mar 10 08:44:47 https://developers.google.com/analytics/devguides/collection/android/ anyone have experience with that Mar 10 08:44:48 you'll see a column named 'scope' Mar 10 08:46:00 change that to 'provided' for the xpp3 library Mar 10 08:46:08 pduin: thanks. I'll look. As a seasoned programmer for many many years the one issue I have with Java and the IDEs is that everything is just, well, so HUGE.... ;) Mar 10 08:46:39 true, the smallest things can be overwhelming :) Mar 10 08:46:55 heh. and then some ;) Thank god for intellij is all I can say! Mar 10 08:47:17 or jetbrains, they wrote it :P Mar 10 08:47:31 Amen to that. Intellij has saved me a lot of time Mar 10 08:47:47 indeed! What I really like about it is it has teh features you "need" as you progress... little fluff. Written by programmers who value their speed of navigation. Mar 10 08:48:09 Being a hardcore emacs user thats some vote from me ;) Mar 10 08:48:38 where is emacs 24.4 :D Mar 10 08:49:45 pduin: yeah I cant use your method since nothing is in the modules since its maven installed. Or? xpp is in the libraries section. Mar 10 08:50:27 rgr does it build from the command line ? Mar 10 08:50:56 not as if the intellij maven plugin doesn't have bugs ;) Mar 10 08:51:21 not as many bugs as your AS, kiddo Mar 10 08:51:33 bwahaha Mar 10 08:52:15 if emacs was great at java i'd just use that + gradle; somehow kjeldahl and another here mange it though Mar 10 08:52:22 *manage Mar 10 08:52:32 That method should just work with maven libs as well: I'm talking about this screen: http://i.stack.imgur.com/GrYcV.png Mar 10 08:52:59 You can change the scope of the library by clicking its cell in the scole column Mar 10 08:53:24 g00s: bought appcode today Mar 10 08:53:24 (not my image btw) Mar 10 08:53:50 bankai_ you need at job at intellij :) Mar 10 08:54:13 jetbrains, i guess Mar 10 08:54:28 pduin: aha. ok. brb. Mar 10 08:55:10 haha i reckon :) Mar 10 08:55:19 Emacs and gradle works great! The trouble is most java programmers are used to so much hand holding they are unable to manage without IDEs. In the java world, automagic package imports is probably one of them. Mar 10 08:55:39 and auto code generation Mar 10 08:55:41 Ubnfortunately emacs and java doesnt. Mar 10 08:55:55 oh the usual "sheople" argument. Mar 10 08:55:59 you can always implement those ;) Mar 10 08:56:03 Managing library references is probably better done through managing the build.gradle file than the IDEs "project managers". Mar 10 08:56:17 how about maven ;) Mar 10 08:56:50 yeah, i like just editing the gradle file … but i neeeed auto imports! Mar 10 08:56:59 you do realise the project managers are migrating to gradle o rmaven dont you? Emacs is unusable for Java IMO. no context API help (cedet sucks). No refactoring that works. Generics dont work. I could go on. Mar 10 08:57:05 gordon_: If you like working with xml files, maven is probably ok. There's much to hate about gradle, but it's a lot more readable and flexible than the xml files maven offer. Mar 10 08:57:12 pduin: thats it thanks! Mar 10 08:57:41 I'm wondering where to add the listener for a grid view.. Mar 10 08:57:42 kjeldahl: and it's more stable and mature ? Mar 10 08:57:45 rgr: What are you on about? Emacs works great with gradle. https://github.com/mariusk/android-with-emacs Mar 10 08:57:49 one mxl file... Mar 10 08:57:54 c'mon Mar 10 08:57:54 sure thing Mar 10 08:58:23 you have to have a cellsAdapter, and then you create a grid view object in the activity where you want that grid view to appear, feeding the cellsAdapter to gridview.setAdapter(cellsAdapter) Mar 10 08:58:29 maven also enforces certain model, or you end up writing maven plugins Mar 10 08:58:32 gordon_: For Android development? Probably, considering Google is pushing it. Android Studio is something else though. Mar 10 08:58:47 so here you can either add the listener inside the getView implementation of the CellsAdapter, or you can add it to grid view.setOnItemCLickListener Mar 10 08:58:50 which one is it? Mar 10 08:59:03 kjeldahl: I'm not saying gradle is bad Mar 10 08:59:06 I like it more Mar 10 08:59:10 but it is not mature yet Mar 10 08:59:13 same for android and java Mar 10 08:59:22 YOU're not mature yet Mar 10 08:59:23 okay? Mar 10 08:59:26 okay Mar 10 08:59:29 99% of the bitching about Android development is probably about the IDEs, not gradle itself (except it's hard to understand for many java devs; people who grew up with Makefiles do not seem to have that problem though). Mar 10 09:00:14 back in the day, we just did javac *.java man Mar 10 09:00:33 I've released and maintained an Android app in the Play Store since last summer using Emacs and Gradle. I've had zero problems with upgrades (to gradle and the Android bulid process) in the meantime. Mar 10 09:00:48 haha Mar 10 09:00:53 javac *.java Mar 10 09:01:04 it's not ancient history to do that Mar 10 09:01:08 I'm sure everyone still does it Mar 10 09:01:20 :D Mar 10 09:01:26 The modern day equivalent is "rebuild all". ;-) Mar 10 09:01:40 one of our senior unix admin still doesn't know what "make" does :/ Mar 10 09:01:48 Which is needed considering how java handles constants inlining. Mar 10 09:01:48 kjeldahl: you must be kidding... Mar 10 09:02:15 i only use gradle to compile at work .. at home and on all other projects i use sbt Mar 10 09:02:16 intellij is really great in java world Mar 10 09:02:16 :) Mar 10 09:02:24 yea AS is awesome so far Mar 10 09:02:40 lemonxah: is scala compiler fast yet ? Mar 10 09:02:56 gordon_: I'm not. Just remember AS is _not_ gradle, and a lot of the problems seem to be about AS/gradle integration. Mar 10 09:02:59 its got incremental builds Mar 10 09:03:04 so its fast enough Mar 10 09:03:19 a full rebuild with proguard on my app takes 23 seconds Mar 10 09:03:22 round 23 seconds Mar 10 09:03:27 so its not horrid Mar 10 09:04:19 lemonxah did you try pfn 's scala plugin? Mar 10 09:04:27 that is the one i use yes Mar 10 09:04:30 a few people are using that Mar 10 09:04:44 more people should use it Mar 10 09:04:48 moar!! Mar 10 09:04:55 i think Nilium uses it oo Mar 10 09:05:05 if you doing android dev why not do it in scala? Mar 10 09:05:11 there is no reason not to Mar 10 09:05:21 Correct. Mar 10 09:05:46 there is a new gradle scala-android plugin which i have tried .. but Mar 10 09:05:58 gralde + scala + android doesn't work that well Mar 10 09:05:59 There's one pretty good reason not to - you have to rely on pfn for your build tools ;d Mar 10 09:06:15 SimonVT does have a point ;) Mar 10 09:06:40 lemonxah: That plugin probably will work fine with gradle eventually, considering scala supports "joint compilation" AFAIK, just like groovy does. Mar 10 09:07:01 yeah i know it compiled fine and even ran proguard fine Mar 10 09:07:04 but its still slow Mar 10 09:07:09 2m for a build Mar 10 09:07:13 sbt is faster Mar 10 09:07:29 2m is unbearable Mar 10 09:07:44 pfn's build tools are opensource so you can fix it if you need to or ask him Mar 10 09:07:46 Yeah, I agree. But you did try the gradle --daemon mode as well right? Mar 10 09:07:57 yes kjeldahl Mar 10 09:08:00 still slow Mar 10 09:08:22 i like when google maintains and fixes my build system :) Mar 10 09:08:31 Weird, I'm getting build times counting one or two digit seconds when using that. Mar 10 09:08:38 for their system :D Mar 10 09:08:46 kjeldahl, how big is your project? Mar 10 09:08:55 g00s, i dont trust google :) Mar 10 09:09:05 closed source is evil Mar 10 09:09:18 lemonxah true, to a certain degree i don't either :D … the gradle stuff is in aosp Mar 10 09:09:50 oh, you probably meant in general Mar 10 09:10:01 also trusting google to make build tools for scala .. not so much Mar 10 09:10:03 lemonxah: Not much, 7k, not counting source from external libs I use. Mar 10 09:10:25 7k lines Mar 10 09:10:27 lemonxah: you can integrate practically any java build tool in gradle Mar 10 09:10:29 kjeldahl, let me tell you how long it takes on my work project Mar 10 09:11:03 p_l, yes i know and someone wrote an android scala plugin recently that works okish but its not as good as the sbt Mar 10 09:11:10 lemonxah: How are you running gradle? Through an IDE or cmdline(-equivalent)? Mar 10 09:11:21 cmdline Mar 10 09:11:22 dont run proguard then ? Mar 10 09:11:34 proguard only runs on release builds Mar 10 09:11:38 kjeldahl: i know it's not AS, every java dev knows it... Mar 10 09:11:38 Yeah, keep proguard out of it.. Mar 10 09:11:45 since they use maven from... ages Mar 10 09:12:01 but for scala projects you need proguard to get the scala types in Mar 10 09:12:20 lemonxah_: No, proguard only takes things out. Mar 10 09:15:40 lemonxah: no you dont need to Mar 10 09:15:42 if rooter Mar 10 09:15:44 *rooted Mar 10 09:15:47 AFAIK Mar 10 09:15:59 rooted? Mar 10 09:16:09 Now I'm lost. Mar 10 09:16:43 Don't you just need proguard with scala cus the scala library is large? Mar 10 09:16:52 kjeldahl, doing a clean build takes 40.7 seconds with --daemon Mar 10 09:17:05 and a subsequent build 21.343 Mar 10 09:17:17 we have 179K lines of code Mar 10 09:17:32 and that exclused the xml files Mar 10 09:17:50 lemonxah: That sounds unlikely. Deleting a bunch of files takes longer time than building a whole project? Mar 10 09:17:51 lemonxah: yep, scala.jar is too big Mar 10 09:18:03 yes gordon Mar 10 09:19:18 no the first time it compiles everything Mar 10 09:19:29 the second time it doesn't bother with some stuff cause it is "up-to-date" Mar 10 09:19:34 so no its not unlikely Mar 10 09:19:51 also we have a magnitute more lines of code than 7k Mar 10 09:21:06 I suppose the upside is that Scala 2.11 does trim down scala's stdlib a tiny bit Mar 10 09:21:07 By pulling the XML stuff out of it Mar 10 09:21:38 yes but 2.11 isn't out yet?!? haven't checked recently(last month or so) Mar 10 09:22:11 RC1 is out. Mar 10 09:22:25 the initial build took 40 seconds cause it started up the daemon .. subsequent builds ran at 20 seconds Mar 10 09:22:36 a clean assembleDebug after the fact then took 24 seconds Mar 10 09:22:53 lemonxah: Ah, misunderstood what your clean build was. I get it now. If most of that time is dexing or similar, I can't imagine it being significantly faster in other build tools, but that's speculation on my part. Mar 10 09:23:34 testing on sbt was 167seconds Mar 10 09:23:36 lemonxah: Make sure you have a daemon running before trying to build, that's part of the speedup... Mar 10 09:23:37 testing on sbt was 17 seconds Mar 10 09:23:38 ** Mar 10 09:23:49 but 3 seconds on 20 seconds not that big of a deal Mar 10 09:24:03 kjeldahl, AS manages the daemon for you Mar 10 09:24:06 Yeah, sounds reasonable, as _most_ of that time is probably dexing. Mar 10 09:24:12 I'm mostly of the opinion that Scala makes Android dev more pleasant but that using some of Scala's better features also results in triggering the GC on lots of small things and otherwise a lot of method invocations that could be avoided. Mar 10 09:24:14 so its always 24 second builds Mar 10 09:24:24 So you have to be slightly careful with it where it warrants being careful, but otherwise it's an improvement. Mar 10 09:25:07 agreed Nilium places to be a bit conservative is in adapters for listviewz Mar 10 09:25:18 lemonxah: Suuuuure! But when you benchmark, make sure you have control of all factors. Mar 10 09:25:56 Definitely, though that's really going to be true of adapters in Java too Mar 10 09:25:56 You can't screw around too much with those Mar 10 09:27:36 I have now found my favorite bitcoin-related venn diagram. Mar 10 09:29:52 Nilium: ? Mar 10 09:30:25 Was just reading buttcoin.org. The suffering of bitcoin users brings me joy, so I occasionally find things like that. Mar 10 09:49:47 hmm, so android will show a bluetooth pairing dialog, if you attempt to open a socket to an unpaired device. thats pretty cool, the socket connect just blocks until thats done …. but if the user screws up the pin, how the hell do i know the root cause of the failed connection attempt Mar 10 09:50:28 i dont think there is any feedback from android on whether the user was successful at pairing or not Mar 10 09:52:09 i guess i'll disable auto-retry in that case Mar 10 10:05:24 so I have a activity that I want to add a navigation drawer to, and this activity has a layout of course. http://developer.android.com/training/implementing-navigation/nav-drawer.html that example explains the layout for the drawer in a way that uses a frame layout as thhe main content view Mar 10 10:05:59 I have a different layout for this activity, do I grab that whole layout and place it between DrawerLayout and the ListView? Mar 10 10:06:12 Sicp for giggles, you may ask AS to make a template for you, quiet a bit involved :| even just for study Mar 10 10:06:23 *quite Mar 10 10:06:44 otoh, the template might make your eye bleed ;) Mar 10 10:12:36 Hey guys, so I have a major issue. My getView in my adapter keeps getting called, but I don't know why. The only idea I have it that I have a customView in my listView that is a reverseChrono. I believe it might be triggering it to do getView constantly. any ideas? Mar 10 10:22:11 Making an app that takes a photo when the user is active, so using broadcast reciever, does this need to be inside the service running of the app?? or does this need to activate the bg service? Mar 10 10:25:10 i like this 'file transfer by DNS' trick ! Mar 10 10:33:06 g00s: Yes, set up your own dns server with a "dns proxy" and you have free wifi EVERYWHERE you go (where there are paid access points). Mar 10 10:34:55 :) Mar 10 10:35:30 i wonder how slow it is Mar 10 10:36:58 FTDNS (File Transfer via DNS) XD Mar 10 10:38:42 It's pretty slow, see connection speed comment on this article. http://analogbit.com/tcp-over-dns_howto Mar 10 10:45:49 Making an app that takes a photo when the user is active, so using broadcast reciever, does this need to be inside the service running of the app?? or does this need to activate the bg service? Mar 10 10:57:42 Making an app that takes a photo when the user is active, so using broadcast reciever, does this need to be inside the service running of the app?? or does this need to activate the bg service? Mar 10 11:41:29 Running Lint in Android-Studio - not listing any unused PNG resources Mar 10 11:41:57 but it lists other xml drawables. Any idea? Mar 10 11:52:32 hello guys, I'm working with SmsManager right now I can monitor sms status with PendingIntent and I am curious how it works Mar 10 12:03:54 Dudi: the system detects the response from the cell carrier and broadcasts an intent with the results Mar 10 12:04:01 any specific question? Mar 10 12:05:27 thepoosh, since I have turn off sms delivery report, it get response from first BTS that get sms and send it or operator notify him? Mar 10 12:06:09 you always get the delivery response from carrier, you disabled the actual report to user Mar 10 12:06:13 in your mms app Mar 10 12:06:42 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/4.4.2_r1/com/android/mms/MmsApp.java/ Mar 10 12:07:19 thepoosh thanks :) Mar 10 12:09:11 Dudi: pleasure, if you need more help, I wrote an sms dispatcher in our app Mar 10 12:33:23 Making an app that takes a photo when the user is active, so using broadcast reciever, does this need to be inside the service running of the app?? or does this need to activate the bg service? Mar 10 12:39:38 what can be the cause for a single android app always running into ETIMEDOUT error in new Socket(...) some time after it was started, while other apps have internet connectivity without trouble... Mar 10 12:50:47 I have a question about activities. If I have a static reference to an activity, and it gets destroyed by the activity manager. Does the static reference start pointing at null? Or does it just start producing undefined behaviour? Mar 10 12:54:58 It's just activity manager calling onDestroy on a class and de-referencing it.. There's no special behavior going on Mar 10 12:58:26 And don't keep static references to activities Mar 10 13:00:28 hello. I am just wondering if any kind and/or brave souls would care to take a peek at the thread I have created. I am attempting to create some basic game logic but I am having troubles trying to setup a thread. No errors, it simply doesn't respond. I am assuming there is a logical issue tha tI don't see: http://pastie.org/8903374 Mar 10 13:00:59 I can provide more info if you like bu tI am fairly certain the issue in in here Mar 10 13:02:57 Does the broadcast receiver need ACTION_SCREEN_ON need to be within a service? or can this just be in an application activity within the stack? which can then trigger a service to run? Mar 10 13:14:21 Someone know a good (and free or mostly) solution to turn a cellphone into a kiosk (only one app running) ? Mar 10 13:14:59 what for? Mar 10 13:15:18 If you just want it tied down so it can't be abused - recent android supports multiple users Mar 10 13:15:20 err Mar 10 13:15:27 actually - no - that's tablet only isn't it Mar 10 13:15:28 One of my customer bought cellphones to use as mini tablets Mar 10 13:15:35 cellphones != users Mar 10 13:15:50 And he want to run my app on it but block everything else Mar 10 13:16:22 I forget how it works, but I know there is a way to have 'corporate' device accounts that have a limited set of apps available. Mar 10 13:16:47 Or do you mean you don't want even the 'normal' installed apps available, and just the single app? Mar 10 13:16:51 https://play.google.com/store/apps/details?id=com.gears42.surelock ? Mar 10 13:17:05 surelock costs a little bit too much when you have > 20 devices Mar 10 13:17:10 but it is very good :) Mar 10 13:17:18 I see. Mar 10 13:17:41 I _think_ the only way to do that is to create a custom ROM Mar 10 13:17:42 I was thinking about creating a custom rom with no apps on it Mar 10 13:17:44 but - maybe I'm wrong Mar 10 13:17:50 given the above Mar 10 13:17:56 and maybe using a third-parry to lock access to settings Mar 10 13:18:10 custom rom might become a maintenance hell. Mar 10 13:18:18 yeah Mar 10 13:18:21 what if device needs to be replaced and can't be bought from anywhere Mar 10 13:18:43 There is a way to uninstall apps with adb? Mar 10 13:18:51 sure. Mar 10 13:18:58 but only if they're not factory apps Mar 10 13:19:00 I could create a script that remove all apps from devices Mar 10 13:19:21 Things like browser and camera will still be there? Mar 10 13:19:37 in 4.3 you can turn off apps. Mar 10 13:19:51 hokkaido: how? Mar 10 13:20:01 I use moto g devices , they are running kitkat Mar 10 13:20:04 application manager -> select app -> Turn off Mar 10 13:20:16 hehe there is a way to do this with adb ? :) Mar 10 13:20:36 probably yes via shell. Mar 10 13:20:48 but I don't know which command will do that. Mar 10 13:21:26 actually, I am not sure can you disable apps without root access from shell. Mar 10 13:22:27 I could root the devices and manually rm the apk of system apps I dont want with shell … ? Mar 10 13:22:29 I'd probably first tried android's user managements. to see is it possible to make a "children's" account with reduced right. Mar 10 13:22:38 and then start to turning off application. Mar 10 13:22:50 there is no user management on android cellphones, only tablets Mar 10 13:22:54 on the otherhand, if time is money, then I'd buy surelock or something similar. Mar 10 13:24:03 cobolfoo: have to say, that you have my favorite kind of project in hands. customer buys and commits to something without knowing anything about the device's possibilities. and then it is up to you to do the impossible. Mar 10 13:24:06 congratulation. Mar 10 13:24:08 +zsa Mar 10 13:24:43 this is not always the case? :) Mar 10 13:24:51 :D Mar 10 13:24:51 I never had a project that was not like that Mar 10 13:25:31 I also have to do this on Samsung galaxy tab 3 Mar 10 13:25:42 It look like the tablet is limited to Android 4.1 Mar 10 13:26:09 (no user settings) Mar 10 13:29:50 Can i use ACTION_SCREEN_ON in a app in the stack, which will then trigger a bg service to run, or do i need to constantly be running a bg srvice?? Mar 10 13:31:20 Morning Mar 10 13:31:41 afternoon Mar 10 13:47:46 yo, can ACTION_SCREEN_ON be used without running in a bg service? Mar 10 13:50:27 amazwon, activities are paused when they're not shown, so what are you trying to achieve Mar 10 13:50:48 Oh. Read up. Mar 10 13:52:07 I think you can use a broadcast receiver Mar 10 13:52:34 The last thing you should ever do is run a service all the time Mar 10 13:53:03 I personally uninstall apps that do that Mar 10 13:53:37 Seriously, we have broadcast receivers and GCM that'll do what they're doing 95% of the time Mar 10 13:54:44 Can I create an image from a running device so that i can use it with AndroidKitchen? Mar 10 14:01:49 amazwon, broadcast receivers are separate from services Mar 10 14:01:54 you don't have to start them. Mar 10 14:02:33 SimonVT: How would I go about telling an activity what to do without having some sort of reference to it? Intents seem limited, or am I missing something? Mar 10 14:03:11 running Lint on Android Studio not listing unused PNG resources. Is this a known issue? Mar 10 14:04:47 bacon1989, intent extras Mar 10 14:09:06 What tools make it the easiest to analyse the contents of an apk? e.g I have one that was failing here because I had erroneously told the build process that classes it needed were not to be compuled in since they were on the android device (they weren't obviously resulting in a class not found crash on the device when I launched the app). Mar 10 14:10:47 They're zip files Mar 10 14:14:00 rgr: you can unzip it; it's basically a jar with some other stuff on it Mar 10 14:19:28 frankdrey: ah thanks, you got me on the right track Mar 10 14:21:20 dragorn: sure, but that isnt an analysis of it. ie what it expects to be "on phone" etc or? Mar 10 14:21:27 why, oh why did google break the text reflow in the kitkat browser/webview? :( Mar 10 14:28:33 so basically, i want a service to start when a user is present Mar 10 14:28:55 so i can just use action screen on, or action user present, then use this to activate a service? Mar 10 14:34:20 With my camera app that takes photos in the background (ethical Study) my app, so basically, i want a service to start when a user is present, so i can just use action screen on, or action user present, then use this to activate a service? Mar 10 14:34:57 SimonVT, g00s, you make it out as if I'm supporting the entirety of the build system, but google "supports" the sbt plugin in that they publish the com.android.tools.build:builder library Mar 10 14:35:07 which my sbt plugin uses Mar 10 14:35:27 all the plugin code is taking said library andmaking it work well with scala and sbt Mar 10 14:36:40 amazwon: run the service all the time, set a variable in it based on when the screen is on Mar 10 14:38:57 * frankdrey cringes Mar 10 14:39:54 I have to do some sort of view with 2 textview, how can I do that in order to have some visualizable list of those groups of 2 textview? Mar 10 14:40:34 like some listview with children a list of (textview textview) Mar 10 14:40:42 listview with a custom layout? Mar 10 14:41:02 dragorn: will this not run the battery too fast? Mar 10 14:41:19 hi, anyone help me to create random question answer app quiz on eclipse/ Mar 10 14:41:20 snizzo, you just return your double-textview in your adapter Mar 10 14:41:22 amazwon: if your service is doing nothing it hsould have little to no impact Mar 10 14:41:29 creatorb1, eclipse has nothing to do with it Mar 10 14:42:15 amazwon: your service should be triggered by bcast receivers (screen on, etc) and timered runnables handler.postDelayed(...) Mar 10 14:42:29 it will impact ram Mar 10 14:42:32 amazwon: when the screen isn't on, stop posting the runnable event Mar 10 14:42:58 frankdrey: Minimally, yes. It will be more efficient to stay running and let the system kill you if it wants than to constantly spin up/down. Mar 10 14:44:43 meh... Mar 10 14:46:22 frankdrey: ok. I tried creating a custom layout. I read that I can only use GroupView to contain 2 textview Mar 10 14:47:41 snizzo, what kind of adapter are you using? Mar 10 14:49:31 pfn: you mean doing simply a listview of textview? Mar 10 14:49:35 iv been trying for days, i have a service running, is it pretty simple just to add in? when i have im not sure if it is received or not Mar 10 14:49:41 kjeldahl, as for joint compilation, for that to work properly, you'd have to disable the java compiling part of the gradle build Mar 10 14:51:32 pfn so what should i do bro? Mar 10 14:53:51 pfn: sorry disc, I missed your reply I think Mar 10 15:11:11 Using intellij I use a pom.xml to descrobe maven dependencies. But I'm a little confused as to what drives the rest of the build process. Can I or should I do something so that gradle is taking care of it? I'm wondering if I'm currently in some sort of mongrel build setup and should better clean it up and understand it better before continuing my java/android odyssey. Mar 10 15:12:43 uh Mar 10 15:12:44 well, first of all Mar 10 15:12:44 decide if you use Gradle or Maven :) Mar 10 15:12:45 when using Maven, IntelliJ reads the pom.xml file and configures it's own internal builder to work with it Mar 10 15:15:00 yes, hard things to decide when you dont know which is the way forward. Reading between the line gradle is the new top of the class. But using gradle doesnt mean you're not using maven - maven is still used but managed by gradle from my reading of it. Mar 10 15:16:06 no. Mar 10 15:16:10 Gradle takes over whole process Mar 10 15:16:11 onl Mar 10 15:16:21 only Maven library repository may be used to get dependencies from Mar 10 15:16:32 but gradle still needs maven is my point. or? Mar 10 15:16:36 no,. Mar 10 15:17:00 well it does if the things I need are in maven repos? Mar 10 15:17:06 (obviously) Mar 10 15:17:33 I found a good stack exchange on this subject, I'll try and digest that. cheers. Mar 10 15:17:57 rgr, it doesn't need maven locally. It understands the structure of remore maven repositories Mar 10 15:20:50 rgr, it just uses the same web page to download libraries from as maven Mar 10 15:20:52 nothing else. Mar 10 15:21:58 dont you ever develop offline out of curiosity? Mar 10 15:22:22 I found a good howto anyways. Mar 10 15:27:42 rgr, it works quite well to develop offline. Mar 10 15:27:48 Once downloaded, the deps are stored locally Mar 10 15:27:57 atm my images in my app save to getEnternalStoragePublicDirectory, what would be the phones internal storage? Mar 10 15:28:00 and if you don't change the versions, you don't have to download them on each build Mar 10 15:28:22 amazwon: You don't want to save images to internal storage. Mar 10 15:28:40 amazwon: Phones whose internal storage is large enough to accomodate things like that expose their internal storage as external storage. Mar 10 15:28:54 amazwon: ie, the galaxy s3 has 16GB of "internal" storage, exposed as /sdcard. Mar 10 15:29:20 well my phone has no sd card slot? Mar 10 15:30:31 it's still called "sdcard" by Android Mar 10 15:30:40 oh, i see Mar 10 15:32:59 ls -la Mar 10 15:33:03 oh Mar 10 15:33:15 ignore that Mar 10 15:33:28 rgr, I don't use Gradle Mar 10 15:33:34 rgr, and Maven caches all depdendencies locallt Mar 10 15:33:36 *locally Mar 10 15:34:13 gradle uses maven repositories, not maven Mar 10 15:35:30 how easy is it to have a collaborative projet set up where one dev is on eclipse and one is using android studio? Mar 10 15:35:39 any problems with that? Mar 10 15:35:57 Charl1e: None. Mar 10 15:36:06 kind of a pain Mar 10 15:36:19 just don't use the src/main crap and it's mostly easy Mar 10 15:36:25 cool Mar 10 15:36:31 yeah we're not using gradle or maven either Mar 10 15:36:32 Charl1e: You build using gradle or maven, you source control using git or mercurial, and you don't use the IDE to build. Mar 10 15:36:38 Charl1e: You should be. Mar 10 15:36:43 I know we should be Mar 10 15:36:52 But I haven't set this company up ;) Mar 10 15:36:55 Charl1e, make sure the eclipse loser turns his tabs into spaces Mar 10 15:37:08 using android studio is basically using gradle Mar 10 15:37:10 Basically everyone uses eclipse Mar 10 15:37:15 but I want to use Android studio :P Mar 10 15:37:29 I just nix the use of eclipse altogether Mar 10 15:37:39 other than that the biggest problem I've found is that if the eclipse user sucks, you'll end up fixing their bugs because otherwise the classes don't show as green in IDEA ;) Mar 10 15:37:44 Charl1e: are you being paid for this work? Mar 10 15:37:46 basically have everyone I'm working with using intellij Mar 10 15:37:51 Leeds: yes Mar 10 15:38:07 Charl1e: then use whatever makes least hassle and work for your colleagues and employer Mar 10 15:38:28 least hassle is to convert them to IDEA ;) Mar 10 15:38:37 xD Mar 10 15:38:43 I refuse to work in an environment where I would be forced to use eclipse Mar 10 15:38:56 Well, I'm not forced exactly Mar 10 15:39:01 It's more of the current norm Mar 10 15:39:05 what's the best way to create a list of elements made by 2 textview? Mar 10 15:39:11 I work for an agency so its all about getting things out quickly Mar 10 15:39:44 I just wanted to know how much impact using Studio would have to other IDEs really Mar 10 15:39:49 snizzo: Make one TextView, then make another. Mar 10 15:40:02 Use a listview Mar 10 15:40:15 freeone3000: and how should I put that in a listview? one after an other? Mar 10 15:40:53 Watch the google io talk on listviews, it tells you how they work and how to use them Mar 10 15:46:42 I just updated AS to 0.5.1 and now it's telling me I have multiple files in the path "Path in archive: lib/armeabi/libfmod.so" Mar 10 15:47:40 It says I can use the line "exclude 'lib/armeabi/libfmod.so'" in my build.gradle to fix it, and then I build again after putting in that line, and it still tells me to put that line in Mar 10 15:48:22 once gradle has done its stuff reading the pom.xml and uses "gradle mechanisms" to convert , is the pom.xml still necessary? Or is the data contained therein migrated off to a gradle config/build file? Mar 10 15:50:43 I would imagine you would probably want to create your own build.gradle file with the same stuff as the pom.xml file then you can get rid of the pom.xml. Otherwise I would imagine you still need it. Not sure though Mar 10 15:51:17 yeah I created a base one. I'll monitor what happens. It's rather airy fairy.... like a lot of build processes ;) cheers. Mar 10 15:54:59 I think the point of the gradle build system is to be compatible with as many preexisting build systems as possible, while maintaining the ability to have one default build structure or a custom one. Being able to keep a pom.xml and build with it seems like a desired compatibility feature of gradle Mar 10 15:55:39 Hi all. n00bie here, with a quick question. Im trying to use the google play API, and am doing the basic tutorial. I should add android:value="@integer/google_play_services_version" /> to my projects Manifest, so it can reference the library, correct? I keep getting this error though: Error: No resource found that matches the given name (at 'value' with value '@integer/google_play_servic Mar 10 15:55:40 es_version'). Mar 10 15:56:16 the library is called google-play-services_lib, but changing the android:value to that doesn't seem to work either. What am i doing wrong? Mar 10 15:58:03 if i use new IntentFilter(Intent.ACTION_SCREEN_ON); in my code, how can i make a toaast underneath to check? Mar 10 16:16:34 Anyone know any signal processing libraries for Java? Mar 10 16:20:33 doesn't google know? Mar 10 16:21:19 not really Mar 10 16:21:32 lots of applets pop up Mar 10 16:28:09 I googled "java signal processing library" and I got a lot Mar 10 16:28:51 Hey I want to use a hamburger menu in my app, I've followed this guide: https://developer.android.com/training/implementing-navigation/nav-drawer.html Mar 10 16:29:15 but it doesn't seem to actually have the hamburger icon in it, is there another guide I should follow? Mar 10 16:30:51 Ankhwatcher: R.drawable.ic_drawer, you mean? Mar 10 16:31:39 freeone3000: I don't know, the 3 lines which animate when you open the drawer Mar 10 16:32:08 Ankhwatcher: Yep, that's the caret icon. In that tutorial, it's R.drawable.ic_drawer Mar 10 16:33:45 oh I see it now Mar 10 16:34:02 so wait does this mean that the drawer is overlayed over the actionbar? Mar 10 16:34:06 Hi, I am looking to create my first hello wold for Android, The main thing I am looking for is a solid learning path with create step by step how to videos, which are not to outdated. any suggestions? Mar 10 16:35:52 frankdrey, the only ones I get to show up are typically considered beta or alpha, and specifically say do not use in a production enviroment, I also get a lot of stack overflow posts that point to said beta and alpha libraries and then state that there really aren't many for java Mar 10 16:36:13 was just wondering if anyone here knew one off hand that they have used in the past (or are currently using) Mar 10 16:36:47 I've also seen quite a few that are just FFT based, but I was looking for IIR based filtering Mar 10 16:37:30 ardor: it's a good question. I went looking for some stuff for some interns that were joining us and didn't really find anything up to date Mar 10 16:38:26 Cyanogenmod7 better or CM9 ? Mar 10 16:38:53 ardor: have you tried the getting started guide? http://developer.android.com/training/index.html Mar 10 16:41:49 what is latest CM7 or CM9 / Mar 10 16:41:50 ? Mar 10 16:42:32 which one is better one here ? http://www.android.gs/update/samsung-galaxy-fit-s5670/ Mar 10 16:42:45 CM9 says android 4.0.3 , CM7 is 4.0.4 Mar 10 16:42:49 which one better ? Mar 10 16:43:41 rooted samsung android phone cant use google play market ? Mar 10 16:44:34 doieo, #cyanogenmod Mar 10 16:45:41 anyone whos good at android programming and experienced, could i please ask for a little help on steps i need to take to make my application? Mar 10 16:47:21 amazwon: don't ask to ask, just ask your question and if anyone can answer it they will. Mar 10 16:47:46 hey all Mar 10 16:48:05 what's the recommended design pattern for filtering a listview? Mar 10 16:48:13 what does android dev do ? Mar 10 16:48:22 doieo, develop apps Mar 10 16:48:24 perhaps an options menu option? or a dialog? Mar 10 16:48:25 how is cyanogenmod related to android ? Mar 10 16:48:37 doieo: cyanogenmod is an aftermarket firmware Mar 10 16:48:52 sht samsung kies always fails to upgrade firmware Mar 10 16:49:07 and puts virus after uninstalling it Mar 10 16:49:58 freeone3000: how are you today Mar 10 16:51:28 doieo: Have you considered that official Samsung updates are not actually viruses? Mar 10 16:52:00 Has anyone had issues with duplicate .so files trying to build with the latest Android Studio update Mar 10 16:54:13 doieo: if you want to talk about cyanogenmod please use one of the CM irc channels: http://wiki.cyanogenmod.org/w/CM_IRC_channels Mar 10 16:59:45 Is there a nice way to revert to an older version of Android Studio without uninstalling and reinstalling Mar 10 16:59:56 pfn: Regarding joint compiling, yes, I know, but that's very easy to do. Mar 10 17:00:56 * pfn shrugs Mar 10 17:01:05 in any case, still no reason to use gradle, except for android studio Mar 10 17:01:51 and using android studio is for noobs, basically Mar 10 17:02:17 ... Mar 10 17:02:18 Well you know my opinion already. Mar 10 17:02:23 Uhm, what? IntelliJ IDEA is the best Java IDE available. Mar 10 17:02:38 Apparently you're a noob if you want to work efficiently ;) Mar 10 17:02:50 using android studio is no more efficient than using intellij Mar 10 17:02:59 period Mar 10 17:03:44 and it's arguably far less efficient if you go by g00s' constant rants about it Mar 10 17:04:09 Never go by anything g00s says Mar 10 17:04:10 pfn: Sounds like you haven't given it a try Mar 10 17:04:43 pfn, pretty much the same thing with different price tag and defaults Mar 10 17:04:44 I haven't, and promptly uninstalled it because it offered nothing over intellij Mar 10 17:04:52 s/haven't/have/ Mar 10 17:04:58 other than when intellij was pre 13 Mar 10 17:05:21 then android studio offered a few things that made it slightly better Mar 10 17:05:33 but pretty much all of that is gone now... Mar 10 17:05:47 when android studio has a built in monitor/ddms, that might make it attractive for a while Mar 10 17:06:46 I wonder, what state is the network in when I see a grey network (cell / wifi) indicator? I really need to query for that. Mar 10 17:07:22 (A grey indicator happens when there is no outgoing IP connection.) Mar 10 17:10:17 stdim: NetworkInfo.getDetailedState() gives up a NetworkInfo.DetailedState.OPTAINING_IPADDR or NetworkInfo.DetailedState.SUSPENDED (though in some cases, it's a CAPTIVE_PORTAL_CHECK, but those aren't strictly the same thing). Mar 10 17:13:09 freeone3000: Let me see.. Mar 10 17:13:14 ok Mar 10 17:13:49 ok, i know iv asked loads before, but i liturally am not getting a single place. For my ethical study i am making an app that takes photos randomly when the screen is turned on. Can someone please help me structure the process as so far all i have is a bg service which is started by a button, and a camera instance on another project that takes a photo by a click Mar 10 17:14:26 freeone3000: Well, no. I currently have the grey indicator and I get a CONNECTED state. :/ Mar 10 17:14:28 I've been lookin at trying to get a Action_screen_on to work, but dont seem to be able to get anything that works Mar 10 17:14:35 stdim: Huh. Try getting your IP. Mar 10 17:14:52 amazwon: Is your BroadcastReciever registered in your AndroidManifest.xml? Mar 10 17:16:18 well Action screen on you register in your java code Mar 10 17:16:49 really i need it broken down into chunks i can tackle step by step, but keep seeming to get it wrong Mar 10 17:17:13 eg, service first, or broadcast first, im lost on what steps to take Mar 10 17:17:19 confusing as Mar 10 17:17:34 amazwon: Register your BroadcastReciever for the global event. Add permissions to actually recieve this broadcast. Trigger an unbound service when broadcast is triggered. Register service. Give permissions for service. Give permissions for camera. Make camera take picture. Mar 10 17:17:38 freeone3000: Got an IP. Two in fact (IPv6 & IPv4)... Mar 10 17:17:41 amazwon: Debuggers are really helpful. Mar 10 17:18:00 stdim: So you do, in fact, have an IP. So what's the issue? InetAddress.isReachable() is returning false? Mar 10 17:19:25 freeone3000, so will the broadcast receiver only work if the application is in the stack right? Mar 10 17:20:03 freeone3000: No I'm not checking for reachable IPs... Should I? Mar 10 17:20:14 stdim: Well, it seems like you care if the IPs are reachable. Mar 10 17:20:34 stdim: You have a stable, active network connection, it just doesn't happen to connect to where you want. Mar 10 17:22:19 freeone3000: Yeah... could be a bug in the phone or something... Mar 10 17:22:39 freeone3000: Well, thanks for your help. I'll see what I can do... :) Mar 10 17:22:43 amazwon: Depends on how you register. Context.registerReciever() is good for the lifetime of the Context (ie, your app), while is good as long as the app is installed. Mar 10 17:24:12 really a broadcast receiver in a new android project should and sounds easy to make Mar 10 17:24:23 i think i got some kinda learning disability, im going mad over it Mar 10 17:25:00 amazwon: onRecieve() has a strict lifecycle, and certain broadcasts (like that one) require a as well as a . Mar 10 17:27:22 I'm wondering if it would be more sane if I did the settings activity manually, other than using the pre-designated system for doing settings in android Mar 10 17:27:41 bacon1989: Probably not, unless you have some weird settings. Mar 10 17:28:19 it just seems like a lot to injest Mar 10 17:41:52 is there anyone have knowledge about VMware? Mar 10 17:42:32 :( Mar 10 17:43:12 :'( Mar 10 17:43:41 pleeeease Mar 10 17:43:41 What are you looking for Mar 10 17:43:50 If I switch to TestNG, can I do Android-related mocking stuff? Mar 10 17:44:02 Install Mac OS Mar 10 17:44:29 TacticalJoke: That's unrelated. Robolectric has some mocking stuff. Mar 10 17:44:47 Wrong channel dude. But here's a free advice; unless you like pain, buy a Mac instead of trying to build a Hackintosh. Mar 10 17:46:07 kjeldahl: It's expensive Mar 10 17:46:26 MalekAlrwily: Only if your time isn't. Mar 10 17:47:13 The reason you aren't finding any easy tutorials online is because it is not easy. Mar 10 17:49:02 Ok Mar 10 17:50:23 and except for hosting a build machine that builds .dylibs for OSX, there's no reason to ever use OSX anyways :) Mar 10 17:53:19 Which unit-testing framework do you guys use for non-Android unit tests? Mar 10 17:53:34 JUnit works. Mar 10 17:53:48 JUnit. But I hear testng is very nice Mar 10 17:53:53 For some reason, I can't use the Hamcrest lessThan() matchers in Eclipse. Mar 10 17:56:28 TacticalJoke: Because you're using your IDE as a test suite, instead of invoking them through your build system. Mar 10 17:58:07 It should work in Eclipse, right? Mar 10 18:02:25 which sensor is magnetic field? Mar 10 18:05:40 votyx: TYPE_MAGNETIC_FIELD Mar 10 18:12:15 hi everyone ! Mar 10 18:13:59 I recently started to work on the robolectric in Android Studio, but AS is not giving any suggestion of methods etc of this framework in my AS. Mar 10 18:14:52 Can anyone help me? I don't know whether I configured it correctly. I am new in Android Studio and robolectric also Mar 10 18:15:13 freeone3000: i meant which hadware sensor does it use? Mar 10 18:15:52 votyx: A magnetic field sensor, such as a magnetometer. Mar 10 18:16:00 Isnt it dangerous to call recycle on a bitmap that is used as background? if i do it before i switch fragment? or wait, i should do it in the onDestroy method of the fragment maybe? Mar 10 18:16:48 votyx: You can make a simple one by running a current through an inductor then measuring the difference between actual and expected voltage. Mar 10 18:22:29 How do I specify a radial gradient that is relative to the drawable's (implicit) size? Mar 10 18:22:42 I tried 1.0, 0.5, 100% ... nothing works ... Mar 10 18:26:29 I'm having a brainfart, I want to ensure one of my activities effectively gets launched as a singleton Mar 10 18:26:49 eg, if I launch it, and then hit home or back, and launch again, its not going to create a new instance of the activity Mar 10 18:26:54 or duplicate rather Mar 10 18:26:58 android:launchMode="singleTask" Mar 10 18:27:03 in your manifest Mar 10 18:27:15 I'll try that Mar 10 18:27:39 I was trying to clear top and single top but that seems to just resume Mar 10 18:27:49 freeone: I see. Mar 10 18:28:39 Say I am implementing the traditional fragment example, with a list fragment and a detail fragment that both show if a tablet is in landscape. I am taking the more static approach, by defining special layouts in -land. I was thinking, if I am either on the list or on the detail while in portrait, then I flip the phone, I want to show both fragments. So should I just make one layout file that will be used on both of the activ Mar 10 18:31:21 What build system should I be using? Maven? Mar 10 18:31:53 gradle! Mar 10 18:32:19 Okay. I'm using Eclipse, BTW. Mar 10 18:32:29 so? Mar 10 18:32:42 K. Mar 10 18:32:54 Can I get the AppCompat action bar with Gradle? Mar 10 18:34:15 yes Mar 10 18:34:23 you can't use gradle with eclipse Mar 10 18:34:25 not easily... Mar 10 18:35:33 pfn: you can if you build your script and run it manually Mar 10 18:35:36 we did it Mar 10 18:35:59 Isn't there a plugin? Mar 10 18:36:00 it's a very good build machine Mar 10 18:36:08 not that I know Mar 10 18:36:58 freeone: I see. Mar 10 18:39:57 So it's easier to use Maven with Eclipse, right? Mar 10 18:40:18 Is there any sort of viewpager library that handles async loading of images from urls and caching? Mar 10 18:41:31 or rather adapter Mar 10 18:41:59 implementing one with help of picasso/ion/universal image loader should be trivial really Mar 10 18:42:06 thepoosh, right, it's not so useful for developing within eclipse Mar 10 18:44:15 TacticalJoke: Gradle on the command line is very nice Mar 10 18:44:39 Intellij and Android Studio are great though Mar 10 18:45:12 You will get a lot better support these days on an Intellij IDE for Android Mar 10 18:45:24 Android gradle support is built right in Mar 10 18:49:49 http://stackoverflow.com/questions/22276802/when-should-you-be-making-a-server-request-vs-storing-it-in-a-db-android anyone have any advice Mar 10 18:55:42 LoneSoldier728: you need to redefine your question Mar 10 18:55:49 it has been put on hold Mar 10 18:56:28 oh k Mar 10 18:57:20 does anyone know, when using google play game services, how can I find my client ID? Mar 10 18:59:20 Tacticalmind: https://developers.google.com/games/services/console/enabling Mar 10 19:00:15 I did exactly as it says but it doesn't show my client ID Mar 10 19:01:19 their dev console is not very coherent Mar 10 19:01:47 agreed Mar 10 19:15:38 Hello. I have a listview with multiple row types: I am trying to cache some of this list. Anyone have recomendations of serializing a view group? Mar 10 19:16:28 http://stackoverflow.com/questions/22276802/what-is-the-most-efficient-out-of-the-3-options-for-a-social-network-application Mar 10 19:16:43 thepoosh I redefined it... is it easier to answer? Mar 10 19:17:20 trying to figure out what I should do basically to make calls to the server without on an event change but on a time base? Mar 10 19:18:27 circular references seems a bit dangerous for gc, am i correct? Mar 10 19:18:38 incorrect Mar 10 19:19:53 instance a of class A holds a reference to instance b of class B and b holds a reference to a? Mar 10 19:21:19 Yes, the gc handles that Mar 10 19:23:26 gc isn't dumb ref counting Mar 10 19:25:47 hi all, does anyone happen to be real good with filesystems? I am trying to resize /data to work around a crypto problem, and seem to have broken the filesystem. Pretty sure that my length argument to make_ext4fs was incorrect, but now I'm totally lost. Trying to figure out whether I'm entering blocks or bytes, etc. Mar 10 19:28:25 yeah, my maths are wrong. I attempted to put the original value from /sys/class/block//size into make_ext4fs -l and wound up with the filesystem being created properly, but only 6M Mar 10 19:30:04 hey guys anyone active? Mar 10 19:31:08 im taking some of the android dev tutorials, and when it tells you to change the text fields weight to 1 and the width to 0dp this makes it effectively disappear off my screen, not the desired results of text field spanning the horizontal length of the screen while button aligns itself to the farthest right it can go. Mar 10 19:32:02 when i run this, i get a button thats on its own line, and a non existent text field, if i remove the weight=1 and width=0dp everything appears fine, just crowded together Mar 10 19:32:36 is it in a linear layout set to orientation horizontal? Mar 10 19:32:41 yes Mar 10 19:32:44 i made sure of that first Mar 10 19:32:55 pastebin your code. did you set a weight sum in your linearlayout Mar 10 19:33:11 No weight sum so to speak, but i did set the weight of the EditText to 1 Mar 10 19:33:14 ill paste bin right quick Mar 10 19:33:19 Hi guys. In my app I receive messages periodically. I want to add an notification and action (little button in the notification) to view the message. So I have an pendingIntent with Extra (the message). How can I replace an action when receiving a new message and set the new pending intent with current message? There is no method like "removeAction" in NotificationCombat.Builder. The Notification works already but I'am struggling Mar 10 19:33:57 No3x: make a new notification w/ the same id and it will replace the existing notification Mar 10 19:34:02 if that's what you mean Mar 10 19:34:18 http://pastebin.com/PNBpzQ94 Mar 10 19:34:40 the tutorial said to only add weight to the edit text widget Mar 10 19:34:52 should've i put weight 2 on the edit text and weight 1 on the button? Mar 10 19:35:16 dragorn: The problem is the Action. It stacks up to 3 because I call addAction() for each new notification. I need some method like replaceActionWithNewAction() Mar 10 19:36:00 No3x: so instead of adding multiple actions, remake the intent w/ the action you want Mar 10 19:36:30 canvs2321-: that is my activity_main.xml file, and in the android tutorials there is always an line above the tag, but if i add that to my activity_main.xml file, it gives errors when i try to save it. Mar 10 19:36:54 i'm assuming something has changed and these tutorials havent been updated Mar 10 19:37:19 because my projects get created with additional code/tags in some places, while missing tags in others Mar 10 19:37:39 Hey, what's the cost of getting a custom made high quality icon? Mar 10 19:37:42 dragorn: addAction(int icon, CharSequence title, PendingIntent intent) takes the PendingIntent. So what would remake do? Mar 10 19:37:56 viran: $100? Mar 10 19:38:03 that would seem reasonable. Mar 10 19:38:13 1hr/$100 Mar 10 19:38:13 No3x: give it an intent that makes sense to whatever you're trying to do Mar 10 19:38:33 No3x: this is an app logic not android api issue I think. You need to figure out how to give yourself an intent that triggers doing something with your messages. Mar 10 19:38:58 No3x: if you get 3 messages and want to deal w/ them w/ one button, you need to have a single action in the notification and send yourself an intent that includes all 3 message IDs or something Mar 10 19:39:25 wtf_: thanks Mar 10 19:39:40 dragorn: Sure no API issue. I just want to figure out whats the common way to do. There is some misunderstanding on my side. Mar 10 19:39:43 anyone know a good tutorial for registering Broadcast recievers? a basic one, want Action_screen_on Mar 10 19:39:44 any recommended designers? Mar 10 19:39:49 viran: thats just an educated guess, i have no market opinion. do a little leg work and find what others are paying though, always. Mar 10 19:40:35 No3x: you can use any method that makes sense for you to tell yourself whats going on. It could be "all pending messages". It could be an attached bundle of message IDs in an int array or something. Mar 10 19:40:40 dragorn: Actually I just want to have a button "Open in Maps" for the latest received message. Mar 10 19:40:40 viran: also that would depend if you have the "logo" in mind, or if you're wanting it created from scratch y'know? theres all sorts of varying factors. Mar 10 19:41:28 canvs2321-: should i try adding weight to the button? or possibly adding