**** BEGIN LOGGING AT Wed Jun 19 02:59:58 2013 Jun 19 03:00:53 as opposed to what? Jun 19 03:01:27 windows mobile, ios, symbian, erm Jun 19 03:01:33 most others Jun 19 03:01:38 that are and have been Jun 19 03:04:55 pork chopz Jun 19 03:09:21 apparently i'm using this gradle thing wrong. Jun 19 03:10:21 how do I get ABS (using dev branch for gradle stuff) to be referenced in my project? heh Jun 19 03:11:08 compile file('vendor/actionbarsherlock/actionbarsherlock/') Jun 19 03:11:10 or something Jun 19 03:11:27 compile project('v/a/a') probably, actually Jun 19 03:11:29 ? Jun 19 03:11:32 jok Jun 19 03:12:10 StingRay_: if you say so. I've found WP8 and iOS to be absolutely abysmal for development Jun 19 03:12:27 not what I said Jun 19 03:12:38 I have no idea of the ease of either really Jun 19 03:12:45 or convinience Jun 19 03:12:58 my comment was design related Jun 19 03:13:19 oh, i thought you were referring to API continuity Jun 19 03:13:25 oh god no Jun 19 03:13:43 I have about as much experience to compare as you do making film CG effects Jun 19 03:14:49 from a limited no experience view I like android/java more than my couple of days with iOS Jun 19 03:14:52 for many reasons Jun 19 03:15:14 but from a design POV, affraid android is way down the list Jun 19 03:15:54 my concern is, it's not getting any better, and on occasion, worse Jun 19 03:15:56 JakeWharton: http://pastebin.com/rdhis8mG Jun 19 03:16:03 like the new calendar stuff and pickers Jun 19 03:16:17 JakeWharton: No resource found that matches the given name (at 'theme' with value '@style/Theme.Sherlock.Light.DarkActionBar'). Jun 19 03:16:22 not good for the user that kind of internal fragmentation Jun 19 03:17:21 JakeWharton: :flashcards is MyApp sorry Jun 19 03:30:49 i'm not sure, sorry. I haven't pulled in ABS through Gradle yet Jun 19 03:31:02 (and hopefully I never will have to!) Jun 19 03:31:40 I tried using gradle, but it seems a little half baked Jun 19 03:32:00 going to stick with mvn until next year i think Jun 19 03:32:08 you mean the gradle android plugin? Jun 19 03:32:18 all of it Jun 19 03:32:42 why does it only support 1.3 for example Jun 19 03:32:54 why is dependency management so hard Jun 19 03:33:14 i'm sure it'll het fixed and i'll learn to use it propperly Jun 19 03:33:21 but mvn's easier at the moment Jun 19 03:33:38 you use 'it' a lot when it's very unclear what 'it' is Jun 19 03:34:21 some of my problems are with gradle and some with the android plugin Jun 19 03:35:18 JakeWharton: sorry. I'll keep reading I suppose. I guess I need to figure out how to make this thing into an AAR and then reference that. Jun 19 03:35:30 that's easy Jun 19 03:35:38 gradle clean build Jun 19 03:39:27 JakeWharton: using android studio. lemme find the command for that :D Jun 19 04:03:05 I don't know why you insist on torturing yourself with that crap. Jun 19 04:03:28 O Jun 19 04:21:24 ok, another go at understanding gradle & the android plugin Jun 19 04:21:54 am I being dense or is it really awkward to use for a large project? Jun 19 04:21:56 * StingRay_ had to choose between not smoking and using gradle Jun 19 04:22:08 result : using AS with ant ;) Jun 19 04:25:09 AS? Jun 19 04:25:18 Android Studio Jun 19 04:25:22 i seeee Jun 19 04:26:28 can you inherit the android{} configuration? like pluginManagement and dependencyManagement in maven? Jun 19 04:34:29 JakeWharton: is import com.actionbarsherlock.BuildConfig; Jun 19 04:34:29 supposed to cause a 'canno find symbol variable BuildConfig' error? Jun 19 04:34:42 no Jun 19 04:34:54 library projects get their own R and BuildConfig Jun 19 04:35:05 alex_PP: yes Jun 19 04:35:51 is there some magic to doing that, because I can't figure it out Jun 19 04:36:16 JakeWharton: how do I fix it? :D Jun 19 04:36:38 alex_PP: there's an all projects and sub projects block you can use Jun 19 04:36:54 ok, I'll have a look at that Jun 19 04:37:16 damccull: i don't know. it just worked with the ABS samples as it was supposed to Jun 19 04:37:30 JakeWharton: ok thanks. Jun 19 04:42:04 I have LVL correctly setup, but on my test account, it almost checks the license every time i open the app. Im using ServerManagedPolicy. Is this the default Validity? or is it because I'm using a test account? Jun 19 04:42:32 should i increase the cached license? Jun 19 04:47:41 such strict license checks are stupid. maybe I want to use the app while I'm out camping somewhere without a network connection... but nope! Jun 19 04:47:44 JakeWharton: should I have a BuildConfig package/class in my com.actionbarsherlock package? Jun 19 04:48:14 no. it's generated Jun 19 04:48:18 interesting. Jun 19 04:48:32 ok so now to find out why it isn't :D Jun 19 04:48:49 pragma, I'm using the default policy, but i don't know if the constant checking is only for test accounts Jun 19 04:49:02 don't know how it behaves on other phones /users Jun 19 04:51:28 in my log i see: License validity timestamp (VT) missing Jun 19 04:56:20 solved it Jun 19 04:56:24 http://stackoverflow.com/questions/4242716/licensing-checker-longevity-of-the-activated-status-how-frequent-is-too-much Jun 19 04:56:32 added min and max Jun 19 05:02:52 oh, that didn't solved it btw Jun 19 05:05:09 should you set GT, VT etc? and how? Jun 19 05:21:13 is the main expansion file downloaded along with new updates? Jun 19 05:21:20 even if there wasn't a change Jun 19 05:46:57 little bit confused with apk expansion files, with the downloader_library check if a new main patch is available? Jun 19 05:47:08 sorry, new "main expansion file" Jun 19 05:47:14 can someone look at http://pastie.org/8058122 , link 25 it wants thisItem to be final since it's in a callback, but that wouldn't be good. Any ideas? Jun 19 05:56:24 anyone Jun 19 06:04:22 why are you holding loadedImage in the object anyways ? Jun 19 06:04:31 or rather wanting to hold it Jun 19 06:06:55 StingRay_: so I can hold in the object and pass it to the next activity w/out having to fetch it again Jun 19 06:07:20 not sure thats a great idea at all Jun 19 06:07:29 how are you going to pass bitmap data ? Jun 19 06:07:35 byte array Jun 19 06:07:44 in a bundle ? Jun 19 06:08:03 yeah, for the most part Jun 19 06:08:14 well there is a limit Jun 19 06:08:30 cause it's not really for that kind/size of data Jun 19 06:08:50 sounds like you want a persistance weak reference cache or something Jun 19 06:09:55 well some kind of cache Jun 19 06:10:37 passing big objects around through bundles/extra is normally not a great idea at all Jun 19 06:11:17 what is this imageLoader class ? Jun 19 06:11:29 https://github.com/nostra13/Android-Universal-Image-Loader Jun 19 06:11:45 erm Jun 19 06:11:47 you can enable a cache, just might to use that … possibly Jun 19 06:11:51 yeah Jun 19 06:11:52 lol Jun 19 06:12:09 1000 times better than your idea Jun 19 06:12:20 specially if some1 else has done the work for you Jun 19 06:12:30 id say 500 maybe, not 1000 Jun 19 06:13:16 thousand just sounds so much better on the tongue that five hundered, less words for one thing ! Jun 19 06:14:05 another thing using their cache is when scrolling through you can see the images change (because of list reuse) from the old image to new one Jun 19 06:14:10 ideas on that one? Jun 19 06:14:22 since you're shitting on all my other ideas :P Jun 19 06:15:41 sounds like it you not dealing with recycling views Jun 19 06:15:59 since it's asyc load from that lib Jun 19 06:16:10 set the imageView to null content Jun 19 06:17:12 in public void onLoadingStarted or before? Jun 19 06:17:25 no Jun 19 06:17:28 in the getVIew Jun 19 06:17:31 of adapter Jun 19 06:17:44 yeah son, public void onLoadingStarted is in getView Jun 19 06:17:55 part of the image url loader thing Jun 19 06:17:58 ok, so outside of that Jun 19 06:18:02 cool Jun 19 06:18:02 and up a few lines Jun 19 06:18:04 :) Jun 19 06:18:07 :) Jun 19 06:18:09 thanks man Jun 19 06:21:52 * BHSPitMonkey just noticed the existence of Log.wtf() Jun 19 06:22:51 BHSPitMonkey: yeah :) Jun 19 06:22:58 StingRay_: having an issue with this http://pastie.org/8058186 … it keeps repeating the same info over and over … so Ithat means Im doing something dumb … again Jun 19 06:25:39 same info? Jun 19 06:25:44 like same data in every row? Jun 19 06:26:09 4 ros Jun 19 06:26:13 *rows Jun 19 06:26:16 that actually looks ok to me Jun 19 06:26:22 same Jun 19 06:26:36 check your array Jun 19 06:27:21 also just FYI maybe, onLoadingComplete has a view passed in, I think thats the imageView, so as not to have to reference it statically Jun 19 06:27:29 or looks like it neways Jun 19 06:29:11 wabz: is good, if i log out the text is different but shows the same 4 pics / text for every row Jun 19 06:31:21 Anyone ever spun up an HTTPD in an android service, e.g. nanohttpd? Jun 19 06:31:31 I can't seem to get mine working Jun 19 06:35:34 * capella Can you avoid calls to Log.wtf() if you have a proper TerribleFailureHandler() ? :P Jun 19 06:36:04 is there an XML way to only show a preference if > some sdkVersion? Jun 19 06:38:52 parco, layout-v11 Jun 19 06:38:54 etc. Jun 19 06:39:01 use includes for pieces of UI Jun 19 06:39:45 having some troubles with a project that I am trying to get working in eclipse... http://code.google.com/p/usb-serial-for-android/ --> if anybody is familiar with arduino and/or this? Jun 19 06:41:21 Mavrik: i only want to show a checkboxpreference if about v11 Jun 19 06:41:30 could you elaborate? Jun 19 06:41:34 above* Jun 19 06:42:09 [2013-06-18 23:10:33 - UsbSerialExamples] WARNING: unable to write jarlist cache file C:\Users\xtofury\workspace\usb-serial-for-android\UsbSerialExamples\bin\jarlist.cache Jun 19 06:42:09 [2013-06-18 23:10:33 - UsbSerialLibrary] WARNING: unable to write jarlist cache file C:\Users\xtofury\workspace\usb-serial-for-android\UsbSerialLibrary\bin\jarlist.cache Jun 19 06:42:09 [2013-06-18 23:10:33 - UsbSerialExamples] WARNING: unable to write jarlist cache file C:\Users\xtofury\workspace\usb-serial-for-android\UsbSerialExamples\bin\jarlist.cache Jun 19 06:42:09 [2013-06-18 23:10:35 - UsbSerialLibrary] ERROR: resource directory 'C:\Users\xtofury\workspace\usb-serial-for-android\UsbSerialLibrary\res' does not exist Jun 19 06:42:09 [2013-06-18 23:10:37 - UsbSerialLibrary] ERROR: resource directory 'C:\Users\xtofury\workspace\usb-serial-for-android\UsbSerialLibrary\res' does not exist Jun 19 06:42:25 if that helps, those console messages come up right from the start... Jun 19 06:43:24 xtofury, did you read the last two lines? Jun 19 06:43:35 parco, there is no "if" in xml Jun 19 06:44:04 parco, but you can use SDK version qualifiers on resource folders which will make Android load a different layout xml file i Jun 19 06:44:50 ahh ok, got it, thanks Jun 19 06:45:41 yes, but why would that be missing from the git code? Jun 19 06:53:03 xtofury, because git doesn't store empty dirs. Jun 19 06:53:27 that's all I need is an empty folder... ok I'll give that a try Jun 19 06:57:52 I can't sneak in the res folder before this happens: Jun 19 06:58:04 [2013-06-18 23:56:41 - UsbSerialExamples] WARNING: unable to write jarlist cache file C:\Users\xtofury\git\usb-serial-for-android\UsbSerialExamples\bin\jarlist.cache Jun 19 06:58:04 [2013-06-18 23:56:41 - UsbSerialLibrary] WARNING: unable to write jarlist cache file C:\Users\xtofury\git\usb-serial-for-android\UsbSerialLibrary\bin\jarlist.cache Jun 19 06:58:04 [2013-06-18 23:56:41 - UsbSerialExamples] WARNING: unable to write jarlist cache file C:\Users\xtofury\git\usb-serial-for-android\UsbSerialExamples\bin\jarlist.cache Jun 19 06:58:04 [2013-06-18 23:57:19 - UsbSerialExamples] ------------------------------ Jun 19 06:58:47 and when I put a res folder in and try to compile, still can't find the apk.... thanks to the cache files not being generated or there... Jun 19 06:59:12 www.pastebin.com <--- Jun 19 06:59:14 :) Jun 19 07:06:15 ok seems it might have fixed it when I re-imported a local copy that hd the res folder added, but I also think I'll be getting an error regardless here about it not being able to find the apk Jun 19 07:06:29 oh sure I'll pastebin the stuff for you not a problem Jun 19 07:08:34 http://pastebin.com/theKzRCv Jun 19 07:09:03 safe to ignore Jun 19 07:09:20 stop building the referenced lib as an apk if you want rid Jun 19 07:09:22 :) Jun 19 07:10:13 really but it's still not detecting any devices, should be-able to pickup my arduino Jun 19 07:10:29 thats something else Jun 19 07:13:48 might be something like this http://stackoverflow.com/questions/16253129/the-warning-could-not-find-usbseriallibrary-apk --->perhaps missing vendor and product id? it's unspecific where I'm checking that.. Jun 19 07:14:04 Ah, I think I need to spin up the http listener on a thread. That should be fun to learn. Jun 19 07:31:09 ugh checked the pid and vid for usb, it's fine I don't understand why it is not detecting it Jun 19 07:47:48 is it generally a bad idea to startActivity from an onCreate? Jun 19 07:48:10 what would be the point to the host activity ? Jun 19 07:48:29 I'd like to launch an InstallerActivity if i notice some files are missing onCreate Jun 19 07:49:13 maybe consider just telling the user, but doing that check, and work in a service off the main thread ? Jun 19 07:50:59 Well I'm startActivity() and finish() within the onCreate(), so the user cant tell there is a switch happening Jun 19 07:51:03 is that a no-no? Jun 19 07:51:47 there are no real no-no things Jun 19 07:51:55 only the opinions of others Jun 19 07:52:21 imho you should do the work in a service with maybe a popup that says, getting files Jun 19 07:52:32 a no-no thing to me is that it works for my test device but not anything else Jun 19 07:52:50 no, thats an error Jun 19 07:52:53 :) Jun 19 07:53:02 haha, yea, a no-no Jun 19 07:53:08 na Jun 19 07:53:16 a no-no is a choice/optional thing Jun 19 07:53:28 unless you choose to error your sh*t Jun 19 07:53:30 ok agree to disagree ;) Jun 19 07:53:48 So how do you get root access for your app? Is there a good way to do it? Jun 19 07:54:06 http://su.chainfire.eu/ Jun 19 07:54:47 Chainfire maybe around too if you ask Jun 19 07:57:37 oh thank you StingRay_ Jun 19 08:07:28 Any advice on outsourcing icon/gfx design for an Android mobile app (where, how and -much)? I guess there's even a couple of you here. My app is already working (in alpha testing), so it's basically like putting lipstick on a pig ;-) Jun 19 08:07:53 cost obviously varies Jun 19 08:08:09 sure you could get some indian to do it all for $5 Jun 19 08:08:19 not that there is anything wrong with that btw Jun 19 08:08:35 but it depends on location, experience etc Jun 19 08:08:39 as does any cost Jun 19 08:08:57 well and obviously time,quantity,quality Jun 19 08:09:01 I'm not handing my app off to somebody without a portfolio, even for $5. Jun 19 08:09:52 you not got the skillz/eye to do it yourself ? Jun 19 08:10:35 on "all" of your time, sure you will have had to dip your toes in more than a few times :) Jun 19 08:10:36 I could probably do decent, not great. App icon is "challenging". And I always love a simple consistent color scheme with good typography. Jun 19 08:10:50 on=in Jun 19 08:11:04 whats the app ? Jun 19 08:11:05 Yeah, I might give it a try though. But you already killed my first icon. ;-) Jun 19 08:11:14 oh did i / Jun 19 08:11:15 ? Jun 19 08:11:17 sorry Jun 19 08:11:22 Killermatch (in app store), www.killermatch.com . Jun 19 08:11:23 oh voodoo Jun 19 08:11:30 oh that Jun 19 08:11:31 lol Jun 19 08:11:33 No, the other one. Squash/Tennis/Badmington. Jun 19 08:11:35 thats not an icon Jun 19 08:11:37 :) Jun 19 08:11:49 "The social network for murderers." (not your words btw) Jun 19 08:11:59 its two words with a slight rotation that has no meaningful design consideration Jun 19 08:12:16 but it's not an icon, so thats ok ;) Jun 19 08:12:40 Oh, it's ok as a logo, not just an icon? How much for an icon then? ;-) Jun 19 08:13:11 seriously, you dont want to ask a 17 year vet of Film/Games art/vfx Jun 19 08:13:32 he will give you his day rate and you will faint! Jun 19 08:13:59 Yeah, I feared as much. Jun 19 08:14:19 also it's quite hard to do something like that without a clear, concise idea/theme of the app in question Jun 19 08:14:19 I'll check with some of my OTHER buddies from the game industry; there's quite a few pixel pushers in my neighbourhood... ;-) Jun 19 08:14:32 also the nature of the app is a major influence Jun 19 08:14:33 is there anything specific I should watch out for when using a custom Adapter class to render views for custom classes rather than Strings? Jun 19 08:15:09 kjeldahl: there is also what I call an "out there" degree Jun 19 08:15:20 thats probably the biggest thing Jun 19 08:15:34 "out there" degree?? Jun 19 08:15:36 I see that the examples use ArrayList, but for easy insertion and deletion on both ends, I would prefer to use LinkedList, but it doesn't seem to update the view when I call adapter.notifyDataSetChanged(); Jun 19 08:15:49 thats how far you design it, outside of many of the google influences Jun 19 08:15:59 very little = same as any other app Jun 19 08:16:12 lots = needs careful considerations to be good Jun 19 08:25:51 Bennit: it doesn't matter, try to see if getView() in your adapter gets called and if it does the right thing Jun 19 08:25:52 Android Studio asks me *each* time I close it, if I _really_ want to close it. Even if I check the checkbox "don't ask me again, bitch", it will do so again :( Jun 19 08:28:30 As far as tennis icons go, I'm not up against a lot of competition it seems.. https://play.google.com/store/search?q=tennis&c=apps Jun 19 08:35:02 kjeldahl: is it just the logo you wanting ? Jun 19 08:35:13 you can create a competition on something like freelancer Jun 19 08:35:22 so you have options :) Jun 19 08:35:28 while being slightly evil Jun 19 08:35:42 Yes, before the first version release at least. Jun 19 08:36:34 Yes, I think I might limit the "outsourcing" to the app icon. Can do redo the rest when I'm an app millionaire... ;-) Jun 19 08:37:22 android really needs a few more drawable types to be complete :( Jun 19 08:39:08 SimonVT: you here sir ? Jun 19 08:39:30 I have a crash for you Jun 19 08:39:32 :) Jun 19 08:40:20 actually, anyone here using SimonVT slidingDrawer ? Jun 19 08:41:58 i have a crush on you Jun 19 08:42:15 :< Jun 19 08:48:46 ew, get it off of me Jun 19 09:11:44 hi.. how do you say XOR in java? Jun 19 09:15:24 bitwise operations in java.. not sure Jun 19 09:18:47 superlinux-hp, ^ Jun 19 09:19:03 alex_PP, thanks Jun 19 09:19:41 http://docs.oracle.com/javase/tutorial/java/nutsandbolts/op3.html Jun 19 09:21:02 what irc channel would I go for general software development? Jun 19 09:22:18 never heard of a dev environment, language or system called general before Jun 19 09:23:18 i think i found a better way to check if A==zero Xor B==zero. Jun 19 09:23:18 lol Jun 19 09:23:33 the better way is : A*B==0 Jun 19 09:24:25 StingRay_ ... what about c dev? Jun 19 09:25:03 ##c ? Jun 19 09:25:34 :) Jun 19 09:25:55 lol Jun 19 09:27:04 i havent done android programming for 3 years and i want a book that is fairly up to date. i am looking at reto's pro android 4 book and the big nerd ranch guide. any opinion on those two? Jun 19 09:49:54 Hey Guys... I want to make a picture with my app.. everything seems to work but i have the problem that when i take a picture in cant pres the check-button un the bottom right... any idea why? Jun 19 09:54:15 I'm trying to make a LinearLayout act like a row in a ListView. I can easily set the correct background selector, and make sure the view is clickable, but the click doesn't seem to affect child views. Jun 19 09:56:10 So the text within the LinearLayout doesn't change colour when the view is clicked, like it does in a ListView. Jun 19 09:57:44 any suggestions on how to do this? i have a grid of images, and when the user clicks on that image, i want to launch an activity that shows that image. Additionally it should be possible to go to the "next" and "previous" image in that screen. Jun 19 09:58:21 hrnt: sounds simple, what part are you stuck with ? Jun 19 09:58:25 or unsure about Jun 19 09:58:27 the problem is that the list of images is not peristent - they are loaded when the user arrives to the grid screen. i need to pass information which images are visible to the second activity. Jun 19 09:59:08 and whats the minimum type and amount of data you need to pass ? Jun 19 09:59:09 let's say i have 1000 images in that grid. user clicks image number 5 and we launch the ViewImageActivity. How do i pass information about the other 999 images to that activity? Jun 19 09:59:32 StingRay_: basically just two URLs, a integer ID and a short description (=400 characters or less) Jun 19 10:00:05 sounds like you want a cache, and maybe an sqlite db to have a temp table in Jun 19 10:00:08 with that info Jun 19 10:01:14 perhaps. i'd like to avoid the implementation overhead of storing this stuff in a sqlite db. Jun 19 10:01:28 and if i used a cache - where should i keep that cache? Jun 19 10:01:37 wherever you want Jun 19 10:01:45 and whats the overhead your on about ? Jun 19 10:03:48 hi, i need to give my android phone (LG) back to my work and would like to clean it (move all data that i have installed/saved) Jun 19 10:03:52 how can i best do this? Jun 19 10:04:04 mobile8: wrong channel Jun 19 10:04:09 StingRay_: i mean, should i keep store a reference to that Cache in the Application object, in a service, content provider, or what? Jun 19 10:04:30 hrnt: well I would use loaders and temp tables in sqlite Jun 19 10:04:32 StingRay_: if i use a sqlite temp table then as far as i know i need to keep the database connection alive Jun 19 10:04:43 what ? Jun 19 10:04:50 what do you mean alive ? Jun 19 10:05:04 "Tables created using the "CREATE TEMP TABLE" syntax are only visible to the database connection in which the "CREATE TEMP TABLE" statement is originally evaluated" Jun 19 10:05:21 so if the database connection is closed, then as far as i know the temp table is gone Jun 19 10:05:22 oh I dont mean TEMP TABLE Jun 19 10:05:30 I mean a table that is temporary Jun 19 10:05:39 I have a coder's block -.- Jun 19 10:05:55 ok, well if i do that then i need to manually keep it clean (which is the overhead i was talking about) Jun 19 10:06:06 well no Jun 19 10:06:09 you drop it Jun 19 10:06:11 lol Jun 19 10:06:18 at what point do i drop it? Jun 19 10:06:26 exiting the app Jun 19 10:06:40 but what does that mean in an android app? Jun 19 10:06:43 hi all. trying to use https://github.com/ened/Android-Tiling-ScrollView to scroll a large bitmap image. i get a runtime error, even when i try to compile the library author's example-usage source code, i get a crash. it's at http://pastebin.com/jG082Dy8. i've googled the error, no joy. can anyone give me a clue about how to debug this? the error message is hard to understand. the .xml with the error is at http://pastebin.com/3SU Jun 19 10:06:51 hrnt: yes Jun 19 10:06:53 i obviously can't drop it in onDestroy Jun 19 10:07:07 (of the activity) Jun 19 10:07:18 well drop it when you dont need it Jun 19 10:07:28 or drop it before you populate when you need a referesh Jun 19 10:07:47 yeah - managing that is a bit trickier Jun 19 10:07:50 antgel: could you paste the rest of the exception stacktrace? Jun 19 10:07:55 anyways, it seems that going with the sqlite db seems to be the easiest option Jun 19 10:08:09 well, the easiest option would be to cheat with the Application object, but that does not count :P Jun 19 10:08:18 antgel: and second link is broken Jun 19 10:12:25 Is there an equivalent to duplicateParentState that you can apply to the parent view which will force all child views to duplicate it's own state? Jun 19 10:12:37 (rather than having to set duplicateParentState for each child view). Jun 19 10:13:56 If you refund an app beyond the 15 minute window, does it remove the app from the User's account automatically? (not using LVL) Jun 19 10:15:35 I always thought it did, but I've just had a user tell me that after the refund he still has access to it on google play Jun 19 10:21:50 why is testing on android such a nightmare :( Jun 19 10:21:54 am i even able to test one modular class without deploying it to an emulator or device? "Also, you must use Android's instrumented test runner InstrumentationTestRunner to run your test case classes." Jun 19 10:24:55 balls2thewall: is testing easier on some other phone os? Jun 19 10:25:11 balls2thewall: look into roboelectric Jun 19 10:48:25 Hey all... Jun 19 10:48:40 hey Jun 19 10:49:24 I am trying to «use» an USB-To-Parallel adapter via USB Host on an Android 4+ tablet. However bulkTransfer always returns negative result. Is there any way to find out what's the problem, any special stuff I need to do/know? Jun 19 11:06:22 karlo|w: thanks for answering. i'll surely paste the rest of the stack trace (and fix the other link !) Jun 19 11:15:29 4 hours later and i still havent gotten at least one junit test to run >=[ Jun 19 11:16:30 Hi, is there someone who got spongycastle (or bouncycastle) running with an android app? I have compillation problems when I add the libraries to my project. Jun 19 11:18:48 Unfortunately my irc client crashed, and if someone answered, I was not able to read your reply... Jun 19 11:21:15 dont worry, nobody did Jun 19 11:21:39 so I guess the answer from the view public is, nope :) Jun 19 11:22:34 hm, this is a pity, we are now searching for the problem with 3 person and none has an idea anymore where to continue searching for the problem Jun 19 11:23:31 we? Jun 19 11:23:47 3 people ?? Jun 19 11:23:55 wow, I want those resources Jun 19 11:23:57 :) Jun 19 11:24:16 you do to want to pay for them ;-) Jun 19 11:24:44 fornax: which compilation errors? we might be able to help if we knew the issues Jun 19 11:25:01 I try to extract them to use paste bin, one moment... Jun 19 11:25:07 * StingRay_ feels left out Jun 19 11:25:13 hi StingRay_ Jun 19 11:25:14 * StingRay_ wants to be "we" too Jun 19 11:25:15 what's up? Jun 19 11:25:18 :) Jun 19 11:25:28 you can join my team Jun 19 11:26:52 i got 3 outlet-controllers (hardware things you put in a power outlet that can be controlled via radio waves) and I have the hardware radio transmitter ready that accepts UDP packets and forwards it via radio waves to allow me to control the outlets (lights on/lights off and more) -- now i just need an android app to send the packages Jun 19 11:26:59 i made that too, but it's ugly, but it works Jun 19 11:27:05 your task is to make it pretty Jun 19 11:27:06 go! Jun 19 11:28:30 hello guy, how can I connect to a specific BSSID, any pointers ? Jun 19 11:31:15 Xabster: http://pastebin.com/gy9Jg5Bs This is when I build it with ant. Unfortunately I cannot copy the lines from Android Studio, where I get different error. I will try to manage it... Jun 19 11:31:33 Xabster: easy Jun 19 11:31:43 StingRay_, yep Jun 19 11:31:51 why isnt there an option to do unit tests within android studio >=[ Jun 19 11:31:56 fornax: that doesn't appear to be a compile error... Jun 19 11:32:06 illegalargumentexception is a runtime exception, no? Jun 19 11:32:34 and the error says that allowed values are [0-65535] and you give it 65536 Jun 19 11:32:36 1 too high Jun 19 11:32:56 Xabster: The application is not started yet, it comes when I execute ant release or build it with android studio. This might be a bug in the android toolchain? Jun 19 11:33:10 doesn't appear to be a "bug" Jun 19 11:33:16 not sure what your build process is Jun 19 11:33:50 is your applications entry point in com.android.dx.command.Main.main ? Jun 19 11:34:23 Xabster: Try to download http://search.maven.org/remotecontent?filepath=com/madgag/sc-light-jdk15on/1.47.0.2/sc-light-jdk15on-1.47.0.2.jar , include it as library in a project and you get this error Jun 19 11:35:03 Xabster: No, it has a different starting point. This happened, simply after adding the library to my project Jun 19 11:35:11 i see Jun 19 11:35:36 android version? Jun 19 11:36:13 Xabster: I also recompiled the library, same problem. I now test with a blank project again. minSdkVersion="10", android:targetSdkVersion="17" Jun 19 11:38:31 okay, my google-fu tells me the method ID is actually an enumeration of methods in the project and the dalvik VM only supports 65535 methods Jun 19 11:38:35 you're going above that Jun 19 11:38:49 here's how facebook solved it for their app: https://www.facebook.com/notes/facebook-engineering/under-the-hood-dalvik-patch-for-facebook-for-android/10151345597798920 Jun 19 11:39:23 other suggestions are to make parts of your app as standalone service that exposes some features to other parts Jun 19 11:39:29 Xabster: Wow, Facebook was ever able to fix something? interesting Jun 19 11:39:36 making you able to have 2 x 65535 or 3 x Jun 19 11:39:38 or 4 x Jun 19 11:40:13 also this: http://android-developers.blogspot.co.il/2011/07/custom-class-loading-in-dalvik.html Jun 19 11:40:50 here's a guy with same issues and possible solutions: http://stackoverflow.com/questions/15508477/android-my-application-is-too-large-and-gives-unable-to-execute-dex-method-id Jun 19 11:40:53 Xabster: these are very interesting and good links, thank you, we will investigate that, our app is quite big, so this might really be a problem Jun 19 11:40:54 now, coffee Jun 19 11:41:12 fornax: that 3. options might be good for you - proguard to remove unused methods Jun 19 11:41:19 not sure, have fun Jun 19 11:41:35 Xabster: Thank you for your help Jun 19 11:43:28 np Jun 19 11:45:45 hi all. trying to use https://github.com/ened/Android-Tiling-ScrollView to scroll a large bitmap image. i get a runtime error, even when i try to compile the library author's example-usage source code, i get a crash. it's at http://pastebin.com/iZA8ik32. i've googled the error, no joy. can anyone give me a clue about how to debug this? the error message is hard to understand. the .xml with the error is at http://pastebin.com/3SU Jun 19 11:45:51 karlo|w: ^^ :) Jun 19 11:47:01 last paste still naffed Jun 19 11:47:14 tells you why though in that error Jun 19 11:47:55 StingRay_: ? seems to work for me, just tried again. you mean http://pastebin.com/3SUNjaVm ? Jun 19 11:48:18 StingRay_: any clues for me? looking at this for a *day* now and not getting it Jun 19 11:49:16 StingRay_: try http://pastebin.com/0D4bXars - it's the same paste but different url Jun 19 11:50:11 have you tried to create a asia.ivity.android.tiledscrollview.TiledScrollView object to see if the lib is all setup ? Jun 19 11:51:09 StingRay_: no, what you see is what is there. i'm new to android but will try to understand what you're asking Jun 19 11:51:58 StingRay_: so you meant import asia.ivity.android.tiledscrollview and create a TiledScrollView object? i'll try it now Jun 19 11:52:06 TiledScrollView testOfMyLibView = new TiledScrollView(); Jun 19 11:52:17 or just setContent(new asia.ivity.android.tiledscrollview.TiledScrollView()); Jun 19 11:52:30 hello all! how do i retrieve the real name for a google account??? Jun 19 11:52:54 im having problems refactoring this method. its big and ugly and I dont know where i can beautify it. http://pastebin.com/jdRWWCEs - the purpose of the method is to set a number of textviews depending on a number of conditions(type of fragment and a boolean isInCashMode) Jun 19 11:53:01 suggestions? Jun 19 11:53:41 StingRay_: i can do the first one you mentioned, it compiles fine. i'll try now Jun 19 11:54:53 StingRay_: did you mean setContentView instead of setContent? Jun 19 11:54:57 y Jun 19 11:55:00 ya Jun 19 11:57:04 StingRay_: when can i expect you to be done? Jun 19 11:57:13 StingRay_: you are on to something! setContentView(new asia.ivity.android.tiledscrollview.TiledScrollView()); doesn't compile! Jun 19 11:57:16 oh and try getting rid of the namespace on line 4 Jun 19 11:57:28 in your xml Jun 19 11:57:35 StingRay_: "the constructor TiledScrollView() is undefined" Jun 19 11:58:33 StingRay_: without the namespace on line 4, lines 14-19 don't parse Jun 19 11:58:51 also res-auto didn't work for me but i can deal with that later Jun 19 11:58:51 oh yeah sorry Jun 19 11:59:05 it uses that in attrib reference Jun 19 11:59:12 didnt see that Jun 19 12:00:06 Xabster: when I have a clear defined idea of what the app is, how it works, what it does, when it would be used, the major differential demographic target ratios/split, and competitor analysis Jun 19 12:00:17 then it's easy to set a target and kick ass ;) Jun 19 12:00:45 and then you'll code it with no compensation? Jun 19 12:00:59 thought you said it was done Jun 19 12:01:04 but needs actual design ? Jun 19 12:01:11 or you want the whole app ? Jun 19 12:01:11 i just need an UI Jun 19 12:01:12 lol Jun 19 12:01:18 StingRay_: ah. there are constructors for TiledScrollView, with parameters. i'll try to find out what the parameters should be, and add them to the setContentView(...) call. but if eclipse *can* tell me that my constructor signature is wrong, doesn't that indicate that the library is being found correctly? Jun 19 12:01:31 the whole app is basicly a dynamic list of buttons to turn on/off various power outlets in a house Jun 19 12:01:41 hmmm Jun 19 12:01:50 add me to beta group Jun 19 12:02:02 take it I can "cold" test it ? Jun 19 12:02:10 or do you actually need hardware units ? Jun 19 12:02:15 hardware is needed Jun 19 12:02:18 ffs Jun 19 12:02:20 how else can you turn on the lights? :)= Jun 19 12:02:26 hack the power grid? Jun 19 12:02:33 dont need function Jun 19 12:02:36 need to test form Jun 19 12:02:46 and form should be able to be cold/dummy tested Jun 19 12:03:07 i think you've got some grand idea about what it is and does... an UI where the buttons don't do anything is enough to cold test/mock test Jun 19 12:03:23 hold on, let me give you a screenshot of an app that we made just to get it working Jun 19 12:04:25 gonna take a while, i moved my dev apps user-account and gotta reinstall java and i'm on my neighbours wifi :( Jun 19 12:08:05 StingRay_: http://imgur.com/c0eIHh8 Jun 19 12:08:29 oh Jun 19 12:08:30 the colored "on" button turns on a floor lamp in my house, and the non-colored off button to the right turns it off Jun 19 12:08:35 the rest are dead Jun 19 12:09:13 we need a "settings" activity to enter new outlets with a name like "Living Room Ceiling Lights" and number "21" and save it, then generate a row for each of those entries Jun 19 12:09:20 that is basicly all there is :) Jun 19 12:09:35 i think i could have coded it by now if i didn't procrastinate here Jun 19 12:10:06 yeah you really need some….erm….. arty input Jun 19 12:10:13 and designer input Jun 19 12:10:34 that is a mock up just to see if the simulator could do it and we wanted an easy way to send the message needed instead of telnet Jun 19 12:10:57 we did that in like half an hour max Jun 19 12:11:06 but it works, so now we're gonna do UI stuff Jun 19 12:11:08 which is you Jun 19 12:24:24 StingRay_: sorry, i see you have bigger fish to fry, but any comment on my comment ^^^? the view only has a constructor with (Context context, AttributeSet attrs) - according to http://developer.android.com/reference/android/view/View.html this indicates that the view is designed to be inflated from xml. which i'm trying to do Jun 19 12:24:59 StingRay_: anyway, i believe that the library is in the right place. i think the problem is more likely in my xml, but i just don't know what :( Jun 19 12:26:48 StingRay_: in other words, i could never have expected setContentView(new asia.ivity.android.tiledscrollview.TiledScrollView()); to compile. but it looks like asia.ivity.android.tiledscrollview.TiledScrollView is found by eclipse / the compiler / lint / whatever does that task Jun 19 12:27:16 TiledScrollView(this) Jun 19 12:27:21 antgel: why don't you debug the app step by step? put some breakpoint in this view class and see what goes wrong Jun 19 12:27:26 if your eclipse has source that is Jun 19 12:28:05 just pass it a context, like you would any view Jun 19 12:30:46 Oh hell... How does one decide which of the 9 (nine) USB endpoints to send data to? Jun 19 12:34:00 StingRay_: i can't use TiledScrollView(this). this particular view doesn't have a constructor with just Context. what can i use for AttributeSet? Jun 19 12:34:11 null Jun 19 12:34:24 sounds like a pants lib tbh Jun 19 12:34:25 :) Jun 19 12:34:32 or I wouldn't like it Jun 19 12:36:43 karlo|w: hi again. that's interesting. the TiledScrollView library source code is in a different Eclipse project, and i built that project and put the .jar in my project's libs/ dir. so i have the source code - would i need to copy it to my project to debug as you suggest? Jun 19 12:37:05 StingRay_: it may well be. we can open the discussion wider, i'm happy to :) Jun 19 12:41:40 im having problems refactoring this method. its big and ugly and I dont know where i can beautify it. http://pastebin.com/jdRWWCEs - the purpose of the method is to set a number of textviews depending on a number of conditions(type of fragment and a boolean isInCashMode) Jun 19 12:41:58 antgel: if the jar has the source then you can debug it Jun 19 12:42:19 but also you could link that project to your app project instead of putting it as jar Jun 19 12:42:47 try to google android library projects Jun 19 12:42:54 I have a questions about containers/layouts and fragments. My main activity loads an xml containing a relative layout at the root containing 3 containers (header, body, footer). the body is placed "below" header and above "footer". But as soon I add a fragment to the footer, I can't see the body anymore. Jun 19 12:44:29 sacrelege: cause the fragment took all the space ? Jun 19 12:44:31 :) Jun 19 12:44:33 but you can still see the footer? Jun 19 12:44:35 header* Jun 19 12:44:44 when I use a linearlayout instead of a relative at the root, I can't see the footer either, since I tell the body to match the parent. Jun 19 12:45:04 sacrelege: cause your not weighting it properly ? Jun 19 12:45:06 :) Jun 19 12:45:09 StingRay_, yep, but why? (match parent) Jun 19 12:45:20 karlo|w, yep, footer is visible Jun 19 12:45:58 hmm... is the weighting important in a relative layout ? Jun 19 12:46:04 no Jun 19 12:46:12 you asked 2 questions Jun 19 12:46:17 that was to the 2nd Jun 19 12:46:26 ah oke.. Jun 19 12:46:38 I try to switch to linear layout and try to fix it by weighting... Jun 19 12:46:40 give me a sec Jun 19 12:52:03 * Lachezar feels a bit stupid: I wasted half a day to try and run a USB-TO-LPT to attach a label printer to no avail. Then found out the printer already has a USB port that works very easily! Jun 19 12:52:06 karlo|w: very interesting, thanks. i'll try that, then if you and StingRay_ are still around, i'd love to hear of a better solution for an app that has to scroll large images in the background Jun 19 12:52:38 I know there is a moral in my situation, but I fail to grsp it... Jun 19 12:52:42 antgel: tile it Jun 19 12:52:44 /s/grps/grasp/ Jun 19 12:53:19 StingRay_, thx you very much! I can see everything like expected now. linear layout + weighting FTW ! Jun 19 12:53:42 np :) Jun 19 12:53:59 StingRay_: well yes, that was the idea. i'm using this library to try and do just that Jun 19 12:54:04 * antgel shrugs Jun 19 12:54:32 well you dont "have" to use a lib Jun 19 12:54:40 you can write it yourself too ;) Jun 19 12:54:57 or get a free lightweight game engine to do it Jun 19 12:54:59 :) Jun 19 12:56:19 StingRay_: as a lazy chap, i try to leverage third-party libraries wherever possible. seriously, i simply don't know enough android to get it right in the short timeframe i have, and i assumed (perhaps wrongly) that there would be good solutions out there that i could easily leverage Jun 19 12:57:03 erm Jun 19 12:57:19 Did Android STudio just switch to Visually Impaired mode? Jun 19 12:57:39 How do I make it like it was before (smaller) Jun 19 12:57:42 Just change the font size to something and back to 12 and it should look normal. Jun 19 12:58:07 or look at it the wrong way through binoculars Jun 19 12:58:10 kjeldahl: ah ok, I was getting Eclipse flashbacks for a moment Jun 19 12:58:24 StingRay_: now there's an idea Jun 19 12:58:36 belgianguy: Yeah, those gtk resource files had to be tweaked to hell to make Eclipse look decent. Jun 19 12:59:07 kjeldahl: Do you use a white-space-cleaning theme for GTK+Eclipse? Jun 19 13:01:25 it says it's at 12 :s Jun 19 13:01:33 This looks like 14 or 16 Jun 19 13:01:51 i miss a few things from eclipse Jun 19 13:02:13 like hovering over an incomplete method and giving the scope expectations etc Jun 19 13:02:58 either you guys sit very close to your screens or I should visit eye doctor ;) for me the font was too small Jun 19 13:03:16 I sit here with binoculars at the other end of the room Jun 19 13:03:52 but it's only the menu's and the GUI of IntelliJ itself it seems Jun 19 13:03:59 the code itself is 'okay' Jun 19 13:05:52 argh Jun 19 13:05:56 whats is the default font? Jun 19 13:06:07 I can only adjust the size if I also specify a font Jun 19 13:06:12 and Ubuntu looks hideous at 12 Jun 19 13:06:20 (I found the setting) Jun 19 13:12:26 dammit Google, don't change what works :( Jun 19 13:12:41 Now my IDE uses 3 different styles it seems Jun 19 13:13:23 did you seriously just blame google for the changers your fiddling with ? lol Jun 19 13:13:45 or are you calling yourself Google from now on ? Jun 19 13:14:42 StingRay_: I blame them that I have to fiddle with something that was alright before Jun 19 13:14:58 "We switched the e and a keys, have fun" Jun 19 13:21:03 ugh now my status bar still is huge, any idea where that can be set? Jun 19 13:21:07 it's not in Appearance Jun 19 13:23:33 any good book you can recommend for Android game development? Jun 19 13:27:12 StingRay_: okay, you were onto something. i have a NoClassDefFoundError when i use the setContentView(new asia.ivity.android.tiledscrollview.TiledScrollView(this, null)); call Jun 19 13:27:15 i'll pastebin Jun 19 13:28:06 so your build is not getting the lib then Jun 19 13:28:30 using AS ? Jun 19 13:28:34 or eclipse ? Jun 19 13:29:00 StingRay_: eclipse. full stack trace at http://pastebin.com/pd7g31i9 Jun 19 13:29:20 building with ant ? Jun 19 13:29:51 the library is now included as a library project as per karlo|w instructions, but it's the same result as before if i use the xml setContentView Jun 19 13:30:07 your lib is not getting built Jun 19 13:30:10 StingRay_: *blush* whatever the default is. this platform seems to hide rather a lot from me by default Jun 19 13:30:11 into your app Jun 19 13:31:47 StingRay_: i went to Java Build Path -> Order and Export, and put a tick by the library project. same result Jun 19 13:31:57 belgianguy: Sry, was AFK. Did you try overriding the font size, apply, restore it back, apply, and restarting AS? I think that solves it just fine. Jun 19 13:32:28 belgianguy: At least for the two themes I've tested; standard and Darcula. Jun 19 13:35:09 StingRay_: i just noticed something. console (every time) has a red error "Could not find library.apk". wonder if this is connected Jun 19 13:35:43 doubt it Jun 19 13:35:54 damn Jun 19 13:36:10 am googling frantically. bet it's just a simple setting somewhere Jun 19 13:36:52 not sure why it doesn't get caught at time of uploading the .apk to the device. surely it should know that it needs this library, if it needs it to *compile*? Jun 19 13:37:30 cause ide is a little seperated from build Jun 19 13:37:36 and thats a runtime exception Jun 19 13:39:08 wow, I'm a big fan of android again Jun 19 13:39:13 compared to this morning :) Jun 19 13:41:56 kjeldahl: didn't restart yet, I'll try that now Jun 19 13:42:04 what can i do to get the library into my .apk? i have ticked the library in Order and Export, i don't see that i have any more control than that Jun 19 13:42:25 I've set my font size to 10 btw Jun 19 13:42:36 I have an IDE for ants Jun 19 13:42:56 antgel: well I have forgot how to use eclipse Jun 19 13:42:57 :) Jun 19 13:43:10 or mentally blocked it Jun 19 13:43:13 1 or the other Jun 19 13:43:22 StingRay_: in a non-eclipse world - what would one do? maybe something in the manifest? Jun 19 13:43:29 how can i be bitten by this for a day???? Jun 19 13:43:42 well now I would add a module Jun 19 13:44:12 add a main dependancy … and choose to compile it in the order i need it Jun 19 13:44:29 then make sure it's included in any build config Jun 19 13:44:43 not that I have to with ant, but if it were gradle I would Jun 19 13:45:06 * antgel holds head in hands Jun 19 13:45:17 StingRay_: thanks for your efforts but i'm out of my depth :) Jun 19 13:45:27 belgianguy: .. or a monitor with a very low DPI. ;-) Jun 19 13:45:54 maybe an eclipse person will be along soon. i've actually been told that eclipse is the only sensible choice for android dev, but now i'm starting to see that is *not* the case Jun 19 13:46:07 who told you that ? Jun 19 13:47:08 antgel: broaden your horizon, make your own choice :) Jun 19 13:47:18 I jumped ship away from Eclipse as soon as I could; too much "magic" going on. Granted, AS/Gradle has a steep learning curve for now, but at least there is a readable file describing the build process. Jun 19 13:47:18 IntelliJ/AS is my IDE of choice Jun 19 13:47:38 as pragma- about it, he's old school Jun 19 13:47:39 ask* Jun 19 13:47:54 StingRay_ belgianguy: let's just say that my company is *very* conservative, and in my world i've stayed away from java as much as possible Jun 19 13:48:35 why ??? java is ace http://www.youtube.com/watch?v=E3418SeWZfQ Jun 19 13:48:49 * antgel googles AS Jun 19 13:49:12 im having problems refactoring this method. its big and ugly and I dont know where i can beautify it. http://pastebin.com/jdRWWCEs - the purpose of the method is to set a number of textviews depending on a number of conditions(type of fragment and a boolean isInCashMode) Jun 19 13:50:37 * kjeldahl magically expands AS to Android Studio Jun 19 13:51:01 kjeldahl: yes :) Jun 19 13:51:02 lite_: you keep asking that, what are you expecting ? Jun 19 13:51:37 i'll download AS and try to build this project. it can't be more of a waste of time Jun 19 13:51:45 not sure. im guessing that theres no harm in posting every 30-40 minutes? Jun 19 13:52:11 well, I doubt ne1 is going to write it for you, and besides that, not sure what you want ? Jun 19 13:52:27 do it with some lightWeight arrays ? Maps ? Jun 19 13:52:32 lite_: Just remember that most subproject/dependencies do not ship with build.gradle files or are packaged in the right format, so if you have lots of dependencies there is some pain to be expected. Jun 19 13:52:49 well all im missing is someone to look at it and maybe point me in the right direction of what would be a proper way of refactoring it Jun 19 13:53:04 btw is there a handholding tutorial on Gradle Jun 19 13:53:19 I learned Maven to use ABS, but now Gradle seems to replace that Jun 19 13:53:38 lite_: You can refactor lots about that Jun 19 13:54:14 how about extract constants to static members, and then attack your nested ifs by extracting the deepest to their own function Jun 19 13:54:17 and go from there Jun 19 13:54:50 and a setSharedPreferences might be useful, too Jun 19 13:56:39 lite_: http://www.refactoring.com/catalog/ Jun 19 13:57:04 lite_: I'd especially look at the 'Extract' refactoring methods Jun 19 13:58:20 lite_: the name of your function itself already begs to be refactored: private void setCashOrUnits(boolean isInCashMode) Jun 19 13:58:47 why if(isInCashMode) setCashMode else setUnits ? Jun 19 14:00:30 that way, the scope the function covers could be smaller Jun 19 14:02:14 true Jun 19 14:02:19 trying it out - thanks Jun 19 14:05:27 belgianguy, http://pastebin.com/gS3Tjvh6 - looking better thanks to you Jun 19 14:05:42 lite_: also the nested if tests have the if(inCashMode) repeating, such patterns usually mean they can be inverted (inner ifs become outer) or at least different functions Jun 19 14:12:55 I've got my bachelors exam tomorrow and i want this project to look as pretty as possible before throwing it up on a big projector :p Jun 19 14:39:09 I am having problems with users complaining about "package not signed correctly" when downloading my app Jun 19 14:39:17 I found several places talking about that being an error with java 7 Jun 19 14:39:23 but I am using java 6 and exporting it through eclipse the same way I always did Jun 19 14:39:32 anyone else had problems with this? Jun 19 14:39:54 belgianguy, just don't use gradle yet... Jun 19 14:40:04 * pfn isn't going to use gradle until everything uses it Jun 19 14:40:13 can't even create a local.properties using android update project anymore Jun 19 14:40:15 annoying Jun 19 14:40:23 s/anymore/yet Jun 19 14:40:26 in a gradle project Jun 19 14:51:21 huh Jun 19 14:51:33 I dont like in intelliJ where you can "copy" nothing Jun 19 14:51:45 I do that a few times by mistake Jun 19 14:51:50 eclipse never let me Jun 19 14:52:27 StingRay_: you should make a list of things to improve for the AS team, and let them know Jun 19 14:52:31 Would it be hard to modify an app that doesn't use fragments to use it? Jun 19 14:52:39 rather than having a ton of activities Jun 19 14:53:19 Bear10: would that not depend on 1. your skill 2. How fast you are 3. how adaptive you are 4. how well you learn ? Jun 19 14:53:37 StingRay_, probably Jun 19 14:53:41 :) Jun 19 14:54:50 it's quite a lot of work Jun 19 14:55:04 depends on how well-organized your code is to begin with Jun 19 14:55:14 pfn, so for future reference, you recommend building / working with fragments from the get go? Jun 19 14:55:31 of course Jun 19 14:55:40 well depends Jun 19 14:55:45 if there is a need Jun 19 14:55:47 :) Jun 19 14:56:17 there probably isnt a NEED, but probably makes the app seem cooler / nicer :P Jun 19 14:56:48 shouldn't be apparent to user Jun 19 14:56:53 more flexible when it comes down to animating certain parts of the screen and things like that isnt it? Jun 19 14:57:04 if it is, and would make a better experience, then there is a slight need Jun 19 14:57:05 :) Jun 19 14:57:30 oh well maybe version 2.0 lol Jun 19 15:05:55 pfn: sorry, was mucking about with my car radio Jun 19 15:06:01 it's on the fritz Jun 19 15:06:29 yeah, but if Gradle is the go-to manager for the future, I don't want to be stuck with Maven :/ Jun 19 15:06:45 (IIRC you can convert Maven to Gradle, too) Jun 19 15:07:11 * pfn shrugs Jun 19 15:07:21 if you can convert, why early-adopt unless you have a specific reason Jun 19 15:07:56 pfn: I guess because it's in my face so much and from the start Jun 19 15:08:04 is it? Jun 19 15:08:16 the Maven tools are rather hidden, gradle files are always created by default Jun 19 15:08:26 and I don't know what they do, or what I'm supposed to do Jun 19 15:08:28 they aren't always created by default Jun 19 15:08:33 unless you're using android studio Jun 19 15:08:45 pfn: well, yes, I'm using Studio Jun 19 15:09:30 and even then, it isn't really in your face, since the project settings take care of most of it for you anyway Jun 19 15:10:22 pfn: yeah, but it feels out of my control atm Jun 19 15:10:31 that's how it is with all IDEs Jun 19 15:12:05 I should update my sbt plugin to consume aar's Jun 19 15:12:15 should look through gradle's code to see how they manage that Jun 19 15:12:18 well I saw the light of pom.xml, but I don't know where to start with Gradle yet Jun 19 15:12:50 also, they should add a thesaurus :p aar, sbt, apklib Jun 19 15:13:32 anyone here ever had errors with app signing? Jun 19 15:13:49 Package has no certificates at entry Jun 19 15:13:58 then you didn't sign correctly Jun 19 15:14:08 jarsigner -verify -verbose yourapp.apk Jun 19 15:14:14 I signed the same way I always do Jun 19 15:14:20 that shows the file as signed Jun 19 15:14:26 then you mangled your jar after signing Jun 19 15:14:35 how did I do that? haha Jun 19 15:14:41 you tell us Jun 19 15:14:56 I always exported the apk directly from eclipse and uploaded it to google Jun 19 15:15:22 my java is still 6 (since I've seen people complaining about signing on java 7) Jun 19 15:16:25 jarsigner -verify -verbose spits out more than just the file is signed Jun 19 15:16:45 yes, what I meant was, the file that explodes in the exception is marked as signed Jun 19 15:17:33 and in the manifest? Jun 19 15:18:00 what do you mean, in the manifest? Jun 19 15:18:06 pastebin the output Jun 19 15:18:12 it verifies everything as ok Jun 19 15:19:29 * pfn shrugs Jun 19 15:19:43 no real details, no real help Jun 19 15:19:55 pfn: I'm pasting it, just a sec Jun 19 15:20:43 https://gist.github.com/anonymous/5815157 Jun 19 15:22:19 pfn: the specific file on the exception is assets/migrations/201212281636_create_categories.sql Jun 19 15:23:23 hmm, manifest.mf isn't signed Jun 19 15:24:16 pfn: I tried both signing it manually and exporting through eclipse, and none of them worked Jun 19 15:24:28 javac -version Jun 19 15:24:42 and what's your signing commandline Jun 19 15:24:57 javac 1.6.0_45 Jun 19 15:26:11 jarsigner -verbose -sigalg SHA1withDSA -digestalg SHA1 -keystore Jun 19 15:27:00 the reason I didn't use SHA1withRSA like the developer site suggests is that it gives me an exception when signing the package Jun 19 15:27:10 hello, I'm trying to overlay a videoview on top of a webview, this works well however when the video plays back it is quite dim, does anyone know of a way to adjust the brightness? Jun 19 15:27:48 pfn: after verifying the keystore, that alias was created (a long time ago) with DSA and not RSA Jun 19 15:28:07 ndurell: shine a flashlight on the screen Jun 19 15:28:17 draiken, then it's probably the dsa key Jun 19 15:28:20 ndurell: What is causing the diming? Do you actually want to increase the brightness of the screen? Jun 19 15:28:47 pfn: but it worked for years, and I can't change the keystore or the app won't update Jun 19 15:29:17 pfn: besides, the worse part is, it only happens on some phones, not on all phones Jun 19 15:29:18 then ignore the users for which it doesn't work Jun 19 15:29:40 pieces029: it's unclear what is making it dim, the screen brightness, it just appears that video is much dimmer Jun 19 15:29:56 dimmer than what? Jun 19 15:30:05 pfn: but it just stopped working out of the blue, and I should just accept it? :/ Jun 19 15:30:06 pieces029: than the reset of the content Jun 19 15:30:29 pieces029: *reset Jun 19 15:30:35 rest Jun 19 15:30:50 draiken, well, then you figure out what you changed and make it work again; how do you know those devices ever worked to begin with? Jun 19 15:31:05 pfn: no complaints at the market Jun 19 15:31:13 draiken, so? Jun 19 15:31:20 that doesn't mean anything Jun 19 15:31:37 pfn: it's a major app, with lots of downloads, we tested on tons of phones, and it works, it has worked for quite a while Jun 19 15:31:49 and for that matter, use the signature conversion process for converting keys Jun 19 15:32:04 just after some update, people started complaining Jun 19 15:32:14 signature conversion? Jun 19 15:32:24 ndurell: I am assuming it's not the video. Also have you tried different devices? Jun 19 15:32:49 yah dim everywhere...we use the same video on iOS and it looks much brighter Jun 19 15:32:49 as in the video isn't just a dark video Jun 19 15:33:07 pfn: right now, only one person in our company gets this error on an old stock Motorola Defy Jun 19 15:33:29 and did the release app ever install for that person before? Jun 19 15:33:33 yes Jun 19 15:33:46 verified by pulling an old version and installing it now? Jun 19 15:33:59 ndurell: dim on multiple android deivces? What video format? Jun 19 15:34:17 do i need fragments to use viewpager with multiple listviews? Jun 19 15:34:21 halp? Jun 19 15:34:32 mp4 Jun 19 15:34:38 If I want to inflate a framelayout with the styles of a AlertDialog, how would I accomplish that? Jun 19 15:34:49 draiken, and if the old apk works, checkout the old code, re-sign it, and install Jun 19 15:35:01 publishing from IDE ftl Jun 19 15:35:17 pieces029: yes on multiple devices Jun 19 15:35:38 ndurell: have you tried just using the video view by itself? If that fixes it then we know the overlay is the issue. Jun 19 15:36:27 pieces029: ahh good point I'll give that a try Jun 19 15:36:48 ndurell: let me know how that goes Jun 19 15:37:00 pfn: ok, I'll try getting an old version, exporting it and installing it on the phone that doesn't work Jun 19 15:37:10 pfn: thanks for all the help so far Jun 19 15:37:55 pieces029: I will thx Jun 19 15:39:15 Has anyone been using android studio with gradle and having good luck pulling libraries from central? Jun 19 15:43:57 Why does Android only want one SQLiteOpenHelper per database rather than one helper per table ? Jun 19 15:44:15 I mean. Having 1 helper per table works untill you decide to drop a table. Jun 19 15:51:30 pieces029: Yah looks like a layout issue thx again! Jun 19 15:55:00 ndurell: np Jun 19 15:56:53 Good afternoon all, where do I report errors in the android developer documentation? Jun 19 15:57:19 b.android.com Jun 19 15:57:30 Hey, what is the best way to build sqlite schema in android? Jun 19 15:58:24 SimonVT is that a good place to report spelling mistakes in the documents such as on the developer.android.com website? Jun 19 15:58:39 It's the only place Jun 19 15:58:40 Currently I am using ContentValues and db insert, but there is also a SQLiteQueryBuilder, should I use this instead Jun 19 15:59:53 SimonVT: although it can sometimes be worth trying to find a friendly googler who can actually fix it, rather than letting it be lost in the flood ;) Jun 19 16:03:32 aw great! if bluetoothsocket.write() throws an IOException, .read() still blocks and waits for data never to come :( Jun 19 16:04:54 when I do float textSize = getResources().getDimension(R.dimen.slide_menu_item_text_size); and set the textSize it is different from when I do android:textSize="@dimen/...." in xml.. any clue why? Jun 19 16:08:18 xastey, pixel Jun 19 16:08:31 uh? Jun 19 16:08:36 I should use pixelOffset? Jun 19 16:08:41 it's different because it's a pixel size Jun 19 16:08:47 would anyone by chance have a galaxy s3 and a few seconds to test my app? Jun 19 16:08:59 so how should I fix this pfn.. not really following what you are saying Jun 19 16:09:30 getDimension returns you raw pixels Jun 19 16:09:37 so the number is obviously different Jun 19 16:10:03 funny you say that.. I did text.getTextSize() and it returned the same value Jun 19 16:10:09 in the xml textView Jun 19 16:11:01 no idea what you're talking about Jun 19 16:11:07 I don't read minds Jun 19 16:11:19 nice way to get defensive Jun 19 16:13:12 how do I reference a value from strings.xml in my java class Jun 19 16:14:43 getText/getResource().getText /getContext().getResource().getText Jun 19 16:14:44 pic Jun 19 16:14:47 *pick Jun 19 16:15:15 Or getString Jun 19 16:15:22 getResource and getString do not work Jun 19 16:15:23 Lots of options Jun 19 16:15:28 Yes they do Jun 19 16:15:30 <|0xD34D|> you need a context Jun 19 16:15:32 thats what I ment.. not getText.. getString Jun 19 16:15:33 Cannot resolve method. Jun 19 16:15:35 thanks for clearing that up SimonVT Jun 19 16:15:46 xastey, getText exists as well Jun 19 16:16:50 ah context helps. Jun 19 16:17:40 so what about when I am trying to set a public static final string based on strings? Jun 19 16:18:54 You don't Jun 19 16:19:21 So is it best practice not to define CONST values in the strings xml? Jun 19 16:19:55 I wouldn't Jun 19 16:21:02 k, but you would use constants in the class like I am doing correct? Since I don't need to translate them it seems fine. Jun 19 16:21:50 Yes, I use constants Jun 19 16:22:44 k Jun 19 16:27:10 In android studio when I push to a branch I also want it to checkout that branch locally after the push is finished, is this possible? Jun 19 16:28:01 I'm rebuilding the style for Holo.Light AlertDialog's (to make them draggable). Where would I be able to find the drawable's used for the buttons? In the source? Jun 19 16:32:14 it uses the android:background property on the style referenced by android:buttonBarButtonStyle in the theme Jun 19 16:32:31 which most likely points to ?android:attr/selectableItemBackground Jun 19 16:32:44 (which is a reference to an attribute on the theme as well) Jun 19 16:47:15 I am updating an application that I submitted to Google play and I am wondering what I am suppose to do with the 'Recent Changes' section. Am I suppose to append or replace this field with an updated version of my app? Jun 19 16:47:43 hmm, can I start a DialogFragment from another Fragment without going into childfragments etc? Jun 19 16:48:52 brian_petersen: how about a changelog? Jun 19 16:49:25 BtbN: well that's what I am wondering. Do I keep the original content there or replace it? Jun 19 16:49:34 brian_petersen play doesn't append wht you put to some pre-existing content Jun 19 16:49:43 do whatever you want? Jun 19 16:50:01 i'd keep some histroy, but if it starts to get wtf long, i'd remove some old updates Jun 19 16:50:11 I've exported my app from eclipse as an unsigned apk file. I've copied it to my phone and when I click it I get "Application not installed" but no other error message - how can I debug that? Jun 19 16:50:23 You can't install unsigned apk's Jun 19 16:50:53 why not, SimonVT? I enabled it in my settings Jun 19 16:51:02 /disabled Jun 19 16:51:05 No you didn't Jun 19 16:51:21 It's just the way it is Jun 19 16:51:29 If you want to install it on your device, you have to sign it Jun 19 16:51:32 you need to sign it with debug Jun 19 16:51:32 I guess I am just a little confused when it says that recent changes are linked to each app version. I think I understand now though. Jun 19 16:51:48 "Allow install of Applications not from Marked" Jun 19 16:51:51 is what it says Jun 19 16:51:57 So nothing about signing Jun 19 16:52:01 k Jun 19 16:55:37 hi Mavrik, are you there by any chance? Jun 19 16:58:59 brian_petersen: whenever you look at version X of an app in the play store, you will see the app description, followed by the recent changes from that update Jun 19 16:59:16 it is normally just a bulleted list of features added / bugs fixed / etc Jun 19 17:06:50 BHSPitMonkey: so for the recent changes, should I include my whole changelog or only the section of the changelog for the particular app version? Jun 19 17:08:07 brian_petersen: just the changes since previous, by convention. Jun 19 17:08:32 though there's no changelog police. Jun 19 17:09:07 SO,I have a ListView that's backed by an Adapter. I want ot insert a row into the list at a given index based on whether or not the view at that index is below or above the middle of the screen. Is there a way, just given an index of a LIstView, that I can both get the view and where it's absolutely posisiioned on the screen? Jun 19 17:09:18 I think I've seen some apps actually make two or three subheadings (representing other recent updates) with the changes beneath each Jun 19 17:11:11 thanks! Jun 19 17:12:03 Does anyone know about the data format used by Official Android contacts sync service? Jun 19 17:13:37 is there a quick way to figure out how much a scroll view can scroll ? Jun 19 17:13:46 err list view Jun 19 17:15:26 how far down could a scroll view scroll if a scroll view could scroll down Jun 19 17:18:32 anyone know if its typical for a phone in a low-flying aircraft (crop dusters, etc) to have 3G connectivity (assuming there is any in the area) ? Jun 19 17:21:43 usual caveats of moving quickly and tower handoff, of course Jun 19 17:22:16 seems to me like it probably would. but I have no evidence either way :) Jun 19 17:22:30 g00s: would work fine Jun 19 17:22:35 well, should work fine Jun 19 17:23:40 the main gotcha is going to be that the sector antennas on the towers most likely aren't going to be aiming upwards Jun 19 17:23:54 so you might get a really weak signal b/c there's no sense in them wasting power beaming at the sky Jun 19 17:27:17 dragorn yeah, cell antennas are usually directional. thanks ! Jun 19 17:28:02 g00s: that said, i've accidentally (legitimately accidentally) forgotten a phone turned on in a turboprop which flies pretty low Jun 19 17:28:13 g00s: and realized halfway through the flight and still had signal Jun 19 17:28:28 Anyboby know how/why I broke my project by refactor/rename in Eclipse? Jun 19 17:29:19 because.. eclipse... Jun 19 17:29:22 s/bob/bod Jun 19 17:29:25 theres your problem Jun 19 17:29:43 the adt handles refactoring also, like changing manifest / etc Jun 19 17:30:00 so also, because … google :) Jun 19 17:30:56 Google's part of the problem... LOL.. Jun 19 17:33:54 I'm trying to connect to my device through adb from ubuntu. My device is listed as "4df1233420d84fdf device" but still I get: unable to connect to 192.168.0.152:5555 Jun 19 17:34:10 I can ssh and mount my sdcard just fine... any ideas? Jun 19 17:35:07 snot you may have to try adding something to adb_usb.ini Jun 19 17:35:23 i haven't used ubuntu in a while though Jun 19 17:35:31 g00s: didn't even knew I had such a file... Jun 19 17:35:50 snot: once in a while mine will do that and I'll have to do an 'adb disconnect' Jun 19 17:36:06 you can try something like http://blog.apkudo.com/2012/08/21/one-true-adb_usb-ini-to-rule-them-all/ Jun 19 17:36:15 Bleeptech: didn't help Jun 19 17:36:49 g00s: ill try Jun 19 17:38:25 g00s: didn't work and my device is listed Jun 19 17:43:40 does anyone bother with amazon app store or any 3rd party app stores? Jun 19 17:45:09 I used to... but meh Jun 19 17:45:24 "seven carriers have signed onto their Ubuntu Carrier Advisory Group" .. looks like Shuttleworth is getting serious Jun 19 17:45:45 g00s, Bleeptech: thanks for your time. The solution was to root and use adb wirelsss. Jun 19 17:45:52 Ge0rG: so you only do Google Play now? Jun 19 17:46:08 "key question I’ve been asked by every carrier we’ve met so far: how can we accommodate differentiation, without fragmenting the platform for developers?" maybe they can pass the answer on to google, hah Jun 19 17:46:18 birbeck: that and direct APK downloads from the project page Jun 19 17:47:19 Ge0rG: may i ask why you dont use 3rd party app stores? no downloads? no money? not worth the time/effort? Jun 19 17:47:22 snot: D'oh! I thought you were there already.. 'adb -d' if you're cable connected. Jun 19 17:48:02 g00s: Google isn't the one fragmenting Android, thats Samsung :-) Jun 19 17:48:06 Bleeptech: This is a new phone and I need windows for rooting (or so I thought... apk rooting to the rescue) Jun 19 17:48:25 hi Jun 19 17:48:29 Bleeptech: I'll just try that Jun 19 17:49:37 Bleeptech: adb -d connect 192.168.0.152 <-- like so? Jun 19 17:51:46 hey anyone has any good recommendations/resources for newbies Jun 19 17:52:41 s2013: start by reading the topic of this channel? Jun 19 17:53:23 ok i did and? if you ar referring to the official docs i know about it already. im pretty sure there are other resources as well Jun 19 17:54:13 have you gone through the training and tutorial stuff there? Jun 19 17:54:58 i have skimmed through it but i am asking for other resources as well. Jun 19 17:55:03 <|Agent> I just picked one, did it, and then started screwing around with areas of interest on my own. Which is probably frustrating for SimonVT. :) Jun 19 17:55:30 <|Agent> …since I end up asking about weird hypotheticals. Jun 19 17:55:40 well... don't skim it. Once you've gone through that stuff, you should be in a position to start writing real code Jun 19 17:55:55 from my experience official docs are more of a reference than actual guide/tutorial. there are always better resources out there Jun 19 17:56:09 s2013: apart from the training and tutorial sections of the site, you mean? Jun 19 17:56:11 meh Jun 19 17:56:16 are there any books? any screencasts? etc. Jun 19 17:56:29 no, there are absolutely no books or screencasts on android development Jun 19 17:56:41 <|Agent> Probably. Grab a "Learn Android in 21 Days" book at your local bookstore. Jun 19 17:56:46 <|Agent> or browse Jun 19 17:56:50 <|Agent> or from your library Jun 19 17:56:59 or just read the fucking training stuff on the fucking official site Jun 19 17:57:09 <|Agent> Lots of resources out there. Jun 19 17:57:14 <|Agent> You don't need us to find them. Jun 19 17:57:17 kevinb: if you want to act like a smartass you should know i was asking for recommendations. there are tons of books and resources which is why i asked if there is anything you guys would recommend Jun 19 17:59:17 I'm not a guy but I would recommend the guides on the 'official' site anyway. Jun 19 18:00:05 |Agent, I've seen worse questions Jun 19 18:00:10 nevermind. thanks for your help. i am not sure how hard it is to understand that i am asking for resources besides the official one to supplement my learning. but anyways, thanks. Jun 19 18:00:29 s2013 you can look into Reto's book or the Big Nerd Ranch book Jun 19 18:00:42 also see past I/O videos Jun 19 18:00:56 <|Agent> s2013, well, you asked for recommendations for good ones, and it seems that at least two people here think the official ones are good. *shrug* Jun 19 18:01:00 probably a good one for everyone is world of listview, whatever that was called Jun 19 18:01:14 thank you g00s ill look those up Jun 19 18:01:27 but you're wasting your time looking into anything until you've gone through the official tutorial Jun 19 18:02:25 <|Agent> The #iphonedev people also generally recommend the official tutorials for newbie iOS devs. Jun 19 18:02:27 s2013 a really good book at the time, i hope it gets updated, is "Android in Practice" Jun 19 18:02:45 which is more about advanced patterns ; gotchas Jun 19 18:03:23 g00s: its published by manning. they publish awesome books. unfortunately their books are always outdated Jun 19 18:03:31 |Agent, one of the most helpful people in #iphonedev wrote a book :) Jun 19 18:03:33 and they update infrequently Jun 19 18:03:39 actually, quite a few Jun 19 18:03:43 <|Agent> yep Jun 19 18:03:47 iOS has lots of good books Jun 19 18:03:52 <|Agent> But they still recommend the tutorials. :) Jun 19 18:04:22 i dont understand what is so difficult to grasp the concept that many people learns from multiple sources. anyways, ive been on irc long enough i should be used to people behaving this way Jun 19 18:04:32 experts suck at recommending stuff to newbies, because they are not newbies and haven't been for a while Jun 19 18:04:38 <|Agent> true Jun 19 18:04:45 yeah, it's a bastard when people give you a straight and correct answer to your question, but it's not the one you want to hear Jun 19 18:05:17 <|Agent> That reminds me, I should probably dig up a physical book at my local library as well, since I prefer those to reading online. Jun 19 18:05:37 i asked for resources besides the official guide. telling me official guide is the answer is not the correct answer. anyways, if my questions are stupid, just ignore me. Jun 19 18:05:44 g00s has been very helpful Jun 19 18:05:58 no, you didn't Jun 19 18:06:21 you asked for resources for newbies, then when you were pointed at the most accessible and correct resource, you said you'd skimmed it Jun 19 18:06:56 okay i guess "other resources" mean the exact same resource. anyways, im going to stop talking about it. Jun 19 18:08:21 Tss, you're not even done with 1 resource, and now you're asking for other Jun 19 18:10:10 g00s: do you need to be very proficient with java or would basic java knowledge be enough to get started with android? Jun 19 18:10:22 very? no, basic? yes Jun 19 18:10:42 thanks. Jun 19 18:10:55 you will need to deal with concurrency Jun 19 18:11:16 looking through JCIP is a good start (java concurrency in practice) Jun 19 18:11:24 also Effective Java can't hurt Jun 19 18:11:32 (but thats after you have a basic understanding of Java) Jun 19 18:11:54 there was a video from square on modern android internal app design Jun 19 18:11:55 im going to brush up on my java first. i learned basic java a while back and made some basic programs but ill try to refresh my memory Jun 19 18:12:07 i dunno where it is anymore hizzle Jun 19 18:12:38 s2013 you can see this http://www.infoq.com/presentations/Android-App Jun 19 18:13:10 thanks let me view it Jun 19 18:14:23 also, you better download the farmework source code; the user guide is great for learning about a targeted topic, but often the javadocs suck ass Jun 19 18:14:50 for java? Jun 19 18:14:57 or for android you mean Jun 19 18:14:57 for the android framework Jun 19 18:15:01 oh ok Jun 19 18:15:14 also, you'll want to d/l iosched for a nice example Jun 19 18:15:26 2012 is up - where the fuck is 2013? they said it was coming soon Jun 19 18:15:33 do you use your own phone to test or do you have a phone specific for testing? Jun 19 18:15:55 i only have dev phone and use the emu for most things Jun 19 18:16:02 day to day i use ios now Jun 19 18:16:03 hmm. usually eclipse auto-completion provides param names that match the javadoc/ implementation of a method, but now it's just calling everything arg1, arg2, etc. anyone know of a setting to change that? Jun 19 18:16:14 i tried using the mulator, it was slow as hell Jun 19 18:16:40 for instance if i generate the stub for an event listener, and it creates the empty method overrides Jun 19 18:16:42 i just got a samsung s4 but someone told me its using an older version of android? Jun 19 18:16:59 and that the nexus has the most current version. i am still confused by the versioning in android Jun 19 18:16:59 use the x86 emu + haxm + gpu accel enabled Jun 19 18:17:42 its not a black and white decision, but there are 2 extremes: test on nexus devices, or test on the most popular devices. of course you can do both Jun 19 18:17:58 i'd probably get a sgs4 first, these days Jun 19 18:18:22 oh ok Jun 19 18:18:27 if you could, only get one device, get a N10 Jun 19 18:18:44 i contradicted myself there, but this is because it can do different densities / sizes Jun 19 18:18:49 nah i got the s4. i had a razr i used to test but i think s4 is my regular phone Jun 19 18:22:09 on my motorola dext, when I hold down the camera and power keys together and plug the phone in, I don't get to recovery mode Jun 19 18:22:15 nothing happens Jun 19 18:22:18 the motorola logo comes on the screen and the white light turns on but that's it Jun 19 18:22:22 I presume it's booting my kernel and crashing Jun 19 18:22:23 rah: that's too bad. Maybe you should ask about this in #android-root ? Jun 19 18:22:45 lov: why not here? Jun 19 18:22:58 Because rooting and custom firmware is generally out of scope of this channel Jun 19 18:23:14 #android-root, however, has gobs of people who LOVE to do that kind of thing and chatter about it ENDLESSLY. Jun 19 18:23:44 lov: why don't I just ask here and see if anyone answers? Jun 19 18:23:47 is your question about hacking away on platform? Ask here. Is your question about flashing your phone with your new platform build? probably not here. Jun 19 18:23:49 my question is: how can I get to recovery mode? Jun 19 18:23:55 rah: because, again, it's not really on topic. Jun 19 18:24:01 this channel is for application/platform development Jun 19 18:24:13 do you have a question related to application/platform development? Jun 19 18:28:37 for my question earlier regarding generated method param names matching their implementation names, i installed coumentation and source packages through sdk manager and it fixed it, so one of the two does the trick, probably source Jun 19 18:32:08 sores Jun 19 18:32:25 * mikedg karate chops Jun 19 18:32:34 mikedg on your crotch, or your code ? Jun 19 18:36:47 g00s: on your face Jun 19 18:37:20 assthroughglass.com Jun 19 18:37:35 milfassthroughglass.com Jun 19 18:37:41 why didnt i think of these earlier :/ Jun 19 18:37:47 now everyone has glass and can compete Jun 19 18:38:07 mikandi might have got those domains already Jun 19 18:39:03 good point Jun 19 18:39:22 if you, you can sell them to them for billions Jun 19 18:39:27 if not* Jun 19 18:39:38 dirtyglassholes.com Jun 19 18:40:32 next level porn Jun 19 18:40:49 gloryglassholes.com Jun 19 18:43:39 You people are just pulling these out of your glass.. Jun 19 18:43:53 why doesn't HeaderViewListAdapter cache my adapter views? Jun 19 18:45:36 because it re-uses them for other items Jun 19 18:46:30 doesn't seem to be my case.. I have a list view that at most only 2 rows are shown Jun 19 18:46:51 but say I do a scroll/fling it ends up calling my getView Jun 19 18:46:59 shouldn't it only call it at max 2 times if all views are the same? Jun 19 18:47:33 How would you set the data on the views if it didn't call getView? Jun 19 18:47:46 sorry I explained it wrong Jun 19 18:47:52 I mean its passing convertView as null Jun 19 18:47:59 this is on position 5 for instance Jun 19 18:48:14 convertView isn't guaranteed to be non-null Jun 19 18:48:28 if all my views are the same and at most only 2 views are displayed on screen shouldn't pass the recyled view? Jun 19 18:48:56 yes I understand that pfn .. what I'm trying to do here is understand why it is null from the cases I presented Jun 19 18:49:15 does it matter? Jun 19 18:49:19 g00s: quit trying to distract pilots! Jun 19 18:49:21 Short answer, you're doing it wrong Jun 19 18:49:22 if you want to understand, read the source to the various adapter views Jun 19 18:49:31 Not enough information for a long answer Jun 19 18:50:00 thats what I'm doing pfn.. SimonVT what information do you need? Jun 19 18:50:37 watermelon oreos? Jun 19 18:50:37 wtf? Jun 19 18:53:00 sounds like a future version of android Jun 19 19:03:46 In android studio when I push to a branch I also want it to checkout that branch locally after the push is finished, is this possible? Jun 19 19:03:53 Currently I am using ContentValues and db insert, but there is also a SQLiteQueryBuilder, should I use this instead? Jun 19 19:04:53 Snicers-Work: you can checkout whatever branch you want to. I'm not sure what the issue is Jun 19 19:05:44 BHSP, no issue really,just when I am pushing to a new remote branch I would expect it to have an option to checkout that branch at that time so I don't accidentally push to my other branch. Jun 19 19:08:24 why isn't it already checked out? Jun 19 19:09:21 <|Agent> I have a question about lifetimes. If I have a Handler in an activity, and send a message through it, the Message includes a replyTo Messenger, right? What happens if I stash that Messenger in the receiver? The Messenger will be kept alive, but will it in turn keep the Handler alive? Jun 19 19:09:23 Snicers-Work: your workflow for new branches should be: Create (and checkout) new local branch, make some commits, push to remote Jun 19 19:09:25 I had made changes on the develop branch that ended up being a new feature, so I wanted to create a feature branch based off my non-pushed changes. Jun 19 19:09:47 I know, but I didn't realize that it was going to turn into a branch, then it did, so then I created the branch. Jun 19 19:10:39 Snicers-Work: well which branch are your new commits on, then? Jun 19 19:10:57 are you saying you committed all your changes to master already? Jun 19 19:11:26 I want to make my own SuperTabBar that has tabs which view areas are in fact Fragments. I want to construct the SuperTabBar in the activity's layout XML like this: -- That is two tabs in the tabbar. Jun 19 19:11:42 Each TabFragmentN extends my own SuperTabFragment. Jun 19 19:12:06 no, I have a master branch, develop branch, and then features/[feature_name_here] branch. I started changing something menial for my dev branch and it snowballed into a feature, I then pushed to a new branch that did not exist ( created a new branch) and then had to check that branch out after pushing changes. Jun 19 19:12:12 However, I cannot find a way to nest non-View components under a View component -- the application crashes, saying it's invalid. Jun 19 19:12:51 Snicers-Work: you don't push changes until after you've committed them to a branch. Jun 19 19:12:54 Surely you're creating a local featurebranch before you go pushing to remote Jun 19 19:12:57 started on develop, ended up making changes, then making and pushing to a new branch, and I would expect android studio to have an option to checkout whatever branch I am pushing to. Jun 19 19:13:08 Is that a way to accomplish near-arbitrary component trees? Jun 19 19:13:13 SimonVT, that is my point, in this case I did not. Jun 19 19:13:57 Well, now you know for next time Jun 19 19:14:07 Snicers-Work: your git workflow is out of whack Jun 19 19:14:16 Of course, when the SuperTabBar constructs, I want it to parse its children (SuperTabFragments which are Fragments) and then add handle them appropriately -- I've already done this with a TabHost-approach where SuperTabs are added programatically.) Jun 19 19:14:26 But I really want it all done in layout xml. Jun 19 19:14:43 commit to your local branch (obviously this means you've checked it out), and THEN push that branch to remote Jun 19 19:14:48 BHSPitMonkey a bit in this case yeah, so if I make a change that turns into a feature I can just make a local branch and it will move all these changes that are not committed to the new branch or do I commit first? Jun 19 19:15:36 Snicers-Work: your uncommitted changes will float around until you commit them; so to answer your question, yes Jun 19 19:15:36 New branch first, you wouldn't want it on your dev branch before it's done Jun 19 19:15:45 k Jun 19 19:15:46 thanks. Jun 19 19:16:15 Zta: SuperTabBar's children are going to be the fragments views, not the fragments Jun 19 19:16:17 Basically, I need to know what class to extend in my SupeTabBar in order to be able to build this structure: Jun 19 19:16:23 Snicers-Work: that all said, I think you might have done something weird with what you did push Jun 19 19:16:31 <|Agent> Zta, it seems likely that Google did their TabHost system like they did, because that is the easiest way to implement it. Jun 19 19:16:46 <|Agent> or maybe even only way to implement it. Jun 19 19:16:50 No, I verified, it is fine. Jun 19 19:16:52 it sounds like you pushed your dev branch to remote/some-new-feature Jun 19 19:16:57 TabHost sucks Jun 19 19:17:19 which means now your remote dev branch is behind your local dev branch (you should push it so they're in sync) Jun 19 19:17:20 A linearlayout with a few buttons and you got yourself an infinitely simpler implementation Jun 19 19:17:27 |Agent, SimonVT: It sucks =) So I was hoping to build a better. Mostly to get a hang of custom views. Jun 19 19:17:55 SimonVT: Yes, but then I programatically have to add the Fragments that are to be associated with each Tab. Jun 19 19:18:07 Yes Jun 19 19:18:53 <|Agent> Perhaps you can create a SuperTabBarFragmentView class that can instantiate a SuperTabBarFragment subclass automatically? Jun 19 19:18:54 I don't want that. That's TabHost =) Jun 19 19:19:32 Don't define fragments in xml unless you're planning on it always being visible Jun 19 19:19:54 UI programming is too complicated. Let's all go back to text, please Jun 19 19:20:04 |Agent: hm... ... Jun 19 19:20:24 <|Agent> Not sure how you'd extend the XML to let the user specify a subclass to instantiate, but yeah, like that. Jun 19 19:20:36 Not a bad idea Jun 19 19:20:58 Mine is better, of course ... but only on blueprint since it can't be realized ;) Jun 19 19:21:35 Thanks. Is a good I dead. I'll work on it. Jun 19 19:22:13 In the mean time, if anyone can think of a widget class that lets me nest Fragments, please let me know. Jun 19 19:22:38 What does that even mean Jun 19 19:23:58 Jun 19 19:24:24 Any viewgroup will let you do that Jun 19 19:24:43 That just tells the layoutinflater to add the fragments views to the viewgroup Jun 19 19:26:06 Zta: if you are trying to have some tabbed navigation, can't you just have a single activity that controls the tab bar and a single fragment in that layout, and make the tabs swap the fragments in and out of that Jun 19 19:26:37 tnzr: yes, but I want to add the tabs/fragments in layout, not programatically. Jun 19 19:27:37 SimonVT: My SuperTabBar (extending ViewGroup) has trouble: 06-19 21:25:42.406: E/AndroidRuntime(23496): java.lang.RuntimeException: Unable to start activity ComponentInfo{dk.asklandd.imgur/dk.asklandd.imgur.main.MainActivity}: android.view.InflateException: Binary XML file line #35: Class is not a View dk.asklandd.imgur.main.favourites.FavouritesFragment Jun 19 19:27:58 Then you're defining your fragment wrong Jun 19 19:28:25 Also, it's lower case fragment Jun 19 19:28:53 Wait, are you literally writing ? Jun 19 19:29:00 Exactly Jun 19 19:29:05 Yeah, none of them Jun 19 19:29:27 You'd even need to write a custom xml parser to allow something like that Jun 19 19:29:34 Hm. Jun 19 19:29:44 I don't want to go there. Jun 19 19:30:09 Just handle it in code Jun 19 19:30:13 is probably the way to go. Jun 19 19:30:16 Such a simple problem, it's hardly any code Jun 19 19:30:38 I know, I've already done it in code. Jun 19 19:30:44 It's amexperiment. Jun 19 19:30:54 *an experiment Jun 19 19:31:02 I wanted to see if it could be done in layout Jun 19 19:33:50 It's basically a wrapper around TabHost that lets one specify the Tabs to use in layout, and combine it with Fragments. Jun 19 19:57:44 is there really no easy way to scroll a listview manually while dragging ? Jun 19 20:09:41 What does this weird style notation here mean?: Jun 19 20:11:10 zta: android system style Jun 19 20:13:08 funkbox, what do you mean? Jun 19 20:14:15 memoryleak: But the "?" ? Jun 19 20:14:22 Instead of @ Jun 19 20:14:48 It's a theme attribute Jun 19 20:14:55 ?= currently applied theme Jun 19 20:15:32 zte: http://developer.android.com/guide/topics/resources/accessing-resources.html#ReferencesToThemeAttributes Jun 19 20:15:47 *Zta Jun 19 20:16:43 Thank Jun 19 20:20:21 help mac does not recognise my android device Jun 19 20:20:36 its a Samsung Galaxy S3 running Jelly Beans Jun 19 20:20:42 try orginal cable, try different usb port Jun 19 20:21:01 I downloaded Android Stusio, stuck at waiting for device Jun 19 20:21:10 Its the original cable Jun 19 20:21:20 and I have tried different ports Jun 19 20:21:35 did you enable usb debbung ? Jun 19 20:21:44 *debugging Jun 19 20:22:37 I've had problems with some USB ports as well on the same PC (on Linux). Not sure exactly why, possibly related to how the ports connect to which controller. Always work on the same ports though. Sometimes adb needs a kick in the teeth as well (restart). Jun 19 20:22:56 memoryleak Jun 19 20:23:01 * bullicon covers eyes Jun 19 20:23:04 working now Jun 19 20:23:12 What did you change? Jun 19 20:23:19 usb port Jun 19 20:23:27 works from the studio Jun 19 20:23:42 but not on finder Jun 19 20:23:45 that is strang Jun 19 20:24:00 No that's not. Mac doesn't support MTP Jun 19 20:24:07 MTP Jun 19 20:24:08 wants that Jun 19 20:24:08 It's not AS, it's adb (which AS starts up if necessary). Check from the cmdline with "adb devices". Jun 19 20:24:08 ? Jun 19 20:24:12 Download "Android File Transfer" Jun 19 20:24:13 whats that? Jun 19 20:24:29 Protocol for Media devices Jun 19 20:24:34 I downloaded Kies Jun 19 20:24:40 That sucks :) Jun 19 20:24:44 memoryleak what is wrong with Copy and Paste Jun 19 20:24:44 * kjeldahl pukes Jun 19 20:24:47 |Agent: I think I've got something here. It doesn't work quite yet, but it does parse and instantiate properly =) Jun 19 20:24:58 opening your phone like I used to do on ubuntu Jun 19 20:25:04 and you can mount your phone Jun 19 20:25:22 ok Mac sucks on this Jun 19 20:25:27 is MTP an open protocol Jun 19 20:25:32 However, S3 hast just MTP support, and mac doesn't (but e.g. windows supports too) Jun 19 20:26:02 "For Mac users only. You don't need extra software to connect your Android device to a Windows computer." lol Jun 19 20:26:34 ok I have my phone connected to the computer with an hello world screen Jun 19 20:26:55 Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.sample/.MainActivity } Jun 19 20:27:05 can I write code while my phone updates instantly Jun 19 20:27:20 like you do with interpreted langauges? Jun 19 20:27:37 bullicon: d.android.com Jun 19 20:27:55 memoryleak ok cool Jun 19 20:28:01 rock and roll! Jun 19 20:30:20 thanks memoryleak Jun 19 20:30:44 np Jun 19 20:36:46 Okay, new problem: In my MainActivity's main.xml I have: . I want the SuperTab to be added to a List in SuperTabBar. How do I either have SuperTabBar refer the child SuperTabs or vice verse? I find that getChildAt(n) does not do what I want it to. Jun 19 20:37:44 Maybe I could find the SuperTabBar by its id, but I'd like to know if there's a different way. Jun 19 20:40:47 I mean, they're already neatly organized in the XML tree in the activity layout. Jun 19 20:45:51 yep, getChildAt is what you want Jun 19 20:46:19 what could be the reason that I can't select x86 images in the android device manager? Jun 19 20:47:02 1. I've installed Intel HAXM, 2. I've download everything possible using Android SDK-Manager Jun 19 20:48:03 <|Agent> If I have a Handler in an activity, and send a message through it, the Message includes a replyTo Messenger, right? What happens if I stash that Messenger in the receiver? The Messenger will be kept alive, but will it in turn keep the Handler alive, or is there an opportunity to break the relationship in there? Jun 19 20:52:00 hey SimonVT, working on this autocomplete text view... it seems to display suggestions very sparsely Jun 19 20:54:22 Not sure what that means Jun 19 20:54:32 doing the geo-lookup turns out to be very fast, so i'm not doing anything fancy with an adapter yet. onTextChanged I take the text, geolocate it, and replace the adapters contents with the result set from the geolocate (which i've set to limit to 10 results). i'm logging the result set so i know it's there. anyway, if i type, for instance, 4992 ver - nothing shows, despite there being results that match. i type 4992 vero - still n Jun 19 20:59:09 suddenly, a random apple appears  Jun 19 20:59:15 I don't know, really.. Did you mess up populating the adapter? :p Jun 19 20:59:26 The suggestions are just a listview in a PopupWindow Jun 19 21:00:04 does it do any filtering of the arrayadapters contents based on the string in the input ? Jun 19 21:00:14 Yes Jun 19 21:00:21 ah, that's probably why Jun 19 21:00:31 the geocoder result set doesn't necessarily match Jun 19 21:00:50 I believe the adapter is required to implement Filterable Jun 19 21:01:25 Maybe that's a better way to get the input, rather than a textwatcher :p Jun 19 21:01:52 Anyway, clone framework-base, look through its source :p Jun 19 21:02:16 So you know how it behaves Jun 19 21:02:23 Step 1 of everything Jun 19 21:03:09 mehhh :( Jun 19 21:03:20 there should be a setFilter() method that permits a null arg Jun 19 21:03:53 or setFilter(new Filter() { onDoFilter() { //do nothing}); Jun 19 21:04:22 memoryleak: Are you using the correct images when creating an avd? Jun 19 21:04:52 pieces029: I've re-installed HAXM - now it works Jun 19 21:05:21 oh well that's good Jun 19 21:08:27 <|Agent> I suppose I'd better assume that the Messenger keeps the Handler alive and use a weak reference to the Messenger. Jun 19 21:10:33 what should be passed to the initializer of a view? all the examples seem to pass "self" ie: "myText = new TextView(this);" but I am unclear what that that should be Jun 19 21:11:06 I'm trying to trace my opengl calls but I'm getting "selected VM does not support Tracing OpenGL Calls" java 1.7.0_03 Jun 19 21:19:01 <|Agent> catphish, it is a "Context". All Activity and Service objects are also Context objects. Jun 19 21:19:43 <|Agent> An Application itself is also a Context. Jun 19 21:19:56 |Agent: thanks, i had tried to create a view object from a timer, which isn't a Context Jun 19 21:19:58 google needs to seriousily disable push ads Jun 19 21:20:10 SimonVT: looks like i just need to use my own adapter and override the getFilter to return a filter of my liking (i.e. does nothing) Jun 19 21:21:26 lasserix: get a newer version of android to identify who's sending the ad, uninstall the app. Jun 19 21:21:55 google, disable ads? BAHAHAHAHAHAHAHAHAHAHA Jun 19 21:23:01 yeah that would be like akamai not sharing your data anymore Jun 19 21:23:27 lov: oh i mean as a general way to raise the bar Jun 19 21:23:41 i have just downloaded a dozen or so games to see what the best driving toggles are Jun 19 21:23:50 and half of them are 2 bit clones with push notification Jun 19 21:24:04 well, as scummy as they are, don't forget that ads pay money and developers need money. Jun 19 21:24:09 not all ads, just push notifications/ stuff that spawns icons on your homescreen Jun 19 21:24:12 i agree Jun 19 21:24:35 yeah definitely Jun 19 21:25:00 don't get me wrong, but push notifications in particular i think are not much better than those spiral of death pop ups on ads Jun 19 21:25:20 i dont see google implementing that, so why not raise the bar for android too Jun 19 21:27:38 on that note anyone know a game with the user driving some vehicle that has good steering / acceleration controls? Jun 19 21:27:59 lasserix: what do you mean spawn icons on your homescreen Jun 19 21:28:01 is this a thing? Jun 19 21:28:07 do they not require permissions for that? Jun 19 21:28:08 yeah Jun 19 21:28:11 oh wow. Jun 19 21:28:11 they do Jun 19 21:28:16 but still Jun 19 21:28:17 oh, so you can figure out who does it Jun 19 21:28:20 yeah Jun 19 21:28:21 yeah, it's kind of scummy Jun 19 21:28:26 exactly Jun 19 21:28:48 1 star and uninstall, go! Jun 19 21:29:55 Remember when Dolphin used to do that Jun 19 21:30:03 or does it still do that? Jun 19 21:30:57 there's a small handful of apps that legitimately use that functionality. (which is annoying because it's a private API but third party launchers support it so users/other developers expect it. but it's buggy and gets abused by spam more than legitimately used) Jun 19 21:31:19 like some browsers let the user send a bookmark from the browser to the desktop, rather than create the shortcut from the launcher Jun 19 21:42:39 Heya Jun 19 21:44:03 Is there a way to find out what profiles of h.264 video a given device can support? Jun 19 21:44:32 like android 2.3 as a platform guarantees that baseline 3.0 will be supported Jun 19 21:44:36 but devices may support more Jun 19 21:44:42 I am trying to create multiple sqlite tables in android, currently I am setting the string to the query, then executing, then resetting, is there a better way? Jun 19 21:45:33 Is there any way of detecting which (parent) View a child View is added to? E.g. . A listener would be nice. I need my child to have a reference to custom.ParentView. Jun 19 21:45:47 ProgramMax, I think not Jun 19 21:45:57 ProgramMax, but it's pretty safe to assume 4.x devices support Main Jun 19 21:46:11 Zta View.getParent(); Jun 19 21:46:14 http://stackoverflow.com/questions/7099249/using-view-getparent-in-views-constructor Jun 19 21:46:36 the only info I can find on this so far is http://developer.android.com/guide/appendix/media-formats.html Jun 19 21:46:49 which basically says baseline (no version number) is supported on Android 3.0, Jun 19 21:46:53 3.0+ Jun 19 21:47:00 whats this 25$ registration fee in google play? Jun 19 21:47:12 How do you get the bounds of a parent view? Jun 19 21:47:21 given a view Jun 19 21:47:28 There is a one time $25 registration fee charged for a Google Play Developer Console account. We charge this fee to encourage higher quality products on Google Play (ie. less products with SPAM). Jun 19 21:47:37 https://support.google.com/googleplay/android-developer/answer/113468?hl=en Jun 19 21:48:54 Snicers-Work: doesn't seem to work... Jun 19 21:50:29 Snicers-Work: Ah, let me read that more closely... Jun 19 21:53:13 Right, constructors in Android are a bad place to initialize View relation stuff.. Jun 19 21:54:58 zta: what you can do is default the view to something Jun 19 21:55:10 then use a runnable with post delayed to do whatever you have to do Jun 19 21:55:21 ie if you need measuring dimensions Jun 19 21:55:36 just check they are not 0, do your stuff remove callbacks otherwise repost in 200 or whatever Jun 19 21:55:50 make sure you have some kind of "loading" holder Jun 19 21:56:22 anyone know ifi t's possible to limit Geocoder results to a region by country code rather than bounding box? Jun 19 21:56:40 oh but to answer your question Jun 19 21:56:45 don't child views have getParent? Jun 19 21:59:19 lasserix, Snicers-Work: OnHierarchyChangeListener seems to do what I want. Jun 19 21:59:43 oh yeah Jun 19 21:59:46 I a OnHierarchyChangeListener to my CustomParentView and then detect when CustomChildViews are added. Jun 19 21:59:49 Elegant. Jun 19 22:00:02 WHy is it so hard to get a View's parent's bounds >< Jun 19 22:13:58 Where does everyone learn to build/modify the source? The best I can do is compile the rom when someone else has already set up all of the device specific files for me Jun 19 22:14:29 But there are people running around making changes specifically for their rom along with custom kernels Jun 19 22:16:32 Hjax there is an oreilly book that is useful Jun 19 22:17:30 http://shop.oreilly.com/product/0636920021094.do Jun 19 22:17:44 but android-dev hates books, read the docs ! Jun 19 22:18:14 docs fox Jun 19 22:20:28 seems the sdk has evolved quite a bit, im sure old books on certain topics are outdated Jun 19 22:30:38 does plain intellij + android plugin do a decent job with library projects? i remember an ongoing thing with the ADT where transitive dependencies were not correctly handled. is this working in intellij ? Jun 19 22:33:03 i dunno but the new android studio based on intellij crashed on start multiple times and i was never able to get it actually running, so i'm still on eclipse/adt Jun 19 22:33:37 i've not had problems with googleplay services or actionbarsherlock library projects, haven't used any others tho Jun 19 22:33:41 google's handiwork is apparent there now too, heh Jun 19 22:37:45 speakingcode-wor there was a blog from one of the lead eclipse guys to countdown features to kepler; i like what one of the commenters said "does it crash less?" Jun 19 22:38:09 I use maven for all of my dependencies so I don't really know about these problems -.- Jun 19 22:38:11 i've never had an eclipse crash Jun 19 22:38:14 no a full one, anyway Jun 19 22:38:37 never had any problems with intellij though... Jun 19 22:38:40 i dont think i have either. i'm using 3.8.2 which behaves really well Jun 19 22:38:47 not that i'm a big eclipse fan, i work in vim for just about everything but android devlopment Jun 19 22:38:56 intellij has been fine for me (the plain one) Jun 19 22:39:34 so naturally i hate eclipse Jun 19 22:39:49 I've created a lib project in android studio and it seems to be compiling just find. But I can't find the jar file. Anyone know where it should be or why I can't seem to find it? Jun 19 22:39:53 but i think a lot of people just hate on it excessively because that's the cool thing to do now Jun 19 22:40:18 speakingcode-wor: I was actually starting to like it... the later versions was getting faster :) Jun 19 22:40:50 speakingcode-wor yeah; especially when you ask somebody why intellij is so great and the answer is "because eclipse sux" :| Jun 19 22:41:04 one thing i see a lot of people do is install like 80 thousand plugins on a single eclipse instance, and then complain that it's slow and faulty Jun 19 22:41:18 i only have adt + jdt and its very speedy Jun 19 22:41:42 im using android studio and i like it so far Jun 19 22:42:10 i worked at a place where eclipse was pretty standard, for a while, so i just used one copy for android, one for java web stuff, one for php, etc Jun 19 22:42:13 I won't try to convert eclipse lusers, they'll just have to try out intellij for themselves :p Jun 19 22:42:47 my workplace has pretty much fully converted to intellij since I started working there though Jun 19 22:42:49 never really had issues with any one of them. i've seen intellij numerous times and nothing has compelled me to move to it Jun 19 22:43:11 eclipse gave me an out of memory error and crashed once Jun 19 22:43:16 havent used it since Jun 19 22:43:30 you should download more ram Zaknafein ;-p Jun 19 22:43:37 i have 16gb of ram :) Jun 19 22:43:42 eclipse is shit Jun 19 22:43:43 Anyone have a clue about my lib problem with android studio? Jun 19 22:44:11 sorry snot. try find -n "nameofyourjar" Jun 19 22:44:18 speakingcode-wor: I did Jun 19 22:44:29 well actually find . -name *.jar Jun 19 22:44:42 I've used for a week or two every major version they released. It was nice at the begin, but got bloated more and more Jun 19 22:44:42 yeah something like that Jun 19 22:44:43 only shows support lib Jun 19 22:44:57 apklibs don't go in jars, afaik Jun 19 22:45:16 ^^ Jun 19 22:45:21 hmm Jun 19 22:45:36 you add them as modules as is an compile it in the actual project Jun 19 22:46:10 Zharf: so what am I suppose to add in the project using the lib? Jun 19 22:46:42 snot, add a module, point it to the existing .iml in the library path Jun 19 22:46:44 or something Jun 19 22:47:06 then add it as a dependency to the project Jun 19 22:47:24 hmmm Jun 19 22:47:39 Zharf: ill probalby be back in a few mins :) Jun 19 22:47:57 snot, I've never used android studio by the way, I'm just guessing based on intellij idea Jun 19 22:50:13 Zharf: android studio is based on intellij, right? Jun 19 22:50:20 yeah Jun 19 22:53:47 Zharf: project structure -> modules -> ... ? Jun 19 22:54:37 click the green + and import module Jun 19 22:56:22 Zharf: "create mod from existing sources" or "import module from external model"? Jun 19 22:56:45 no no, just import module Jun 19 22:56:50 it should let you choose the iml file Jun 19 22:58:41 http://www.youtube.com/watch?v=GoCQgE4gzbU Jun 19 22:59:45 how would I do a non-global settings activity? Jun 19 23:01:26 Zharf: it does but it still won't resolve my class Jun 19 23:02:13 snot, after that open module settings and set the library module as a dependency for the one that wants to use it Jun 19 23:03:13 snot, actually that module settings is the project structure -> modules thing Jun 19 23:03:25 choose your project module, go to dependencies and add the other module Jun 19 23:05:08 just to confirm I'm not nuts: There's no way to use custom fonts in XML without creating a custom View class, correct? Jun 19 23:09:31 How do people seem to get around the Play store filters with custom ROMs? I thought many custom roms edited their build.prop to dupe the play store into thinking they are using a different phone Jun 19 23:10:20 Zharf: I want to use TabsSimplified in UsingTabs... http://imgur.com/X7XQKpQ Jun 19 23:10:26 But I see people leaving comments from devices that are blocked on my Play store filter (missing sensor) Jun 19 23:10:27 Zharf: does that look right to you? Jun 19 23:11:12 snot, um... sorry I'm confused Jun 19 23:11:17 me too :) Jun 19 23:11:23 UsingTabsLib is the library? Jun 19 23:11:29 Zharf: nope Jun 19 23:11:33 other way around Jun 19 23:11:52 what's that third thing module? :) Jun 19 23:12:13 but yeah, the module that uses the other one should have the other one as a compile time dependency, so yes, it looks correct Jun 19 23:12:26 Zharf: no clue, I havent created it (manually at least) Jun 19 23:12:39 Zharf: ill try to start over Jun 19 23:13:31 this is why I think android library dependency handling is a mess Jun 19 23:13:32 :p Jun 19 23:13:42 and why I love maven for doing it form e Jun 19 23:13:44 for me* Jun 19 23:14:30 well, gradle attempts to resolve that Jun 19 23:14:38 I'm sure Jun 19 23:15:17 * pfn uses sbt Jun 19 23:15:20 problem solved there, as well Jun 19 23:21:44 noob android coding question: I want to create a View class that I can either use via tags or by using tags with the fully-qualified class name that both has a java class and xml layout backing it Jun 19 23:21:51 how do I go about creating this element? Jun 19 23:22:08 Zharf: http://i.imgur.com/blydT7a.png - thats a brand new project Jun 19 23:22:16 :/ Jun 19 23:22:31 ok Jun 19 23:22:44 I guess the -Project is the one that needs the dependency then? :) Jun 19 23:23:16 alternately, what concepts should I read about so that I can better understand what I'm doing? Jun 19 23:24:24 Zharf: I'm guessing that as well and trying that atm Jun 19 23:28:53 rager: just extend View or ViewGroup and then reference it in your XML like Jun 19 23:29:11 rager: it sounds like you know all the concepts and just need to put them together, heh Jun 19 23:29:49 can I include an xml layout for this custom View? Jun 19 23:30:03 sure Jun 19 23:30:12 the custom view would inflate(R.layout.your_xml) Jun 19 23:30:24 ok - just inflate()? Jun 19 23:30:47 alternatively, Jun 19 23:30:53 and typically, I like doing when inflating view layouts Jun 19 23:31:22 Zharf: so damn close! http://i.imgur.com/dHMO54z.png Jun 19 23:31:57 Zharf: it was even autocompleting and all... I really thought I had it Jun 19 23:32:44 snot, I guess gradle needs some different way to tell it about the dependency Jun 19 23:32:47 sorry I can't help you there Jun 19 23:32:53 but at least you know what you're looking for Jun 19 23:33:33 if you can bypass the gradle it should build -.- Jun 19 23:36:30 thanks so much! Jun 19 23:38:46 Zharf: thanks for the support :) Jun 19 23:42:48 Zharf: one thing you might know, this all seems to be at source level... I'd much rather just have an jar... why can't I just have and add a jar file? :) Jun 19 23:47:09 snot, android libraries have resources, java libraries can't have those Jun 19 23:47:17 if it was a regular java lib, it wouldn't be a problem Jun 19 23:49:02 Zharf: but how is support lib and such then distributed as jar's? Jun 19 23:49:33 <|0xD34D|> they only contain code Jun 19 23:49:51 http://stackoverflow.com/questions/10989104/create-android-library-project-and-use-the-generated-jar Jun 19 23:49:52 ^ Jun 19 23:49:55 yeah :) Jun 19 23:50:28 thank your very much for all the info I've gotten here to night, im off to bed. Take care guys :) Jun 20 00:10:39 evanc when I inflate(), what is the third parameter? Jun 20 00:11:21 rager: http://developer.android.com/reference/android/view/View.html#inflate(android.content.Context, int, android.view.ViewGroup) Jun 20 00:12:01 bamb Jun 20 00:25:54 is anybody having this problem with AndroidStudio in Linux?: mouse click doesn't work in studio's dialogs and in context menus Jun 20 00:27:10 If I"m adding an item to a ListView is there a way to get it to shift contents up instead of items below it down? Jun 20 00:29:31 what does it mean to shift contents up Jun 20 00:29:42 scroll to position after you're done inserting Jun 20 00:29:45 if that's what you need Jun 20 00:31:48 Eve all. I can't for the life of me figure out why I'm getting a a cast exception. can someone take a look at this paste for me. http://pastebin.com/Rzj69S0Q Jun 20 00:36:44 premium_toast was not set to a boolean somewhere, i think Jun 20 00:37:13 Third line of the paste. Jun 20 00:37:31 "boolean premium_purchased = false; // set premium purchase to false on run" Jun 20 00:37:36 that's 3rd line Jun 20 00:37:48 also, no lines in that paste shows the flow of the app Jun 20 00:37:58 it could have been setString() somewhere Jun 20 00:38:26 hmm, do relativelayouts support weight? I imagine no Jun 20 00:39:21 Returns the preference value if it exists, or defValue. Throws ClassCastException if there is a preference with this name that is not a boolean Jun 20 00:41:06 bitkiller, i cant even get android studio to run in linux, gradle refuses to cooperate, so i'm stuck with eclipse Jun 20 00:41:40 anyone have any tricks for tracking down GC_FOR_ALLOC Jun 20 00:42:03 icetooth, you don't have to use android studio or eclipse! there's also idea! Jun 20 00:42:09 but I suppose I can use layout_toLeftOf and layout_alignParentLeft and whatnot Jun 20 00:42:19 or you can just use a plain text editor Jun 20 00:42:20 like emacs Jun 20 00:42:22 ;-) Jun 20 00:42:24 icetooth, wow. here it's running fine. had some setup problems initially, related to sdk, etc, but now it's ok Jun 20 00:44:18 zharf what are the alternatives, i need an emulator to run because i dont have access to an android device at all times Jun 20 00:44:53 Xabster: I meant third line with actual text. 4th line of paste. either way... just got pissed and rolled back a commit. Jun 20 00:45:02 icetooth, ... IDEA... emulator in eclipse is not an eclipse thing either.. you can run them manually too if you like from the avd manager Jun 20 00:45:28 thank you! i hate eclipse :] Jun 20 00:45:39 icetooth, android studio is basically IDEA I guess, with gradle and some other crap google thinks is good for you Jun 20 00:46:54 i say i hate it just as i figure out how to get it to compile my native code, maybe its not all that bad to me now Jun 20 00:48:15 IDEA (and I guess android studio) doesn't really have a good ndk support at the moment, but using it from the console is easy enough Jun 20 00:48:27 Rescue9, you put a String into the preferences with that name, and you try to fetch it as a boolean Jun 20 00:48:33 well, a lot easier than from any IDE, as is the usual case ;) Jun 20 00:49:05 thanks for the help Xabster. I don't have the code anymore to check due to the rollback, but I think I might have had setBoolPref(String key, STRING value, Context context) instead of boolean value. Jun 20 00:50:01 works now Jun 20 00:51:59 it compiled the sample fine, but will it compile my game engine this is where it is about to get painful no doubt Jun 20 00:52:46 will what compile it Jun 20 00:53:09 eclipse / ndk-build Jun 20 00:53:16 theres probably a million things i'm going to need to change Jun 20 00:53:54 I need to sleep, the sun is getting up Jun 20 00:54:34 correction, it got up 13 minutes ago apparently Jun 20 00:55:13 damn you're on my schedule, except its only 9pm here Jun 20 00:55:41 3.55am :) Jun 20 01:07:47 evanc: I finally got it - thanks Jun 20 01:12:33 I need to store pairs with Name+ID and I need to store a GroupName+List - how do you suggest? Jun 20 01:12:46 SQLite? Custom fileformat? "Hackish" SharedPreferences? Jun 20 01:12:59 wait so does my native source folder *HAVE* to be called "jni"? Jun 20 01:13:39 iirc no, but it requires more meddling around to change it Jun 20 01:14:13 I just always call it jni, I think it's fine :) Jun 20 01:16:01 people will make fun of me if i leave my source directory labelled jni when they go to compile on ios or worse... windows :[ Jun 20 01:16:26 you don't have to put your sources there Jun 20 01:16:46 you can make your Android.mk look up the sources from some relative directory instead Jun 20 01:16:59 ../../native for example Jun 20 01:17:09 it's just basic makefile Jun 20 01:18:09 ahh yeah that was a silly question Jun 20 01:18:53 i just noticed there are function prototypes at the bottom of this sample, i was trying to figure out how it knew what functions they were calling without reading the whole thing :\ Jun 20 01:19:33 being a c developer prototypes at the bottom are a very strange unexpected thing Jun 20 01:25:38 i've seen a few devs put them at the bottom, i don't like it either Jun 20 01:34:58 still having the problem. can't for the life of me figure it out. going to post a bigger pastebin and try again Jun 20 01:40:01 Where are my apk files in eclipse? Jun 20 01:42:26 JakeWharton Jun 20 01:44:13 jug6ernaut Jun 20 01:44:24 what Jun 20 01:45:01 If butter knife isn't injecting views, but no exceptions are being throw, and annotation processing is enabled, what other issue could there be? Jun 20 01:46:53 Debug it! There's no reflection and no magic. You can step through the generated code and see what it is doing. Jun 20 01:47:20 fair enough xD Jun 20 01:52:06 I'll add a global logging flag Jun 20 01:52:26 Make a GitHub issue for it Jun 20 02:14:02 Hello, I use GCMBroadcastReceiver implementation for receiving messages. When the appplication is dormant (onStop) when i receive the message i can start the application from the notification and the message will be displayed, the same method doesn't work though if the application was closed (onDestroy), the listener will still be triggered and I still generate the notification, but when I start the app from the notificaiton, the message wi Jun 20 02:14:02 ll not be displayed. Should I actually save the message somewhere? or there is something I'm missing? Jun 20 02:19:13 JakeWharton baa, was my stupid mistake, for some reason for the object to inject the views on(doing it for a fragment) i was passing the activity context not the fragment...so it never saw the views to inject :S Jun 20 02:19:32 naa* Jun 20 02:29:07 that'll do it Jun 20 02:53:12 hey guys Jun 20 02:53:27 i need some help... Jun 20 02:54:03 i'm trying to run my app in android studio...but getting a Gradle: : java.lang.NullPointerException error Jun 20 02:54:30 i can't load ddms to debug because I can't run the app...any ideas? **** ENDING LOGGING AT Thu Jun 20 02:59:59 2013