**** BEGIN LOGGING AT Tue Jul 16 22:42:58 2013 Jul 16 22:59:18 cool, textual 3.1.0 update :) Jul 16 23:08:52 *Fixed focus being changed unexpectedly during channel auto join. Jul 16 23:08:53 woohoo Jul 16 23:09:21 curious still if someone can give me an idea of the 'right' way to grab jpegs from a camera preview and send them off to a server for processing asynchronsyly Jul 16 23:09:50 generally i would be taking the photos, sending them to a server which would then respond with some json that would be used to render something on top of the video Jul 16 23:10:52 do i just call takePicture on a timer, and/or do i place some additional layer on top of the surfaceview so that when i subsequently grab jpegs from the camera i don't get whatever i drew on the screen as part of the output Jul 16 23:11:18 what i don't want to do is have the application get stuck in io waiting for a response Jul 16 23:15:18 gdoteof: use events. a timer (or user-triggered action) to take pictures & queue them for a background process to upload. the background process can upload, and broadcast the resulting json on an event. other camera code can listen to that event to update the ui camera overlay when triggered Jul 16 23:16:17 TheDruidsKeeper: thanks! i will look into that right now Jul 16 23:18:39 wrt authenticating a user via PlusClient in my app. am i expected to keep a reference to the PlusClient activity somewhere if i want to call clearDefaultAccount() and disconnect() on a separate activity from the one where i called connect()? Jul 16 23:19:02 sorry, PlusClient instance, not activity Jul 16 23:19:21 TheDruidsKeeper: events aren't really android specific then? i would be implementing ActionListener in my own class and just pass it the relevant metadata to be able to update the ui thread Jul 16 23:20:50 events are not android specific, they're from java (most languages have them). the android-specific code comes in when you want to update the ui on it's thread Jul 16 23:21:16 TheDruidsKeeper: okay that makes sense Jul 16 23:27:28 is it possible to programmatically (not statically) add two fragments to an activity? Jul 16 23:28:58 yes Jul 16 23:30:59 thank you ... i must be doing something wrong then Jul 16 23:33:51 my LogCat in eclipse stops working every now and then ... what is the best solution to make the messages re-appear? (I checked with adb, and it does see the correct device) Jul 16 23:35:33 ttom yeah, its flaky. i use the terminal Jul 16 23:36:48 ttom: Google 'plogcat'.. Colorizes it according to rules you can set. Jul 16 23:36:56 thank you Jul 16 23:38:54 just re-start adb from eclipse Jul 16 23:38:58 and logcat messages will show up again Jul 16 23:42:18 i've been having a lot of problems with adb lately, just from the command line. only crashed a few times but doesn't start up right, doesn't see newly running emus, drops connections, etc ... Jul 16 23:42:25 more trouble lately than ever Jul 16 23:42:42 just dab and the emu, nothing else Jul 16 23:42:45 *adb Jul 16 23:44:25 i've been using the xcode stuff a lot lately and it has its share of bugs, but man is the experience a world of difference Jul 16 23:45:03 g00s: xcode gets on my nerves Jul 16 23:45:19 yeah, me too. i like intellij (and eclipse for that matter) Jul 16 23:45:25 I'd take my adb, ant, vi anyday Jul 16 23:45:30 but its the android TOOLS that collectively kinda suck Jul 16 23:45:41 adt, adb, emu, etc Jul 16 23:45:44 g00s: they do suck Jul 16 23:45:45 you complain a lot without actually doing anything to help Jul 16 23:45:47 * pfn shrugs Jul 16 23:46:03 hi Jul 16 23:46:17 pfn people that have the most interest and investment in things often complain the most and are the harshest Jul 16 23:46:33 not really Jul 16 23:46:34 a strange thing, even when it comes to online reviews. etc Jul 16 23:46:41 im looking for a way to iterate through my textviews... like i have them id'ed tv1 tv2 tv3 Jul 16 23:46:42 people that have the most interest complain and then do stuff to improve Jul 16 23:46:50 anyhow, google has tons of resources Jul 16 23:46:58 and they get paid a lot Jul 16 23:47:01 people that don't really care, just like having their voices heard, just complain Jul 16 23:47:04 and don't really do much Jul 16 23:47:05 is there a way to loop through them using the numbers Jul 16 23:47:30 Makalak, don't really do that... Jul 16 23:47:45 Makalak, store the ids in an array, use an adapter view, etc. Jul 16 23:48:28 pfn ok thanks, but i shouldnt do what? Jul 16 23:48:38 Makalak, iterate over "variable names" Jul 16 23:48:43 wrong way to think about it Jul 16 23:49:25 pfn the thing is, i have data that fit with them through that name... like im reading data from mifare card.. and it contains pages Jul 16 23:49:28 and so forth Jul 16 23:49:44 does that matter, no Jul 16 23:49:53 no Jul 16 23:49:53 it's irrelevant Jul 16 23:51:09 how to I explicitely tell what device to listen to when using plogcat? Jul 16 23:51:29 ttom isn't just piped from stdin? Jul 16 23:52:10 i haven't looked at the script itself ... thought I had to simply run plogcat Jul 16 23:52:19 Makalak: perhaps people could better help you if you posted an image of the UI you are trying to create. Jul 16 23:52:59 Makalak, if you're programmatically creating views, you should identify them in other ways besides an R.id constant Jul 16 23:53:04 g00s: no, it is a stand alone script/cmd Jul 16 23:53:06 http://s1294.photobucket.com/user/Thunder0077/media/2013-07-16_21-42-43_zps31c65b87.png.html Jul 16 23:53:08 im not Jul 16 23:53:15 im editing them programmatically Jul 16 23:53:22 setting value to them Jul 16 23:53:25 then map them Jul 16 23:53:31 ? Jul 16 23:53:32 use a Map Jul 16 23:54:12 pfn can you link me to that? Jul 16 23:54:16 no Jul 16 23:54:32 start off by reading the book thinking in java Jul 16 23:54:38 once you've accomplished that, return to your problem Jul 16 23:54:48 use weakreference map Jul 16 23:54:59 pfn thanks found it.. i wasnt being lazy.. googling android map... showed up google maps Jul 16 23:55:02 otherwise you will get memory leaks Jul 16 23:55:11 depends on what you're doing Jul 16 23:55:21 if the Map is inside your view, or inside your activity, you won't Jul 16 23:55:42 pfn i dont understand why you recommend TIJ; it has to be the worst book to get someone started off on Java in 2013 Jul 16 23:55:50 if it is inside our activity, you must make it as weak reference ... Jul 16 23:55:58 g00s, is it? why do you say that Jul 16 23:56:04 plogcat rules! many thanks to whoever suggested it :) Jul 16 23:56:25 yeah, thinking in Java is not as good as thinking in C++ Jul 16 23:56:33 its horribly out of data, bruce stopped caring about java 10 years ago, its way to think for what its purpose is, there are much better alternatives, etc Jul 16 23:56:38 shipit: how do you select the device to use in it? Jul 16 23:56:43 it covers generics Jul 16 23:56:48 which is about all you need out of it Jul 16 23:56:53 java hasn't really changed much in the last 10 years Jul 16 23:56:54 and the latest edition isn't even free, Jul 16 23:57:01 design patterns remain pretty much the same Jul 16 23:57:15 and yes, most people that care, stopped caring about java 10 years ago ;-) Jul 16 23:57:23 so it makes even less sense to BUY an outdated java book Jul 16 23:57:28 but it isn't outdated Jul 16 23:57:33 because the language hasn't changed in the past 10 years Jul 16 23:57:49 ttom: I just have one device connected :| Jul 16 23:57:54 you have some minimal features in java1.6 and 1.7, and they are largely irrelevant to android Jul 16 23:58:25 shipit: i am getting error: more than one device and emulator Jul 16 23:58:34 need to look into the script itself Jul 16 23:59:52 ttom: yeah, I'm looking at the script too, curious .. Jul 17 00:01:24 shipit: it calls it directly using adb logcat ... if I replace that by 'adb -e logcat' it will use the emulator :) Jul 17 00:01:43 ttom: doesn't look like it passes any flags/options from cmdline to adb Jul 17 00:02:10 shipit: yes, that's why it complains in my case ... I need to add the '-e' after the 'adb' Jul 17 00:02:16 toastcfh: you are right! :) Jul 17 00:02:26 oops Jul 17 00:02:32 I meant ttom you are right Jul 17 00:03:22 so im going to add my ImageViews to my table layout. If i simply use a for loop and iterate through the array of ImageView objects that have been populated, can i find the layout via findViewById adn then .addView(ImageViewVariable[iteration])? Jul 17 00:03:46 this would be done in the onCreate function of the activity Jul 17 00:04:11 and will it fill up the table based on its dimensions in order from left to right top to bottom? Jul 17 00:04:22 or does that only work in a linearlayout? Jul 17 00:06:27 Shinkamui: you may find it easier to use the GalleryView or ViewPager Jul 17 00:07:02 ill look them up, haven't tried either before Jul 17 00:09:31 ok so the way i have it now is... View[] TV= {findViewById(R.id.Page0 to 15)} and loop through them Jul 17 00:10:40 there's nothing really wrong with that. i'd probably build the UI dynamically rather than hardcoding a bunch of repeated XML, though. Jul 17 00:14:48 codebutler im not buildinh Jul 17 00:14:52 im setting the values Jul 17 00:15:00 changing to be more correct Jul 17 00:20:11 ummm... Jul 17 00:20:20 the values are not being set Jul 17 00:20:31 ((TextView )TV[j]).append(HexLockBits); Jul 17 00:21:02 ((TextView )TV[j]).setText(HexLockBits); Jul 17 00:21:14 thats other one only applies for the 1st TV Jul 17 00:24:46 is TV a constant? no? then don't use all caps for its identifier. Jul 17 00:25:18 ok Jul 17 00:26:32 the loop is getting skipped... ummm Jul 17 00:29:15 http://pastebin.com/8tzYH5Uh Jul 17 00:29:22 why is the loop getting skipped?? Jul 17 00:33:44 ok stupid mistake Jul 17 00:34:00 for ( int j = 0; j == 15; j++ ) { Jul 17 00:34:01 doing all those findviews … is lame Jul 17 00:34:59 g00s what do you suggest? Jul 17 00:36:57 i'm still not sure what you're trying to do though. looking at the code, there is a smell Jul 17 00:37:47 http://s1294.photobucket.com/user/Thunder0077/media/2013-07-16_21-42-43_zps31c65b87.png.html Jul 17 00:38:13 listview? Jul 17 00:38:52 textview Jul 17 00:38:53 Makalak yeah … why not use listview ? Jul 17 00:39:34 listview with custom adapter, make an xml file containing the row view elements then use a datastructure for each "page" Jul 17 00:40:21 plugged into the adapter for the listview Jul 17 00:40:25 umm i need to be able to edit them to write back to the card Jul 17 00:40:36 yeah that's no problem Jul 17 00:40:44 you can handle clicks on your listview Jul 17 00:40:58 plus it'll scale to whatever page count you have and scroll automatically Jul 17 00:41:51 for instance look at: http://www.ezzylearning.com/tutorial.aspx?tid=1763429 Jul 17 00:42:24 it'll require some rework but this would be the standard/recomended way to handle that kind of UIX Jul 17 00:43:18 grrr... i just got this working :p Jul 17 00:43:27 ill have a look at this now Jul 17 00:43:48 listview is like android bread & butter, you have to know it Jul 17 00:45:00 Makalak: it'll make your life easier if you just do it ;p Jul 17 00:45:15 particularly if you are going to make more apps, like g00s said it is bread n butter Jul 17 00:45:52 ummm Jul 17 00:45:59 Makalak also, your rows should be no less than 48dp Jul 17 00:46:05 tall Jul 17 00:46:13 that stuff is too crammed Jul 17 00:46:27 i want it to all be in view Jul 17 00:46:36 and for the checkbox, you might be able to use the contextual action bar Jul 17 00:46:40 so that i can compare for the data Jul 17 00:46:48 Makalak wut Jul 17 00:46:53 makalak that is what the underlying datastructure is for Jul 17 00:46:59 thats a concern of your domain model Jul 17 00:47:01 did you look at the ezzylearning tutorial? Jul 17 00:47:19 the view is backed by the Weather.java class, which you can add a isEqualTo method Jul 17 00:47:26 or whatever you are comparing Jul 17 00:47:29 but will it ALL be viewable in one shot Jul 17 00:47:38 ? Jul 17 00:47:41 no Jul 17 00:47:50 im comparing different cards Jul 17 00:47:52 i dont know what you mean by viewable and one shot Jul 17 00:48:16 i scan a card and take a screen shot Jul 17 00:48:20 send it to my pc Jul 17 00:48:30 and then view the cards 1 by 1 Jul 17 00:48:46 as i move from one to one i can see where the data has changed Jul 17 00:49:13 um Jul 17 00:49:24 what does this have to do with that screenshot? Jul 17 00:50:10 g00s was saying the data is crammed Jul 17 00:50:39 ohh well are you making an app that will be deployed on only one type of android device? Jul 17 00:50:55 and the whole point is that a listview will scroll Jul 17 00:51:00 ummm Jul 17 00:51:09 well i dont even know if ill release it Jul 17 00:51:10 unless you are deploying on only one device you have no garuntee anything will fit Jul 17 00:51:24 it a handy app made for me.. but i can see people using it Jul 17 00:51:39 as there are only 2 paid apps that do this, in the entire store Jul 17 00:52:04 all the more reason to use actual design standards ;p Jul 17 00:52:20 :p Jul 17 00:53:14 and anyways, lets say you wanted to ignore what goos said, instead of having to set each view hieght Jul 17 00:53:19 you can just do the one in your row layout Jul 17 00:55:22 capella are you on roadrunner ? Jul 17 00:55:37 ISP service - yes Jul 17 00:57:14 sucks lately - I've got a tech coming out tomorrow as my IRC keeps dropping, my SSL to mozilla and genl web access also Jul 17 00:57:16 I think their domain nameservers arent keeping up ... when I switch to googles |trouble goes away| Jul 17 00:58:01 i use openDns Jul 17 00:58:05 but yeah, weird Jul 17 00:58:25 * capella googles openDNS Jul 17 00:58:54 * g00s recommends dnscrypt when using vpn Jul 17 00:59:25 use google's nameservers if you want them to track you for their profit Jul 17 00:59:33 yeah, fuck that Jul 17 01:00:52 so just use openDNS |208.67.222.222 |208.67.220.220| versus |8.8.8.8| and |8.8.4.4| and all is free / well ??? >) \o/ Jul 17 01:00:53 | Jul 17 01:03:30 g00s: wonders if that'll also fix my phone service? I have a 3-1 bundle and when my 'net goes out my phone bounces too Jul 17 01:03:43 (cable doesnt notice) Jul 17 01:03:57 hmm Jul 17 01:04:03 for voip maybe Jul 17 01:04:10 internal VOIP perhaps Jul 17 01:04:39 if you plug your phone into your cable modem, i doubt it Jul 17 01:04:57 like some of these weird as cisco things Jul 17 01:06:08 well i mean yah ... I connect phone to the modem so they must route the phone over TCP/IP versus splitting into twisted pair copper outside Jul 17 01:06:55 those bundles here are expensive; the cisco units have li-ion batteries in them in case the power goes out but... Jul 17 01:07:44 yep - my old cable modem didnt have the battery ... got a new modem two weeks ago and like "Hey!" :D Jul 17 01:08:11 the fewer Li batteries, the better imho Jul 17 01:08:28 especially as that thing gets old Jul 17 01:09:08 Ah well, I'm gonna leave the router generic and let the tech do his job ... quietly switch to openDNS after he leaves if he gets stuck on an answer ... you'd think for what we pay they should fix it Jul 17 01:11:18 10 bucks he says 'the connection was loose' Jul 17 01:11:21 :) Jul 17 01:11:43 seems like thats their fallback Jul 17 01:11:52 when they don't know what the hell is wrong Jul 17 01:13:55 shipit_: galleryview seems to be depricated in 4.2.2? Jul 17 01:13:57 can i still use it? Jul 17 01:14:05 studio shows gallery with strikethru Jul 17 01:14:27 but the tutorial on GalleryView says i need that and my layout to dynamically populate it with an adapter Jul 17 01:16:06 Shinkamui: ah yes, it is indeed deprecated, you can still use it Jul 17 01:16:40 you want to display a grid of images? Jul 17 01:17:08 in that case, please look at GridView -- http://developer.android.com/reference/android/widget/GridView.html Jul 17 01:18:21 haha, i had started with that, before i discovered the Gallery item Jul 17 01:18:37 ImageAdapter is undefined, and it wont populate Jul 17 01:18:53 though i've added both widget.adapterView and AdapterView.*; Jul 17 01:19:05 this is some slaptastic crazy Jul 17 01:21:18 is adding elements to ArrayAdapter using the add() method must be done on the main (UI) thread? Jul 17 01:21:19 can I display the content view below ActionBar? Jul 17 01:23:15 ttom: can be done on any thread Jul 17 01:24:01 Napalm: how do you know that the thread synchronization is taken care of by that method? Jul 17 01:26:14 i never said it was synchronized Jul 17 01:26:59 if it is not, then the call must be done from the main thread ... otherwire there might be race condition Jul 17 01:27:09 ? Jul 17 01:27:19 what are you talking about? Jul 17 01:27:31 ttom: the adapter will dispatch notifyDatasetChanged() and the ListView will be scheduled for repaint Jul 17 01:27:48 ttom: race condition? Jul 17 01:28:56 or may be not ... Jul 17 01:29:11 depending whether adding to a list is thread safe or not Jul 17 01:33:04 my fault, i made the mistake of looking at a code snippet and not the entire sample Jul 17 01:33:25 i see imageAdapter is actually extending baseAdapter Jul 17 01:33:34 *groan* i need to read more on this Jul 17 01:38:57 reading is fun! Jul 17 01:42:19 so I'm implementing a custom view on which there will be custom drawing, the best class to extend from is View? Jul 17 01:44:42 yoyo.. any1 know how to properly open a nav drawer w/ the new drawer lib? trying out: this.drawerActivity.getDrawerLayout().openDrawer(Gravity.RIGHT); Jul 17 02:15:54 noone? Jul 17 02:19:03 <|0xD34D|> I've never used the openDrawer variant that takes a gravity value Jul 17 02:21:14 have you used one at all? Jul 17 02:21:25 <|0xD34D|> I've used it a couple times Jul 17 02:21:51 <|0xD34D|> I use openDrawer(View v) and closeDrawer(View v) Jul 17 02:22:09 ah Jul 17 02:23:59 hmm what do i pass it for the view.. Jul 17 02:24:19 <|0xD34D|> the listview in your DrawerLayout Jul 17 02:24:39 <|0xD34D|> I basically followed this when I first implemented it http://developer.android.com/training/implementing-navigation/nav-drawer.html Jul 17 02:26:08 gotcha Jul 17 02:26:08 thanks Jul 17 02:26:12 awesome Jul 17 02:26:17 <|0xD34D|> np Jul 17 02:26:22 wtf is this gravity then Jul 17 02:27:16 <|0xD34D|> just used for moving either the left drawer or the right drawer Jul 17 02:27:55 damn same error Jul 17 02:28:00 <|0xD34D|> what's the error? Jul 17 02:28:01 and thatll just open it right Jul 17 02:28:18 <|0xD34D|> assuming you have everything set up correctly, it will Jul 17 02:28:48 this.drawerActivity.getDrawerLayout().openDrawer(this.drawerActivity.getLeftLayout()); Jul 17 02:29:23 hmm i think it might be outside of this Jul 17 02:29:52 <|0xD34D|> I'd suggest going through that link and try to implement it based on the examples there Jul 17 02:31:52 do i call openDrawer() on my ListView? Jul 17 02:32:01 or my DrawerLayout? Jul 17 02:32:13 <|0xD34D|> openDrawer() is a method in DrawerLayout Jul 17 02:32:32 <|0xD34D|> and you pass it your listview that is part of the DrawerLayout Jul 17 02:33:26 leftDrawer = (ListView) findViewById(R.id.leftDrawer); Jul 17 02:33:34 etc Jul 17 02:33:35 leftDrawer.setAdapter(new ArrayAdapter(this, android.R.layout.simple_list_item_1, menuItems)); Jul 17 02:33:37 lookin good Jul 17 02:33:38 hmm Jul 17 02:33:50 <|0xD34D|> so pass leftDrawer into the openDrawer() method Jul 17 02:35:42 is there a GCC or ports for Android? Jul 17 02:36:39 <|0xD34D|> there is gcc for the various architectures like arm or mips Jul 17 02:45:49 |0xD34D|, cool, I've got an Arm7 Android device and I wanted to put some standard *nix toolchain apps on, currently I'm using busybox and toolbox Jul 17 02:47:22 |0xD34D|: that sample doesnt use openDrawer Jul 17 02:47:51 <|0xD34D|> no but if you follow it you can easily call openDrawer(leftDrawer) Jul 17 02:48:17 <|0xD34D|> I did that in an app for the first few runs of it until the user manually opened the drawer Jul 17 02:49:19 and you had no issues eh? Jul 17 02:49:27 not getting any errors Jul 17 02:49:34 maybe i should trycatch Jul 17 02:49:36 <|0xD34D|> none that I recall not being able to work out Jul 17 02:49:53 <|0xD34D|> what is the error? what's the stack trace say? Jul 17 02:50:13 no error no strack trace.. no menu opens Jul 17 02:50:22 a ListView? or a View? or what Jul 17 02:50:25 <|0xD34D|> so what is a try catch going to do? Jul 17 02:50:42 or like R.Layout.main ? Jul 17 02:50:43 let me try Jul 17 02:50:44 <|0xD34D|> if it's not throwing an exception there's nothing to catch Jul 17 02:51:24 <|0xD34D|> are you creating an xml layout like in the example and then using setContentView() with it? Jul 17 02:52:25 yup Jul 17 02:52:27 my view works great Jul 17 02:52:40 hadlers are working fine Jul 17 02:53:20 nothing .. damn Jul 17 02:53:36 im actually writing a cordova plugin and I get this too which is odd http://stackoverflow.com/questions/14227152/android-phonegap-error-calling-method-on-npobject Jul 17 02:53:59 but outside of that im running http://pastebin.com/bcPF5L2a Jul 17 02:54:01 <|0xD34D|> sorry I don't mess with phonegap Jul 17 02:54:13 yea thats ok thats irrelevant Jul 17 02:54:17 this is all native Jul 17 02:54:56 let me try binding Jul 17 02:55:29 <|0xD34D|> why don't you do everything inside the activity? Jul 17 02:55:58 <|0xD34D|> and then make a public method called openDrawer() and then call this.drawerActivity.openDrawer()? Jul 17 02:56:24 id be happy to as soon as it worked Jul 17 02:57:10 <|0xD34D|> I'd work on getting it all working within the activity first Jul 17 02:57:19 <|0xD34D|> I'm guessing you are accessing it somewhere else since I see this.drawerActivity Jul 17 02:58:04 yes exactly **** ENDING LOGGING AT Wed Jul 17 02:59:59 2013