**** BEGIN LOGGING AT Mon Jun 18 02:59:58 2012 Jun 18 03:09:29 gaz, why dont you just change your web pages to use the background you want instead of using transparency? Jun 18 03:15:24 http://pastie.org/4106311 crashing when I try and make a new intent Jun 18 03:16:32 hmm im trying to be able to override a url , thi works in most of my webviews but not in some..... im setting a webview client and overriding shouldOverrideUrlLoading but in one case its not workign, any ideas? Jun 18 03:17:02 Mintoris yes that would be fine if a) client can do that on their side and b) the background will stretch to fill the full screen even when webview content is small Jun 18 03:17:13 ya Jun 18 03:17:20 my webviews will fill the parent but will the background# Jun 18 03:19:21 no idea why things behave so differently Jun 18 03:19:26 on my n1 one shouldOverrideUrlLoading is called fine Jun 18 03:19:30 not on my htc flyer Jun 18 03:20:12 what does it do on the htc? Jun 18 03:20:48 it attemps to go the url i click on which is basically fake Jun 18 03:21:00 usually i substitiute things in shouldoveride Jun 18 03:21:08 but if i cant then it wont go anywhere since the url isnt real Jun 18 03:21:24 basically the link goes to http://offers-list Jun 18 03:21:30 so i can detect that and send to a new activity Jun 18 03:25:14 when I do stuff like that i create a class that inherits form webview and override loadUrl Jun 18 03:25:32 *From Jun 18 03:25:35 good point Jun 18 03:26:24 i wa splaying down fragmentation only the other day Jun 18 03:26:26 what a fool i was Jun 18 03:36:57 I can't seem to ping the android emulator running in my machine over udp Jun 18 03:37:22 it works fine on real devices but no luck on the emulator, is there any settings I have to change? Jun 18 03:37:36 I am using the internal ip Jun 18 03:37:41 so it should be fine Jun 18 03:37:44 i think there is a problem with the ip address of the emulator Jun 18 03:38:00 try pinging a real device from the emulator Jun 18 03:41:25 Mintoris: I can connect to google from the emulator Jun 18 03:41:38 i had the same problem Jun 18 03:41:38 heya, I have two quick questions about setting up for Android development. Jun 18 03:41:58 i could not ping the emulator Jun 18 03:42:25 its like the ip address of the emulator does not resolve correctly Jun 18 03:42:31 how do i tell if a device is truly bricked or not? Jun 18 03:43:05 Mintoris: ehm, do you think its just giving out the wrong ip? Jun 18 03:43:17 Mintoris, what are you trying to do? Jun 18 03:44:15 im not sure, i just never got it to work Jun 18 03:44:41 this was when i was adding network support to my basic interpreter Jun 18 03:45:55 Mintoris: fck I think what might be happening, somehow both Virtual Box and Android are resolving to the same IP Jun 18 03:46:10 so I might have to try putting down virtual box and see what happens Jun 18 03:47:30 romainguy_, can i show you what my device does when i try to access the bootloader? Jun 18 03:50:13 So for starting out on the Android platform, which device would be my best bet on a ~$150 budget? Jun 18 03:54:19 ive got this lazylist code i stole from some tutorial somewhere, it works great on all my devices but i see on my tab im getting an error "no such file or directory mnt/sdcard/LazyList" - obviously the tab has no sd what could i change thatto instead ot make it work? Jun 18 03:56:51 gaz`: I guess its trying to cash something in memory and you dont have external memory Jun 18 03:56:59 maybe cache in the normal memory? Jun 18 03:57:09 yes seems that way Jun 18 03:57:16 cacheDir=new File(android.os.Environment.getExternalStorageDirectory(),"LazyList"); Jun 18 04:00:26 so do tablets have some special thing that can be used? Jun 18 04:00:33 and phones without sd Jun 18 04:01:03 you should use the API for detecting availability of external storage Jun 18 04:01:24 and use either a tmp directory, or sanely error out Jun 18 04:01:38 thats what im doing isnt it Jun 18 04:01:40 you should never hard-code a path to the sdcard Jun 18 04:02:35 https://developer.android.com/guide/topics/data/data-storage.html#filesExternal especially the part about checking availability Jun 18 04:03:34 hmm Jun 18 04:03:38 Environment cant be imported Jun 18 04:03:41 im using api 8 Jun 18 04:04:55 ooops Jun 18 04:04:59 ok it does work missed a bracket Jun 18 04:11:37 learning android.. is there any end to the class subclass object namespace constants mumbo jumbo? is it possible to memorize them or do you just refer to the api for everything Jun 18 04:12:09 like.. why is there INVISIBLE, and GONE... why not HIDE? Jun 18 04:13:55 gone means its gone Jun 18 04:13:59 invisible means its invisible Jun 18 04:14:02 makes sense after a while Jun 18 04:14:10 ie it can be invisible but not gone Jun 18 04:17:52 its clear the developers never used css Jun 18 04:18:13 haha Jun 18 04:18:15 i bet they did Jun 18 04:18:55 fack, how do i use storageon a device without sd Jun 18 04:19:03 im trying cacheDir= new File(AddToFavouritesViewListActivity.context.getExternalFilesDir(null), "LazyList"); Jun 18 04:19:12 but it wont make the dirs when i do cacheDir.mkdirs Jun 18 04:20:25 how do i reflash the rom on an android tablet that does not boot? when i access the bootloader it goes to this screen that shows a yellow triangle with a red exclaimation mark in the center of it and an orange robot underneath of it Jun 18 04:25:26 hi friends, is there any open source community for android - development? Jun 18 04:27:25 c2tarun, you're in it Jun 18 04:28:02 crackerjackz, ohh.. :) is there any place where people gather together and work on some project/app. Where I can contribute. Jun 18 04:28:47 c2tarun, i actually have some projects i want to work on but i don't know too much about android development Jun 18 04:29:33 crackerjackz, me neither, I created 2-3 apps just for practice, now want to work on some real quality app with someone :) Jun 18 04:29:47 i have some really great ideas imo, just need someone capable of helping me implement them Jun 18 04:29:48 * c2tarun couldn't upload apps because uploading account is not free :( Jun 18 04:30:02 crackerjackz, I want to help Jun 18 04:30:03 c2tarun, how much does an account cost? Jun 18 04:30:17 around $25 Jun 18 04:30:24 USD Jun 18 04:31:48 Can anyone recommend a solid phone for Android development on a $150-200 budget? Jun 18 04:32:50 mainmethod, in this budget you can go for Samsung, I hear samsung galaxy Y have gingerbread Jun 18 04:33:42 Alrighty thanks! Ill have a look. Jun 18 04:36:44 im getting permission denied trying to write to cachedir, i have permissions set, any ideas? Jun 18 04:42:00 not having much luck today with anything! Jun 18 04:42:04 whatsthis permisison denied crap Jun 18 04:44:50 gaz`, what groups is your user a part of Jun 18 04:45:03 no idea what u mean Jun 18 04:45:42 well im a bit new to android but i understand that it is similiar to linux in a lot of ways Jun 18 04:45:48 do you have a terminal installed on your device? Jun 18 04:45:55 no its nothing like that Jun 18 04:46:02 it might be if ur rooted Jun 18 04:46:12 but to a normal user its not got any of that stuff Jun 18 04:46:17 well what i was getting at was that it definitely sounds like a permissions problem Jun 18 04:46:23 yeh Jun 18 04:46:27 should be permissiosn set in manifest Jun 18 04:46:28 which i did Jun 18 04:46:31 read/write Jun 18 04:46:33 still no lcuk Jun 18 04:46:45 this device has no sd so im trying ot use itnernal cache Jun 18 04:46:54 there has to be some way of manually setting that permission with a command or something Jun 18 04:47:01 in manifest yes Jun 18 04:48:42 gaz`, I think if you are getting permission denied, then you cannot write in where you are trying to write. Jun 18 04:48:59 yeh Jun 18 04:49:01 thats true Jun 18 04:49:04 if some permission is missing, it will give you permissions exception Jun 18 04:49:07 why isnt permission granted tho Jun 18 04:49:22 on that exception you can add permission to manifest and fix that problem, this is different Jun 18 04:49:25 gaz im guessing you dont have the right path Jun 18 04:50:50 should do i use Environment.getDownloadCacheDirectory() Jun 18 04:50:51 to get at it Jun 18 04:51:17 ya i dont think you want to use that Jun 18 04:51:28 gaz`, what are you exactly trying to do? Jun 18 04:51:28 hang on a sec Jun 18 04:51:33 baring in mind this needs to work on devices without sd card Jun 18 04:51:50 it works fine with sdcard in but on htc one x (internal) and htc flyer (internal) i get tons of errors Jun 18 04:52:04 im just making a lazy list that can cache to storage c2tarun Jun 18 04:52:11 well converting the lazy list i got form the web Jun 18 04:52:44 infuriating Jun 18 04:54:32 the path you want will be data/data//files Jun 18 04:54:46 how do u know Jun 18 04:54:51 not sure how u get that path tho Jun 18 04:55:16 that is the internal storage location for all apps Jun 18 04:55:18 shame google dont have better docs Jun 18 04:55:35 for a test hard code the path to see if it works Jun 18 04:56:45 put your app package name in place of Jun 18 05:00:05 weird its working now Jun 18 05:00:12 ya Jun 18 05:00:16 thx Jun 18 05:00:29 have to find the system call to get that path tho Jun 18 05:00:32 sweet before it was going nuts Jun 18 05:00:34 yeh Jun 18 05:01:07 sweeettt Jun 18 05:02:16 are u using eclipse on window? Jun 18 05:02:45 yes Jun 18 05:03:00 do u see the DDMS button on the upper right? Jun 18 05:03:22 yes Jun 18 05:03:37 Mintoris: another way is to do: "adb shell" and then just navigate with "cd " and check with "ls" or "pwd" Jun 18 05:03:48 press that and you will be able to browse internal storage on the emulator Jun 18 05:05:01 oh yeh! Jun 18 05:05:03 how useful! Jun 18 05:05:05 didnt know Jun 18 05:05:16 thanks alot dude Jun 18 05:05:20 np Jun 18 05:10:05 gaz: see what getLocalPath() returns Jun 18 05:10:15 will do Jun 18 05:23:00 ive got a getview which is inefficient and really drags, whats the best way to find the slow down? Jun 18 05:23:44 gaz`: strictmode might be something to look into Jun 18 05:24:35 gaz`: often things that slow it down are: reading files, displaying images, database Jun 18 05:24:44 its all view stuff Jun 18 05:24:48 mostly Jun 18 05:24:53 i have lots of includes in my views Jun 18 05:24:58 that i turn off or on as needed, maybe too many Jun 18 05:25:15 how many? Jun 18 05:25:20 why cant they just have atool that shows whats using most cpu Jun 18 05:25:24 typical google this Jun 18 05:25:47 there is a tool for that ;-) go to DDMS and then next to show threads there is profiler Jun 18 05:25:47 i think google favors the apple side of things Jun 18 05:26:17 each row in the list has like 30 views Jun 18 05:26:22 which is way too many i suspect Jun 18 05:26:42 show threads? Jun 18 05:26:49 right of show threads Jun 18 05:27:12 i see thread/heap/allocation/tracker etc Jun 18 05:27:18 http://developer.android.com/guide/developing/debugging/debugging-tracing.html Jun 18 05:27:36 and very eclipse that its hidden away Jun 18 05:27:39 so i dont know it exists Jun 18 05:27:42 i still dont see it Jun 18 05:28:18 gaz`: are you re-using views? are you using the view holder pattern? Jun 18 05:28:20 how do you flash a rom onto a tablet? Jun 18 05:28:24 http://cl.ly/0W1m0X010C0S3v1K2I1G Jun 18 05:28:40 the one with the red circle on it.. click it once to start, then again when you want to stop Jun 18 05:28:45 i dont think im doing anythign smart JakeWharton no, altho im not inflating each time if u mean that Jun 18 05:28:57 ahha pboos Jun 18 05:28:58 ! Jun 18 05:29:08 so you're reusing the convertView when it's not null? Jun 18 05:29:14 yes Jun 18 05:29:21 Do you have a ViewHolder? Jun 18 05:29:36 you have to go into recovery mode right? Jun 18 05:29:44 and have access to the bootloader? Jun 18 05:29:51 no viewholder no Jun 18 05:31:21 hmm after th profiler it just launched into some weird debug mode Jun 18 05:31:30 i wanna see stats ideally Jun 18 05:31:52 gaz`: viewholder makes it a little faster (not as fast as reusing views though): https://xjaphx.wordpress.com/2011/06/16/viewholder-pattern-caching-view-efficiently/ Jun 18 05:32:13 aha ok theres a chart! Jun 18 05:32:35 gaz`: i mean first reusing views gives a big performance boost, the ViewHolder gives a little boost on top of that. Jun 18 05:32:44 this list is terribly slow Jun 18 05:33:01 wait.. let me get you the original slides of ViewHolder :) Jun 18 05:33:15 shame i cant follow these stats Jun 18 05:33:23 cpu time/call is best one to order by? Jun 18 05:34:22 im gonna remove half of the stuff from these rows Jun 18 05:34:26 and just say i had to limit them Jun 18 05:34:33 i mean i not seen them in use even once Jun 18 05:34:36 gaz`: maybe you should listen to this talk by @romainguy http://lanyrd.com/2010/io2010/smwm/ "The world of ListView". IT tells you most you need to know. as well about the ViewHolder Jun 18 05:34:47 yeh i def need to see that Jun 18 05:35:24 everythign is a list Jun 18 05:35:27 so would be good Jun 18 05:40:14 a google wave.. Jun 18 05:41:29 hmm Jun 18 05:41:31 still very jerky Jun 18 05:42:31 mind u its the worst getview ever Jun 18 06:06:19 actually i am reinfaltign the view Jun 18 06:06:28 i had to do that as i couldnt work out why it wasnt working Jun 18 06:07:10 i inflate onespecial view for the last row but then everythign is nulled on my usualy view so i have to reinfalte Jun 18 06:07:39 i dont really see why either theyre not even the same view variables Jun 18 06:16:39 how can this be if one of my textviews is null i reinflate the layer yet its still null Jun 18 06:17:08 this list only works if i inflate every time Jun 18 06:17:09 :-x Jun 18 06:18:36 yeh works fine if i reinflate but very slow Jun 18 06:18:50 i still dont understand how to be able to inflate for different types of view basically Jun 18 06:24:40 I hate "source not found" error. I never have any idea what the hell is wrong this time. Jun 18 06:25:27 so i have this function that needs to be run when a specific file type is clicked, or opened, how best do i acheive this? Jun 18 06:26:29 JakeWharton any links on how i avoid hanving to reinflate each time, i get nulls on the textviews i need if i dont Jun 18 06:26:44 inflate when convertView is null Jun 18 06:27:17 but that will be every time wont it Jun 18 06:27:23 whoops Jun 18 06:27:24 no Jun 18 06:27:27 i didnt mean that Jun 18 06:27:42 yeh but one of my rows is special so i inflate a different view Jun 18 06:27:53 when this happens things seem to get null in the usual view (row) Jun 18 06:27:53 then you should be using view types Jun 18 06:28:11 right! Jun 18 06:31:55 i feel like im doing this wrong. Jun 18 06:32:17 within the manifest, im using for an activity Jun 18 06:32:29 now should i be getIntent() from the onCreate method of the activity? Jun 18 06:32:53 or is there another function like onStart() or something i should be using? Jun 18 06:33:21 there are two cases you should handle Jun 18 06:33:33 getIntent() in onCreate() and onNewIntent() Jun 18 06:33:41 so abstract your logic into a method and call it from both Jun 18 06:34:02 Hey. I was wondering, an OnClickListener, does that launch an Async task or something similar? Reason I'm asking is that it's apparently allowed to do sockets within an onclicklistener, even though it's running on the UI thread. Jun 18 06:34:28 damn they never make anytign easy do they Jun 18 06:34:32 listview is very weird shit Jun 18 06:34:33 Moopz: you are allowed to do it, but it will make the ui unresponsive ;-) Jun 18 06:34:50 gaz`: the other way: listview is amazing :) Jun 18 06:35:09 pboos: Oh, really? So it does run on the UI thread? Jun 18 06:35:16 all i wanna do is only inflate when i need to Jun 18 06:35:19 yet i cant work it out Jun 18 06:35:32 Moopz: well normally. depends where it is called from.. if it is the onclicklistener from a button, it will run on the UI thread Jun 18 06:35:34 all rows are the same except very last one Jun 18 06:35:54 JakeWharton: thanks for clarifying Jun 18 06:35:55 pboos: Ah cool. Thanks. Jun 18 06:37:41 i wish i had an hr to watch that listview thing again Jun 18 06:38:52 gaz`: mind sharing the listview thing? Jun 18 06:39:00 hello everyone Jun 18 06:39:02 its a complete mess Jun 18 06:39:03 but Jun 18 06:39:14 hi Snuffel Jun 18 06:39:17 i have lots of normal rows and one special one at the bottom, i have to reinflate every time to avoid nulls Jun 18 06:39:25 I am trying to connect my HTC one X to my PC to use the network, but it says I might have to turn off the firewall Jun 18 06:39:27 trying to work out how to reinflate only when needed as its slow as hell Jun 18 06:39:28 and I can't Jun 18 06:39:28 it's a work pc Jun 18 06:39:42 does anyone know what holes I need in the firewall? Jun 18 06:40:29 gaz`: as JakeWharton said, try to use view types. then you will not have to reinflate them everytime. Jun 18 06:40:34 yeh im trying Jun 18 06:40:42 but i need something that is easy to do right now Jun 18 06:40:47 it is easy Jun 18 06:40:50 you override two more methods Jun 18 06:40:58 must have found a bad example Jun 18 06:40:59 getViewTypeCount and getViewType(int) Jun 18 06:41:03 i actually have a crazy situation, is it possible to setContentView of an xml file that is located externally? Jun 18 06:41:25 i.e. on the sd card Jun 18 06:41:37 xml files are precompiled Jun 18 06:41:44 you can't just load the raw XML Jun 18 06:41:55 its actually just for preferences Jun 18 06:42:23 as of right now, im expecting to just create the view types dynamically, as i parse the file Jun 18 06:42:28 is there perhaps an easier way? Jun 18 06:43:40 like having a text file that states 3 checkboxes, 2 drop downs, 3 text inputs, and add them to the view programatically Jun 18 06:43:50 How do I get the table names from MediaStore, in order to do a proper rawQuery? (Apparently I'm blind, and can't find it in the docs.) Jun 18 06:44:15 glaucous: do not do a rawQuery on that. you can't be 100% sure it is a database ;-) Jun 18 06:45:52 whats getViewType return? int? Jun 18 06:46:24 gaz`: yes int. and it has to be from 0- Jun 18 06:46:29 pboos: Well.. is there a way to do SQL 'IN' queries without using rawQuery? Jun 18 06:46:45 iits getItemViewType right Jun 18 06:46:47 now getViewType Jun 18 06:47:36 glaucous: well, you can do OR with each of the values that use use in IN :) Jun 18 06:48:03 gaz`: ReturnsAn integer representing the type of View. Two views should share the same type if one can be converted to the other in getView(int, View, ViewGroup). Note: Integers must be in the range 0 to getViewTypeCount() - 1. IGNORE_ITEM_VIEW_TYPE can also be returned. Jun 18 06:48:07 RTFM... Jun 18 06:48:22 yeh Jun 18 06:48:23 thanks Jun 18 06:48:27 apart from the rtfm bit ;) Jun 18 06:48:40 thanks for not asking stupid questions... Jun 18 06:49:49 pboos: that won't be pretty :( Jun 18 06:50:09 glaucous: i know.. but you did not ask for a pretty way ;-) Jun 18 06:50:23 glaucous: and currently i do not know of a pretty way Jun 18 06:51:01 glaucous: table names from media store? -- nope Jun 18 06:51:08 it's a ContentProvider Jun 18 06:51:14 the database is private, you don't get direct access Jun 18 06:52:30 okay, well then that's out of the question. Jun 18 06:52:54 yep i hate content providers Jun 18 06:53:25 heh installing HTS sync: "before proceeding, disable the virus scanner" Jun 18 06:53:27 uhm NO Jun 18 06:53:49 stuxnet is in there Jun 18 06:54:07 how do u set the type in the first place tho ? pboos? Jun 18 06:54:27 man it sucks to live in a country where you can potentially get a virus that was let into the wild by your own government Jun 18 06:54:51 readme: what country is that Jun 18 06:54:55 gaz`: the view type? well, you set the view type of an object by implementing int getItemViewType(int position) Jun 18 06:54:57 USA Jun 18 06:55:01 readme: cool! Jun 18 06:55:05 :P Jun 18 06:55:14 gaz`: from the docs: "Get the type of View that will be created by getView(int, View, ViewGroup) for the specified item." Jun 18 06:55:18 pboos ahh it grabs the one from the datastructer at positons and decides Jun 18 06:55:21 * readme uses linux, safe from US cyber attacks... Jun 18 06:55:26 ah ok i get ya! thanks Jun 18 06:56:41 gaz`: android asks okay: item at position X would be what view? then after it has the view type, it will try to reuse a view of that viewtype, and give it to getView as convertView. if it has none, it gives null. you create a new view for let us say view type 2, than that view will only be used as convertview for getView where getViewType returned 2 Jun 18 06:57:32 ok cool thanks, i think i get it now just tresting Jun 18 06:57:35 testing Jun 18 06:58:02 should have known about this ages ago ;/ Jun 18 06:58:11 this book im reading tells me nothing i dont know Jun 18 06:58:14 and i dont know that much Jun 18 06:58:42 there is a point Jun 18 06:58:53 where it is not worth it to read a book to confirm that your knowledge is thorough Jun 18 06:58:57 but to just reference it Jun 18 06:59:11 yeh well its still helping me a bit Jun 18 06:59:15 but nothing intricate Jun 18 06:59:38 none of the really cool stuff is in books Jun 18 06:59:46 yeh Jun 18 06:59:50 noticing that Jun 18 07:00:01 its tacitly stored in jakes head tho Jun 18 07:00:07 yeah Jun 18 07:00:29 someone should get him to write a book Jun 18 07:00:36 now all we gotta do is remove the head without destroying the brain Jun 18 07:00:42 its like the opposite of a zombie invasion Jun 18 07:00:48 yep Jun 18 07:10:50 pboos i got it all working now, but its still inflating every row, do i need to check if its null or something and use 2 diff variables for the view? Jun 18 07:11:57 gaz`: confused. what do you mean with every row? every position on the screen? or each row in one view? Jun 18 07:12:21 well it getstheviewtype base don position, then inflates Jun 18 07:12:27 so even tho it knows what type etc Jun 18 07:12:32 its still inflating every single time Jun 18 07:12:46 well. there are two ways.. one is: make a different layout for each different view type Jun 18 07:13:07 yeh i have 2 diff layouts defined in xml Jun 18 07:13:25 http://pastebin.com/2EUVD46H Jun 18 07:13:37 so it does know fine whats going on but i still dont see how to get it not to inflate Jun 18 07:13:40 every single time Jun 18 07:13:44 second one: make on base layout which has a layout with id=content. then inflate that base one and depending on view type inflate the specific one into content. Jun 18 07:14:20 gaz`: use the convertView? Jun 18 07:14:35 why ? Jun 18 07:14:48 to reuse existing views and not inflate every time... Jun 18 07:15:01 yeh thats what im trying to do Jun 18 07:15:07 but how do i know when to inflate or not Jun 18 07:15:14 reusing convertViews => your listview will be faster Jun 18 07:15:23 convertView == null => inflate Jun 18 07:15:29 the whole point of this painful excersize is to simply speed it up Jun 18 07:15:40 who sets it to null tho Jun 18 07:15:43 damn im confused Jun 18 07:15:48 if the convertView is != null then you can just reuse it Jun 18 07:15:48 convertView != null => do not inflate, use that view (do not worry, listview knows what viewtype you wanted and will give you the right one!) Jun 18 07:16:00 ok ill try but i find that hard to believe ;) Jun 18 07:16:11 trust me, it works :) Jun 18 07:16:23 yeh u wrote it didnt u Jun 18 07:16:26 :) Jun 18 07:16:30 not all of it Jun 18 07:16:34 ud hate to see the hacks ive been trying Jun 18 07:16:42 i dont fully get it thats for sure Jun 18 07:16:47 gaz`: it does work :) reason is: when you scroll, a view disappears. and listview is smart, so it just reuses that view, if a new view of the same type comes into the view. Jun 18 07:16:56 well lets see Jun 18 07:17:01 i bet you five pound it will crash Jun 18 07:17:16 that'd be your fault :p Jun 18 07:17:20 wtf tablet out of power thats all i need why cant it charge on usb faster than it uses power Jun 18 07:17:23 gaz`: so the first time getView get's called, convertView is ALWAYS null. but when you start scrolling, it might or might not be null :) Jun 18 07:18:01 well yeh, this is the theory but i prob done something wrong i hope to god it does work Jun 18 07:18:04 i got other things to do Jun 18 07:18:46 thanks for the tips tho gys i will find out in a few mins once tab has some damn power Jun 18 07:19:10 today i had ot get up at 3am to try get it working on ICS Jun 18 07:19:19 LOTS of very weird issues on ICS Jun 18 07:19:49 weirdest being the webviews Jun 18 07:48:46 is anyone here ? Jun 18 07:59:52 devslash: yeah, need some help? Jun 18 08:01:10 yay, cm7.2 booted Jun 18 08:19:38 Hello folks. I'm trying to do some basic HTTP Get, the APIs provided by org.apache.http.* were recommended to me, however, I have the following issue. I'm trying to implement a simple library that works on both desktop and Android. I've decided to use maven for both the library and the Android application. Jun 18 08:20:36 Here's where I see a problem, if I use org.apache.http.* I'd have to include it as a dependency to the library, however, when the android project uses it, will it know that the android platform has those apache libraries builtin? Jun 18 08:21:21 Or will I need to specify it myself in the application's pom.xml? Or should I just use URLConnection? Jun 18 08:21:43 <`z> pom poms Jun 18 08:25:24 right my tab has some juice lets see if it worked Jun 18 08:26:14 anybody managed to install the usb driver for galaxy S3? Jun 18 08:26:53 (or knows how to install the driver for samsung devices in general) Jun 18 08:27:11 isn't that installed along with kies? Jun 18 08:27:44 Zider: yeah, probably. unfortunately it seems that the kies installer is broken (it never finishes - it keeps "installing hotfix") Jun 18 08:28:18 kies should die in a fiery pit.. Jun 18 08:28:39 anyway, it might have installed the driver files already, even if installer hasn't finished Jun 18 08:28:58 guyys, how to make POST/GET request from app, and not freezing UI? Jun 18 08:29:06 threading? Jun 18 08:29:14 Zider: i don't think it did - when i connect the device it complains "unknown USB device" Jun 18 08:29:15 I THINK U NEED AN ASYNC Jun 18 08:29:16 whoops Jun 18 08:29:19 but id check that Jun 18 08:29:28 Asynctask will do what you need it to do Jun 18 08:29:44 hrnt: check c:\program files\Kies-something Jun 18 08:31:26 Zider: ok, i can see kies stuff in there. i restarted the installer, let's see if it works better now Jun 18 08:31:35 (if it doesn't, i'll try to manually launch "kiesdriverinstaller.exe" Jun 18 08:31:41 at least the filename sounds promising :P Jun 18 08:32:09 yeah that's the one I think Jun 18 08:35:41 whee, the installer actually worked this time, and now i can see my device on DDMS :) Jun 18 08:45:15 Hmm sitll not working somehow im getting ArrayImndexOutOfBounds Jun 18 08:46:22 hmmm how you get the keyboard automatically go away? Now I press button, view changes but keyboard is still on. Jun 18 08:48:41 aha finally Jun 18 08:48:47 list is fast now! Jun 18 08:56:39 hmm i just moved all of my webviews out of scrollviews and this was fine in ICS, but back on 2.3.6 they wont scroll now Jun 18 09:00:01 webview should handle its own scrolling right Jun 18 09:07:40 anyone know how to enable scrolliong on a webview Jun 18 09:08:58 DAMN THIS Jun 18 09:09:01 no shit on google even Jun 18 09:09:54 i can only find 'how to disable scrolling' Jun 18 09:10:02 seems as if scrolling is enabled by default Jun 18 09:10:05 yeh me too Jun 18 09:10:09 yeh its weird tho it wont work Jun 18 09:10:28 probably the site's fault ? Jun 18 09:10:37 doubt it Jun 18 09:10:43 hmm Jun 18 09:10:50 ill try with a diff url Jun 18 09:10:50 you never know Jun 18 09:10:53 try a normal browser Jun 18 09:12:15 i dont even know hat ud put into a site to disable scrolling Jun 18 09:12:21 what* Jun 18 09:12:30 but these sites have caused lots of issues Jun 18 09:12:35 and put me off webviews for life Jun 18 09:13:08 ur right Jun 18 09:13:11 my own siter scrolls Jun 18 09:13:58 what thehell could do it Jun 18 09:23:13 how do i get a specific list items information from within onListItemClick() Jun 18 09:23:40 i have the position being passed in, but how do i use it? Jun 18 09:29:20 Snuffel man every single site wont scroll, im tempted to throw them back in scrollviews Jun 18 09:36:26 hi guys Jun 18 09:36:28 May I know , is there any efficient power monotoring tools in android? like task manager in windows? Jun 18 09:36:30 which should show the number of cycles used(or cpu over head) in the currently running processor Jun 18 09:36:35 Hi. Jun 18 09:36:40 anyone got any templates or anythign that show how to make ur html to get it to scroll and fit the screen size etc, real pain Jun 18 09:39:57 Hey guys, just wondering, which game engine/library would you all recommend to create fantastic 2d games? Jun 18 09:40:46 oh lol Jun 18 09:40:51 clients just todl me they arent supporting ics Jun 18 09:40:55 what does that mean tho Jun 18 09:41:04 max sdk will be below ics...? Jun 18 09:41:14 seems insane Jun 18 09:43:44 gaz`: Yeah, that doesn't really sound right. But sure, if they don't want future-compatibility (which would mean ICS and newer, as in MaxSDK = Honeycomb), I'm sure they can have it. But someone should talk to them about it to make sure. Jun 18 09:44:25 May I know , is there any efficient power monotoring tools in android? like task manager in windows? Jun 18 09:44:37 yeh Jun 18 09:44:42 i guess they dont know what theyre saying Jun 18 09:44:49 "not supporting" could also just mean they don't care if it works there Jun 18 09:45:15 Hey guys, would someone be able to answer my question? :] Jun 18 09:45:18 I would appreciate it Jun 18 09:46:11 olimol andengine Jun 18 09:46:12 Ge0rG: Yeah, that's why I would've talked to them again and asked them a few questions about this, to see what they actually meant. Jun 18 09:46:32 Oh kk Thanks :], thats a library right? Jun 18 09:46:41 dunno Jun 18 09:46:44 looks like na engine Jun 18 09:46:45 :) Jun 18 09:46:47 an Jun 18 09:47:30 Ah, because i checked it earlier looked like a library Jun 18 09:47:31 im clueless Jun 18 09:47:32 lol Jun 18 09:48:26 olimol: libgdx is good as well Jun 18 09:48:54 Oh k, updated regually? Jun 18 09:51:25 If you guys were to make apps, would you do it without an engine? Jun 18 09:51:46 app or game Jun 18 09:52:00 game Jun 18 09:52:07 almost suicidal to do a game without an engine these days, yet all the games im writing are custom engines of my own Jun 18 09:52:31 a game without an engine Jun 18 09:52:31 Ah, smart thinking ;) Jun 18 09:52:32 fun Jun 18 09:52:34 Head starter. Jun 18 09:52:35 lol Jun 18 09:52:43 Thanks for your time guys Jun 18 09:53:29 the libgdx games look more pro, ill have to see for myself Jun 18 10:01:15 if an application uses custom permissions and another app that has a service that requires that permission isn't installed on a phone, the permission seems to be ignored on the app1 and when app2 is installed, app1 won't work properly Jun 18 10:01:25 is there any way around this or is it just my imagination Jun 18 10:01:50 or should I just skip the permission stuff in the service, going against lint recommendation Jun 18 10:24:33 http://pastebin.com/A0jbYQJD <- I have designed group of radiobuttons like this. Why I can select every one of them? I thought the radiogroup there is supposed to prevent that from happening. Don't tell me it's because of the table layout? Jun 18 10:28:03 tneva82_: "The selection is identified by the unique id of the radio button as defined in the XML layout file." Jun 18 10:28:37 Hi again guys! Has anyone dealt with Fatal Signal 11 (SEGSEGV) on the NDK? I figured this is because I am exceeding the maximum heap memory… however this is almost entirely consumed simply by calling the haar wavelet feature detection in OpenCV. Is there a flag that the Android VM can determine that the app requires more than the typical 30Mb heap? Thoughts? Jun 18 10:28:48 and I guess nesting layouts like this could cause problems as well, I think Jun 18 10:28:49 ah well each has. I just trimmed the parameters Jun 18 10:29:07 cause mainly I was wondering if the table layout screws things over Jun 18 10:29:17 but having them in row creates awfully long and wasted space. Jun 18 10:29:57 BeauJoh: please check whether it's because you're exceeding the maximum heap memory Jun 18 10:30:06 that normally does not result in a SIGSEGV Jun 18 10:30:23 (depending on how you handle it, of course) Jun 18 10:30:40 if malloc returns NULL and you try to dereference that pointer, than well Jun 18 10:31:04 hmm. Maybe I should use spinner instead if that's the issue Jun 18 10:31:46 you could, I don't know what you're trying to do exactly Jun 18 10:33:10 give user ability to choose between several values for setting. Jun 18 10:36:43 is there a way to detect swipes left and right on a listview? Jun 18 10:36:50 aswell as being able to click the items in the listview Jun 18 10:37:38 MDijkstra: hmm… I recall seeing corrupted heap memory. I am just looking at the trace now, gimme a sec Jun 18 10:38:55 http://getmoai.com/ Jun 18 10:39:01 foudn this to looks like a game engine Jun 18 10:39:22 gaz` yes, you'll need to use the method to capture touch events before they're processed Jun 18 10:40:36 hmm Jun 18 10:40:43 u sure? Jun 18 10:42:56 how can I view the battery power usage by an application in android please? Jun 18 10:44:10 yeah, there's something in the settings which breaks it down for ya Jun 18 10:48:55 gaz` I use it on adapter based views within my swipe-to-navigate app Jun 18 10:49:08 Whats the magic sauce to compare "foo" to r.string.foo ? Jun 18 10:50:27 hmm, interesting... Jun 18 10:50:36 for some instances of my custom views onMeasure is never called Jun 18 10:50:41 which is surprising.. Jun 18 10:51:10 how can I view the battery power usage by an application in android please? Jun 18 10:51:11 how can I view the battery power usage by an application in android please? Jun 18 10:52:42 kanupatar: Android 4.0 has battery such stats build in: http://i1128.photobucket.com/albums/m496/glafollette865/ICS-Battery.png Jun 18 10:52:43 yeah write it a few more times, someone is bound to help you .... Jun 18 10:53:11 gingerbread has it too, so does froyo Jun 18 10:53:13 kanupatar http://developer.android.com/reference/android/os/BatteryManager.html Jun 18 10:53:26 kanupatar, its in settings -> battery on ICS Jun 18 10:54:08 ... oh sorry ... assumed we are in "dev" here .. ;) Jun 18 10:54:16 myki, bankai_ my Galaxy S2 shows a lot more battery spent in just 'Android OS' than my HTC Desire (similar to Nexus One) did Jun 18 10:54:17 okay program logic question: If I have multiple layouts should I just make one intent per layout rather than switch between them? Jun 18 10:54:32 looks like switching layouts just creates tons of issues. So which one is better practice? Jun 18 10:55:43 tneva82_, use fragments, its the new way :) Jun 18 10:55:47 layout != activity tneva82_ Jun 18 10:56:05 maybe he means intent == activity :) Jun 18 10:56:18 of course it's not Jun 18 10:56:43 yeah I guess. That's why I'm telling him that Jun 18 10:57:34 um. What I'm talking should I create new intent when I switch layout? Maybe I'm just doing this wrong but by simply changing layout seems to cause crapload of "source not found" errors easily. Jun 18 10:59:39 tneva82_, I'm don't understand what you're doing, to switch 'layouts' you usually use something like ' setContentView(R.layout.main);' Jun 18 11:00:31 yes. but there's often bit of setting up I need to do for each layout. If I try to do that in the oncreate function it gives me source not found errors Jun 18 11:00:43 to set up contents of say spinner before I have called that function doesn't work Jun 18 11:01:03 thanks myki , I do checked that but it showes only the power usge of "standby and display" , but I am more interested in any multimedia player application power usage Jun 18 11:01:04 maybe that's how it's supposed to be done but feels awfully clumsy to me. Jun 18 11:01:05 of course it doesn't Jun 18 11:01:16 brian_de: i want the installer name Jun 18 11:01:22 cause now I'll end up with initialization code in several places Jun 18 11:01:29 thanks vro , I do checked that but it showes only the power usge of "standby and display" , but I am more interested in any multimedia player application power usage Jun 18 11:01:31 kanupatar, myki i guess it depends on the device, what device do you have? Jun 18 11:01:46 vrodic: samsung galaxy tab Jun 18 11:02:20 kanupatar, usually good Android 'citizens' produce devices that have more informative power usage measurements Jun 18 11:02:24 weird.. i don't get it :D.. seven instances of my view class get created Jun 18 11:02:30 but onMeasure is only called for two of them.. Jun 18 11:02:44 vrodic: android 4.0.4 Jun 18 11:03:20 vrodic: samsung galaxy tab p1000 Jun 18 11:03:37 and I always need to check which view I'm least I use wrong item. Jun 18 11:03:38 tneva82_, maybe it would help to check out 'Fragments', you can deploy that even on old androids with 'android support package' Jun 18 11:03:58 Last project I did I switched intents and code was lot cleaner Jun 18 11:03:59 hello. pls can someone help? i have a code where configuredNetworks().BSSID always returns Null...someone info about such a problem? Jun 18 11:04:41 tneva82_, you mean you had multiple activities and an intent per activity? why not clean it up like that now? Jun 18 11:05:11 kanupatar, yeah, i guess that device doesn't support power measurements that well Jun 18 11:06:40 and for example now that I added spinner it crashes again when I try to switch to the 2nd layout. Guess I'm again using wrong layout stuff somewhere Jun 18 11:06:45 someone have any experience with using wlan classes in android? Jun 18 11:06:57 Rintano, what do you want to know Jun 18 11:08:29 vrodic: ohh my god..i hardly have a demo tommorrow on my mp3 porting optimisation :( any help is much appreciated Jun 18 11:09:21 i have a code which looks on available wlan networks, and than on configured networks. i need to know which are in both lists, list of all available networks returns bssid, but the list of configurednetworks.bssid is always null :( Jun 18 11:09:44 kanupatar, i guess you could always use a different device or just demonstrate the battery capacity drop before and after your optimizations Jun 18 11:10:20 hmm.. so, can setMeasuredDimension just take ordinart ints> Jun 18 11:10:22 kanupatar, you don't necessarily need android fancy power measurement for that Jun 18 11:11:35 https://groups.google.com/forum/?fromgroups#!topic/android-developers/gKNG6VIx8ac Jun 18 11:11:54 that thread says i need to use MeasureSpec.makeMeasureSpec Jun 18 11:12:26 while this: http://developer.android.com/reference/android/view/View.html#setMeasuredDimension%28int,%20int%29 is really weirdly worded Jun 18 11:13:21 and also the "complex bitmasks" the doc talks about are only available from api level 11 on.. Jun 18 11:13:28 so this leaves me quite confused.. Jun 18 11:15:14 do i need to pu anything special into html to make it scroll in a webview? Jun 18 11:15:45 have someone experience with BSSID in configuredNetworks? pls Jun 18 11:20:18 vrodic: yes, dont need any fancy..atleast need any command line options please Jun 18 11:20:53 kanupatar, just run your code for 10 minutes and look at battery level Jun 18 11:21:16 kanupatar, then charge, then with unoptimized code Jun 18 11:21:27 vrodic: it is for a demo...that does not give me more Jun 18 11:22:14 rather ironically ive found out if you remove the metadata thats supposed to hlep then the scrollign works fine Jun 18 11:22:45 kanupatar, it's impossible to have a 5 second demo unless you can somehow measure the power usage in miliwatts Jun 18 11:23:03 vrodic: yes, thats what I need an app Jun 18 11:24:04 kanupatar, there's no app that can magically measure power usage for every different Android device if the drivers and kernel doesn't report it Jun 18 11:24:37 kanupatar, maybe in theory you could make an app with root privileges, but i don't know that anyone has done that Jun 18 11:25:03 vrodic: where can ask for any help in this moment? Jun 18 11:25:46 kanupatar, i don't know, maybe samsung, maybe somebody at XDA developer forum Jun 18 11:26:41 maybe somebody is lurking here but too lazy to answer :) Jun 18 11:27:06 it's too early for US guys right now i think Jun 18 11:31:55 vrodic: ohh ok..you mean US guys are sleeping now? Jun 18 11:32:32 kanupatar, i guess :) Jun 18 11:34:47 have someone experience with the list WifiManager.getConfiguredNetworks??? pls Jun 18 11:35:36 Rintano, exactly because of your questions there should be more open source apps, but please do try at XDA developers forums too :) Jun 18 11:35:50 Rintano, asking people for help isnt going to make the value suddenly appear. that api doesnt return the bssid Jun 18 11:36:20 Rintano, anyway, android is an open source project, the android settings themselves are OSS, look at the source code man :) Jun 18 11:37:28 vrodic: you from where ? I guess from asia Jun 18 11:37:54 yes, the source and the documentation says there should a functuion returns the BSSID, but is always null Jun 18 11:37:56 kanupatar, croatia, more to the west Jun 18 11:38:33 vrodic: ohh i know..my room mate was from there....slovakia ....martin kuciak :) Jun 18 11:40:10 hmm, ok.. is layout() called with coordinates relative to the parent layout? Jun 18 11:40:18 or with absolute screen coordinats? Jun 18 11:40:20 http://developer.android.com/reference/android/net/wifi/WifiManager.html#getConfiguredNetworks() here is written, that should return the BSSID in the list Jun 18 11:40:21 kanupatar, slovenia, slovakia, croatia, poland, czechoslovakia, bosina, serbia, macedonia and more , there are a lot of us slavs :) Jun 18 11:40:58 so if u remove all metatags all my issues today with webviews are gone, metatags are supposed to help not blindly hinder... Jun 18 11:41:03 vrodic: i heard slovakia and czechoslovakia are enemies Jun 18 11:41:28 vrodic: like north and south korea Jun 18 11:41:38 lol Jun 18 11:42:00 kanupatar, well, not exactly like that, a bit more peaceful :) Jun 18 11:42:10 slovakia and czechoslovakia :) Jun 18 11:42:21 czech republic Jun 18 11:42:25 i fubared Jun 18 11:42:28 :) Jun 18 11:42:33 ok, trial and error seems to indicate that it's relative coordinates Jun 18 11:42:49 here is nothing betwen us and the czech republic Jun 18 11:43:00 we are friendly neighboroughs Jun 18 11:43:26 vrodic: ohh ok.... Rintano : you from czheck? Jun 18 11:43:36 went to prague once Jun 18 11:43:38 was awesome Jun 18 11:43:49 kanupatar, from slovakia obviously :) Jun 18 11:44:04 exactly Jun 18 11:44:15 from slovakia Jun 18 11:44:18 vrodic: ohh ok....any way the babes from that side are marvellous Jun 18 11:44:50 Rintano: vrodic : the best one is from poland Jun 18 11:45:37 anyone got a HTC ONE X? Jun 18 11:45:40 yeah Jun 18 11:45:41 i do Jun 18 11:46:14 sweet, do u know if the screen is considered xlarge Jun 18 11:46:40 i want to specify an alterantive layout in extreeme circumstances when someone uses my app on a tablet, but i dont really want it to happen onthings like htc one x Jun 18 11:46:49 gaz`: no, it's considered large Jun 18 11:46:52 I'm pretty sure Jun 18 11:46:56 large/xhdpi Jun 18 11:46:58 any other androd irc channels , other than #android , #android-dev ? Jun 18 11:47:17 MDijkstra - ah yeh thats a problem, then itll use my layout, i meant large ifnact Jun 18 11:47:30 its ironic i have to leave my main menu looking a mes son tablets, to let phones like that work Jun 18 11:47:44 it must be runnign incompatibility mode or something because that phone is 720x1280 Jun 18 11:47:50 gaz`: no Jun 18 11:47:53 so it shoudl stretch and look a mess or something Jun 18 11:48:08 gaz`: a phone both has a screen size and a dpi value Jun 18 11:48:25 screen size determines the number of device independent pixels available Jun 18 11:48:37 ah Jun 18 11:48:40 dpi determines how many real on-screen pixels map to one device independent pixel Jun 18 11:48:46 see dpi confuses me Jun 18 11:48:51 ie Jun 18 11:48:57 on a xhdpi device Jun 18 11:49:15 the factor is two Jun 18 11:49:39 mdpi is where device independent pixels=real pixels Jun 18 11:50:02 my main menu has to be "pixel perfect" because of the images they gave me so i have to use wrap content, i cant make it stretch as if the images arent into ratio they arent please, so my main menu is nice on n1, htc one x, but on my tab its a mess Jun 18 11:50:10 a good example of this principle is the galaxy nexus vs galaxy tab 10.1 Jun 18 11:50:25 both have (nearly) the same screen size, namely 720x1280 Jun 18 11:50:35 yet the galaxy nexus is large/xhdpi Jun 18 11:50:46 and the galaxy tab 10.1 is xlarge/mdpi Jun 18 11:50:50 yeh Jun 18 11:50:58 well the one x ha a bigger screen than my tablet Jun 18 11:51:04 yet on one x my main menu sits nicely Jun 18 11:51:07 but on tab looks a mess Jun 18 11:51:31 yeah, again that's because the one x has more on-screen pixels per DIP Jun 18 11:51:32 and i can fix it "roughly" (ie images might be stretched a bit) by using an laternative layout for large but i dont want htc one x to use that layout Jun 18 11:52:12 so now i have to leave my tablet build a mess Jun 18 11:52:18 to ensure it looks ok on htc one x Jun 18 11:52:26 unless of course im talkign total shit which i could easily be Jun 18 11:52:39 well, dunno about which params the one x has Jun 18 11:52:53 I'm assuming the same as the gnex Jun 18 11:53:07 if im targeting a low api and not putting supports screensize etc, is it running in some sort of compatibility mode? Jun 18 11:53:29 oh i sent u my app right Jun 18 11:53:33 so u might remember Jun 18 11:53:37 it surely wasnt true half hd Jun 18 11:53:40 yeah, it looks fine on the galaxy nexus Jun 18 11:53:48 or my layouts would be messed up on main menu Jun 18 11:54:17 not that I could see, but I kind of doubt the one x has screen size large Jun 18 11:54:36 if so that would make sense Jun 18 11:54:40 and i coudl put in that layout for tabs Jun 18 11:54:51 well, a tab is almost always xlarge Jun 18 11:54:58 client doesnt even want it on tabs but its all workign bar one page so i may as well Jun 18 11:55:03 mine isnt, 7" htc flyer Jun 18 11:55:09 unless you're talking about 7" tablets Jun 18 11:55:12 if i stick the file in layout-large it selects it Jun 18 11:55:43 yeah, little you can do about it other than making your layouts scale properly Jun 18 11:55:54 so you don't have to deal with stretching images Jun 18 11:56:02 ie, convert everything to 9-patches Jun 18 11:56:07 yeh Jun 18 11:56:11 cant really bedone with those icosn surtely Jun 18 11:56:13 surely Jun 18 11:56:18 intricate drawings Jun 18 11:57:00 dunno, would probably be a pain Jun 18 11:57:17 this is exactly why they've introduced the new layout qualifiers in 3.2 btw Jun 18 11:57:31 doesn't really help you I'm afraid Jun 18 11:57:35 newer than layout-large ? Jun 18 11:57:38 etc Jun 18 11:57:40 yeah Jun 18 11:57:52 they just let you specify the layout to use in absolute screen sizes Jun 18 11:57:55 do u have a second to test a new apk or not? Jun 18 11:58:00 i think ive fixed everything that was bad Jun 18 11:58:02 gaz`: not currently, at work Jun 18 11:58:10 and i can stick in my new xml see if it selects it Jun 18 11:58:11 ah ok Jun 18 11:58:19 but if you mail it I can test it once I get home Jun 18 11:58:28 nice one man Jun 18 11:58:29 thanks Jun 18 11:58:34 how many hrs u working for more Jun 18 11:58:36 should really stop slacking now, bbl :) Jun 18 11:58:41 ill send it just before then so u get latest Jun 18 11:58:44 k Jun 18 12:07:47 anyone know how to report the screensize qualifiers Jun 18 12:07:53 ie "large2 or "xlarge" Jun 18 12:07:56 programatically Jun 18 12:10:07 humhum. program crashes if I try to add spinner to the layout without any code regarding it on the java code. Ah well. Day almost over so has to wait for next week to think about it. At least program can be demoed as it is. Jun 18 12:26:57 Hi! Jun 18 12:27:13 Is it possible to get the IMEI of a device/SIM from the adb shell? Jun 18 12:28:32 I know there is String imei = TelephonyManager.getDefault().getDeviceId(); - but I need to access it from the shell... Jun 18 12:29:44 http://stackoverflow.com/questions/6852106/is-there-an-android-shell-or-adb-command-that-i-could-use-to-get-a-devices-imei Jun 18 12:30:00 fir hit for google search "android imei adb shell" Jun 18 12:30:23 ah, thanks - adb shell dumpsys iphonesubinfo works great :) Jun 18 12:30:58 wongk, yeah, maybe I tried the wrong search keywords Jun 18 12:31:24 thanks a lot :) Jun 18 12:46:34 hmm vant get my listview to work past the gesture "layer" Jun 18 13:00:02 * Zharf wonders how to integrate ActionBarSherlock into an android project under IDEA so that it wouldn't be forked/cloned in his git repo :E Jun 18 13:00:25 git submodules Jun 18 13:00:48 IDEA puts its module file in the submodule directory... Jun 18 13:01:16 which has what implications? Jun 18 13:01:22 not sure if that's workable situation Jun 18 13:01:33 couldn't tell you :P Jun 18 13:01:37 can I have my own files inside submodule dirs? :) Jun 18 13:01:53 you can put your submodules wherever you want Jun 18 13:02:13 they don't need to be in a submodule dir Jun 18 13:02:21 I know that Jun 18 13:02:40 i am missing the problem, then Jun 18 13:03:11 but IDEA would require me to put an extra file into ActionBarSherlock/library/ directory when I add it as a module to the project :E Jun 18 13:03:29 oh, that shouldnt be a problem Jun 18 13:06:02 damn i did it Jun 18 13:06:04 thats awesome Jun 18 13:06:56 can swipe left and right thru my listviews now Jun 18 13:07:01 gestures rock once they work Jun 18 13:10:25 wongk, but it is, I can't add files to my git repo that are under a directory of a submodule, apparently :) Jun 18 13:11:11 oh, no Jun 18 13:11:39 you wouldn't add that file to vcs Jun 18 13:12:40 how would you do it then Jun 18 13:12:43 you would have the same experience with eclipse as well Jun 18 13:13:05 just add the submodule in your IDE on each machine Jun 18 13:13:06 so what do I do when I want to make a sqlite db outside of an activity class? I need context. o.O Jun 18 13:13:22 BuSheeZy: application context Jun 18 13:13:26 would be one solution Jun 18 13:13:30 Hi! Jun 18 13:13:32 wongk, well that just sucks, I'd just rather fork the library :p Jun 18 13:13:37 like the getApplicationContext()? Jun 18 13:13:46 a lot like that Jun 18 13:13:48 well Jun 18 13:13:50 if the compilation straight from git won't work, it's not good enough Jun 18 13:13:54 Zharf: to each their own :P Jun 18 13:14:20 How do I call that from a different class? Jun 18 13:14:52 i do so through the Application object Jun 18 13:15:24 I wish the maven lib thing from idea would just work with ABS, but noo, android lib projects have to be retarded :p Jun 18 13:17:43 :/ Jun 18 13:18:31 http://stackoverflow.com/questions/11083674/replacing-escape-in-json-linkedhashmap-object-on-android Jun 18 13:18:33 * under prots Jun 18 13:18:38 still stuck on this code from saturday Jun 18 13:33:55 wongk: do you rembember my question of yesterday? :P Jun 18 13:34:07 no, i don't Jun 18 13:42:25 Jabo: json.toString() -> what is "json"? Jun 18 13:42:39 A JSONObject from the standard API? Jun 18 13:44:03 Jabo: the escapes make sense because you're telling it to put a string that is already json into a json object, so it will escape... but it's obviously not what you want. Jun 18 13:45:03 Jabo: the best approach is to stick with a single json library, really. Jun 18 13:45:25 Also, if your API is relatively sane, I very much recommend using a form of object mapping. Jun 18 13:50:28 I'm building an adressbook, so I've my ListActivity and my Database with id, name, surname, phone, mail etc.. In my list I let it show only name and surname. I have to implement the possibility the delete the contacts individually, so I use a context menu. In public boolean onContextItemSelected(MenuItem item) { how can I get the record of the element? Jun 18 13:51:26 with AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) item.getMenuInfo(); I can get the ID of the list not of the RECORD!! Jun 18 13:51:27 under: if this is a new app it's recommended to use the contextual action bar Jun 18 13:51:30 by the way Jun 18 13:51:37 rather than a context menu Jun 18 13:52:05 but let me see Jun 18 13:52:27 contextual action bar ? what you mean? Jun 18 13:52:39 have someone experience with the WifiManager.grtConfiguredNetwork list? Jun 18 13:53:01 If I am reading JSON and images from a web server using Jun 18 13:53:01 HttpUrlConnection, how should I be reading those files in? Currently I Jun 18 13:53:01 use getInputStream and wrap it in a InputStreamReader and then a Jun 18 13:53:05 BufferedReader, but this wont work for images or other file types will Jun 18 13:53:05 MDijkstra: I'm using: http://www2.mikeplate.com/wp-content/uploads/2010/01/ListViewDemo02.png Jun 18 13:53:08 it? Should I be using DataInputStream or some other java class to get Jun 18 13:53:09 the low level byte data? Jun 18 13:53:15 Oh man thats ugly, sorry. Jun 18 13:54:31 under: context menu's are kind of deprecated in the sense that ICS only uses them in one place that I know of Jun 18 13:55:01 then no, MDijkstra I've to run this app on 2.3 android Jun 18 13:55:15 under: that object has the position of the item Jun 18 13:56:23 MDijkstra: hmm? Jun 18 13:56:33 MDijkstra: what is that place? Jun 18 13:57:18 wongk: what you mean? please explain Jun 18 13:57:32 http://developer.android.com/reference/android/widget/AdapterView.AdapterContextMenuInfo.html#position Jun 18 13:57:52 MDijkstra: i see the context menu all over the place in ICS Jun 18 13:57:57 oh, you mean position field Jun 18 14:00:16 [14:42] Jabo: json.toString() -> what is "json"? Jun 18 14:00:32 standard JSONObject Jun 18 14:01:04 gets passed to StringEntity and POST'd Jun 18 14:01:35 wongk: ok, but I've to get ID database record, I dont care about the object Jun 18 14:01:54 please tell me your object has that information Jun 18 14:02:43 what object are you talking about? Jun 18 14:03:10 whatever data object represents a row in your database Jun 18 14:03:20 that is displayed in oyur listview Jun 18 14:04:50 wongk: http://ideone.com/9HkkK look at 48 Jun 18 14:06:20 you're not following my advice from yesterday Jun 18 14:06:28 so this conversation is moot Jun 18 14:06:37 you don't even have the information you need Jun 18 14:06:51 I dont rembember what you told me Jun 18 14:07:11 maybe have I to store record somewhere? Jun 18 14:08:11 hmm, is there a simple way to make checkboxes resize? Jun 18 14:08:21 to the available space? Jun 18 14:09:22 under: you're not even reading the ID information for each row from the database, how do you expect to access that information later? Jun 18 14:10:48 you're right. So first I get all the records and store them on an array, then I add to a listview Jun 18 14:11:03 yes, OOP Jun 18 14:11:11 read your data into an object Jun 18 14:11:24 write an adapter to display your objects in the ListView Jun 18 14:12:15 perfect, thanks Jun 18 14:18:34 Hey folks! ; ) Jun 18 14:33:03 you down with OOP Jun 18 14:33:17 yeah you know me Jun 18 14:33:27 +! Jun 18 14:37:40 canadiancow: gtfo of my pandora! Jun 18 14:37:45 wat Jun 18 14:37:55 i open it up and the first thing i see is a big ad for zynga poker :P Jun 18 14:38:02 oh Jun 18 14:38:04 you should download it Jun 18 14:38:09 and spend some money on chips Jun 18 14:38:13 pandora told you to Jun 18 14:38:16 hah Jun 18 14:39:35 is there a way to make a checkbox resize according to the size it is given? Jun 18 14:39:49 checkboxes seem to be somewhat resistant against layuting Jun 18 14:39:50 layouting Jun 18 14:40:25 i like how corrected your spelling of a word that does not exist Jun 18 14:40:31 :D Jun 18 14:40:41 you accidentally a word, too :D Jun 18 14:40:49 :D Jun 18 14:42:09 man theres an ios game (i know, i know...but it doesnt exist for android :( ) that i bought for ... at most $5 Jun 18 14:42:10 we use a selector with two drawables for the different states.. Jun 18 14:42:14 and ive probably spent 50 hours playing it Jun 18 14:42:17 and im not even 10% done Jun 18 14:42:22 best. investment. ever. Jun 18 14:43:18 i wish i could see what is currently playing on my lockscreen Jun 18 14:44:49 canadiancow|work game? Jun 18 14:45:37 http://www.windowsgames.co.uk/slay.html Jun 18 14:45:44 http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=315102561&mt=8 Jun 18 14:48:42 canadiancow|work ahh stratagy game, the best :) Jun 18 14:48:52 * Jug6ernaut wants to make an advancewars esk game Jun 18 14:48:59 but time i have little of Jun 18 14:49:06 that and art skills :\ Jun 18 14:49:22 yea ilike this one because it's totally offline, so i can play on subways, airplanes, etc Jun 18 14:49:35 and if im commuting an hour every day, that's an hour a day i can play this Jun 18 14:49:38 canadiancow|work idk why android has so few stratagy games..like NON Jun 18 14:49:39 which VERY quickly adds up Jun 18 14:49:45 haha Jun 18 14:49:45 because android sucks Jun 18 14:49:50 and its not worth the time to make a game Jun 18 14:49:51 right? Jun 18 14:49:54 :o Jun 18 14:49:55 thats what all the ios devs say Jun 18 14:50:02 lol Jun 18 14:50:08 dude Jun 18 14:50:27 they brains have atrophied from using objective-c Jun 18 14:50:30 i work on android games for a living, so i obviously disagree Jun 18 14:50:44 ... Jun 18 14:50:56 wwf STILL doesnt have cloud messagine Jun 18 14:50:58 ... Jun 18 14:51:01 messaging* Jun 18 14:51:13 *hint*hint* Jun 18 14:51:26 hint hint go check the permissions on the latest release Jun 18 14:52:14 does google provide special accomidations to big hitteres like wwf? Jun 18 14:52:27 as far as c2dm is concerned Jun 18 14:52:31 i think anyone can apply for an increase Jun 18 14:52:41 i think they just want to make sure youre doing something useful with it Jun 18 14:52:48 and not just sending >9000 messages to each device every minute Jun 18 14:52:49 ah Jun 18 14:52:50 make sense Jun 18 14:52:56 lol Jun 18 14:55:00 im of the opinion that games is where the $$ is at on android Jun 18 14:55:04 that or my app ideas just blow Jun 18 14:55:12 which is perfectly feasable also xD Jun 18 14:55:12 lol Jun 18 14:59:42 is it normal for the MediaProvider class/process to spam the adb log with object removed messages? Jun 18 14:59:50 Jug6ernaut> my apps sell just fine, so... :P Jun 18 15:00:10 Chainfire well we all know im not as awesome as you :P lol Jun 18 15:01:11 i have to fit into genre's, you make ur own lol Jun 18 15:07:00 I *might* be looking at my first $1-in-1-day ads haul today :) Jun 18 15:07:11 lol Jun 18 15:07:29 i give my app away for free, but make the website useful enough that people visit Jun 18 15:07:32 then i get real ads Jun 18 15:08:38 first real typhoon warning of the season went out about 30 minutes ago Jun 18 15:09:15 449 views, 12 clicks, $0.73 per click Jun 18 15:09:29 now if i can just scale that up to like.... 449,000 views per day Jun 18 15:09:31 i can retire Jun 18 15:10:00 today so far, 1916 views/impressions, 34 clicks, $0.02 per click, 68c revenue Jun 18 15:10:06 that's admob Jun 18 15:10:17 yea see Jun 18 15:10:19 thats why mobile ads suck :) Jun 18 15:10:25 i have a shirt that says "mobile ads suck" Jun 18 15:10:27 our ad provider gave it to me Jun 18 15:10:45 actually, I do have some adsense somewhere, but it gets so little traffic that I never check it... let's look Jun 18 15:10:46 mobile adds Jun 18 15:10:48 SUCK Jun 18 15:11:07 last 7 days, 43 page views, 0 clicks :) Jun 18 15:11:25 lol Jun 18 15:11:29 total revenue this month: $0.00... total revenue last month, $0.00 Jun 18 15:11:33 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) { Jun 18 15:11:33 editor.apply(); <--- LINT FREAKS OUT BECAUSE THIS REQUIRES API 9 Jun 18 15:11:35 ~_~ Jun 18 15:12:11 like i dont even... Jun 18 15:12:24 Yeah, gotta move to to a seperate method with @TargetApi(9) that you call Jun 18 15:13:23 its one thing if you have something like if (isGreaterThanAndroidVersion(9)) and it cant catch that Jun 18 15:13:30 but im pretty sure im doing that as basically as possible Jun 18 15:13:40 lol Jun 18 15:14:27 canadiancow|work a world with lint is better then one without it ;) Jun 18 15:14:35 yea yea Jun 18 15:14:39 even if it does freak out at times xD Jun 18 15:14:46 one time it didnt even catch one Jun 18 15:14:50 my intern did View#setAlpha() Jun 18 15:14:58 in one place, it even made it out into production Jun 18 15:15:03 luckily it was never(?) called Jun 18 15:15:08 for whatever reason Jun 18 15:15:09 wtf lol Jun 18 15:15:11 but lint didnt catch it Jun 18 15:15:11 ugh, back up to over 200 tabs in chrome... need to cull, *badly* Jun 18 15:15:17 dead code? :p Jun 18 15:15:47 SimonVT not sure - im no longer on that project Jun 18 15:15:51 maybe thats why it didnt catch it? should have looked at the lint error "wtf this code is never run!?" Jun 18 15:15:58 no but it was in 3 other places too Jun 18 15:16:00 that WERE run Jun 18 15:16:02 Leeds: The culling of Stumbleupon. Jun 18 15:16:04 and bugs were filed, and it was fixed Jun 18 15:16:26 internally filed? Jun 18 15:16:28 yes Jun 18 15:16:35 but lint didnt catch it Jun 18 15:16:45 did u file that bug?(lint) Jun 18 15:16:47 Remember you gotta compile for target api checks to work :p Jun 18 15:16:57 Jonathan_Eyre: one window for 'general/personal', one for old project, two for new project (one for frontend/js, one for backend/django), one for travel planning, and one for Android stuff Jun 18 15:17:07 i did not file that bug. i should have Jun 18 15:17:12 the problem is im always runing the tools previews Jun 18 15:17:18 and im not sure what bugs should be filed Jun 18 15:17:24 because it's all so beta Jun 18 15:18:31 aye Jun 18 15:26:31 Hi I have released my first Android game yesterday... Jun 18 15:27:03 Good job! Jun 18 15:27:43 HDroid: thanks :P Jun 18 15:28:06 Got a link / got stories? :) Jun 18 15:29:18 What's it called? Jun 18 15:30:28 HDroid: jrockjiggz: Angry Polygon. http://www.MGGGGG.com/ap Jun 18 15:30:36 please give me some comments :P Jun 18 15:33:20 What is an alternative market for android? (not black market alpha) There's a FOSS market i've used before i just forgot its name. Jun 18 15:33:36 f-droid.org go google, lol ; ) Jun 18 15:36:38 mobilegamelabs: quite good for a first time Jun 18 15:36:50 zarac: thanks Jun 18 15:36:57 HDroid: thanks :P Jun 18 15:39:06 where can i learn the steps required to convert an activity to a service that multiple fragments can send / recieve data to/from? yes i've read the dev guide. I need more specific information. Jun 18 15:39:32 Utopiah: np ; ) Jun 18 15:41:07 jnewt: What is it you need more specific information about? Jun 18 15:44:28 zarac: maybe i need less specific information. what is required for a service that will handle the openaccessory protocol, and how do i allow other activities and fragments to use it. what parts are required? Jun 18 15:45:46 i have an activity right now that uses the openaccessory protocol. so i know how to use the classes provided to me by the hardware manufacturer. but i need to expand upon this, and don't know where to start Jun 18 15:46:39 mobilegamelabs: very nice, you got some weird off-screen flickering going on: https://www.dropbox.com/s/wdzklcbyzxsyvnl/2012-06-18_11-42-45.png Jun 18 15:47:17 zarac: here's a guy trying to do the same thing: http://stackoverflow.com/questions/7962709/how-to-implement-android-open-accessory-mode-as-a-service Jun 18 15:48:58 jrockjiggz: oh thanks for reporting it! what's the resolution of your screen? Jun 18 15:50:05 is anybody aware of an open source project/lib to playback WMA streams/files on android? all i can find on StackOverflow is saying it's not possible, convert the files, etc. Jun 18 15:51:13 mobilegamelabs: screen is 540x888 (htc one s ics 4.0.3) Jun 18 15:51:53 jrockjiggz: thanks!! Jun 18 15:51:54 mathiaslin: there are a couple Jun 18 15:52:09 mathiaslin: you'll have to use the NDK to use them though Jun 18 15:52:50 mathiaslin: libav, ffmpeg, rockbox all have open source implementations Jun 18 15:53:07 the rockbox implementation is probably the best one for android Jun 18 15:53:22 MDijkstra: ok thanks, let me google these terms. That helps already Jun 18 15:53:31 VLC, mplayer as well Jun 18 15:53:57 oh yes, good point. Jun 18 15:55:46 mobilegamelabs: http://www.youtube.com/watch?v=07OliJzazkw Jun 18 15:55:51 Wondering if I could make a jigsaw app that can slice an image like this : http://cdn4.droidmill.com/media/market-media/com.ff.android.puzzle.shrek_0.png Jun 18 15:55:54 am i even on the right track in that i'll need to run the openaccessory stuff as a service in order for muliple activities / fragments to use the data? Jun 18 15:57:31 jnewt: that would be the most practical, yes Jun 18 15:57:59 jnewt: if your activities are the only parts that need access to data, there is no reason for a service Jun 18 15:58:35 Anyone knows of an adb command that would turn the screen on on an SGS? Jun 18 16:01:06 I know it can be done with "sendevent /dev/input/event3 1 116 1" for a G2 Jun 18 16:01:18 wongk: other applications do not need to access the accessory, i'm not sure what other parts may need to communicate with it (recieve / send data), other than activities / fragments, and their layouts. Jun 18 16:01:39 there isn't really anything else, is there? Jun 18 16:01:48 the benefit of a service is that it can run indepenent of any activities Jun 18 16:02:14 it doesn't sound like you need a component with its own Content or lifecycle Jun 18 16:02:17 wongk: yes, which is what led me to think that this was the course i needed to take Jun 18 16:02:32 sorry, Context Jun 18 16:02:51 all you need is an object Jun 18 16:03:19 isn't an object just the base class for pretty much everything? Jun 18 16:03:58 not java.lang.Object Jun 18 16:04:01 an object Jun 18 16:04:03 a class Jun 18 16:04:32 class MyAccessoryManager {... Jun 18 16:05:21 well, i have a class that communicates, it's an example that i've modified, however, the example extends Activity. Jun 18 16:05:42 remove the Activity business Jun 18 16:05:44 are there any tricks to get the ellipsize property to work properly? I've set it to "end," but it hasn't changed anything Jun 18 16:07:42 sorry was disconnected... Jun 18 16:07:47 * wongk lunch Jun 18 16:08:13 wongk: there are lots of stuff done in oCreate, onStart, etc. when i remove the extends Activity, they all become undefined Jun 18 16:08:14 jrockjiggz: cool!!!!!!! thanks very much!!!! Jun 18 16:08:32 wongk lunch. of course Jun 18 16:08:36 anyone know how to, or know any documentation on how to edit ICS softkeys Jun 18 16:08:43 without using AOKP or something Jun 18 16:10:25 or anyone know where they are located Jun 18 16:10:35 system-res? Jun 18 16:12:41 ? Jun 18 16:16:15 framework-res? Jun 18 16:16:54 thats it lol Jun 18 16:30:47 hmm config_showNavigationBar = false Jun 18 16:30:54 even though its obviously there... Jun 18 16:33:11 jnewt: i'm not going to tell you how to design your class Jun 18 16:33:20 you'll need to figure that out Jun 18 16:35:10 wongk: can you at least point me toward some information or reading that might get me started? Jun 18 16:38:05 I'm willing to do the work, but after reading the entire dev guide and several other examples, tutorials, i haven't made any progress. Jun 18 16:39:54 http://www.javaworld.com/jw-04-2001/jw-0406-java101.html Jun 18 16:41:10 Hi , is their a way to debug an app on an android device without usb ? Jun 18 16:41:18 why cant i find any documentation on how to edit the damn ics sotfkeys -.- Jun 18 16:41:27 you can use adb over wifi if your device has root, natrix Jun 18 16:41:51 doesn't have root , but keeping it as last option Jun 18 16:42:27 natrix: then no, you need USB Jun 18 16:42:41 ok , then root it is Jun 18 16:42:44 :) Jun 18 16:42:46 thanks Jun 18 16:43:13 natrix: you could use an emulator Jun 18 16:43:15 If I need the android to submit values as POST. Do i send them to the .php file that handles the POST values, or the .html file that has the form inputs? I'm doing the former and it doesn't seem to be working.. Not getting any errors on Android, but the changes aren't being made Jun 18 16:43:48 you send it to the form target Jun 18 16:44:26 ok.. that's what i'm doing at the moment.. Weird that its not working :/ Jun 18 16:46:32 evancharlton: I'm debugging video related app , and the emu isn't that great with video Jun 18 16:48:25 Is there a recommended way of debugging post issues then? All the value's aren't null, not catching any exceptions, postExecute is working fine.. Jun 18 16:48:52 does it make a difference its php? Jun 18 16:49:49 HMM anyone ever build an app that communcates with another app on different phone? Jun 18 16:50:01 timmaah1201: dump the request body and headers server-side Jun 18 16:50:31 XXCoder: yes, people have built such apps. Jun 18 16:50:31 when trying to emulate a browser, you really need to be able to send HTTP requests and examine the raw response... i don't find that to be praticle from within android application code Jun 18 16:51:10 my question is this, how do they connect to each other? is there some ph # to ip function? Jun 18 16:51:29 so the code works in a browser fine Jun 18 16:52:37 what I mean, how do they find each other for inital connection setup Jun 18 17:04:17 the network stuff is strightfoward, but I am stuck on what method to use for client to find the server. Jun 18 17:24:42 you can both of them make a connection to a gae server and let the gae server tell them eachother's ip Jun 18 17:25:04 then they can connect. but the problem is also... are they behind nat firewalls? Jun 18 17:25:21 if this is going to be available on google play Jun 18 17:25:24 then it's likely Jun 18 17:25:24 I dont want center server on some pc somewhere Jun 18 17:25:37 I want phones to find each other Jun 18 17:25:40 i know, it's a problem i've been thinking about Jun 18 17:25:53 so far im thinking use SMS Jun 18 17:26:00 bittorrent uses a distributed hash table methinks Jun 18 17:26:05 initially anyway Jun 18 17:29:07 I m trying to make an paint app in android and in that i want to draw polygons with the click of a button..!! Jun 18 17:29:18 can somebody help me out..!!! Jun 18 17:29:45 not until you ask a specific, technical question Jun 18 17:29:52 and stop using so many exclamation marks!!! Jun 18 17:30:02 okay.. Jun 18 17:30:25 i m not sure in hwat way to proceed. Jun 18 17:31:19 to draw a polygon (no of sides and initial starting point is inputted by the user..!! Jun 18 17:31:31 sorry for the exclamation again... Jun 18 17:32:43 canadiancow|work, can u help me out man Jun 18 17:32:43 a polygon can have many shapes Jun 18 17:33:04 xorgate, preferably an convex one. Jun 18 17:33:05 Younos: http://stackoverflow.com/questions/6311257/is-there-a-way-to-get-a-wan-ip-address-from-a-phone-based-on-its-phone-number woot Jun 18 17:33:18 linuxdroid how do you want the user to define a polygon then? Jun 18 17:33:30 im guessin random ones Jun 18 17:34:11 just input the number of sides of the polygon and click at the point he wants it to be drawn. Jun 18 17:34:28 that's not enough information to draw a polygon Jun 18 17:34:41 actually if it is regular one it is Jun 18 17:34:47 no it is not Jun 18 17:34:56 why is it that when i add public void onResume(){Log.d(TAG,"onResume");} to my fragment, it causes the application to crash on startup with a fatal exception: main and about 30 other errors? Jun 18 17:35:10 jnewt, because you haven't read the stacktrace Jun 18 17:35:10 jnewt cause you need to call super.onResume() Jun 18 17:35:52 linuxdroid these are all polygons http://img.sparknotes.com/figures/B/b333d91dce2882b2db48b8ad670cd15a/equi-polygons.gif Jun 18 17:35:55 ya at this point of time i would just like to draw a regular shaped polygon only. Jun 18 17:36:07 i assume you mean 'like a circle' ? Jun 18 17:36:27 ya Jun 18 17:36:40 but that has infinite sides. Jun 18 17:36:40 LOL Jun 18 17:36:57 thats what i meant when I said regular. :) well I guess radius can be fixed too Jun 18 17:36:59 http://stackoverflow.com/questions/2047573/how-to-draw-filled-polygon Jun 18 17:37:15 not a filled one... Jun 18 17:37:41 evening Jun 18 17:37:44 filled and not drawing method is pretty much same Jun 18 17:38:10 XXCoder, didn't get u man Jun 18 17:38:28 linuxdroid he means that it's not very relevant if it's filled or not Jun 18 17:38:39 your problem is elsewhere Jun 18 17:38:51 i want to draw just the outline of the polygon Jun 18 17:38:52 like in the link i posted, find out about Path object Jun 18 17:39:21 xorgate: is onResume overriding super.onResume() implicitly? i didn't put the @Override prior to it. Jun 18 17:39:29 okay i read it now i have another question Jun 18 17:39:37 method to create regular polyagon with N sides probably already exists Jun 18 17:40:03 jnewt uhm, you are overriding it. the original method does some important stuff, so you must call it Jun 18 17:40:46 i take the center point of the polygon to be drawn and then the no of sides also.... Jun 18 17:41:12 now using the path object how would i do it Jun 18 17:41:41 define a centerpoint (where you click), all points on the polygon have same distance Jun 18 17:41:42 and i also input the radius of the polygon to be drawn. Jun 18 17:41:52 ya, go on Jun 18 17:42:01 for ( bla ) x = cx + radius*sin(bla) Jun 18 17:42:05 Younos: so far, not proming, that link I found. :( Jun 18 17:42:09 y = cy + radius*cos(bla) Jun 18 17:42:48 xorgate: the example i started with has a onCreateView. it doesn't call super.onCreateView, and doesn't cause a crash. what's the difference? Jun 18 17:43:06 jnewt the original oncreateview does nothing important Jun 18 17:43:26 jnewt prolly just filler, so if you dont override it, it just returns without doing anything Jun 18 17:45:09 xorgate: where can i find a reference for which are important and which are not. developer.android.com doesn't seem to explicitly say when one is needed or not. Jun 18 17:45:50 jnewt gee.. idunno.. you could download android source and find out Jun 18 17:46:54 is that what you do? Jun 18 17:47:48 usually i check examples Jun 18 17:47:50 but good point Jun 18 17:47:58 jnewt: the difference is onCreateView returns a result Jun 18 17:48:05 what should a super.onCreateView do? Jun 18 17:48:27 are you asking me, I have no idea. Jun 18 17:48:50 jnewt: well, then that's why you don't have to call super.onCreateView there Jun 18 17:48:56 because it makes no sense to do so Jun 18 17:49:13 but onResume also doesnt return a result Jun 18 17:49:24 but onCreateView does Jun 18 17:49:38 has anyone notices a perf issue with TextView wiht HTML in there on ICS? Jun 18 17:50:01 very smoothish on the older phones i have but on htc one x it's very very slow Jun 18 17:50:18 You have to think about what you're doing.. Are you overriding what the superclass is doing, or are you extending functionality Jun 18 17:50:25 so can it be generallized that non void methods do not need to call super, but void methods do? Jun 18 17:50:41 jnewt: no, what SimonVT said Jun 18 17:50:56 With onResume you want to add extra logic, not override everything the fragment does Jun 18 17:51:03 you should always call super. on android lifecycle methods Jun 18 17:51:11 With onCreateView you want to supply your own, and make sure the superclass doesn't Jun 18 17:51:12 onCreateView isn't really a lifecycle method, however Jun 18 17:51:17 yeah but take onResume, how is one supposed to know what the original method does? Jun 18 17:51:26 when in doubt, call super Jun 18 17:51:33 Do you need to know? Jun 18 17:51:37 in the sense android doesn't report an event to the component, but rather it asks it for its ui Jun 18 17:51:54 SimonT if i am to determine whether i am extending or overriding Jun 18 17:52:00 If you don't call super, you better make sure you know what happens when you do Jun 18 17:52:03 (in that sense onCreateView is a bad name, getFragmentView or something would be better) Jun 18 17:52:12 please comment on my first game Angry Polygon… thanks! http://www.MGGGGG.com/ap Jun 18 17:52:35 SimonVT: well, first I would need to know what the original does to know what i needed to add / replace / override / extend to get the result i want Jun 18 17:52:50 angry bi er polygons? interesting Jun 18 17:52:59 jnewt: you know onCreateView returns the view for the fragment Jun 18 17:53:15 jnewt: if you don't override it, your fragment has no view Jun 18 17:53:28 Or, in the case of listfragment, it has a default view Jun 18 17:53:39 Hey! I need some help here Jun 18 17:53:49 if you want to supply your own view, you have to override what the parent does Jun 18 17:53:51 XXCoder: heh :P Jun 18 17:54:06 I am creating an application right now but I ran into a very big problem Jun 18 17:54:21 I created a video to demonstrate the problem Jun 18 17:54:22 http://www.screenr.com/VwG8 Jun 18 17:54:24 jnewt: ie, if you were to call super there it'd only make sense if you returned super.onCreateView's result Jun 18 17:54:37 MDijkstra: but for something like onResume, where i could think that it is just called after the fragment is resumed, and super.onResume does nothing but provide a location for me to add functionality Jun 18 17:54:42 MDijkstra: onCreateView is part of the fragment lifecycle, so it's fine to call it a lifecycle method Jun 18 17:54:53 Basically, I have a listview with custom list items (textview and an image) Jun 18 17:55:08 can't wait to release my "Across realities" live wallpaper Jun 18 17:55:27 when I scroll the listview, the images get positioned randomly in different list items :( Jun 18 17:55:59 MDijkstra: which in fact is exactly what i deduced from reading the dev guide. i gathered that it could be tied to activity.onresume, otherwise it did nothing at all. Jun 18 17:56:31 Can anyone help me please? Jun 18 17:56:42 SimonVT: well, my problem with it is that they've combined these two roles into one Jun 18 17:57:05 hm? Jun 18 17:57:22 SimonVT: I think they should have two methods, one lifecycle callback and one 'get the view for this fragment' method Jun 18 17:57:31 luzon, the problem is likely your adapter Jun 18 17:57:36 SimonVT can u help me i need a list of three different types of things... should i put three listviews in a scrollview? Jun 18 17:57:40 so they don't break their own 'you should call super on lifecycle methods rule' Jun 18 17:57:52 xorgate, can you elaborate please? Jun 18 17:58:04 SimonVT: not that it's a very big deal Jun 18 17:58:09 but even the Activity.onResume() portion of the dev guide says that the superclass need to be called. Fragment.onResume says no such thing Jun 18 17:58:13 luzon19 first order of business when doing anything with listview: watch 'world of listview' on youtube Jun 18 17:58:24 then come back :) Jun 18 17:58:30 ok wait Jun 18 17:58:55 xorgate: wait for him to watch it, don't do anthing else. Jun 18 17:58:56 canadiancow|work: yes Jun 18 17:59:04 ugh Jun 18 17:59:25 ugh, 1 hour? :) Jun 18 17:59:34 MDijkstra: Then it'd be kinda undefined when the view is retrieved if not part of the lifecycle Jun 18 17:59:38 yeah Jun 18 17:59:47 luzon19 it's really worth it Jun 18 18:02:49 SimonVT: true Jun 18 18:02:55 seems interesting Jun 18 18:03:14 Does anyone have any docs regarding an overview of Skia's rendering pipeline? Jun 18 18:03:24 actually, this is the first application I am creating :D Jun 18 18:03:47 InanTop: "Use the source, Luke" Jun 18 18:03:52 (unfortunately that's about it) Jun 18 18:04:13 ctate: The problem is I'm not sure where to dig in :( I'm looking for information on how things are composited into the final buffer Jun 18 18:04:18 ctate: any ideas on where to start? Jun 18 18:04:35 ooof, that's more than just skia Jun 18 18:04:41 pre- or post-HC? Jun 18 18:04:50 pre Jun 18 18:04:59 surfaceflinger is also deeply involved Jun 18 18:05:01 Android 2.1 or 2.2 I believe Jun 18 18:05:30 (and i'm curious about why focusing on obsolescent versions) Jun 18 18:06:07 We're building a specific application for a client that's putting it onto an embedded system Jun 18 18:06:13 heaviyl modified android I believe, but I'm not that deeply involved Jun 18 18:06:34 ah that makes sense Jun 18 18:06:35 I've never coded for Android before and I got a nasty nasty bug tossed my way Jun 18 18:07:06 when android system dialogs draw themselves (i.e. pulling the notification bar down, or playing with the volume control) it causes problems with our widget invalidation or something Jun 18 18:07:15 our widgets get obliterated while native android widgets do not Jun 18 18:07:28 those are actions that create new windows Jun 18 18:07:42 (the notification shade is a separate window; the volume dialog gets its own window Jun 18 18:07:52 i have a layer-list where one of the components is a gradient, and its startColor/endColor reference a selector that has different colors based on state. however, only the default one shows up. is this not supported inside a gradient? Jun 18 18:07:56 interesting... Jun 18 18:08:08 would those windows share the native canvas/bitmap? Jun 18 18:08:32 every window gets its own surface to draw in, and the surfaceflinger manages the final compositing Jun 18 18:08:43 surfaceflinger is the place to look then it seems like Jun 18 18:08:52 that sounds like a good place to start Jun 18 18:09:02 thanks for the advice Jun 18 18:10:07 super.onDestroy doesn't seem to be necessary. is it beneficial in any way? Jun 18 18:10:08 canadiancow|work: You'd have to check if gradientdrawable proxies states to each color Jun 18 18:11:16 jnewt: there are two answers to that Jun 18 18:11:19 jnewt: Do you want to override everything onDestroy has, does and will do, or are you just adding some extra logic? Jun 18 18:11:29 just adding some logic Jun 18 18:11:35 There you go Jun 18 18:11:37 the first is "yes because you never know when the platform might start implementing important logic in the superclass implementation" Jun 18 18:12:08 SimonVT: but i just wanted to add some logic to onResume, and needed to override Jun 18 18:13:01 As a general rule, always make sure to call the superclass implementation of lifecycle callbacks from your override. Jun 18 18:13:09 typically it will be documented when this is strictly required. Jun 18 18:13:25 typically = sometimes, this i've learned Jun 18 18:13:33 in practice, you can't rely on onDestroy() ever being called so in this case the question is slightly ill-defined Jun 18 18:13:50 jnewt: at least you'll get runtime enforcement when it's really required :) Jun 18 18:14:06 runtime enforcement? Jun 18 18:14:07 SimonVT what exactly am i looking for with the state? Jun 18 18:14:45 jnewt: for example, if you override onCreate() but don't call super.onCreate(), your activity will crash with an exception telling you that you forgot to call super.onCreate(). Jun 18 18:15:46 ctate: not true. i have an oncreate overridden right now on one fragment, and the app doesn't crash Jun 18 18:16:16 that's a fragment's onCreate(), not Activity.onCreate(), right? Jun 18 18:16:22 canadiancow|work: state is set on the drawables with setState Jun 18 18:16:26 pretty sure it's mandatory for Activity onCreate() Jun 18 18:16:32 ctate: yes, all of this is for fragments Jun 18 18:16:38 yea SimonVT, but i see no references to that in a couple different Drawable subclasses Jun 18 18:16:39 A StateListDrawable then selects the right drawable for the state Jun 18 18:16:42 so im not sure what im missing Jun 18 18:16:51 oh, *fragment* onDestroy()? yeah dunno what the semantics there are Jun 18 18:17:19 canadiancow|work: Not all drawables support state Jun 18 18:17:28 well why the fuck not Jun 18 18:17:29 are there any websites that host custom android widgets? Jun 18 18:17:35 ctate: i don't either, i'm trying to sort out when / how all the methods are called in real practice Jun 18 18:17:46 Cus statelistdrawable does Jun 18 18:18:00 It can hold all the colordrawables, bitmapdrawables, etc you need, for each state Jun 18 18:18:11 Each seperate drawable does not need to know Jun 18 18:18:17 well i dont want to have 4 almost-identical xml files that only differ by one color reference Jun 18 18:18:46 So for your gradientdrawable to be different colors per state, it would need to proxy setState to startColor and endColor Jun 18 18:19:00 Step 1: Find out if it does :P Jun 18 18:19:04 it doesnt Jun 18 18:19:10 There you go Jun 18 18:19:14 hey guys..,,, Jun 18 18:19:42 Step 2: Make your own gradientdrawable which does, and create it in code :p Jun 18 18:19:48 help needed.. Jun 18 18:19:58 i cant create it in code Jun 18 18:20:03 Jun 18 18:20:06 fucking irc client Jun 18 18:20:26 ;d Jun 18 18:20:28 Out of luck Jun 18 18:20:34 Jun 18 18:20:55 ffs worst design ever Jun 18 18:21:03 now i literally need 4 identical 100 line xml files Jun 18 18:21:07 canadiancow|work: can contain Jun 18 18:21:07 except for one color reference Jun 18 18:21:22 readme you've missed too much of this conversation Jun 18 18:23:06 huys i m using an image view and on top of that i m using a canvas and a bitmap to draw lines through touch input but the problem is that my bitmap is not on the complete screen. Jun 18 18:23:19 help needed... Jun 18 18:23:23 and then i m Jun 18 18:23:39 using path function to draw a polygon and that's not working Jun 18 18:24:08 anyone...!!!! Jun 18 18:24:22 I'm not an Android expert but your question doesn't make sense Jun 18 18:24:22 is it possible to listen to logcat inside android app ? Jun 18 18:24:33 InanTop++ Jun 18 18:24:47 i am an android expert and his question doesnt make sense :) Jun 18 18:24:52 InanTop, okay logically speaking Jun 18 18:25:05 that's a good way to speak :) Jun 18 18:25:05 i have a imageview in my xml view Jun 18 18:25:21 i'm using the android.support.v4.view.ViewPager, and 3 fragments that inflate the views in the onCreateView method. i added many of the other methods (onPause, onResume, etc.), but I can't seem to log a message when swiping between the views. none of these see to work. how do i get a log message when changing fragments? Jun 18 18:25:57 onPause/onResume are tied to the containing activity's lifecycle Jun 18 18:26:05 swiping between them will not call them Jun 18 18:26:11 *between fragments Jun 18 18:26:11 i get a onCreateView and onResume Logged at application / activity startup. Jun 18 18:26:19 and then i m creating a bitmap using Jun 18 18:26:20 bitmap = Bitmap.createBitmap((int) dw, (int) dh, Jun 18 18:26:21 Bitmap.Config.ARGB_8888); Jun 18 18:26:47 here dw and dh are the weidth and height of the screen... Jun 18 18:26:51 jnewt: I haven't used ViewPager yet, but perhaps there's some callback interface you could implement? Jun 18 18:27:05 jnewt: so you get a signal whenever the user pages to a new screen? Jun 18 18:27:21 but then the bitmap created is not filling the screen completely... Jun 18 18:27:26 InanTop, Jun 18 18:27:30 MDijkstra: right. I've figured that much out. I'm going to re-read the information, but i thought I was on the right track...I was wrong. Jun 18 18:28:10 linuxdroid: I'm not sure, the only Android dev I've done so far is deep inside the library Jun 18 18:28:35 is it small and centered? or off screen somehow Jun 18 18:28:37 anyone else i can get help from InanTop Jun 18 18:28:45 it is small Jun 18 18:28:58 I really want the fragments to be fairly independent, so they can all work on their own, maybe fragments aren't what i'm looking for. they seem to suggest independence, but at closer look are pretty tied to the calling activity Jun 18 18:29:05 hi guys. If I want to create say three button side by side which layout i should use? will it still work with LinearLayout ? Jun 18 18:29:10 screen size and device coordinates might not be matching(?) Jun 18 18:29:11 jnewt: no, they shouldn't be Jun 18 18:29:17 try filling the canvas with a solid color Jun 18 18:29:22 I dunno I'm just shooting in the dark Jun 18 18:29:25 maybe someone else will step up Jun 18 18:29:32 jnewt: their lifecycle is just coupled to the activity, which makes sense Jun 18 18:30:15 alexGla: use linearlayout and set orientation to horizontal Jun 18 18:30:18 jnewt: http://developer.android.com/reference/android/support/v4/view/ViewPager.SimpleOnPageChangeListener.html Jun 18 18:30:36 thanks Aleksin Jun 18 18:30:44 Hi guys - can somebody please offer any solution or reasons for this problem : http://stackoverflow.com/questions/11075585/android-in-app-billing-claims-to-not-be-supported-using-sample-code Jun 18 18:31:15 linuxdroid: try using really huge numbers for the bitmap size and see if it fills the screen then, in that case there's a coordinate mismatch or you've got the wrong w/h Jun 18 18:31:41 but i m using the getWidth and get height methods.. Jun 18 18:31:57 so that should give me the correct combinations right.. Jun 18 18:32:01 never trust code you didn't write Jun 18 18:32:05 and never trust your own code Jun 18 18:33:07 lol Jun 18 18:33:14 okay i'll try that too Jun 18 18:33:37 but how to use this path function with a bitmap.... Jun 18 18:34:06 can somebody please offer any solution or reasons for this problem : http://stackoverflow.com/questions/11075585/android-in-app-billing-claims-to-not-be-supported-using-sample-code Jun 18 18:38:43 inapp billing is supper flimsy in my testing Jun 18 18:39:02 did you do the call in on start Jun 18 18:39:22 for the billing listener Jun 18 18:39:25 or whatever it is Jun 18 18:39:33 was just talking to a potential client. first words out of his mouth "bla bla, my last developer stole my ideas and burned my house and stole my money" Jun 18 18:39:45 rofl Jun 18 18:39:47 me: "ok, I think we're done here" Jun 18 18:42:51 if i instantiate an object as static in the activity with the launcher intent, does it live as long as the application or the activity (assuming the activity is destroyed at some point prior to the application) Jun 18 18:44:19 can somebody please offer any solution or reasons for this problem : http://stackoverflow.com/questions/11075585/android-in-app-billing-claims-to-not-be-supported-using-sample-code Jun 18 18:44:28 i just told you Jun 18 18:44:32 read above Jun 18 18:44:55 anybody know why I can't view the classes in the android.jar file? I keep getting the error message of "source not found" Jun 18 18:44:59 renegdaeandy | he's probably waiting for a name ding Jun 18 18:45:52 i'm seeing terrible performance on ics on scrolling on a htc one x.. any ideas? Jun 18 18:46:04 traceview didn't find an obvious culprit Jun 18 18:46:16 what is your targetSDK? Jun 18 18:46:44 8 Jun 18 18:46:52 try 14 Jun 18 18:47:13 trying ... Jun 18 18:47:46 can somebody help me with the canvas. bitmap and path function Jun 18 18:47:48 ????? Jun 18 18:48:38 when google talks about persistent / non-persistent data, are they talking about data that persists through app close / open or through activity create / destroy? Jun 18 18:49:01 wongk: better but not as good as it its on the older devices Jun 18 18:49:31 someone..!! Jun 18 18:49:40 funktronic: i can't really help, but you are not that only one in here with problems on that device Jun 18 18:49:42 help on canvas, path and bitmap......????? Jun 18 18:50:03 wongk: same thing happens on the google nexus.. i think it's a ICS issue someplace Jun 18 18:50:26 is the nexus not as bad? Jun 18 18:50:48 it's slightly better iirc Jun 18 18:50:50 linuxdroid, ask a question. don't just as if someone can help. bad form. Jun 18 18:50:53 funktronic: target a modern SDK level, otherwise you won't get hw accelerated drawing. Jun 18 18:51:05 and then profile it to see where you're losing time Jun 18 18:51:43 the problem is almost certainly that your'e doing things that are inefficient, but were getting away with it on (some) older hardware that had brutally fast memory busses. i'm looking at you, Samsung devices. Jun 18 18:52:18 jnewt, i have to draw a path onto a bitmap, and i m not using a canvas so how can i do it.!? Jun 18 18:52:19 ctate: lol, the two that it works well on are samsung devices! Jun 18 18:52:28 CALLED IT Jun 18 18:52:29 :) Jun 18 18:52:31 hah Jun 18 18:52:34 ctate: inherited a codebase from an outsourced contractor too Jun 18 18:52:40 O! the joy Jun 18 18:52:50 those ar ethe best Jun 18 18:53:00 so your default assumption should be that the code is kind of crap Jun 18 18:53:02 do Preferences not support a disabled state, or am i just really screwing something up :( Jun 18 18:53:20 canadiancow|work: err, i think they do.... Jun 18 18:53:21 i have to draw a path onto a bitmap, and i m not using a canvas so how can i do it.!? Jun 18 18:53:23 disabling the preferences? Jun 18 18:53:48 linuxdroid: we all saw your question already. Jun 18 18:53:50 ctate, they do Jun 18 18:53:52 :( Jun 18 18:53:58 they're just such a bitch to theme Jun 18 18:54:22 ohh, the preference interface Jun 18 18:54:26 man i was confused Jun 18 18:54:51 mine disable just fine Jun 18 18:56:29 So from my understanding, the super function passes an argument to the parent default method of the current class, is this correct? Jun 18 18:56:42 linuxdroid: use a canvas. Jun 18 18:57:15 Snicers-Work2: it calls the super class implementation Jun 18 18:57:30 I am new to super classes, what does that mean exactly? Jun 18 18:57:38 google Jun 18 18:58:04 canadiancow|work: to *theme*? sigh Jun 18 18:58:08 jnewt, but how. Jun 18 18:58:12 protip: use the system themes. :( Jun 18 18:58:26 I did, will do again I suppose. I am just lacking reference to the concept. Jun 18 18:58:49 or, y'know, write/steal your own preferences code. Jun 18 18:59:02 linuxdroid: http://developer.android.com/guide/topics/graphics/2d-graphics.html Jun 18 18:59:06 so if i turn hardware acceleration off for that activity it's much faster Jun 18 19:01:43 the the UI is doing something really inefficient in hw terms Jun 18 19:01:56 yep Jun 18 19:01:59 Nice, I join in here, and the first link I see is exactly what I need (2d graphics). Still a question though: For a wordfeud-like game, it probably better to use a Canvas, instead of using OpenGL ES for drawing 2D graphics? Jun 18 19:02:17 Has more device compatibility Jun 18 19:02:19 sh4wn: yeah Jun 18 19:02:27 and it's easier to keep the power consumption down Jun 18 19:02:30 it can certainliy be easier Jun 18 19:02:40 especially if you don't already know openGL :) Jun 18 19:02:46 ok thanks :) Jun 18 19:03:39 gaz` was having the same issues with his app on the One X Jun 18 19:03:45 So am I correct to assume that the method which name is identical to the class name is the constructor function and runs when the class is implemented? Jun 18 19:04:03 i'm thinking that should have bought fewer samsung devices for testing... Jun 18 19:04:09 yes, but instead of assuming stuff, I'd get a java book Jun 18 19:04:39 freedomcaller: yes onStart and onCreate Jun 18 19:04:39 Snicers-Work2: that's not what implement means Jun 18 19:04:52 think about the 'implements' keyword Jun 18 19:04:56 Snicers-Work2: instantiated Jun 18 19:04:56 Can somebody please help me solve this problem : http://stackoverflow.com/questions/11075585/android-in-app-billing-claims-to-not-be-supported-using-sample-code Jun 18 19:04:56 that's what it means Jun 18 19:05:23 did you connect to the service? Jun 18 19:05:32 That is what I meant :\ MDijkstra, I have Java books and Google, but reading something and verifying your findings are different things. Jun 18 19:05:33 yes Jun 18 19:06:06 Snicers-Work2: well, every java method will mention super. and the constructor Jun 18 19:06:13 err, every java book Jun 18 19:06:16 ctate, like to make it red instead of black Jun 18 19:06:18 that is hard Jun 18 19:06:31 holo looks decent, but if you can afford a designer, you should customize Jun 18 19:06:34 as you become more experienced you will be able to inspect your own understanding and verify it Jun 18 19:07:06 Yeah, it did, which is why I assumed I was correct in my understanding and verified it here. Jun 18 19:07:45 i think he means you wont need an outside source to verify it Jun 18 19:08:13 jnewt, that is just never a good idea to go unverified. Jun 18 19:08:56 an outside source doesn't have to be a human. it can be the language spec Jun 18 19:09:13 see the book pragmatic thinking & learning. trust me. when you get better this will be easier. Jun 18 19:09:51 I have been doing progamming for years, I was just looking for a quick verification of this. Jun 18 19:10:01 http://www.bgr.com/2012/06/18/celestica-dumps-blackberry-rim-odm Jun 18 19:10:09 readme: that book looks very interesting. Jun 18 19:10:15 http://docs.oracle.com/javase/specs/ Jun 18 19:10:29 jnewt: it is pretty good... the first chapter alone is worth it Jun 18 19:12:30 When you call the GraphicsJNI::getNative* functions how does it know to return the right canvas/device/bitmap... or is there only one of each of these? Jun 18 19:12:46 Can somebody please help me solve this problem : http://stackoverflow.com/questions/11075585/android-in-app-billing-claims-to-not-be-supported-using-sample-code Jun 18 19:12:56 renegadeandy: people have already responded to that above Jun 18 19:13:09 nobody has offered any real substance to their help InanTop Jun 18 19:13:18 somebody prep the kickban Jun 18 19:13:43 i think im getting sick Jun 18 19:13:51 this channel is hostile to repeating yourself, just a warning Jun 18 19:14:03 canadiancow|work: of living in canada?! =D Jun 18 19:14:08 can you help me make a listview? Jun 18 19:14:08 can you help me make a listview? Jun 18 19:14:09 can you help me make a listview? Jun 18 19:14:12 see isnt that annoying? Jun 18 19:14:13 sure Jun 18 19:14:17 new ListView(); Jun 18 19:14:25 yea it is, Jun 18 19:14:28 what no context! Jun 18 19:14:32 oh :( Jun 18 19:14:32 so do I just sit and not get any respones, and how long do i leave it before responding Jun 18 19:14:33 +1 Jun 18 19:14:35 I fail at android Jun 18 19:14:44 HOW DO I GET CONTEXT Jun 18 19:14:45 HOW DO I GET CONTEXT Jun 18 19:15:24 my view is not doing what i tell it Jun 18 19:16:01 hello guys, I'd like to get the versionName of the app in my code and have found this http://stackoverflow.com/a/6593822/755532, however my IDE complains that it cannot resolve getPackageManager Jun 18 19:17:25 oh shit Jun 18 19:17:29 im dumb Jun 18 19:17:31 * canadiancow|work leaves Jun 18 19:18:58 Hello, PM me guys, android developers who are looking to work Jun 18 19:19:07 DanGer: Gotta call it from/on a class instance that actually has that method Jun 18 19:19:15 piklu: not the place Jun 18 19:19:28 SimonVT: fair enough, but which class has it? ;-) Jun 18 19:19:37 search the docs Jun 18 19:19:38 piklu im looking to work Jun 18 19:19:45 i require a house as my relocation bonus Jun 18 19:19:48 This is completely dumb of me to have to ask, but I'm having some problems parceling something in the Android framework. I.e., what if I want to pass something like NetworkInfo across an IPC barrier a la aidl. Jun 18 19:19:50 and a salary of at least $250k Jun 18 19:19:55 and other standard benefits Jun 18 19:19:57 and a stock plan Jun 18 19:19:57 canadiancow|work: you stop it :P Jun 18 19:20:11 im only half kidding Jun 18 19:20:19 Ok - i wont repeat my question ill sit and wait :) Jun 18 19:20:45 I am serious, anyone pm me, I need android dev - for contract projects Jun 18 19:20:46 renegadeandy: you might ask somewhere else if you don't get an answer, unfortunately #android-dev is pretty congested. Jun 18 19:21:01 #android-dev is pretty awesome Jun 18 19:21:10 less so with mikedg afk Jun 18 19:21:22 I don't think that contradicts what I said :-) Jun 18 19:21:23 Suggest me a channel guys Jun 18 19:21:33 elance.com Jun 18 19:21:51 nah. ! ahhh Jun 18 19:21:51 just send me the money Jun 18 19:21:56 scott@canadiancow.com (paypal) Jun 18 19:22:03 make me my app. Jun 18 19:22:04 and i'll do your work when i have time Jun 18 19:22:21 lol, jokes good Jun 18 19:23:07 kmicinski unforuntately i have already asked somewhere else first - stack overflow! Jun 18 19:23:08 piklu: we don't allow recruiting in here Jun 18 19:23:21 I am really sorry. Jun 18 19:23:37 it's alright, just keep it in mind in the future :) Jun 18 19:24:47 evancharlton can you fix my preferences Jun 18 19:26:29 is anyone familiar with the android:requiresSmallestWidthDp attribute ? Jun 18 19:26:44 i will re-ask my question at 20:45 :D Jun 18 19:26:52 yes tnzr Jun 18 19:26:56 different eyes by then Jun 18 19:26:59 sounds pretty self explanatory? Jun 18 19:27:18 im assuming its a market filter that wont show your app for devices that are smaller than that Jun 18 19:27:25 Anyone can tell me why my device says market does not supports it, I cant install any app Jun 18 19:27:28 canadiancow|work: well...it does, but the docs dont, specifically "Google Play currently does not support this attribute for filtering (on Android 3.2) " Jun 18 19:27:37 oh Jun 18 19:27:38 lol Jun 18 19:27:45 it might support it now? Jun 18 19:27:50 even if it didnt back then Jun 18 19:28:01 canadiancow|work: yeah that's what we're trying to figure out :) Jun 18 19:28:07 try it out? Jun 18 19:28:10 upload a simple test apk Jun 18 19:28:36 ok I'll see if we can do that Jun 18 19:37:07 can anybody with any in-app billing experiance ake a look at this : http://stackoverflow.com/questions/11075585/android-in-app-billing-claims-to-not-be-supported-using-sample-code Jun 18 19:40:07 ok, i'm trying to convert an activities onCreate code to a constructor, so i can use for several fragments. it declares an android.content.pm.PackageManager like this PacakgeManager manager = this.getPackageManager(); but this fails when creating the class, because, understandably, getPackageManager() is defined when overriding Activity, but no for a new class that doesn't override activity. I don't know how to write a Jun 18 19:40:07 version that uses the intantiating Activity instead of "this" or even if that's the correct way. Jun 18 19:44:17 Is there any way to send C2DM notifications without having a phone-side app? Jun 18 19:46:01 38 people have failed to workout why my problem is occuring - kudos to you if you can work it out : http://stackoverflow.com/questions/11075585/android-in-app-billing-claims-to-not-be-supported-using-sample-code Jun 18 19:46:53 holy crap Jun 18 19:46:58 you posted that not 10 lines up Jun 18 19:48:02 * readme idea for irssi plugin Jun 18 19:48:17 if duplicate messages are sent, collapse and put the # of times sent next to nick Jun 18 19:48:29 but it's not like copypasta Jun 18 19:48:32 its just the same idea Jun 18 19:48:37 then we need ai Jun 18 19:48:42 canadiancow ;) Jun 18 19:48:58 i really need a hand, not sure what other channels to try tbh Jun 18 19:49:05 its a 'blocker' Jun 18 19:49:14 maybe something as simple as word frequency for words over 5 chars long Jun 18 19:50:44 I wish the emulator wasn't dead slow :/ Jun 18 19:52:37 DanGer, it's not bad on a good computer Jun 18 19:52:46 and the x86 one is even better Jun 18 19:53:25 i have an amd phenom x4. 2.x emulators work, but anything else is unbearable Jun 18 19:53:39 i don't care though. i've accepted emulators aren't a viable option Jun 18 19:53:51 i have a core i7 and i can do 3.x tablets, but i prefer real hardware anyway Jun 18 19:54:12 nice Jun 18 19:54:30 i'll be getting rid of this pc in a few weeks for a probably less powerful macbook pro Jun 18 19:54:37 so i'll be neededing hardware Jun 18 19:55:23 ok, the getPackageManager is a method of Context, which Activity was inheriting. but when i try to directly do Context.getPackageManager(), i get another error about static reference to non-static method. how do i fix this? Jun 18 19:55:46 jnewt: you can't put that stuff in a constructor, unless you pass the Context in Jun 18 19:56:11 readme: do you know why I can't go to Android package and view the classes in that package in eclipse?...I'm getting a message, "source not found" Jun 18 19:56:20 you need an instance of a context, not the class def. Jun 18 19:56:38 john_doe_jr: because you dont have the source hooked up for debugging? Jun 18 19:56:59 john_doe_jr: ^ -- also if you were using intellij, and you stepped into compiled code, it at least shows you the method stub Jun 18 19:58:42 readme: well, I'm using eclipse right now....intellij works fine...I can browse all the different classes but not in eclipse Jun 18 19:58:52 how do I "hook up the source" ? Jun 18 19:58:59 there is a plugin called android sources plugin Jun 18 19:59:07 it takes a long time to install so I never bothered with it Jun 18 19:59:22 i keep a checkout of AOSP and look separately Jun 18 20:01:19 any idea why android:dependency in a preference would fuck up? i have three that depend on one, but one of those three is always disabled Jun 18 20:01:21 the others are fine Jun 18 20:02:52 no idea Jun 18 20:07:48 oh i get it Jun 18 20:07:52 because it's disabled Jun 18 20:08:00 :D Jun 18 20:10:02 ... Jun 18 20:13:35 you guys have an idea why internet connection in my app doesn't work in emulator? Jun 18 20:15:24 it kind of works, i.e. when I run browser I have the connection, by my app doesn't seem to be able to connect Jun 18 20:17:29 ah, ok it's a bug in my app. Jun 18 20:17:32 hey if you're making a fps would you recommend moving the view matrix or the model matrix? Jun 18 20:22:59 has anyone had any luck compiling source that uses exceptions with the ndk toolchain and getting it to run, Im getting a segfault right now and I feel like its because Im missing a compile flag? Jun 18 20:23:50 arr, left i the middle of talking to freedomcaller Jun 18 20:25:57 this new Switch widget is... i mean i cant even describe it Jun 18 20:26:11 methinks someone at google said "MY IPHONE HAS ONE SO ANDROID NEEDS IT" Jun 18 20:26:13 and then it happened Jun 18 20:26:27 I like it Jun 18 20:26:27 i just hope its more customizable than ios Jun 18 20:26:31 Where it makes sense Jun 18 20:26:33 im not saying its bad Jun 18 20:26:39 well my PM wants to s/Checkbox/Switch/ Jun 18 20:27:03 That's just doing it wrong Jun 18 20:27:17 well its going to happen Jun 18 20:27:29 becuase you have all these ios users who say "OH NOW ITS EASY TO MAKE ANDROID LOOK LIKE IOS" Jun 18 20:27:36 :) Jun 18 20:27:53 i have an xml-v14 for our preference screen now, which literally just has so/Checkbox/Switch/ Jun 18 20:27:56 s/ * Jun 18 20:28:56 i need to see this thing, apparently Jun 18 20:29:13 wat Jun 18 20:29:18 http://cdn1.staztic.com/screenshots/diewlandsettingswifi-2-1.jpg Jun 18 20:29:24 (shown in 'off' state) Jun 18 20:29:32 oh my Jun 18 20:29:43 And it's draggable! Jun 18 20:29:52 ctate: what phone is that? Jun 18 20:29:54 off vs on: http://cdn.androidcommunity.com/wp-content/uploads/2011/11/gnex-wifi-405x540.jpg Jun 18 20:29:56 galaxy nexus Jun 18 20:30:02 i think its too far left Jun 18 20:30:06 hrnt: no clue; that was just a google image search Jun 18 20:30:07 the margin is too high Jun 18 20:30:08 my galaxy S3 has a switch that looks a lot more like the iOS version Jun 18 20:30:16 compared to that one Jun 18 20:30:31 a samsung phone looking like ios? Jun 18 20:30:32 say it aint so Jun 18 20:30:37 yeah samsung have a history of thinking "identical to apple" == "better UI" Jun 18 20:30:39 trololo Jun 18 20:31:01 :) Jun 18 20:31:27 When you return an object from a construct method, where is it returned to? Jun 18 20:31:41 you dont Jun 18 20:31:42 you cant Jun 18 20:31:44 http://blog.jarofjuice.com/wp-content/uploads/2012/06/Galaxy-S3-Motion-Settings.png Jun 18 20:31:49 at least the colors are a little different Jun 18 20:31:57 hrnt is that ICS? Jun 18 20:32:02 yes Jun 18 20:32:08 ok yea so they just themed it Jun 18 20:32:12 canadiancow, was that directed at me? Jun 18 20:32:16 i dont understand why they use checkboxes and switches Jun 18 20:32:20 I hate samsung's theming Jun 18 20:32:23 Snicers-Work2: the "you dont/you cant" was Jun 18 20:33:09 canadiancow, I am looking at example source for ViewPagerIndicator and they definatly are returning the a fragment object in the constructor method. Jun 18 20:33:28 no they are not Jun 18 20:33:31 No they're not Jun 18 20:33:34 Snicers-Work2: constructor method? Jun 18 20:33:35 fu Jun 18 20:33:45 Snicers-Work2: do you mean the actual constructor, or one of the on* methods Jun 18 20:33:53 The method that is named the same thing as the class. Jun 18 20:33:59 hello Jun 18 20:34:03 Snicers-Work2: do you have a link? Jun 18 20:34:14 here's something i've not had to do before: renaming a project... Jun 18 20:34:35 whats the best way to rename a project without having to re-create it? Jun 18 20:34:35 http://pastebin.com/y2LSJB9J Jun 18 20:34:48 hah Jun 18 20:34:50 That's not the constructor Jun 18 20:34:55 newInstance... Jun 18 20:34:56 that... Jun 18 20:34:59 ah, because of the instance Jun 18 20:35:01 is not named the same thing as the class Jun 18 20:35:03 I just saw that. Jun 18 20:35:14 sometimes i dont even Jun 18 20:35:14 That's just a static method for creating an instance Jun 18 20:35:25 It is named tghe same thing as the class.. but it is an instance. Jun 18 20:35:47 public static TestFragment newInstance(String content) Jun 18 20:35:52 Now unless your class is called newInstance.. Jun 18 20:35:58 no, its not Jun 18 20:35:59 So it is creating a new instance of the class it is within? Jun 18 20:36:10 you are getting to far ahead of yourself Jun 18 20:36:13 It's a method that creates an instance of a fragment Jun 18 20:36:14 start with the basics Jun 18 20:36:17 Ah I see I see. Jun 18 20:36:21 the relevant docs: http://docs.oracle.com/javase/tutorial/reflect/member/ctorInstance.html Jun 18 20:36:26 A method called newInstance.. not TestFragment Jun 18 20:36:37 I have the basics down, I have been in PHP for years, I am now getting the ropes of Java. Jun 18 20:36:46 i disagree Jun 18 20:36:47 I see that now, was just having a blond moment. Thanks. Jun 18 20:37:07 wongk, you can disagree all you like, it wont stop me from learning Java better. Jun 18 20:37:25 that's what i'd like to help you with Jun 18 20:37:45 "Android's Face Unlock security on the Samsung Galaxy S3 can be tricked into unlocking the phone by showing it a photograph of the owner.", lol Jun 18 20:38:02 oh really? :D Jun 18 20:38:10 ... is that a "news" article? Jun 18 20:39:00 That has been known about ICS from the begining, Google says they did it more for fun than function. Jun 18 20:39:10 ffffuuuuuu can you really not theme a Switch? Jun 18 20:39:12 thats an old AI problem, also how to recognise a mirror and not a picture... Jun 18 20:39:41 facial recognition, like consumer-grade fingerprint scanners, are gimmicks Jun 18 20:39:49 indeedy Jun 18 20:40:18 https://twitter.com/timbray/status/126510193323409408 Jun 18 20:40:23 hi Jun 18 20:40:34 but i am liking the voice recognition :D Jun 18 20:40:38 yea g00s i remember that Jun 18 20:40:49 if you only have one camera, you cant tell the difference between a photo and the real thing Jun 18 20:40:50 there was a fuss made years ago about facial recognition being used on cigarette dispensers in tokyo, and people noticed you could use a photo of an old person to trick it, nothing surprising there Jun 18 20:41:08 canadian, unless its seriously high resolution, or you have some rather nifty AI Jun 18 20:41:24 yea, but it would have sky-net grade AI Jun 18 20:41:50 i guess as long as people know , "Samsung classifies Face Unlock as a low-protection security feature" Jun 18 20:41:57 Hey guys - i have asked a nmber of times earlier this evening for help with this problem, but nobody knew, anyone new please take a look : http://stackoverflow.com/questions/11075585/android-in-app-billing-claims-to-not-be-supported-using-sample-code Jun 18 20:42:08 and no one still knows Jun 18 20:42:24 the most obvious test i can think of is checking whether the lighting is completely wrong Jun 18 20:42:42 in- app billing sounds like a minefeild i'd rather not clear Jun 18 20:42:46 g00s: well, for their credit they do make it pretty obvious in settings Jun 18 20:43:05 with a seriously high-res camera you could try and pick up surface texture, but its a long-shot, would be easier to just make it stereo from the beginning Jun 18 20:43:06 g00s: (the security menu has the "Low security" stuff as a subtitle for each list item) Jun 18 20:43:29 hrnt: ah, ok. i don't have ics yet so i have not seen Jun 18 20:43:35 i think face unlock is just as 'secure' as swipe to unlock Jun 18 20:43:51 although it should fool the average child Jun 18 20:44:00 until they grab your ID ;) Jun 18 20:44:11 not my lad it didnt even slow him down Jun 18 20:44:36 next thing i knew was my phone filled with lots of games Jun 18 20:45:15 it might be ok if you lose your phone or some asshat who doesn't know you steals it Jun 18 20:45:34 tru Jun 18 20:45:50 but i wouldn't count on it to protect truely sensitive data :P Jun 18 20:45:54 for the 99% case, face unlock is ok Jun 18 20:46:00 i wouldn't really want that on my phone, though Jun 18 20:46:09 getting a phone lost or stolen, it's generally enough protection Jun 18 20:46:13 TheFred: yeah, that's fair. face unlock and swipe-to-unlock are both considered insecure. Jun 18 20:46:18 IMO Jun 18 20:46:45 swipe to unlock isn't that insecure Jun 18 20:46:48 you have 9! combinations Jun 18 20:46:57 assuming you do take advantage of all 9 dots Jun 18 20:46:59 that's what i use Jun 18 20:47:12 pfn thats not swipe to unlock Jun 18 20:47:12 i consider it "secure enough for my phone" Jun 18 20:47:14 thats pattern unlock Jun 18 20:47:20 oh, ok Jun 18 20:47:31 swipe to ublock is the fingerprint stuff Jun 18 20:47:39 eh? Jun 18 20:47:40 no Jun 18 20:47:43 no? Jun 18 20:47:46 go try it T_T Jun 18 20:47:50 im thinking of ibm thinkpads Jun 18 20:47:51 what fingerprint stuff Jun 18 20:47:59 there are no phones with fingerprint unlock at the moment Jun 18 20:48:00 or whatever it was Jun 18 20:48:01 it's called "Slide" Jun 18 20:48:05 there were PDAs once with that Jun 18 20:48:18 I *do* want one with a project tho Jun 18 20:48:20 is it really 9! ? i thought you couldnt have repeat digits Jun 18 20:48:29 robb_www, that's why it's 9! Jun 18 20:48:38 the thing with pattern unlock is that you have to keep your screen clean or oily, not in between :P Jun 18 20:48:40 https://play.google.com/store/apps/details?id=mobi.thinkchange.fingerscannerlite&hl=es <-- fingerprint unlock (mock) Jun 18 20:48:48 robb_www, rather than 9^9 Jun 18 20:48:56 pfn, ah i see, you confused me, was thinking 9^9 and wanting to disagree ;) Jun 18 20:50:15 I think samsung have missed a trick the the beam phone,if they had a hi-res camera facing the same way as the projector then there's all sort of neat things that could be done: how about Dance to unlock LOL Jun 18 20:51:01 ahh, my phone doesn't have finger unlock Jun 18 20:51:08 i don't know how that one works Jun 18 20:51:40 really, no one else thought dance to unlock was funny? Jun 18 20:51:41 ho hum Jun 18 20:52:11 technically it's not 9! for pattern, because from one dot have to move to an adjacent dot, right? Jun 18 20:52:27 not quite, you can skip the middle dot Jun 18 20:52:32 but only if its already in use Jun 18 20:52:43 yeah, not quite technically, you can pass over in-sequence dots Jun 18 20:52:57 but you can easily create a pattern that is 9! to brute force Jun 18 20:53:00 still "good enough" :P Jun 18 20:53:05 hi Jun 18 20:53:26 well, not 9! I suppose but anyway Jun 18 20:53:34 since not all patterns will be able to legitimately use all 9 dots Jun 18 20:53:47 (i.e. any that traverse over another dot, does not really use the middle dot) Jun 18 20:54:29 there are like under a million possible combinations Jun 18 20:54:32 i worked it out once Jun 18 20:54:40 you can rainbow table them all in a couple seconds Jun 18 20:54:46 then you just need the hash Jun 18 20:54:46 389112 Jun 18 20:54:53 there Jun 18 20:54:55 :) Jun 18 20:54:55 its been a long time since ive looked at combinatorics Jun 18 20:54:56 9! is well under a million Jun 18 20:55:01 9*8*7*6*5*4*3*2 Jun 18 20:55:01 362880 Jun 18 20:55:06 dunno how you came up with 389112 Jun 18 20:55:07 it isn't even 9! because of hte sequencing Jun 18 20:55:16 and 9! should be an upper bound Jun 18 20:55:20 no Jun 18 20:55:21 it's an upper bound Jun 18 20:55:23 no Jun 18 20:55:23 you can't hit the two diagonal opposite corners one after the order first, for example Jun 18 20:55:24 it is not Jun 18 20:55:29 how would you approach the animation of several of background images giving the illusion of a movie playback ? Loading all the frames in memory does not seem to be possible... what about loading them from disk ? In this latter case, can I expect a decent frame rate ? any ideas ? Jun 18 20:55:32 becuase you can have a pattern of length 9, 8, 7, ... Jun 18 20:55:40 so the upper bound would be 9! + 8! + 7! ... Jun 18 20:55:43 ahh good call Jun 18 20:55:49 regardless Jun 18 20:55:54 its not very secure Jun 18 20:55:56 9! down to 4! Jun 18 20:55:58 maybe more secure than a 4 digit pin Jun 18 20:56:05 but not very secure :) Jun 18 20:56:06 this would be why i never did an actual math degree :P Jun 18 20:56:08 http://beust.com/weblog2/archives/000497.html Jun 18 20:56:14 derives that number Jun 18 20:56:30 indeed Jun 18 20:57:05 heh, proof by simulation, a man after my own heart Jun 18 20:57:23 . Jun 18 20:57:42 i wrote my own pattern lock code Jun 18 20:57:47 canadiancow|work: how is it not secure? Jun 18 20:58:01 smudge attack is one way Jun 18 20:58:03 canadiancow|work: if you can read the has from settings, you already have root and you can just turn off the screen lock ... Jun 18 20:58:07 smudge isn't a real attack Jun 18 20:58:09 readme: yeah, excluding that Jun 18 20:58:19 since you can read pin smudges just as effectively Jun 18 20:58:25 readme: that doesn't rely on the combinatorics :) Jun 18 20:58:35 evancharlton when i looked into it, there were easy ways to boot all in-market devices into a rooted image without modifying anything Jun 18 20:58:56 eh? Jun 18 20:59:16 there aren't easy ways to boot all devices into a rooted image Jun 18 20:59:22 yeah, what? Jun 18 20:59:28 I'm trying to get a barcode generator in my Android app. It looks like most 1D barcodes are generated from a "barcode" font file, where the app generates an image based on text written in that font. e.g. http://www.start2code.com/blog/example-programs-java/program-in-java-to-generate-the-barcode-image/ Jun 18 20:59:35 Does this look like the best/standard way to do this? Jun 18 20:59:51 It looks like creating a barcode can be as simple as writing characters in a custom font in a textview using a ttf file in the app's assets. http://mobile.tutsplus.com/tutorials/android/customize-android-fonts/ Jun 18 20:59:51 Jonathan_Eyre, zxing should have a barcode generator Jun 18 21:00:11 pfn / evancharlton: WHEN i looked at it Jun 18 21:00:13 pfn: Would that be better than a ttf file? Jun 18 21:00:14 there were like 3 devices on the market Jun 18 21:00:20 and you could easily do it to all of them Jun 18 21:00:36 e.g. galaxy nexus, barring security exploits (e.g. zergrush, etc.) can't be booted onto a rooted image without wiping first Jun 18 21:00:48 Jonathan_Eyre, it'd be a more proper way, I suppose Jun 18 21:00:51 And on the other hand, wouldn't zxing dramatically increase the sixe of my app? Jun 18 21:00:52 i didnt say all current devices Jun 18 21:00:54 http://stackoverflow.com/questions/6376400/zxing-android-generate-1d-barcode dont include ZXing directly in your app without a good reason, use intents Jun 18 21:01:14 robb_www, I don't agree Jun 18 21:01:26 ZXing have already made that recommendation publicly Jun 18 21:01:32 what if you NEED the capability? Jun 18 21:01:51 i have a use case where i absolutely need zxing in my app Jun 18 21:01:56 sometimes one doesn't want to have to require customers to install the barcode scanner app Jun 18 21:02:00 canadian, then thats fine im sure Jun 18 21:02:29 "it looks like zxing is not installed." then launch Play to install it Jun 18 21:02:50 :( I think I deleted my pattern unlock Jun 18 21:02:52 it's a pretty terrible user experience Jun 18 21:03:02 it was part of a project I never finished Jun 18 21:03:08 ill find the link, brb Jun 18 21:03:08 maybe Play should take care of dependencies... Jun 18 21:03:10 deleted whole project knowing I wasn't gonna work on it :( Jun 18 21:03:25 readme, should always save stuff away into a repository osmewhere Jun 18 21:03:30 Sean Owen, one of the ZXing developers: http://damianflannery.wordpress.com/2011/06/13/integrate-zxing-barcode-scanner-into-your-android-app-natively-using-eclipse/#comment-159 Jun 18 21:03:31 unless it's all completely worthless code Jun 18 21:03:33 i've got most of my stuff in a repo, pfn Jun 18 21:03:37 for some reason I didn't commit it Jun 18 21:03:50 it wasn't killer code. I could rewrite it pretty fast Jun 18 21:04:02 I had a terrible user experience only last week, a user wanted me to magicaly 'code' a sonar sensor into his device... Jun 18 21:04:06 its a simple implementation. watch the finger pass over the screen areas. use the radius. bleh Jun 18 21:04:17 robb_www, right, the correct answer isn't to /embed/ barcode scanner, the app, into your own app Jun 18 21:04:21 embedding zxing as a library is fine Jun 18 21:04:34 However I must say we discourage people from copying-and-pasting Barcode Scanner in this way. You’re encouraging people to create apps that make people think they’re using our app, when they’re not. Jun 18 21:04:47 i.e. embed zxing the library, not zxing the app Jun 18 21:04:53 pfn, from the same comment, "The motivation seems to just be “because I don’t want to make people install someone else’s app”, which is a flimsy reason." Jun 18 21:05:18 I wouldn't want to fall back to barcode scanner because it's a pretty crappy user experience Jun 18 21:05:25 e.g. for generating a barcode Jun 18 21:05:30 would result in some visible flicker Jun 18 21:05:38 since you're starting an activity that just quites right away Jun 18 21:05:42 s/quites/quits Jun 18 21:06:02 TheFred, out of interest what did they want the sonar to do? you wont get any bearing data from a single microphone without some considerable GPS work Jun 18 21:06:10 robb_www: if the user happens not to have the scanner app installed, the experience is actually pretty crappy Jun 18 21:06:11 i had a stupid idea the other day. A speaker based theremin. On the same speaker you'd have: theremin sound and low frequency wave used to measure approx distance from the mic Jun 18 21:06:27 you'd need the speaker be independent from the mic Jun 18 21:06:37 i second that embedding the zxing library directly in the app, with your own app's UI and processing,soudns fine Jun 18 21:06:40 robb_www, they wanted to point it at the water surface when on a boat so they find fish! Jun 18 21:07:05 i have an object created in one Fragment, and i want to use it in another. it's called myAccessory, and has a method handler. how do i make myAccessory available to toher Fragments? Jun 18 21:07:06 ... because fish totally don't care about sounds :) Jun 18 21:07:25 SuD: android devices also have a proximity sensor that might be good for that Jun 18 21:07:28 yea, aside from the 'marine' issues Jun 18 21:07:31 not sure how sensitive it is Jun 18 21:07:48 ctate, fair enough, i just recalled this post Jun 18 21:08:15 TheFred, wow, the amount of energy lost at the waters surface is quite something, that would be a seriously poor sonar system Jun 18 21:08:18 All i know is i dont want users screaming at me because my app 'encouraged' them to use it close to water Jun 18 21:08:19 some sort of OLE/ActiveX like embedding would be somewhat nice Jun 18 21:08:39 ==robb_www. you basically can't do sonar from above the surface. Jun 18 21:08:48 i have a PhD in sonar signal processing Jun 18 21:08:49 robb_www, to be blunt, the chap was proper, proper crazy Jun 18 21:08:58 TheFred: we would never have guessed :) Jun 18 21:09:15 you could try and do it, but it would be entirely uneconomical Jun 18 21:09:43 if you can get the device in the water your main issue is going to be the frequency range of the speaker/microphone and their respective sensitivites, which will still be .. poor Jun 18 21:10:02 do i need to pass the object to the fragment in the onCreate or in a constructor? Jun 18 21:10:15 afk Jun 18 21:10:22 jnewt: if you want to get the context from a fragment, I think you should call getActivity() after onActivityCreated Jun 18 21:10:26 if you submerge your device in water, you'll have bigger problems :P Jun 18 21:10:42 your problem is wanting to do the context dependent stuff from the constructor. Jun 18 21:10:44 ==wongk :) Jun 18 21:10:46 theres some background info in the first few chapters here: http://orca.cardiff.ac.uk/18588/ Jun 18 21:11:01 ctate, i could tell someone was going to run with it, so though being blunt was going to put the brakes on it :) Jun 18 21:12:18 readme: do i need context to use an object? that seems over complicated. can't i just declare the class static or final or some sort of global so it can be used in all fragments? Jun 18 21:12:24 pfn: fenix came out with a few new lights over the pas week or so. haven't checked them out. Jun 18 21:12:50 jnewt: not for a regular object, but it appeared to me earlier you wanted to do things that *depend* on the context Jun 18 21:12:54 have they now Jun 18 21:13:04 kinda tempting, since I seem to have lost my surefire 6p Jun 18 21:13:30 oh no Jun 18 21:14:05 * ctate | The tactically-correct pushbutton tailcap switch Jun 18 21:14:14 the way this stuff is advertised is kind of weird :) Jun 18 21:14:40 fenix has always had poor english translations, the stuff is sometimes hilarious Jun 18 21:14:49 pd32 hasn't been updated, bummer Jun 18 21:15:32 readme: context is a very confusing subject for me, and although I can read the words, it still doesn't make sense. i created an instance of my usbAccessory in one fragment (the starting one) called myAccessory. i want just one myAccessory, and i want to be able to use myAccessory.handler.sendMessage from another (it works in the first fragment, but not others. Jun 18 21:15:47 * ctate | This is Fenix's newest release to include the side mode button. You will experience a new interface with a fresh experience. Jun 18 21:15:53 jnewt: paste code Jun 18 21:16:09 ctate, they probably use google translate Jun 18 21:16:10 ok Jun 18 21:16:14 paste in chinese Jun 18 21:16:19 out comes english on the other side Jun 18 21:16:22 hehe Jun 18 21:16:37 a Context in Android is a component's way to access resources and configuration information that are relevant to their current circumstances Jun 18 21:16:43 strobe with tactical switch is pretty awesome Jun 18 21:16:49 unlike how it was setup before Jun 18 21:17:05 i need to get me some eneloop XXs. Jun 18 21:17:28 its funny when you're talking to ios devs and they say "OH SHIT WE HAVE TO DO THIS FOR ANDROID TOO" and you say words like "intent" and "context" and they think you're an idiot Jun 18 21:17:38 THAT'S NOT THE INTENT OF THIS FEATURE Jun 18 21:18:45 readme: http://pastebin.com/JNnfUyeF Jun 18 21:19:28 hello, is there any easy way to restart my application in the emulator? Jun 18 21:19:31 what is myUsbAccessory and why doesn't it work for you? Jun 18 21:20:06 ctate, what's the behavior if a service connection is null for bindservice? Jun 18 21:20:15 the way I do it currently is make a small change to the code and redeploy the app but it seems a bit silly Jun 18 21:20:30 pfn: that is a good question Jun 18 21:20:39 perhaps someday Eclipse will let me see the source to answer it Jun 18 21:20:55 probably npe or iae or something then Jun 18 21:21:05 * pfn writes a NOOP_SERVICE_CONNECTION thing for his keepalive service Jun 18 21:21:09 canadiancow|work: when someone is giving me business requirements i usually don't discuss technical terms with them. Jun 18 21:21:15 even if they're a developer Jun 18 21:21:16 readme: myUsbAccessory works. i just can't call it from IoFragment because it can't be resolved because i created it in McActivity Jun 18 21:21:35 jnewt: why not move it outside? Jun 18 21:21:36 readme, ios devs Jun 18 21:21:40 or make it public static Jun 18 21:21:48 nah this was a technical discussion Jun 18 21:22:15 if you're gonna use a class in a fragment, making it an inner class of an activity is kind of silly Jun 18 21:22:18 "HOW ARE WE GOING TO DO X" "well the intent will start a new activity, and the--- " "NO THE INTENT IS TO DO X, NOT SHOW A NEW SCREEN" Jun 18 21:22:52 hmm Jun 18 21:22:59 sounds like a know it all Jun 18 21:23:10 I hope having a singleton service connection isn't gonna mess up bindService/unbindService accounting Jun 18 21:23:12 'i looked at the android docs -- haven't developed but that means I know better than you!" Jun 18 21:23:29 more like "ive used an android once, so i know better than you!" :) Jun 18 21:23:32 this guy doesn't know android obviously and should just give you business objectives Jun 18 21:23:38 not try to talk tech when he doesn't know it Jun 18 21:23:42 shows that he is naive, imo Jun 18 21:23:55 he didnt realize we were talking tech Jun 18 21:23:56 i work with other programmers all the time that don't know android and they rarely give a shit what the implementation details are Jun 18 21:24:09 because "intent" has non-technical meaning Jun 18 21:24:14 readme: it's a class on it's own. in it's own file, public class myUSBAccessory{...} but, i need an instance of it, so i needed to do that at the beginning so i did it in the onCreate of my activity. but now i need to use that instance in another fragment. are you saying i should instantiate it outside of the activity? Jun 18 21:24:20 hey Jun 18 21:24:31 i got a question for you folks Jun 18 21:25:00 man PreferenceFragment is the bane of my existence Jun 18 21:25:09 jnewt: are you saying you want to share ONE myUsbAccessory with everything? Jun 18 21:25:14 canadiancow|work: dude just reimplement it already. It's not that hard. Jun 18 21:25:14 and not create two Jun 18 21:25:21 evancharlton orly? Jun 18 21:25:34 Has anyone here worked with gettext and locale for JNI gateway C/C++ stuff? I'm assuming no, but... Jun 18 21:25:35 i do believe i suggested just that Jun 18 21:25:36 readme: yes, that is a requirement. I need to only have one connection to the hardware. Jun 18 21:25:37 hello? Jun 18 21:25:39 jank the code and run with it Jun 18 21:25:43 jnewt: welcome to the dark side Jun 18 21:25:45 s/jank/kang/ Jun 18 21:25:46 use a singleton pattern Jun 18 21:25:52 fsck me Jun 18 21:26:02 google 'java singleton' Jun 18 21:26:10 people Jun 18 21:26:14 -.- Jun 18 21:26:19 Karou: just ask your question already Jun 18 21:26:24 is there anyway to take my phone Jun 18 21:26:24 actually a good "singleton" for this Jun 18 21:26:26 would be a Service Jun 18 21:26:31 readme: i can't believe this is my first actual app taht will do anything worthwile, and you welcome me to the dark side Jun 18 21:26:31 Karou: yeah, pick it up Jun 18 21:26:32 https://groups.google.com/forum/?fromgroups#!topic/android-developers/dqW69nehcaU Jun 18 21:26:34 dianne says no Jun 18 21:26:35 your myUsbAccessory should be a bound service Jun 18 21:26:38 and make it a snapshoot in the android sdk? Jun 18 21:26:40 that's the clean way to use a 'singleton' Jun 18 21:26:47 Karou: #android-root Jun 18 21:26:51 kk Jun 18 21:27:01 and then mark murphy goes and does it Jun 18 21:27:39 seems like dianne and mark are still butting heads Jun 18 21:27:44 :D Jun 18 21:27:44 readme: i was told earlier that making usbAccessory a service was not necessary, and i completely moved away from that idea. I was told it only needed to be an object, an independent class that i would create one instance of. so that's what i've done over the past 4 hours Jun 18 21:27:45 jnewt: http://developer.android.com/guide/topics/fundamentals/services.html Jun 18 21:27:52 jnewt: you were told wrong bro Jun 18 21:28:01 Service is perfect for this Jun 18 21:28:15 that's what i was thinking, should have trusted myself Jun 18 21:28:28 it meets the requirements because: you can only have one. Service is a singleton. You can pass messages to it, and cleanly bind/unbind Jun 18 21:28:32 so you don't create a rats nest Jun 18 21:28:39 like you would if you used a moronic singleton pattern Jun 18 21:28:43 because you decouple with an Intent Jun 18 21:29:20 remember, service is not a thread. Jun 18 21:30:37 yeah, and i'm wondering how / if this should be threaded, i have a .net app that does the same things, and i threaded it's read / write to keep the UI active. not sure if i need to consider that here. The data is going to stream into the app continuously. Jun 18 21:30:42 bk sorry about that Jun 18 21:30:53 if you want you could stick a thread in your service and implement some queuing stuff Jun 18 21:31:06 jnewt, it's always required to be threaded Jun 18 21:31:09 jnewt, it's how all UIs work Jun 18 21:31:28 the other issue re: microphone as a transducer/receiver is the impedence is going to be completely off, so your going to loose a ton of energy at the interfaces between the device and the water still, but it shouldnt be as bad as the waters surface where its a less controlled environment Jun 18 21:31:29 pfn: define "it" Jun 18 21:31:30 UIs have a central event loop that must not be blocked Jun 18 21:31:37 jnewt: the service callbacks run on the main thread Jun 18 21:31:37 jnewt, any work that is blocking Jun 18 21:32:12 oh man, this is sounding more out of my league by the minute. Jun 18 21:33:11 write some more simple code first Jun 18 21:33:15 start with hello service Jun 18 21:35:28 k, thanks for the direction Jun 18 21:41:44 pfn: to answer an older question, i suspect that if you pass a null ServiceConnection to bindService(), you'll get a crash when the callback was to be invoked Jun 18 21:43:32 i think if the docs don't say, its best to be the most defensive about it Jun 18 21:43:53 even if it worked, it might not some time down the road Jun 18 21:43:58 no, it'll clearly not work Jun 18 21:44:02 the question is how and when it will fail :) Jun 18 21:44:07 ah Jun 18 21:45:07 ctate, yeah, I suspect it'd be an NPE Jun 18 21:45:14 yeah Jun 18 21:46:57 maybe i should it throw IllegalArgumentException Jun 18 21:47:41 has anyone gotten exceptions working with the ndk toolchain? Jun 18 21:48:01 ctate, yeah, that's what I think, if the null check is done up-front Jun 18 21:50:12 http://phandroid.com/2012/06/17/developers-can-now-reply-to-users-google-play-comments/ Jun 18 21:50:47 muhahaha Jun 18 21:51:09 the example screenshot is especially hilarious Jun 18 21:51:30 does "default worker thread" == "UI thread" or does worker imply "other" Jun 18 21:51:58 jnewt: dunno what you mean by default worker thread, but the UI thread is the main thread Jun 18 21:52:09 "main thread" and "UI thread" are synonyms Jun 18 21:52:10 it's shared between all components in a process, including services Jun 18 21:52:18 which is why it's not really a UI thread Jun 18 21:52:20 i'd need some context for someone using the phrase "worker thread" Jun 18 21:53:32 MDijkstra: i got that text directly from the dev guide. they refer to "default worker thread" as well as "main thread" http://developer.android.com/guide/topics/fundamentals/services.html Jun 18 21:54:05 jnewt: from that page: Jun 18 21:54:06 i'd assume they were different because they are called different things, but main and default to me imply the same thing Jun 18 21:54:07 "Creates a default worker thread that executes all intents delivered to onStartCommand() separate from your application's main thread." Jun 18 21:54:09 yey a new skin! Sharp's is called Feel UX. Interesting it is designed by frog Jun 18 21:55:14 g00s: I bet it'll be really, really good Jun 18 21:55:18 touchwiz awesome Jun 18 21:56:29 jnewt: http://developer.android.com/reference/android/app/Service.html check this Jun 18 21:56:32 first lines Jun 18 21:57:00 grep for it: "Note that services, like other application objects, run in the main thread of their hosting process." Jun 18 21:57:02 So you know how when you set up a 4.0 device, it asks for your name? Is there a way I can get that to use in my app? Jun 18 21:57:03 :) Jun 18 21:57:08 touchwiz awesome? o.o Jun 18 21:57:25 yeah, if something is talking about a "worker" or "background" thread, that is always distinct from the main thread. Jun 18 21:57:58 IMO the word "default" in the IntentService description of its worker thread should be stricken; it's superfluous and doesn't help. Jun 18 21:58:44 <3 IntentService Jun 18 21:59:13 So I have a simple issue, I have imported android.util.Log and am using Log.v("var", "value"); but nothing is showing up in my CatLog. I know for a fact that the method I am logging is being ran. Jun 18 21:59:16 IntentService is indeed quite handy Jun 18 21:59:23 LogCat* Jun 18 21:59:26 it seems that they intend services to be used for cross-application and systemwide purposes, which makes me doubt my need for one. Jun 18 21:59:33 Snicers-Work2: "CatLog"? Jun 18 21:59:35 Snicers-Work2: use Log.d Jun 18 22:00:10 Log.d has same result. Jun 18 22:00:22 logcat must be broken Jun 18 22:00:51 or your code is not actually being executed? try setting a break point :) Jun 18 22:00:59 ==ctate Jun 18 22:01:27 anyone have experience with exception-handling in C++ for Android NDK? i'm trying to compile a simple C++ program that simply throws and catches an exception, but it segfaults on throwing the exception when i run it on an emulator. Jun 18 22:01:52 so look at your segfault stack Jun 18 22:02:10 you didn't catch the exception Jun 18 22:02:12 it sounds like Jun 18 22:02:24 i wrote catch(…) {} Jun 18 22:02:31 the trace is Jun 18 22:02:37 not here Jun 18 22:03:03 jfrantz: you are compiling with -fexceptions right? Jun 18 22:03:14 yeah Jun 18 22:03:45 http://stackoverflow.com/questions/11090889/android-ndk-toolchain-exception-handling-seg-faults is what i'm getting at Jun 18 22:04:03 my breakpoint successfully paused for debugging on my log line upon running the application. Jun 18 22:04:31 jfrantz: which exception are you throwing? Jun 18 22:04:51 throw 0 Jun 18 22:04:54 hmm. Jun 18 22:04:55 None, everything is fine, it defines my tag and msg of the log along with their assigned ID's. Jun 18 22:05:02 does it break similarly if you throw an object? Jun 18 22:05:05 But never appears in LogCat. Jun 18 22:05:12 readme: it might be a good time to get a mbp on discount http://www.theverge.com/2012/6/18/3094226/good-deal-macbook-pro-air-sandy-bridge-best-buy Jun 18 22:05:14 (note: i'm surprised exceptions are supported *at all* in the NDK :) ) Jun 18 22:05:24 jfrantz: try inheriting from std:exception Jun 18 22:05:28 *std::exception Jun 18 22:05:40 jfrantz: iirc that's required Jun 18 22:05:41 I want one of the new retina mbps Jun 18 22:05:47 i tried that before and it still didn't work Jun 18 22:05:55 if it's really 2880x1800 of /usable/ resolution Jun 18 22:06:03 that's awesome Jun 18 22:06:04 well, it's definitely necessary, so fix that first Jun 18 22:06:11 I want eye-bleeding resolution Jun 18 22:06:13 pfn> yeah thats going to rock Jun 18 22:06:20 specially cause of all the Mac apps Jun 18 22:06:23 that's if it's actually addressible for normal apps to use Jun 18 22:06:29 rather than just used for AA Jun 18 22:06:30 that were never made to support non-standard resolutions :/ Jun 18 22:06:31 which is worthless Jun 18 22:06:35 LogCat is set to verbose with no filters on All messages, The variables are being set and sent to Log.v and Log.d, but never reaching LogCat. The library is included. Any ideas? Jun 18 22:06:36 g00s: cool. checking it out Jun 18 22:06:38 MDijkstra; i'll try it again.. Jun 18 22:07:17 yeah it's not working. compiled with -fexception and am throwing from std::exception, same stack trace Jun 18 22:07:23 jfrantz: also, which libstdc++ are you building against? Jun 18 22:07:43 MDijkstra: gnustl_shared Jun 18 22:08:01 g00s: god macs are such a rip off Jun 18 22:08:03 god damn ios Jun 18 22:08:14 you can get an equivalent asus for 329.99 Jun 18 22:08:32 Chainfire, I hpe the resolution is absolutely usable Jun 18 22:08:34 readme, false Jun 18 22:08:37 jfrantz: according to this SO post you need to link against a special version Jun 18 22:08:41 you can't get an equivalent asus for $330 Jun 18 22:08:42 gnustl_static Jun 18 22:08:50 jfrantz: http://stackoverflow.com/questions/4663291/android-ndk-r5-and-support-of-c-exception Jun 18 22:08:50 for $330 less, maybe Jun 18 22:08:56 e.g. macbook air vs. equivalent ultrabooks Jun 18 22:09:02 mba demands a ~$300 premium Jun 18 22:09:11 evenin all Jun 18 22:09:11 (e.g. asus zenbook vs. mba, similarly specced) Jun 18 22:09:25 mdijkstra: just tried it, same segfault Jun 18 22:09:27 samsung series9 is actually about the same price Jun 18 22:09:29 as an mba Jun 18 22:09:44 I have been having this problem for a while - any in app billing specialists out there know the answer!? http://stackoverflow.com/questions/11075585/android-in-app-billing-claims-to-not-be-supported-using-sample-code Jun 18 22:09:44 jfrantz: give the stacktrace, it's hard to debug something like this blind Jun 18 22:09:57 and you can't find /any/ laptop that will be similarly specced to an mbp 15" retina display Jun 18 22:10:07 i guess there is supposed to me some big MS announcement in 20 minutes Jun 18 22:10:13 closest things you'll find are 1080p 15" laptops that will run around $1200 Jun 18 22:10:17 so I guess that's a $900 premium Jun 18 22:10:22 but then again, the new mbp is like .7" thick Jun 18 22:10:30 all the 1080p 15" laptops are like 2" thick Jun 18 22:11:02 i thought all the PC ulatrabook manufacturers were struggling to put out anything like the mba for the same price. isn't that why Intel had to have that design fund ? Jun 18 22:11:10 mdijkstra: this is from strace http://pastebin.com/Jyr6bLiD Jun 18 22:11:16 g00s, what are you talking about Jun 18 22:11:23 zenbook is $300 cheaper than a similar mba Jun 18 22:11:29 and it is practically identical Jun 18 22:11:29 what is special about a retina display Jun 18 22:11:34 nobody?! Jun 18 22:11:36 i.e. asus ripped off the design from apple Jun 18 22:11:42 readme, 2880x1800 resolution Jun 18 22:11:44 that's what's special Jun 18 22:11:44 duh Jun 18 22:11:47 pfn: http://www.itworld.com/answers/topic/hardware/question/why-intel-creating-300-million-fund-ultrabook-design Jun 18 22:12:03 mdijkstra: and this is from gdb http://pastebin.com/CfqEKbRn Jun 18 22:12:18 g00s, 44 weeks ago Jun 18 22:12:36 g00s, old news then Jun 18 22:12:52 g00s, in any case, the zenbook has been competitive in price since it came out Jun 18 22:13:06 ok. i didn't remember the timeline Jun 18 22:13:47 man, no help here? Jun 18 22:14:39 probably more along the lines of pc mfr's not really caring about making an "ultrabook" 'til intel put out money for them to care Jun 18 22:15:00 it's like all computer monitor manufacturers are stuck making shitty 1920x1080 displays Jun 18 22:15:12 because they're making money hand-over-fist and don't give a shit about making anything any better Jun 18 22:15:32 i'm pretty sure its about margins Jun 18 22:15:35 is there any software i can use on a pc to emulate a smartphone? i need to test how my web site will look Jun 18 22:16:06 android emulator Jun 18 22:16:12 iphone simulator Jun 18 22:16:13 etc. Jun 18 22:16:30 pfn> the one report I've actually bothered to read stated that current apps look like poo on that screen Jun 18 22:16:55 http://android-emulator.org/ ? Jun 18 22:17:11 thx Jun 18 22:17:14 Chainfire, yeah, I've kinda heard that Jun 18 22:17:19 Chainfire: hard to see how; it's literally emulating the phone software directly Jun 18 22:17:36 also, my vision may be terrible, I really don't see the fuss about all this retina display ... I don't find the iPad 3 screen to be all that awesome, actually Jun 18 22:17:37 there've been performance issues, but lately there's a hw-accelerated emulator you can use Jun 18 22:17:40 Chainfire, yeah, it really depends on whether each pixel is usable by apps, rather than for AA Jun 18 22:17:46 ctate> I was talking about the MBP :) Jun 18 22:17:53 Chainfire: Steve says you need to drink more Kool-Aid. Jun 18 22:17:57 Chainfire: ah well then :) Jun 18 22:18:07 yeah i can believe that Jun 18 22:18:07 ipad3 high res is worthless Jun 18 22:18:13 high res display on a laptop ftw Jun 18 22:18:15 if it's /usable/ Jun 18 22:18:22 I don't want stupid pixel doubling Jun 18 22:18:28 apple's pretty much always had deep assumptions that the display is 72dpi Jun 18 22:18:41 even when it was 90 dpi, and this caused issues Jun 18 22:18:57 they've been trying to get dpi-independent rendering for ages Jun 18 22:19:06 I mean, if I can squeeze like 200 rows of text and like 4-5 editors side-by-side Jun 18 22:19:09 that's so awesome Jun 18 22:19:20 the support has been half implemented since 10.4 Jun 18 22:19:21 more than that on 2880pixels wide Jun 18 22:19:32 2880 pixels wide should get me like 6 editors side-by-side Jun 18 22:19:36 but they've clearly given up on arbitrary DPI rendering Jun 18 22:19:41 well I'm not against Apple or anything really. I'm not a fan but hey. I find it hilarious however that they will now get these resolution issues that iBla devs have been claiming they haven't had and will never have Jun 18 22:19:45 and have gone for pixel doubling instead Jun 18 22:19:47 and 1800pixels high should get me right around 200 ros of text Jun 18 22:19:48 mdijkstra: any updates? Jun 18 22:19:52 (cause exactly doubling pixels is a much better solution... :)) Jun 18 22:20:02 jfrantz: not really, looking at my NDK setup Jun 18 22:20:05 I just want usable resolution Jun 18 22:20:08 #1 reason Ihate using laptops Jun 18 22:20:10 low resolution Jun 18 22:20:18 unless I get a pc laptop with a 1920x1080 display Jun 18 22:20:36 my #1 reason I hate using laptops is because they don't generally come with 72" of screen realestate Jun 18 22:20:42 or natural keyboards Jun 18 22:20:44 or decent speakers Jun 18 22:20:50 or good mice Jun 18 22:20:54 and of course, you can add all that Jun 18 22:21:01 2880x1800 resolution is like 3 monitors worth of screen real estate Jun 18 22:21:01 but might as well just get a desktop then ... Jun 18 22:21:34 (once again, assuming it's usable resolution and not just worthless pixel doubling for anti-aliasing) Jun 18 22:21:48 pfn> I would assume you go higher DPI Jun 18 22:21:53 and not make all your windows tinier :P Jun 18 22:21:56 from what i've heard by default apps will see a smaller pixel size for the display, and it gets scaled Jun 18 22:22:00 I would make all my windows tinier Jun 18 22:22:07 but the OS provides a "density" slider in settings Jun 18 22:22:13 I honestly have no idea why this wont log, I have set android:debuggable in the mainisfest, I am using DDMS and Debug to monitor, the call is being made. What else would prevent logging? Jun 18 22:22:13 like I said, I want 6 side-by-side editors Jun 18 22:22:19 which basically makes the dots on the screen smaller Jun 18 22:22:22 I get like 3.5 editors side-by-side on 1920x1080 Jun 18 22:22:24 windows does. dunno on apple products Jun 18 22:22:41 pfn editors ? Jun 18 22:22:42 Snicers-Work2, a few log tags get swallowed up by the system Jun 18 22:22:48 Chainfire, yes, text editors, for writing code Jun 18 22:22:53 Snicers-Work2: try bumping all the way up to Log.e Jun 18 22:22:58 Snicers-Work2, e.g. SMS gets eaten up Jun 18 22:23:01 pfn> ah, not anything specific then ? :) Jun 18 22:23:09 Chainfire, no Jun 18 22:23:26 Snicers-Work2: if you set a breakpoint is it being hit? if you set a breakpoint in your onCreate() is *that* being hit? Jun 18 22:23:44 Yeah, the breakpoint is being hit. Jun 18 22:23:57 log.e had no effect. Jun 18 22:24:37 Snicers-Work2, what's your log tag Jun 18 22:25:15 I am just logging the tag as "test" Jun 18 22:25:21 try a different tag name Jun 18 22:25:24 something unique Jun 18 22:25:33 definitely a headscratcher here Jun 18 22:25:47 how are you reading logcat? Jun 18 22:25:58 post a screenshot of your eclipse window following the logcat :) Jun 18 22:26:12 in particular, try not going throught he IDE, but running "adb logcat" in a separate terminal window while you execute your app Jun 18 22:26:25 I did, I tried tempI changed it to temp234 and still no butter. Jun 18 22:27:08 I just tried Log.v("test", ...) and it appeared just fine Jun 18 22:27:41 jfrantz: no clue, only thing I can think of it's still not linking to the correct library for exceptions Jun 18 22:27:47 jfrantz: ie, /Users/andrewhsieh/ndk-andrewhsieh/src.1-with-cherrypicks//build/../gcc/gcc-4.4.3/libgcc/ Jun 18 22:27:52 but it's a bit of a long shot Jun 18 22:28:05 What could possibly prevent this logging, I have logged other projects just fine using this same method Jun 18 22:28:41 Snicers-Work2, you're probably filtering it out of your logcat view Jun 18 22:29:13 Nope, it is set to verbose with no filters on all messages. Jun 18 22:29:31 I don't believe you Jun 18 22:29:34 run this Jun 18 22:29:38 adb logcat -s test:* Jun 18 22:29:42 so try the separate terminal thing like i said ) Jun 18 22:29:49 or, adb logcat -s tempI:* Jun 18 22:29:53 mdijkstra: appreciate it. i don't think that's it because some other things have been running but thanks for your time Jun 18 22:30:02 or, just adb logcat -s test:* tempI:* temp234:* Jun 18 22:30:14 Snicers-Work2, also, make /sure/ you are running the code you think you are Jun 18 22:30:47 pfn, I am sure, as the breakpoint I put in works, getting to your other suggestion Jun 18 22:31:10 putting in the breakpoint doesn't mean it's running the code you think you're running Jun 18 22:31:23 there could easily be a desync between the code you're running and the code you're seeing in your editor Jun 18 22:31:34 e.g. you didn't deploy new code to the device Jun 18 22:32:24 Yeah, the logs show up in that just fine... Jun 18 22:32:31 then the logs show up fine Jun 18 22:32:36 then there's no problem Jun 18 22:32:41 Why not in LogCat though? Jun 18 22:32:43 you have your filters in eclipse busted or something Jun 18 22:32:45 that /is/ logcat Jun 18 22:32:48 what are you talking about Jun 18 22:32:57 Log cat in eclipse Jun 18 22:32:58 Snicers-Work2: that *is* logcat. where they aren't showing up is in Eclipse's view, right? Jun 18 22:33:05 so you blame Eclipse. Jun 18 22:33:07 Snicers-Work2, then you misconfigured eclipse Jun 18 22:33:09 somehow Jun 18 22:33:13 pfn: or Eclipse is out to lunch Jun 18 22:33:16 * pfn shrugs Jun 18 22:33:19 which has been known to happen Jun 18 22:33:25 * pfn just uses vim Jun 18 22:33:28 solves all my problems Jun 18 22:33:29 I have this problem occasionally Jun 18 22:33:37 the big hammer is to quit Eclipse and restart Jun 18 22:33:37 * pfn shrugs Jun 18 22:33:47 usually because I've selected the wrong log view Jun 18 22:33:52 or still have text entered in the search box Jun 18 22:33:56 "blah blah blah try rebooting Windows blah blah" Jun 18 22:34:18 * ctate has never used the Eclipse SDK integration, so can't help much at this point Jun 18 22:36:33 hmm, utterly confusing, but I think I will just use adb for viewing my logs for now. Jun 18 22:36:42 ctate> usually restarting everything based on Java is enough to get back to a working condition ... :) Jun 18 22:37:05 java stuff doesn't fail that often Jun 18 22:37:10 really Jun 18 22:37:41 I hardly experience any crashing not related to Java Jun 18 22:37:52 pfn, I know, but I am 99% sure my LogCat settings are correct. Jun 18 22:38:18 Chainfire: post a screenshot of the logcat window Jun 18 22:39:01 MDijkstra> does desktop Java have a logcat window ? Jun 18 22:39:17 I mean, the logcat view in eclipse Jun 18 22:39:32 ... Jun 18 22:39:59 sorry, wrong highlight Jun 18 22:41:32 http://i.imgur.com/lSba1.png Jun 18 22:41:55 That is my logcat Jun 18 22:42:09 next to my terminal, er command prompt in windows I suppose. Jun 18 22:42:26 was it completely empty the entire time? Jun 18 22:42:42 the eclipse window, I mean Jun 18 22:42:42 Yeah Jun 18 22:42:49 Nada logging to her. Jun 18 22:43:20 then eclipse is just messed up Jun 18 22:43:25 uhg Jun 18 22:43:30 I will restart it again. Jun 18 22:43:37 it should always print something Jun 18 22:43:42 reboot/reconnect your phone as well Jun 18 22:43:46 *device Jun 18 22:43:56 Using a virtual device for now. Jun 18 22:44:14 Chainfire: you same guy who made chainfire app that manages video? Jun 18 22:44:40 That seems to have worked. Jun 18 22:45:34 Indeed, probably should have done that 20 minutes ago :\. Thanks MDijkstra Jun 18 22:47:03 hmmm, this is not something i've had to do yet : how to theme the activity title? Jun 18 22:48:48 hrm, unexpected problem; my project that references two library projects can't find the .APKs for them after cleaning the projects Jun 18 22:49:06 the surprising part is that my host project isn't rebuilding those apps even though they're listed as references Jun 18 22:49:11 (this is in eclipse, for reference) Jun 18 22:51:55 Escherial: did you rebuild those missing apk projects? Jun 18 23:03:01 pfn: re null ServiceConnection passed to bindService.... Jun 18 23:04:18 Escherial: lib projects aren't built as apk's ;d Jun 18 23:07:20 doh. what ext do they use SimonVT Jun 18 23:07:24 pfn: ping Jun 18 23:07:39 XXCoder: they are linked into applications at compile time Jun 18 23:07:46 they aren't deployed to phones Jun 18 23:07:52 They're compiled as jars and compiled in the main apk Jun 18 23:08:13 aha thanks Jun 18 23:08:23 dont know much about how android handles libraries. Jun 18 23:11:45 well, "library projects" are feature of the sdk tools. Jun 18 23:11:59 yeah I used it in eclipse Jun 18 23:12:21 right now it's just a bit more processing added to classic "add jar as dependency that will be copied into final jar" Jun 18 23:12:26 I made 2 projects that use full program as library, so I have one code base for paid and free Jun 18 23:15:40 just a check : the uses-permission .INTERNET, does cover networking over local network yes? Jun 18 23:16:12 it covers using IP, so yes Jun 18 23:16:21 TheFred: any IP networking Jun 18 23:16:28 thanks zinx,just a sanity check Jun 18 23:16:58 p_l, thanks Jun 18 23:25:00 mdijkstra: are you still there? i've isolated the problem and if we don't use -Wl (we use g++ for the link pass and don't explicitly declare the location of crtbegin_dynamic), exceptions work fine. Can you take a look at our flags right now and see why it may not be working with ld? Jun 18 23:25:14 seems ms is announcing their tablet :) Jun 18 23:26:06 cool, magnesium case Jun 18 23:26:14 1.5 lbs Jun 18 23:26:49 so, the same weight as a Xoom Jun 18 23:26:54 or iPad 3 Jun 18 23:27:03 with 100% BSODs Jun 18 23:27:06 erh, 100% more Jun 18 23:27:35 * Leeds wants Nexus 7... ;) Jun 18 23:28:37 ipad3 = 1.44 lbs Jun 18 23:28:52 galaxy tab 10.1 = 1.25 lb Jun 18 23:29:06 hello all Jun 18 23:29:50 HTC Flyer - which is 7", but chunky =415g Jun 18 23:30:00 its got a keyboard in the cover :) Jun 18 23:30:01 hehe Jun 18 23:31:04 in other words, $150 cover Jun 18 23:33:32 http://live.theverge.com/microsoft-live-blog-tablet-announcement/ Jun 18 23:34:09 SimonVT: indeed...anyway, i'm not sure what's going on. the host program's crashing on a NoClassDefFound, even though the class exists in a library Jun 18 23:34:17 pfn: ping Jun 18 23:34:27 also during build of the host it warns that it can't find APKs for either of the library projects, but continues to build anyway Jun 18 23:35:35 i thought library projects built .jar files not .apks Jun 18 23:35:41 whatevs Jun 18 23:36:29 frankly, i have little idea what i'm doing :\ Jun 18 23:37:06 the strange part is that this worked flawlessly a few restarts ago; i'm not sure what ended up not getting saved with the project files that's causing it not to work now Jun 18 23:37:15 the code certainly hasn't changed; git reports two new icons and that's it Jun 18 23:38:09 i want the ability to have versioned library projects Jun 18 23:38:30 JakeWharton should just be able to release a jar Jun 18 23:39:05 I *really* want one of these : http://www.carphonewarehouse.com/news/coming-soon/samsung-galaxy-beam Jun 18 23:39:17 for development of course... :) Jun 18 23:40:19 Escherial, it looks like your facing on of those issues thats only resolved with reboot/good nights sleep... Jun 18 23:41:36 TheFred: heh, i'd normally agree with you, but this one almost seems like it was caused by that :3 Jun 18 23:41:49 oh no! Jun 18 23:41:51 i built the project, worked fine, left it alone for two weeks, popped open eclipse, and suddenly i'm in painville Jun 18 23:42:20 did you update eclipse/system/etc ? Jun 18 23:42:44 not to my knowledge, but something must've changed. i'll figure it out eventually; i was just hoping there was a quick, stupid, well-known reason for it not working Jun 18 23:43:02 could it be a problem related to git? Jun 18 23:43:12 I'm going to release a .rar.tar.gz.zip.7z Jun 18 23:43:17 but never a .jar Jun 18 23:43:57 and when someone pirates it they'll rename it with .arr Jun 18 23:44:17 pfn: ping Jun 18 23:44:25 hahaha, being in cornwall that *is* funny ctate :) Jun 18 23:45:11 Escherial: The issue is eclipse :p Jun 18 23:45:15 * TheFred checks for file suffixed with .arr_me_ansome Jun 18 23:45:15 Keep cleaning/restarting Jun 18 23:45:21 Maybe manually delete gen/bin Jun 18 23:45:48 hello Jun 18 23:46:03 anyone home? Jun 18 23:46:50 of course not; i'm at work Jun 18 23:49:52 I'm at home Jun 18 23:50:26 Playing diablo! Jun 18 23:53:10 ctate, you have voice recognition in your home alarm system? Jun 18 23:53:38 ...? Jun 18 23:53:53 i love the presumption that i have a home alarm system. Jun 18 23:54:01 most people don't, you know :) Jun 18 23:55:22 its just that when i saw ciscogee's post, and your reply, i have this mental image of someone walking into your home and calling for you, with a system punching in any recognised words into IRC for you.. Jun 18 23:55:50 lol Jun 18 23:56:09 any kernel devs ready to help? Jun 18 23:57:22 you probably want #android-root or a more dedicated forum, ciscogee Jun 18 23:57:38 this channel, like it says in the topic, is for *app* development support Jun 18 23:57:46 oic thanks Jun 19 00:02:07 wierd like 100 people in android-root and no ones talking Jun 19 00:02:11 lol Jun 19 00:03:17 they're busy rooting the plethora of android phones hitting the market Jun 19 00:03:43 600 in here and only a handful talking Jun 19 00:03:46 Just gotta stick around Jun 19 00:05:48 is it normal to be obsessed with making your apk smaller and smaller while not breaking readability or sacrificing feature? Jun 19 00:06:23 i've lately found myself trying to shave off more and more to bring apk size down and the apk isn't even that big (compared to other apps in same category) - 2.8M Jun 19 00:06:46 QubeZ: are you using proguard? Jun 19 00:06:46 heh smallest apk I released was 24k Jun 19 00:06:48 It used to be, I guess Jun 19 00:06:55 pboos: yes Jun 19 00:06:57 Now I don't care Jun 19 00:07:04 I remove unused resources and that's it Jun 19 00:07:07 QubeZ: good :) Jun 19 00:07:31 I just put my app on GetJar -- wonder if thats going to make it any more visible Jun 19 00:07:43 well on GetJar a few days ago, it just got approved today Jun 19 00:10:10 . Jun 19 00:15:41 test Jun 19 00:16:06 Test… Pass… Jun 19 00:16:10 thanks Jun 19 00:17:43 There's an Epic 4g, Galaxy S2 on eBay...says the ESN is bad...$80 with shipping...maybe I'll buy it as a test phone Jun 19 00:24:30 I've put together a little toolbox page for android development http://androidweekly.net/toolbox The list is probably very incomplete. Any suggestions? Any libs that are totally missing? Jun 19 00:26:31 hello. could you help me with this question? http://stackoverflow.com/questions/11076614/listview-repeating-selection#comment14500690_11076614 Jun 19 00:29:15 Views are reused Jun 19 00:29:23 seems decent http://1saleaday.com/ Jun 19 00:29:42 You have to set the background color for each row in your adapters getView Jun 19 00:30:45 cyberrog: What Adapter are you using? Jun 19 00:30:56 sebastiandeutsch, CursorAdapter Jun 19 00:31:30 SimonVT, that's the problem. IDK how to solve that issue. Since the views are recycled, other rows are selected. Jun 19 00:31:52 SimonVT, I can't override getView() since I'm using a CursorAdapter. Jun 19 00:32:01 Then you override bindView Jun 19 00:32:04 And set it there Jun 19 00:32:10 cyberrog: Create your own adapter class and extend from CursorAdapter, then override bindView Jun 19 00:32:36 SimonVT, sebastiandeutsch I've tried doing this inside bindView too, but it keeps with the problem Jun 19 00:32:46 cyberrog: int position = cursor.getPosition(); and then create an if and an else Jun 19 00:32:52 Hey guys, how can I wire up ActionBarSherlock's icon tap event? Jun 19 00:33:04 cyberrog: You have to set the desired background color for ALL the views Jun 19 00:33:20 SimonVT, what u mean? Jun 19 00:33:32 I'm gonna provide the code when setting inside bindView Jun 19 00:33:33 cyberrog: did you have an else case in your adapter? Jun 19 00:33:35 if (selected) view.setBackgroundColor(0xff333333) else view.setBackgroundColor(0) Jun 19 00:34:01 But the problem is that it recycles the view, and other rows are set to selected too Jun 19 00:34:42 You can't just exclusively set the color of the selected view Jun 19 00:34:58 You have to set the color even if they aren't selected Jun 19 00:35:42 Chronax: ActionBarSherlock is just a backport of the native actionbar. So the same way you do it there Jun 19 00:35:56 SimonVT, I cant get ur point of view. Jun 19 00:35:59 sorry Jun 19 00:36:15 oh well Jun 19 00:36:20 back to diablo Jun 19 00:36:27 cyberrog: can you pastie your bindView method? Jun 19 00:36:32 ok Jun 19 00:36:50 just a sec Jun 19 00:38:18 SimonVT: Any pointers on how to do it there? Google's not helping. Jun 19 00:39:35 sebastiandeutsch, here is http://paste.ubuntu.com/1048365/ Jun 19 00:40:18 sebastiandeutsch, the createView() method creates each row. by getting the values from the cursor and setting it to the current view. But it think it doesnt matter in this situation Jun 19 00:40:58 sebastiandeutsch, so.. by clicking a view, I have a selected view for each 8 views. So it repeats 8 by 8. Jun 19 00:41:24 Chronax: ActionBar.setDisplayShowHomeAsUpEnabled Jun 19 00:41:33 sebastiandeutsch, do u want my entire CursorAdapter class code? Jun 19 00:41:41 Catch it in onOptionsItemSelected with id android.R.id.home Jun 19 00:41:46 cyberrog: no should be fine Jun 19 00:42:25 Thanks, SimonVT! Jun 19 00:43:07 sebastiandeutsch: you will have to keep track of which views items are selected. like a set of ids. Jun 19 00:43:42 cyberrog: I would do it like this: http://paste.ubuntu.com/1048369/ (untested) Jun 19 00:44:17 SimonVT: Is there a way for me to manually tie an event to that tap event? Jun 19 00:44:19 sebastiandeutsch, cyberrog: selectedPosition will have to be set in the onclicklistener Jun 19 00:44:28 sebastiandeutsch, lemme test. Jun 19 00:44:45 sebastiandeutsch, cyberrog: and in the onclicklistener you might want to call notifyDataSetChanged, or update the color in there too (refactor the method out) Jun 19 00:45:11 pboos: yeah Jun 19 00:45:23 sebastiandeutsch: bist du zufaelligerweise deutscher? :) Jun 19 00:45:23 sebastiandeutsch, pboos wait. too much information. LOL lemme test and have a better idea of what's happening Jun 19 00:46:05 cyberrog: it will say that it does not know selectedPostion, you need to get that from onClick Jun 19 00:46:16 pboos: ja bin ich Jun 19 00:46:30 sebastiandeutsch: dann bist du ziemlich lange wach :D morgens 3 uhr? ;-) Jun 19 00:47:02 pboos: hehe ja, natural born Nachteule ;-) und selbst Jun 19 00:47:09 sebastiandeutsch: gut zu sehen, dass andere deutschsprechende hier sind :) kann man die anderen verwirren :D Jun 19 00:47:13 pboos, but how can I set the selectedPosition inside the onClick method, since it provides me only a view parameter? Jun 19 00:47:46 cyberrog: use the cursor ;-) but make the cursor parameter final to access it Jun 19 00:47:50 ctate, ? Jun 19 00:48:18 * pfn wanders off for the day Jun 19 00:48:37 cyberrog: i guess your cursor will somehow provide you with an ID that you can store.. selectedPosition should probably be selectedId :) and you need to create that field in your cursoradapter. Jun 19 00:48:45 cyberrog: http://stackoverflow.com/questions/10881608/changing-list-view-selected-row-color Jun 19 00:48:46 sebastiandeutsch: bin schweizer, aber wohne in Japan. Jun 19 00:49:50 anyone know of an easy way to track memory leaks? a coworkers view somehow does not get collected. any way to find the references that are kept that lead it to have a root reference? Jun 19 00:50:15 cyberrog: here is another example with a cursor adapter Jun 19 00:50:17 cyberrog: http://stackoverflow.com/questions/9690439/creating-custom-simple-cursor-adapter Jun 19 00:50:21 pboos wait.. My cursor will provide me an ID. An ID of what, any value from database? Jun 19 00:50:52 cyberrog: anything you identify your record with. the id from the db would be the best, yes. Jun 19 00:51:00 got it Jun 19 00:56:43 sebastiandeutsch, pboos something like this? http://paste.ubuntu.com/1048382/ Jun 19 00:58:21 cyberrog: Why not onListItemClick Jun 19 00:59:49 sebastiandeutsch, it's not working. when it reaches if (mSelectedPosition == contactNumber), the mSelectedPosition is null. And inside the onClick method, when I try to get a value from cursor, the cursor cant be resolved Jun 19 01:01:50 cyberrog: pls paste your code again Jun 19 01:02:10 sebastiandeutsch, here it is http://paste.ubuntu.com/1048382/ Jun 19 01:02:45 sebastiandeutsch, when the code reaches the line 14, mSelectedPosition is null, because it hasnt been set inside the onClick method. Jun 19 01:03:18 sorry.. was gone shortly Jun 19 01:03:43 cyberrog: do not do == with strings. use if(contactNumber.equals(mSelectedPosition)) Jun 19 01:04:10 pboos ok.. fixed. but it's not the problem. =( Jun 19 01:05:29 cyberrog: inside onClick try calling notifyDataSetChanged(0) Jun 19 01:05:36 (without the 0 inside :D) Jun 19 01:07:42 cyberrog: and maybe a little nicer without notifyDataSetChanged: http://paste.ubuntu.com/1048394/ Jun 19 01:10:02 sebastiandeutsch: about the ListItemClickListener that might be a little difficult for now :D because all you get is the position, but in bindView you do not know the position, right? you would have to setTag on the view to set the id from the cursor and than read that tag in the itemclicklistener. Jun 19 01:10:09 String contactNumber = cursor.getString(cursor.getColumnIndex("contact_number")); Jun 19 01:10:15 Make that final and move it before the click listener Jun 19 01:10:27 Then use that string instead Jun 19 01:10:32 Also, you don't compare strings with == Jun 19 01:10:34 Use .equals Jun 19 01:10:58 ups.. forgot to correct that on in my paste :D Jun 19 01:10:59 SimonVT, dont worry. It's already moved before I set it to the adapter Jun 19 01:11:16 (From the time the click listener is set, til the view is clicked, the cursor position might have moved) Jun 19 01:11:27 cyberrog: pboos: I would advise not to take the click in th adapter. Create a setter for mSelectedIndex and call the setter from the ListView. Jun 19 01:12:20 pboos, BTW, as u can see in line 13 of ur last paste, u use the 'v', as the view, which is not availabe outside onClick. So I must use the bindView view variable. Jun 19 01:13:19 cyberrog: true.. it was pure copy paste.. did not put it in the editor.. just to give you some example.. and as said before (forgot to fix), use .equals instead of ==. Jun 19 01:13:57 sebastiandeuts-1, that's what I was doing as u can see in the question. But it seemed more correct doing that inside the adapter. I think I'm wrong Jun 19 01:14:45 cyberrog: it is better to do it outside. but a little bit trickier ;-) Jun 19 01:15:31 pboos, sorry, but when the code reaches the line 19, mSelectedPosition is null, since it's set inside onClick method, and it's not reached until I click the view. Very odd. I dont any idea. Jun 19 01:15:59 How do you initialize mSelectedPosition? Jun 19 01:16:09 sebastiandeuts-1, wait. my mistake. Jun 19 01:16:40 make line 19 like this: if (contactNumber.equals(mSelectedPosition)) Jun 19 01:16:50 that way even if mSelectedPosition is null, it will work Jun 19 01:17:31 just as a tip. if you do equals on strings, NEVER DO myVar.equals("TEST"), always do "TEST".equals(myVar). That way you don't have to worry about nullpointerexceptions. Jun 19 01:17:44 on left side always the one you KNOW is NEVER null Jun 19 01:18:16 pboos, sebastiandeuts-1 it's still recycling the view. When I click the first row, and I scroll to the end of the list, when I return to the top, the 8th view is selected instead of the 1st. Jun 19 01:19:00 sebastiandeuts-1, pboos and If I select other views and scroll, it becomes a complete mess. =/ Jun 19 01:19:38 cyberrog: okay, if you select other rows, that is true.. maybe you should go with notifyDataSetChanged then.. Jun 19 01:20:02 pboos and remove updateBackground() from onClick() ? Jun 19 01:21:33 cyberrog: like this: https://gist.github.com/2951782 Jun 19 01:23:15 pboos, LOL this way I'm unable to select other rows right? If I click another row, it will unselect the current selected row and selected the row I just clicked. Jun 19 01:23:59 pboos, notifyDataChanged() will refresh it self. I'm trying to make a multiple selection. =) Jun 19 01:26:39 cyberrog: ahh. you want multiple selection? did not know that Jun 19 01:26:50 one sec.. will update the gist Jun 19 01:26:55 pboos, sorry for not mentioning that Jun 19 01:27:04 pfn: re passing a null ServiceConnection to bindService() Jun 19 01:29:05 pfn: "Resolution: FutureRelease" :) Jun 19 01:29:49 cyberrog: Then you have not only to maintain a mSelectedIndex but also a complete set of selectedIndexes Jun 19 01:29:58 cyberrog: https://gist.github.com/2951782 Jun 19 01:30:27 today, it'll NPE slightly mysteriously at some point (in app-side framework code) when it tries to call the callback. at some point in the future it'll instead throw an IllegalArgumentException back into app code when you pass null; a much more useful way to fail it. Jun 19 01:30:33 cyberrog: that one is untested, wrote the code only in there. so there might be errors :D but it gives you the idea. Jun 19 01:33:30 sebastiandeuts-1, pboos lemme test Jun 19 01:35:14 pboos, WORKS LIKE A CHARM! Thanks for ur help. I was really annoyed with this problem. Jun 19 01:35:29 pboos If you post ur answer on my question on SO it would be great. Jun 19 01:35:40 what is the link on SO? Jun 19 01:36:33 pboos, http://stackoverflow.com/questions/11076614/listview-repeating-selection#comment14500690_11076614 Jun 19 01:37:35 pboos, sebastiandeuts-1 thanks a lot for ut atention. You were really helpfull. Do u have G+ or twitter so I can follow? Jun 19 01:38:49 pboos, found on ur site. =) Jun 19 01:39:07 cyberrog: you're welcome. feel free to subscribe to android weekly http://androidweekly.net/ it's a dev newsletter me and some friends are doing Jun 19 01:40:44 sebastiandeuts-1, subscribed. The idea of that site is aweesome! Congratulations. BTW that android beside the email field looks like Terrence and Philips. LOL Jun 19 01:41:53 sebastiandeuts-1, shared on twitter and G+. =) Jun 19 01:42:08 cyberrog: hehe: http://img.ly/d9vk cool thx Jun 19 01:42:48 sebastiandeuts-1, also following on G+ Jun 19 01:44:27 cyberrog: you are welcome :) and posted the answer on SO Jun 19 01:44:52 sebastiandeuts-1, pboos following u both on twitter and G+. Jun 19 01:51:35 I am setting up a ContentProvider backed by a SQLite DB. The schema has join tables, do these join tables need their own ContentProvider implementations? Jun 19 02:53:51 I want to overlay text on an image, but have the text aligned with the bottom right corner of the image - so the text is drawn over the image, the bottom of the text touches the bottom of the image (minus padding), and the right edge of the text touches the right side of the image (minus padding). How do I set up the TextView/layout to do this? Jun 19 02:55:02 I'd do it with a FrameLayout Jun 19 02:56:53 Is putting an override on onCreateOptionsMenu and onOptionsItemSelected all that is necessary to have a menu on the app? Jun 19 02:57:09 Something has made all my menus disappear. Jun 19 02:57:52 It was Colonel Mustard, in the /data/ folder, with a lack of permissions... or something. Jun 19 02:58:07 lol ... that's quite wity Jun 19 02:59:19 Leeds, with a FrameLayout, how do I handle the overlap? Nest a RelativeLayout in one of the frames? Jun 19 02:59:42 But, if Colonel Mustard lacked permissions, how did he make your menus disappear? Jun 19 02:59:46 *mind, blown* **** ENDING LOGGING AT Tue Jun 19 02:59:58 2012