**** BEGIN LOGGING AT Tue May 28 03:00:00 2013 May 28 03:00:22 don't eat too much Dim Sum it will make you code VB May 28 03:17:17 what do I eat to gain skillz in obj-c ? May 28 03:17:46 heh May 28 03:17:56 StingRay_ wrong channel :D #iphonedev May 28 03:18:03 lol May 28 03:18:39 "hi, I'm told Dim Sum will give me VB skillz, whats the food for obj-c?" May 28 03:18:46 I really want to too May 28 03:24:26 hey guys! May 28 03:24:36 quick question; a bit confused with the new navigation drawer UI pattern. May 28 03:25:53 evanhindra don't worry, google probably is too May 28 03:26:27 http://developer.android.com/design/media/navigation_drawer_layout.png according to that, the drawer itself is 320pp, with 64pp margin… May 28 03:26:52 but they're stating that the metric is suppose to be 360dp? that won't add up to 360 ;P. May 28 03:27:33 g00s: word. that's some weird math they've got. Unless I'm the dumbass. May 28 03:27:45 a drawer does not have to be xxx dp May 28 03:28:37 StingRay_: I know; but I'm just creating stencils for my team. We're using Google's Illustrator UI stencil; so we're basing it on the 360 rythm (as suggested by Google?) May 28 03:28:40 ui should be driven from design that is driven from context, practicality and use May 28 03:28:52 not some half blind google spec May 28 03:29:35 hahahaha, good point. May 28 03:29:46 that 360 as is irrelevant as how many fingers am i holding up now May 28 03:29:50 :) May 28 03:29:54 I'm being insanely pedantic, obviously. May 28 03:30:05 you not looking at design May 28 03:30:15 pedantic is good May 28 03:30:30 tech programmer spec that overides what should be design choices is bad May 28 03:31:10 I would love to pull a drawer to the side and it stretch 360dp only to access a list of 60dp width icons vertically May 28 03:31:16 oh wait… no I wouldn't May 28 03:31:18 :) May 28 03:32:56 hahaha, having said that, I'm pretty surprised (and chuffed) that Google's doin' the navigation drawer ;). At least a step ahead of Apple . May 28 03:33:45 too bad that most will use out of blind sheep syndrome and not from design/requirement May 28 03:33:47 :) May 28 03:34:18 StingRay_: you mean people like me? extreme pedantics and OCD? :D May 28 03:34:30 dunno May 28 03:34:41 I'm just in a bad mood :) May 28 03:35:00 StingRay_ go run a mile or 2 May 28 03:35:11 btw, exercise will keep the bad habits away May 28 03:35:25 runner's high FTW ! May 28 03:35:26 g00s: wtf??? I said "bad mood" not "suicidal" !!! May 28 03:35:37 fuck, even dogs get runner's high May 28 03:35:38 LOL! May 28 03:36:18 neways it's 4:35am here, tis cold, dark, and I'm working so prob not best idea May 28 03:36:25 endocannabinoids FTW ! May 28 03:36:38 who what?1 May 28 03:36:46 StingRay_ oh yeah, maybe too late May 28 03:37:43 ok, i have textual set to pounce pfn if he shows up - lets see if this works. the #textual guys are all poking fun at colloquy; this thing is buggy as shit too May 28 03:40:54 textual has had.... like maybe 1 update since I bought it 1yr ago May 28 03:41:03 although colloquy seemed to have gone years May 28 03:41:09 I liked textual of all the mac clients May 28 03:41:13 ron_frown what are you using now ? May 28 03:41:28 adiirc May 28 03:41:32 upgraded to a pc May 28 03:41:43 haha May 28 03:41:51 it keep crashing when i quit May 28 03:42:13 a lot I like about macs, but sadly I think they just put everything into thei i'devices May 28 03:42:16 i'm going to try weechat when i get a chance to compile it May 28 03:42:18 and let their other shit kinda just go stale May 28 03:43:47 I got no need to develop ios May 28 03:43:53 so macs are kinda pointless May 28 03:44:10 honestly I can say I'm to the point if I had something even remotely close to vs.net for .net shit in linux May 28 03:45:36 I'd walk away from windows too May 28 03:46:06 all the majors players are pushing into drm drm drm drm drm and lock down lock down lockdown May 28 03:46:19 let me tell you what to can/cant install on your own machine May 28 03:49:17 one thing nice about the apache guys; they keep their stuff compat with ancient versions of java , like android *caugh* caugh* May 28 03:49:25 haha May 28 03:49:33 i was looking at vert.x instead of mina, but it requires java 7 May 28 03:49:39 g00s... you trying to ping jake? May 28 03:49:41 probably b/s of nio.2 May 28 03:49:54 ron_frown lol wut, heh May 28 03:50:04 dont be talking shit about android or java May 28 03:50:12 its too easy :) May 28 03:50:18 I know how you like to get a rise out of people May 28 03:50:35 I gotta say I'm surprised how many times java has attempted things and completely fucked them up May 28 03:50:38 everybody, calm down May 28 03:50:38 dates May 28 03:50:52 oh they are fixing that in java 8 May 28 03:50:59 which is going to be out when May 28 03:51:01 ? May 28 03:51:06 its pretty much the same as Joda api May 28 03:51:07 precisely May 28 03:51:33 thats what I've heard May 28 03:51:42 I like that they are finally doing things with java 8 May 28 03:51:43 java 8 in 2014 :| May 28 03:51:51 but I'm skeptical oracle can achieve anything May 28 03:52:14 i hope they dont de-scope again because they are getting raped with security issues which are draining their resources May 28 03:52:37 then again, i dont use java outside android so i DGAF May 28 03:52:49 dgaf May 28 03:53:00 ? May 28 03:53:08 dont give a fff May 28 03:53:50 dates are the worst in any language May 28 03:53:50 the only jvm language i find interesting is clojure May 28 03:53:57 mainly because some idiots invented timezones May 28 03:54:08 haha May 28 03:54:15 I've never had a prob with them in .net May 28 03:54:20 and mix dates and databases .... May 28 03:54:37 and so far as I've known since .net 1.0 in 2000 they havent made any significant changes in .net dates May 28 03:54:48 they've added culturalization shti May 28 03:54:50 thats about it May 28 03:55:35 was paddingStart and paddingEnd introduced after API 14? May 28 03:56:06 the docs tell you that May 28 03:56:29 unix timestamps have worked well since about 1970 too :p May 28 03:56:29 they don't say anything, at least not here: http://developer.android.com/reference/android/view/View.html#attr_android:paddingStart May 28 03:57:10 erm I beg to differ May 28 03:57:10 http://developer.android.com/reference/android/R.attr.html#padding May 28 03:57:39 ok you may have to click the reference link May 28 03:57:45 but they do tell you :) May 28 03:58:05 ohhhh now i see it May 28 03:58:09 on the top left May 28 03:58:12 top right May 28 03:58:14 sorry, my bad May 28 03:58:50 well no May 28 03:58:52 the top right May 28 03:59:02 unless you looking at it in a mirror May 28 03:59:07 but then how are you reading it ? May 28 03:59:10 …i did correct it in the message after May 28 03:59:12 you got skillz May 28 03:59:13 <_< May 28 04:00:01 paddingStart "Added in API level 17" May 28 04:00:12 top right May 28 04:00:21 i said it right after I said "top left" May 28 04:00:26 ah yeah May 28 04:00:37 me didnt see you type dat :) May 28 04:00:48 but padding is api 1 May 28 04:01:14 hmm, so use both or don't use paddingStart/End unless doing RTL as well? May 28 04:01:28 anyway, that's not the big issue May 28 04:01:41 the big issue is that one of my buttons is disappearing on Nexus S but not on Nexus 4 May 28 04:01:52 ohhh nvm, May 28 04:01:57 looks like i found the problem May 28 04:06:25 hi all May 28 04:06:32 anybody is using Intellij ultimate? May 28 04:06:55 anybody knows if it's possible to put an EditText in the split action bar? May 28 04:07:00 and if it's even a good idea May 28 04:07:51 nvm May 28 04:08:02 don't know why i'm thinking like this today >_< May 28 04:16:17 StingRay_ http://colourco.de/ May 28 04:18:00 afzal it is possible but the actionbar won't consider custom views in it as part of its measuring in showing/hiding action menu items May 28 04:19:18 hi g00s May 28 04:20:45 hi Solupus May 28 04:20:58 it is I Trinsta May 28 04:22:51 lasserix, yeah I'm reading the Mms app layout xml to see how they've done it May 28 04:22:53 thanks May 28 04:24:44 g00s, how have the projects been doing? May 28 04:37:52 is this a bug in Android Studio. Warns me that smoothScrollToPosition is from API level 8 when the minimum sdk is set to API level 8 May 28 04:38:24 I've seen this occur for everything May 28 04:38:39 rebuild and see if it persists May 28 04:39:01 it does May 28 04:39:13 it disappears as soon as i change min sdk to 9 May 28 04:39:32 but i just checked, the call was introduced in API level 8 (which Android Studio knows) May 28 04:39:53 well I think if you do "inspect code" May 28 04:39:57 and then entire project May 28 04:40:02 you may find you have errors May 28 04:41:33 why do you say that? It builds just fine May 28 04:41:56 just telling you what I think May 28 04:42:12 from my limited experience it can get a bit confused sometimes May 28 04:42:30 and I have a warning for dqlite close() added in api 1 May 28 04:42:30 hmm yeah, lint just gave me 315 items May 28 04:42:31 <_< May 28 04:42:33 damn May 28 04:42:45 sqlite * May 28 04:43:22 I think lib projects were the cause of my probs May 28 04:43:24 cant remember May 28 04:43:29 too long ago May 28 04:43:34 many more reasons why you should wait for AS's 2nd birthday :) May 28 04:43:46 nah, i'll just limit min sdk to 11 May 28 04:46:19 Solupus: better getting used to it early I think May 28 04:46:43 oh wow, i think it reads Weight="1.0" as 0 May 28 04:46:59 actually, nvm, but very confusing lint errors May 28 04:47:19 best is the "True" "true" ones May 28 04:47:31 not sure wtf went on there for me May 28 04:47:35 haha May 28 04:47:38 StingRay_, I don't plan on changing until the next 10 "f you eclipses" happens. for some reason those outbursts havent happened as frequently May 28 05:31:35 Afzal: ive notice the same problem with target api warnings May 28 06:09:37 hi guys. just starting on android development and have some dummy questions. i have a tabbed app with a couple fragments. i need to initialize some stuff in the UI of those fragments, but it's stuff that should really be handled in the activity's code May 28 06:09:58 or.. maybe not, maybe i'm doing it wrong. May 28 06:10:49 but i need variables to be stored in the activity which coincide with what the fragment displays, and since fragments shouldn't have to know about the activity, it seems that the initialization would need to be done there May 28 06:11:24 i'm having trouble finding a function where i can drop this code in the activity which is called after the fragment is inflated May 28 06:12:54 i havent played with fragments but couldn't you pass it through the constructor? May 28 06:14:04 i suppose i could. it's a little weird to have only the initialization code in the fragment and everything else in the activity though May 28 06:14:27 JaceP: your wanting to pass info to already established fragment ? or the fragment has that info when it starts ? May 28 06:15:41 JaceP, not really :/ May 28 06:15:41 i have a list and some other things on the fragment. immediately after the fragment being created i want the activity to initialize/update that list. May 28 06:15:45 happens to me all the time May 28 06:16:04 thats a bit odd May 28 06:16:12 is it? May 28 06:16:16 the fragment containing the list should maintain it's own data May 28 06:16:31 sure you can get your activity to say, myFragment.updateList() May 28 06:16:44 but the idea of fragments is interchange and dependance May 28 06:17:07 so not all the good and almost making the advantages redundant to use them as just a simple view May 28 06:17:37 but hey, disclaimer, I'm an designer/vfx artist…. so in this I could be mistaken ;) May 28 06:17:46 no i understand what you mean May 28 06:18:06 i'm not new to software by a long shot but i am new to android, so the practice here is a little different than i'm used to May 28 06:18:08 don't pass anything to a fragment through its constructor May 28 06:18:20 fragments require a no-args constructor May 28 06:18:47 can use extra/Bundle with setArgs though right ? May 28 06:18:53 correct May 28 06:19:37 typically a static method called newInstance is used which takes arguments, creates the bundle and sets its values, creates the fragment and sets as arguments, and returns the fragment instance is used May 28 06:19:39 i'm just a little confused by this. i have a few things that should be used/shared between a few fragments. so where does that data get stored? i would assume in the activity that binds those fragments together May 28 06:19:56 yes, or in a singleton May 28 06:20:16 alright, but initializing that data and initialziing the fragment's UI go hand in hand May 28 06:21:01 sort of, the same data is used but those things take place at very different times May 28 06:21:14 mm ok so i should be separating it May 28 06:21:26 as i've read (correct me if i'm wrong) the fragments should not have to know anything about the activity May 28 06:21:44 eh, it depends May 28 06:21:50 I think thats a design / fuction choice May 28 06:21:56 rather than an absolute May 28 06:21:56 so, isn't it then bad practice for the fragment's init functions to go grab data from the activity? May 28 06:21:58 Google likes to recommend this pattern where the activity implements an interface May 28 06:24:03 interesting May 28 06:24:18 the sample for listing contacts is a few thousands lines of code and includes a full image fetching and caching library May 28 06:24:42 my options are basically 1) have the activity handle the fragment's UI, or 2) let the fragment access data from the activity May 28 06:25:03 what kind of data? May 28 06:25:06 i don't believe i've seen that, could you link me? May 28 06:25:18 1 ) is not even possible is it ? May 28 06:25:27 http://developer.android.com/training/contacts-provider/retrieve-names.html May 28 06:25:40 thank you, i'll take a peek at that May 28 06:25:57 (that's totally unrelated to your problem, just a random observation) May 28 06:26:27 hi everyone I am writingbytes to a outputstream line by line and is seems slow would it be any faster to send all the lines in one write rather than line by line? May 28 06:26:43 t4nk902: wrap the output stream in a BufferedOutputStream May 28 06:26:50 there was a post on G+ about changing the whole list item background when selected, anyone have a link to that by any chance? May 28 06:27:28 it does that already May 28 06:27:32 thx jake ill try that May 28 06:27:34 unless you mean the activated state May 28 06:27:52 i think that might be what I mean May 28 06:28:11 the shakespeare sample in the SDK samples shows it May 28 06:28:29 i dunno why but I'm having some trouble make my custom list item selectable. I've never had trouble doing that before :/ May 28 06:28:33 thanks, I'll check it out May 28 06:37:23 anybody know offhand, the max # of threads libraries like volley & co open up to do blocking socket i/o ? i wonder if something like n * #cores is appropriate , n somewhere around 5 May 28 06:40:18 4 May 28 06:40:30 JakeWharton thanks May 28 06:54:21 i just heard an eminem song that i had only heard on the radio before. it's a lot different when it's not censored May 28 06:54:23 JakeWharton, thank you, this has cleared up the issue for me. all good now. May 28 07:00:59 hey canadiancow , how is your AS foray going ? May 28 07:01:56 AS ? May 28 07:01:57 oh May 28 07:01:59 i gave up May 28 07:02:04 a bunch of people on my team are doing it May 28 07:02:08 im waiting for them to work out some kinks May 28 07:02:34 i'm spending 50/50 between eclipse & plain idea; i like both May 28 07:02:39 hah May 28 07:02:42 anyway im going to bed May 28 07:02:43 gnight May 28 07:02:47 gnight May 28 07:03:29 g00s: i'm now fully on AS and gradle :) May 28 07:03:41 :O May 28 07:03:45 just switched over today May 28 07:04:00 Jc_Dev: you build dep with external lib projects ? May 28 07:04:17 yep, that was the only snag, but i got it going (.so files) May 28 07:04:21 i'm not adventurous enough to try AS now; i'm already up to my eyeballs in other stuff May 28 07:06:12 i had only been on eclipse for about a week so hard to say which i like better, but it certainly feels cleaner to on gradle at least, and AS seems to be smarter about somethings, navigation and intellisense are very good May 28 07:07:05 AS has a new project structure, and although it supports the eclipse structure i re-made my project in a new AS project so i'm in the new structure now, i like it better too May 28 07:10:04 i check it out in about a year May 28 07:10:23 during next i/o :) May 28 07:10:26 haha May 28 07:11:40 but if i keep using the latest stable idea, i guess i'll wind up with bits anyhow ... May 28 07:12:10 as they work on the android plugin May 28 07:14:44 hey romans, countrymen and other friends May 28 07:16:22 wassap May 28 07:18:16 I;m gonna watch a bunch of videos about android development by thenewboston in youtube May 28 07:18:30 is it any useful? May 28 07:20:15 anyhone? May 28 07:23:40 romainguy … should it be possible to use ExpandableListView with CAB ? i can't find any examples ! May 28 07:29:09 Hi all, does somebody know a good tutorial for a xmlparser? May 28 07:30:20 how can I put this unicode character to resource? http://www.fileformat.info/info/unicode/char/1f4e1/index.htm I tried the charcter itself, &#asdf; version, \uasdf\uasdf version, but android always crashes :( May 28 07:31:50 crashes with what ? May 28 07:31:58 crashes isn't very descriptive May 28 07:32:28 W/dalvikvm( 8797): JNI WARNING: input is not valid Modified UTF-8: illegal start byte 0xf0 May 28 07:32:28 W/dalvikvm( 8797): string: '📡' May 28 07:32:28 W/dalvikvm( 8797): in Landroid/content/res/StringBlock;.nativeGetString:(II)Ljava/lang/String; (NewStringUTF) May 28 07:32:35 and dalvikvm crashes after that May 28 07:33:01 E/dalvikvm( 8797): VM aborting May 28 07:33:01 F/libc ( 8797): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 8797 (cz.ipex.ipexcti) May 28 07:33:30 but putting it to code as string works... but I need it in resource. May 28 07:44:14 FrancescoV: http://www.mkyong.com/java/how-to-read-xml-file-in-java-sax-parser/ May 28 07:45:31 bankai_: do you know if a sawparser is better then a XmlPullParser? May 28 07:47:49 hehe, 2nd hit for googline "expandablelistview choice_mode_multiple" is "Android - ExpandableListView is driving me insane. " May 28 07:48:25 depends, look at this - http://www.developer.com/ws/android/development-tools/Android-XML-Parser-Performance-3824221-2.htm May 28 07:48:41 g00s: why wouldn't it work? May 28 07:49:16 romainguy ok; not sure how to go about adjusting CAB actions with ExpandableListView in choice_mode_multiple May 28 07:49:35 but if it works as well as regular listview, i guess i should figure it out eventually May 28 07:51:31 CHOICE_MODE_MULTIPLE_MODAL rather May 28 07:51:39 k, nm May 28 07:51:43 * g00s keeps plugging away May 28 07:51:46 thx May 28 07:54:36 Unfortunately these days I mostly write C++/OpenGL code May 28 07:55:13 romainguy don't tell me you forgot all about ListView ! May 28 07:55:29 I wish May 28 07:55:34 that was deliberate, right :D May 28 07:55:37 Besides, OpenGL is a lot worse May 28 07:57:14 which is why everyone pushes it to be the way to make GUIs :P May 28 07:58:26 weird, git is telling me "nothing to commit, working directory clean" but right above it it says your branch is ahead by 4 commits, what the heck May 28 07:59:17 local vs. origin? May 28 08:00:14 i don't have anything committed locally that isn't pushed to the server May 28 08:00:32 then no idea May 28 08:00:44 yeah, i think it's confused, i'll just re-clone May 28 08:00:51 p_l this was pretty cool weston/waland demo on rPi http://hardware.slashdot.org/story/13/05/27/227242/vastly-improved-raspberry-pi-performance-with-wayland May 28 08:01:00 i know you like X tho :) May 28 08:01:27 but i'm pretty amazed what they did with that May 28 08:01:37 g00s: yeah, I don't exactly fancy every single application needing direct access to I/O memory May 28 08:01:59 g00s: GL is, iirc, the only way to get any performance on RPi for display :> May 28 08:02:15 (unless you want to play game console dev) May 28 08:02:48 p_l: No, everyone hides GL under another API May 28 08:03:23 romainguy: Wayland exposes close-to-raw GL context, iirc May 28 08:03:47 And btw Wayland looks a lot like SurfaceFlinger ^^ May 28 08:04:01 romainguy: yes, it does look like something designed for embedded rather than desktop May 28 08:04:33 or like Vista's display model with worse approach to API May 28 08:05:17 (vista, not 7, because Vista took shortcuts to speed release and didn't have all the stuff 7 got) May 28 08:38:58 hey, how do I access my Application instance from a BroadcastReceiver? May 28 08:41:59 saschagehlich: using the context you get in onReceive May 28 08:42:29 appel1: but context only has getApplicationContext() but no getApplication() May 28 08:44:23 saschagehlich: misread your question, sorry. May 28 09:02:49 hello, I have a bitmap image in the form of a stream of ints, each int representing one ARGB pixel. In android, how would one convert this int stream into an encoded jpeg without loading all of it into a Bitmap? does anybody have an idea? May 28 09:03:29 oh, i forgot to mention, this stream of ints is in a file May 28 09:03:45 i think you can create a bitmap from a byte array? May 28 09:03:53 oh May 28 09:03:59 sry misread the question May 28 09:04:03 lasserix: yes, but that means that i have to load it into memory May 28 09:05:35 the best idea i have come up with until now is this: i slap a .bmp header in front of the int[] and then transcode a .bmp into a jpeg. does anybody have a better idea? May 28 09:10:52 rox: why a jpeg ? May 28 09:11:38 mb based image compression and the other dark magic Chroma Luma thing is… not nice May 28 09:18:29 I still didn't figure out my unicode problem... http://stackoverflow.com/questions/16786739/how-to-use-unicode-in-android-resource any idea? May 28 10:03:26 what is the minimum change needed to provide a developer snapshot APK to users that does not conflict with the official package name? May 28 10:07:42 Hey, is that new Nokia Lumia able to feel your fingers before you touch the screen? If that's the case, is it safe to say that CSS hover states now exist on mobile? May 28 10:08:26 boytoy: it's not the first phone to do so (some android phone had it first), and it's not for hover afaik May 28 10:08:53 cool May 28 10:08:57 nah but cant it be used for hover? May 28 10:09:01 but for fixing the "you can't use this in gloves, enjoy your frostbite you prole who can't afford 100x markup for iPhone-branded thin gloves) May 28 10:09:31 for cold environments, wouldn't you just use your gaze :) May 28 10:09:40 I'm currently programming a View that draws a coordinate system and later some geometric shapes and images in it. I's using the onDraw(Canvas) callback so far. I'd like to have basic features like pan and zoom as in Google maps. I found the MapView class, but it's only for Google Maps and not for arbitrary content. Any idea what class I could base on or are there any listeners for that already? I've not really an idea where to start my sea May 28 10:09:40 rch in the big Android jungle. May 28 10:09:56 g00s: gaze to clouded, phone can't decipher vodka May 28 10:10:18 if you have beer goggles one … may not work May 28 10:10:22 *on May 28 10:14:07 g00s: alternative to save'as May 28 10:14:19 Got a little problem with my github. If i try to init the pac-man branch, i get an error, that the manifest 'default.xml' aint available, but if i try to init the hellybean branch, everything works. but both got a default.xml: https://github.com/Kiina/android May 28 10:14:23 cmd+c then cmd+v May 28 10:14:28 simples May 28 10:15:00 re: AS/IJ btw May 28 10:15:32 IJ is annoying me May 28 10:15:45 i have a 3rd party jar added to my module May 28 10:16:07 when i type the name of a class in that jar, it finds it if i type the whole damn thing May 28 10:16:18 but doesn't seem to present aurtocomplete suggestions as i type May 28 10:16:56 so if its XXXYYY, i would expect after XX i would see it suggest XXXYYY, but I am having to type it all, and THEN it shows it May 28 10:18:32 but i'm noticing sometimes it doesn't find other classes, like I typed ContentObserver which is a standard android thing ... May 28 10:18:51 i had to type the whole thing and then it was shown alone , in the end , in the autocomplete suggestion box May 28 10:24:54 hello everyone! Long time since I've logged in May 28 10:25:04 Hi, does it usually take more than a week to get approved on Samsung Apps? I've got an app waiting for 'Device Testing' for about a week now... May 28 10:31:06 viran they are probably running it through their tizen translator May 28 10:32:10 g00s: what's that? May 28 10:34:47 android alternative? :/ May 28 10:34:59 i was joking ;) May 28 10:39:37 do we really need another mobile OS? May 28 10:40:35 do we really need no more mobile OS's ? May 28 10:41:19 I hope they make an android runtime, porting is a bitch May 28 10:41:33 I heard the iPhone had a good OS. May 28 10:41:35 hi ? May 28 10:41:38 * Neon hides. May 28 10:41:52 how does get current coordinate from android device ? May 28 10:41:55 iphone has an amazing core OS May 28 10:42:02 I mean i want to get google map coordinate May 28 10:43:51 i think we need a good 3rd option : ios / android is getting stale May 28 10:44:07 i would like to see WP and ubuntu phone go somewhere May 28 10:44:31 g00s: I point you at #jollamobile May 28 10:44:39 tizen May 28 10:44:42 SpeedEvil oh, i have heard of that May 28 10:44:49 ubuntu mobile #yolo May 28 10:45:04 They just announced hardware to ship later in the year. (with preorder) May 28 10:45:15 * SpeedEvil looks at his n900. May 28 10:45:20 in the us it all depends on carriers May 28 10:45:35 i blame carriers for the early shit WP got May 28 10:45:46 g00s: in reality, nearly everywhere it depends on carriers May 28 10:45:46 g00s: Well, tmobile have started offering contract-free pricing May 28 10:45:48 they had more fun bloating up android phones May 28 10:46:56 SpeedEvil: dunno about T-Mobile USA, as it's quiet a different beast it seems, but in Europe, they have moved towards having the phones unlocked, instead having early cancellation fees May 28 10:47:20 heyyo nice people. how are you today? where do I start to build an app? please go easy on me, I did only 3 nights of coding in Python. May 28 10:47:35 i like Ubuntu phone concept on paper the most, because it seems to be the next generation of converged device May 28 10:47:48 (phone, desktop, etc) May 28 10:48:36 wm d.android.com Learning section is a good place to start :P May 28 10:48:52 if that doesn't meet your needs pick up a book, either Reto or big nerd ranch May 28 10:49:01 oh, and learn java first May 28 10:49:03 g00s: would you not say java May 28 10:49:08 dam I was just typing that May 28 10:49:10 :) May 28 10:49:44 g00s and stingRay: which book do you recommend on java? ;) May 28 10:49:46 wm Training: http://developer.android.com/training/index.html May 28 10:49:53 then go to Api Guides May 28 10:50:00 Thinking in Java by Bruce Eckel May 28 10:50:04 hm, thats a tough one May 28 10:50:24 yeah, the free ed of TIJ is pre-java 5 May 28 10:50:46 the only java book I ever read was effective java May 28 10:50:48 -.- May 28 10:51:00 effective java FTW, but thats a style guide :) May 28 10:51:00 ... I don't think I ever actually read a book on Java. May 28 10:51:01 Java in a Nutshell by O'Reiley May 28 10:51:12 zharf: did it go easy on you? May 28 10:51:34 wm, it's not really a book to learn the language from, like g00s said, it's more of a style guide May 28 10:52:09 java wasn't my first language and it was reaally easy to start with java from c++ background.. May 28 10:52:20 if you have some OO experience just go through some college PPTs lectures.... May 28 10:52:52 wm so , you're whole proramming experience is 3 nights of python ? May 28 10:52:55 I didn't really like java much before I found IDEA :p May 28 10:53:46 g00s: this is combined experience, well it took me 1 month to learn. i was a virgin in programming languages :) May 28 10:54:10 hm May 28 10:54:12 wm, don't assume your learning has stopped May 28 10:55:06 zharf: noup, this is just a start, maybe i will build a platform. the most difficult part of is writing the pseudocode and i hate it sometimes May 28 10:55:08 ;) May 28 10:57:09 wm its a lot, learning to program (10 years), learning Java, and learning android May 28 10:57:50 Java and Android bring lots of bad ideas and practices May 28 10:59:21 g00s, what is TIJ by the way? May 28 10:59:34 thinking in java May 28 10:59:35 Thinking in Java May 28 10:59:36 a book May 28 10:59:48 Bruce Eckel moved away from Java to Scala May 28 11:00:03 okay, guys. God bless u all. thank u! May 28 11:00:07 I heard TIJ wasn't so good May 28 11:00:08 :) May 28 11:00:16 p_l too verbose May 28 11:00:22 need a suggestion, i have a app that call some services. i do it using asyncTask and open waiting dialog on pre execute and close on post. the problem is that if user lock screen during service call i receive ILLEGALSTATEEXCEPTION because i try to close dialog but the activity are not opened. May 28 11:00:30 what is the best pratcties? May 28 11:00:32 considering that it's free, it's decent I suppos May 28 11:00:33 g00s: well, it's Java, of course thinking in it will be verbose May 28 11:00:35 g00s: what kind of bad practices? May 28 11:00:41 the free one is too old, pre java 5 - i wouldn't actually buy the newest one which is like still way to fing old May 28 11:02:06 Java is easy just read the spec May 28 11:02:23 I wonder if the spec is as readable as hyperspec May 28 11:02:27 Android is stuck with Java 5 anyway May 28 11:04:42 with iphone I can just drag and drop it in the garbage can ;) May 28 11:04:45 Hey guys ! May 28 11:05:08 i'm a new dev around here ... May 28 11:05:19 i wanna just share an idea with you May 28 11:06:04 about the pattern screen lock May 28 11:06:06 i love this quote from Alan Kay "Java is the most distressing thing to hit computing since MS-DOS." May 28 11:06:39 evidently not a linux user :o May 28 11:07:33 is here where we discuss the android-dev topic or i'm in the wrong channel ? May 28 11:08:04 apolikamixitos: discuss what now ? May 28 11:08:15 this is for app development May 28 11:08:37 help etc, whats best practices blaa blaa May 28 11:08:44 how much people hate java etc May 28 11:08:49 hmm May 28 11:09:01 the numerous ways eclipse is sh*t May 28 11:09:08 all that good stuff May 28 11:09:11 apolikamixitos: what is your idea ? May 28 11:09:41 if you have a killer idea, probably best to keep it to yourself tbh May 28 11:09:46 where can i discuss with dev people of Android, i mean the android os May 28 11:09:53 not a killer idea May 28 11:09:58 but just an improvement May 28 11:10:19 android OS ? #android or the cyenogen channel May 28 11:10:32 cause i had a problem those 2 days with my screen lock pattern May 28 11:10:33 apolikamixitos: don't listen to StingRay_ he's a pescimist, now spit it out ! May 28 11:11:09 apolikamixitos: dont listen to shmooz…. he's…. erm…. a drug lord who eats babies May 28 11:11:17 :) May 28 11:12:24 close enough ;) May 28 11:12:46 well, my idea is to improve the security lock pattern May 28 11:14:05 yoyu should write an app that lets you enter some sort of code number instead, that would be super useful May 28 11:14:15 to dispencse nicotine when you get it wrong ? May 28 11:14:27 and also if you get it correct ? May 28 11:14:36 I'd buy it May 28 11:15:17 I dont like this, I feel like breathing is becomming easier…. :( May 28 11:16:43 apolikamixitos: there is an AOSP bug/suggestions list that you can submitt to May 28 11:18:18 StingRay_ you could probably get rich writing a simple sqlite viewer for mac, they all suck ! May 28 11:18:57 even that one i just linked you on ? May 28 11:21:12 yeah, that one handles a bunch - probably via jdbc or odbc, dunno May 28 11:21:28 a dedicated nice clean mac sqlite-specific one like Base would be nice May 28 11:21:41 Base is lame too - and expensive? for what it does, lamesauce May 28 11:22:33 hang on, what was the one that comes in 2 flavours, tis for management of multiple SQL servers ? May 28 11:22:40 does that do sqlite ? May 28 11:22:44 forgot dam name now May 28 11:25:10 @StingRay_: could you please provide to me where i can find them ? May 28 11:25:38 https://code.google.com/p/android/issues/entry?template=Feature%20request May 28 11:26:49 StingRay_ : Thank you ! May 28 11:36:18 hello, i have a sqlite database with one table which has 3 columns, how can i get all rows and put them in an activity? which elemnt which i use in that activity to be able to show the select's result? May 28 11:36:39 in Google Maps api, how can you change the default marker to a drawable from resources? May 28 11:39:51 FrancescoV: Yep ! May 28 11:41:18 omid8bimo: listView + XXXadapter May 28 11:41:39 not to be mistaken with XXadapter May 28 11:41:41 :) May 28 11:42:00 I actually wanted to put ***adapter May 28 11:42:15 StingRay_: got it thanks :) May 28 11:47:58 StingRay_: can you point me somewhere for a sample code? May 28 11:48:14 d.android.com May 28 11:48:19 listView tutorials May 28 11:53:38 Hi, there is a pattern to work with socket in android ? May 28 11:54:05 something like a proxy pattern in a service or something like that ? May 28 11:57:09 I'm gonna make a game called 'Angry Nerds' May 28 11:58:40 shmooz: like this one: http://www.atlassian.com/en/angrynerds? May 28 11:59:14 If I have a class, that can't stop like a network listener, is advised to use a service ? May 28 11:59:14 doh! May 28 11:59:36 can't do nothin new around here I tell ya! May 28 11:59:53 shmooz: if you could you would already be rich and no need to hang around here :) May 28 12:00:57 don't worry my poor fellows, I will not leave you when I get rich May 28 12:02:34 atlassian folks have some humour at least May 28 12:09:22 on postexecute of asyncTask i do DialogFragment a dismiss. if doinbackground is long and devices go to sleep, the dismiss fail for illegalState, anyone can tell me solution? May 28 12:19:14 in google maps, if you want a route description, the map is filled in with little circles, does somebody know how to develop something like that? currently i use the default market, if i change the icon to a drawable from resource, the center/position of the marker isn't perfect May 28 12:26:31 you know what would be really nice for google I/O Video's ? Subtitles, so I can understand what all these people are saying with their bad english pronounciations May 28 12:26:47 ok this is kinda the opposite of what I expected, apparently frustration and anger from not smoking allows me to work really quick :) May 28 12:28:33 StingRay_: try starving yourself a little , that works well too, sortof like you have a clear mind when fasting May 28 12:28:54 I just need to remember to drink lots of water May 28 12:28:57 keep forgetting May 28 12:29:16 shmooz: most of the videos have subtitles? May 28 12:29:27 workday's done in 30 minutes.. haven't written a single line of code May 28 12:29:45 Zharf: meaning you haven't introduced any new bugs today, grats! May 28 12:29:51 :) May 28 12:30:08 i would count that as an successfull day :) May 28 12:30:14 Zharf: I can beat that, -3000 to maybe -4000 lines May 28 12:30:20 but a fair few new bugs May 28 12:30:22 timroes: I used downloadHelper in ff to get them in mp4 format and I haven't seen any subtitles, do I have to download like separate file for subtitles ? May 28 12:30:32 StingRay_, but I haven't even looked at code, or really even thought about doing any work at all -.- May 28 12:30:32 Is there any way to a service start a method from a activity ? May 28 12:30:37 shmooz: yes May 28 12:30:48 shmooz: the subtitles are on youtube available for the video May 28 12:30:56 so you will have to use some downloader to get the subtitles May 28 12:31:05 there are several out there (none of which i can recommend :D) May 28 12:31:38 thanks timroes , let me see if I can find them May 28 12:32:08 there might be videos without subtitles, but i guess i found only one or two right now, that hadn't subtitles May 28 12:34:05 most productive thought I had today was that maybe I should start looking for a new job -.- May 28 12:35:18 Heya folks, quick question - I am trying to change the color of a listpreference's summary text. May 28 12:35:31 I don't see any xml nor programatical solution for this May 28 12:35:45 is there a theme-wide property that affects only this text? May 28 12:36:36 somebody experience with google maps api - directions? May 28 12:36:45 I have a button that should activate a feature when long-pressed, then when released again, the feature should be deactivated. This isn't any problem if it werent' for the fact that long-pressing will cause the listview to invalidate. May 28 12:37:27 did I just learn that shmooz is alive :-P May 28 12:37:55 So any consecutive touch events will case a ACTION_CANCELED May 28 12:38:23 hey Looney , long time no see, whats going on ? May 28 12:38:42 trying to stay alive ;-) May 28 12:41:53 I don't plan on distributing my app, but I'd like to put an executable on github May 28 12:42:11 ok I'm trying out the YouTube Caption Downloader :) May 28 12:42:37 so do I need to include anything besides the apk? May 28 12:42:43 like the manifest file? May 28 12:43:47 nice idea in my opinion shmooz May 28 12:43:48 RustyShackleford, nope, just apk May 28 12:44:01 hope there is not much saturation is this app idea May 28 12:44:36 Google I/O 13 - The Android Sessions - http://www.youtube.com/playlist?list=PLWz5rJ2EKKc9WGUwq2gQ-coU3fSyexgOx May 28 12:46:37 shmooz, cool, thanks May 28 12:47:05 why is there no watch later for playlist May 28 12:47:07 -.- May 28 12:48:15 "Google blimps will carry adds across Africe" May 28 12:48:21 *Africa May 28 12:57:43 wow problem solved, now I got subtitles for any youtube video :) , thanks timroes May 28 12:57:56 you're welcome :) May 28 12:59:58 * Looney thinks someone is going to make UI/Ux of app onlu May 28 13:07:41 Is there something in Eclipse to I click in a method call and it put me int the method implementation like control(win)/command(mac) of netbeans ? May 28 13:07:57 wviana: try F3 May 28 13:08:13 Thansk Ge0rG May 28 13:08:18 Thanks * May 28 13:21:16 hello May 28 13:26:54 hi, i need help with making my custom keyboard move my view... May 28 13:27:53 you have done an ime and it's not moving views upwards ? May 28 13:28:34 i posted my question on stackoverflow here --> http://stackoverflow.com/questions/16792227/custom-keyboard-push-layout May 28 13:29:18 i think i could have implemented the keyboard wrong.. May 28 13:29:36 the keyboard shows... but ontop of everything... May 28 13:30:11 but i add the keyboard at the same layout level so it shouldent move the layout... May 28 13:30:48 so i can't find the right way to implement it... May 28 13:32:13 well that depends on the layout May 28 13:32:24 if it's just a view in something like a frame/relative May 28 13:32:30 not really gonna do much May 28 13:32:36 unless you have "rules" May 28 13:33:59 so how should i implement the keyboard? i have a KeyboardView that i add the the relativelayout.. May 28 13:34:03 where should i add it? May 28 13:34:17 and how do i push the layout up? May 28 13:34:22 well do you know how a relativeLayout works ? May 28 13:34:29 yes May 28 13:34:40 so you have rules set ? May 28 13:34:48 and they dont work ? May 28 13:36:21 i actually want to move the layout up and meaning half of it will be cut off May 28 13:36:39 and that doesn't work in a relative layout.. May 28 13:36:42 what ? May 28 13:37:40 pastebin your layout May 28 13:37:56 and be quick cause I'm just about to go to the land of zzzz May 28 13:38:03 and dream about smoking May 28 13:39:27 k 1 sec May 28 13:40:30 http://pastebin.com/8znUayv3 May 28 13:40:46 i dynamicly add the keyboardview May 28 13:41:01 where ? May 28 13:41:15 to r_layout ? May 28 13:41:19 r_layout level - top level May 28 13:41:30 top level ? May 28 13:41:36 yes May 28 13:41:41 you mean addView(0,myview) ? May 28 13:41:43 my keyboard - http://pastebin.com/LeE56WL2 May 28 13:42:30 hello, would you have any idea why when i call setVisibility(View.GONE) on some View field, it hangs on this instruction? It happens the second time i setVisibility on the View. I added a "Log.e" right before and after, i see the line before but not the line after. i'm really running out of ideas.. May 28 13:42:56 Morg0th: stack trace May 28 13:43:16 bobx7: you add rules when you add your kb view ? May 28 13:43:59 how do i pm? May 28 13:44:11 and also change the rules or add rules to view you want affected May 28 13:44:17 eg May 28 13:44:43 myKeyboard.layoutParams().addRule(rule,anchor) etc May 28 13:44:48 in google maps (api) , is there something default for using the little circles instead of defaultmarker like this: http://i.afterdawn.com/storage/pictures/bicycling_layer_with_terrain.png May 28 13:44:51 ((RelativeLayout)getView().findViewById(R.id.r_layout)).addView(weight_kb.mKeyboardView); May 28 13:44:56 same to views you want affected May 28 13:45:05 bobx7: yeah that just wont work May 28 13:45:09 it has parent_bottom true May 28 13:45:24 you dont really understand a relativeLayout May 28 13:45:54 you would need to add rules "relational" to the layout Prams May 28 13:46:06 and to the things you want affected too May 28 13:46:20 and there is also an order of operations to it May 28 13:46:43 the problem will be that all the top view will be squashed together.. May 28 13:46:43 affected/refrencer needs to be "below" referencee May 28 13:47:03 bobx7: thats a design issue May 28 13:47:11 not a real problem May 28 13:47:15 :) May 28 13:48:00 i will try... thx May 28 13:48:06 Morg0th: what does the stack trace say ? the exception ? May 28 13:48:45 StingRay_: i can't seem to find the stack trace... it doesn't appear in Logcat. and there is no exception at all, i just never get to the next instruction May 28 13:49:10 yes but it will error and produce a trace May 28 13:49:13 StingRay_: it's a special project type (under Eclipse but not really a full Android project), i can't DDMS it either May 28 13:49:20 oh May 28 13:49:23 hmm May 28 13:49:27 no idea then May 28 13:49:36 probably just an null pointer May 28 13:49:39 view being null May 28 13:50:23 it's not, i get do getVisibility() on it and see the result. but as soon as i do setVisibility or even invalidate() it hangs May 28 13:51:39 is there some other dependancy on that view ? May 28 13:51:42 maybe May 28 13:51:59 that when it goes, it's left not saticfied ? May 28 13:52:04 So you've gotta love when a 800 kilobyte image takes up 40 megabytes of RAM May 28 13:52:06 <3 android May 28 13:52:11 satisfied* May 28 13:53:40 If I want to the back button do the same thing of home button (don't close) what can I do ? May 28 13:54:28 it doesnt close May 28 13:54:34 i dont think May 28 13:54:43 well not by default May 28 13:54:52 depends on task settings I think May 28 13:55:03 wviana: OVerride it May 28 13:55:31 I'd advise against doing that though May 28 13:55:35 unless you're 100% sure you want to May 28 13:56:08 Cause, I want the only way to close my application is from a button in menu May 28 13:56:42 wviana: well android can kill your app at anytime May 28 13:57:13 and normally I say throw all the rules/design guides of android/google in the trash, but dont fk with the home and back buttons May 28 13:57:14 :) May 28 13:57:18 when I click home I re-open my app, it back from it stops. When I click back it open the firts activity that can be opend just once May 28 14:00:57 no problem with close my app, cause a have a service that throws all that I need, but when the app close, It can't re-open the main activity, It need to open the game activity May 28 14:03:03 you can manipulate the back stack so that 'back' just exits; http://developer.android.com/guide/components/tasks-and-back-stack.html . You can't prevent home from exiting. May 28 14:03:21 I assume you're attempting to prevent the user from dropping out of the game into the main game launch screen accidentally May 28 14:03:50 Anyone here knows roughly how many android devs there are? May 28 14:04:35 Found some numbers from August saying around 10k May 28 14:05:18 Quacked: you mean ppl developing for android? or developer accounts in google play store? May 28 14:05:43 The first May 28 14:05:55 dragorn: exactly, cause my fisrt activity is a server selection, and my second is the game. When player stop see my activity he can't back to server list, he needs to see the game activity to continue playing May 28 14:05:57 you won't get any relyable number for that I would assume May 28 14:06:02 how would anyone know May 28 14:06:13 Google probably does :P May 28 14:06:20 how would they May 28 14:06:34 Well, by first I meant active developers on google play store May 28 14:06:42 in my company there are around 10-15 android developers, but not a single company developer account i guess May 28 14:06:52 okay that they know May 28 14:07:07 dragorn: I think that Tasks and Back Stack will help me, I'm reading, Thanks May 28 14:07:12 or at least they know the amount of dev accounts and might be able to eliminate duplicates May 28 14:07:18 I was thinking of making an app for devs, then I realized that it would get like maximum 10k downloads :P May 28 14:07:22 wviana: you need to change the tasks (per that url) so that 'back' doesn't return. Then either it should resume you in the top task (the game) or your server selection screen needs to connect to your background service, detect it's in the middl eof a game, and launch the game task on top of itsemf May 28 14:07:24 itself May 28 14:07:33 wviana: i think those 2 things will get you what you need May 28 14:07:44 Quacked: not exactley true May 28 14:07:45 https://play.google.com/store/apps/details?id=com.actionbarsherlock.sample.demos&hl=de May 28 14:07:57 10k to 50k downloads :) May 28 14:08:12 10001 downloads ;) May 28 14:08:16 Hello. I've coded a very small one-threaded Queue system for HTTP Requests. Now there's a lil Problem. The Queue has a own Struct and the Struct is in an Arraylist. There are sometimes more then 2000 Items. It works on most devices but in some cases there's a "OutofMemory". What could i do to avoid that? May 28 14:08:27 and since I guess there are way more ppl developing then who downloaded the sample app May 28 14:08:37 I thinking about serializing the ArrayList in a SQLiteDatabase. May 28 14:08:39 dragorn: oh thanks May 28 14:08:46 but again that is then ppl developing android apps, and not ppl with a dev account May 28 14:08:59 at the same time, there are probably many that downloaded that app without being devs :P May 28 14:09:01 but if you wish your download rates, you should care more about devs developing for android, and not dev accounts May 28 14:10:01 and when I had thought about the limited download rates, I then realized that the simplicity of the app would prevent charging anything for it May 28 14:10:15 since every dev would just make the app themselves :D May 28 14:11:23 Quacked: https://play.google.com/store/apps/details?id=com.aide.ui&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5haWRlLnVpIl0. May 28 14:12:18 Im guessing a lot of curious people grab that May 28 14:12:36 the premium key has got 5k-10k downloads May 28 14:12:37 https://play.google.com/store/apps/details?id=com.aide.premium.key&feature=more_from_developer#?t=W251bGwsMSwxLDEwMiwiY29tLmFpZGUucHJlbWl1bS5rZXkiXQ.. May 28 14:12:39 yeah May 28 14:12:49 pretty decent for that price May 28 14:12:52 and 5k to 10k for an app priced at 9,99€ is pretty much imho May 28 14:13:10 yeh **** BEGIN LOGGING AT Tue May 28 14:16:22 2013 May 28 14:17:18 and until you finished google has published an API for the console and someone already wrote the now way easier app :) May 28 14:19:25 timroes: a basic app should be possible within a week May 28 14:19:41 but it would neat if google published an api for it May 28 14:21:06 btw, does google analytics already provide something like this? May 28 14:21:54 nevermind May 28 14:23:29 I wouldn't normally buy anything that costs more than $5, but when I got $25 free with my Nexus 7 I bought an AIDE key May 28 14:32:57 somebody has experience with drawing (circle)? May 28 14:33:42 I'm about to start learning how to do custom drawing myself May 28 14:33:43 :S May 28 14:37:22 guys, anyone knows of a working implementation of horizontal ListView? each and every one I try has some issues May 28 14:39:26 karlo|w: use gridView with just one row? May 28 14:40:41 will it scroll horizontally? May 28 14:40:55 no idea, was just a guess :) May 28 14:50:12 hmm, so tempted to hax0r up the stock clock app May 28 14:50:25 I want to be able to /use/ the stopwatch/timer as a lockscreen widget May 28 14:51:58 Quacked, have you seen Andlytics? https://play.google.com/store/apps/details?id=com.github.andlyticsproject&hl=en May 28 14:52:55 It shows all your app stats with graphs and even lets you reply to reviews May 28 14:57:58 with gson is it possible to specify more complex paths in @SerializedName? like @SerializedName("user.profile.picture") May 28 15:10:07 I'm using Google Maps api and some markers to place them on a specific location (latlng) and with the default marker icon, it's placed on the right position but with a default icon (bitmap) it's not at the perfect position, how can i fix this? is it with the bitmap? May 28 15:18:45 I have a fragment container below a ViewPager and if I'm at the leftmost item in the viewpager, then pressing the left key will properly focus the first fosuable item in the fragment below the viewpager, but when i press down i see that the InputEventConsistencyVerifier logs that "KeyEvent: ACTION_UP but key was not down." May 28 15:19:03 any ideas on how to fix the focus issue? May 28 15:27:25 good morning, is a good practice make a lot of fragments and manage them with one activity? May 28 15:27:46 Sure May 28 15:27:50 popers: I find it is a good way to handle things May 28 15:27:56 you might need more than one activity per app though May 28 15:28:01 it depends on how your flow looks May 28 15:29:21 where can i find how to manage the stack May 28 15:33:30 Brian|CB: do you have any nested fragments? May 28 15:41:08 Hey, do anyone have experience with Billing V1/V2 - > V3 migration? May 28 15:41:26 zambo, Yes - but it was a few months ago May 28 15:41:27 particularly, will managed purchases from v1/v2 show up after an inventory request in V3? May 28 15:41:49 as unconsumed V3 purchases May 28 15:42:40 not sure on that i'm afraid - not something we ran into as our in-app purchases are consumed as soon as they're confirmed on our servers May 28 15:44:04 I'll be doing the same for v3. I'm just concerned about users who may have made purchases before the migration being able to redeem (consume) their purchases an extra time May 28 15:47:09 karlo|w: Nested fragments? For which purpose? May 28 15:47:12 I suppose you could do it May 28 15:47:17 but idk if Ive come across the need May 28 15:55:09 Is there any support to write an app that can unlock (as in a pin/password protected screen) automatically, from info it reads from (eg:) an NFC tag? May 28 15:55:23 kbs: Possibly May 28 15:55:27 I'd say its definitely a possible thing to do May 28 15:55:32 how hard it is would be another question May 28 15:55:38 I'm gonna play around with similar stuff once I buy NFC tags May 28 15:55:42 Where's the documentation on interacting with the pin-entry on the lock-screen? May 28 15:55:59 I think NFC is disabled unless the screen is on though May 28 15:56:10 (unless you're on a custom ROM) May 28 15:56:30 I could live with turning the screen on before scanning the tag; but I can't seem to find info on how to provide the pin to the lock-screen. May 28 15:59:08 yeah, NFC is off when screen is off May 28 15:59:33 kbs, afaik the interaction with PIN-entry is disabled deliberately May 28 15:59:49 however, if anywhere, that would be in the device administration features documentation May 28 16:00:46 Mavrik: ok -- so, conclusion is that such an app cannot be written for a generic (for instance, 4.2+) phone, I guess May 28 16:01:45 well, tampering with security features on the phone is disabled for a reason May 28 16:02:06 lockscreen really doesn't have any documentation or API May 28 16:03:09 gotcha. (and thanks for the tip about the device administration api, that seems interesting.) May 28 16:03:58 who here tried out the new Android Studio? May 28 16:05:16 damn shame May 28 16:05:30 I'd quite like more lock screen widgets May 28 16:05:43 for a start, put back the sane looking clock May 28 16:05:50 ? May 28 16:05:55 there's billions of clock widgets May 28 16:06:03 not lock screen May 28 16:06:09 I'm getting an error for findByViewId, although object belongs to Activity. https://gist.github.com/anonymous/1314b19748f35980f1d1 May 28 16:06:29 FLeiXiuS, "false" May 28 16:06:32 go see what that means May 28 16:06:33 ;) May 28 16:06:49 Mavrik, What's that May 28 16:07:08 'false' in the inflater? May 28 16:07:36 yes, you're not attaching the view to the hiearchy May 28 16:07:45 and of course, findviewbyid won't find it in activity. May 28 16:08:10 FLeiXiuS, why aren't you just calling findviewbyid on the view itself? May 28 16:09:44 Mavrik, This is a fragment that's loaded via an actionbar item May 28 16:10:01 Mavrik, I'm about 1 week into devel for android ;-) May 28 16:10:07 SpeedEvil: it's quite feasible to add widgets to the lockscreen with 4.2+ at least. (https://developer.android.com/guide/topics/appwidgets/index.html#lockscreen for details.) However, it's apparently not possible to directly talk to the keyguard/unlock-screen portion of the system to unlock the phone from an app. May 28 16:11:24 hmm May 28 16:12:06 I guess the next question would be how I search the play store for these without getting overwhelmed by the thousands of hits for gingerbread May 28 16:12:19 which is what happened last time May 28 16:13:40 *shrug* May 28 16:13:51 are there APIs other than the website to find apps? May 28 16:14:05 we're just devs, don't expect us to know how to actually use Android May 28 16:15:31 :-) May 28 16:16:08 Doesn't the play store app itself do the appropriate filtering? I guess that would make sense only if you install via the app, rather than side-load. May 28 16:16:10 sorry, I wasn't tracking which channel I was in May 28 16:16:26 Mavrik, Setting root hierarchy didn't gain me anything ;-) same error. May 28 16:16:50 [18:08:10] FLeiXiuS, why aren't you just calling findviewbyid on the view itself? May 28 16:17:12 kbs: I mean so I can say 'show me only apps with/without specific things in their manifest May 28 16:17:34 Mavrik, I did, then I received incompatible type. I'm assuming because I'm using TextView = (view) May 28 16:17:39 SpeedEvil, afaik there's no such searching option :( May 28 16:17:53 SpeedEvil: aah. Yeah, I like that idea indeed. Would be nice to skip apps that ask for too much. May 28 16:18:08 or to find android:widgetCategory="keyguard|home_screen"> apps May 28 16:18:19 oh well. May 28 16:18:20 FLeiXiuS, um May 28 16:18:31 is "capture_stream" a textview? ;) May 28 16:18:44 I was looking into that some months ago but I couldn't find anything May 28 16:18:54 Mavrik, yes May 28 16:24:16 TextView text = (TextView) view.findByViewId(R.id.capture_status); May 28 16:24:32 Returns undefined symbol, still workin through it May 28 16:24:46 Since every stackoverflow i've seen says that should work May 28 16:25:30 I'm working with bluetooth comms on older android devices (2.2 and 2.3). When connecting to a device that is already paired, I get the system PIN dialog asking me to pair. If I enter the PIN, it connects fine, but it asks for the pin for every connection, even if the device claims to be paired already May 28 16:25:37 any ideas why or how to fix it? May 28 16:39:22 i feel like I'm missing an import, every thing says this should work... May 28 16:42:51 if anyone needs a Java, C, C# or Android programmer I will work for 14 USD an hour or a reasonable commission rate :| May 28 16:45:03 BustyLoli-Chan, :-) if you can help me fix my problem we can talk about future work lol May 28 16:45:33 What is your problem sir May 28 16:46:00 I'm getting cant find symbol for findByViewId within my fragment May 28 16:46:02 what is the context of your text view May 28 16:46:11 did you first inflate the fragment? May 28 16:46:24 you have to use a layout inflater to inflate the fragment May 28 16:46:33 and then from that layout inflator.findviewbyid May 28 16:47:02 BustyLoli-Chan, https://gist.github.com/anonymous/7b153b980c54126b13b7 May 28 16:47:06 Precisely what I'm doing May 28 16:48:16 error: https://gist.github.com/anonymous/5664200 May 28 16:48:55 http://pastebin.com/jjuBW20S this is what I have that works May 28 16:49:06 FLeiXiuS: findViewById not FindByViewId May 28 16:49:42 timroes, doh. May 28 16:49:42 ^ May 28 16:49:50 oh well May 28 16:50:39 Sigh... May 28 16:50:40 lol May 28 16:50:42 should one change the encoded developer payload string or doesnt it matter? this one: bGoa+V7g/yqDXvKRqq+JTFn4uQZbPiQJo4pf9RzJ May 28 16:50:49 for in app purchases May 28 16:50:56 timroes, you're hired! May 28 16:52:25 i know May 28 16:52:36 otherwise it would be hard to pay my flat :D May 28 17:05:30 Is Picasso any good? May 28 17:09:15 I have two devices on the same account and I buy an in app purchase with one device. onCreate I check for a boolean and add ads if boolean is inventory.hasPurchase(item) is false. I have this in new IabHelper.QueryInventoryFinishedListener(). However, this does not work on my other device. Any ideas? May 28 17:10:08 I mean, inventory.hasPurchase is false even though I purchased it on the other device in the same account. If I try to buy it again it says "you already have this item". May 28 17:12:27 I do the mHelper.queryInventoryAsync in onCreate May 28 17:12:39 to check if item is already bought May 28 17:15:17 Hmm.. looks like there was some delay or something May 28 17:15:54 Or it helped to launch google play like this fellow suggested: http://stackoverflow.com/questions/16211841/android-in-app-billing-v3-testing-on-multiple-devices-with-the-same-test-account May 28 17:26:15 can I startService than bind it ??? May 28 17:30:38 is values-tvdpi a valid folder May 28 17:31:38 seems correct for 3.2+ May 28 17:32:32 it seems to be getting ignored in favour of values-sw600dp May 28 17:33:07 what should i use to target 10" tablets as i want a different layout for nexus 7 so need tvdpi to work May 28 17:33:48 oh, so you're concerned more with the actual physical width of the device, rather than the underlying dpi? May 28 17:35:28 pass, all i know is i want a different set of values for nexus 7 than for 10" tablets May 28 17:35:48 sw600dp seems to over write the tvdpi May 28 17:35:53 heh. best-practices seems to suggest *-sw720dp for this. [https://developer.android.com/guide/practices/screens_support.html] May 28 17:36:18 ive just this second changed it to sw720dp May 28 17:37:36 I cancel a purchase but the device still have the item when doing queryInventoryAsync. Any ideas why? May 28 17:37:56 Do you guys recommend a particular tutorial for people who're very familar with java who wants to do some android? I don't need any syntax explanations or help regarding normal javaSE classes, but I do need an overview of the names of different UI stuff, and what "levers" I can pull (GPS, camera, etc) May 28 17:38:35 Xabster: http://developer.android.com/training/index.html May 28 17:40:04 Quacked, is that directed at only-android-specific stuff? May 28 17:40:29 yeah, pretty much May 28 17:41:02 Ash__: sounds good. My 0.02 is not to mix the selector types, as it becomes unpredictable. (eg: tvdpi would use the underlying density of the device, which is orthogonal to its width, specified as swNNNdp) May 28 17:41:48 dude i have no idea how to message direct like that May 28 17:42:26 after changing sw600dp to sw720dp my nexus 7 now uses tvdpi values May 28 17:42:38 just need to check my 10" layout still works May 28 17:43:46 see above :-) my 0.02 -- just use *-swNNNdp throughout for width-dependent values; rather than putting such resources under a *-tvdpi May 28 17:45:04 arnt swnndp values only supported grater than 3.2 tho May 28 17:45:42 as is tvdpi... May 28 17:45:45 ie xlarge is sw600dp May 28 17:47:17 Is there a way to make an app invisible while keeping it restartable and it can run a broadcastreceiver? May 28 17:47:26 I have been doing this via starting an activity that sends the user home May 28 17:47:53 and the thing is.. I kind of need to have it restartable, I'm using onResume() in the activity in this case May 28 17:50:08 How can I get the view object within an activity function? May 28 17:50:10 newlex: applications don't need a foreground activity for a broadcast receiver declared in the manifest to work. or you can use a service. May 28 17:50:29 I have an onclick function for a button that I wan to get the view object it is in May 28 17:50:47 codebutler: yeah but can it be restartable? like I click app again and it starts again May 28 17:50:51 or calls onResume in my case May 28 17:51:20 you can't rely on your activity instance staying around May 28 17:51:51 yea May 28 17:52:30 pain the the ass developing for multiple screen sizes, has no one created a bootstrap type android library May 28 17:52:56 Hello. I've coded a very small one-threaded Queue system for HTTP Requests. Now there's a lil Problem. The Queue has a own Struct and the Struct is in an Arraylist. There are sometimes more then 2000 Items. It works on most devices but in some cases there's a "OutofMemory". What could i do to avoid that? May 28 17:53:14 Serializing the ArrayList sounds great but ill get in same problems by deserializing. SQLite is the best solution? May 28 17:53:40 Ash__: you mean responsive css layout heh May 28 17:53:50 you can do that already if you dev with jquery mobile.. it's not great though May 28 17:53:54 you have to do everything through javascript May 28 17:53:54 yeah but with xml lol May 28 17:53:55 misterli: maybe you should look at Tape https://github.com/square/tape May 28 17:54:06 nah i started with jquery but soo slow and laggy May 28 17:54:51 nothing is as good as a native app May 28 17:55:00 just create 2 fvers May 28 17:55:01 vers May 28 17:55:07 or 3 actually May 28 17:55:08 lol May 28 17:55:14 tablet, 720p, 480p and below May 28 17:55:59 though tablet could be 720p May 28 17:56:01 hm May 28 17:57:12 don't use pixels as size qualifiers May 28 17:57:24 http://www.youtube.com/watch?v=zHirwKGEfoE May 28 17:58:39 ah and btw. Does it matter if i add a new File() or a String to an arraylist (by memory)? Afaik a new File() is only a Pointer to the file, isnt it? May 28 17:58:41 newlex, i have a 10 inch tablet that's 720p May 28 17:58:43 and a 7 inch tablet May 28 17:58:45 and a 4 inch phone May 28 17:58:48 and a 30 inch tv May 28 17:58:53 I prefer .9 millifurlong tablets May 28 18:00:21 err, .09 I think. May 28 18:00:26 math is failing me May 28 18:00:48 serves you right for mixing metric and imperial systems May 28 18:00:58 no, .9 is right. I think May 28 18:02:31 Anyone added a Google plus +1 button to their app? Which URL do you specify as the target of the button? market:// URI or http://play.google.com? May 28 18:09:51 anyone here familiar with bluetooth pairing? I have a paired device, but I still get a pin request when establishing a connection every time. Fixes? May 28 18:10:02 create 3 versions of my app? May 28 18:10:30 What is the point of the +1 on apps in play store btw? Where is that shown? May 28 18:11:17 rops, actually when I link to my app I try both market and http... market opens market by default but will error if device does not have google play installed May 28 18:11:26 Quacked: it's shown on the web version of the play store May 28 18:11:47 It's shown on your g+ profile May 28 18:11:54 isnt it just a "like" type of indicator May 28 18:12:05 You can also see if anyone in your circles +1'd it May 28 18:12:34 SimonVT: where on the profile? I cant see it :D May 28 18:12:44 anyone know of a way to speed up the loading times of images in assets folder May 28 18:12:55 Select +1's at the top May 28 18:13:03 Oh right, there it is May 28 18:13:04 Quacked: I mean the target of the google plusone button (URL parmeter) https://developers.google.com/+/mobile/android/recommend May 28 18:13:11 Even though I have +1d something its not there May 28 18:13:15 hmm.. must investigate May 28 18:13:16 thanks, SimonVT May 28 18:14:21 Ash__: Im just saying that if you use market://, devices without google play app installed will error May 28 18:14:48 i never reply to you mate May 28 18:14:49 but you can workaround it with something like this: http://pastebin.com/bSm6b4HT May 28 18:14:54 sorry, it was for rops May 28 18:14:59 np lol May 28 18:15:02 ;) May 28 18:15:11 Shortcut menu icons in my ActionBar seem to overwrite the ActionBar separator line; common problem (and solution?)? I've used the "stock" ICS images. Screenshot here: http://snag.gy/kqBPE.jpg May 28 18:15:14 how do i reply to people in orange like you did? May 28 18:16:01 Just say the person's name May 28 18:16:10 Ash__: like this May 28 18:16:22 Se7enLC that work? May 28 18:16:25 your client probably just puts your name in orange when mentioned May 28 18:16:26 yep May 28 18:16:31 ahh cool May 28 18:16:39 colors is no different for me :9 May 28 18:16:57 some clients will beep May 28 18:17:08 i get a notificaiton popup on my mac also May 28 18:17:15 Ash__ is using limechat May 28 18:17:22 Quacked:just the qwebirc client May 28 18:17:39 Se7enLC: yeah, i did a ctcp version on you May 28 18:17:44 I saw :-) May 28 18:17:59 do one on me and laugh May 28 18:18:37 anyone know of a way to speed up the loading times of images in assets folder May 28 18:18:47 from assets folder* May 28 18:18:50 can you change the auto suggestion underline color? May 28 18:20:28 depends on your client May 28 18:20:51 I'm guessing ircii. May 28 18:21:28 sorry was for EditText May 28 18:21:53 hah May 28 18:21:54 checking the source I see com.android.internal.R.styleable.SuggestionSpan_textUnderlineColor not how to set this in xml.. seems ide isn't picking it up May 28 18:22:16 you probably can't override that since it's an internal style. May 28 18:23:20 fuck May 28 18:25:23 trying to update android sdk tools through SDK manager and I click accept and install and I get this: http://pastebin.com/k0b6QNH3 May 28 18:25:31 why is it trying to "download" from my own harddrive May 28 18:25:46 do i need to manually download the zip file and put it in that location? May 28 18:30:19 SimonVT: with retrofit, do you ever post Map ? May 28 18:31:53 Haven't done that, no. Why? May 28 18:34:02 anyone here familiar with bluetooth pairing? I'm able to establish a bluetooth connection in my app, but it asks me to pair Every Time, even though it is already paired. May 28 18:36:54 funkbox: you're trying to POST a urlencoded form? May 28 18:37:11 codebutler: haven't tried yet May 28 18:37:30 i'm converting code and i have a POST that takes a Map May 28 18:38:26 can i use inSampleSize for BitmapFactory.decodeStream May 28 18:38:33 sorry for being a complete newbie, but how would you make a scrollable list of items where the items can have 2,3 or 4 togglebuttons? May 28 18:38:52 LinearLayout, with a scrollview and then what? May 28 18:38:55 listview? May 28 18:40:42 custom listview? May 28 18:40:43 Xabster listview May 28 18:41:12 and what next? May 28 18:41:34 what could I add to a listview to contain each "row" entry for 2 to 4 toggle buttons? May 28 18:41:52 you can customize each row in the getView method May 28 18:42:53 (of your custom adapter) May 28 18:45:16 dam it sw720dp break my xxhdpi layout :( May 28 18:47:42 ignore me i forgot to add the xxhdpi layout lol May 28 18:48:19 Why would you have a xxhdpi layout :F May 28 18:48:25 htc one May 28 18:48:36 You're counting on that being the only xxhdpi device ever? May 28 18:49:05 no May 28 18:49:37 Then we're back to xxhdpi layouts not making sense again May 28 18:49:47 why May 28 18:50:32 Answering my own question; more consistent choices for the parent to my own theme and actionbar theme solved it. May 28 18:50:38 Because layouts are based on the screen size May 28 18:50:44 Not density May 28 18:51:01 im soo confused about this dam multiple screen sizes May 28 18:51:26 pretty sure android developers youtube channel said about using xxhdpi May 28 18:51:51 Does the constructor for ArrayAdapter keep a reference ot the list or does it copy it? May 28 18:52:32 Hi all. some of my users reports that they are being billed by clicking on ads or using my app's webview to click on some links. Is there a way to stop this? could this be related to READ_PHONE_STATE permission? May 28 18:52:37 THe documentation isn't exactly clear, as I hnave a need to be able to manipulate the backing list directly and then nuse notify Observers. May 28 18:52:38 how do i target a phone with 1080p screen than May 28 18:52:43 then* May 28 18:53:02 as it has a 4.7" screen May 28 18:53:11 which would mean its large May 28 18:53:21 but that applies to all 4-7" devices May 28 18:54:20 pretty sure thats why xxhdpi was added May 28 18:55:00 4.7" would be normal, not large May 28 18:55:04 Anyway, those are deprecated May 28 18:55:16 Use swdp to catch larger devices May 28 18:55:30 man i feel stupid - why can't i add widgets to containers? am i not supposed to be able to put TextView's in a ListView? May 28 18:55:40 norma/large according to http://developer.android.com/guide/practices/screens_support.html May 28 18:55:41 Xabster: no, you have to use an adapter May 28 18:55:46 xxhdpi was added so you can provide higher resolution drawables to devices with a high pixel density May 28 18:56:02 Layout is based on screen size May 28 18:56:11 Is there a way to specify the android-16 system-image using the android command line utility? android update sdk -u --filter system-image installs API 17/4.2.2, but i need 4.1.2 / API 16. Ideas/help? May 28 18:56:23 be isnt swXXdp only used above 3.2 May 28 18:56:42 yes May 28 18:56:54 JakeWharton: how would you make http://cdn7.staztic.com/app/a/18/18259/droidseer-x10-home-automation-372536-1-s-307x512.jpg overall? A LinearLayout with a ListView and then what? May 28 18:57:06 There are no tablets (worth supporting) below 3.2 May 28 18:57:11 rue May 28 18:57:13 true* May 28 18:57:28 Xabster, its not as easy as you think,look at some custom adapter/listview tutorials May 28 18:57:47 Xabster: I wouldn't use a ListView at all May 28 18:57:52 Lots of linearlayouts May 28 18:57:57 JakeWharton: oki, how'd you do about it then? May 28 18:58:00 go* May 28 18:58:19 SimonVT, outer linearlayout would be vertical and the others horizontal? May 28 18:58:22 ScrollView + ListView + whatever for each section May 28 18:58:25 er May 28 18:58:25 Yep May 28 18:58:32 ScrollView + LinearLayout + whatever for each section May 28 18:58:32 oh jake May 28 18:58:39 let me see May 28 18:58:41 i was trying to read and type at the same time May 28 18:58:46 JakeWharton: hey, does the dagger compiler work with gradle? May 28 18:59:15 codebutler: no clue. i don't see why it wouldn't since gradle has to be calling javac May 28 18:59:48 okay. I can report back when I have a chance to try it. May 28 19:00:12 JakeWharton, how come you advised the scrollview method instead of listview May 28 19:00:40 Because it's a static layout May 28 19:00:42 i can see that making sense its a predetermined number of items, is that why? May 28 19:00:51 roger that May 28 19:01:28 does android use the higher or lower layout for say layout, layout-sw720dp May 28 19:01:40 Listview is heavily optimized for identical rows... and the optimization only makes sense if you have a considerably larger amount of items than can fit on the screen. May 28 19:02:52 or a gridview if you ever want a tablet layout? lol May 28 19:03:00 TheTrash, so if its a undetermined number of rows, each with a different layout, what would be the suggested way? May 28 19:03:39 can anyone provide some help making a .apk for live wallpaper from a batch of .png images? I have a script to generate a .apk and can get it installed but it freezes when I try to set it as wallpaper. May 28 19:04:07 brx_, you wouldn't have 100 rows with 100 different layouts May 28 19:04:15 3 layouts he said May 28 19:04:17 android-apt-compiler: [untitled1] C:\Users\Dev\IdeaProjects\untitled1\res\layout\main.xml:7: error: invalid symbol: 'switch' May 28 19:04:27 target is 4.2.2 May 28 19:04:28 Then listview May 28 19:04:30 1,2 or 3 buttons May 28 19:04:34 If you have that, your UI probably sucks :P May 28 19:05:04 If it's a limited set, you could cache instances of the row views. May 28 19:05:18 ListView already does that for you with view types May 28 19:05:20 Gonna be nasty, though. May 28 19:05:23 The adapter has getItemViewType and getItemViewTypeCount May 28 19:05:33 So it can have however many recycle bins as you want May 28 19:05:48 And it'll return you the right convert view for the row May 28 19:06:11 Hmm interesting, never knew that existed. May 28 19:06:30 roger that May 28 19:07:11 For Xabster's case it doesn't make sense when it's just 5 rows that doesn't change.. If he had like 20, he might want to consider it May 28 19:07:20 Also just cus a single layout with 20 rows looks horrible May 28 19:07:35 my layout is gonna be dynamic May 28 19:07:36 i actually missed the 5 rowsbit, i assumed it was undertermined May 28 19:07:40 i will add switches to each row May 28 19:07:52 depending on some groups that will be created May 28 19:08:07 Oh, I assumed it was static May 28 19:08:25 Maybe it does make sense to implement an adapter, and just pass it the button text May 28 19:08:25 I should have asked here..... May 28 19:08:35 Could someone tell me which apk is responsible for data usage tracking in ICS+? May 28 19:08:41 I'll leave that up to the implementer :p May 28 19:08:47 my inferior knowledge prevailed! (kinda) May 28 19:09:11 SimonVT in your opinion what should i use instead of xxhdpi sw??dp May 28 19:09:25 Ash__: For a phone, just layout/ May 28 19:09:30 why does the SDK manager attempt to locate zip files on my PC when I ask it to install an API? http://pastebin.com/5dq24CrD May 28 19:09:37 it should obviously download it May 28 19:10:05 Downloading Sources for Android SDK, API 16, revision 2 May 28 19:10:06 URL not found: C:\Program Files (x86)\Android\android-sdk\temp\sources-16_r02.zip (Access is denied) May 28 19:10:06 SimonVT that not going to work as i want to take advantage of the increase realestate on 1080p phones May 28 19:10:26 Ash__: There is no increased real estate May 28 19:10:31 It's still a 4.7" device May 28 19:10:56 SimonVT my nexus 7 can only fit 3 rows yet my htc one can fit 4.... May 28 19:10:57 Making stuff smaller does not mean you have more realestate.. It means people can't see your app May 28 19:12:21 SimonVT images displayed are plenty be enough on both gnex and htc one my images with/height are in dp May 28 19:12:36 SimonVT or dip not sure May 28 19:13:27 What? May 28 19:23:59 7damn osx :((( May 28 19:24:33 can anybody help me with making a live wallpaper .apk? May 28 19:24:56 there is a sample in the sdk May 28 19:25:30 i see it, thx May 28 19:26:13 hello... I have here on my desk an archos gamepad and am trying to find any hint on how to access its game control buttons/joysticks May 28 19:28:17 Any ideas why inventory.getSkuDetails(REMOVE_ADS_SKU); would return null? May 28 19:30:20 pfn there by any chance ? May 28 19:30:27 ? May 28 19:30:27 Quacked, huh, never seen that what is it for May 28 19:31:10 pfn quick question; in qicr - did you use asynchronous i/o , or did you start a thread for each irc server ? May 28 19:31:21 thread per May 28 19:31:45 not really interested in nio at low-scale May 28 19:31:46 ying May 28 19:31:50 sry May 28 19:32:10 LambdaDusk: you can try the onKey event and check if you receive any input here May 28 19:32:49 pfn i think i read dianne H say on a modern device, you should be able to do 10s of threads so yeah, that makes sense. i dont think anyone uses dozens of irc servers. May 28 19:33:08 i 'm doint irc servers but had a similar scenario; ok. thanks for your input May 28 19:33:11 much more than 10s of threads, depending on what the threads are doing May 28 19:33:45 of course, if you're an irc server, then you should definitely be doing it with an event-triggered method May 28 19:34:02 did you try to see how many you could spin up ? May 28 19:34:27 LambdaDusk: in a test activity try ... @Override public boolean onKeyDown(int keyCode, KeyEvent event) { ... } May 28 19:34:32 no May 28 19:35:01 ok, thanks May 28 19:35:14 monsti: Thanks May 28 19:35:16 depends on thread stack vs. device memory May 28 19:36:33 At what point in my ViewPager subclass can I accurately get the width of a particular child? If I do it "too soon" I get 0... May 28 19:38:44 monsti: Seem to work fine, except that some buttons have some "back" action glued on them so the app is closed when I press them May 28 19:39:20 pfn did you try to protect yourself from OOMing in any way from spinning too many threads by watching any callbacks in the Application class ? May 28 19:39:53 like Application.onLowMemory() or something May 28 19:40:16 monsti: Any idea on how to keep it from doing that? May 28 19:42:21 brx_: getting the price of an in app sku May 28 19:42:51 LuxuryMode: After onLayout May 28 19:43:10 SimonVT, didn't seem to work May 28 19:43:14 onsizechanged? May 28 19:43:43 No May 28 19:44:13 hmm May 28 19:44:37 If I do it after onLayout returns, do I need to check if getChildAt(0).getWidth returns 0 and, if so, do the calc again? May 28 19:44:41 later.. May 28 19:46:10 g00s, I didn't, no May 28 19:48:00 You should be able to get the size of the views after onLayout May 28 19:48:05 Any views that are added at least May 28 19:48:30 Subclassing viewpager sounds prone to breaking tho May 28 19:55:16 man retrofit would be sweet if you could provide a Map as it's query params May 28 19:55:53 is it bad to use a progressbar as a separator? May 28 19:55:56 What would that gain? May 28 19:56:02 just a line across the screen May 28 19:56:29 Why wouldn't you draw a line? May 28 19:56:41 funkbox: what would that gain? May 28 19:57:02 JakeWharton: much more flexibility in specifying the query params May 28 19:57:35 funkbox: why do you need it? May 28 19:57:44 Trzaska: which component would that be? May 28 19:57:55 JakeWharton: instead of having method definitions w/10-15 params it could be a single void getById(String id, Map params, Callback callback) May 28 19:58:30 Xabster, thats an awesome idea, you should contact the devs May 28 19:58:31 Xabster: I have no clue, I was just asking. :) May 28 19:58:33 funkbox: why do you have 10-15 params? May 28 19:58:48 JakeWharton: the API could take that many and i want granular loading May 28 19:58:48 brx_: sarcastic? May 28 19:59:02 JakeWharton: i suppose i could just hack it myself and construct the query May 28 19:59:32 Xabster, naa you could be on to something here May 28 19:59:36 i'd like a line between 2 entries in a vertical linearlayout, and i don't see any components that would immediately fit such a separator May 28 19:59:58 so a disabled 100% progressbar seems like a hack, but it'll probably work May 28 20:00:20 Xabster: A view with a background? May 28 20:00:36 Or, drop <4.0 support and use android:divider May 28 20:00:36 yeah, i can draw an image but then i gotta include a resource too May 28 20:00:57 oh you meant a color, not an image May 28 20:01:38 JakeWharton: by hack it i mean something like @GET("/members/{id}/{params}") void getById(@Path("id") String id, @Path("params") String params, Callback callback); where i hide construct the params form a Map myself May 28 20:04:02 How it is possible that with Flash cs6 you could develop android app ? May 28 20:05:35 heloo May 28 20:05:45 God I love Fragments May 28 20:05:45 am i in android dev ? May 28 20:05:50 they are the best thing since sliced breat May 28 20:05:53 bread* May 28 20:05:59 lol May 28 20:06:08 fragments are terrable on games May 28 20:06:19 javaDon, good to see ya! May 28 20:06:23 lol May 28 20:06:32 hey Psych0 May 28 20:06:48 who knows the facebook sdk here? May 28 20:07:23 how I check if a Manifest.xml generated by a SDK is correct? May 28 20:07:40 I tried opening the file from inside the APK, but it is saved in some sort of binary format, not plain text May 28 20:08:28 Brian|BB mind explaining whats so good about fragments? May 28 20:08:38 javaDon, you did it! May 28 20:08:42 Brian|CB May 28 20:08:44 3 hours later :) May 28 20:08:47 yea May 28 20:08:49 lol May 28 20:09:08 8p May 28 20:09:57 Brian|CB mind explaining whats so good about fragments? May 28 20:10:25 i had to do a backslash join after login May 28 20:10:31 nobody told me that May 28 20:10:36 <|0xD34D|> speeder: you can use apktool to disassemble the apk including the resources and AndroidManifest.xml May 28 20:10:59 javaDon, oh dear May 28 20:12:04 brx_ y u no tell me? May 28 20:12:10 but apktool stopped being aupdated a while ago and failed to decode more recent apks May 28 20:12:13 lol wtvr dosnt matter May 28 20:12:38 so nobody here uses the facebook sdk? May 28 20:12:43 you hadalready joined a diffchannel, i assumed you knew that :o May 28 20:12:52 just ask your question, people use it for sure May 28 20:12:54 <|0xD34D|> speeder: umm no it didn't. Somebody else picked up the project and version 2,0 is nearing release May 28 20:13:09 oh May 28 20:13:09 nice May 28 20:13:20 javaDon: UI Flexibility May 28 20:13:44 not when you need it in a game though May 28 20:15:15 ok how would i creat a custom friend picker with the facebook sdk? May 28 20:16:08 the custom meaning that its ui is built only of images ive supplied from my assets folder May 28 20:16:46 javaDon: Create an async task or loader that pulls in the data May 28 20:16:50 im sure facebook provides an API May 28 20:16:52 im trying to create a facebook ui like the one in candy crush May 28 20:16:59 then you can use their graph API if you want to find like profile pics and stuff May 28 20:17:10 Anybody famiiar with bluetooth? I have a simple stub of an app: obtain list of bonded devices, connect to hard-coded device, listen for data. it works, but it asks for PIN every time - even though it got the device from the bonded list (and it thinks that it is already paired) May 28 20:17:28 Brian|CB im guessing you do this with fragments May 28 20:17:38 Bluetooth is weird, I want to play with it someday May 28 20:17:44 my app uses android:installLocation="auto" but refuses to install directly on SD, but it allows you to move it do SD May 28 20:17:47 but as far as communication radios go, I'd rather play with NFC May 28 20:17:48 why is that? May 28 20:17:50 so bluetooth waits for another day May 28 20:17:50 there is an update to the sdk (22.0.1) May 28 20:17:59 javaDon: Doesn't have to be done with fragments May 28 20:18:00 I need to change to "preferExternal" if I wish to allow installing to SD directly? May 28 20:18:24 Brian|CB: range on NFC is a bit limited for me :-P May 28 20:18:32 i know May 28 20:18:44 http://www.pastebin.com/XLwExx8x May 28 20:18:57 currently my request for scores looks like this May 28 20:18:59 range on NFC Is limited for everyone May 28 20:19:03 hence NEAR field communication :P May 28 20:19:05 Unknown Paste ID! May 28 20:19:07 (that's the joke) May 28 20:19:09 but its abilities are pretty cool May 28 20:19:13 plus doesnt use as much energy May 28 20:19:17 also NFC stickers. May 28 20:19:25 whoops May 28 20:19:29 sorry ill redo one May 28 20:20:05 Unfortunately, I'm working with hardware that is out of my control. Bluetooth SPP. May 28 20:20:37 http://www.pastebin.com/TZHWmRJK May 28 20:21:06 currently my pull for scores from the graph api looks like that May 28 20:22:25 how would i cahnge that to also pull the images and the names of those scores? May 28 20:22:38 images meaning just the image urll May 28 20:22:38 I need to connect more then two android devices together without using external network infrastructure, what are my options and what are the limitations May 28 20:23:48 Brian|CB any ideas? May 28 20:24:26 dont really have time to read through code May 28 20:24:29 got my own work to do May 28 20:24:30 maybe later? May 28 20:24:32 I'm guessing my options are Bluetooth and Wifi based, but I am not sure what is exposed in the APIs and what tends to work reliably May 28 20:25:00 how much l8r? May 28 20:25:03 JakeWharton: looks like i can't hack it because it gets re-encoded :( May 28 20:26:27 anyone else here have any ideas thats all i need help with is the right pull link for the scores names and image urls and a custome friend picker May 28 20:26:41 hi May 28 20:26:58 Se7enLC sunno if anyone pointed it out, but there is a i/o session on BT best practices May 28 20:27:01 *dunno May 28 20:27:04 is there someone around that can help me out with a problem building my c++ program with ndk? May 28 20:27:46 g00s: ooh,good call. found it. Thanks! May 28 20:28:09 It's probably to new for Android 2.2 that I'm stuck coding for, biut it might be helpful May 28 20:28:42 i dont think the api has really changed , except for doing a scan for devices with a specific profile May 28 20:29:24 underneath, things have supposedly changed May 28 20:29:35 still waiting for BLE May 28 20:30:14 javaDon: I get off work in 1.5 hours, so probably not for at least 2 hours lol May 28 20:30:30 o gr8 May 28 20:30:40 would u know how to do that though? May 28 20:30:55 or help me woth that May 28 20:32:36 javaDon, you are askin about 100 questions rolled into one :P May 28 20:33:09 g00s: Releaselog for 22.0.1? May 28 20:33:17 lol May 28 20:33:20 no May 28 20:33:23 kakazza dunno May 28 20:33:48 i know thos kinds of questions May 28 20:34:32 but no dw its just the friend picker and if you look at the pastebin if you know the sdk you 4syre know what i need in like 1 minute May 28 20:34:41 22.0.1 was out last week. it mostly fixes some problems with the Gradle build one something with ADT May 28 20:35:26 I see, thanks. May 28 20:35:28 Hi , I am working on finding the count of rows where a value is set to 1 . Please look at this method and share what i am doing wrong here. http://pastebin.com/EiDSvTKN May 28 20:35:28 i check the android sdk manager every day - you know, gotta have those bug fixes - just saw it first today May 28 20:39:04 g00s: http://vanillajava.blogspot.com <--- I am not responsible for asploded heads or unhinged jaws May 28 20:41:48 Anyone have info on a typical entry level android dev salary? May 28 20:42:05 "ramen" May 28 20:42:18 <|0xD34D|> $2.15 May 28 20:42:34 aweee May 28 20:42:56 At some places it's three fitty May 28 20:43:08 LOL @ FITTY May 28 20:43:13 obec: entry level seems to be "make an app by yourself while supporting yourself from another source" May 28 20:43:13 oops, caps May 28 20:43:33 g00s, generally, your VM runs out of memory by failing to allocate VM from the OS if you have too many threads, you don't OOME from heap usage May 28 20:43:42 thread stack space is separate from heap May 28 20:45:00 g00s, it's really up to you to manage the number of threads vs. device memory May 28 20:45:44 obec: above that you start looking at consluting, startups (ramen everywhere outside of fantasy valley ^_-) and sometimes finding a rare a) established company doing android/mobile dev that has place for more b) an even rarer place that needs in-house dev ;) May 28 20:46:15 all, I have a question. I am starting an app that will use the nav drawer. Looking at an online example, the suggestion is to use a Frame Layout May 28 20:46:35 entrylevel... that really depends May 28 20:46:39 anyone here know how to make a custome friend picker with the facebook sdk? May 28 20:46:54 I am not sure if I should use wit the ViewPager as part of it May 28 20:46:58 pfn: well, I was realistic with a side of cynism May 28 20:47:18 I don't know what entry level salaries are anymore May 28 20:47:21 why the hell is the google download server so slow.. May 28 20:47:24 I would expect like $40k, but that seems so low May 28 20:47:27 pfn: Entry level in mobile industry, but have been working on .NET side for a year as an engineer and 2 as test engineer. May 28 20:47:36 maybe $60-80k May 28 20:47:39 USD May 28 20:47:47 For what location? May 28 20:47:55 california May 28 20:48:06 pfn yeah … in most cases i pick some sane size for a thread pool for example; but when doing thread / connection in this case I had to ask whether i should place a limit on the user or just let them connect to as many servers as they want but potentially blow up May 28 20:48:28 so what are you writing exactly? May 28 20:48:46 its just an experimental app for connecting to mqtt brokers May 28 20:48:47 consider your scale vs. thread stack size (android version-dependent) May 28 20:49:14 also, am not sure if I should have an instance of ViewPager for each option selected by a user or use the same instance to handle any option selected by the user May 28 20:50:22 pfn are you on OS X? if so, do you use macvim or 'vim for os x (carbon one). May 28 20:50:55 pfn, are you asking me? May 28 20:57:50 p_l heh; blogspot croaks in FF with noscript May 28 21:03:03 have there been new samples for the Gradle stuff? May 28 21:03:10 trying to point someone to them but all i found was 0.3 May 28 21:03:23 guess I could just clone and zip from AOSP May 28 21:04:41 0.4 seemed like the release it would become minimally viable May 28 21:04:47 or after 0.4 :) May 28 21:05:10 * g00s lets all the devs beta test May 28 21:06:34 that depends on your definition of minimally viable May 28 21:06:41 How do you guys track application state? Would it be best to use a global var? May 28 21:07:16 g00s, macvim if I'm on osx May 28 21:07:59 pfn thx May 28 21:16:43 Is there a way I can get the amount of texture memory on a device? Or the amount of VRAM in general? May 28 21:16:58 hm, update to ADT also May 28 21:20:06 g00s, shouldn't matter which vim you use anyway, just load up all your configs May 28 21:20:08 :p May 28 21:21:35 pfn :) must have had the macvim previously; 'vim for os x' had trouble starting because it was reading macvim specific config options - i think in this case bg transparency May 28 21:22:18 helo May 28 21:24:24 I see May 28 21:24:53 i got them confused; this is pretty recent http://sourceforge.net/projects/macosxvim/files/current/ May 28 21:25:10 i tried sublime and thought it was purdy, but came back to emacs & vim :) May 28 21:25:25 sublime is nice May 28 21:25:42 it is May 28 21:26:05 I'm not really a fan of emacs or vim. so sublime it is for me :) May 28 21:26:07 +1 for sublime. May 28 21:26:31 i wasn't sure if it was $70 nice though ... May 28 21:26:53 lots and lots of plugins. May 28 21:27:02 is it $70? I remember buying it, but I don't remember it being that high May 28 21:27:03 michaelnovakjr have you tried writing one ? May 28 21:27:08 if sublime integrated vim, I'd consider it May 28 21:27:22 huh, I guess it is $70 May 28 21:27:23 g00s: I haven't, but it doesn't appear too bad. May 28 21:27:48 ah. I bought it at $59 May 28 21:28:31 still, seems like a good enough deal to me. It was the first text editor for linux that I really liked May 28 21:28:42 yup May 28 21:29:20 was it just my impression or it hasn't been updated recently; i hope its still being developed ? May 28 21:30:06 Release Date: 14 July 2012; i guess thats pretty recent May 28 21:30:41 g00s: hmm. looks like sublime 3 is in development now May 28 21:30:44 http://www.sublimetext.com/blog/ May 28 21:30:52 didn't realize that. I might have to try the beta May 28 21:31:06 sweet May 28 21:31:26 JakeWharton: are you looking for samples beyond just a simple app? I converted this to gradle https://github.com/codebutler/farebot/blob/master/build.gradle May 28 21:31:27 $30 upgrade fee though :/ May 28 21:31:52 once it's released, at least May 28 21:32:10 codebutler: no looking for the actual samples to pass along to people May 28 21:32:50 you guys will have to pay $30 to upgrade May 28 21:32:51 oh, I wasn't able to find any either. best reference was the IO talk May 28 21:33:04 g00s: May 28 21:33:13 :) May 28 21:33:24 hi, what's the difference between Accept and Accept license in http://d.pr/i/3N4l+ ? May 28 21:33:57 the 0.3 samples are still linked here: http://tools.android.com/tech-docs/new-build-system May 28 21:34:02 just have to scroll down a ways May 28 21:35:34 Has anyone had problems with Android Studio reporting problems with a module when loading, and when you look at the filesystem, the module .iml project file has been deleted? May 28 21:35:55 Happens maybe 1 in 5 times I load Android Studio, and closing it, reverting the iml from git and the starting it back up fixes it May 28 21:36:21 has anyone had luck running AS on Win8? May 28 21:36:25 It's definitely AS deleting the project file May 28 21:36:36 it doesn't even want to start on mine :( May 28 21:36:37 JuiceSSH: if you're using maven or gradle, I've had better luck excluding all idea-related files from source control. they can be regenerated easily. May 28 21:36:43 JuiceSSH the solution is probably to use eclipse May 28 21:36:46 * g00s runs May 28 21:36:50 :) May 28 21:37:08 I'll probably switch back to plain intellij for a while and build with gradle from the cli May 28 21:37:40 I'm using HttpURLConnection. How do I add a request entity? May 28 21:37:52 write it to getOutputStream() May 28 21:37:53 * capella whacks g00s with a tuna May 28 21:39:01 AS issues aside, i'm a happy bunny today. Our SSH client has hit 100k downloads after 4-5months on the Play Store \o/ May 28 21:39:07 capella read foxconn is doing more with FirefoxOS oems May 28 21:39:15 JakeWharton, In the case of needing to write binary data along with plain text, I just write it to the OutputStream? May 28 21:39:26 congrats JuiceSSH ! May 28 21:39:43 I tried telling my g/f but she just. didn't. understand. May 28 21:39:49 :) May 28 21:39:50 alexfu: as long as you write it in whatever format the server expects, yes May 28 21:42:56 michaelnovakjr / JesusFreke so are you guys using sublime for your "android" development ? (quotes for JesusFreke) May 28 21:43:15 no May 28 21:43:33 I use IntelliJ for Android development. May 28 21:43:35 I use it as my general purpose text editor, but don't generally write code in it May 28 21:43:37 same May 28 21:43:47 Sublime ♥ May 28 21:44:54 JakeWharton, I saw a post on the Internet that seem to be writing the actual header data to the OutputStream. Just seems like a lot of work for a a relatively simple task. Wanted to see if there was a different method. May 28 21:45:10 JakeWharton, http://stackoverflow.com/questions/2793150/how-to-use-java-net-urlconnection-to-fire-and-handle-http-requests --- scroll down to "Uploading files." May 28 21:45:57 alexfu: use MimeCraft to write form encoded or multipart data to an OutputStream: https://github.com/square/mimecraft May 28 21:46:12 or use a higher-level abstraction like Retrofit http://square.github.io/retrofit/ May 28 21:48:16 JakeWharton, oh wow. nice. May 28 21:50:00 JakeWharton, what about basic auth? May 28 21:50:12 that's just a header May 28 21:50:24 Authorization: Basic (*@$F(H)H@#F May 28 21:50:24 JakeWharton, oh right. oops May 28 21:51:34 JakeWharton, thanks May 28 21:54:39 any ideas what could be causing one of my PNG textures to be showing up as black, using opengl es 2.0? May 28 21:55:17 I fixed a couple of the others by making the textures larger and powers of 2, but this one's not budging May 28 22:08:25 should i be able to use the same Handler for multiple ContentObservers ? May 28 22:09:23 ugh may as well just start looking at the code May 28 22:17:39 hey, i'm asking if there's a way or how to i can get whatsapp ntification sent by email ? May 28 22:17:54 f00bar80: talk to whatsapp May 28 22:18:36 evanc, is there no way to do it in the android events backend ? May 28 22:18:45 no May 28 22:20:05 evanc, i thought events can help in that , i.e when a whatsapp notification is fired an event notify the gmail registered addres with a message May 28 22:20:40 f00bar80: notifications are private and not exposed to other apps. If WhatsApp wants to notify people who are interested, they can do that, but I doubt they do. May 28 22:21:05 ("people" = "other apps") May 28 22:23:11 Say I want to create a list of things using a bunch of objectes crated from a certain type. Is it generally better practice to only pass the strings needed to make the list, or pass an object reference to the CustomAdapter (or array adapter) to inflate the layout? May 28 22:24:07 evanc, i'm asking cause i found this video http://www.youtube.com/watch?v=zOmS8lHwvKc May 28 22:39:57 I'm using the google play services library; and the google drive api. I've added a client-id for my app (debug mode, with a debug certificate) -- that works fine. I just added another client-id -- release mode, signed with a different certificate. I've added a new client id for this, same package name, different certificate fingerprint. Access from the release app fails, http://pastebin.com/iMuSYH80 May 28 22:41:32 I notice [from the api console] that the client-id created for the second app is almost, but not exactly the same as the debug client-id. The first client-id reads NNNNNN.apps.googleusercontent.com, the second reads NNNNNN-xxxxxxxx@apps.googleusercontent.com -- is there some bug/magic with two client-ids that are for the same package? May 28 22:45:43 I dont understand the developer payload used with launchPurchaseFlow. Can someone explain? May 28 22:46:16 Its the fifth dot here: http://stuff.mit.edu/afs/sipb/project/android/docs/training/in-app-billing/purchase-iab-products.html#Purchase May 28 22:46:59 Brian|CB you around yet? May 28 22:48:16 anyon hereknow the facebook sdk atall? May 28 22:48:24 or how to customize a friend picker? May 28 22:56:06 aw yeah May 28 22:56:16 awesome android scifi fragment animation effect May 28 22:56:19 finished May 28 22:56:44 too bad there are no android screen recorders that perform well enough :( May 28 22:57:03 why aren´t there? Shouldn´t streaming to pc be pretty simple? May 28 22:58:52 i've always assumed it's because they can't save out the bitmaps dumps they are undoubtedly doing at 60fps... found it ultimately simpler just to take a video of the actual device. May 28 22:59:29 er "undoubtedly doing, at 60fps" May 28 22:59:55 well, you´d need to buffer the stream I guess May 28 23:00:18 but an app like camstudio or fraps can do that May 28 23:00:30 I just need to have a realtime stream of my android screen May 28 23:00:32 The only other 'good' way is to do hdmi out, to a device with a hdmi digitiser May 28 23:00:37 Joozey during i/o they use overhead cams May 28 23:01:00 i thought in 'a moving experience' thats what they had anyhow May 28 23:01:53 hdmi out is via usb still? May 28 23:02:11 or bluetooth/wifi May 28 23:03:49 Joozey: get an HDMI capture card May 28 23:04:03 but you have to get a nice one May 28 23:04:07 (what's a nice one? no clue) May 28 23:04:17 blue May 28 23:06:15 (all this explains why people typically demo android apps with an overhead cam ;-) May 28 23:06:51 I've had some joy with my nexus 4 and an hdmi overhead projector -- but still painful to capture easily into a video. May 28 23:08:07 One issue being that it doesn't do portrait hdmi... random silliness. May 28 23:09:06 in idea , whats the quickest way to 'implement methods…" like eclipse (get a list of things to override given my cursor is in a class, have it add the signature, etc) May 28 23:09:48 oh, Generate May 28 23:22:40 g00s: other than googling it, just hit and start typing what you want ctrl+shift+a May 28 23:25:53 does anyone know some good recent books that teach 4.2 jelly bean development? May 28 23:40:16 if you don't specify your style will it be using the phones default theme/style? May 28 23:41:13 if so, can I change the simulator's style? May 28 23:41:20 eclipse ADT bundle May 28 23:41:54 yes, kind of, respectively May 28 23:42:03 default style is dictated by the API level of the device May 28 23:50:48 JakeWharton, but if it's changed on the phone will my app adobt it? May 28 23:51:16 right now i'm running a thing targeted to 4.1.2 and it looks horrible :7 May 28 23:51:16 if you're not specifying an explicit style, yes May 28 23:53:54 anybody knows how what in this video http://www.youtube.com/watch?v=zOmS8lHwvKc is or can be done? May 29 00:04:17 Say I want to create a list of things using a bunch of objectes crated from a certain type. Is it generally better practice to only pass the strings needed to make the list, or pass an object reference to the CustomAdapter (or array adapter) to inflate the layout? May 29 00:05:31 I really need to be ableto edit the object so it seems i need to pass an object reference, or atleast all of the data contained in it... Should i have kept this part in my main class that holds that object reference maybe? May 29 00:05:42 Any help would be greatly appreciated... i'm pretty stuck :( May 29 00:11:27 flipture you dont just have to pass strings; at minimal you could keep track of a string to display and opaque id pointing to your model for edit/update; if your object is lightweight enough you could just put the object in the adapter itself May 29 00:13:08 what do you mean opaque id? May 29 00:13:38 a pointer into your model, whether _id column from sqlite, uuid, etc May 29 00:13:56 and its light weight at this point but want to learn the "correct" way to do it in case it grows... May 29 00:13:57 or a reference to an object May 29 00:14:08 oh ok May 29 00:14:16 oops, no May 29 00:14:21 adapter ids are longs May 29 00:14:25 sorry May 29 00:14:33 so i'd save the reference to the object to a built in android thing, then grab it from the other object/class? May 29 00:14:47 i basically have a class that manages categories and list items May 29 00:15:09 i created another activity that one would use to edit or add categories May 29 00:15:27 i don't want to just stick it all in my main activity as i feel thats probably bad practice May 29 00:15:30 oh, so maybe you want to use ExpandableListView or something May 29 00:15:38 but i'm having trouble finding the "right" way to do it without getting TOO complicated... May 29 00:15:59 you mean keep it in the same activity? or is that something else? May 29 00:16:18 flipture have you looked at the ApiDemos yet ? May 29 00:16:33 right now my new activity/intent uses a customAdapter to populate the layout with the category names May 29 00:16:58 and i plan on grabbing the click(touch) and using that to send the appropriate category object to be edited by the next layout May 29 00:17:03 g00s: nope, not yet May 29 00:17:42 flipture also, see http://cyrilmottier.com/2011/07/05/listview-tips-tricks-2-section-your-listview/ May 29 00:18:08 I dont understand the developer payload used with launchPurchaseFlow. Can someone explain? May 29 00:18:09 Its the fifth dot here: http://stuff.mit.edu/afs/sipb/project/android/docs/training/in-app-billing/purchase-iab-products.html#Purchase May 29 00:21:04 g00s: cool, taking a look May 29 00:21:26 g00s: can you suggest what you would think to be the most accepted "correct" way to do what i'm doing? May 29 00:22:16 g00s: should i just be sticking everything that edits and messes with the lists into the one activity and use different views? May 29 00:22:38 probably not; you're asking very general questions May 29 00:22:48 i dont know how to answer May 29 00:23:03 g00s: trying to find how to ask my question correctly :) May 29 00:23:11 are you familiar with MVC ? May 29 00:23:16 nope May 29 00:23:22 okie; start there May 29 00:24:13 model is explanatory, probably database or persisted storage; activity / frag is kinda like controller, view you get May 29 00:25:43 hum neat May 29 00:25:46 i'll get to reading... May 29 00:30:44 if one were to pass a serialized object and unserialize it, you would have to reserialize and return that object, then overwrite, right? May 29 00:31:06 dont serialize on android May 29 00:31:16 using Serializable May 29 00:31:19 parcelable? :) May 29 00:31:23 that bad too? May 29 00:31:50 thats ok May 29 00:32:01 g00s: s/on android/ever/ May 29 00:32:50 then maybe just write all my data to sqllite and grab it from there to populate a new object of the same type in the other activity? May 29 00:33:45 flipture you are asking very general questions; answers to which can be qualified and qualified even further - probably best to read some good code May 29 00:34:09 yeah... i've been unable to find examples close to what i'm trying to do May 29 01:39:10 why does play store say my app is compatible with 1.6 when I set the minSdk to 9? May 29 01:49:12 9 isn't 1.6 May 29 01:49:19 oh, it says it is compatible May 29 01:49:21 * pfn shrugs May 29 01:49:29 are you sure you set it to 9 May 29 01:49:39 because it sounds like no May 29 01:57:18 pfn, pretty sure since when i upload the APK, dev console also says API levels 9+ May 29 02:09:52 hey jake wanted to say thank you for the info on wrapping my outputstream with BufferedOutputStream it seems to have improved performance a lot May 29 02:10:49 Afzal, download your apk, aapt d badging or whatever on it and see what it says it is May 29 02:13:54 anyone know if linux command output is consistent among all android os's for parsing purposes? May 29 02:15:43 linux command output? form or content? guess you'll have to fire up a few emus and find out :) May 29 02:16:57 funny you say that because i have tried running the app on emu and it crashes after sending the command and trying to obtain the output May 29 02:18:53 i have ran the app on 2 gingerbread devices and nexus 7 and the parsing has worked flawlessly so im thinking the output will be the same. May 29 02:29:37 if i have 100+ lines in an arraylist and i add them all to one string would wrapping my outputstream with a BufferedOutputStream then write(string.getbytes) be the fastest way to write to the outputstream? May 29 02:31:42 i think if you are using strings, you should be using reader / writers May 29 02:32:09 ill look into that thx May 29 02:33:03 t4nk413, if you have some reason to generate an intermediate string containing all of the items concatenated, you might want to look at StringBuilder. May 29 02:35:09 oh, i thought he wanted to write the lines somewhere May 29 02:36:24 yea im trying to write the arraylist to an outputstream and wrapping the outputstream with bufferedoutputstream seems to increase the speed of the write May 29 02:37:22 at first i was just writing line by line to the outputstream and that was way to slow May 29 02:40:22 Hey guys! how long does it take for dev's account to be verified ? May 29 02:42:26 if your nick is "nomo" it could be a while May 29 02:44:13 Anyone have any suggestions for the directory for which to unpack Android Studio into on Ubuntu? /usr/local? /opt? May 29 02:44:27 both are fine May 29 02:44:39 but i would put it in opt May 29 02:45:39 I have a question. What is it about the android architecture from 2 to 3 to 4 that prevents retaining of code from android 2.3 devices and using that to support android 4.0 devices? Why is the code not compatible? May 29 02:46:09 linuxuz3r, thanks. Any specific reason why? May 29 02:46:39 so if i understand this right i can append to the stringbuilder object and it would have less overhead then concatenating with +? May 29 02:47:54 well i would check if there are many universal apps residing in /usr/local and /opt May 29 02:48:03 then put my apps there May 29 02:48:09 google there too May 29 02:48:15 google can too May 29 02:49:14 t4nk413, well, the thing is strings are immutable. if you're repeatedly s = s+line, you're causing a lot of allocations and deallocations. it wasn't clear from your original question whether or not you wanted to have the whole thing in memory in one large buffer. if you don't have any reason for that, what you're doing now probably makes the most sense. May 29 02:51:01 thanks timemage that clears things up for me May 29 02:51:11 linuxuz3r, ya I think you're right. /opt it is. May 29 02:52:09 Ah, so this is help with developers using android. What is the channel for those actually in the process of developing the android OS? May 29 02:54:40 Anxi80, if you haven't already, you could look at man hier it attempts to to explain someone's rational for the filesystem layout. it's gotten kind of screwed up over the years. for whatever reason i just put mine in /android-sdks. i'm sure some linux standard base guy is pulling their hair out on reading that. =) May 29 02:55:10 Anyone developing apps using the emulator? How well does it work? May 29 02:55:23 timemage, haha i already read through man hier and like you say it is unclear to say the least :) May 29 02:55:24 Or the android virtualbox rom May 29 02:56:51 wonton, the emulator works well from my experience but performance tuning is much better with an actual device May 29 02:58:20 I usually try to develop the core first, develop sans graphics (or with horrible ascii art)... that's not true... I have yet to finish anything. XD So I guess I don't have a usual way. However, in all my class projects, I've found graphics only slowed me down. May 29 02:59:11 I really need to learn to make a game loop and connect the low level to the high level. **** ENDING LOGGING AT Wed May 29 02:59:58 2013