**** BEGIN LOGGING AT Mon Nov 18 02:59:59 2013 Nov 18 03:00:40 you mean create a new dialog each time? Nov 18 03:01:58 (Note that the color needs to supplied as a separate resource here because the android:windowBackground attribute only supports a reference to another resource; unlike android:colorBackground, it can not be given a color literal.) Nov 18 03:02:33 My point about that post was they were getting pretty elaborate just for doing transparency Nov 18 03:04:04 found out about the windowbackground attribute here http://developer.android.com/guide/topics/ui/themes.html#ApplyATheme Nov 18 03:08:22 so I think you might have to do what they're doing and lower a color's alpha levels instead of a blanket opacity percentage Nov 18 03:08:48 I hope i'm wrong because it seems obsessive to not have such a feature Nov 18 03:08:52 afk Nov 18 03:12:22 I made one of my columns an integer but I actually want it to be a double. How can I make the change at my DB level and start allowing doubles in this column? I read that SQLite does somethingc where it stores everything as Strings so maybe it'll be easier to convert column datatype? Nov 18 03:18:43 Thinking of these two lines in my SQLiteOpenHelper: Nov 18 03:19:01 db.execSQL("ALTER TABLE invoice_item add column quantity_double real not null default ''"); db.execSQL("UPDATE invoice_item SET quantity_double = cast(quantity as real) where quantity_double = ''"); Nov 18 03:19:11 Not entirely sure it'll work but gonna try it Nov 18 03:20:42 pretty sure in sqlite you can't delete columns though Nov 18 03:20:50 you'll have to transfer everything to a new table Nov 18 03:25:00 bankai_: can I inflate a ListView in a layout using a custom ArrayAdapter from a RemoteViewService ? Nov 18 03:25:14 Hi all. I have a ListView where some rows are comprised of an ImageView. When an image is clicked, I want to display a full sized version to the user. In my OnItemClickListener should I be making a new Fragment who's sole purpose is to display an image? Is there another way to do this? Nov 18 03:30:44 flipture: not sure what you mean, sorry Nov 18 03:32:12 bankai_: So, what I'm trying to do is make a listview that I currently have in my app show up on a widget. Nov 18 03:32:47 bankai_: it currently inflates a listview in a layout and uses a custom ArrayAdapter with my object to populate it. Nov 18 03:33:21 does this still work in a RemoteViewService? or do I need to do something completely different? Does that make sense? Nov 18 03:33:22 you do things a little different in a widget Nov 18 03:35:05 RemoteViewsService.RemoteViewsFactory is kind of your array adapter Nov 18 03:39:48 This is a stupid question, but can someone tell me why the new support modes for gridlayout, fragments, navigation drawer, and action bar only go to Android 2.3.3? Nov 18 03:40:55 Or is android studio just not showing them? Nov 18 03:42:58 Doesn't make sense to me because I just read people are gonna be switching from absherlock to the action bar from the API Nov 18 03:43:47 download support V7 Nov 18 03:44:11 well, the 'new' one Nov 18 03:44:27 ah i gotcha Nov 18 03:44:38 http://developer.android.com/tools/support-library/features.html that's got the gradle stuff if you're into that kinda thing Nov 18 03:44:42 so I can use all those elements just adding the libraries? Nov 18 03:44:47 myself Nov 18 03:45:33 sort of Nov 18 03:46:15 bankai_: ok so to an extent I'll take what I have in my getView method and migrate that to getViewAt inside of the RemoteViewsService.RemoteViewsFactory? Nov 18 03:46:35 thanks Nov 18 03:46:52 and return remoteview instead of my convertview Nov 18 03:47:09 does actionbarsherlock support the new navigationdrawer yet? Nov 18 03:47:39 I believe it does Nov 18 03:47:56 to my untrained eye anyway Nov 18 03:48:25 I was wondering if the good developers are gonna make the switch or stay with sherlock Nov 18 03:48:35 flipture: ;) Nov 18 03:49:42 well i hope I'm getting close... :) it makes a good bit more sense now than it did before. Nov 18 03:50:15 bankai_: i appreciate all of your help today... many thanks. Nov 18 03:50:51 heh Nov 18 03:53:47 Eeeeee i think Wharton said he's going to drop supporting ABS since there is an sdk api for it now Nov 18 03:54:33 lasserix: that would suck :( abs is still superior to actionbarcompat Nov 18 03:54:49 greetings Nov 18 03:54:50 makes sense if it works right. Kind of weird that it took them this long to implement such an important element Nov 18 03:56:19 i was wondering if there is a way to define an intent filter for an entire application instead of doing it inside each activity? Is that thing even possible or even a good practice to do? Nov 18 03:56:43 it's not possible because an intent specifically activates an activity Nov 18 03:56:52 ok Nov 18 03:56:53 (or service, or bcast receiver) Nov 18 03:57:10 if you want it to impact multiple activities you can implement a service that they all talk to Nov 18 03:57:11 i was kind of unsure of intents in general Nov 18 03:57:13 or something like that Nov 18 03:57:37 i have a service already, but i want to the service to interact with a few activities through a broadcast receiver Nov 18 03:58:15 i would (and have) implemented such as a bcast rx in the service and async callbacks to the activities subscribed to the service Nov 18 03:58:26 ok Nov 18 03:58:36 this is my first time using a broadcast recevier Nov 18 03:59:00 or if you don't need so much synchronization, you can implement a bcast rx in each activity while it's active Nov 18 03:59:18 thats what i was thinking of doing Nov 18 03:59:51 i wasn't sure if it was needed to be created in the manifest of just dynamically create the receivers for the activity Nov 18 04:00:25 you can make one in the manifest that causes your bcast rx to be started Nov 18 04:00:32 or you can define one dynamically in an activity Nov 18 04:00:41 just make sure to remove it; i usually remove/insert on onPause/onResume Nov 18 04:00:42 ok Nov 18 04:00:48 oh ok Nov 18 04:01:43 one more thing, I should define the broadcast action inside the manifest, right? Nov 18 04:02:06 if you need to trigger it outside of an activity Nov 18 04:02:10 otherwise, no need Nov 18 04:02:13 i haven't found too much info whilst googling about the best practices for that Nov 18 04:02:36 so just a static string in the activity is fine Nov 18 04:03:09 ie if you want your app to do something when wifi changes, you might define it in the manifest, otherwise if you need a specific activity to change when something happens, defining it there is fine Nov 18 04:03:28 ok, that clears up a lot of things for me Nov 18 04:03:40 at least, that's my interpretation Nov 18 04:03:44 and it's worked fine for me Nov 18 04:03:45 ok Nov 18 04:04:12 if component X is the only thing that needs to get that state, I just define it in that component Nov 18 04:04:25 often X turns out to be my service and I propogate it via my inter-service comms Nov 18 04:04:26 this is my first android app I'm making commercially, so i want it to be using best practices or at least learn some good practices Nov 18 04:05:02 though sometimes I want to make sure I get a wakeup on a bcast state (ie boot complete, wifi changed, etc), and that ends up as a dedicated bcast receiver defined in the manifest Nov 18 04:05:25 i think i am going to go for the manifest route Nov 18 04:05:49 I'm dealing with an SSH connection intermittently so i think that would be helpful Nov 18 04:06:18 either that, or in your service Nov 18 04:06:25 (since i assume your ssh link is in your service) Nov 18 04:06:29 yeah Nov 18 04:07:11 i guess having it un the service would make it easy to keep the connection from reaching a point where it times out Nov 18 04:07:49 unless you want to initiate your service when its shut down Nov 18 04:08:24 there's probably no advantage to putting it in the manifest Nov 18 04:08:28 ok Nov 18 04:08:42 but also probably no harm; tho you'd have to bind to your service from your bcast rx then Nov 18 04:09:02 I ended up implementing a custom service bind function that takes a runnable which it runs once bind has succeeded Nov 18 04:09:03 i don't think binding would be a big issue Nov 18 04:09:05 for just that purpose Nov 18 04:09:12 the only issue is that bindingis async Nov 18 04:09:18 so you end up w/ a bunch of cruft around it Nov 18 04:09:31 ill have to read the docs on binding Nov 18 04:10:08 http://kismetwireless.net/android-swm/ has a link to the git repo if you want to look at how I did it. I don't promise it's the best way, but it works. Nov 18 04:10:45 the binding is async, and the binder gets a callback when the binding is complete; so to call a function in the service you need to bind, wait, then call Nov 18 04:11:01 I ended up doing this as a bind-and-execute which accepts a runnable that the common binder class executes after binding is complete Nov 18 04:12:50 ok, ill take a peek at the code Nov 18 04:13:08 the async part of binding is not a problem for me Nov 18 04:13:17 it's not a huge problem, but it exists Nov 18 04:13:23 and if you forget that, bad things happen to your life Nov 18 04:13:51 yeah, i could see that :) Nov 18 04:14:30 not just bad things, but unpredictable things since if you get delayed enough for it to complete, it works :P Nov 18 04:15:23 that code is a great example Nov 18 04:16:43 durka42: it worked actually Nov 18 04:16:53 durka42: just deprecated the old column Nov 18 04:18:08 sure, you just have a useless column hanging around now, right? Nov 18 04:20:14 your help is much appreciated dragorn Nov 18 04:21:05 thebeagle: no problem Nov 18 04:21:31 defeintely gonna check out your wifi app as well Nov 18 04:21:50 thebeagle: cool :) Working on some code for it right now, actually Nov 18 04:21:58 been looking for something like it Nov 18 04:23:19 thebeagle: that was my problem, too. There's some other tools which did it, but not how I wanted them to, and then the one I used stopped working for me anyhow Nov 18 04:24:27 oh that looks like a cool app Nov 18 04:24:57 is it not available for 2.X? i can't find it on the app store Nov 18 04:25:02 if my phone already auto-connects to the wifi networks I use (about 4-5) and I install your app, will the learning work? Nov 18 04:25:27 thebeagle: it is not; i looked at what i'd have to change and then didn't care ;/ <-- bad person sometimes Nov 18 04:25:34 its cool Nov 18 04:25:52 when i get my new phone and tablet i will be sure to buy it Nov 18 04:25:55 thebeagle: my alternate excuse is i've got way too many irons in way too many fires Nov 18 04:26:01 I should try this app out some day Nov 18 04:26:09 geofencing wifi enablement sounds so good Nov 18 04:26:18 durka42: the first time you need to manually turn on wifi (either from settings or from the quick settings in the app notification) Nov 18 04:26:19 dragorn: my life is the same way too Nov 18 04:26:22 durka42: after that it remembers Nov 18 04:26:27 * pfn leaves the -swm page open in a browser somewhere Nov 18 04:26:28 * pfn & Nov 18 04:26:30 pfn: heh; geofencing is still in progress Nov 18 04:26:39 dragorn: this android app is only a small part of a larger project I'm working on Nov 18 04:27:09 tho I'm working on building ssid:mac maps to let 4.3+ passive scanning mode turn on wifi Nov 18 04:27:25 thebeagle: i know how that is; my first public android app was the front-end to some custom hardware Nov 18 04:27:39 yeah, that is exactly what i am doing Nov 18 04:28:06 I've got a friend helping with the android part, but we are both kind of new to android Nov 18 04:28:17 thebeagle: https://picasaweb.google.com/lh/photo/XDO6h116AlMvH8saQ93gsdMTjNZETYmyPJy0liipFm0?feat=directlink Nov 18 04:28:37 thebeagle: 802.15.4/zigbee to bluetooth bridge, rx/tx/sniff capable Nov 18 04:28:49 dragorn: sick Nov 18 04:29:29 dragorn I'm making an automated hydroponic systems controller Nov 18 04:30:23 dragorn: is it a hobby or a product you are developing Nov 18 04:31:21 thebeagle: once I finally get back on track and make v3 i've got someone who wants to manufacture them Nov 18 04:31:32 thebeagle: probably show up in the hak5 store and other places, Darren was pretty excited about it Nov 18 04:31:40 but then I totally dropped the ball on getting the v3 design done Nov 18 04:31:49 I made probably 100 of them by hand. it sucked. Nov 18 04:32:02 dragorn: kickass, you guys at kismet are great Nov 18 04:32:30 thebeagle: heh, unfortunately it's not so much a "guys" as a "just me" :) Nov 18 04:32:42 which is why I get scatterbrained and then half-ass stuff and dont' finish it Nov 18 04:32:47 dragorn: oh, kudos to you Nov 18 04:33:03 dragorn: been using it since i was in maybe 7th grade Nov 18 04:33:17 recent major hw project doesn't actually involve wireless or android; high speed phy sniffer hw Nov 18 04:33:23 awesome :) Nov 18 04:33:28 now I feel old. :P Nov 18 04:33:45 I've almost got it working on android; that's another project I need to get back to Nov 18 04:33:52 working on spinning some hardware to make that a LOT simpler too Nov 18 04:35:07 im only 21, so I'm a young in Nov 18 04:35:19 thebeagle: http://kismetwireless.net/android-pcap/ might be of interest; expect an update to that soon, just rewrote a bunch of it Nov 18 04:36:19 that would be really useful for me Nov 18 04:36:20 I've been playing with reaver lately Nov 18 04:36:28 but wanna learn some more wireless stuff Nov 18 04:50:48 Hi! I'm looking for a library that can convert coordinates from one system to another. I know proj4 does that, but I can only find a broken android port of that Nov 18 05:12:18 anyone know if the voice recognition thing on the android gmail app works on the server or on the client side? Nov 18 05:15:46 which aspect of it? Nov 18 05:18:14 the home screen widget used to lag whenever internet was slow to the point where it was faster to give up and type Nov 18 05:20:42 Eeeeeee: was using a friend's android's keyboard dictation using te google keyboard Nov 18 05:21:25 that said I'm sure they sample and develop the voice pattern recognition on their servers sending your app the part that helps make less mistakes Nov 18 05:22:03 there is offline recognition, since 4.1 I think - it looks like US English gets installed by default, but other languages have to be downloaded Nov 18 05:26:15 offline, meaning based on your unique voice profile and allowing you to use it without being connected to the internet? Nov 18 05:27:03 not based on your profile, I think - it's more limited than the online recognition Nov 18 05:27:38 or offline meaning you hand your texan cousin the phone and without internet it understands him first go? Nov 18 05:28:39 wibble Nov 18 05:28:52 ooweee doggies Nov 18 06:05:48 make up your mind npnp Nov 18 06:05:53 in or out! lol Nov 18 06:07:16 Sorry guys testing irc client Nov 18 06:07:29 haha jk Nov 18 06:07:39 pretty sure we're the only ones awake Nov 18 06:08:02 australia represent Nov 18 06:08:07 haha Nov 18 06:08:21 * durka42 goes to bed Nov 18 06:08:23 coding late night represent Nov 18 06:08:31 Any idea how I can make backup using Android terminal Nov 18 06:08:43 backup of Nov 18 06:09:03 Nandita backup Nov 18 06:09:07 woo japan represent Nov 18 06:09:09 yeaaahhh Nov 18 06:09:16 :D Nov 18 06:09:17 Nandroid Nov 18 06:09:41 konnichiwa otiose san Nov 18 06:10:00 Without reboot into recovery Nov 18 06:10:38 sry i don't know much about that stuff Nov 18 06:10:52 is it partitioned Nov 18 06:10:54 ? Nov 18 06:11:38 I know sysadmins do it Nov 18 06:12:07 Give me some idea Nov 18 06:12:08 npnp: there's adb backup command, but it doesn't copy everything (won't copy applications that disallow backups) Nov 18 06:12:43 I know adb command Nov 18 06:13:07 I want some shell command Nov 18 06:13:11 if you're rooted, you can just do a tarball of certain directories (mainly /data/data and /data/app), but Titanium Backup does it better (it knows how to properly handle certain kinds of data that don't like if they are just copied Nov 18 06:13:12 i've never attempted it, but i'm sure there's some info on the net Nov 18 06:13:53 I found something onandroid named Nov 18 06:14:03 I'm talking about logging into any nix box, and not getting kicked off of it in the process btw Nov 18 06:14:10 not droid specifically Nov 18 06:43:25 Anyone knows I get this error: "[dependency] WARNING: unable to write jarlist cache file " when I'm trying to do "ant release" in the root of my project Nov 18 06:43:43 It seems that it tries to concatenate the same path two times Nov 18 06:44:10 the cache file it is trying to write to is actually composed of the same path but duplicated Nov 18 06:44:19 really weird Nov 18 06:47:51 i.e. "[dependency] WARNING: unable to write jarlist cache file /home/username/projects/myproject/home/username/projects/myproject/dist/bin/jarlist.cache" Nov 18 07:03:26 Anyone knows why reports this "release-obfuscation-check: [echo] proguard.config is ${proguard.config}" when even though I have proguard.config=proguard-main.cfg specified in project.properties ? Nov 18 07:03:40 It should print the value of the proguard.config propety Nov 18 07:03:55 But for some reasons Ant doesn't read the project.properties file Nov 18 07:03:57 :O Nov 18 07:06:33 what do you guys think the cheapest option is for testing programs on 4.0 and up? I am in the US Nov 18 07:07:03 the new one thats coming out prolly Nov 18 07:07:06 99$ Nov 18 07:07:13 dunno when that is though Nov 18 07:07:31 Eeeeeee, the new what? Nov 18 07:07:41 the new super cheap android Nov 18 07:07:45 thats gonna blow everyones mind Nov 18 07:08:05 and allow all us young people to send old people picture messaging Nov 18 07:08:27 i kind of need something soon Nov 18 07:08:50 but i don't want it to be completely horrid Nov 18 07:08:56 get a nexus 5 Nov 18 07:08:58 or a nexus 7 Nov 18 07:09:31 ebay it Nov 18 07:10:22 99 zte nexus 5 Nov 18 07:10:26 thats what i was planning, just wanted some recommendations. I am kind of clueless about hardware in general Nov 18 07:10:27 is what i think it was called Nov 18 07:10:35 me too Nov 18 07:10:36 lol Nov 18 07:10:43 i have an old htc evo Nov 18 07:10:58 no upgrade for an other 4 months Nov 18 07:11:17 lol my upgrade has came and went Nov 18 07:11:25 i love my phone still hahaha Nov 18 07:11:44 need high res though Nov 18 07:11:52 plus i don't even use my phone except for music and normal phone operations Nov 18 07:12:17 i probably use mine more to dev on then call friends on Nov 18 07:12:28 which is said considering im new to android development :D Nov 18 07:13:02 and because people only text these days Nov 18 07:14:08 also might try craigslist if you're in a big city Nov 18 07:14:38 i am so sick of texting Nov 18 07:14:48 I'm in chicago so i might try craigslist Nov 18 07:14:51 lol Nov 18 07:15:02 even worst is getting snapchats Nov 18 07:15:10 just call me and figure everything out in 30 seconds instead of texting for 20 minutes Nov 18 07:15:29 told my friend i modded my phone so i didnt have that app... he was like we'll you're gonna see like 100 really dumb looking pictures lol Nov 18 07:15:44 ahhaha for real Nov 18 07:16:08 I'm kind of neutral about it, my friend made me get it and i like how its a social thing that isn't a coplete time trap like Facebook Nov 18 07:16:18 yes Nov 18 07:16:22 i love the idea Nov 18 07:16:25 yeah Nov 18 07:16:32 I'm liking to move to social apps like that Nov 18 07:16:45 im just alwayson the receiving end of the snaps Nov 18 07:16:52 same here Nov 18 07:16:55 i just dont get it rofl Nov 18 07:17:12 i send out bizarre ones Nov 18 07:17:20 its cool but you wont see me sending them out unless its something hilarious Nov 18 07:17:23 ya Nov 18 07:17:30 like a blurry picture and claim that i sat next to jeff goldblum Nov 18 07:17:38 lol Nov 18 07:17:40 LOL Nov 18 07:17:54 thats funny Nov 18 07:20:58 Please discuss offtopic things on #android Nov 18 07:22:13 hey snapchat is probably what we should be talking about :P Nov 18 07:22:42 Hello, just rooted my HP Slate 7, However in an attempt to install arch, i needed to write something to my root folder.. using root explorer, it says that it copied, but it does not Nov 18 07:23:07 ES root explorer? Nov 18 07:23:34 that app has destroyed so much of my stuff somehow Nov 18 07:23:36 yeah, nothing works Nov 18 07:23:41 its highly annoying Nov 18 07:23:41 honestly Nov 18 07:23:46 i remounted it as rw Nov 18 07:23:47 it deleted like 2 gigs Nov 18 07:23:51 of stuff the other day Nov 18 07:24:11 dunno why it's like 1-2 in play store Nov 18 07:24:33 humm Nov 18 07:24:38 this is highly annoying Nov 18 07:24:46 i can't use adb, because i get some odd error Nov 18 07:24:53 but i can't copy it Nov 18 07:26:09 can i work with a nook-hd Nov 18 07:26:23 lol\ Nov 18 07:26:27 to test? Nov 18 07:26:30 yeah Nov 18 07:26:37 70 bucks Nov 18 07:26:43 get the most widespread phone you can within your budget Nov 18 07:26:57 that's what i would think anyway Nov 18 07:27:21 i need something cheap (under $100) that will run 4.0 and up Nov 18 07:27:36 i figured tablets would be the cheapest Nov 18 07:27:46 plus it'd be nice to have a tablet to test on Nov 18 07:27:52 true that Nov 18 07:28:16 i can haggle to 60 probably Nov 18 07:28:21 hah Nov 18 07:30:46 Got a maven project going, but also want to local build so that my View previews can sort of work in my IDE Nov 18 07:30:59 but I keep getting errors like cannot fins symbol R Nov 18 07:31:10 if I try a local build Nov 18 07:31:17 Android Studio Nov 18 07:32:08 http://i.imgur.com/WY6OVk6.png Nov 18 07:35:50 doesn't android studio add R Nov 18 07:40:41 Are you supposed to be able to compile the support package demos? Nov 18 07:40:49 or is it just for reference? Nov 18 07:45:23 Has anyone faced this problem? [proguard] Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [android-support-v4.jar:META-INF/MANIFEST.MF]) Nov 18 07:49:49 android-support-v4.jar is being included twice in the set of code that Proguard is optimizing Nov 18 07:50:05 and this isn't allowed. Do you have the android support jar included in two places? That is what it really looks like from your error message. Nov 18 07:50:34 im pasting from SO btw Nov 18 07:56:55 then again that guy has like a bunch of lines repeating that error Nov 18 07:56:58 did it help? Nov 18 08:15:09 Hey! I'm currently working on a View that needs (at least something like) a ListView with checkboxes in a ScrollView. I understand that I shouldn't put a ListView inside a ScrollView but what am I to choose instead of the ListView? A simple LinearLayout doesn't even come close to the looks of a ListView. Thanks! Nov 18 08:15:58 hi alll Nov 18 08:16:04 who here follows the way of the ballmer curve? Nov 18 08:17:50 was that bill gates formula? Nov 18 08:18:06 ballmer, emphasis on BALL ? Nov 18 08:18:19 the .13% or whatever it was? Nov 18 08:18:43 BAL Nov 18 08:18:46 :d Nov 18 08:22:31 i totally believe it, but I don't think I've ever tried it Nov 18 08:22:38 at least not on purpose lol Nov 18 08:30:18 Hi all, how can I use this color in xml layout? android.R.color.white Nov 18 08:30:48 you sir have quote the taste Nov 18 08:32:11 emulator keeps on loading with the title bar offscreen..so i cant reposition it anywhere Nov 18 08:32:17 any fix for this? Nov 18 08:32:31 linux? Nov 18 08:32:41 ye Nov 18 08:32:50 work space switcher Nov 18 08:32:55 if you ubuntu Nov 18 08:33:00 or similar functionality Nov 18 08:33:22 lets you click drag anywhere on a program while looking at the 4 screens Nov 18 08:33:32 ahh, checking Nov 18 08:33:35 im in openbox Nov 18 08:34:27 Eeeeeee, what else can i google for Nov 18 08:34:35 workspace switcher doesnt yield myuch for openbox Nov 18 08:34:35 lol Nov 18 08:34:42 never used openbox Nov 18 08:34:47 i remember in compiz it was called EXPO or smth Nov 18 08:34:54 i dunno thats a hard google lol Nov 18 08:34:57 ya Nov 18 08:34:58 heh Nov 18 08:35:22 there's probably some obscure work around Nov 18 08:35:33 or going lower res Nov 18 08:35:52 instead of going full on tablet lol Nov 18 08:36:01 gonna ask in the crunchbang channel Nov 18 08:36:03 cheers dude Nov 18 08:38:59 Eeeeeee, alt+click+ drag works a treat Nov 18 08:47:14 hahaha nice!!!! Nov 18 08:47:29 will definitely remember that one Nov 18 08:48:30 I need to use gson library. After the download, I get a gson-javadoc.jar , gson-sources.jar and a gson.jar , which one should I add to my project? Nov 18 08:49:06 WILD CARD Nov 18 09:12:15 Eeeeeee: at least the past two months I've believed in it Nov 18 09:13:05 Eeeeeee: I'm not sure of the exact percentage, but I've been trying to get good at maintaining it Nov 18 09:14:17 * LuisLeite good morning Nov 18 09:14:21 Suddenly, my if="build.mode.debug" ant target is executing on "ant debug". Does anyone by chance know a better way to differentiate between release and debug in ant build scripts? The current way seems to have been broken. Nov 18 09:19:18 thebeagle: better code quality? Nov 18 09:19:38 Eeeeeee: the code flows easier, Nov 18 09:19:54 ya Nov 18 09:24:39 guys should I rather use getAbsolutePath or getCanonicalPath on a File object? Nov 18 09:27:13 Found it, it seems to have been replaced by "build.is.packaging.debug" Nov 18 09:38:21 somebody experience with gson? Nov 18 09:45:11 i wish android studio had subtime text baked right into the software Nov 18 10:01:55 hey guys, i have a dilemma, i need to load an image, rotate it (easy enough with a Matrix), then save it back to the disk... unfortunately loading a bitmap takes a lot of memory, i'm getting out of memory exceptions sporadically on my s2, but i'm sure older phones will get them more often Nov 18 10:02:08 how can i do this? Nov 18 10:08:04 I want to do a few conditional things based on performance of the handset… is there some way of knowing this ? Nov 18 10:09:02 does android internally store some kind of speed indicator that we can use ? Nov 18 10:09:29 I actually think the answers would be "measure it" and "no" but thought I would ask Nov 18 10:10:00 lol Nov 18 10:11:22 i do know that android uses some event-based approach (onCreate/onPause/...), but is there some way to get some sort of endless-main-loop? Nov 18 10:12:11 those are superstitions Nov 18 10:13:06 those endless loops? Nov 18 10:13:23 image processing is laaaaaaaaammmeee Nov 18 10:13:33 no the red lights for my apps Nov 18 10:13:53 lol Nov 18 10:30:06 ok fuck this shit i'm going to scrap all this and change how im doing it... anyone know of some kind of pinch and zoom widget to select some portion of an image? Nov 18 10:31:34 wanted to ask earlier Nov 18 10:31:39 what are you going for? Nov 18 10:32:25 i just want the user to select part of an image that will fill the screen, i had a really nice solution going with subsampled scaling image view that you could pinch and zoom really quickly Nov 18 10:32:32 you made it sound so utilitarian Nov 18 10:32:52 but i couldn't get it working with rotation without re-writing it Nov 18 10:32:56 lol really? Nov 18 10:33:03 lol earlier Nov 18 10:33:23 hi all, I'm trying to make a simple master detail view but all the examples i find use the "FragmentActivity" from the support package. Whats the non-backwards-compatible-way (without the support package)? Nov 18 10:33:27 but at the same time not so had no clue if it was a game or something lol Nov 18 10:33:38 i've spent so much more time on this settings activity than i did on my actual app >_< Nov 18 10:34:14 hah Nov 18 10:38:51 ah got it, should just use Activity... sometimes stuff is easier then one thinks.... Nov 18 10:38:55 I didn't know there was a non-backwards compatible version Nov 18 10:39:54 can you still achieve the same functionality if it's tablet-use only? Nov 18 10:41:26 Eeeeeee: hope so, time will tell :-) From what I understand the non-backwords compatible way is to just use getFragmentManager() from the activity. Only to support older API's you need to use the FragmentActivity with getSupportFragmentManager() Nov 18 10:41:48 OMG!!! you "CAN" target multiple devices in android studio when you run… Nov 18 10:42:10 there are more features in the support lib too I think Nov 18 10:42:15 fyi Nov 18 10:42:19 lol way before my time Nov 18 10:43:44 StingRay_: really? I thought the purpose of the support library was just to add backwards compatibility for new features. Well i'll let you guys know if I bump into some major hurdle :-) Nov 18 10:44:37 :d Nov 18 10:44:39 :D Nov 18 10:45:13 bout to fall asleep at the desk Nov 18 10:45:20 * Eeeeeee sleeps Nov 18 10:51:44 *pokes Eeeeeee* Nov 18 10:55:31 KermitTheFragger: there are little reasons "not" to use support over native Nov 18 10:59:57 how can i send data to serial on my arduino other than echo -n "data" > /dev/ttyACM0 Nov 18 11:00:36 StingRay_: The app is for internal use only, all our devices are API >= 17. I don't really like the idea of writing 'new-legacy' code Nov 18 11:01:04 ill admit that reason is partially "between my ears" :-) Nov 18 11:01:27 I would think a search replace x2 for the tree is not all that of a hit :) Nov 18 11:01:39 but hey ho your choice Nov 18 11:17:12 Hello. I have changed from using AndroidHttpClient/Apache HttpClient to OkHttp and had multipartentity before. Now i want to convert the byte to string (base64encode) to transfer it in a simple post request. Is it a good idea to transfer it to base64? How about the "filesize". Will it grow up when i send the file converted to a base64 string? Nov 18 11:23:30 1. yes 2. size is supposed to be 37% larger Nov 18 11:25:09 Okay. Wow. Thanks for the answer :) Nov 18 11:25:16 Yes to good idea? Nov 18 11:25:24 Or should i use a multipartyentity? Nov 18 11:39:56 omfg Nov 18 11:40:03 fuck you android Nov 18 11:42:15 actually fuck you erdos Nov 18 11:42:18 you suck at codes Nov 18 11:42:23 >_> Nov 18 11:42:29 ? Nov 18 11:42:56 not sure what's worse, talking to an imaginary robot or yourself Nov 18 11:43:07 lol Nov 18 11:43:26 imaginary robot? Nov 18 11:43:31 are you ok shmooz? Nov 18 11:45:04 erdos_: what are you coding ? Nov 18 11:45:59 the settings page for a live wallpaper that i started so long ago and if i don't finish it i'll never be able to regain faith in my abilities Nov 18 11:47:00 * brx_ gives erdos_ moral support Nov 18 11:47:11 ^__^ thanks! Nov 18 12:00:13 I really need to get this raspberryPi to behave itself again Nov 18 12:04:34 but in the meantime: I'd like to open up one set of information in a Fragment, ideally I'd like to use LoaderManager so I can make use of auto requery Nov 18 12:05:26 is it posible to hook a loadermanager to a LinearLayout or RelativeLayout? Or do I have to use ListView or GridView? Nov 18 12:35:20 Is anyone here familiar with xmlpullparser? Nov 18 12:45:40 Hey if I am using an edit text as an input for a search function (that requeries as each new char is inputed) which is better to use of the textwatcher methods to implement to trigger this? OnTextChanged or AfterTextChanged? Nov 18 13:16:07 Hey if I am using an edit text as an input for a search function (that requeries as each new char is inputed) which is better to use of the textwatcher methods to implement to trigger this? OnTextChanged or AfterTextChanged? Nov 18 13:23:24 Would suggest todo it after at least 3 characters it seems you are aiming for instant searching right? And then afterTextChanged or textWatcher it is more of what you prefer Nov 18 13:26:49 guys, please give me a hint. Nov 18 13:26:52 I need to store somewhere some files (downloaded from Internet). And output it, (ImageView). Nov 18 13:26:57 How can I do it? How to create internal folders on device? Per an application? Nov 18 13:29:18 google Nov 18 13:29:49 DTDirk: ahh okay yeah am doing that, just didn't know if there was a fund. difference Nov 18 13:29:58 woozly yeah that's the right track Nov 18 13:30:12 don't forget to add network and write/read file to sd card permissions Nov 18 13:36:06 How can I solve this: [proguard] Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [android-support-v4.jar:META-INF/MANIFEST.MF]) Nov 18 13:40:23 http://pastebin.kde.org/pft9jubag Nov 18 13:40:33 Here's what ProGuard is trying to do Nov 18 13:42:44 okay, how I can look inside Application's sandbox? I want to list all files and directories. Is there a way for it? Nov 18 13:43:15 some file manager for builtin storages (of application which I develop) Nov 18 13:44:38 oh... DDMS Nov 18 14:08:46 Hi! I'm looking for a library that can convert coordinates from one system to another. I know proj4 does that, but I can only find a broken android port of that is missing a few things. Geotools requires swing and awt so doesn't work either. Nov 18 14:17:26 woozily: root your phone Nov 18 14:19:20 hi Nov 18 14:23:10 I'm trying to rebuild the kitkat kernel of my Nexus 7 2013 (= flo/razor). I looked in the android tree (switched to tag android-4.4_r1.1) at the git log of device/asus/flo-kernel/kernel Nov 18 14:24:22 the last commit show some hash, and I'm trying to find his hash into the kernel repository ( https://android.googlesource.com/kernel/tegra.git ) Nov 18 14:24:29 but I cannot find it Nov 18 14:25:00 ouah goto android-root Nov 18 14:25:34 lasserix: right Nov 18 14:25:55 might find more help there :) Nov 18 14:26:27 hi guys, i got a serious probelm, I'd like to design a listView (gmail style), and like to add a Caret on the selected Item. Whats the best way to do that ? Nov 18 14:28:12 compound drawable on icon in row of selected list toggled by onitemclick Nov 18 14:36:10 lasserix: thanks, going to try that, couse I was playing with selectors and 9 patches but with no success. Nov 18 14:41:59 Honestly...Evolution is really a amazing thing. Toddlers nowadays use tablets to play games. Imagine in the past I used to play with Sticks and Stones and Marbles...lol Nov 18 14:42:15 ReGiStRaS: you were a poor child back then. Nov 18 14:42:28 the next generation will build towers out of smartphones and tablets. Nov 18 15:00:47 Anyone extended gridview and successfully referenced the custom class in an xml layout file? Nov 18 15:09:12 same way you reference any custom class in an xml layout Nov 18 15:09:50 hmm just having a xml error Nov 18 15:10:24 then fix the error Nov 18 15:10:26 does it inherit the xml attributes as well, such as numColumns? Nov 18 15:10:37 sure Nov 18 15:12:47 oh can the extended class also not be an anonymous inner class? Nov 18 15:14:44 uh, what? Nov 18 15:15:04 how do you expect to reference it from xml if it's /anonymous/ Nov 18 15:15:36 heh yeah, thanks for the help! Nov 18 15:17:36 it's simple! You just call it Foo$1 or Foo$2 or Foo$75 if it's the 75th anonymous class you have in that class! Nov 18 15:18:28 well, also won't work unless it's a static anonymous class Nov 18 15:25:30 guys, how to use 'DownloadManager' for downloading files to internal memory? Nov 18 15:25:44 I need to download files to internal memory Nov 18 15:26:05 then just download it yourself... Nov 18 15:26:52 pfn: What you mean by 'yourself'? Nov 18 15:27:06 why do you need download manager? Nov 18 15:27:12 woozly: There are lots of good libraries for image downloads Nov 18 15:27:12 download manager just downloads into /sdcard/downloads Nov 18 15:27:32 pfn: I need to download big Images from http (and restrict for only wifi) Nov 18 15:27:50 woozly: https://github.com/novoda/ImageLoader like that Nov 18 15:28:52 downloadmanager only allows saving to external storage Nov 18 15:29:02 Dark-Side: oh..thank you, but I need to construct offline application for my company, and I need to download all data over Wi-Fi, and then go with Tablet outside and open Images without Internet connection. Nov 18 15:29:07 hmm, maybe destination uri Nov 18 15:29:17 hmm, nope, also must be external storage Nov 18 15:29:27 :( Nov 18 15:36:46 thanks again pfn Nov 18 15:39:35 Anyone know how fast onTouchEvent can trigger? Nov 18 15:40:53 lasserix: "fast" Nov 18 15:40:58 from the actual event? Nov 18 15:41:52 i mean consecutive events Nov 18 15:42:38 i have seen game code for android put the touch event listener thread to sleep for a few ms Nov 18 15:43:21 touch event listener occurs on the UI thread Nov 18 15:43:24 that sounds wrong Nov 18 15:43:50 hi.. adb cant find my device... it used to work before .. I restarted adb server but without any luck.... anyone an idea whats wrong? Nov 18 15:44:03 plug the phone back in Nov 18 15:44:05 turn on usb debugging Nov 18 15:45:50 yep did all that.. it was always a bit complicated, but usually it was enough to un and replug... every 20. try or so I see it listed but as "offline".. the device itself notices that it got connected Nov 18 15:46:15 my droid1 says offline all the time Nov 18 15:46:16 * pfn shrugs Nov 18 15:48:26 hm... I tried to deploy but the error was device is offline... Nov 18 16:04:34 ohcibi, use adb over wifi Nov 18 16:06:39 I think it's a device thats starting to go flaky and die Nov 18 16:17:00 Is there any way using StringBody (apache httpmime) without the httpClient and UTF-8? It throws an classdef error at runtime that it can not find http.entity.ContentType Nov 18 16:17:01 pfn: how would I do that? I saw a tutorial that says to su and then adb stop and start with terminal emulator on device.. but the device is not rooted.. Nov 18 16:20:27 can anyone tell me why my listview is duplicating??? http://pastebin.com/dsBST73e Nov 18 16:23:29 ohcibi, if you can adb shell at least once, you can set it from there Nov 18 16:33:29 pfn: when i try to adb shell I also get the error device is offline.. Nov 18 16:34:25 you have to get the device to appear online first Nov 18 16:34:31 reboot the device then Nov 18 16:36:12 did that 3 times now.. Nov 18 16:36:56 time for a new device Nov 18 16:38:06 or a fourth reboot... got it connected.. now try the other computer 8-)) Nov 18 16:40:43 noob question, i cant figure out when i need to typecast or not Nov 18 16:40:55 if i'm downcasting i need to typecast, but how do i know when i'm downcasting Nov 18 16:41:20 roboelectric and actionbarsherlock is doing my head in Nov 18 16:41:24 -.- Nov 18 16:41:30 can anyone tell me why my listview is duplicating??? http://pastebin.com/dsBST73e Nov 18 16:43:39 @MrMeeTooo, try not inflating again at line 49 Nov 18 16:44:15 anew: just cast when the compiler tells you to :p Nov 18 16:44:28 heh Nov 18 16:44:35 but what's the reason Nov 18 16:46:02 anew, you're writing the code, you should know when you need to cast and don't Nov 18 16:46:05 pfn: I issued setprop service.adb.tcp.port 5555 follwed by stop adb and start adb, then I try to adb connect but it says unable to connect... am I doing this right? Nov 18 16:46:25 sounds right Nov 18 16:46:29 pfn i'm following tuts now and they have typecast in a lot of spots, and i dont understand why, let me show u one example Nov 18 16:47:00 billBeforeTipET = (EditText) findViewById(R.id.billEditText); Nov 18 16:47:01 so i dont know if there's any roboelectric and actionbarsherlock gurus about but i'm having some very weird errors when trying to run a roboelectric test through maven, http://pastebin.com/3mQbKSUM Nov 18 16:47:04 just for example this line Nov 18 16:47:11 how do i know i need to typecast here, i have no idea Nov 18 16:47:15 anew, because EditText inherits from View, but findViewById only returns View Nov 18 16:47:18 anew, basic programming Nov 18 16:48:13 how do you know it returns only View ? Nov 18 16:48:33 anew: you can check the javadoc / documentation and it tells you the return type Nov 18 16:48:59 anew, by reading documentation Nov 18 16:49:02 anew: https://developer.android.com/reference/android/app/Activity.html#findViewById(int) Nov 18 16:49:07 how do you know what it returns at all.... Nov 18 16:49:21 either your IDE tells you if you're using an IDE, or you read docs Nov 18 16:50:48 stupid intellij, why's it telling me my avd is broken Nov 18 16:51:28 intellij is infuriating sometimes Nov 18 16:51:29 it's working fine, pos Nov 18 16:51:42 and stupid mac, it doesn't have any hotkey for me to hit "continue anyway" Nov 18 16:51:45 i've had a red line under getChildFragmentManager since.. forever Nov 18 16:51:48 so I have to move the mouse cursor Nov 18 16:51:53 yet it builds fine Nov 18 16:52:29 but if EditText inherits from View shouldnt it be ok to not typecast Nov 18 16:52:35 anew, no Nov 18 16:52:37 ur going up arent u Nov 18 16:52:42 anew, learn some OOP basics Nov 18 16:52:52 pfn: I had to interact with osx the other week when running a class. it made me angry. :p Nov 18 16:52:53 if you have an Animal, how do you know that it's a Dog and not a Cat? Nov 18 16:53:20 yeah but in your example isnt Animal - View and EditText - Dog Nov 18 16:53:22 so i'm going up Nov 18 16:53:27 huh? Nov 18 16:53:32 you have Animal, how do you get to Dog Nov 18 16:53:41 EditText is dog Nov 18 16:53:46 anew: you're going down. It returns animal, you need a dog - and only you know that Nov 18 16:53:54 anew: alternate answer, "because java, just do it" Nov 18 16:54:02 well it depends what you want to do with it as well Nov 18 16:54:03 dragorn, that's not a good answer Nov 18 16:54:09 if you're happy just knowing it's a view, then that's fine :P Nov 18 16:54:09 it has nothing to do with java, specfically Nov 18 16:54:20 pfn: would you prefer "because reasons"? :P Nov 18 16:54:27 tried that same thing Nov 18 16:54:55 * Charl1e shakes fist at roboelectric and actionbarsherlock Nov 18 16:55:00 hmmm Nov 18 16:55:07 so what happens if i typecast when i dont need to Nov 18 16:55:13 anew: The compiler doens't know that the generic animal you're asking for can act like a dog Nov 18 16:55:38 how do i know EditText is dog tho that's what i dont get Nov 18 16:55:42 anew: because you're saying "find an animal named bob". You know bob is a dog. The compiler has no idea if that's valid, so you have to specify it. Java doesn't do ducktyping Nov 18 16:55:52 anew: because you're finding an edittext in your layout Nov 18 16:56:07 anew, nothing happens, just useless cast Nov 18 16:56:32 anew: you could certainly DO EditText x = (EditText) findViewById(a_button);. It will break. Nov 18 16:56:37 god, I hate how everything is a checked exception in java... Nov 18 16:57:09 * pfn ponders making his own Callable variant that throws Throwable Nov 18 16:57:22 I hate replacing framework/sdk classes Nov 18 16:57:40 I forget what it would throw if you do an incompatible cast. It would depend what functions you called. Eventually you'd call something that isn't from a View and you'll get some sort of java.lang exception Nov 18 16:58:42 classcastexception Nov 18 16:58:44 of course Nov 18 16:58:50 on the cast Nov 18 16:59:15 pfn: if they have a common parent? I'd expect it to work until you do something that isn't a parent function Nov 18 16:59:25 oh, callable can throw an Exception Nov 18 16:59:26 handy Nov 18 17:00:11 I have this view, and in this view is a ListView and a GridView and two button to choose which one to show. Nov 18 17:00:32 dragorn, of course, you will always get a class cast exception immediately Nov 18 17:00:42 When I switch from GRID mode to LIST mode, I make the GridView invisible and make the ListView visible. Nov 18 17:00:52 because the cast operation checks the object type and reconciles it with the reference type you are requesting Nov 18 17:00:54 so it will fail immediately Nov 18 17:01:06 dragorn, generics does this lazily, so that's why a CCE is deferred Nov 18 17:01:36 can anyone tell me why my listview is duplicating??? http://pastebin.com/dsBST73e Nov 18 17:01:39 and the WHOLE PARENT VIEW goes far to the right, off the screen even Nov 18 17:01:49 ok so fineViewById returns a View... EditText is a subclass of View Nov 18 17:02:16 pfn: ah; since the actual object being returned was instantiated as the child type it's still got an idea what original type it was even after being cast to the parent. Makes sense. Nov 18 17:02:18 if EditText is a subclass... we are going down Nov 18 17:02:24 so i need to typecat Nov 18 17:02:27 is that correct Nov 18 17:02:37 pfn: i'm much more a C/C++ person, and that sure doesn't Nov 18 17:03:08 explodes: how are you setting the visibility? View.GONE ? Nov 18 17:03:34 this.list.setVisibility(View.GONE); Nov 18 17:03:40 or this.grid, respectively Nov 18 17:04:21 explodes: have you checked that they have the same parameters; ie grid isn't positioned linked to the list? Nov 18 17:04:25 dragorn, right, C/C++ are weakly typed Nov 18 17:04:35 dragorn, so you get a sigsegv when trying to access the bad pointer Nov 18 17:04:35 pfn: I forget java does a little more hand-holding there Nov 18 17:04:42 or sigbus, whatever Nov 18 17:04:47 the encapsulating view, as it turns out, is 516px wide, and the whole view goes offscreen 516px. The view was actually animated in from the right, but its LEFT should only be 1200 not 1716 Nov 18 17:04:59 dragorn: yea :/ Nov 18 17:05:40 pfn: probably segv; you'll jump to a quasi-random offset thinking it's the function pointer table. Tho arm is more likely to throw a bus than intel is; almost everyone on intel resolves as a segv Nov 18 17:05:50 https://gist.github.com/pfn/7442087 Nov 18 17:05:51 ah, hot Nov 18 17:06:02 dragorn, yeah, depends on platform Nov 18 17:06:09 sigbus and sigsegv are common across platforms Nov 18 17:06:43 * pfn refines his futures lib Nov 18 17:07:46 http://imgur.com/a/je6cm what it starts out as (image 1) what it should do when you click list (image 2) what it does (image 3) Nov 18 17:14:49 pfn: It looks like your if block has a lot more than it needs. I think all you'd need inside there is "if (row == null) { row = inflator.inflate(R.layout.list_item, parent, false); }", then the rest of the block is unconditional (grab the views from the inside, set things up, and then return whatever's in row). Nov 18 17:15:16 (or maybe that wasn't yours; sorry, I may have lost the context in the backscroll. Nov 18 17:21:15 this is a video of what is happening: (3.5MB) https://mega.co.nz/#!9MthXSoC!G26ixVdi9FtkpUmj_gZOWB6Jk0c5I8iRfZvapsXidq4 Nov 18 17:22:01 some please look at it D: Nov 18 17:22:08 I spent all of Friday on this bug Nov 18 17:30:48 Does anyone have a copy of standardNSAbackdoor.jar? Nov 18 17:32:01 what Nov 18 17:40:49 I have two edittexts and I want to set android:nextFocusDown="@id/secondEditText", but Gradle tells me "No resource found that matches the given name" Nov 18 17:41:31 however if I set android:nextFocusDown="@id/secondEditText" in a control defined after itself, it gives me no problem Nov 18 17:41:58 it looks like there are some problem referencing ids before they are defined Nov 18 17:42:18 does it happen to you too? Nov 18 17:42:47 Yes, you can't reference id's before they're defined.. Resources are parsed from the top Nov 18 17:42:56 Use @+id if you're sure it exists later in the layout Nov 18 17:43:21 SimonVT, ok I will try that Nov 18 17:43:22 thanks Nov 18 17:44:30 How could I have my application run a certain code every 24 hours? cron? Nov 18 17:46:33 <|0xD34D|> Monie: see http://developer.android.com/reference/android/app/AlarmManager.html Nov 18 17:46:44 Thank you |0xD34D| Nov 18 17:50:01 google's cunning plan: http://fi7.eu.apcdn.com/full/110762.gif Nov 18 17:51:59 thanks SimonVT, it works the way you said! Nov 18 18:31:36 Hi! I'm trying to use proj4 (a C library) in my android project. I use this project: https://github.com/devork/android-hello-proj4 but when I run that, this happens: http://paste2.org/kx7kYYZL Nov 18 18:31:40 java.lang.UnsatisfiedLinkError: Couldn't load proj: findLibrary returned null Nov 18 18:32:53 did you build the native part of it? Nov 18 18:35:16 JesusFreke: doesn't ADT do that for me? Nov 18 18:35:30 well, are they built? :) Nov 18 18:35:36 how do I check? Nov 18 18:35:39 you should have a libs directory, with the compiled binaries Nov 18 18:35:50 (libs or lib, can't recall offhand) Nov 18 18:35:53 no, no libs dir Nov 18 18:35:57 or just do a find -name "*.so" in your project Nov 18 18:36:17 When using custom fonts, if there is no glyph for a certain unicode, does Android fallback to the default typeface? (I'm experimenting with mixing normal text and icons from a custom iconfont) Nov 18 18:36:35 there is a jni/proj-4.8.0 dir, but no .so files in there or the subdirs Nov 18 18:36:53 JesusFreke: should I just do the traditional ./configure; make? Nov 18 18:36:53 That would be a "no" to your question then :) Nov 18 18:37:08 Peetz0r: just follow the instructions included with that project Nov 18 18:37:22 You have to make sure you compile it for android, not for your lokal system. Nov 18 18:37:49 JesusFreke: oh, I looked over the obvious github-style readme :p Nov 18 18:37:53 I should sleep better Nov 18 18:37:57 heh :) Nov 18 18:38:11 sonOfRa: yeah. that was why I expected ADT to take care of that Nov 18 18:38:24 because amd64 libs aren't so useful on a phone Nov 18 18:38:35 yet Nov 18 18:38:37 ;) Nov 18 18:39:15 Yeah, but in that case I'd like to support both arm and amd64 (and maybe even x86, who knows) Nov 18 18:45:33 WUT? The NDK is like over a gigabyte... Nov 18 18:46:39 yeah.. Nov 18 18:50:13 hope ou got an unlimited data plan Nov 18 18:51:43 pfn: does fiber to the home count? Nov 18 18:51:51 unzipping took longer than downloading :p Nov 18 18:51:56 then why does it matter if it's over a gig Nov 18 18:51:57 hahaha Nov 18 18:52:09 it doesn't, but it surprised me Nov 18 18:52:22 the download was 300-ism MB, but unzipped is over a gig Nov 18 18:52:35 and proj4 natove works now :) Nov 18 18:52:38 native* Nov 18 18:52:44 nice :) Nov 18 18:53:15 meh, what a mess, lost my unlimited data for a bit there Nov 18 18:53:16 unzipping over a gig just to run a 'compile this' command. There's no such kill like overkill :D Nov 18 18:53:18 but got it reinstated Nov 18 18:53:18 phew Nov 18 18:54:03 I like that all the new vzw phones include gsm radios, so useful now, don't need to get a cheapshit burner overseas Nov 18 18:55:02 not that I ever travel overseas.... Nov 18 18:55:23 although I booked tickets to go to montreal next year, and looking at going to cancun in february Nov 18 19:02:50 we have a strange issue with permissions... we need to write files on Environment.getExternalStorageDirectory(), for this the permission WRITE_EXTERNAL_STORAGE is needed, but we found out that this is not needed on all devices... has someone an idea why? Nov 18 19:06:50 ohcibi: because some devices are weird maybe? Nov 18 19:06:53 Yes, to write to external storage you need WRITE_EXTERNAL_STORAGE Nov 18 19:07:18 SimonVT: no not on all devices... Nov 18 19:07:29 some devices have internal extra storage, and some have a microsd slot, and some have both. maybe this has something to do with that Nov 18 19:07:48 SimonVT: surprisingly the two genymotion devices I have installed do not need it.. i'd expected a simulator to show the default behavior Nov 18 19:08:08 So you haven't actually found any devices that don't require it Nov 18 19:08:19 SimonVT: yes I have Nov 18 19:08:34 i have devices that require it and such that dont Nov 18 19:09:16 SimonVT: i also have real devices if you meant that Nov 18 19:09:32 Peetz0r: yes i thought the same.. Nov 18 19:09:47 In kitkat, not all directories on external storage requires write permission Nov 18 19:09:56 Before kitkat, the entire storage does Nov 18 19:10:51 SimonVT: again: not on all devices Nov 18 19:11:10 As per the api, permission is required Nov 18 19:11:21 <|0xD34D|> did these devices pass CTS? Nov 18 19:11:25 If manufacturers break the permission model, that's kind of an issue Nov 18 19:12:05 SimonVT: its the S3 that works without permissions 8-)) Nov 18 19:12:10 btw Nov 18 19:12:16 I'm assuming you're talking about relatively modern devices (ie, not API 3 or less). Nov 18 19:16:32 Well, samsung broke something then Nov 18 19:17:00 Tell them to fix their rom Nov 18 19:19:01 <|0xD34D|> "If both your minSdkVersion and targetSdkVersion values are set to 3 or lower, the system implicitly grants your app this permission" Nov 18 19:19:08 <|0xD34D|> ohcibi: could this be the case for your app? Nov 18 19:20:46 Peetz0r: "external storage" refers to anything not in the app-specific storage directory Nov 18 19:21:02 Peetz0r: so it doesn't matter if it's internal flash or a sdcard, it's considered 'external' storage Nov 18 19:22:14 Peetz0r: (yeah, it's kind of dumb that way) Nov 18 19:23:32 dragorn: yes, I know Nov 18 19:23:54 I've even seen a /sdcard directory on a device which didn't have a sdcard inside Nov 18 19:25:06 next problem, when I try to use my native library for anything else than PJ.getVersion(), it crashes with a SIGSEV, and without a stack trace Nov 18 19:25:08 the question is if the "external storage" from the permission "WRITE_EXTERNAL_STORAGE" is the same "external storage" from getExternalStorageDirectory Nov 18 19:25:38 It is Nov 18 19:26:19 F/libc (12368): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1) Nov 18 19:26:25 that's what logcat says Nov 18 19:27:36 W/ActivityManager( 247): Force removing ActivityRecord{41b50de8 nl.haas_en_berg.rijksdriehoekscoordinaten/.Rijksdriehoekscoordinaten}: app died, no saved state Nov 18 19:27:42 Peetz0r: null pointer Nov 18 19:27:54 dragorn: okay, but how do I fix it? Nov 18 19:28:05 the actual C code isn't supposed to be broken :p Nov 18 19:28:36 Peetz0r: Dunno. Don't reference a null pointer? :P Not knowing your code I couldn't begin to guess, but that's what's happening. Maybe your JNI wrappers are improperly done and it's getting a null java environment or something. Nov 18 19:29:21 I'm using the JNI wrappers from https://github.com/devork/android-hello-proj4/tree/master/src/org/proj4 Nov 18 19:29:24 unmodified Nov 18 19:29:39 (I copied parts of that project into my project) Nov 18 19:30:09 those are the java classes, not the C functions. anyhow. you can also look into gdb on android. it's not pretty, at least the last time I dealt with it, it wasn't. Nov 18 19:30:18 Peetz0r: but what are you doing in those C functions? Nov 18 19:30:39 Peetz0r: for example, consider `private static native long allocatePJ(String definition);` Nov 18 19:30:58 guys, how much time does google need to realize that a device was installed and cannot send push Nov 18 19:31:03 Peetz0r: that'll be Java_org_proj4_PJ_allocatePJ(JNIEnv* env, jclass klass, jobject definition); Nov 18 19:31:03 uninstalled* Nov 18 19:31:21 Peetz0r: if the user calls PJ.allocatePJ(null), then `definition` will be NULL. what does your code do with it? Nov 18 19:32:19 Peetz0r: e.g. if you do (*env)->GetStringChars(env, definition, NULL), it will very probably SIGSEGV Nov 18 19:32:35 (not sure, but iirc GetStringChars() doesn't like null values) Nov 18 19:32:48 there are many Dalvik JNI functions which SIGSEGV if you pass NULL data Nov 18 19:33:23 the only thing I do in *my* code (which is a Android Activity) is this: PJ pj_rd = new PJ("epsg:28992"); Nov 18 19:33:37 the C library isn't mine, and the JNI wrappers aren't mine as well Nov 18 19:33:42 so I simple don't know Nov 18 19:33:46 simply* Nov 18 19:33:48 do you have source? Nov 18 19:33:59 sure, also tn that same github project Nov 18 19:34:23 guys how much time until google starts returning error for push registration IDs? Nov 18 19:34:23 https://github.com/devork/android-hello-proj4/tree/master/jni/proj-4.8.0 Nov 18 19:36:21 is Java_org_proj4_PJ_allocatePJ defined anywhere? i can't easily find it Nov 18 19:37:09 I just found out that the example project was using a incomplete jni wrapper Nov 18 19:37:22 lol Nov 18 19:37:33 https://github.com/devork/android-hello-proj4/tree/master/src/org/proj4 vs https://github.com/devork/android-hello-proj4/tree/master/jni/proj-4.8.0/jniwrap/org/proj4 Nov 18 19:37:39 let's see what happens now Nov 18 19:38:05 .svn directories in git Nov 18 19:38:06 really?! Nov 18 19:38:21 yeah, weird indeed Nov 18 19:38:34 but that's not important now, I'll cleanup later Nov 18 19:39:13 same sigsev Nov 18 19:39:22 so it wasn't the actual problem Nov 18 19:39:31 but it's nice to have more classes available anyway Nov 18 19:41:53 Peetz0r: SIGSEGV from calling which method? Nov 18 19:41:58 oh well, all those 'missing' classes were deprecated and replaced by PJ, which was the one class that was included in the other project anyway Nov 18 19:42:06 i created new project in android studio, and when i tried to compile it(without changing anything) i got this error: Nov 18 19:42:10 http://pastebin.com/ahYCrGLw\ Nov 18 19:42:12 Peetz0r: oh, and: https://github.com/devork/android-hello-proj4/blob/master/jni/proj-4.8.0/src/jniproj.c#L108 Nov 18 19:42:13 * Nov 18 19:42:14 http://pastebin.com/ahYCrGLw Nov 18 19:42:32 Peetz0r: i.e. calling GetStringUTFChars() w/o checking for NULL. (which might be fine...) Nov 18 19:42:54 Is that the string that comes from the PJ constructor? Nov 18 19:43:01 Peetz0r: anyway, w/o gdb, you're going to want to figure out which Java method is being invoked, then trace through the C code to see if it's assuming non-NULL Nov 18 19:43:22 yes Nov 18 19:43:27 I know it is private static native long allocatePJ(String definition); Nov 18 19:43:35 which is called by the PJ constructor Nov 18 19:43:41 https://github.com/devork/android-hello-proj4/blob/master/jni/proj-4.8.0/jniwrap/org/proj4/PJ.java#L80 Nov 18 19:43:42 anyone here got experience with android-studio? Nov 18 19:43:48 `definition` is passed through un-checked Nov 18 19:44:54 yes, but I know for sure that it is a string Nov 18 19:45:27 yes, but it could be a null string Nov 18 19:45:29 and doesn't it throw a IllegalArgumentException when it is null after all? Nov 18 19:45:30 i'd suggest that you check that Nov 18 19:45:40 it's a literal "epsg:28992" Nov 18 19:45:48 ok, non-null Nov 18 19:45:50 good to know Nov 18 19:45:56 ? Nov 18 19:46:37 ok another question: Nov 18 19:46:56 it's normal that my project "tree" in android-studio will look like this: ? Nov 18 19:46:56 http://picpaste.com/android.png Nov 18 19:48:54 so the string is not null, what is the next thing we can check? Nov 18 19:59:05 Anyone have tips for capturing prolonged systraces Nov 18 19:59:11 I consistently get odd readings: http://i.imgur.com/mwJzGjt.png Nov 18 19:59:23 the entire read drops off way before I specify (the above image was called with -t 20) Nov 18 19:59:53 anyone here got experience with android-studio? Nov 18 20:00:08 elichai2: Whaddaya need to know? Nov 18 20:00:23 first: Nov 18 20:00:26 it's normal that my project "tree" in android-studio will look like this: ? Nov 18 20:00:28 http://picpaste.com/android.png Nov 18 20:00:43 yes Nov 18 20:01:11 http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Project-Structure Nov 18 20:01:18 ok second: Nov 18 20:01:26 i created new project in android studio, and when i tried to compile it(without changing anything) i got this error: Nov 18 20:01:30 http://pastebin.com/ahYCrGLw Nov 18 20:03:06 Any chance one of your XML files is malformed? Nov 18 20:03:09 Ahm guys a question: I am building some simple MP3 App Nov 18 20:03:11 dbro: are you "res" need to be under "project_name>project_name>src>main>res"? Nov 18 20:03:12 dbro: no Nov 18 20:03:23 created and then just tried to launch Nov 18 20:03:39 ohh, that happen when i try to "make" Nov 18 20:03:42 and everytime I start it it reads all the Data from the mp3-files but this takes very long Nov 18 20:03:54 when i try to launch i get "no module" problem Nov 18 20:03:58 would it speed up if I used Serializables etc? Nov 18 20:04:56 elichai2: if it's a truly new project, and you didn't modify anything I'd restart AS for sanity's sake. Just to check Nov 18 20:05:33 ok i'm restarting it right now Nov 18 20:05:44 (it's version 0.3.6) Nov 18 20:06:12 also, res is under ./project/src/main/res to ease the management of product flavors. So e.g if you have a free & paid version of your app, you can include resources for each in separate trees: ./project/src/free/res and ./project/src/paid/res Nov 18 20:06:26 both of those can override items from ./project/src/main/res Nov 18 20:08:51 ok Nov 18 20:09:01 i just reastarted android-studio, still same error Nov 18 20:12:23 thats wierd, i'm even getting "URI not registered" warnin the xml's Nov 18 20:12:28 *warn in the xml's Nov 18 20:14:16 any idea? Nov 18 20:14:39 elichai2: I just went through creating a new proj in AS 0.3.6 and building. Can't reproduce that issue Nov 18 20:15:03 I'd recommend making sure all your android tools are up to date Nov 18 20:23:25 dbro: maybe choose "ActionBar" when you create it? Nov 18 20:27:13 elichai2: Don't see how that'd affect your issue, sorry. If all your android tools are up to date, I'd file an issue on the AOSP tracker Nov 18 20:27:32 :( Nov 18 20:28:05 just installed it Nov 18 20:28:19 and im tired of eclipse Nov 18 20:29:28 has anyone found a good tut for ANDROID STUDIO and GAE? Nov 18 20:31:02 romainguy , one of my favorite photographers has a new book http://shop.oreilly.com/product/9781937538354.do Nov 18 20:32:37 I was able to launch the test GuestBook ANDROID app with GAE... It is working... but not sure what more I can do with it... anyone here who can just start a converstation about it? Nov 18 20:32:43 or give me something to read... Nov 18 20:39:50 dbro: what your java version? Nov 18 20:43:00 1.7 Nov 18 20:43:18 elichai2: jdk1.7.0_15.jdk Nov 18 20:43:32 i'm using 1.7.0_40 Nov 18 20:44:33 you guys are so out of date ; _45 ! Nov 18 20:45:00 * g00s_ types this from mac os 10.7 Nov 18 20:45:46 hey guys. I have a sqllite database I want to upgrade Nov 18 20:46:02 dbro: last thing: Nov 18 20:46:20 why when i reopen my android-studio all i see in my project "tree" Nov 18 20:46:25 I want to use the onupgrade command but I want some clarification on how it works. Does it do onupgrade each time a user upgrades to a new version? Nov 18 20:46:45 after I build and release my new version do I have to remove the onupgrade code so it doesn't execute for a new version ? Nov 18 20:47:09 is this: Nov 18 20:47:10 http://picpaste.com/android2-dRvzZTZx.png Nov 18 20:47:27 and then i need to import module to see my project files Nov 18 20:50:33 I want to sell my Kindle Fire HDX. $150 it is yours Nov 18 20:50:46 elichai2: that looks like AS didn't read your settings.gradle. If you haven't modified anything (and so the gradle configuration is guaranteed to be valid) you can try to use the AS "Sync Gradle" toolbar item. Sorry can't offer much help, not my expertise Nov 18 20:50:47 snooplsm why did you get it ? Nov 18 20:51:09 g00s_: Amazon gave it to me for incorporating amazon ads into my app. Nov 18 20:51:28 heh Nov 18 20:51:41 dbro: how do i get to the "Sync Gardle"? Nov 18 20:53:08 http://i.stack.imgur.com/BovPR.png Nov 18 20:53:18 the icon should be in the main toolbar Nov 18 20:57:03 hy Nov 18 20:57:14 anyone here? Nov 18 20:57:36 i would like enable video4linux on my android Nov 18 20:58:10 i have logitech c920 and c525 webcams + otg cable... i would like use external webcam for streaming Nov 18 20:58:21 ok thanks! Nov 18 20:58:23 plese help me. Nov 18 21:01:35 izemize: find a device with usb-otg, root it, and compile it Nov 18 21:01:52 dunno it it would really work, but I'd start there Nov 18 21:02:36 i do get a (hell-) lot of flickering when embedding a WebView into my application. mostly i only see the content if i am scrolling. As soon as i lift my finger the content "disappears" (= becomes white as the background). is this some sort of known bug (and i forgot something) or some different problem within my app? Nov 18 21:02:58 PatrickBic: does it happen on more devices? Nov 18 21:03:16 if it's just one device, it might me a opengl problem on that device Nov 18 21:03:17 didnt check up to now. let me see Nov 18 21:03:20 might be* Nov 18 21:03:30 11-18 22:14:57.843: E/GLUtils(27382): GL ERROR - after deleteUnusedTextures() glError (0x502) Nov 18 21:03:34 that happens to be the last line in logcat Nov 18 21:03:53 yes, OpenGL-related, what I expected Nov 18 21:04:00 dbro: one last question LOL Nov 18 21:04:09 Peetz0r, i'll test on some other device, hold on Nov 18 21:04:13 but I wouldn;t actually know more than just to check on more devices Nov 18 21:04:39 how do i get from specific project AS windows to the Main Window()all the projects list and everything? Nov 18 21:04:59 *Main Window(all the projects list and everything)? Nov 18 21:05:16 huh, it's not too easy Nov 18 21:05:20 how to do this? Nov 18 21:05:28 izemize: I wouldn't know Nov 18 21:05:34 but I'd start by rooting my device Nov 18 21:05:40 Peetz0r, if thats it, only device change will help, right? Nov 18 21:05:45 rooting is OK Nov 18 21:05:53 PatrickBic: I wouldn't know Nov 18 21:06:00 izemize: I'd check in #android-root Nov 18 21:06:02 elichai2: it's a workspace specific setting whether or not projects share windows at all. To add another project to your current window just import /open and choose "This Window" when prompted Nov 18 21:06:16 ok Nov 18 21:06:21 ok thanks Nov 18 21:06:41 tablet is flickering and mobile is going nuts with it :P tons of " 11-18 22:06:16.770: E/Adreno200-ES20(4204): : **** 4204: glUseProgram(6) Nov 18 21:06:41 " Nov 18 21:07:01 guys can someone please explain how onupgrade in sqllite works? If a user is at version 1 and downloads version 2, I would expect onupgrade to run. Now for version three I'll remove the onupgrade from the sqllite database because it's not needed anymore, but what if a user goes from version 1 to version 3. Will the onupgrade from version 2 be executed or no? Nov 18 21:09:08 Peetz0r, after adding your "gl is the error" stuff to my searches i found the hint that setting to software rendering might do the trick Nov 18 21:09:49 navetz: http://stackoverflow.com/a/13159239/775715 - short answer, no, version 2 in your last example wouldn't occur. Nov 18 21:11:15 Peetz0r, thats it, thanks for your push into the right direction =) Nov 18 21:15:08 joakime: alright thank you Nov 18 21:20:43 :( Nov 18 21:20:48 nothing help me Nov 18 21:29:31 navetz, you will need an onupgrade to handle *every* version you ever migrated Nov 18 21:29:36 you can't jump version 1 to version 10 Nov 18 21:29:38 and skip 2-9 Nov 18 21:29:49 how to enable this on android? http://www.ideasonboard.org/uvc/ Nov 18 21:29:49 for a user that only installed version 1, and later upgraded to 10, but didn't get 2-9 Nov 18 21:31:12 izemize: custom rom, otg cable. not really in scope for this channel, you could try xda Nov 18 21:31:37 pfn: right, I realized that onupgrade also tells you their old version and new version so that will be helpful. And i'm not making any major changes just yet so it shouldn't be a big issue Nov 18 21:31:54 otg cable, i have already Nov 18 21:31:55 is there an app for dev console stats, so i don't have to log into the webpage to check it? Nov 18 21:31:56 izemize: if you really wanted to put the effort in, port the kernel driver to java using the android userspace API. It's possible, it's not fun, it will take a fair amount of time. Nov 18 21:32:12 izemize: otg cable is the least of your problems however Nov 18 21:33:04 thanks, i search custom rom Nov 18 21:55:18 Any reason why toggling two views in a view that was animated in would return the parent view to its original position? Nov 18 21:56:44 demonstration mp4: https://mega.co.nz/#!9MthXSoC!G26ixVdi9FtkpUmj_gZOWB6Jk0c5I8iRfZvapsXidq4 Nov 18 21:58:08 l Nov 18 22:02:33 explodes: have you set your fillBefore/Enabled/After ? Nov 18 22:05:20 bankai_: o.O never heard of that Nov 18 22:06:17 ah that seems very, very applicable. Nov 18 22:06:19 Thank you! Nov 18 22:09:20 bankai_: I had it set, it did not make a difference. Nov 18 22:10:07 let me play around with it some more Nov 18 22:20:23 bankai_, I'd like an app, but haven't seen one Nov 18 22:21:22 can anyone explain to me the mechanism through which videos are stopped/restarted on an incoming call? Nov 18 22:22:09 http://www.androidcentral.com/android-44-kitkat-soak-test-verizon-moto-x-now-live Nov 18 22:22:12 hot, gimme my kitkat! Nov 18 22:33:33 why do you want kitkat? it doesn't really offer much to the end user ... Nov 18 22:33:44 only thing i think is kinda cool is the new fullscreening Nov 18 22:39:17 full screen, yes Nov 18 22:39:25 and the notificationlistener service Nov 18 22:39:28 since I don't have 4.3 Nov 18 22:39:39 screenrecord stuff is nice, too Nov 18 22:39:47 Hello everyone Nov 18 22:39:48 would be nice for me to make a new demo video for my apps Nov 18 22:39:48 oh yeah, screenrecord, that does look cool Nov 18 22:41:49 and performance optimizations are always more desirable Nov 18 22:41:54 How can i bring up the histogram of allocations, isn't there something in ddms? Nov 18 22:42:16 yes, just start monitoring memory Nov 18 22:42:43 I have a ScrollView that contains a TextView. The scrollview fills its viewport and the textview matches its parents width. does anyone know why the textview does not end up being the width of the screen but rather wraps its content and then the scrollview handles scrolling it? Nov 18 22:42:57 pfn: that is the allocation tracker tab or the heap tab? Nov 18 22:43:10 I dunno, try them all Nov 18 22:44:25 hmm i always forget where to find that, okay thanks Nov 18 23:05:20 g00s: thanks Nov 18 23:07:09 romainguy np; dykinga does a lot of hi work in the southwest ;) i got the impression thats an area you like to shoot in also Nov 18 23:11:02 mmmm, moto x soak test is rolling out? hot, can't wait to get 4.4 Nov 18 23:11:51 oh, I think I mentioned that already Nov 18 23:14:31 i wonder if i'll get 4.4 on my n7 this week Nov 18 23:15:16 on tablet, there's next to no change Nov 18 23:15:18 g00s: you can adb sideload the update.zip Nov 18 23:15:26 only thing I notice daily is that the status bar is grey instead of blue now Nov 18 23:15:40 heh Nov 18 23:15:57 thanks dcow ; not in a rush - i'll wait Nov 18 23:16:10 yeah same here Nov 18 23:16:26 since I have a n5 Nov 18 23:17:01 I just want it updated because I want 4.3 Nov 18 23:17:11 I want notificationlistener service so I can run dashclock notifier Nov 18 23:18:00 /topic Nov 18 23:18:02 err Nov 18 23:18:39 meh, my device is still at 4.0.4 Nov 18 23:18:53 That's not bad. Nov 18 23:19:03 Some devices are still on Gingerbread Nov 18 23:19:10 yeah, but those are garbage Nov 18 23:19:11 and my low-end device is unofficially at 2.3.7, because officially it's at 2.2 :p Nov 18 23:19:25 it has 384mb ram, so have fun :p Nov 18 23:19:47 My low end device is officially on 2.1 .. forced to 2.3.4 unofficially Nov 18 23:20:02 I use it as a music player, and the battery lasts longes that any other music player since I removed the sim card and disabled almost everything else Nov 18 23:20:06 but that's about it Nov 18 23:20:10 It has so little ram that autostarting apps on boot makes itself OoM Nov 18 23:20:35 oh well Nov 18 23:20:55 sometime, somewhere, someone will make a 4.4 rom for my 'high-end' device Nov 18 23:21:23 meanwhile, I was trying to get Proj4 to work Nov 18 23:21:52 anyone here have any experience with C? JNI? NDK? SISEGV? Nov 18 23:22:06 if yes, please read https://github.com/devork/android-hello-proj4/issues/2 and help me Nov 18 23:22:07 what's all those 1, 3, 7 letter words??!?! Nov 18 23:22:16 pfn: lol :p Nov 18 23:22:32 dcow: are u on tmobile or did u get unlcoked n5? Nov 18 23:22:44 att Nov 18 23:22:48 im looking to get an n5 myself right away Nov 18 23:22:53 its $350 from google Nov 18 23:22:57 but $450 from tmobile Nov 18 23:23:01 google is sold out Nov 18 23:23:11 just keep waiting Nov 18 23:23:18 I'm not going to buy *anything* :p Nov 18 23:23:19 and if i just pay the $210 to rent it for 6mo i can trade it in for a gs5 Nov 18 23:23:23 why does tmo add $100 ? Nov 18 23:23:43 because people will pay it? Nov 18 23:23:55 yeah pretty much Nov 18 23:24:06 My phone was $199 :) Nov 18 23:24:08 hm, its the opposite of subsidizing isn't it ? Nov 18 23:24:10 (and still is) Nov 18 23:24:30 for $50 + $17mo +$10 jump (if you want) thats pretty good deal vs $350 outright + if you lose your phone thats another $350 where as the $10jump includes insusrance Nov 18 23:24:32 Does "DrawerLayout" only exist in android-support-v4.jar? Nov 18 23:24:48 does att charge $350 for it? Nov 18 23:24:54 or how did u get urs dcow Nov 18 23:25:17 I bought from Google. Nov 18 23:26:01 dcow i got my device retail; did you think the google purchase experience was OK ? Nov 18 23:26:12 hmm if i lost phone its i think $120 Nov 18 23:26:23 so $210 + 120 = $330 over 6 months, for a replacement Nov 18 23:26:27 I've purchased from google many times, g00s. Never had a problem. Nov 18 23:26:31 i was kind of nervous BB return policy is like 15 days, which seems kinda suck to me Nov 18 23:26:44 i could just buy one for $350, if i lost it, get a $50 one from them after that Nov 18 23:26:45 I have never lost a phone Nov 18 23:26:53 but they were nice and grabbed a device with an aug mfg date ;) Nov 18 23:26:53 and I have never insured one either Nov 18 23:27:19 aug mfg date? Nov 18 23:27:29 yeah i wanted a later batch for the n7 Nov 18 23:27:36 ive had a phone stolen before, was nice to have th einsurance Nov 18 23:28:10 I just try to be careful, and keep it in my pocket whenever I am not home Nov 18 23:28:13 i had my mountain bike stolen of the porch the day before a big rage Nov 18 23:28:18 glad we had insurance too :) Nov 18 23:28:31 was working on it, went in for some pre-race food Nov 18 23:28:32 (pizza) Nov 18 23:28:36 came out, was gone :| Nov 18 23:28:40 I still have the bicycle I got for my 10th b-day :D Nov 18 23:28:44 had my bike stolen from my front lawn before Nov 18 23:29:09 Who does that? :| Nov 18 23:29:14 My dad had his bike stolen from our front yard, while my bikes (2) were there as well. They left those Nov 18 23:29:36 I suspect he forgot his key. I never forget keys :) Nov 18 23:30:06 my neighborhood is pretty decent; but yeah, I don't leave bikes out in front of my house... Nov 18 23:30:06 Peetz0r what don't you do, you must be magic. Nov 18 23:30:08 why are we talking about bikes in #android-dev? Nov 18 23:30:37 No, we're talking about how incredible Peetz0r is Nov 18 23:30:55 dcow: I attach all my keys together. If I want to enter the house, while my bike key is still in my boke, I'd notice immediately Nov 18 23:31:02 somebody got an Ellsworth moment with Spinergies and a marzochci fork … maybe for the better, since i had a spinergy explode and i almost went into the canyon. maybe the thief saved my ass :) Nov 18 23:33:28 What is causing the my buttons that are animated in to be amazingly clickable only at their previous location? Nov 18 23:33:50 amazing clickable ? Nov 18 23:34:07 you're using the old animation api that does not translate touch events Nov 18 23:34:18 jeez Nov 18 23:34:20 (or is it the new one, can't remember) Nov 18 23:34:24 where is the "new" api? Nov 18 23:34:34 which api are you using? Nov 18 23:34:41 19 Nov 18 23:34:41 view property animator? Nov 18 23:34:48 android.view.animation.Animation; Nov 18 23:37:27 you're using view.animate()? Nov 18 23:38:58 No, I'm going to now though Nov 18 23:39:04 try that. Nov 18 23:39:07 Looks like view.animate() is newer? Nov 18 23:39:35 only API 16+ supports .withEndAction .__________. Nov 18 23:39:52 It seems that I cannot download a arm gingerbread emulator image using the SDK manager Nov 18 23:39:59 and I need one to test my app Nov 18 23:40:09 explodes: added in api 12 yes Nov 18 23:40:33 there is a atom x86 image, but I can't use that with my native library and stuff Nov 18 23:49:52 im on th efenc Nov 18 23:49:54 i have small hands Nov 18 23:49:59 i know an iphone 5s is the perfect size Nov 18 23:50:19 but i mostly dev for android havent successfully finished the processing of getting my app to teh app storeyet Nov 18 23:50:43 but i do have a kindle hdx though Nov 18 23:50:47 which is the same specs Nov 18 23:50:49 just 4.2 Nov 18 23:51:03 seems to work in opengl es3 mode, not sure if it has the drivers or if its just faked Nov 18 23:51:12 which is why a nexus 5 would be great Nov 18 23:51:33 iphone 5 i s so small... Nov 18 23:51:42 my moto x, just the perfect size Nov 18 23:52:50 I'm a royal idiot. Spent an hour trying to fix a problem that was caused by this code: Nov 18 23:53:13 public class ObservableVerticalScrollView extents HorizontalScrollView Nov 18 23:53:24 :3 Nov 18 23:53:35 dcow: Lol, they always get you...those one letter ones Nov 18 23:53:58 i have small hands Nov 18 23:54:06 ive got the tmobile g2 from 3 years ago Nov 18 23:54:32 i could pay $210 to rent a phone (thats whatd id be losing when i trade it in) Nov 18 23:54:41 or i could just pay the $350 but iw ouldnt get the phone for awhole month Nov 18 23:54:46 and whats worse Nov 18 23:54:55 because its bigger than my hand id probably not actually use it as a phone righ taway Nov 18 23:55:07 but instead use it as a testing device that im paying for monthly Nov 18 23:55:08 =/ Nov 18 23:55:14 grr Nov 18 23:55:28 gwa2100: those one-letter ones are especially tough in c Nov 18 23:59:22 Oh my god… Finally, those drawers work. Nov 18 23:59:33 500 deletions, 150 insertions, about 12 hrs later... Nov 18 23:59:51 Thank you dcow, and the others involved. Nov 19 00:00:14 hmm, is there any way to use Fragments and support Fragments in the same app/activity? Nov 19 00:00:27 for $350 friggen the nexus 5 just seems liek such a good deal it just doesnt fi tin my damn hands =( Nov 19 00:00:30 grrrrrr !!! Nov 19 00:00:38 how big is it anyway? Nov 19 00:01:16 pfn: same Application, yes. Same activity, not really Nov 19 00:01:17 5 = 5" screen right? Nov 19 00:01:29 tripknotix: do you have super smalls hands or something Nov 19 00:01:51 like, recognized by the US Government as a disability small? Nov 19 00:02:05 5" is huge. I have a 4.5" phone, and have decided that the next one must be smaller Nov 19 00:02:08 not to sound insensitive or anythin Nov 19 00:02:14 and this has nothing to do with the size of my hands Nov 19 00:02:27 but it simple doesn't fit well in some of my pockets Nov 19 00:02:30 simply* Nov 19 00:03:07 but the number I should be checking is the overall length, not the screen diagonal Nov 19 00:03:47 pfn: you extend the support fragment activity for a support fragment manager. you extend a normal activity for a normal fragment manager. Unfortunately the fragments are not interchangeable Nov 19 00:04:16 dcow, yep, I know that, was hoping for a hack of some sort to allow them to coexist Nov 19 00:05:11 the nexus 5 is a few mm longer than my current phone, therefore I do not want it. The nexus 4 is also too large for those pockets Nov 19 00:05:41 nexus 4 is 134mm nexus 5 is 138mm Nov 19 00:05:45 pfn: I'd be as interested as you. Nov 19 00:05:57 my jiayu g3 is 135mm, so that's more or less the same Nov 19 00:05:59 pfn: why would you need both? does the support not allow for same details as api frag? Nov 19 00:06:01 ping me if you find a solution. unfortunately I don't know of one Nov 19 00:06:12 canvs2321, libraries that only expose support fragments Nov 19 00:06:40 hm Nov 19 00:07:05 if i was a library write, i would have made that a template selectable at build time Nov 19 00:07:08 *writer Nov 19 00:07:11 lol no, but my work mate just showe dme his galaxy s3 at 4.7inches my thumb coudlnt reach the other side of the phone id have to use both hands to do anythign with it Nov 19 00:07:20 my current phone i can pretty much do everything with one hand Nov 19 00:07:29 typing and all Nov 19 00:07:43 tripknotix think of the women Nov 19 00:07:53 they all hate these monstrous things Nov 19 00:08:06 except the asians Nov 19 00:08:10 tmobile g2 = Dimensions 119.4 x 61 x 15.2 mm (4.70 x 2.40 x 0.60 in) Nov 19 00:08:33 iphone 5s = Dimensions 123.8 x 58.6 x 7.6 mm (4.87 x 2.31 x 0.30 in) Nov 19 00:08:49 very close to the same exactly size Nov 19 00:09:33 nexus 5 = Dimensions 137.9 x 69.2 x 8.6 mm (5.43 x 2.72 x 0.34 in) Nov 19 00:10:13 very big difference , about 8 wider, it is thinner but unfortunetly the way you hold it, it doesnt add up the same way Nov 19 00:10:16 like i can hold it Nov 19 00:10:20 make calls with it im sure Nov 19 00:10:26 i suppose Nov 19 00:10:29 come to thin ko fit Nov 19 00:10:33 whne i text i mostly turn it side ways Nov 19 00:10:35 hmm Nov 19 00:10:46 ok yes Nov 19 00:10:48 im gonna get it Nov 19 00:10:51 the iphone fits better Nov 19 00:10:55 Y would listview reset the values of all entries of "Apple" via edittext to the new entry of "Banana" Nov 19 00:10:57 but im gonna get it Nov 19 00:11:12 wewt im getting a nexus 5 Nov 19 00:11:17 yay a new high end phon efor like 2 months Nov 19 00:13:08 If i type "Hello" in my edittext in activity 1 it will add "Hello" to the listview in activity 2 as the first entry ( which has no error ). Also, if I type "Apple" as my second entry I will change the first entry of "Hello" to "Apple" and add the new 2nd entry "Apple"... causing both entries to become "Apple" and "Apple"... any thoughts? Nov 19 00:15:03 are there subclasses of Picture that deal exclusively with paths? Nov 19 00:15:15 * pfn is happy with his moto x Nov 19 00:15:23 damn nice phone, I just wish the bootloader could be unlocked Nov 19 00:16:15 damn verizon and motorola Nov 19 00:16:41 I hope they reverse their policy some day Nov 19 00:17:05 Ok, I have a Picture instance, and I need to use it for clipping, instead of drawing. Is this possible? The picture was created with android-svg ... Nov 19 00:18:50 Is there a clever way to do this? Nov 19 00:19:23 hm, so groovy 2.2 came out. some of the comments on HN were interesting; beside grails and gralde - who uses it? seems like people went for scala (static typers) or python/ jruby / clojure Nov 19 00:19:58 no one Nov 19 00:20:23 i had a friend who liked grails, but i dont know anyone who uses that any more Nov 19 00:20:23 I have never heard of a single java shop using groovy Nov 19 00:21:07 seems kinda precarious the language is resting on the popularity of 2 projects Nov 19 00:22:00 heard of new language that combined go groovy and java?? it's called go go gadget groovy java. ;) Nov 19 00:22:21 man i loved inspector gadget Nov 19 00:22:29 Nobody? Nov 19 00:22:42 I'm not very good programmer I'm afraid Nov 19 00:22:50 g00 yeah I loved that show. Nov 19 00:23:17 I guess I could draw the Picture as an alpha-map and colorize the filtered result…. ?! Nov 19 00:23:22 How do I do that ; Nov 19 00:23:29 Let the games begin: Nov 19 00:25:41 XXCoder did you like legos as a kid? http://shop.oreilly.com/product/9781593275211.do Nov 19 00:25:47 \o/ Nov 19 00:26:10 as a kid? nah I didnt get much lego. too poor. I, however, get lego now. ;) Nov 19 00:26:14 I even sell em too lol Nov 19 00:28:20 XXCoder i had a field day when a local school threw out a whole bunch of legos and fischer-tecknik in the dumpster Nov 19 00:28:37 wow Nov 19 00:28:43 probably worn byt hey Nov 19 00:29:54 maybe thats why i'm kinda interested in that moto building-block type experimental concept phone Nov 19 00:31:34 yeah saw it Nov 19 00:31:38 very interesting indeed Nov 19 00:31:57 it'd be even better if it was compitiable Nov 19 00:32:02 basically open standard Nov 19 00:32:46 legos: teaching software engineering concepts in the physical domain to kids since the 70s ;) (interfaces, reusable components, etc) Nov 19 00:32:55 yep Nov 19 00:33:57 a few projects at uni used the computerized lego stuff for research projects; i guess soon people will be printing their parts instead Nov 19 00:34:10 yeah thats other thing I look forward to Nov 19 00:34:13 printed stuff Nov 19 00:34:21 How do I rasterize a Picture as a Bitmap?' Nov 19 00:34:24 I want to have a 3d printer but no money bahh Nov 19 00:34:31 AH I got it. Nov 19 00:44:09 Hi! I'm using a 3rd party C library in my android app trough a jni wrapper. Every time I try to call the constructor of the wrapper class, I get a SIGSEGV, but I cannot figure out why. Who can help me? Nov 19 00:51:53 Peetz0r: Sounds like anything could make that happen, but generally something like a problem in the C library, or a problem in the parameters passed to it Nov 19 00:52:09 probably better to ask the devs of the library or look at documentation though Nov 19 00:52:28 Hi: I am woking on a location based app which can provide the navigation feature, now I want this kind of layout http://i.imgur.com/g3v3way.png when user choose one type, it should be activated(with a highlight background), and the other should be de-activated(with a dark background). I wonder if I have to change the background bitmap manually winth a listener for the item? I want to know if there is something like "state_activate" avaible? Nov 19 00:53:45 maven__ maybe its a radio button Nov 19 00:54:12 maven__: seems like the foreground is changing, can just create two drawables for each element,and set them based on current view Nov 19 00:54:15 s0beit: it's a more-or-less dormant project Nov 19 00:54:28 (the java/android 'binding', that is) Nov 19 00:54:53 the project is here: https://github.com/devork/android-hello-proj4 Nov 19 00:55:18 their example only calls PJ.getVersion() which indeed works Nov 19 00:55:37 but something like PJ test = new PJ("foobar") fails Nov 19 00:55:45 Yes, I have two drawables for each item. One bule and there is dark. Nov 19 00:55:56 anybody here have experience in writing android applications with lein-droid, neko and clojure? Nov 19 00:56:48 benedikt i got the impression clojure on android is a no-go atm Nov 19 00:56:51 The app does compile and run, but when it tries to execute that line, logcat says this: Nov 19 00:56:54 F/libc (13401): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1) Nov 19 00:56:55 performance reasons Nov 19 00:57:12 and then it freezes for a few seconds, and closes without amything else in logcat Nov 19 00:57:20 g00s_: i'm doing this for fun! the lack of documentation and tutorials is the hard part. Nov 19 00:57:45 kjeldahl is doing some work with kawa , maybe you would find that interesting Nov 19 00:58:35 g00s_, If use radio button, is it possible to set the background in the xml without hard-coding? Nov 19 00:59:09 canvs2321, Do you mean that set the drawables for the view through the listener? Nov 19 01:00:36 <|0xD34D|> Peetz0r: have you looked through the native code? Nov 19 01:00:48 <|0xD34D|> that constructor calls allocatePJ(definition); which is a native method Nov 19 01:01:17 yes, I know Nov 19 01:01:34 but I don't actually see what's wrong in the code Nov 19 01:02:29 maven__: i'm saying however you detect that when said action happens i'm swapping my interest from bus, to car, etc...you set the drawables for each of the 3 elements based on what is being viewed. so be it a swipe, or them tapping the selection, in that code you set your drawables Nov 19 01:02:42 |0xD34D|: But I'm not a C developer, so I might not actually see what's happening. Nov 19 01:04:08 canvs2321, I got it. But I wonder if it can be implemented by xml configuration without coding? Nov 19 01:06:23 Oh well, I see it's bedtime for me. 02:00 Nov 19 01:06:34 I'm gonna fix this tomorrow. I hope... Nov 19 01:07:23 maven__: don't think so, code would need to be involved Nov 19 01:07:42 canvs2321, Ok, I got it. Thank you. Nov 19 01:08:48 maven__: but to be honest, i'd move away from tab host type navigation&maybe checkout actionbars&navigation drawers Nov 19 01:09:55 canvs2321, Ok, I will have a try.:) Nov 19 01:10:23 definately do :) Nov 19 01:19:52 good morning vietnam Nov 19 01:22:40 did they remove the screenshot feature from KK ? had someone test one of my apps and he said he can't screengrab anymore Nov 19 01:30:25 * g00s_ ponders why this api in 2013 uses Enumeration :| Nov 19 01:30:46 Can anyone help me with this xml problem im having? Nov 19 01:30:59 wasn't that generally superseded by Iterator in like java 1.1 :| Nov 19 01:31:20 oh, java 1.2 Nov 19 01:33:22 ah nice, green robot event bus has delivery priorities; time to ditch my guava crapola Nov 19 01:33:54 feels good to not maintain that any more ;) Nov 19 01:41:00 I'm having an issue with XmlPullParser, i've read all the docs about it, but i still dont quite get it. Would someone mind explaining a bit to me? :P Nov 19 01:41:35 its just an Iterator :) Nov 19 01:41:57 yea i get that, but i dont quite get how to operate it Nov 19 01:42:45 would you mind if i linked you some code and elaborated ? Nov 19 01:43:08 i haven't looked at it in a while, but you can post it to the channel for anyone to see , ya Nov 19 01:43:31 when i used it i didn't do anything exotic like namespaces Nov 19 01:43:53 xmlpull should have plenty of examples Nov 19 01:44:00 yea its nothing complicated, its basic really Nov 19 01:51:45 Is it possible to reset the android:versionName value for future releases? My alpha version has reached 1.6, I would like to have the beta version start over from 1.0. Nov 19 01:53:27 canadiancow or SimonVT , may I pm one of you ? Nov 19 01:59:47 * genii makes more coffee and wats a while. Nov 19 01:59:58 And also, waits. Nov 19 02:04:36 do I get notified if I ask for my app to be granted Device Admin privileges, and the user presses cancel? Nov 19 02:04:47 the DeviceAdminReceiver fires if they say yes... Nov 19 02:06:40 Since I'm not getting a reply from either of the two ops which seem to be here, I have a question regarding what is the usual accepted practice regarding searching out devs to work on a new project. Post somewhere under http://forum.xda-developers.com/android for instance? Nov 19 02:13:19 oh I guess I should check the result of startActivityForResult Nov 19 02:23:49 hm, never notice AS had a "Power Save Mode" Nov 19 02:24:01 this is going to be hard to test Nov 19 02:24:11 lol Nov 19 02:24:29 not like AS is the only app i'm running ;) Nov 19 02:25:01 my desktop struggles sometimes Nov 19 02:26:40 wonder how much power it saves when you Nov 19 02:26:59 re testing Nov 19 02:28:10 What is the correct, completely fail-safe way of creating a temporary file? Nov 19 02:28:27 This file will be used once, then deleted / overwritten Nov 19 02:29:20 fail safe? like journaled ? Nov 19 02:30:04 or fail safe, likely to do something sane on most android devices? Nov 19 02:40:19 my first computer science class the teacher had to stop everything to show this student how to use a mouse Nov 19 02:40:33 was the student trying to talk to it ? Nov 19 02:40:34 oh dear Nov 19 02:40:45 LOL Nov 19 02:40:45 twist: the student was a cat Nov 19 02:41:25 it wasn't like a magic mouse either Nov 19 02:45:28 Still waiting on a reply on Stck Overflow -_- Nov 19 02:45:32 Stack Nov 19 02:45:59 post the link then Nov 19 02:46:28 http://stackoverflow.com/questions/20052735/android-listview-duplicates-entries Nov 19 02:50:29 cant figure out why its changing the previous entries Nov 19 02:51:45 who sex cat pic Nov 19 02:51:54 lol Nov 19 02:52:13 lol i know i know .... not how it sounds Nov 19 02:52:34 got tired of using "a,b,c,d" Nov 19 02:52:53 any ideas? Nov 19 02:54:21 honestly i'm too green to be of any help, but in the future the more information you add to the question the easier it is for people to figure out what you're attempting Nov 19 02:55:16 yea Nov 19 02:58:52 if I had to guess though it probably has to do with the intent you're using to pass the string(s) (which was in your other question) **** ENDING LOGGING AT Tue Nov 19 02:59:59 2013