**** BEGIN LOGGING AT Wed May 02 02:59:58 2012 May 02 03:00:45 fragment doesn't have a findviewbyid May 02 03:01:10 if you need a view of a fragment you should hold a handle to it as a member field May 02 03:01:55 well what im asking is if the way android includes the fragment in xml is in a way in which the views from oncreateview are not part of the view hiearchy of the layout that i included that fragment in May 02 03:01:57 get what i mean? May 02 03:02:48 looks like i can just do findbyid May 02 03:02:55 bc i didnt crash when setting listeners May 02 03:02:59 damn office Wi-Fi May 02 03:03:06 if you're saying can you just call findViewById() in your activity for a view inflated by your fragment May 02 03:03:07 then no May 02 03:03:17 at least I don't think so May 02 03:03:28 yes May 02 03:03:30 you can May 02 03:03:31 no May 02 03:03:33 you shouldn't May 02 03:04:01 lol May 02 03:04:03 why not? May 02 03:04:21 because it defeats the whole purpose of have modular, reusable code embedded in the fragment May 02 03:04:24 you should try as much as possible to have your fragments be compartamentalized May 02 03:04:31 yeah i changed it to Fragment signUpFragment = getSupportFragmentManager().findFragmentByTag("sign_up_flow_frag"); May 02 03:04:31 Button facebookSignin = (Button)signUpFragment.getView(). findViewById(R.id.facebook_login); May 02 03:04:31 facebookSignin.setOnClickListener(this); May 02 03:04:33 whoops May 02 03:04:36 sorry for the multiline May 02 03:04:44 a fragment is nothing more than a couple callbacks that deal with adding and removing views May 02 03:04:47 there's no magic May 02 03:05:00 there's nothing in a fragment that you couldn't do yourself by adding and removing views May 02 03:05:48 the benefits, however, come when you buy into their system of modular and reusable nuggets of joy which can be reused and attached wherever you like May 02 03:06:03 the activity should act as nothing more than a mediator between fragments May 02 03:06:28 right May 02 03:06:30 <`teh1> do fragments receive onPause when they are swapped out? May 02 03:07:44 <`teh1> likely... May 02 03:08:17 so JakeWharton, im just trying to figure out the best way to do the following: there are times when i want to add a fragment but to do that i just want to add it a layout thats basically empty with just a framelayout placeholder that i can add fragments to..so what's the best way to design this. right now in oncreate i set the content to a layout containing a fragment, but then on some clicks, etc i want to add a fragm May 02 03:08:17 but not to the exisiting contentview, but to the new view which is the placeholder for fragments…that make any sense? May 02 03:08:38 any reason why result on line 62 is returning null when using sdk 15 on 4.0.3? Works fine using sdk 8 on 2.2. http://pastie.org/private/ofsvqusl62prfo3awcnyw May 02 03:08:53 i have a settings class but when the user changes a setting, i want to modify an object of my main class. how do you accomplish this ? May 02 03:09:06 dschuett: because you can't do networking on the main thread May 02 03:09:52 JakeWharton: could you explain a little more, I am very much in the learning stage of things... May 02 03:10:44 dschuett, there are two rules for the android threading model: 1: you cannot manipulate the UI from off the "UI"/main thread and 2: you cannot block the UI thread for longer than a couple seconds May 02 03:10:57 so any long operations, e.g. networking need to be done off the main thread May 02 03:11:04 network transport on UI thread...blocks ui May 02 03:11:07 bad bad bad May 02 03:11:24 look at AsyncTask for a convenient way to do some stuff off the main thread and then to "get back" on to the main thread May 02 03:11:26 so bad that they actually made most the http classes throw an exception if you try to do it May 02 03:11:43 but since you just catch all exceptions and move on May 02 03:11:49 you have null results May 02 03:12:17 Textview in a Scrollview has a nice shade to it at the start/end - is it possible to get the same effect on a ListView? May 02 03:12:24 any idea ? May 02 03:13:04 use startActivityForResult() May 02 03:13:09 and setResult in your settings class May 02 03:13:30 then you can update your object in onActivityResult() or whatever that one is called in your main class May 02 03:14:08 thats a built in method ? May 02 03:14:14 are there any other graphics modes than 32 bit on android? Cuz that's alot to shove around May 02 03:14:15 to Activity May 02 03:14:16 yea May 02 03:14:30 I'm looking and thinking it's stuck in 32 bit May 02 03:15:17 t0mless: does that depends on the called activity being closed before the st one can get the result ? May 02 03:15:23 1st May 02 03:15:33 yes May 02 03:17:29 JakeWharton, any advice regarding my question? May 02 03:19:01 ok thanks May 02 03:20:49 i have a map view in my layout but i can't stretch it because the layout and height is fill_parent but i can't resize it in the xml editor . here is the xml code: http://pastebin.com/MiLfdcfn May 02 03:21:10 ud like to manually resize it May 02 03:21:13 id May 02 03:32:32 i'm confused: i used Odin to install CM9 resurrection, and it worked. The phone is rooted and I rebooted to CM9. But now i want to flash the latest nightly build. I'm in recovery mode, how do I select the zip file on my sd card? May 02 03:34:14 i am not supposed to use the normal recovery mode? May 02 03:34:54 I think you want #android-root May 02 03:34:56 you name it update.zip and it will pick it up automatically May 02 03:35:02 or you need CWM recovery May 02 03:35:11 t0mless: please don't encourage lost rooters... May 02 03:35:22 <.< May 02 03:35:57 ok i try that May 02 03:36:08 you can't do 8bit graphics on android,. can you? May 02 03:36:39 um, you can only paint 8-bit's worth May 02 03:36:59 t0mless: can i use ROM manager to pick it up? May 02 03:37:00 ya, but you still gotta deal with 32 bit pixels May 02 03:37:04 how to avoid hang the phone during the insertion of a large number of values ??in the database? insert in a separate thread May 02 03:37:14 foggyb #android-root May 02 03:37:19 I'm trying to cut down my graphical overhead for speed May 02 03:37:22 foggyb: you are asking in the wrong channel - please go to #android-root May 02 03:37:27 yes or no question really May 02 03:38:19 jeez May 02 03:38:24 some people don't take hints May 02 03:38:41 you generally don't see that kind of thing outside the religious channels May 02 03:39:14 ALL HAIL BUGDROID! May 02 03:39:34 oO Leeds has the license to kill? May 02 03:40:40 are we in fact absolutely stuck with 32bit pixels? May 02 03:45:08 are you not using open gl or somthing? May 02 03:45:31 if I want to pass in a database handle to a fragment, can I overload the fragment's constructor to do this? If so, how? None of my fragments have a constructor at this point May 02 03:46:36 hesperaux: http://developer.android.com/guide/topics/fundamentals/fragments.html May 02 03:46:49 RGB_565 May 02 03:46:55 16 bit May 02 03:47:02 better than nothing May 02 03:47:11 I believe the static newInstance() method is the convention May 02 03:48:00 jeppy, can I just override onCreate()? May 02 03:48:16 and call the super(Bundle savedInstanceState) in that override? May 02 03:48:35 you can't change the parameters to onCreate May 02 03:48:48 if that is what you're asking May 02 03:48:49 bah May 02 03:49:09 the guide shows fragments being instantiated by new FragmentName() May 02 03:49:37 yes but the framework handles the constructor May 02 03:50:01 pass it as an object in setArguments(Bundle) May 02 03:50:12 hmm May 02 03:50:22 or have the Activity manage it or something May 02 03:50:28 there's plenty of ways to do it. May 02 03:50:31 yeah i guess i could just use the activity May 02 03:50:42 although that removes some of the independence of the fragment May 02 03:51:45 * t0mless highfives JakeWharton's wifi May 02 03:51:47 i guess i'll take a look at how setArguments() works May 02 03:51:52 t0mless: i walked home May 02 03:51:58 walking wifi May 02 03:52:02 cool May 02 03:52:10 i need to setup a bouncer... May 02 03:52:24 bouncing is faster than walking, yes May 02 03:52:59 how to avoid hang the phone during the insertion of a large number of values in the database? i use asynctask May 02 03:53:24 background thread May 02 03:53:25 you must be doing it wrong then May 02 03:54:50 JakeWharton, start new thread in asynctask with low priority? May 02 03:55:01 asynctask is a background thread May 02 03:55:06 asynctask already uses another thread May 02 03:55:15 i admittedly skipped that part of your sentence when reading it May 02 03:55:20 so if your asynctask is hanging the phone, you're doing it wrong May 02 03:55:45 hello, im having difficulty laying out a few buttons in a tablerow, am curious if anyone would be willing to check out my code and offer any help! i have it zipped and i can email it to you/ host it somewhere. Thanks! May 02 03:55:47 hm. i parse regex and paste values to the database May 02 03:55:49 get a larger phone, yeah! May 02 03:55:56 the bigger the screen, the more MIPS it has bro May 02 03:57:20 ctate: http://code.google.com/p/android/issues/detail?id=29895 May 02 03:58:05 SaulGoodman: please tell me you haven't moved from textviews to buttons? May 02 03:58:13 no no no May 02 03:58:16 lol May 02 03:58:22 Is there any way to avoid onStart getting called in my activity after I come back to it from another activity of mine, or is that just the design? May 02 03:58:35 you're using a surface now? May 02 03:58:55 so the bug about animations when popping fragments off backstack hasnt been fixed in ACL? May 02 03:58:56 * Drakonite wants a surface May 02 03:59:03 i have two rows of buttons at the bottom of the view... the first is fine IF i dont add the second row, but when I do, the buttons take up more space than the width despite me styling them with WRAP_CONTENT May 02 03:59:18 luxurymode: what bug? May 02 03:59:36 no... i got it working with TextViews, as I have a deadline and i dont have time to change the implementation May 02 03:59:38 http://stackoverflow.com/questions/5327636/animating-fragments-and-the-back-stack May 02 03:59:47 ctate: Ended up crashing for a nap before submitting it... If there is something I can say to get them to jump on it and fix it faster let me know :P May 02 04:00:37 but thats a totally different issue and thats not what i need help on... this is a styling issue May 02 04:01:18 luxurymode: did you observe the bug happening? May 02 04:01:26 observing it right now May 02 04:01:37 with what revision? May 02 04:01:42 i would appreciate any help... should be a synch for any dev experienced with layout styling May 02 04:01:50 cinch* May 02 04:01:51 ft.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out); shows no animation when popping May 02 04:02:17 use the four-arg method May 02 04:02:18 JakeWharton using whatever ACL was dependency in ABS May 02 04:02:23 v4 i believe May 02 04:02:32 they're all v4 May 02 04:02:34 it's revision 7 May 02 04:02:55 oh lol right May 02 04:03:04 so just double those anims May 02 04:03:07 or in reverse order...? May 02 04:03:08 basically May 02 04:03:10 I'm an Electrical and Computer Engineer, not a designer! May 02 04:03:22 nope, just sCA(in, out, int, out) May 02 04:03:30 right awesome May 02 04:03:31 thanks! May 02 04:03:44 didnt realize the anims were being applied to the same fragment May 02 04:03:58 <`teh1> t0mless: any idea as to why this code doesn't properly switch between the two views? it's just stuck on Register. Hell, it doesnt even keep the button press state May 02 04:03:58 <`teh1> https://gist.github.com/50db8424c064ec2ad694 May 02 04:05:18 man... everyone hates me because of last night... im so sorry i spammed this channel, i was tired and desperate! :( May 02 04:05:24 <`teh1> canadiancow: the "missions" star in hanging is photoshop's default star shape with a big, deep chisel hard bevel/emboss, softened :P May 02 04:05:33 <`teh1> i accidentally created the same thing the other day May 02 04:05:51 <`teh1> SaulGoodman: how do you knoe everyone hates you May 02 04:06:01 `teh1: transactions are asynchronous May 02 04:06:11 <`teh1> JakeWharton: sooooo...? May 02 04:06:13 oh wait, those buttons are in the account layout? May 02 04:06:17 <`teh1> yes. May 02 04:06:37 never mind i think i'm confusing you with someone who was trying to call findViewById on a fragment's views in their activity May 02 04:06:45 <`teh1> yes you are! :P May 02 04:06:47 `teh1: cuz ppl are ignoring me hahaha May 02 04:06:51 SaulGoodman: no idea who you are May 02 04:06:52 `teh1: I do May 02 04:07:04 `teh1: you should really cache the lookups for those buttons May 02 04:07:04 <`teh1> SaulGoodman: chances are people just don't have an answer to your question May 02 04:07:18 pragma-: I'm a engineer that loves breaking bad May 02 04:07:38 <`teh1> JakeWharton: as in keep ivars of Register() and Login()? May 02 04:07:39 i go to CMU May 02 04:07:52 `teh1: no for the buttons May 02 04:07:58 you call findViewById every time May 02 04:08:03 <`teh1> oh yeah i know, but it's so simple IDGAF May 02 04:08:08 haha May 02 04:08:21 <`teh1> that would be the entire code for the activity, if it worked :P May 02 04:08:42 <`teh1> my concern is the reason for the fragment not switching properly May 02 04:08:53 JakeWharton: a new support lib ? May 02 04:09:00 today? May 02 04:09:03 for all you MIT people, CMU is better :-P May 02 04:09:08 I'm biased of course May 02 04:09:23 i looking through scrollback, somebody said a new lib May 02 04:09:26 guess not May 02 04:09:27 except that it's in Pittsburgh... Cambridge >>>>> Pittsburgh May 02 04:09:36 not sure when rev 8 came out to be honest May 02 04:09:39 <`teh1> JakeWharton: will fragment automatically retain instances of Login and Register? May 02 04:09:45 Textview in a Scrollview has a nice shadow to it at the start/end - is it possible to get the same effect on a ListView? May 02 04:10:01 r8 was a week ago May 02 04:10:20 <`teh1> vadi2: convertView May 02 04:10:21 oh May 02 04:10:49 nothing useful May 02 04:11:04 `teh1: thanks, I'll look May 02 04:11:06 and by useful I mean wildly exciting :) May 02 04:11:20 convertView has nothing to do with that vadi2 May 02 04:11:44 I can't remember what does those shadows by default May 02 04:11:52 but i think it's overScroll or something like that May 02 04:11:56 <`teh1> t0mless: convertView contains the textView i think May 02 04:12:11 it has nothing to do with the shadows for the start/end of the list May 02 04:12:24 <`teh1> i think im just confused as to what the Q was :P May 02 04:12:26 <`teh1> ignoe me May 02 04:12:41 convertView contains an instance of the view for the list row, it could just be a text view, or a complex viewgroup May 02 04:12:46 fadingEdge May 02 04:12:50 that's the one May 02 04:13:01 i have no idea when the question was May 02 04:13:02 haha May 02 04:13:05 * t0mless does /ignore `teh1 May 02 04:13:07 just figured it out from what you're talking about May 02 04:13:08 <`teh1> lol May 02 04:13:15 uh huh, ty May 02 04:13:53 * pragma- does /ignoe `teh1 May 02 04:13:57 <`teh1> lol May 02 04:14:01 It is not very effective. May 02 04:19:57 <`teh1> JakeWharton: soo i take you you have no clue? as to whats with the weird behavior :P May 02 04:20:06 with what? May 02 04:20:59 <`teh1> replace()\ May 02 04:21:02 <`teh1> actually let me try something May 02 04:24:58 jake - with anythign May 02 04:25:06 <`teh1> ha ha May 02 04:25:10 <`teh1> clever May 02 04:25:31 Heh, no xml values were working. I found http://stackoverflow.com/questions/6428728/android-listview-edge-fading-works-on-a-2-2-virtual-device-but-not-on-samsung-2 though and that works. The ego of these OEMs... May 02 04:25:32 <`teh1> WTFUCK May 02 04:25:44 <`teh1> Y U NO WORK May 02 04:26:44 *were not working May 02 04:27:43 <`teh1> JakeWharton: the issue is that replace()ing the fragment with another fragment is not doing anything May 02 04:27:49 <`teh1> sometimes it will change the screen to black May 02 04:35:39 hrm, my blogger atom feed doesn't seem to be updating May 02 04:36:45 blagger May 02 04:37:21 so, for asynctaskloader, can the throttle be changed after it's started? May 02 04:38:15 basically I have kind of a tri-state asynctaskloader, and I want it to control its own throttling May 02 04:38:58 let it run once, then set an updatethrottle of 1ms to queue itself to run again, and then a third time, then setupdatethrottle to 0 to stop updating May 02 04:43:57 <`teh1> OH May 02 04:43:58 <`teh1> my god. May 02 04:44:01 <`teh1> im slightly retarded May 02 04:44:08 <`teh1> BUT ONLY SLIGHTLY May 02 04:48:55 Can you use multiple viewgroups in a single layout? i.e. --single row in activity--more views going down the page i.e. text box, button, etc............. hmmm just thinking about this, probably better addressed with a table layout May 02 04:49:42 use May 02 04:49:52 try using GridLayout from the v7 support library May 02 04:49:52 not sure why you'd put a relativelayout inside a linear layout, but that's ok May 02 04:50:05 it will allow for a flatter view hierarchy while still affording you much flexibility May 02 04:50:08 JakeWharton, so robolectric isn't useful for me at all... May 02 04:50:26 I was just chatting up a Pivotal guy today about it May 02 04:50:29 maybe it is a tiny bit so that I don't get any "stub" exceptions if anything tries to call into the android framework May 02 04:50:33 t0mless: because i wanted to align a button the right, and as i understood it, relative was the best way May 02 04:50:38 so I can kind of test my asynctasks May 02 04:50:44 er, my asynctaskloader May 02 04:50:48 kind of, barely May 02 04:50:50 pfn: that's exactly what I use it for. So Log.x doesn't error May 02 04:51:10 JakeWharton: ah ok cool, haddn't seen gridlayout May 02 04:51:26 but it's totally not help for testing behavior :( May 02 04:51:46 s/help/helpful May 02 04:52:44 we've gotten into the pattern of just placing logic into POJOs and doing pure junit testing May 02 04:53:00 then each fragment or activity is basically just a hook between the POJO and UI May 02 04:53:05 I'm not really a unit tester May 02 04:53:09 pojo? May 02 04:53:12 I want functional and some amount of integration testing May 02 04:53:21 plain old java object May 02 04:53:25 e.g. I want to test that my idea for asynctaskloader May 02 04:53:46 it executes once, sets update throttle to 1ms to queue it run again, run again, then set updatethrottle to 0 to stop updating May 02 04:54:18 I'd like to verify the assertion without having to write a test app to do it :( May 02 04:55:50 Robolectric would be hella-useful if their shadow classes weren't crap May 02 04:56:03 maybe i'll start trying to contribute May 02 04:56:09 well, admittedly, it is a very difficult problem to solve May 02 04:56:13 I'd rather contribute to more useful libraries May 02 04:56:21 like AOSP or the android-maven-plugin May 02 04:56:27 or my libraries... May 02 04:57:00 <`teh1> protip: when you copy the onCreateView method from one fragment to another, be sure to rename the layout that it inflates :] May 02 04:57:32 asynctaskloader uses postAtTime :( May 02 04:58:09 if postAtTime is a time in the past, handler will not execute the callback, will it May 02 04:58:58 doubtful May 02 04:59:05 i would just write your own loader May 02 04:59:38 yeah, trying to avoid having to, but looks like I will May 02 04:59:54 you could starting with AsyncTaskLoaders's source and generalize May 02 05:00:13 asynctaskloader is too complicated, heh May 02 05:00:18 I need to simplify it May 02 05:01:09 loaders need so much boilerplate :( May 02 05:01:22 since I have a bunch of different loaders with different types May 02 05:01:35 once you write your own they don't May 02 05:01:45 the ones they provided aren't very good May 02 05:02:07 the problem is the loadermanager's callbacks May 02 05:03:05 just about everything in android is a callback :) May 02 05:03:12 callbacks for your callbacks :S May 02 05:03:26 yes, but since they're generic, they need a lot of boilerplate May 02 05:03:34 one callback for each result data type expected May 02 05:04:00 you can just check the id May 02 05:05:10 yeah, I guess one could be lazy and just make a LoaderCallbacks May 02 05:05:59 i'm very curious where this is going to lead http://news.ycombinator.com/item?id=3916367 May 02 05:06:33 but the problem is onLoadFinished May 02 05:06:38 without clicking, i'm sure i know what that link it May 02 05:06:50 JakeWharton: the xamarin c# stuff May 02 05:06:54 g00s: at a guess, it's going to lead to a story at hacker news May 02 05:06:57 yeah May 02 05:06:57 a May 02 05:07:06 and surprisingly enough the top comment is not by a total moron! May 02 05:07:11 looks like JakeWharton is still using colloquy May 02 05:07:14 :) May 02 05:07:16 haha May 02 05:13:33 honestly I like the idea of the c# to build android and iphone apps May 02 05:13:37 what's the best way to grab a different fragment from the activity in a fragment? May 02 05:13:42 but I dont trust xamarin May 02 05:13:46 theres just something about them May 02 05:13:50 and their history May 02 05:14:35 What is the best way to have a button switch between two images? May 02 05:14:43 just style a togglebutton? =) May 02 05:15:00 Can I change the text of a togglebutton onClick? May 02 05:15:14 I dont see why not May 02 05:15:17 * ron_frown shrugs May 02 05:15:18 * MitchM nods May 02 05:15:23 thanks! May 02 05:16:18 I should probably reword my question. If I am viewing Fragment1 which is hosted by Activity1, how can I provide Fragment2 to Fragment1, assuming Fragment2 has been initialized in Activity1? May 02 05:16:20 ron_frown: it would be pretty cool is google had some agreement with ms to use c# on android May 02 05:16:32 not that the agreement is necessary i don't think, but .... May 02 05:17:56 but anyhow, goog was always c++ / java / python May 02 05:18:38 honestly c# is a BITCHIN language for it May 02 05:18:39 BUT May 02 05:18:43 I dont trust the mono folks May 02 05:18:56 mono = xamarin May 02 05:19:01 i'll keep the ability to develop on linux thanks May 02 05:19:25 monodevelop wasn't terrible last time I used it May 02 05:19:32 which was a few years ago, I only assume it's improved May 02 05:19:38 (on linux) May 02 05:19:41 dude monodevelop is nice May 02 05:19:47 I write linux/windows apps in it May 02 05:19:51 yeah cool May 02 05:19:53 i recently had to compile an app that was written for mono May 02 05:20:11 based on the order i installed the dependencies for mono, it would either pass or fail compilation of the compiler May 02 05:20:26 is there a way to tell on Google Play if someone has paid for my app? May 02 05:24:42 Hey, I tested my app today on a froyo device, and in the contact picker only one contact showed up.. I'm not sure why.. any ideas? May 02 05:28:36 holy shit, is this a datacenter ? http://www.christian-stoll.com/website/photos_detail.php?gallerieID=598&gallery=high_rack_warehouse May 02 05:28:57 no May 02 05:29:03 must just be regular warehouse May 02 05:29:06 its a big ass warehouse May 02 05:29:22 i want to ride the tracks :) May 02 05:29:38 yeah I dont see any hardware on those racks, or mounts so yeah, I'd say just normal warehouse May 02 05:29:56 I must say I've seen impressive offers lately and theyv'e mostly had to do with building iphone apps May 02 05:30:17 "salary negotiable, but starting at 125k May 02 05:30:38 https://encrypted-tbn1.google.com/images?q=tbn:ANd9GcQTACw2KVUXizqBxTb15a_kuuRtaTj1G-xE_WpAWe1FkSQ3y9NSeQ May 02 05:30:54 when its a 50/50 shot at apple saying no fuck you your app isnt selling, what is the draw that is making so many developers work harder with ios May 02 05:31:18 it's not that hard to adhere to their rules May 02 05:31:33 actually I just submitted an app on behalf of a client to apple app store that I had all the indicators in the world that apple would deny it May 02 05:31:38 and it passed with flying colors May 02 05:31:49 so I would say thats gotten better for sure May 02 05:31:49 its not even their rules, its random shit like this: http://www.theverge.com/2012/5/2/2993027/dropbox-confirms-apple-rejecting-apps-use-sdk May 02 05:32:00 yeah that one is a bit weird May 02 05:32:09 tl;dr if your app can create an account on a remote server nope no access for you May 02 05:32:25 apple is anticompetitive May 02 05:32:30 extremely May 02 05:32:50 so of course thats likely... how its not illegal seems... crazy May 02 05:32:51 they have been for years even before the iPhone, but this is rediculous May 02 05:32:53 Hello, can anyone here give advice if they were in a similar situation? I'm making some sort of Quiz app where I push quizzes from a Back-End to the App. Since the app will play the quiz repeatedly, I think I should store the quiz questions in a Database. My question is about pushing the quizzes from a Back-End. Should I store it in the Back-End as .XML files then just parse the XML files May 02 05:32:54 in the app? May 02 05:33:36 sqlite? May 02 05:33:42 what I would say that really blows wang about ios May 02 05:33:50 AbelianHorizon: Yeah May 02 05:33:50 the lack of boilerplate stuff and a decent clss library May 02 05:33:51 franzks: transfer as json, store in sqlite May 02 05:33:57 also , i'm willing to bet that in your contract - you say show me the money even if the app is rejected for certain reasons May 02 05:34:03 even the simplest of tasks seems to require a 3rd party library or a ton of custom classes May 02 05:34:05 and the other thing... May 02 05:34:16 of course, if they reject it because you screwed up from a technical standpoint, then ... May 02 05:34:21 for some reason even the simplests of tasks regarding UI seem to require way too much work May 02 05:34:28 Leeds: What format will it be stored in the web? May 02 05:34:32 how do I acquire a listview XML object that is not yet loaded? May 02 05:34:42 by loading it May 02 05:34:45 franzks: whatever you like in your web app... probably mysql or similar May 02 05:34:52 Leeds: Or is JSON a format? I'm verry sorry for my ignorance because this is my first time with something like this. May 02 05:35:17 uh oh May 02 05:35:17 pfn, it's meant to be the view for this fragment, so I've actually inflated the layout there. the list view is contained in that layout. in the same fragment, how do I access it in onCreate()? May 02 05:35:22 json is a... er, data container format? May 02 05:35:24 JSON is like xml de-crapified May 02 05:35:26 Leeds: AHHH! So I store it in a database, then using JSON my App's SQLite can retrieve it from my Web's MySQL db? May 02 05:36:00 franzks: something like that, yes May 02 05:36:07 hesperaux, you don't, you can only access it after onCreateView May 02 05:36:31 Thanks for the info guys! Cheers! May 02 05:36:37 franzks: you store in in whatever db you like on the web... your app makes an HTTP request to read it, your server formats it as JSON and sends it, your app parses the json and stores it in a local db May 02 05:36:40 pfn, does that mean I should setup the list view and create my database adapter in the onCreateView() method instead of onCreate()? May 02 05:36:49 hesperaux, yes May 02 05:36:51 i guess that would make more sense May 02 05:36:55 thanks May 02 05:37:16 anyone made the switch from showDialog(int) to Fragments? May 02 05:37:23 Leeds: GREAT! Thanks for the advice, thanks! May 02 05:37:44 I built a pretty badass network transport library that wraps httpurlrequest or whatever, asynctask, and auto json serialization/deserialization May 02 05:37:59 franzks: pleasure, good luck... one other piece of advice - take it slowly if this is the first time you're doing this stuff - learn how things actually work rather than just barging ahead May 02 05:38:08 Transport.GetItems(url,parameters,rootkey,method) May 02 05:39:19 pass in transport callback and override OnError(TransportError error), OnCompleted(List items) May 02 05:39:30 AbelianHorizon = sure May 02 05:39:49 actually showDialog vs showing dialogfragment is better imo May 02 05:39:56 one place the fragment stuff is pretty solid May 02 05:40:01 I agree, but deprecated May 02 05:40:15 no no May 02 05:40:19 dialogfragment stuff is better May 02 05:40:45 I'm using fragments for ABS May 02 05:40:56 just have those left to fragmentize May 02 05:41:16 not exactly sure what I need to do May 02 05:44:38 ABS extends the shared library May 02 05:45:07 you should just extend FragmentActivity, and that should have method to pop dialogs May 02 05:45:07 ron_frown: i'm taking a risk, but this piece of hardware i want to build will be using bluetooth 4 low power, and i don't see this support in android coming any time soon … so i'm checking out windows phone, since wp8 is supposed to have support for that May 02 05:45:28 if you are building hardware, add it yourself =) May 02 05:45:34 it seems like google goes to slow and too fast at the same time :) May 02 05:45:41 well yeah, my ABS shits working fine May 02 05:45:42 I cant tell you how many things I've added to android May 02 05:45:45 nah, i want to use a stock phone May 02 05:46:00 but the sensor stuff is my project May 02 05:46:05 external hardware May 02 05:46:41 what is low power bluetooth May 02 05:46:55 air quality sensors, ozone, etc May 02 05:47:04 ahh May 02 05:47:09 dude I'd get a gumstick whatever May 02 05:47:19 repurpose, custom android 2.3.x May 02 05:47:25 implement low power bluetooth May 02 05:47:35 it'd be real easy to do May 02 05:47:56 raspberrypi! if they ever manage to get up to mass manufacturing... May 02 05:48:05 yeah , they are both cool May 02 05:48:12 lots of options May 02 05:48:14 I was fucking amazed at how easy I was able to build multitouch touchscreen driver, integrate into android kernel, enable in android and everything magically works May 02 05:48:25 only pain in the ass thing I need to figure out with android May 02 05:48:34 how can I edit code / easily debug it May 02 05:48:41 never got my environment setup for it May 02 05:49:07 with my panda stuff I think I can fastboot boot from custom img without flashing May 02 05:49:51 i think google really missed the boat here, instead of this open accessory crap, they should have had lp profile implemented in ics or gb even May 02 05:50:18 lots of gizmos - even shirts with embedded sensors - will have this bt 4 lp May 02 05:50:20 sometimes I think I'm pretty lucky with my boss... he appeared in the office at 1:30, distributed paycheques, checked his email, then left... May 02 05:51:01 ron_frown: what kind of soldering equipment do you have ? May 02 05:51:10 back in the day, when everything was 40 pin dip … :D May 02 05:51:17 me personally I've got a little solder station May 02 05:51:21 cant remember what it is May 02 05:51:25 old from the 80's May 02 05:51:31 ok, so not reflow May 02 05:51:42 no all the crazy shit we have built May 02 05:51:45 sounds like a little weller :) May 02 05:51:54 not cost effective to do in house May 02 05:53:37 yo lab May 02 05:55:58 "r a number of developers using the Dropbox SDK reported that Apple was rejecting their iOS apps from the App Store May 02 05:56:05 hehehe May 02 05:56:24 yeah violates the ToS May 02 05:56:41 I'll violate your... May 02 05:56:47 actually, it's insane May 02 05:56:48 :O May 02 05:56:58 well technically anything that "replicates existing functionality" violates tos May 02 05:56:59 Leeds: i've never seen you so feisty May 02 05:57:09 but they are very choosy in where they actually enforce May 02 05:57:30 and who they enforce against May 02 05:57:40 g00s: that particular Apple story really annoys me - it's just *so* wrong, firstly that they think it's in any way okay - and secondly that nobody has slapped them down on it May 02 05:58:23 it's so fscking anticompetitive that I'm going to have to get some lunch to deal with it :) May 02 05:58:31 hehe May 02 05:58:41 https://lh5.googleusercontent.com/-eWW9YTI2UXc/T6DM-GCBi6I/AAAAAAAAAp0/N62_LEkLG6k/s775/IMG_20120430_172453.jpg May 02 05:58:41 if ms is slightly less duesh with windows phone app submission, i think its going to take off. May 02 05:58:45 shit May 02 05:58:48 wrong channel May 02 05:59:13 g00s, tbh I wouldn't be surprised if that happens May 02 05:59:15 wp7 isnt bad May 02 05:59:24 its... different May 02 05:59:26 but not bad May 02 06:00:30 hello May 02 06:00:35 and I wouldn't be surprised if the tiles and list view is intentionally to avoid lawsuits for being iPhone like like samsung has May 02 06:01:15 raymonddull: i doubt those metaphors are to aboid ms ip - i mean, ms has a ton of IP they can counter attack with. it would be a nuclear war May 02 06:01:24 true May 02 06:01:27 frankly I think they should May 02 06:01:28 i respect MS with metro, for having innovated and risked something different May 02 06:01:35 even if v1 fails May 02 06:01:37 I think everyone should just sue the living FUCK out of apple May 02 06:01:40 ^ May 02 06:01:45 just because their anticompetitive practices are bs May 02 06:01:47 bs as fuck May 02 06:01:55 I think software patents are bogus as shit May 02 06:01:55 tbh I think its a good interface for a phone May 02 06:02:00 but I think it has no place on a desktop May 02 06:02:07 stuff oracle is coming up with, they should be put to death for May 02 06:02:24 I kinda see both sides of it May 02 06:02:32 so many apple patents are laughable, May 02 06:02:33 yes unique ideas are cool and people should get credit May 02 06:02:36 s/apple/ May 02 06:02:46 but at the same time shit like having a touch panel should not be patentable May 02 06:02:58 simple common sense should not have a patent for it May 02 06:02:59 I am a software engineer... I honestly beleieve anything I come up with, somone can do better, should May 02 06:03:06 thats the nature of technology innovation May 02 06:03:10 exactly May 02 06:03:37 like that total bs patent on linkify May 02 06:03:41 the question is where do you draw the line for "better" vs "exact copy" May 02 06:03:44 or swipe to unlock May 02 06:03:49 or pinch zoom May 02 06:03:52 Patents are stupid in software. They should only exist to prevent ripping off someone's else. May 02 06:03:52 jesus christ ! May 02 06:03:53 that too yeah slide to unlock May 02 06:04:14 or even better, when the droid 1 launched, apple had a patent for multitouch keyboards May 02 06:04:29 so we had to use a euro keyboard to press shift and a letter at the same time May 02 06:04:37 like really? you own my other 9 fingers? May 02 06:05:10 as long as USPO are granting and dealing with patents like they are this is going to continue. May 02 06:05:27 the idea of swiping a screen and having physics was a good idea, so the pane bounces etc May 02 06:05:33 should it be pattentable May 02 06:05:34 fuck no May 02 06:05:43 look at apple.. .stifled innovation... stagnant May 02 06:05:44 I vote someone should "accidentally" hit delete all on the patents system May 02 06:06:35 ron_frown: one of the analysts, (i know, i know) mentioned this week that they expect apple to coast a little (maybe 2 years - stuff still in the pipeline) and then decline again May 02 06:06:43 apple's main idea factory died and now they're backed into a corner and hoping no one notices that the launches now are going to keep being minor spec bumps and resolution jumps with no real improvements May 02 06:06:48 not that I think software necessarily leads to the betterment of mankind... but I believe in companies that have honest intentions May 02 06:06:54 not pure blatant greed May 02 06:07:13 I would not be surprised if they're back to how they were in 1998 5 years from now May 02 06:07:15 dont get me wrong... I beleive google intended to make mone off android from day 1, in one form or another May 02 06:07:28 i might have more sympathy for apple if they didn't go through so much trouble exercising tax loopholes May 02 06:07:35 I do think that the iphone 4 looks better, but what change has there honest;y been in the software? May 02 06:07:37 but many tech companies do that May 02 06:07:46 but I dont think it was their idea to "lets just ream the shit out of every customers ass... more money more money more money" May 02 06:08:02 Jak_o_Shadows, basically they added wallpapers and decided to steal the android notification bar May 02 06:08:09 woohoo we have ios 4 and 5 summed up right there May 02 06:08:27 seems like whats starting to happen is companies that appear to have better intentions are starting to take off May 02 06:08:30 hehe, ok ok … there was more to ios 4 and 5 :) May 02 06:08:32 and I hope that continues May 02 06:08:35 oh and game center May 02 06:08:38 or was that 3.x May 02 06:08:40 on stackoverflow someone recommends the option of adding an onclicklistener to every element in a listview. This sounds like a bad idea to me. is it? May 02 06:08:42 its stale May 02 06:08:49 it looks the same, like 2003-2004 May 02 06:09:05 their apis honestly dont change *THAT* much May 02 06:09:06 yeah i'm tired of its look also May 02 06:09:21 I bought every iphone that came out up til the 4 May 02 06:09:24 I wont buy another May 02 06:09:35 to be fair, the ipad has some cool muli-touch things May 02 06:09:44 fr changing apps and the like May 02 06:09:48 http://omgdroid.com/wp-content/uploads/2011/10/3-years-ios-android-600x300.png May 02 06:09:52 thats what I have to say about that May 02 06:09:53 always iphone talk in android-dev May 02 06:10:24 android has the biggest martshare nuff said May 02 06:10:35 does it? i didn't think it did May 02 06:10:39 market* May 02 06:10:40 it does May 02 06:10:41 yeah, 51% May 02 06:10:45 sad how intel bowed out of the market May 02 06:10:47 lol, close May 02 06:10:51 but to be fair thats spread out across like 150 devices May 02 06:10:53 window 30 May 02 06:10:57 vs the 5 iPhones now May 02 06:11:06 JakeWharton: intel just got into the mobilemarket, wut ? the first android intel phone came out last week May 02 06:11:14 oope, sorry JakeWharton May 02 06:11:15 thats apples fault May 02 06:11:25 o_O May 02 06:11:28 g00s, they're not just coming in May 02 06:11:30 Jak_o_Shadows: ^^^ May 02 06:11:35 forgot about xscale? May 02 06:11:36 g00s: I meant moblin/meego/whatever we're calling it this week May 02 06:11:47 raymonddull: i worked on xscale :) May 02 06:11:47 and that they made the cpus in like half of the old pocket pcs May 02 06:11:48 haha the more I look at meego May 02 06:11:48 internet usage on ios is still much higher than android though May 02 06:11:52 lol May 02 06:11:58 the more I realize how much better it was than android May 02 06:12:02 even better then g00s May 02 06:12:07 i mean sure the tools werent there, the documetnation wasnt really there May 02 06:12:07 oh yeah, Tizen 1.0 was today right ? May 02 06:12:12 tizen is a joke May 02 06:12:14 on stackoverflow someone recommends the option of adding an onclicklistener to every element in a listview. This sounds like a bad idea to me. is it? May 02 06:12:29 anything that comes out and says "build your app in html5..." May 02 06:12:31 thats cause the 2 provider had 4g networks b4 the iphones May 02 06:12:32 already lost my attention May 02 06:12:41 tizen looks... exactly like a miui theme May 02 06:12:54 like the same fucking icons May 02 06:13:01 i thought that was a stipulation that they had to have 4g before the iphone May 02 06:13:02 hesperaux: what do you mean by 'element'? What are you trying to achieve? May 02 06:13:08 nm im wrong May 02 06:13:22 dominicdinada, I doubt it because there's still no 4g iPhone May 02 06:13:26 my prediction, is that android will continue to dominate market share in phones, flop in tablets, and always there will be a disconnect between ability to monetize and marketshare. android's market share i think will decline if/as tablets become more important, as ios and metro will dominate i think May 02 06:13:29 the closest they have is hspa+ May 02 06:13:34 even then its only 14mbps May 02 06:13:45 I really seriously doubt that May 02 06:13:49 wabz, say each row of the listview corresponds to some data from a database. each click of a row may bring up a fragment that allows you to edit the entry May 02 06:13:53 i know ron_frown :) May 02 06:13:59 wp* is doing shitty May 02 06:14:02 i'm an anaylyst too, i just don't get paid XD May 02 06:14:05 i remembered cause they tested a droid next to an iphone on network speed 3 years ago and each year May 02 06:14:12 but the question is general, and related to a suggestion on stackoverflow here: http://stackoverflow.com/questions/6168714/implementing-a-cursoradapter-to-get-db-rowids-of-listitems-in-a-listview May 02 06:14:14 and its because ms doesnt get that the reason android did awesome is free to oem, free to manipulate etc May 02 06:14:16 ron_frown: i don't think that will be the case for much longer May 02 06:14:27 since at&t and vz want wp to succeed now May 02 06:14:37 uhh never gonna happen May 02 06:14:38 I am sorry May 02 06:14:41 :) May 02 06:14:51 ron_frown: we'll have this conversation again i'm sure May 02 06:14:53 ms always tries to jump into the game late, with a half assed attempt May 02 06:14:54 they wanted wm6.x to succeed too May 02 06:14:57 hesperaux: is the listview's lv.setOnItemClickListener not going to fit your use case? May 02 06:14:59 dont get me wrong May 02 06:15:08 I am the biggest advocate for .net, and wpf is really elegant May 02 06:15:14 that was decent for business users, normal people didnt get into smartphones till the iPhone May 02 06:15:14 ya it earns from the sale of devices much less than MS and has a market May 02 06:15:16 but metro is just shit May 02 06:15:24 I found .net surprisingly pleasant. May 02 06:15:24 and ms cant license / market / etc May 02 06:15:24 ron_frown: how am I not supposed to get that last comment wrong? May 02 06:15:35 wabz, that would work fine for me. May 02 06:15:38 I am not just bashing ms to bash them May 02 06:15:42 ron_frown: but its the first iteration of metro. there will be kinks May 02 06:15:44 I love some of their tools / platforms May 02 06:15:49 if steve jobs was still alive him and bill gates would team up on android May 02 06:15:56 but they've bombed EVERY mobile os May 02 06:16:04 and it looks like win8 is going that direction too May 02 06:16:09 i remember the press conference when bg saved apple from doom when jobs returned May 02 06:16:17 tbh the only reason I don't still use a wm6 device is app support May 02 06:16:46 i had my wing for years also but not anymore May 02 06:16:54 ron_frown: i think ms understands now, that mobile devices will outsell pcs May 02 06:17:00 and they must succeed here May 02 06:17:07 it took them a while though :) May 02 06:17:09 I didnt really feel *THAT* bad to see him go... I mean I can appreciate what anyone in the tech industry accomplishes, and I am glad apple kinda changed the smartphone world the way they did May 02 06:17:16 dominicdinada, I have a mogul sitting on my desk right now May 02 06:17:17 but greed is a mf May 02 06:17:23 lol May 02 06:17:30 that man would have picked off his own family members to make a couple more bucks May 02 06:17:30 mogul May 02 06:17:36 i think jobs was an idiot May 02 06:17:38 next to my droid incredible and nexus s May 02 06:17:39 lol May 02 06:17:50 i remember xda back in the day long ago and how much they have evolved May 02 06:17:52 keep working as ceo when you have camcer. Why? May 02 06:17:59 better question May 02 06:18:19 btw, i haven't had a windoze box in over a decade, so i'm not a ms fan - even though it may sound like it. its just that android is getting stale for me, apple is the suck (even though i like their hardware), and the biggest monetization opportunities for devs in mobile is enterprise - and android is a no show there May 02 06:18:21 turn down treatment for a very high probability of success for natural treatments until you realize it aint working out for you May 02 06:18:23 dominicdinada, evolved? I think it has devolved May 02 06:18:24 and its way too late May 02 06:18:37 g00s - I agree May 02 06:18:37 it turned into 99% blabbering idiots, 1% actual tech people May 02 06:18:44 its like 10x the work to build android apps over .net stuff May 02 06:18:51 i mean from the amount of devices and userbase May 02 06:19:25 and ppl like jf and stericsen and countless others used to pour their heart into it for ungrateful people May 02 06:19:33 oh in that sense yes, but is it really worth it when the userbase is constantly posting the same stupid questions over and over and over, and devs leave by the flock because they're stupid of them May 02 06:19:45 tired May 02 06:19:48 not stupid of them May 02 06:19:52 wtf am I typing, I need sleep May 02 06:20:42 its become give me a perfect rom now because I'm an entitled little kid that deserves everything for free May 02 06:20:48 stericsen is hella rich check his paid apps dl May 02 06:21:14 also, whats with all the ads in apps? What happened to altruism? May 02 06:21:26 yeah a bunch of devs are like that May 02 06:21:28 look at koush May 02 06:21:40 i don't like ads, so i'm not going to use them May 02 06:21:44 besides, extra code lol May 02 06:22:06 hesperaux, I like that thinking May 02 06:22:15 tbh I'd much rather buy an app than deal with ads May 02 06:22:17 they piss me off May 02 06:22:20 right May 02 06:22:34 it makes the app work poorly in some cases (from a user standpoint) May 02 06:22:36 or get adfree and use it and if the app is useful pay for it May 02 06:22:54 but you know what makes me even more mad? when I buy an app to kill the ads, then they add ads to the paid one *cough*fruit ninja*cough* May 02 06:22:57 i do use adfree, and that's part of the reason i think ads are usually pointless to implement May 02 06:23:06 fruit ninja put ads in the paid app? May 02 06:23:08 wow May 02 06:23:11 yea May 02 06:23:11 epic failure May 02 06:23:33 it was in an update a few days ago they added them May 02 06:23:42 awesome behavior award May 02 06:23:45 there's pages and pages of people complaining in the reviews already May 02 06:23:45 hesperaux: for the 1%ers ya i went there that adfree 99% others look at them May 02 06:24:09 i suppose tha'ts true May 02 06:24:31 and people like that is why I don't feel bad about using adblock May 02 06:24:45 i like it when i install an app that requires no permissions, is completely free, and has no ads May 02 06:24:51 there's people like my grandma that if it wasnt for me she'd still be using aol dialup May 02 06:24:58 i offered to root peoples phones before and hook them up but there like it will void my.... lol May 02 06:25:04 yeah lol May 02 06:25:04 I dislike apps that require phone information? May 02 06:25:05 reflash the stock duh May 02 06:25:08 so unless i make an app that is really important, i intend to make apps like that (with exceptions for necessary permissions if that applies) May 02 06:25:14 my stepdad kept his nexus s stock for the last year May 02 06:25:43 I bought it a few days ago and i didnt even boot up, just fastboot oem unlock and its running aokp now. May 02 06:25:48 my phone is doing weird shit... it randomly won't charge May 02 06:26:25 sometimes it detects a charger as a usb data/debug connection and charges, sometimes it will do that but won't charge. other times it will just charge normally, and sometimes the button lights just turn on and that's it. rebooting the phone with it plugged in will make it charge again. May 02 06:26:41 lol that sounds like a software issue May 02 06:26:44 indeed May 02 06:26:47 especially if rebooting fixes it May 02 06:27:03 flashed a fresh bionix-v over a stock ODIN and no dice May 02 06:27:08 hmm weird May 02 06:27:13 vibrant I'm guessing? May 02 06:27:16 some time when i have lots of spare time wher ei don't need the phone i'm gonna do another wipe May 02 06:27:21 yes, the 3g vibrant May 02 06:27:27 hesperaux - I was just told by coworker that hacked kindlefire does EXACT SAME THING May 02 06:27:27 i like it. it's a nice phone still May 02 06:27:29 try a different charger May 02 06:27:34 i have lol May 02 06:27:35 I have issues with my stock charger May 02 06:27:39 screen is still better than most new ones May 02 06:27:40 my motorola charger works perfect May 02 06:27:45 in fact, i have like 8 microusb that i use depending on where i am May 02 06:27:57 lol ok then not the charger May 02 06:28:02 i have a hacked kindle fire and mine doesn't do that. i put ICS on that May 02 06:28:18 kindles are fun May 02 06:28:28 I want a nook simple touch May 02 06:28:36 eink that lasts weeks, and runs android May 02 06:28:45 it runs android? that's neat May 02 06:28:50 moving stuff is... interesting May 02 06:29:03 http://www.youtube.com/watch?v=k22BB8VPI5o May 02 06:29:28 and for people that have been around a long time, yes thats jesusfreke from the g1 long long ago May 02 06:29:32 lol angry birds May 02 06:29:57 wow e-ink rages at it xD May 02 06:30:05 yeah May 02 06:30:16 I love how it just gives up when the whole screen should be moving May 02 06:30:27 lol yeah i see that May 02 06:31:15 Hmm, anybody got a good example of start activity for intent? May 02 06:31:36 startactivity for result? May 02 06:31:56 yeah, that one, sorry May 02 06:34:36 holy fuck http://tech.slashdot.org/story/12/05/02/0334240/google-apps-beats-office-365-for-us-dept-of-the-interior-contract May 02 06:34:55 wat May 02 06:35:00 lol awesome May 02 06:35:11 The problem with mine is, no data seems to be getting returned. ie, resultCode != RESULT_OK May 02 06:35:30 hey, zelazny May 02 06:37:31 Jak_o_Shadows are you setting it in the activity you start with setResult() ? May 02 06:37:53 Here's an extrac: http://bpaste.net/show/pG5Pd1IohVvED1jIOK4U/ May 02 06:38:18 I am shoving data into the intent i setResult(RESUT_OK, intent) May 02 06:39:56 what the heck is getParent() ? May 02 06:40:28 ignore that, pretend i'm just going setResult(etc) May 02 06:40:37 uh, Calendar on froyo - ics gives me different results than Calendar on an oracle jre May 02 06:40:47 05-02 01:39:15.501: E/AndroidRuntime(5707): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.dinada.splash1 } May 02 06:41:09 wtf havent got dbugging down May 02 06:41:12 g00s I think I had that issue too.. had to like +1 the month or something May 02 06:41:33 dominicdinada did you put said activity in your manifest? May 02 06:41:59 Jak_o_Shadows what's your startActivityForResult() call look like May 02 06:42:08 raymonddull: ha :p May 02 06:42:11 t0mless: it agrees if i instantiate the calendar with an explicit timezone - then it matches results ; but when i just say getInstance() for default timezone - its off by 1 hour in dst calculations sometimes May 02 06:42:14 hi JesusFreke May 02 06:42:17 also, it's hard to ignore that getParent() call as that could be fucking everything up May 02 06:42:19 didnt realize you were here May 02 06:42:38 o/ May 02 06:42:59 tomless i thought i did May 02 06:43:05 ill do so now May 02 06:43:09 and retry May 02 06:43:11 he jf May 02 06:43:15 anybody know a common reason why (without any exceptions thrown) a cursor adapter might provide no items to a listview? (I am pretty sure the query doesn't return 0 rows) May 02 06:43:16 hey even May 02 06:43:37 hesperaux: maybe you did not moveToFirst() or something May 02 06:43:42 hmm, nm May 02 06:43:50 also, are you starting it with an explicit intent or with an action/category that would require an intent filter? May 02 06:44:24 hesperaux make 100% sure your query isn't returning 0 rows May 02 06:44:27 t0mless: I have tested it without that code. In fact, thats what I started with. Also, I create an intent like normal for openeing an activity (configIntent = new Intent(start.this, config.class), then i startActivityForResult(configIntent, 3); May 02 06:44:29 g00s, i did actually call moveToFirst() on it May 02 06:44:33 so thats explicit. May 02 06:44:50 t0mless, i'm gonna do that now. I was trying to use the debugger for it but i couldn't find what field contained the query results May 02 06:45:02 test May 02 06:45:04 ah better May 02 06:45:08 Jak_o_Shadows that question was actually for dominicdinada May 02 06:45:16 that was weird May 02 06:45:27 irssi said I was banned from this channel but I was still in it May 02 06:45:31 with a different nick May 02 06:45:39 and I couldn't change it because I was banned May 02 06:45:41 Snuffel, your nick must be registered to be unbanned, and you must be identified May 02 06:45:49 Jak_o_Shadows so you're saying it worked without that getPArent() code and now it's not? May 02 06:45:55 you cannot change your nick on a channel when you are banned May 02 06:46:07 and I cannot identify with the wrong nick May 02 06:46:12 so you have to /part, change your nick, identify, and then /join May 02 06:46:14 so that's a deadlock May 02 06:46:16 :) May 02 06:46:18 Snuffel yea, it's not "banned" it's stupid May 02 06:46:24 t0mless: Intent MainActivity = new Intent("com.dinada.splash1"); May 02 06:46:24 startActivity(MainActivity);} May 02 06:46:31 anyway a reconn worked :) May 02 06:46:33 you should register your secondary nick :) May 02 06:46:44 t0mless: I'm saying it doesnt' work either way. May 02 06:46:50 bans are by mask lol May 02 06:46:55 dominicdinada your activity would need an intent filter to handle that intent dominicdinada May 02 06:47:35 Jak_o_Shadows put a breakpoint in your onActivityResult() code May 02 06:48:11 t0mless, yeah i just checked with a Toast. My cursor has 8 rows back from the database query May 02 06:48:18 t0mless: http://pastebin.com/8E1gSjG6 May 02 06:48:58 t0mless: When I get my android phone back later today May 02 06:49:22 dominicdinada the better way would be to use new Intent(this, Splash.class); May 02 06:49:41 Jak_o_Shadows no emulator? May 02 06:49:41 ok ty t0mless May 02 06:50:04 gah, hate the emulator. But ok4. May 02 06:50:33 dominicdinada also, your action didn't match the intent you made before May 02 06:51:04 ( t0mless ): Intent MainActivity = new Intent("com.dinada.splash1"); but you don't have the action "com.dinada.splash1" in your intent filter May 02 06:51:07 oops May 02 06:51:30 yes thats why lol May 02 06:51:35 also, I'm not 100% sure, but I think actions are case sensitive May 02 06:52:02 but with new Intent(this, Splash.class); do i need to add new intent filers May 02 06:52:12 no May 02 06:56:16 with a SimpleCursorAdapter, do I have to override getView() or may I override bindView() and newView() only? May 02 06:56:33 from the source, it appears that bindView() is called by getView() anyway May 02 06:56:56 but it seems that my bindView() and newView() are never called from my adapter by the listview May 02 06:58:25 Use CursorAdapter tbh ;d anyway, yeah, don't override getView May 02 06:59:04 why use CursorAdapter instead? May 02 06:59:42 and any guesses as to why the listview isn't calling newView or bindView? I have registered the adapter to the listview and the debugger verifies that for me May 02 07:00:27 SimpleCursorAdapter is only really for automatic binding of data to views May 02 07:00:42 If you override newView or bindView, the point of it is gone May 02 07:00:59 oh May 02 07:01:25 ohhh, that's why it asks for String[] from and int[] to May 02 07:01:29 Yep May 02 07:01:34 column to view id May 02 07:02:28 they're just textviews, so i am gonna try simplecursoradapter and not override those methods May 02 07:20:17 i'm having problems setting up the sdk in windows May 02 07:21:13 sdk manager works fine using eclipse, but if I run SDK Manager.exe, a cosole flashes and then nothingg May 02 07:33:22 hi, any proguard guru around? May 02 07:34:08 i successfully managed to remove debug logs from being printed in release mode, but failed to remove the actual debug strings from the bytecode May 02 07:46:01 hi all, where can I find a very simple android sample app demonstrating linear layout with some text fields being set ? I recall there were such samples in the Dev Guide few years ago but I can't find them anymore. May 02 07:46:41 http://developer.android.com/resources/tutorials/views/index.html May 02 07:50:03 blip99: what is a linear layout? May 02 07:50:16 fer realz? May 02 07:50:30 yep May 02 07:50:34 and found on the link May 02 07:50:39 thanks t0mless May 02 07:51:04 was this the xmlrpc you mentioned using yesterday > code.google.com/p/android-xmlrpc May 02 07:51:52 probably May 02 07:53:07 it seems pretty cool, well I have 1 hr 30 mins i need to get to it :) May 02 07:53:11 thanks for help May 02 08:09:33 hi all May 02 08:21:12 Is there a ressource for a float value? May 02 08:22:58 I want to setup the weight off some views with the same value, but easy changable later. But it seems there is no working ressourcetype for doing that. May 02 08:25:17 Hi everyone, anyone succeeded showing a youtube video inside a webview in fullscreen mode on 4.0.3? I'm getting crashes and hidden views :( everything works as expected on 2.3.5 May 02 08:26:17 I'm using Log.d at the start of the app inside onCreate, but somehow it isn't printing the text. Any thoughts ? May 02 08:26:34 as simple as Log.d("App", "begin") May 02 08:26:52 I don't have filters etc. checking with LogCat in Eclipse May 02 08:27:50 blip-: why dont u just use the logcat in the terminal... May 02 08:27:53 not that it matters May 02 08:28:13 yeah I don't have things set up fully properly yet May 02 08:28:30 but this Log.d not showing is strange, too simple for something to have gone wrong May 02 08:29:35 blip-: maybe eclipse logcat does not show debug level logs (just a guess) May 02 08:30:01 goto your android directory / platoform-tools May 02 08:30:07 and run adb logcat May 02 08:30:08 Try Log.v :P May 02 08:30:25 or that May 02 08:34:18 lol May 02 08:34:50 yes Log.v appears, I don't see why Log.d wouldn't appear when I've selected Debug in the dropdown filter thing.. May 02 08:35:11 well turns out my problem is failed xmlrpc. Great time for bugs May 02 08:46:35 hi, as mentioned in the simple example here http://code.google.com/p/android-xmlrpc/, I'm doing XMLRPCClient client = new XMLRPCClient("http://foo.bar.com"); May 02 08:47:01 the URL i'm using is correct, since I can use PTS Debugger (Standalone tool to make RPC calls) and that works fine to call functions May 02 08:47:10 but within Android I get an exception May 02 08:47:28 Logcat shows a java.net.UknownHostException May 02 08:48:00 Any thoughts why this could happen, is it the format of the method call itself or the problem is at an earlier stage ? May 02 08:48:34 Did you forget the internet permission? May 02 08:56:08 did you ask the internet for permission? May 02 09:01:13 JakeWharton, I just added the INTERNET permission, but no luck :/ It's basically 2 lines of code the xmlrpc call, I don't get why it fails May 02 09:03:21 Hello all. Is it possible for a service to react to hands-free buttons press? May 02 09:06:17 damn May 02 09:06:24 ok I printed the exception as I should have done earlier May 02 09:06:43 says method doesn't exist - I can call the same method from a standalone RPC test tool (PTS Debugger) May 02 09:16:33 WindowManagerImpl.http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/1.6_r2/android/view/WindowManagerImpl.java#WindowManagerImpl.getDefault%28%29(); <— is it equivalent to AppDelegate.window ?? May 02 09:19:45 I have a question May 02 09:19:46 http://pastebin.com/WjwQEUPt May 02 09:22:02 oh cool, android 4.0.4 is soon eclipsing android 2.1 May 02 09:22:55 \o/ May 02 09:22:59 * alankila chants death to android 2.1 May 02 09:27:44 hi, can i deploy app using eclipse without a cable? May 02 09:27:50 bluetooth or something May 02 09:29:14 Hey, how can i use the Hierarchy Viewer with a Logitech Revue which is with GoogleTV May 02 09:31:00 dAnjou: adb over wifi, something like airdroid or kies... various ways May 02 09:31:45 Leeds: but this needs some fiddling, right? May 02 09:31:58 meh, don't want fiddling May 02 09:32:07 ah, you want unusual but easy May 02 09:33:05 didn't know that this is an unusual way :P May 02 09:33:19 it is May 02 09:33:24 what's wrong with USB? May 02 09:33:26 <`z> http://dl.dropbox.com/u/6213850/WebGL/nyanCat/nyan.html May 02 09:33:28 <`z> it's kind of weird May 02 09:33:38 <`z> that chrome on my laptop doesn't support webgl May 02 09:33:42 Leeds: i don't have it with me -.- May 02 09:33:49 <`z> but my phone can do webgl May 02 09:33:55 go to the nearest computer store and buy one May 02 09:33:55 and nobody at work either May 02 09:34:08 and next time you'll have a spare! May 02 09:34:25 Leeds: then i could go home as well May 02 09:34:27 -.- May 02 09:34:42 if you live at the nearest computer store, that is true May 02 09:34:43 So i have opened HierarchyViewer.bat and i am getting this as result http://pastebin.com/mieau7Rz - please i need to inspect my layouts :S May 02 09:38:10 nvm. found one May 02 09:40:56 Sorry for posting this again, but I'm quite desperate :( . Did anyone succeeded showing a youtube video inside a webview in fullscreen mode on 4.0.3? I'm getting crashes and hidden views :( everything works as expected on 2.3.5 May 02 09:45:45 * hoangtran is afraid of screen rotation May 02 09:50:38 is it possible to do fragment transaction animations with the support lib? May 02 10:02:11 one word: d'oh May 02 10:02:13 http://www.drdobbs.com/jvm/232901227 May 02 10:03:39 I wonder if using (vs. reimplementing) an API would be considered copyright violation as well, if APIs were deemed copyrightable. May 02 10:04:59 isn't that sort of blowing it out of proportion May 02 10:06:26 copyright is enough of a beast already... still, its funny to see people trying to make it even more powerful May 02 10:07:05 I'd love to see Oracle win that case and then get sued for implementing the SQL API in their database products. May 02 10:14:08 Grrr that dreaded IllegalArgumentException: already added error May 02 10:14:23 How many more of these adb upgrade trainwrecks are we going to have to endure? May 02 10:16:24 i haven't had any yet May 02 10:19:44 Hi, i am currently working on an app for android that I wish to have MapView within May 02 10:20:48 but when reading on various tutorials, it says I have to use the google api based projekt, and not a "normal" android. Can someone please shed some light on this May 02 10:21:44 I do not understand what it means really, will i be able to use the "google api projekt" on my real device, or does it only work on the virtual device in eclipse? May 02 10:21:49 kaspuh: you need to use google map api key, you can get the key free from google May 02 10:22:51 styling dialogs isn't fun May 02 10:22:56 blue_pearl, i belive i have gotten an api key, but when I create a project i have to pick google api instead of the 2.3 ? May 02 10:23:41 What i want to do, is just use my current project, and add a map to it. If possible. May 02 10:33:42 heyo May 02 10:33:56 when an activity gets interrupted by the user pressing the phone's back button, does onStop() or onPause() get called? May 02 10:34:30 SaulGoodman: when back is pressed, the activity isn't interrupted - its finished May 02 10:34:40 so onStop(0 then May 02 10:34:44 onStop() May 02 10:34:47 everything May 02 10:34:58 through onDestroy() May 02 10:35:33 i need to save state so when the user comes back to the activity it's the same as where they left it May 02 10:35:42 so override onDestroy(), then May 02 10:35:51 thank you g00s May 02 10:42:24 err... override onDestroy() ?? May 02 10:44:01 http://pastebin.com/dYH3Kge0 i want to write a file like that, it contains RFID UID's, if there is no end timestamp (2:), it should read all UID's already written to the file, and put them in a List or Array... what is the best method for this? May 02 10:51:58 anyone? May 02 10:58:09 http://pastebin.com/dYH3Kge0 i want to write a file like that, it contains RFID UID's, if there is no end timestamp (2:), it should read all UID's already written to the file, and put them in a List or Array... what is the best method for this? May 02 11:02:47 What is less heavy for the phone: Have an app that starts a service and the service gathers GPS info every 30 seconds and sends it via POST to a server OR Have an app that creates an alarm manager and that alarm manager creates the service every 30 seconds that gathers GPS info and sends it via POST to a server ?? May 02 11:05:27 see if an android phone has been blocked and locked May 02 11:05:30 how do you know?] May 02 11:05:32 what does t say? May 02 11:05:45 cause i have a contract and i didn't pay it May 02 11:05:58 so my sim has been disconnectred but i dont know if the phone has been locked May 02 11:06:01 completely May 02 11:06:03 how can i tell?# May 02 11:06:23 power it on, use it. May 02 11:06:50 iSeeDeadPixels: you are so smart! May 02 11:07:05 Solinari: pay your bills May 02 11:07:11 i can't May 02 11:07:26 i just want to know how you can tell if the phone has been blacklisted May 02 11:07:27 * Snuffel tuts May 02 11:07:34 what happens?~ May 02 11:07:39 does it not turn on May 02 11:07:40 didn't your mother teach you anything about money May 02 11:07:43 oh fuck off May 02 11:07:50 i am just asking a simple question] May 02 11:07:50 goto #ndroid May 02 11:07:54 goto #android May 02 11:07:56 Solinari: you're asking the wrong people May 02 11:07:58 i have May 02 11:08:01 this is for dev :3 May 02 11:08:02 fine May 02 11:08:03 I have 2 Screens (Screen A, Screen B), both contain Lists. When I click on an item in Screen A it takes me to Screen B, is there anyways I can modify what Screen A outputs if on Screen B i do something in concrete like modify a field or click on a button? May 02 11:08:08 not for you boogus May 02 11:08:10 but people here should know May 02 11:08:16 fuck it thanks for nothing May 02 11:08:19 people here pay their bills May 02 11:08:22 ass May 02 11:08:24 yup May 02 11:09:04 :) May 02 11:09:15 today's youth.... :) May 02 11:09:16 Snuffel, kan je me ergens mee helpen? XD May 02 11:09:28 iSeeDeadPixels: soms wel May 02 11:09:35 pff ben 18 8-D May 02 11:09:41 http://pastebin.com/dYH3Kge0 i want to write a file like that, it contains RFID UID's, if there is no end timestamp (2:), it should read all UID's already written to the file, and put them in a List or Array... what is the best method for this? May 02 11:10:18 you can google that May 02 11:10:21 i don't know that by heart May 02 11:10:23 nobody does May 02 11:10:39 i already know how to retrieve the UID's May 02 11:10:44 and the Timestamp May 02 11:10:46 we are the google generation May 02 11:10:50 and how to create files :') May 02 11:11:02 i'm just wondering if i'm taking the right approach. May 02 11:11:39 if it works it probably is May 02 11:11:44 lol May 02 11:28:08 so if i tell my DialogFragment to be STYLE_NO_TITLE, the title disappears but the width of my dialog is halved May 02 11:28:11 what's the deal with thaTR? May 02 11:36:33 fucking dialogs May 02 11:36:40 are the bane of my life nowadays May 02 11:38:55 i got 4 gigs in 2x2gig, should i just add 2x4gig or should i replace everything and do 4x4? May 02 11:40:01 greedy May 02 11:40:56 ramming is so cheap now May 02 11:41:06 plus it gives me incentive to wipe my computer May 02 11:41:17 since i only have windows 32 bit May 02 11:41:57 I have 16 GB RAM, it's so cheap so why not... May 02 11:42:16 bought 4x4 May 02 11:42:20 yeah but what's the point May 02 11:42:51 I can surf the web so fast now May 02 11:42:56 yeah. I went from 8GB to 4GB, because hibernating is faster and windows does not cache so much files all the time :) May 02 11:43:08 I deactivated the pager file in windows May 02 11:43:21 I noticed a major performance improvement in 4->8GB but I doubt I'd be seeing much of that if I go any higher, with my use anyway May 02 11:43:21 So it doesn't swap to disk... May 02 11:43:40 deactivating the page file is a pretty bad idea May 02 11:43:46 Mikisen, that only makes it slower May 02 11:43:46 * Zharf agrees May 02 11:43:51 Zharf: what sort of stuff do you do? May 02 11:44:06 storkme_, music stuff mostly May 02 11:44:14 fair enough May 02 11:44:24 VM's May 02 11:44:29 people use hibernate? May 02 11:44:29 12 GB DDR3 ram :3 May 02 11:44:33 nope May 02 11:44:33 I haven't noticed any performance issues, and figured there's no need for swap with 16GB memory... May 02 11:44:39 Why would it be slower? May 02 11:44:40 Mikisen: I use it several times a day. May 02 11:44:41 i'm always looking for excuses to spend money on shit i don't need, but 8gb of ram just seems totally fckn stupid for me May 02 11:44:50 SSD. May 02 11:44:51 If I sent a Parcelable via an intent to one screen, modify it. In the previous screen will the data changes be reflected? Or how can I go about this? May 02 11:44:52 sry, mikedg I mean. May 02 11:44:58 I have a SSD May 02 11:44:58 Most Definately get a SSD. May 02 11:45:03 i cant believe anyone in dev would think 8 gig is enough May 02 11:45:05 Mikisen: the page file isn't just for extending ram May 02 11:45:14 I have 4GB on my box at work and it's *not* enough for development :E May 02 11:45:15 i dev with 4gb May 02 11:45:19 and it's plenty May 02 11:45:21 I'm requesting another 4G May 02 11:45:25 I'm having an odd issue with an activity that extends activity and implements OnGestureListener. The activity presents a grid view, and the grid view works as expected, but the guesture listener is never activated, specifically, fling. Anyone here have example code of a gridview with working onFling ? May 02 11:46:02 running eclipse, one VM, GIMP with like 20 files open, few editors, web browser, outlook, IM client, some word documents, etc etc all in 2.5GB May 02 11:46:51 the only reason to have 16GB is flash plugin. May 02 11:46:56 which I don't have. May 02 11:47:01 Haha May 02 11:47:04 ;) May 02 11:47:12 Yeah flash is ...urgh. May 02 11:47:17 o.O May 02 11:48:40 I send data from Screen A to Screen B, is there a way to get info from Screen B back to Screen A? (Not sure how to do it if i press back to end the activity, i want to force Screen A to do certain things) May 02 11:49:35 Bear10: how're you passing the data to b ? using an intent and start activity? if so, use startactivityforresult May 02 11:49:50 yeah i'm using an intent May 02 11:49:54 ah okay May 02 11:50:02 codefriar, thanks that could work May 02 11:50:04 when you're done in B May 02 11:50:10 Bear10: just call finish May 02 11:50:16 it'll go back to A May 02 11:50:27 codefriar, thing is i was wondering if there was anyway to modify lets say a parcelable May 02 11:50:39 no idea May 02 11:50:42 because i send a parcelable from Screen A to screen B, i modify that data, and then i want the change to reflect on A May 02 11:50:44 i see May 02 11:56:26 Bear10: why not keep the data in a central location, and have both A and B pull from there? May 02 11:56:55 MDijkstra, well the "central" location is a webserver i pull the json, are you suggesting i store it in a static variable in the Application? May 02 11:57:02 like a "cache" i suppose? May 02 11:57:34 what is your goal? May 02 11:57:39 Bear10: no, you should read up on android's component model May 02 11:58:06 .0001% of things should be put in an Application subclass. May 02 11:58:19 Bear10: http://developer.android.com/guide/topics/fundamentals.html May 02 11:58:24 readme, my goal is to get a parcelable that i pass from Screen A to Screen B, and modify it in Screen B when i go back to Screen A to reflect the changes (update the arraylist, and remove the object) May 02 11:58:26 can I force IDEA to show Android tool window when I run a project? May 02 11:58:39 Bear10: so, just implement Parcelable May 02 11:58:43 it's not that hard. May 02 11:58:45 #idea-users is very quiet, only a "morning" in two days of lurking May 02 11:58:47 readme, i am using parcelable May 02 11:58:48 Bear10: well, no. your goal is to share data between two activities May 02 11:58:54 Bear10: and what is your problem then? May 02 11:58:57 the parcelable is the way you've chosen to implement that May 02 11:59:30 I mean, you could have a complicated synchronization scheme May 02 11:59:34 readme, im not sure how to reflect the change. Screen A has a list of types of crackers, and then i click it and pass the parcelable to Screen B, which shows types of crackers, i can mark / unmark the type as a favorite or not May 02 11:59:39 where you pass data back and forth May 02 11:59:50 so if i go back to screen A it should reflect the change May 02 12:00:01 I'm having an odd issue with an activity that extends activity and implements OnGestureListener. The activity presents a grid view, and the grid view works as expected, but the guesture listener is never activated, specifically, fling. Anyone here have example code of a gridview with working onFling ? May 02 12:00:05 Bear10: well, you'll need to define a field in your Parcelable class that is called "isFavorite" May 02 12:00:05 you can of course pass a parcelable back to A May 02 12:00:12 readme, i have that May 02 12:00:21 ok, so you pass it back to A, like MDijkstra is telling you May 02 12:00:24 then update May 02 12:00:33 use startActivityForResult && onActivityResult May 02 12:00:43 well, yeah, but if you're planning to do this a lot May 02 12:00:51 it's better to just create a contentprovider imo May 02 12:00:53 no its just one screen really May 02 12:00:57 well, ok May 02 12:01:02 I don't know about the content provider, but I definitely think you should use SQLite. May 02 12:01:54 trying to move away from SQLite in this project May 02 12:02:00 anyway you can do it this way and find out later you need to rewrite it in sqlite when you get all sorts of weird persistence bugs like, when the activity gets recycled and your parcelable object disappears May 02 12:02:05 didn't like the way it worked for what was needed May 02 12:02:11 meh, sqlite rules May 02 12:02:17 i love it more than any sql database May 02 12:02:23 sure i dont disagree with that May 02 12:02:31 actually maybe i COULD do what you're saying May 02 12:02:34 ok well you know what you have to do May 02 12:02:47 i could maybe empty the sqlite db everytime i load the data from the server May 02 12:02:48 Bear10: anyway, just saying, it makes sense to read up on how these things are supposed to be done May 02 12:02:59 Bear10: even if it might not be the quickest solution in this case May 02 12:03:08 MDijkstra: any pointers on where to read up on gridviews and onFling ? May 02 12:03:10 MDijkstra, i dont disagree, sometimes though time constraints kick in May 02 12:03:14 sure May 02 12:03:25 "Give me six hours to chop down a tree and I will spend the first four sharpening the axe." --Abe Lincoln May 02 12:04:10 looking at the Content providers May 02 12:04:11 right now May 02 12:04:33 "Give me six hours to chop down a tree and I will spend 3 months building a wood chipper." --Me May 02 12:04:36 * MDijkstra rent May 02 12:04:39 *runs May 02 12:04:46 lol May 02 12:05:06 I would advise against using a content provider unless you need to make the data available to other applications, since it will increase the amount of boilerplate you need to write for no functional gain. May 02 12:05:50 yeah i think SQLite might be the way to go May 02 12:05:57 if startActivityForResult doesn't cut it May 02 12:06:16 it will work, it's just that SQLite makes so much more sense, since the data is persistent that way. May 02 12:06:43 readme, yeah though it doesnt make sense if its just 1 call to a webservice api, i can keep it in memory for the short time span i need access to it May 02 12:06:48 does it? May 02 12:06:59 its only needed for 1 screen May 02 12:07:16 contentprovider ftw May 02 12:07:20 having developed a lot of apps that use webservices, it is almost definitely a good decision May 02 12:07:25 Then you can use CursorLoader May 02 12:07:34 I can almost bet you that invariably your client is going to say "it doesn't work offline" "make it work" May 02 12:07:46 or boss, whatever. May 02 12:08:26 readme, yeah but my app has to be online May 02 12:08:43 we have a version that works offline and syncs data and what not May 02 12:08:49 but we decided it doesn't make sense to have this May 02 12:09:01 too many changes going on all the time May 02 12:09:50 Hello people, can anyone help me with animating a custom view? In my view I draw a bar graph. And I want that, as soon as the view is visible, the bars of the graph grow from the bottom to their respective values. I did this with a thread and it works. But I can't get the view to animate when it becomes visible. I'm triggering the animation on the onWindowFocusChanged. I open the activity, the view is drawn with custom values, then I May 02 12:11:25 Isn't there anyway to filter the "Dev Guide" by API levels ? May 02 12:11:37 hi people. i'm new to android dev (but far from new to dev full-stop :) ) i want to make my android device (when on my LAN) respond to a network request / signal from another machine on the LAN (webapp). i don't mind if it's an HTTP GET or whatever. what's the best way to do this? web server or app on the android device, listening on a certain port? May 02 12:12:01 I have some other views that use android Animation's and they're also triggered at the same time and they work right away May 02 12:12:42 antgel: you might want to look into using jmdns (bonjour) May 02 12:13:32 antgel: that's a bit short on details, but if you want your phone to wake up (and not have it active when listening), a push service like c2dm would make sense. May 02 12:13:41 readme: i'll look at that, i don't know much about it - avahi rings a bell for some reason. NB the webapp doesn't run on a server, it's just HTML / CSS / JS. so i was going to do the get via JS. May 02 12:14:00 HDroid: in this scenario, the phone could be active, doesn't matter too much. but will investigate May 02 12:14:07 I'm trying to display a grid view (works) and still have a on-fling gesture recognized to "swipe" over to a new activity. I've got gesture detection code in place but for whatever reason, the callbacks are not being called. is there a way to attach onFling to grid views? May 02 12:14:44 readme, HDroid: a quick google suggests ServerSocket might be of use. is that too low-level for what i'm talking about or is it worth investigating? May 02 12:14:57 Can I implement a custom Animation that isn't a transformation? But a direct change of some values on my specific View? May 02 12:15:52 antgel: well, you'd be defining your own communication protocol. Making something RESTy would be much simpler. May 02 12:16:09 code at : https://gist.github.com/263c4f7f67d9201e53c3 May 02 12:16:37 HDroid: right, i don't want to go there. i'll look at jmdns and c2dm, and then probably come back with more questions :) May 02 12:16:40 thanks May 02 12:17:54 antgel: whether to poll or to have something running on the android device depends on what you're making, but either how, a REST-system is easiest to make. You could run a web service on the device as well and have it listen, with jetty or some other http serving framework. May 02 12:18:07 From there on it's plain GET/POST and parse. May 02 12:18:44 This does imply a certain statelessness, though. May 02 12:19:14 If you need constant bidirectional communication or specific state, a socket might make sense. May 02 12:20:51 HDroid: wow, c2dm looks like the ticket but i don't think i'll be able to fulfil the requirements at https://developers.google.com/android/c2dm/#server, as i don't have an application server (for reasons outside my control) . i don't want to poll, i want an "instant" reaction to the signal when it comes from the webapp. statelessness is fine. so i think what you're saying about a web service sounds perfect, i'll check out jet May 02 12:22:10 antgel: of course you can use sockets to do it. May 02 12:22:29 antgel: but you'll have to implement your own mechanism for the two devices to detect whether they are on the network together May 02 12:22:58 readme: in this scenario, they always will be. it's a demo of a concept May 02 12:23:41 antgel: then go ahead, use a socket or small server. I thought you might want it to work more easily. With jmdns, the user will not have to configure anything. May 02 12:24:22 even if you used jmdns, you'd still need this server component. May 02 12:25:02 Jetty is the way to go for an embedded web server May 02 12:25:05 it rocks May 02 12:25:29 ^^ definitely use bubbleguuum's suggestion rather than trying to invent your own. May 02 12:27:10 heh, credit to HDroid as well ;) May 02 12:28:31 i'm reading the docs, but is jetty able to trigger behaviour on the device rather than "just" serve pages? i'd be looking for the device, when it receives the HTTP request, to display a screen or two (this could be an app which will be written separately) May 02 12:29:41 it can do anything you want. write your own servlets to handle custom requests May 02 12:30:35 bubbleguuum: that's what the homepage means by "webapps developed for i-jetty have access to the Android API"? May 02 12:31:02 antgel: if you embed that in an android app, of course May 02 12:31:05 antgel: the page in this case would be a simple 200 http response, maybe with some content to show a message or other status information (in json or something) but it could be completely empty. Bottomline is that in the handler for your request, you run your code that is to be triggered. May 02 12:31:27 you'll need to understand threads to use it, though. because you can't just fling up a screen on the device from one of those jetty servlets or whatever it has. May 02 12:31:39 you'll need to post it to the ui thread. May 02 12:32:08 antgel: forget i-jetty and erad direclty on embedded jetty. Thre's nothing particular to Android when embedding jetty May 02 12:33:20 okay, i think i understand enough to have the confidence that this can DWIW. i suppose it's time to dive in May 02 12:34:40 in ExpandableListView, if my data is changed, do I reset the ListAdapter? or just update my data in the adapter? or both? May 02 12:34:53 try it May 02 12:36:17 ekh: the adapter should always have a reference to the same data source. when you change that data source, you just call notifyDataSetChanged() to tell the adapter, then it will update itself. May 02 12:37:45 readme: I guess my design is at fault. Right now, I am passing the data to my adapter (following some examples), according to you, my adapter has to fetch the data? (for example from my db) May 02 12:39:41 readme, i'm doing the onActivityResult and trying to remove my object from the list, however i don't think it's the same object, is there any other way to remove it or do i have to manually check for it by looping through and matching up ids? May 02 12:40:15 does anybody have a good resource to layout optimizations? i'm haven this bloated layout tree and it needs to be simplified, because I'm getting stackoverflow errors May 02 12:40:23 *having May 02 12:42:10 I know there's the merge tag, but I'd need to apply styles to the parent layout May 02 12:42:52 Hello guys, what tool do you use to make a screenshot for your app? May 02 12:42:53 ekh: if the data is in a database, you should use something like SimpleCursorAdapter. May 02 12:43:25 Bear10: I have no idea why you'd want to loop May 02 12:43:47 readme, it's why i'm asking. the default List.remove(object); isn't doing the job May 02 12:43:55 how else would i match up the object it needs to remove? May 02 12:44:02 I don't even know why you have a list May 02 12:44:13 I don't know if it's the *same* object, it probably is a copy. May 02 12:44:18 right it's probably a copy May 02 12:44:22 seeing as how it has to be serialized and deserialized May 02 12:44:25 I doubt it's the same May 02 12:44:43 so id need to manually match it up by id May 02 12:44:45 right? May 02 12:44:49 that would work May 02 12:45:06 but, you're asking me vague questions about an implementation I don't know much about. Keep that in mind. May 02 12:45:48 alright i am done meandering around here May 02 12:54:32 Heya android developers, I am currently developing an application in which an android application is supposed to communicate with a java server over ssl, I am having trouble with the certificate and was hoping someone here would be able to help me out! Thanks in advance. May 02 12:57:57 HenkVissert: what is the problem with the certificate, is it self signed? May 02 12:59:28 Yes wongk, I have made multiple certificates myself, with multiple different versions of BKS, but for some reason, even though it should work as far as I can see, I keep getting "wrong version of keystore" errors. May 02 13:00:04 ok, that goes past my very limited knowledge of SSL :P May 02 13:01:14 Thanks anyway mate, appreciate the help. Hope someone else has some experience regarding this matter! May 02 13:02:32 HenkVissert: Is it an option to disable the security checks of the certificate? Then you could just ignore the errors and be content that the information is still encrypted... May 02 13:02:34 would someone know where to find whole source of http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/TouchRotateActivity.html ? May 02 13:03:44 http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/TouchRotateActivity.html May 02 13:03:51 miha: two questions: what's missing, and did you miss the line at the top of the page telling you where it is in the SDK? May 02 13:03:54 Hm May 02 13:04:07 Yeah, I just noticed I pasted the exact same thing, it looked complete to me. May 02 13:05:12 Well Mikisen, the thing is the application crashes because it gets an invalid certificate. Therefore no connection is ever established. Is this a valid response or did I misinterpret your suggestion? May 02 13:05:26 Leeds: yah, just found it. i still don't understand the sample... when i tried to rotate sphere like this, it didnt rotate as i'd like it May 02 13:05:55 Leeds: thought there's something in the Cube class May 02 13:06:41 Leeds: i'd like to rotate sphere by touch.. as you'd rotate a ball fixed in some place May 02 13:06:49 HenkVissert: you can essentially tell it to not validate the certificate, but this has obvious security implications and kind of defeats the purpose May 02 13:06:57 sorry, dunno about OGL stuff - never used it May 02 13:07:01 yeah May 02 13:07:04 will try #opengl May 02 13:07:22 http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/Cube.html May 02 13:07:49 Leeds: yeah May 02 13:07:59 Leeds: but it's just drawing cube, no rotation May 02 13:08:31 Thanks wongk, I guess this does defeat the entire purpose or making an ssl connection. Therefore I was hoping to find a way to solve my problem. I am sure I am not the only one with this problem and therefore hoped someone encoutnered this problem before and was able to solve it. May 02 13:11:11 HenkVissert: are either of the first 2 results for the google search "bks ssl" relevant? May 02 13:13:42 wongk: I have already read both of these results. Basicly I started reading everything regarding this topic that I could find on google. It seems only natural to me to check first myself before bothering anyone else with it. Thanks for the suggestion anyway! May 02 13:14:14 Henk, I've used SSL in my app May 02 13:14:17 what's the issue May 02 13:15:08 HenkVissert: what's the problem? root cert missing? May 02 13:16:22 well, yeah that's the other issue is it a valid cert? or is it self-signed? May 02 13:17:01 Within my adapter, I am changing the data and then notifyDataSetChanged(). I verified the data, however, my ExpListView is all messed up. Am I missing a step? maybe one that tells the listview to refresh/repaint May 02 13:17:42 am pretty sure you have to call notifyDataSetChanged from the UI thread May 02 13:17:50 are you doing it from a background thread? May 02 13:18:31 HenkVissert: if certicate is not trusted, you can import them yourself for your app, like second answer here http://stackoverflow.com/questions/2012497/accepting-a-certificate-for-https-on-android (i forgot which article i used myself) May 02 13:18:36 Thanks for replying james541 and miha, I am having the following problem. I try to establish a connection between a Java server and an android application. Creating and using the certificate for the java server is pretty straightforward. However creating the certificate for the android part does not work for some reason. I have tried creating this certificate a couple of times myself following tutorials on this subject. However, even th May 02 13:19:03 ok so this is a self-signed cert May 02 13:19:07 HenkVissert: you import certificate into keystore, you load keystore from assets.. May 02 13:19:21 well, yeah there is some extra work associated with that, what miha said May 02 13:19:28 not sure if I got you. I have two classes, ExpandableListActivity, and BaseExpandableListAdapter. Inside the adapter, i have onclicklistener that takes care of modifying data (add/remove) and then it calls notifyDataSetChanged(), from the context passed into the adapter May 02 13:19:47 context.notifyDataSetChanged() where context is my ListAcitivity May 02 13:19:48 and then once you do that you use HttpsURLConnection May 02 13:19:56 And it goes wrong when tryong to load the certificate May 02 13:20:05 for >2.3 and the Apache SSL stuff for pre-gingerbread May 02 13:20:20 what's the error? do you have a stacktrace? May 02 13:20:26 sure May 02 13:20:29 one sec, ill get one May 02 13:20:43 I will also provide the tutorial I have been working with May 02 13:20:47 @ ekh, that should work, that context lives in the UI thread May 02 13:21:02 are you sure you called it on the ListView? May 02 13:21:12 there is more than one widget that has that method May 02 13:21:19 make sure you called it on the right one May 02 13:21:38 also, ekh is this ListView backed by an sqlite db? May 02 13:21:56 james541: No, it pulls data from the web, json. May 02 13:22:00 ekh: ? notifyDataSetChanged is a method on the adapter May 02 13:22:30 I have used the following code to create the proper certificates for the server as well as the android app: http://blog.callistaenterprise.se/2011/11/24/creating-self-signed-certificates-for-use-on-android/ . And my android client is closely similar to this example http://stackoverflow.com/questions/10033872/ssl-connection-failure-between-java-server-and-android-client May 02 13:22:36 wongk: Yes May 02 13:23:11 ekh: so s/context.// on the method call you mentioned May 02 13:23:24 wongk: I am calling it within my OnClickListener using da.notifyDataSetChanged() where da is my DataAdapter May 02 13:23:29 ekh, are you using a content provider? May 02 13:23:32 oic May 02 13:24:40 james541: i don't think so. I have a class/method that retrieves data from a webservice and then cast it to JSON, and then pass the JSON into my adapter May 02 13:24:56 ekh: what is happening after you call this? May 02 13:25:04 so what is parsing the JSON? May 02 13:25:06 Gson? May 02 13:25:08 Quick question if anyone gets a moment... Does anyone know of a document that describes the TCP connection ADB makes? May 02 13:25:14 james541: simple json May 02 13:25:14 the built-in json adapter May 02 13:25:31 are you calling the web service on the UI thread? May 02 13:25:56 ok, so you should make sure that the data structure used by the adapter has been updated before notifyDataSetChanged is called or bad things will happen May 02 13:26:06 wongk: Yes, and to answer your question, what happens is my "group header" disappears as expected, but its childs is appended to the last group May 02 13:26:07 especially if that data structure is being updated off of the UI thread May 02 13:26:23 ekh: that is bad May 02 13:26:26 james541: done, and i printed them, and they look fine May 02 13:26:30 and will throw and exception on ICS May 02 13:27:08 yeah, the fact that the network fetch is on the UI thread might be causing trouble May 02 13:27:17 I'd push that out of the UI thread and see if that helps May 02 13:27:29 no it is not related May 02 13:27:33 and then use a call to the UI thread from the network thread to call notifyDataSetChanged May 02 13:27:38 it could be timing out randomly May 02 13:27:49 reading from the webservice is only when the activity get started, a one time thing only May 02 13:28:07 ok, could you link to a screenshot/stacktrace of what is going wrong? or give a more detailed description? May 02 13:28:08 doesn't matter, it wont work on 4.x+ May 02 13:28:21 wongk: I am at 2.3.3 May 02 13:28:27 james541: sure May 02 13:28:31 and all your users are as well? May 02 13:28:36 wongk: yes May 02 13:28:54 HenkVissert, give this a try http://stackoverflow.com/questions/1217141/self-signed-ssl-acceptance-android May 02 13:29:25 it's possible there's a bug in that version of android as well May 02 13:29:46 I'll upload some screenshots May 02 13:30:10 I will take a look at that james541 and as promissed the stacktrace as well May 02 13:30:11 HenkVisser, this gives a little more info on the method you were initially using (with the TrustManagerFactory) http://randomizedsort.blogspot.com/2010/09/step-to-step-guide-to-programming.html May 02 13:30:44 *HenkVissert, spelling fail May 02 13:30:49 i'm having a problem with append... from a filewriter... May 02 13:30:54 java.io.IOException: Wrong version of key store. at org.bouncycastle.jce.provider.JDKKeyStore.engineLoad(JDKKeyStore.java:812) at java.security.KeyStore.load(KeyStore.java:637) May 02 13:31:18 http://dl.dropbox.com/u/10433867/tags.log May 02 13:31:38 is not written to the end to the file, but instead everywhere. May 02 13:32:01 iSeeDeadPixels, that link does not work May 02 13:32:11 too much public traffic it says May 02 13:32:15 HenkVissert, does this help? http://stackoverflow.com/questions/5176600/android-bouncy-castle-ioexception May 02 13:32:17 ffs May 02 13:32:20 still? May 02 13:32:48 yep... May 02 13:33:10 http://pastebin.com/i0t6rY9k @ jimbo229 May 02 13:33:36 james541: I am afraid I had already ran past this post. I have added the correct storetype so this should not be giving any problems May 02 13:33:55 iSeeDeadPixels: what is the issue you are having? May 02 13:33:59 However your previous link seems a promising, let me try it May 02 13:34:06 ok, take a peek at this then, specifically the post by ?????? http://blog.crazybob.org/2010/02/android-trusting-ssl-certificates.html May 02 13:34:39 jimbo229, look for the tag May 02 13:34:46 it's freakin' everywhere... May 02 13:34:56 also where are you storing the cert in your apk/file structure Henk? May 02 13:35:48 here's the code: http://pastebin.com/m93Ek8Ak May 02 13:36:33 I load the keystore with the following command: InputStream trustStoreStream = getResources().openRawResource(R.raw.clienttruststore); which therefore should not give any problems as far as I am able to determine May 02 13:37:00 yeah, that should be fine, just wanted to check that you were loading it from R.raw May 02 13:37:15 Yeah it has been a previous problem I was able to solve May 02 13:37:25 let me create a certificate from one of your example links May 02 13:37:27 iSeeDeadPixels: I imagine you are calling writeEnd too many times... May 02 13:38:04 only in onPause May 02 13:38:35 hey, dammit... May 02 13:38:43 could someone help me with quotes on line one? Line 2 is throwing an error that HttpResponse can't be resolved to a variable, but I believe that is because of the previous lines... http://pastie.org/private/lardy5jdevk8btvw0jejyq May 02 13:38:54 is that getting called more than once for some reason? May 02 13:39:05 Sorry for such a newb question.... just starting to learn android as of last week. May 02 13:39:50 yeah... May 02 13:40:03 dschuett: you need \" for quotes inside of a quote... so you should have href=\"http......\" May 02 13:43:10 jimbo229: I was just trying that! Thanks for the assurance. It looks to be correct now. May 02 13:48:45 jimbo229: I am now gettign an Error Loading JSON and java.lang.IllegalArgumentException: Illegal character in scheme at index 0: May 02 13:48:49 wongk, james541: now with static values, not pulled off a webservice, here is a demo: http://ekh.me/bugs/listview.html May 02 13:48:56 are there any other characters that need escaped? May 02 13:50:41 dschuett: I think you may just need new HttpGet("http://search.twitter.com/search.json?q=android"); I doubt HttpGet will parse a link like that May 02 13:51:06 ekh I believe the issue is in your onclicklistener May 02 13:51:21 ekh: can we see your adapter code? May 02 13:51:25 ofc May 02 13:51:35 it should be modifying the array of unJSONified objects and then issuing the update command May 02 13:51:38 don't make fun out of it though :P May 02 13:51:42 but it isn't doing it correctly May 02 13:51:46 dude why are you calling httpget with html as param May 02 13:51:49 dschuett: what exactly do you expect this code to do? May 02 13:51:51 lol, that's called learning May 02 13:52:05 noone starts with beautiful code the first time, except prodigies May 02 13:52:18 any preferred bin? May 02 13:52:22 pastebin* May 02 13:52:30 whatever floats your boat May 02 13:52:33 something legible and not too javascript/flash heavy May 02 13:53:06 http://pastebin.com/TSNg6KrX May 02 13:56:07 Isn't there anyway to filter the "Dev Guide" by API levels ? May 02 13:59:08 ekh May 02 13:59:10 there is a bug May 02 13:59:24 getListView should return "this" not context May 02 14:00:28 it is not like i am using it ;p May 02 14:01:00 if you're not using it nvm then lol May 02 14:01:04 still reading the code May 02 14:01:19 :) May 02 14:03:28 yeah, the bug has to be in your onClick May 02 14:03:33 everything else looks fine May 02 14:04:07 specifically somewhere between lines 122 and 128 May 02 14:04:11 but my onClick does fine, and the output verifies it May 02 14:05:03 line 128 prints out the new "data" and it looks good (as shown in the screenshots i provided) May 02 14:05:39 hmm, ok May 02 14:05:43 give me a sec May 02 14:06:53 guys wth are you trying to do May 02 14:07:07 in getChildView and getGroupView try instatiating a new convertView even on the path where the variable isn't null May 02 14:07:18 it could be using a stale view and that could be the problem May 02 14:07:18 what my onClick does is (currently) removing the selected objected from the Map (JSONObject), which should result in removing it from the display also May 02 14:07:34 ok May 02 14:07:54 so commenting out the "if (convertView == null)" May 02 14:07:59 the bug is having an Adapter with a getListView method :P May 02 14:08:05 yeah basically May 02 14:08:18 hehe, but he doesn't use that, supposedly May 02 14:08:25 are you trying to show a json in an expandablelistview May 02 14:08:34 while we're on that subject, comment out that method May 02 14:08:44 (the getListView) May 02 14:08:58 xorgate: no, forget about json, it is just an object (Java.util.Map) May 02 14:09:42 http://pastebin.com/TSNg6KrX <-- this is what im looking at May 02 14:10:27 xorgate: yes, i was talking about that, too May 02 14:10:34 james541: didn't work. same result May 02 14:11:03 but some breakpoints on those two methods and look at the contents of the view at runtime May 02 14:11:15 it should show you what shenannigans are going down May 02 14:11:16 also get rid of the context member on the adapter, that is also bad May 02 14:11:16 you mean "put"? May 02 14:11:31 yeah, I meant put, sry May 02 14:11:32 typo May 02 14:11:35 * james541 headdesk May 02 14:11:39 but neither of those issues has anything to do with your current bug May 02 14:11:47 wongk: I'll clean the code afterward May 02 14:12:16 heya folks May 02 14:12:17 put the breakpoints in getChildView and getGroupView on/after the lines that change the convertView May 02 14:12:59 could you guys at least try it out? make a new project ;p May 02 14:13:01 hehe, has anyone written a tool to automatically separate out all hardcoded strings into strings.xml? :D May 02 14:13:03 i was wondering, is there any way to assign command to hardware key on android? May 02 14:13:42 wook: sometimes there aren't any hardware keys May 02 14:14:09 Snuffel, yes, i know that :) May 02 14:14:28 but that doesn't matter May 02 14:14:52 You mean commands in yuor own aplpications, or system-wide commands? May 02 14:14:57 Wow May 02 14:15:06 You mean commands in your own applications, or system-wide commands? May 02 14:15:30 terminal command May 02 14:15:36 like /sbin/reboot May 02 14:15:39 The first is pretty easy, the second depends on how the manufacturer integrated the keys, but the answer is "no" for the most part. May 02 14:15:49 tapas: that would be pretty hard to do May 02 14:15:59 It's possibly if you bake your own ROM, I guess. May 02 14:16:07 That may or may not be the scope of your idea ;) May 02 14:16:16 no way to listen to keyboard events and run cmd if specific occurs? May 02 14:16:27 wook: as in, while not within your application? May 02 14:16:35 wook, no and you shouldn't do it that way in the first place May 02 14:16:40 have your app listen for an intent May 02 14:16:52 and then wake up to handle said intent May 02 14:16:59 Generally, no intents are fired for keypresses. May 02 14:17:08 unless you want to write a keylogger or something.... May 02 14:17:11 * james541 shrug May 02 14:17:22 yeah but what do you want to listen to the keypresses for? May 02 14:17:23 aha May 02 14:17:34 james541: sounds about right... May 02 14:17:34 wook: To actually intercept keypresses you would need to have a binary monitoring the input streams from the system devices... and those are different for every phone May 02 14:17:36 it's workaround i want to make for nitdroid May 02 14:18:21 Oh, so you are rolling your own ROM? May 02 14:18:30 not quite May 02 14:18:34 just workaround May 02 14:18:58 i am running it on nokia n950, but there's no fix for keyboard lights yet May 02 14:19:28 in the adapter, who calls getChild() and getGroup()? it seems getChild() is being called twice the time it should be called May 02 14:19:37 so, if i listen for keyboard_slide event i can call bin/keylight_on / bin/keylight_off May 02 14:19:59 oh, well if you are rolling your own rom just write a kernel module May 02 14:20:01 james541: I managed to succesfully create a certificate from one of your suggested resources. Because of this I was able to pinpoint the problem in my approach. It now works. The problem was that I was using the wrong bouncy castle version. They are very unclear in what to use when. Anyways thanks a lot m8! May 02 14:20:03 way easier May 02 14:20:07 And thanks to the rest of you as well! May 02 14:20:15 a service *might* be able to do that if an intent is created for that event May 02 14:20:29 np, gl HenkVissert May 02 14:20:31 james541, forgive me, but i am very newbie into android :D May 02 14:20:36 but otherwise yeah, you need to write some kernel level code May 02 14:20:56 agreed with jimbo229 May 02 14:21:04 ok, then, kernel level it shall be :D May 02 14:21:08 thanx folks May 02 14:21:12 do you know C ? May 02 14:21:12 take care ;) May 02 14:21:19 yep May 02 14:21:27 ok, have fun then and gl :) May 02 14:21:29 wongk, james541: in the adapter, who calls getChild() and getGroup()? it seems getChild() is being called twice the time it should be called May 02 14:21:30 c, cpp, asm, D... May 02 14:21:31 :D May 02 14:21:38 wook: i actually intercept that stuff for my work May 02 14:21:46 so if you need help, send me a message May 02 14:21:56 ekh I'm pretty sure the instance of the superclass calls it May 02 14:22:09 ekh: the view May 02 14:22:19 it's parametrized by the args though and that might have something to do with it, I haven't used an ExpandableListView before May 02 14:22:49 jimbo229, if you don't mind moding your app/driver to read specific file and settings from it like "scancode":"command"? then it would be very nice :) May 02 14:23:17 what is happening is, getChild for the last Group is getting called N times where N is the number of groups i deleted May 02 14:24:16 ekh, then the bug must be in getGroup as far as I can tell May 02 14:24:18 wook: that is all very phone specific, i more meant i could point you in the right direction if you had questions :P May 02 14:24:31 as it should control how many times the child views are generated May 02 14:24:34 initially I have 4 groups, where last group has 4 childs, after deleting a group in the middle, last group has 8 childs, deleting another group in the middle, result in having last group 12 childs May 02 14:24:45 I would read the source code for ExpandableListView, would probably help May 02 14:25:08 :) thanx james541, if i don't find any other workaround, then i surely will contact you :) thanx May 02 14:25:24 wook: np May 02 14:25:32 bye for now ;) :) May 02 14:25:40 there are a lot of good "hello world" kernel tutorials out there May 02 14:25:55 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.2_r1.1/android/widget/ExpandableListView.java May 02 14:27:52 tbh just using the debugger might be easier than going through the code, that file looks pretty dense May 02 14:27:52 Does anyone know of a document specifying the ADB TCP protocol? May 02 14:27:59 @ ekh May 02 14:28:48 jimbo229, http://jsharkey.org/blog/2009/04/22/modifying-the-android-logcat-stream-for-full-color-debugging/ May 02 14:29:09 jimbo229: OVERVIEW.txt in /system/core/adb of the AOSP source has it. May 02 14:29:16 hello May 02 14:29:20 also you don't have to, you can use remote debugging and just capture the packets with wireshark or what have you May 02 14:29:26 afaik the stream isn't encrypted May 02 14:30:23 hehe, check this out jimbo229, http://stackoverflow.com/questions/4283049/adb-logcat-on-a-real-phone-using-tcp-ip May 02 14:30:56 it's a little harder on a non-rooted phone May 02 14:31:01 im trying to find the overview.txt file May 02 14:31:22 Im looking at a desktop though, not on the phone May 02 14:31:36 I want to learn to draw to canvas, learn a game loop, animate a sprite, it seems playn, libgdfx, andengine are all past my skill level, are there any other methods? May 02 14:31:36 jimbo229: http://pastie.org/3848973 May 02 14:32:26 http://pastebin.com/ajiUNEPf please have a look at this. Having the total number of groups going correctly, the childs of the last group keep increasing (multiply by 2 everytime i delete a group) May 02 14:33:05 readme: do you have SERVICES.TXT also? I think that is the file I really need May 02 14:35:10 I'm having an issue using custom attributes from a project in an included library May 02 14:35:24 hi :) May 02 14:35:34 I've submitted a bug report, since it works in eclipse but not from the command line May 02 14:35:35 http://code.google.com/p/android/issues/detail?id=29887 May 02 14:35:48 has anyone been able to work around that issue? May 02 14:36:26 alex7: If that works, that's an eclipse error May 02 14:36:37 Your library project is not dependant on your main project May 02 14:36:41 And it shouldn't be May 02 14:36:46 it is possible to specify the versionCode and versionName to ant (to build the apk), i know there are an ant.properties but i do not know what key to put in it May 02 14:36:53 So it doesn't know about classes or resources in your main project May 02 14:37:16 SimonVT: so how can I make it know about my custom attributes? May 02 14:38:04 Define them in your library project May 02 14:38:40 my use case was that I could have different libraries which define their own themes May 02 14:39:20 if I were to define my custom attrs in the library, I'd have to duplicate them in each library May 02 14:39:35 Or, make them all dependent on a common library May 02 14:40:07 so create a themes library and make both my project and other libraries dependent on it? May 02 14:40:49 Either way, your library project does not depend on your main project, thus it doesn't know about its attribute May 02 14:41:40 so I'd have libA uses themeLib, proj uses themeLib and proj uses libA May 02 14:42:52 That's one solution May 02 14:44:00 can you think of other solutions? I can't, so that's why I'm asking May 02 14:46:11 ekh, the problem is upon the fetch of group 1, run the debugger there and things should become clearer May 02 14:49:04 put a conditional in the groupView creation mehod that tests if it is group 1 and set a breakpoint there May 02 14:49:17 and then when the breakpoint is hit, step through with the debugger line by line May 02 14:49:46 if you have to put a logger line in the condition so you have something to set the breakpoint on May 02 14:57:09 hello May 02 15:14:33 Is it possible to add an entry to the /etc/hosts file without rooting a phone? May 02 15:15:17 Or /data/data/hosts, I guess. May 02 15:15:20 nope May 02 15:15:38 How hard is it to root a phone, then... May 02 15:16:24 Is it possible to block a website in any other way, then? (Other than a custom browwser, of course.) May 02 15:16:38 doubt it... May 02 15:17:20 a lot of root methods are one-click these days, in addition to the few clicks it takes to set up the one-click May 02 15:17:33 how hard, depends on the phone, the level of rooting you want (permanent, temporary, OS replacement), etc. May 02 15:17:49 #android-root, xda-developers, and many other fine places are at your disposal... May 02 15:18:07 "fine" is hardly the label I would attach to xda these days. May 02 15:18:12 I know another way to block a website, but it is crude. May 02 15:18:37 readme: Crude is possibly okay. What is it? May 02 15:18:39 use the ActivityManager to watch the urls the browser opens, then if you see one you don't like, kill the browser's process. May 02 15:18:53 hah May 02 15:19:05 readme: and for other browsers? May 02 15:19:11 The ad-click still gets through to the website. May 02 15:19:23 Leeds: you'd have to make a database of all the possible browsers and match the most common ones first May 02 15:19:25 not just crude, but leaky May 02 15:19:26 I said it was crude :) May 02 15:19:41 if it's a consumer app for dumb parents it's probably a good solution, I think. May 02 15:19:52 I did not fully comprehend that ActivityManager is a pseudonym for God. May 02 15:20:49 child.getNodeName() == "tag" is always false, even if the XML node is "tag" .... May 02 15:21:04 == is not usable on Strings... May 02 15:21:10 Jonathan_Eyre: you could use wifi and set up a firewall at the wifi router May 02 15:21:22 but rooting is so worth it. May 02 15:21:25 Jonathan_Eyre, what should i use? May 02 15:21:38 pragma-: I could, if I was selling wifi routers... :) May 02 15:21:49 DNS blacklist is the best way, I think May 02 15:21:57 can DNS be set programmatically without root? May 02 15:22:05 iSeeDeadPixels: string.equals May 02 15:22:16 iSeeDeadPixels : Either .equals() or some variant. May 02 15:22:24 DNS is a lame and faulty solution. May 02 15:22:40 It's easy enough to by-pass DNS. May 02 15:23:26 Can you "unroot"? May 02 15:23:31 yup May 02 15:23:49 Why do people even care about unrooting? May 02 15:23:58 Once you gain root, you never look back. May 02 15:24:01 pragma-: warranty, mainly May 02 15:24:17 Jonathan_Eyre #android-root May 02 15:26:40 It DOES seem like the most error-free way to do it is to modify /etc/hosts However, some customers may balk at rooting. Perhaps ActivityManager is the "best" way to do it. May 02 15:28:22 yeah, customers don't balk at processes suddenly disappearing May 02 15:28:54 and there's still a chance the network transaction could complete before the activity gets killed May 02 15:30:17 block website? iptables? :) May 02 15:30:27 iptables? root. May 02 15:30:45 well makes more sense than 'killing activity'? May 02 15:30:57 * pragma- points at readme May 02 15:31:23 what about just using some vpn and filter there? no root for that? :) May 02 15:31:36 suggested it already. May 02 15:31:40 sorry May 02 15:33:12 question: can i have buttons which use part of the same graphic png? May 02 15:33:49 for example, i have a png, which I like to use. Can I have a layout which knows, say, that a region of that png is a "button" ? May 02 15:33:57 and another region is another button May 02 15:34:19 pragma-: depends on your target market whether they will balk May 02 15:34:37 I assume anyone who wants to block websites is an idiot, so it should fly with them. May 02 15:35:05 I have over 2000 websites blocked May 02 15:35:26 oh May 02 15:35:33 I'm off by a magnitude. May 02 15:35:33 if you want to do it for your personal use, I think that's different May 02 15:35:39 wc -l /etc/hosts May 02 15:35:40 20822 /etc/hosts May 02 15:35:50 ekh take a peek at this, it might help http://androgue.blogspot.com/2011/08/android-expandablelistview-tutorial.html May 02 15:36:02 I use adblock plus, but that's it for blocking stuff. May 02 15:37:03 if it's a parental control thing, I think why not just notify the parent of the URLs and let the parent deal with it IRL May 02 15:37:17 it's not like a few seconds of youporn is going to corrupt a kid. May 02 15:37:30 depends on which video it is May 02 15:38:02 readme: : "parent" is "teacher" IRL, and the last thing they can do is discipline their "children". They would rather just not let them on YouTube. May 02 15:38:28 if it's going to happen at a school, then just put all the phones on wifi and do what pragma said with the firewall. May 02 15:39:06 * pragma- points at itself May 02 15:39:10 its a shame though, youtube is very educational May 02 15:39:18 so is youporn May 02 15:39:28 * pragma- learned some tricks. May 02 15:40:31 The opium of the masses is YouTube. 99% is not strictly edu. May 02 15:40:58 99% is stupid comments May 02 15:41:27 The other 1% is anger at all the stupid comments. May 02 15:42:49 youtube is so safe. everything remotely funny is 18+ May 02 15:44:40 i go to youtube, what is the first video i see May 02 15:44:45 http://www.youtube.com/watch?v=lX4mRareqf8&feature=g-vrec May 02 15:47:01 readme: cool! May 02 15:47:36 readme: shes hot May 02 15:48:13 hot for a herion junkie May 02 15:48:15 Although I didn't hear much, just some blah blah blah..... blah blah blah.... lol May 02 15:48:35 that is why I don't usually like watching youtube. May 02 15:48:49 the cut and run style of vlogging May 02 15:48:52 she has a point.. steve jobs had strong feminine side?! May 02 15:49:00 lol May 02 15:49:08 steve jobs was a homosexual May 02 15:49:15 i think it's rather obvious May 02 15:49:22 question 2: I can start an intent with "geo:latitude,longitude" which will show me a screen in which i can choose apps to handle it. Can I explicitly call google maps for that? May 02 15:49:28 THIS is why I didn't even click on the link... May 02 15:49:52 I feel smarter already. May 02 15:51:56 seems like she reviews apps! May 02 15:52:13 WindowsNT: setPackage("com.google.whatever.package.maps.is") May 02 15:52:32 seems like she's a one wine bottle and a few tattoos away from being the next amy winehouse May 02 15:52:34 trying May 02 15:53:28 WindowsNT: the typical flow should be: target intent to Maps, try it, if it fails, remove package, and try again May 02 15:53:45 suppose my app uses a lot of bitmaps. how would i go about making a system to automatically build versions for different screen densities, using only the relevant bitmaps ? May 02 15:54:10 evancharlton : yes i see, trying with com.google.android.maps May 02 15:54:18 xorgate: start with the android platform build system; it already has the ability to do that May 02 15:54:31 xorgate: figure out how they do it and generalize it May 02 15:54:55 righto May 02 15:59:41 evancharlton : worked thx May 02 16:01:35 anyone knows my first question? About having buttons that use a shared graphic? May 02 16:03:46 WindowsNT it'd be the other way around May 02 16:09:30 xorgate : hm? May 02 16:09:49 1 button that uses many graphics ? May 02 16:10:19 i mean your approach would be graphic-centric as opposed to button-centric May 02 16:10:21 if that makes sense May 02 16:12:38 i am looking for a sample like that but couldn't find any... May 02 16:13:07 i think the question is why would you want it May 02 16:13:22 quick look at the api suggests you can create bitmaps from x,y/offset from an existing bitmap, but I don't think that has the perf/resource bennefits you are after May 02 16:13:39 my world is upside down May 02 16:13:43 they served us BREAKFAST for LUNCH May 02 16:14:21 anyone use keynote device anywhere or a similar service to test on remote devices? May 02 16:15:53 what would be the resolutions that I need to have so that a background for an activity can render correctly everywhere? May 02 16:15:57 3 free hours on over 2000 devices with "Keynote DeviceAnywhere test center" May 02 16:16:30 Sicp: stop right now May 02 16:16:32 there are >9000 May 02 16:16:39 make it scaleable, stretchable, 9patchable May 02 16:16:42 do something awesome May 02 16:16:48 but your question is flawed May 02 16:17:52 xorgate : i 've a client that has drawn me a jpg with the buttons he wants May 02 16:17:56 thats why I need it May 02 16:19:04 WindowsNT, any reason you don't just cut it apart into the individual buttons? May 02 16:19:50 yeah, just split the graphic May 02 16:19:54 gutano : i would, if there is no other option May 02 16:20:02 you don't want one button with multiple touch targets; that's stupid May 02 16:20:03 if there is an option , I could use it, instead of cutting. May 02 16:20:08 slicing the graphi cis the only good option. May 02 16:20:12 ok May 02 16:20:45 if you can, just slice the relevant parts and make stretchable 9patch May 02 16:20:49 WindowsNT, I was assuming you had a specific reason to try to do it with 1 img... if not, that doesn't seem the "obvious" route May 02 16:21:17 ok May 02 16:25:45 who knows a simple and short sound to make it known a mifare card has been scanned? May 02 16:27:33 use text-to-speech. "HEY YOUR CARD HAS BEEN SCANNED." Make sure to bump up the volume. May 02 16:28:08 idiot '-_- May 02 16:28:14 ugh, asynctask.execute is final? May 02 16:28:22 how irritating May 02 16:31:32 I am playing with perfectomobile.com, and I am not very impressed. May 02 16:32:39 my application is crashing dalvik I guess, logcat shows this: http://pastebin.com/RZG7TRnm May 02 16:32:45 anybody have a clue of what's going on? May 02 16:32:46 /data/traces/anr May 02 16:32:59 look for a tombstone file, etc... May 02 16:33:52 readme that site doesn't even load for me May 02 16:34:02 just says Sorry! This site is not currently available May 02 16:34:11 t0mless: did you catch the "o"? May 02 16:34:16 perfectOmobile.com May 02 16:34:22 oh May 02 16:34:24 I did not May 02 16:34:36 I just called my phone from the virtualized phone :) May 02 16:34:49 well, the VNC'd phone, or whatever tech they use May 02 16:34:54 it's not virtualized. May 02 16:35:11 it's a motorola atrix in someone's data center, or more likely garage. May 02 16:37:21 wasn't someone asking about this just yesterday? May 02 16:38:08 dunno May 02 16:38:40 I think it would be cooler to have a community project where we share our test devices over the net when we are not using them May 02 16:38:47 to get in, you must share at least one May 02 16:38:55 just share over vnc May 02 16:43:00 * readme just thought of something. this can be used to make reviews for your app. May 02 16:43:08 illegitimate ones, May 02 16:44:02 Interesting May 02 16:44:17 you'd have to pay for your app if it's not free though May 02 16:44:22 got an app you need 5 star on. i've got to test May 02 16:44:28 t0mless: yea, that is the one drawback I can think of May 02 16:44:39 I wouldn't put my card info in through this thing. May 02 16:44:46 word May 02 16:47:05 when system images are updated through the sdk manager, do i need to create a new avd to use it or are they updated? May 02 16:48:23 hmm, I am now very pleased with perfecto :) May 02 16:49:01 birbeck: Used automatically May 02 16:49:08 cool, thanks May 02 16:49:25 it might complain about snapshots create with old system images May 02 16:49:40 ah, yeah, ive seen that before May 02 16:51:32 birbeck, so my experience with robolectric wasn't pleasant, I should try robotium now May 02 16:51:50 robotium is ok May 02 16:52:07 it's weird when you try to use it to click items in a listview, but that might have been fixed since last I tried it May 02 16:52:11 pfn: oh, thanks for the update… what was wrong? May 02 16:52:32 I just want to do ui-less integration tests May 02 16:53:10 birbeck, mostly it's billed as a way to unit test android code on the jvm, it succeeds on some fronts, but for my uses of testing integration of loaders and asynctasks, it's not functional May 02 16:53:40 oh May 02 16:54:12 about the only thing it's good for, for me is to prevent the android.jar stubs from throwing an exception May 02 16:54:13 well if you write your code modular, you can still test your java classes with junit and use robotium for your ui testing May 02 16:54:23 yeah, I don't want ui testing, yet May 02 16:54:25 robotium works ok, but its got a number of its own quirks May 02 16:54:35 I want integration testing with the framework May 02 16:54:59 hello. sorry if this is too dumb/newby but...i can't set an EditText height. i tryed setting layoyt_height, height, TextSize...everything i could tweak but still gives me the default height. what should i look at ? May 02 16:57:21 birbeck, and yeah, I do have a bunch of modular code that is testable completely independent of the framework May 02 16:57:34 (with scalatest, yay) heh May 02 16:57:44 junit, bleh May 02 17:11:45 Hello May 02 17:12:31 I have a problem: When I try creating a new project, I get a window saying there was a NullPointerException, and I don't get all the nessesary files May 02 17:13:34 Do you use VMs for your Android development ? May 02 17:15:56 Nvm, I was just stupid May 02 17:16:29 anyone has any idea how i can silence the NFC Tag Detected sound? May 02 17:21:12 wth, how does octave not have a big sigma summation function? May 02 17:21:18 blasphemy May 02 17:25:34 anyone has any idea how i can silence the NFC Tag Detected sound? May 02 17:32:41 this channel is for application development? I was looking for some platform development channel? May 02 17:33:07 try the android-platform mailing list May 02 17:37:20 anyone has any idea how i can silence the NFC Tag Detected sound? May 02 17:47:49 I'm trying to compile an app that uses symja, but eclipse crashes as soon as it gets to the "Launching xxx" part May 02 17:48:01 does anyone want to help me get it to compile into an apk? May 02 17:51:33 Overv: check your eclipse logs May 02 17:51:44 evancharlton: where do I find them? May 02 17:52:08 probably ~/.eclipse/logs or something. May 02 17:55:34 evancharlton: there's nothing in the log about the build at all May 02 17:56:43 What is good way to retrieve a row from a content provider given a Uri to a row? May 02 17:57:06 ContentResolver.query? May 02 17:57:08 setsid: query the content provider and pass in that URI ? May 02 17:57:14 setsid: yes. May 02 17:57:21 ok May 02 17:57:32 i was wondering if that was the best way May 02 17:57:55 that's the only way May 02 17:58:17 good to know..thanks! May 02 18:00:45 since the4 Uri is specific to the row, is it required to pass-in a value for selection for the call to resolver.query? May 02 18:00:59 doubtful May 02 18:01:20 depends on the contentprovider's implementation May 02 18:01:33 this channel is boring today May 02 18:02:26 You're boring today. May 02 18:02:30 * t0mless tips canadiancow|work May 02 18:02:52 canadiancow|work may be you can moo and make it more interesting..or tip over May 02 18:03:38 moo May 02 18:08:38 oh apparently ive been using git wrong May 02 18:08:44 when you make changes in branch X that yo uwant in branch Y May 02 18:08:48 you shouldnt use git merge X May 02 18:08:54 you do git cherry-pick A May 02 18:08:58 git cherry-pick B May 02 18:08:59 git cherry-pick C May 02 18:09:00 etc May 02 18:10:40 o.o May 02 18:10:44 good to know I guess May 02 18:10:55 gotta love reddit, as long as you're posting and not reading cat pics all day and killing your productivity May 02 18:10:58 it's like instant traffic. May 02 18:18:07 could someone help me figure out how to keep my text from going off the page as seen on the last post here: http://imagebin.org/210671 May 02 18:18:21 here is my xml: http://pastie.org/private/12njl3jwbpngxo0pgkixua May 02 18:18:38 and java http://pastie.org/private/f3m1iygusyx8if9unlfs3g May 02 18:19:01 android:singleLine="true" May 02 18:19:04 You told it to be singleline May 02 18:19:08 What's it supposed to do? May 02 18:21:16 im surprised it even works, with the ellipsis May 02 18:22:55 Why is it in most SDK examples do the writers avoid the user of this, for example when calling things like startActivity() or setContentView()? May 02 18:23:52 Uh, what? Like this.startActivity() ? May 02 18:23:58 yeah May 02 18:24:05 Cus it's totally unnecessary May 02 18:24:07 Most examples avoid the use of "this" May 02 18:24:37 I'm new to Java so just asking why they don't use the current class. May 02 18:25:04 They do May 02 18:25:22 Don't need to use this for that May 02 18:27:02 ugh, can't update my GN to the current 4.0.4 because I updated to a leaked 4.0.4 :( May 02 18:27:29 * pfn waits for someone to release a full system image May 02 18:27:31 Download factory image from website, use fastboot May 02 18:27:53 someone almost always uploads the factory image to xda May 02 18:28:00 google doesn't publish factory images for the vzw gn May 02 18:28:00 https://developers.google.com/android/nexus/images#yakju May 02 18:28:02 not anymore May 02 18:28:06 Meh, vzw May 02 18:28:23 well, we'll see if they will May 02 18:28:27 I don't have any hope of it, though May 02 18:28:50 Get an old official image, hope android finds update :p May 02 18:29:06 yeah, I might do that May 02 18:29:19 flash back to 4.0.2 then flash the 4.0.4 update May 02 18:30:18 SimonVT, I see what I was looking for, most examples I have read on the Java trail are called from inside a static function, main is static so it requires the calling of a instantiated object, inside onCreate() or other lifecycle functions nothing is static so a local calling context can be used. May 02 18:30:49 ugh. this black default layout in ics is annoyingly dark. May 02 18:33:27 okay, so this is happening to me when I try to build this app in eclipse: http://puu.sh/sAhg May 02 18:33:35 it freezes after this, so I can't press "show errors" May 02 18:33:37 how do I debug this? May 02 18:33:48 (Eclipse has 1GB of heap space available) May 02 18:35:08 fumanchu182: this. is not needed either way May 02 18:35:28 moonlightcheese: The dark background is horrible tbh May 02 18:36:18 i notice that Google uses a white theme for almost all their apps. i guess now's a good time to learn themes :/ May 02 18:36:35 yo May 02 18:36:57 light theme ftw May 02 18:38:04 ftl on oled May 02 18:38:19 Is it possible to get a regular browser cookie and copy it to my own context's cookie store? May 02 18:38:22 so android:theme="@android:style/Theme.Light" May 02 18:38:35 on each activity or the application as a whole? or either? May 02 18:38:42 Theme. Holo. Light May 02 18:38:54 On the application.. Make your own theme May 02 18:39:09 Extend android:Theme.Light in values, android:Theme.Holo.Light in values-v11 May 02 18:41:15 I have a map activity that loads through a TabHost. Everything is functional but the first time the map tab is pressed, it lags 2 or 3 seconds to respond and render the activity. After the initial lag, everything works fine switching between the tabs. Has anyone here done any work to optimize map activities, or can point me to a helpful example? May 02 18:48:13 hello May 02 18:53:36 ny one May 02 18:53:43 any one here? May 02 19:00:12 Is it possible to shell into a device over wifi? May 02 19:00:32 possible, if you set something up, sure May 02 19:02:25 Im wondering if a device and a pc are connected to the same network, if they could talk directly to each other. May 02 19:02:39 Possible, no? May 02 19:02:48 sure May 02 19:03:43 any good tut for how to make service to fetch data from Rest service May 02 19:04:00 I would just need to know the ip addresses of the two devices, but then what? May 02 19:04:02 why not just remote adb? May 02 19:04:10 adb connect x.x.x.x May 02 19:04:14 adb shell May 02 19:05:01 birbeck, thats perfect. May 02 19:05:16 http://venturebeat.com/2012/05/02/linkedin-ipad-app-engineering May 02 19:05:23 "“You can’t take a mobile app and just scale it up to tablet or desktop,” he said." … interesting May 02 19:05:33 no shit May 02 19:05:38 anyone experience the linkedIn app for ipad? wondering how well it works May 02 19:06:06 huh, 95% node.js? May 02 19:06:11 node.js running on the device? May 02 19:06:21 that sounds kinda misinformed May 02 19:06:50 g00s: ive been saying forever that that is how most apps will be developed in the future May 02 19:06:59 mobile web with native wrappers May 02 19:07:20 its fun to see when somebody pushes the boundaries with what is cool May 02 19:07:30 i haven't been able to play around with this app though May 02 19:07:42 (too see what is possible … its inspiring) May 02 19:07:45 they have an android tablet app no? May 02 19:07:57 oh, node.js is on server side... ok May 02 19:08:05 no idea. i was interested to see how well the pull off the html5 May 02 19:08:34 When I set padding bottom on my relative layout, nothing happens. Is this the expected behavior? May 02 19:09:11 g00s: i dont see how thats revolutionary though May 02 19:09:18 several apps already do that May 02 19:09:51 my banks (usaa) app has done that from their very first version May 02 19:10:26 its not a cutting edge app really, but it was the first to do mobile deposits May 02 19:10:36 bofa is a webapp wrapper thing, isn't it May 02 19:10:51 because it's a terrible looking android app May 02 19:10:56 im not sure, but it wouldnt surprise me May 02 19:11:10 plenty of terrible looking native apps ;-) May 02 19:11:24 that's true, as well May 02 19:13:49 fundamentally there's no reason why a mobile-webapp would look any better or worse. May 02 19:14:25 fundamentally, it will not have the platform look May 02 19:14:34 that is a given May 02 19:14:48 but a lot of companies are ditching that for their apps anyway. May 02 19:14:49 mobile rendering engines cannot replicate the native laf May 02 19:15:07 that's like the old java application UI vs. native May 02 19:15:11 native won May 02 19:15:28 <_lpc> im trying to read another application preference i get the context to the application and see its valid and points to the right xml, however getString method returns the default value, any idea how to troubleshoot this? May 02 19:15:33 pfn: the UI can be both native and html5 May 02 19:15:50 How, readme? May 02 19:15:58 whitby: with a webview, of course. May 02 19:16:10 the contents of the webview are not native May 02 19:16:16 depends on your application, of course May 02 19:16:21 ah, very true May 02 19:16:24 pfn: sure, the webview won't contain the native parts :P May 02 19:16:33 like, the native actionbar, should definitely be used. May 02 19:17:06 hello all. If I have a Galaxy Nexus running 4.0.2, do I need to use the API 14 (4.0) SDK or will 4.0.3 (API15) work? May 02 19:17:09 btw, why are webviews so sluggish? May 02 19:17:13 perhaps a silly question May 02 19:17:34 Smaug, targetting 14 or 15 is fine May 02 19:17:37 whitby: traceview could probably tell you why May 02 19:17:52 bbl May 02 19:17:53 pfn: so i can use either and be okay? May 02 19:17:58 any simple tutorial for service and sync and accountmanager ? May 02 19:18:00 Smaug, for the most part, yes May 02 19:18:11 AhmedFawzy, use google and search yourself May 02 19:19:50 ok thanx May 02 19:19:51 when i use asynctask can i use the onPostExecute method as a recursive function?# May 02 19:20:06 uh May 02 19:20:58 vorwaerts, no May 02 19:21:06 vorwaerts, well, you could use it to queue your asynctask again, sure May 02 19:21:09 vorwaerts: like, to start the task again? May 02 19:21:22 you'd have to start a new instance of it May 02 19:21:32 needs a new instance? hmm May 02 19:21:47 pfn: you can't .execute() an already-executed AsyncTask May 02 19:21:56 they're one-time-use May 02 19:22:19 indeed May 02 19:22:22 that's kind of annoying May 02 19:22:32 its an aweful strategy. perhaps peek ata queue, run a task, if it completes, remove it from the queue to begin the next task? May 02 19:22:46 onPostExecute creates a linearlayout with a scrollview with this categories http://ximed.de/android/facul.php?parentId=114&enable_recursion=0 May 02 19:23:34 i then like to have an onclicklistener on each category and when you click it, you recursivly get all again but with the id of the categroy as parent May 02 19:24:25 stream video from webcam to android device over wifi. how could that be done? May 02 19:24:40 i have this code: http://nopaste.info/f3198b9880.html May 02 19:24:47 abstractly. May 02 19:25:27 abstractly? May 02 19:25:29 rtsp, or hls May 02 19:25:42 use a mediaplayer to play said rtsp or hls stream May 02 19:25:42 done May 02 19:25:57 add bonjour/mdns to enable zeroconf as desired May 02 19:26:12 and in line 97 id like all that stuff again but with passing the id May 02 19:27:39 never mind abstractly then. a little more detail if you dont mind May 02 19:28:07 it is possible though? May 02 19:28:47 I just gave you all the details you need May 02 19:28:53 anyone knows what i mean? May 02 19:29:28 whitby, and of course it's possible May 02 19:30:15 thanks, pfn. May 02 19:30:18 spell it out? take rtsp or hls url, set it as the input to your MediaPlayer, call play() May 02 19:30:21 done May 02 19:31:01 Is there anyway to see which URL a browser has loaded through ActivityManager? May 02 19:32:28 Hello May 02 19:32:39 hey pfn May 02 19:32:45 TheFred: Hello May 02 19:32:46 Who else here is running this new shiney 12.04? May 02 19:32:48 sup N May 02 19:33:02 can i create a function in a method that i can use recursivly? May 02 19:33:04 TheFred: 10.04 for lyfe, yo May 02 19:33:08 vorwaerts, of course May 02 19:33:09 i was going to query the channel about a technique ive seen that I need to apply May 02 19:33:19 why can't i find Android 4.0.2 in the SDK Manager? - all i see is 4.0 and 4.0.3 May 02 19:33:30 evancharlton, yea, i held out on my desktop, but testing it here on a lappy May 02 19:33:38 evancharlton, so far so good May 02 19:33:42 dschuett, because those are the versions where the api changed May 02 19:33:51 pfn, why are you so amazing? May 02 19:33:52 pfn how do i create this function? May 02 19:34:01 dschuett: 4.0.2 is 4.0 May 02 19:34:03 whitby, only in my own mind May 02 19:34:04 where you have a listview with an view inside, and when you scroll the listview if the view tries to move outside the scroll area it sticks to the top of the list or bottom May 02 19:34:07 if you follow May 02 19:34:08 Is there any way to monitor the android browser's URLs? May 02 19:34:23 Napalm, interesting, no idea how to do that May 02 19:34:40 vorwaerts, like anything else you'd want to implement recursively, call itself May 02 19:35:06 function is public static function_name()? May 02 19:35:21 vorwaerts, maybe you should learn java more first? please read thinking in java May 02 19:35:25 Napalm: the contacts app has a PinnedHeaderListView May 02 19:35:26 go steal it May 02 19:35:27 vorwaerts, free 3e ebook May 02 19:35:43 ah thanks Jake, will check it out May 02 19:36:43 pfn ok it should be maybe privat stativ void May 02 19:37:02 Jonathan_Eyre: you could read logcat to see what component was launched, but ... ew. May 02 19:37:05 are there any javascript debuggers for Browser or WebView? May 02 19:37:06 vorwaerts, recursive functions generally return a value May 02 19:37:06 Thanks JakeWharton May 02 19:37:17 then public sting May 02 19:37:19 string May 02 19:37:30 Jonathan_Eyre: what are you trying to accomplish? I bet there's a better way. May 02 19:37:34 when it returns a string May 02 19:37:56 vorwaerts, there are also tuts on youtube May 02 19:38:16 how can i pull a folder with its subdirectories from device to pc? May 02 19:38:23 evancharlton: I'm trying to detect the browser going to a blacklisted site, and logging/blocking it. May 02 19:38:34 I know it's possible with rooting. May 02 19:38:37 adb pull /directory/ does not work May 02 19:39:39 I wonder if I should just edit the /etc/hosts file and just bite the rooting bullet. It would just be a lot smoother if I could do it without rooting. May 02 19:39:45 Jonathan_Eyre: er, yikes. Good luck with that. By the way, given all the sketchy stuff you've been asking about, I really want to recommend that you should be looking at making a custom ROM instead. May 02 19:40:08 Jonathan_Eyre: this should be done upstream (on the router, for example) May 02 19:40:49 evancharlton: Or perhaps with a custom browser. May 02 19:42:53 Why is it so hard to get an Android Tablet and just stop it from doing unwanted activities? May 02 19:43:49 "unwanted activities" like...? May 02 19:44:27 how is that difficult? May 02 19:44:35 especially on ICS where you can disable system apps May 02 19:44:35 Like Youtube, messing with settings without permission, playing games during school hours... May 02 19:45:10 t0mless: i believe you can disable bundled apps but not "system" apps per se. specifically, i think you can't disable apps that were signed with the system cert. May 02 19:45:20 right May 02 19:45:24 I meant system bundled apps May 02 19:45:28 like Blockbuster. May 02 19:45:32 Fuck blockbuster. May 02 19:45:33 Jonathan_Eyre: ahh, i see what you mean. you really will need to use a custom rom for this. May 02 19:45:54 (sort of pervasive IT-department lockdown sorts of stuff) May 02 19:46:07 y May 02 19:46:18 sorry wrong window May 02 19:47:16 See, that is what I mean by "hard". You can't just tell most parents/teachers that in order to stop their kids from playing during school, they need to void whatever warranties they got from amazon.com. May 02 19:48:17 When I was a teacher, if any tablet/cellphone/ipod was even seen out it was confiscated May 02 19:48:46 and on multiple offences the parents had to come to pick up the device May 02 19:48:52 t0mless: I'm guessing that was before schools purchased tablets for class. May 02 19:48:59 ha May 02 19:49:05 the school I was at was broke May 02 19:49:10 only... 2 years ago? May 02 19:56:21 how can i give parent "public void test(int parent) " if i call test(); without parameter a number? May 02 19:56:38 like public void test(int parent=114) May 02 19:57:34 what do you mean "give parent"? May 02 19:58:13 http://speakerdeck.com/u/mikeyk/p/secrets-to-lightning-fast-mobile-design May 02 20:00:01 vorwaerts: Are you asking something like "how do I supply a default parameter to a method, if I don't pass anything for that parameter?" May 02 20:00:24 if so, Java doesn't support default parameters May 02 20:00:30 Looks like a proxy is all I need to block everything I want. May 02 20:00:51 2 questions, if you please May 02 20:00:59 Why was that hard to say? PROXY WILL GET RID OF YOUR YOUTUBES May 02 20:01:00 ok diffrent question i have public void test(String parent). und i have an integer variable that i want send to the test(); how can i convert it to a string? May 02 20:01:23 1) have web server with form, want to post a value to that form and get back its value? do I need to do this through addEntity() or is there a better way? May 02 20:01:34 2) anyone ever gotten the BT startDiscovery() bit to work? May 02 20:01:37 You don't need to root for that, praise be to [DEITY]. May 02 20:02:01 Jonathan_Eyre, your trying to control a webview within an app? or all web access on a device (with your app on it?) May 02 20:02:02 vorwaerts, you can use Integer.toString(i) May 02 20:02:45 ALL webaccess. Or at least, webaccess from com.android.browser. May 02 20:02:53 e.g. something like `squareRoot(Integer.toString("16"))` will be `4`. May 02 20:03:24 Jonathan_Eyre, can't a user just unset the proxy? May 02 20:03:40 Yes, if he can get to Settings. May 02 20:03:56 jxf thanks May 02 20:04:26 methods can be overloaded. May 02 20:04:55 foo(bar) where bar has default value of 114 can be implemented as public void foo() { foo(114); } May 02 20:05:14 Jonathan_Eyre, wouldn't have assumed you could prevent that on a unrooted device May 02 20:05:17 not pretty & I actually don't generally like this use of overloading... but it is what it is May 02 20:05:34 If a user downloads say v1.0 of an app, but v1.1 has it's manifest updated so that it's no longer compatible for a persons device.. If they uninstall and re-install the app do they still see v1.0 in the play store? Or is it now gone from the play store? May 02 20:05:43 alankila: amen =/ May 02 20:07:16 "You should defiantly consider this service." Really? Who am I defying, here? Typos FTW http://tobifanibi.hubpages.com/hub/Blocked-Sites-on-ipodIphones May 02 20:07:53 roler: probably gone unless you use the advanced app think May 02 20:07:54 thing May 02 20:07:58 Jonathan_Eyre: http://d-e-f-i-n-i-t-e-l-y.com/ May 02 20:08:42 lol May 02 20:09:14 evancharlton: I should forward that site to whoever wrote that article. May 02 20:09:42 just submit them to the wall of shame May 02 20:09:59 how can i set the BACK-hardware-button to do something special? e.g. to start an activity May 02 20:10:00 hall* of shame May 02 20:10:07 vorwaerts: dont May 02 20:10:42 seems like the whole hall of shame is definately May 02 20:10:48 not seeing many other mistakes May 02 20:11:27 http://nopaste.info/ac2ad7ff39.html in line 99 i create i new view - but when i push the back-hardware-button, the app closes May 02 20:11:49 that sounds like how android works May 02 20:12:35 you can not handle this? May 02 20:13:11 you have an iPhone don't you May 02 20:13:16 Jonathan_Eyre: do the devices have to connect via wifi? and do you control the wifi network? May 02 20:13:23 *snicker* May 02 20:13:56 vorwaerts, it will make it the worst experience ever May 02 20:14:03 http://humor-image.com/meanwhile-in-japan/ May 02 20:14:13 eas?i can't find the google api package listed in the android sdk manager... any ida May 02 20:14:24 any ideas? May 02 20:14:41 canadiancow|work: "definately"? Is that a Canadian word? May 02 20:15:10 JakeWharton: I have apk's in the advanced screen but they are all unactivated ... May 02 20:15:22 vorwaerts: don't trap users in your app; that'd un-kind May 02 20:15:31 roler: you should be able to activate two then May 02 20:15:34 both 1.0 and 1.1 May 02 20:15:35 pragma- ... May 02 20:15:41 are you aware of what we were discussing? May 02 20:15:42 clearly not May 02 20:15:46 can android use ü ? May 02 20:16:34 vowel mutation May 02 20:17:07 umlaut May 02 20:18:26 I do NOT control the wifi. I do not control the kids. I do not control the phone type. I cannot seem to win. Although I filter all intents, kill activities left and right, teachers say the snotheads, have seen another gifsite. May 02 20:19:00 lol May 02 20:19:11 you need to make a custom ubild of android May 02 20:19:17 didnt we already decide that? May 02 20:19:32 Naw, I'm hoping this proxy is the gold. May 02 20:19:39 tell them to put shielding on the building that prevents their cellular radios from working :P May 02 20:21:45 is addEntity a good way to encode a string to be posted to a web form running outside Android? or is there a better way? May 02 20:24:26 When a request is made inside of a WebView activity and then the home button is pressed right away, I'm assuming that the request is also paused. Is there any way to work around this? May 02 20:24:53 Jonathan_Eyre, don't take this the wrong way, I want to see you happy/successful... But I think what you are trying to accomplish is hopeless May 02 20:31:22 google apis aren't showing up in the sdk manager, any idea why? May 02 20:31:32 they're at the bottom? May 02 20:31:41 Retistic: you sure you imported them into your local project? May 02 20:32:00 Lemminkainen_: nope May 02 20:32:41 pfn don't see them May 02 20:33:01 pfn: i see a bunch of other third part plugins, but not the google apis May 02 20:33:09 Lemminkainen_: how do i do that? May 02 20:33:47 Retistic, ignore Lemminkainen_ May 02 20:33:57 Retistic, looks more carefully, it's in the list May 02 20:34:53 pfn: do i need to install then android support package? May 02 20:35:11 you don't May 02 20:36:33 the google apis aren't at the bottom May 02 20:36:37 they're in each seperate API level May 02 20:36:44 or there, I guess May 02 20:37:04 not sure how far the google API images go back May 02 20:37:08 might not have one for 1.6 May 02 20:37:46 pfn, t0mless: http://imagebin.org/210694 May 02 20:37:46 mine isn't showing google apis either, how weird May 02 20:37:49 JakeWharton: we don't actually want two apps, i'm just trying to see if what a user is saying is right. I think they just don't know how to uninstall an app properly (maybe they are just removing it from the home screen) May 02 20:38:15 yea, Google APIs used to be listed in there with all that Real3D and etc May 02 20:38:40 t0mless: where is it now? May 02 20:38:43 mine are listed May 02 20:38:53 probably need to update sdk first May 02 20:39:07 all the way back to 1.5 May 02 20:39:24 do i have to install all of the sdks? May 02 20:39:28 no May 02 20:39:31 the sdk manager itself May 02 20:39:40 update the sdk and platform tools packages May 02 20:40:13 how do i do that? May 02 20:41:42 by selecting the sdk and platform tools packages to update May 02 20:42:01 ( Retistic ): http://imagebin.org/210695 May 02 20:42:05 once you update the sdk tools and platform tools, google apis appears May 02 20:42:24 Tools -> About will probably show you're on an old version May 02 20:42:43 if you're on anything older than rev19, there is a good chance it won't show May 02 20:43:16 * pfn was on r16, it didn't show, updated to r19, it shows fine May 02 20:45:10 I think I've been seeing it for a while, so maybe 17 or 18 May 02 20:45:15 but regardless May 02 20:45:18 you should update it anyway May 02 20:47:19 it's not that they restrict it, but the repos gets moved or something May 02 20:47:24 and only the newer version knows where to find it May 02 20:47:25 why does hte ICS source have -large -xlarge etc May 02 20:47:32 err ICS res May 02 20:48:16 o.O May 02 20:48:19 why not? May 02 20:48:28 because they're deprecated May 02 20:48:36 and any device running ICS obviously suppors the -sw May 02 20:48:36 they are? May 02 20:48:47 alert_dialog_progress.xml a year ago Make ProgressDialog a little less lame. [Dianne Hackborn] May 02 20:48:48 lol May 02 20:49:42 The google APIs for android 2.2 aren't showing up in my manager thing ... May 02 20:49:46 sdk manager May 02 20:49:50 how do I get that? May 02 20:50:03 1. do you really need it? May 02 20:50:13 2. it shows up for me May 02 20:50:33 In the custom adapter, how to inflate a layout without having a variable that holds the context? getSystemService() seems to be only called using a context May 02 20:50:34 russfrank, have you updated your sdk manager yet May 02 20:50:48 we just had this discussion 5 minutes ago May 02 20:50:55 update your sdk and platform tools May 02 20:51:26 damn, thought I just did that ... May 02 20:51:38 did you restart your sdk manager? May 02 20:51:41 after doing so May 02 20:51:53 yeah, I had the really old one with the side pane May 02 20:52:57 yep there it is.. thanks guys May 02 20:52:57 russfrank, Tools -> About, what version does it say? May 02 20:53:01 russfrank: i was the one who asked May 02 20:53:01 indeed May 02 20:53:06 russfrank: haha May 02 20:53:06 Retistic: lol May 02 20:53:22 pfn that was a dick way to address my attempt to help. May 02 20:53:23 I understand I am not supposed to advertise jobs/contracts here, but does anyone have any advice where to find a dev to do some work? is there a place that android devs hang out, looking for work? :) May 02 20:53:50 * t0mless refains from making a racist joke. May 02 20:54:04 Lemminkainen_, sorry, but you were on the wrong track May 02 20:54:18 talntid, craigslist May 02 20:54:31 OK, so tell me that it's the wrong track so that we can all learn and don't just dismiss it May 02 20:54:48 craigslisted in my local CL for the last 2 weeks. Nobody seems to know how to do it. My town isn't real big either though May 02 20:55:02 talntid, then don't expect to find someone locally May 02 20:55:16 talntid, post in craigslist for other areas, try places like rentacoder or elance or whatever May 02 20:55:18 pfn: how do i check the version May 02 20:55:20 yeah, I am ok with non-local. Guess I need to publish an ad in other areas. May 02 20:55:25 pfn: there is not about under tools May 02 20:55:28 talntid what area are you in? May 02 20:55:34 Retistic, find the about menu item then... May 02 20:55:38 Retistic, under all the menus May 02 20:55:47 Retistic, but if there's no about menu item, update! May 02 20:55:58 talntid, are you looking for a high school kid who will charge $5/hour and take 50 hours, or a pro dev who will charge $100/hour and take 30 hours May 02 20:55:59 i updated May 02 20:56:04 have a look at the image i posted May 02 20:56:55 canadiancow, I'm looking for a pro dev, but I doubt it will take 30 hours. :) May 02 20:56:57 pfn: http://imagebin.org/210694 May 02 20:57:18 pfn: the tools are updated May 02 20:57:21 Retistic, dunno, rload packages then... May 02 20:58:26 pfn: is there a way to access the sdk manager outside of eclipse May 02 20:58:32 talntid, i dont personally know any devs who would take a job thats less than a week May 02 20:58:39 becuase there are so many jobs that would take months May 02 20:58:43 and the overhead of getting a job is not worth it May 02 20:58:51 Retistic, run android May 02 20:59:28 30 hours of work isn't very much... May 02 20:59:32 canadiancow|work, ok, thanks. I might just have to learn the in's and out's of android and do it myself. May 02 20:59:41 I litterally just need to send a MMS message. May 02 21:00:48 pfn: my point exactly May 02 21:00:56 i dont want to spend 10 hours getting setup on a job that only lasts 5 May 02 21:01:25 not that im in the market for this type of work :P May 02 21:01:39 There's 10 hours of setup prior to starting to code for android.. ? May 02 21:01:49 no, there isn't May 02 21:01:54 he's just making an example May 02 21:02:40 i mean more the legal side May 02 21:02:41 the business side May 02 21:02:53 spec-gathering May 02 21:02:55 blah blah May 02 21:02:58 i use a php-script to generate a array witch i encode to a json-array and the array first has an in his string and after encoding it has null May 02 21:03:00 why? May 02 21:03:03 I see. Yeah, that can take time, for sure. May 02 21:04:14 canadiancow|work, that's all billable in any case May 02 21:04:25 yep May 02 21:04:41 yes but, i dont want to spend 2/3 of my time on that May 02 21:04:45 im a dev! May 02 21:05:00 i'll put up with 2 days of BS if it means 2 months of dev May 02 21:05:03 not if it means 1 day May 02 21:05:09 * pfn kicks file.getCanonicalPath for doing the wrong thing May 02 21:06:16 pfn: it shows up when i use the command line android, thanks May 02 21:07:28 Retistic, it needed to reload, probably had a connect error while fetching the repos May 02 21:07:39 or something else transient May 02 21:08:49 pfn: the dev tools say version 16 in eclipse May 02 21:09:05 you could try restarting eclipse May 02 21:09:17 or updating the eclipse adt plugin May 02 21:09:44 Retistic, yeah, need to restart eclipse May 02 21:09:46 when i check for updates it says: Cannot complete the install because of a conflicting dependency. May 02 21:09:56 as for eclipse May 02 21:09:57 * pfn shrugs May 02 21:09:59 I don't use eclipse May 02 21:10:40 yea, me either May 02 21:10:41 real men use WordPad? May 02 21:10:48 nano! May 02 21:11:03 ... May 02 21:11:04 I actually use intelliJ as an IDE and ant to build May 02 21:11:07 wordpad was the most offensive thing I could think of... should have said Word! May 02 21:11:14 lol May 02 21:11:15 t0mless, why ant? May 02 21:11:25 because it works great? May 02 21:11:35 but so does IDEA? ;) May 02 21:11:47 I like command line output May 02 21:11:47 ant and IDEA are not exclusive May 02 21:12:05 IDEA was hanging on packaging resources many times May 02 21:12:10 * ctate uses Eclipse to edit + debug, and 'make' to build, but that's not exactly in SDK land May 02 21:12:13 gutano, I know, just seems weird to use ant exclusively when he's already using an IDE that does it for him May 02 21:12:22 pft, there are only 3 things you need: a bash shell, vim and ant. May 02 21:12:32 ^5, Pragma May 02 21:12:34 pragma-, javac? May 02 21:12:37 ;) May 02 21:12:52 In my ExpandableListView, if I have a Map that has my data (which are 3 groups, and each one has some childs), modifying the Map and resetting SetListAdapter() should display the View with the new content right? May 02 21:13:04 ant implies javac and android sdk May 02 21:13:11 running make in aosp takes forever for it to figure that it's doing nothing :( May 02 21:13:12 imho, using an IDE for formal builds is poor taste... but I do a fair amount of RCM work, so I'm disgusted easier than most May 02 21:13:17 or even tell you that you ran the wrong target May 02 21:14:01 * pfn looks for a better solution to conflicting libraries when run through dex May 02 21:14:09 pragma-, hardly, you can use ant without javac! May 02 21:14:30 for the purposes of this channel May 02 21:14:33 conflicting libraries ftl May 02 21:15:32 hey, I'm trying to install the Android SDK but it says that JDK is not found May 02 21:15:35 even though I have it installed May 02 21:15:40 tried reinstalling it, still nothing May 02 21:15:54 added the JAVA_HOME environment variable, still nothing May 02 21:16:06 mayhem93 May 02 21:16:09 click back May 02 21:16:11 and then next again May 02 21:16:18 and then it should find it May 02 21:16:20 I have eclipse which is based on Java, and it works May 02 21:16:31 i did that multiple times May 02 21:16:35 I thought they had fixed that bug May 02 21:16:46 did you install 64 bit or 32 bit JDK? May 02 21:16:50 64bit May 02 21:17:00 might need the 32 bit May 02 21:17:04 using the zip archive and launching the SDK Manager doesn't work either May 02 21:17:11 lol May 02 21:17:17 but not sure May 02 21:17:28 i have the same JDK on my computer (actually it's and older version of 1.7) and it works May 02 21:17:33 but on my laptop it refuses to May 02 21:17:45 same windows, same 64 bits May 02 21:17:55 hrm May 02 21:18:13 the eclipse wrapper may do some pro-active searching for a jre/jdk, so I wouldn't use that as a concrete example that Java is setup correctly (not that your pt isn't still valid) May 02 21:18:20 /join #java May 02 21:18:29 I would say just verify that %JAVA_HOME%\bin is in your PATH May 02 21:18:32 AVD and SDK manager executables don't even work, the cmd window appears and disappears with nothing after May 02 21:18:47 i did that too May 02 21:18:52 if you run from cmd line, mayb eyou will get more output? May 02 21:18:59 there's no %JAVA_HOME% var May 02 21:19:06 no, it 0 output May 02 21:19:08 it's* May 02 21:19:08 and you're using the android-sdk_r18-windows.zip from d.andriod.com? May 02 21:19:11 d.android.com too May 02 21:19:13 yep May 02 21:19:37 I thought you said you added JAVA_HOME to your variables May 02 21:19:42 yes i did May 02 21:19:51 but i didn't add it to the PATH variable May 02 21:19:54 let me try this combination May 02 21:20:08 put %JAVA_HOME%\bin in your path May 02 21:20:32 JAVA_HOME is the parent of JAVA_HOME/bin May 02 21:20:46 ok May 02 21:21:15 same, installer refuses to install May 02 21:21:23 gonna try the unpacked one May 02 21:22:16 Why would I get a FATAL EXCEPTION when the RuntimeException is "Unable to pause activity" ??? May 02 21:22:34 stacktrace plz May 02 21:23:13 Jonathan_Eyre, always include context, not only the error line May 02 21:23:43 oh May 02 21:23:45 now it works May 02 21:23:46 finally May 02 21:23:47 thanks May 02 21:23:55 is there a way to get the current JavaVM inside a .so that has been dlopen()ed from JNI code? May 02 21:24:06 the installer is bugged, but the Managers work May 02 21:24:20 rigid, jni should have an interface for this already May 02 21:24:46 I am trying to copy a binary executable into /data/local folder from raw resource of my android app, so that I can execute it and read its output, here is the code I am using to copy: https://gist.github.com/2580629 May 02 21:25:01 but I get permission denied. May 02 21:25:12 pfn: the only way I see is to define JNI_OnLoad() which gets it passed as an argument, but it isn't called with dlopen() ... Just with System.loadLibrary() May 02 21:25:13 need root to access /data May 02 21:25:42 rigid, oh, you have java -> jni -> dlopen May 02 21:25:58 http://pastebin.com/eWEaqaCB May 02 21:25:59 rigid, jni -> dlopen -> jni -> library May 02 21:26:03 but i already do System.LoadLibrary("myapp.so"); which is linked agains mylib.so (which i don't want to modify) ... mylib.so loads myplugin.so where I need the javaVM May 02 21:26:14 t0mless: can you tell any folder which doesn't need root acces , I can still run the executable? May 02 21:26:17 rigid, so have your jni library pass off the reference to the library after dlopen May 02 21:26:29 ... May 02 21:26:34 you have to modify May 02 21:26:46 unless you can figure out the address where JavaVM sits by hand... May 02 21:26:54 pfn: hm... May 02 21:27:13 you can try GetJavaVM, I suppose May 02 21:27:34 maybe it'll work May 02 21:27:35 maybe not May 02 21:27:36 * pfn shrugs May 02 21:27:43 d34th4ck3r the sdcard or your local app directory May 02 21:28:37 rigid, dunno how you'd have a JNIEnv, though May 02 21:29:49 pfn: yeah May 02 21:30:03 but i just got the idea of the library maybe supporting user-pointers May 02 21:30:36 indeed, you could inject the javavm pointer into the library May 02 21:31:00 i just set the pointer to the JavaVM somewhere in myapp.so, then I can access it from myplugin.so i guess May 02 21:31:19 that'd work i guess... May 02 21:31:34 t0mless: I tried copying it to /sdcard but now it doesn't execute( I tried changing permission of 777 but it dint work) . May 02 21:31:53 /sdcard is mounted noexec May 02 21:31:57 usually May 02 21:32:21 so where should I binary executables without root permisson ? May 02 21:32:32 Atarii: ^ May 02 21:32:38 *I put May 02 21:33:14 /data/something ? May 02 21:33:44 without root permission, you can't put binary executables anywhere. May 02 21:35:19 oh, ok. :-/ May 02 21:35:45 you cant? May 02 21:35:54 external storage? May 02 21:36:13 canadiancow: external storage is mounted noexec May 02 21:36:20 ah May 02 21:36:30 /data/data/com.my.app/ ? May 02 21:36:40 adb can't write to /data/data/* May 02 21:36:40 and presumably is fat32 which wont let you +x anyway? May 02 21:36:48 oh but an app can May 02 21:36:58 sure, but you can't run it from a command line May 02 21:37:13 I'm planning a new app that will require user registration and authentication and currently I'm looking at oauth (the token thingy). Would the token be passed with every call to the server? May 02 21:37:18 that's as close as you can get: your app can put executables in place, chmod them +x, and then exec them itself. May 02 21:37:29 i like executing myself :) May 02 21:37:31 wait May 02 21:37:35 canadiancow|work: an app can ? an app can give 777 permission to a file at data/data/com.my.app/ ?? May 02 21:38:32 there's an app for that! May 02 21:38:39 for what? May 02 21:39:11 ok can an app just write anywhere it wants on external storage? May 02 21:39:27 I was surprised when I could toss a file on / May 02 21:39:30 as long as you have the write permission May 02 21:39:46 who grants that? May 02 21:40:32 I assume my app would have been limited as to where it could save data… have not seen notes on that yet May 02 21:41:04 ctate: in what place can we put executables? May 02 21:41:23 I think as long as your app requests the wRITE_EXTERNAL_STORAGE premission, you can write wherever you want on the SD card May 02 21:42:00 i'd payfor an app that executes camerin May 02 21:42:04 i mean canadiancow May 02 21:42:28 well, he's gonna get a fun highlight if he reads that out of context May 02 21:43:59 so, android has no place to keep executables? :-/ May 02 21:44:22 /data/data/com.your.app/ May 02 21:45:21 t0mless: but can we give +x permission there and copy to that place without root permission ? May 02 21:45:31 lol, no! May 02 21:45:53 then whats the use? May 02 21:46:16 "without root permission" May 02 21:46:21 you can't +x anywhere without root May 02 21:46:37 why do you want executables on your system :? May 02 21:46:38 ok, but we can copy to that place without root permission? May 02 21:46:53 yea, you can write stuff there all you want May 02 21:47:04 Great! May 02 21:48:06 I believe that's the path that getFilesPath() returns May 02 21:48:10 er May 02 21:48:13 getFilesDir() May 02 21:48:13 hmm, does this look like an accurate way to determine if background data is enabled on ics and before? http://pastebin.com/35qqtbRe May 02 21:48:48 http://developer.android.com/reference/android/net/ConnectivityManager.html#getBackgroundDataSetting() May 02 21:50:06 storkme_: I am writing native code which need root permission to execute, JNI cant help in this case, so I am packing that into binary exeutable and execute it with root permission and read the output. May 02 21:50:26 how come jni can't help May 02 21:51:56 d34th4ck3r: then you can only install & run on rooted devices May 02 21:52:01 storkme_: because JNI will execute the code as normal user, but I need to execute that code with root permission. May 02 21:52:13 ctate: yea, we are on the same page on that. :) May 02 21:56:35 What's the best way to do authentication in apps? May 02 21:57:05 using the account manager May 02 21:57:18 t0mless: How about server side? May 02 21:57:31 pass your token from the account manager May 02 21:58:24 t0mless: So upon registration, the server generates a token which it both saves locally and sends to the app? May 02 21:59:48 is c2dm down right now? May 02 21:59:53 http://developer.android.com/reference/android/accounts/AccountManager.html May 02 22:00:18 I seem to be getting some kind of error 500 from soemthing May 02 22:00:34 your authentecator can request the token from your server May 02 22:00:49 then your app can get the token from the account manager May 02 22:01:03 that way you don't have to store your user's credentals in your app anywhere May 02 22:02:58 hmm, yep, it's c2dm that's returning error 500 May 02 22:03:48 hi all, i am using setImageBitmap to change an imageview's picture, is there a way to make it transition from the left or right? May 02 22:04:18 damnit, I wanted to test my simpledateformat on-device May 02 22:04:30 it works fine on jvm, but is throwing a parseexception on my gn May 02 22:04:30 wtf May 02 22:05:32 * pfn wants more remote control apps for android May 02 22:07:00 * Jug6ernaut wants more multiplayer games May 02 22:18:15 pfn: i've had a few discrepencies between dvm and jvm wrt Calendar stuff and SimpleDateFormat / DateFormat May 02 22:18:36 why its not a good idea to unit test stuff on jvm :) May 02 22:19:25 might be worth filing issues about behavioral skew like that using the java.* APIs May 02 22:19:57 well May 02 22:20:01 it seems to be device dependent May 02 22:20:08 !!!!! May 02 22:20:22 *definitely* worth filing May 02 22:20:24 my GN is exhibiting this, but other people I'm working with aren't May 02 22:20:43 device dependent even on the same version of Android? May 02 22:20:55 probably different version May 02 22:21:16 I'm on build IMM30B May 02 22:21:23 unofficial :( May 02 22:21:46 pfn: unoffical = gtfo :D May 02 22:22:06 and new SimpleDateFormat("yyyy-MM-dd HH:mm:ss zzz").parse("2012-05-02 17:40:28 EDT"); throws a ParseException May 02 22:22:09 :( May 02 22:22:14 Is it some projects that need help May 02 22:22:33 but on other GNs, 4.0.3 and whatnot, presumably, it parses just fine May 02 22:23:05 I'll flash the system image back to 4.0.2 and back up to the 4.0.4 image that was just released later tonight if I have some time May 02 22:23:14 it's giving me a parse exception at offset 20 May 02 22:23:20 which is the EDT part May 02 22:23:24 if I drop zzz, it parses fine May 02 22:24:03 pfn: why not diff SimpleDateFormat from libcore between 4.0.2 and 4.0.3 :) May 02 22:24:13 4.0.4 rather May 02 22:24:34 harmony is such a pile May 02 22:24:48 i think it should be called disharmony May 02 22:24:50 git diff android-4.0.2_r1 android-4.0.4_r1 -- SimpleDateFormat.java May 02 22:24:51 word May 02 22:24:51 [pfnguyen@galactica0 text]$ May 02 22:24:56 no changes May 02 22:25:56 last change I can find is in tag android_3.2.4_r1 May 02 22:26:37 maybe your phone hs its timezone data messed up May 02 22:26:47 pfn: are you using android.text.format.DateFormat? May 02 22:26:54 no, java.text.SimpleDateFormat May 02 22:27:41 yeah, change EDT to EST and see if that changes something May 02 22:28:00 question May 02 22:28:17 false May 02 22:28:33 g00s, EST works May 02 22:28:36 hmm May 02 22:28:38 so in a video view I can set the source to a UDP and RTSP address correct? May 02 22:28:39 * pfn pokes ctate May 02 22:28:48 mm? May 02 22:28:55 why would it recognize EST and not EDT May 02 22:29:12 i.e. why is my tz db f00kered May 02 22:29:16 I was able to do this when I was writing for MIPSDroid (android running on a mips set top box) May 02 22:30:21 i thought those 3 letter IDs were somewhat deprecated. maybe better to say GMT-5 May 02 22:30:28 i have no idea where the set of zones is pulled from May 02 22:30:29 g00s, I'm not in control of the input May 02 22:30:41 ctate, libcore.icu.TimeZones May 02 22:32:59 pfn: file the bug please May 02 22:33:14 i do note the following comment in the implementation May 02 22:33:16 // 'z' only uses "common" abbreviations. 'V' allows all known abbreviations. May 02 22:33:16 // For example, "PST" is in common use in en_US, but "CET" isn't. May 02 22:33:27 * ctate shrugs May 02 22:33:38 i'd expect it to have EDT though May 02 22:34:36 hm, wonder if you have to use the Locale.en_US for it to work May 02 22:34:57 this is all a mess, right now there is joda, date4j, and jsr 310 May 02 22:34:58 yeah, might be it May 02 22:35:05 anyone UDP/RTSP VideoView? May 02 22:35:32 sorry I thought you could just toss in the Uri : udp://address:port May 02 22:35:46 plus, looking through the Calendar code, i thought i saw stuff like "This can't be right … " May 02 22:35:53 :) May 02 22:36:05 Locale.US fixes it, thanks May 02 22:36:15 g00s, pfn: as i read the initialization code, it should be pulling in en_US, the root locale, and the user's locale all automatically May 02 22:36:16 weird. May 02 22:36:39 yes, very weird May 02 22:36:53 must be my broken ass leaked build May 02 22:40:46 time to flash 4.0.2 stock and try to get the OTA update? May 02 22:41:42 t0mless, I'm gonna do that later tonight maybe May 02 22:41:53 either that or poke ctate 'til they publish a 4.0.4 factory image :) May 02 22:42:52 When you have a Intent in a notification for an activity with extras as the data, and the activity is already launched when the notification is clicked on - nothing seems to happen. This is a problem if the extras changed and the activity needs to be informed of them... what am I doing wrong here? May 02 22:43:11 vadi2, onNewIntent May 02 22:43:13 or something like that May 02 22:43:17 thanks May 02 22:47:31 WTF: a TextView with scrolling text (ellipsize) not only takes a lot of CPU when visible but seems to take as much when the Actvity is paused (not visible).... May 02 22:48:22 pfn: err, you mean like the 4.0.4 images at https://developers.google.com/android/nexus/images ? May 02 22:48:50 ctate, yeah, except for mysid May 02 22:48:58 for which you guys don't care about anymore :( May 02 22:49:11 ITYM for which we need permission from Verizon May 02 22:49:31 wtf "dont' care about"? May 02 22:49:50 I know, giving you a hard time ;-) May 02 22:50:17 wtf... still failing to parse once it goes in my app May 02 22:50:28 but it works from a simple case on-device May 02 22:50:32 * pfn tries the test again May 02 22:50:51 oh, I didn't try it with EDT, it was est, duh May 02 22:51:16 sumbitch, still a parseexception May 02 22:54:10 pfn: yeah, file the bug please May 02 22:54:30 i'm not sure why it fails given that it looks like it is supposed to knjow about the en_US names by default May 02 22:57:38 hmm, new DateFormatSymbols(Locale.US) gives me back a bunch of zoneStrings, but they don't have DST vs. ST zones May 02 22:59:36 ctate, well, I'd like to confirm on the final 4.0.4 to make sure it isn't just a side-effect of my leaked build May 02 22:59:53 ctate, or if you have something handy to verify it with quickly... May 02 23:01:35 I can't seem to get SDK Manager to work on Windows 7 May 02 23:01:43 a cmd window flashes - then nothing May 02 23:01:53 however, it works fine using eclipse ADT plugin May 02 23:02:54 tried starting it from the start menu? May 02 23:03:04 or just the command prompt May 02 23:03:19 i didn't use the installer May 02 23:03:33 because it had trouble finding my JDK (64 bit) May 02 23:03:41 so no start menu entry May 02 23:03:56 so you're just running "android" from the command prompt? May 02 23:04:12 click SDK Manger.exe or run from cmd May 02 23:04:32 and you get no visible errors in the cmd window? May 02 23:05:13 only if running with the -v flag May 02 23:05:14 i get May 02 23:05:17 Adjusting the padding on a listview doesn't seem to be helping not to have the scrollbar cover the content May 02 23:05:49 Is there anything else I can do? May 02 23:05:56 "CreateProcess returned 1. Cleanup" May 02 23:06:00 RustyShackleford, open a new CMD window. cd to the directory containing the manager. then i forget how to start a program from the cmd... maybe start "SDK Manger.exe" ? May 02 23:06:17 Bryan__K, yep May 02 23:07:04 running "SDK Manager.exe" -v outputs: May 02 23:07:07 "CreateProcess returned 1. Cleanup" May 02 23:08:05 oh hm, if I run android.bat, it complains that it can't find JDK May 02 23:08:44 you have JAVA_HOME set? May 02 23:09:20 and %JAVA_HOME%\bin in your PATH ? May 02 23:09:49 t0mless, i did have JAVA_HOME set May 02 23:09:57 wtf, I'm not sure what happened May 02 23:10:31 do I need to restart after changing environment variables? May 02 23:10:49 hmm, no change in icu4c from android 4.0.2 to 4.0.4 May 02 23:11:14 RustyShackleford no, just close your command window May 02 23:11:17 and re open it May 02 23:11:23 my leaked build must be busted May 02 23:13:13 t0mless, it works May 02 23:13:33 t0mless, i swear I set JAVA_HOME before May 02 23:13:47 not sure what happened May 02 23:14:00 %JAVA_HOME%\bin must have also made a difference May 02 23:15:49 is there any drawback to using an AVD targeted to google API's vs regular android API? May 02 23:16:02 no May 02 23:16:25 google API is an extension, correct? everything in the original is also in the google API target? May 02 23:16:31 yes May 02 23:17:41 RustyShackleford: there's no reason not to... May 02 23:17:51 unless of course you're trying to test what would happen to your app without it May 02 23:18:03 ok, thats what I thought May 02 23:18:04 <_lpc> Im trying to use sharedPreferences to write into my other app configuration file, i have root to i mounted the fs rw and set file permission to 777, im now able to read it however when trying to write i do get this: E/ApplicationContext(7353): Couldn't rename file /data/data/com.myapp.testapp/shared_prefs/test.xml to backup file /data/data/com.myapp.testapp/shared_prefs/test.xml.bak i do May 02 23:18:04 <_lpc> believe that sharedPreferences doesnt realize i do have root and fails writing, is there any way to overcome this? im thinking about copying this xml somewhere else where i can do this modification like /sdcard and then move it back May 02 23:18:25 your app doesn't run as root May 02 23:18:40 you need to chmod the dir appropriately May 02 23:19:01 <_lpc> thank you! May 02 23:19:10 <_lpc> i was chmoding only the file May 02 23:20:57 _lpc out of curiosity... why aren't you just using the built in SharedPreferences classes to edit that file? May 02 23:21:21 or is it because you're reading from another file? May 02 23:24:03 anyone know off the top of their head how to stop std::cout from transforming '\n' on windows? May 02 23:34:52 http://www.guardian.co.uk/technology/2012/may/02/samsung-apple-smartphone-dominance May 02 23:36:46 why might I be getting "java.lang.NoClassDefFoundError: org.apache.commons.io.FileUtils" - the org.apache.commons.io.FileUtils is in the root of my project folder. I added it to the project build path libraries. I imported it in my class using import org.apache.commons.io.FileUtils ... not sure what I'm doing wrong here May 02 23:36:48 how possible/easy is it to extract text from a picture taken by an android device? May 02 23:37:14 are there tools available to do this already, or is this something I need to figure out myself May 02 23:37:29 Bryan__K: make sure its in libs/ May 02 23:38:10 oh for shit's sake printf does it too May 02 23:38:22 "For mid-tier Android handset makers, the problems are mounting." … sounds like there is going to be some consolidation in Android land May 02 23:39:00 I'm trying to implement client certificate authentication with HttpsUrlConnection. It errors out with "Failure in SSL library, usually a protocol error". I can see that the webserver gets the GET request however - and it logs the error "Re-negotiation handshake failed: Not accepted by client!?" - ideas? May 02 23:39:04 RustyShackleford: OCR, im not aware of any libraries for Android May 02 23:39:17 i libs the same as "Reference Libraries" listed in the sidebar for my project in eclipse? May 02 23:39:19 not that i've looked for them May 02 23:39:20 *is May 02 23:40:01 oi oi ! May 02 23:40:40 Bryan__K: all referenced libraries have to be located in the libs directory May 02 23:41:12 adding them to the build path doesn't make that happen May 02 23:41:45 ok ill do that thank you (and thank you g00s) May 02 23:42:38 that worked - thank you again! May 02 23:54:49 does anyone know of a good tutorial on how to make conditional UI components? I.e. if Spinner A has Option2 selected, display Spinner B May 02 23:55:13 can this be done in XML alone, or must I add the conditional UI components in code? May 02 23:55:40 code May 02 23:55:44 darn May 02 23:56:07 that means I have to listen for the spinner to be changed, right? how is that done? May 02 23:56:30 hesperaux: they have onchangelisteners May 02 23:56:44 okay excellent May 02 23:57:15 can I just toggle whether an element is visible in the listener, or do i have to inflate a layout and instantiate it? May 02 23:57:51 the xml file is just a way to describe a hierarchy of those widgets and layouts May 02 23:58:12 you don't have to use it to have a GUI, and all of them have constructors like new TextView(Context) May 02 23:58:20 so the answer is no, you don't have to inflate layouts May 03 00:00:05 and visibility of a widget can be controlled per element, in 3 ways: visible, invisible-but-included-in-layout and completely-gone-including-layout May 03 00:03:12 i downloaded a virtual box image based on android 4.0. is there a way to use it with eclipse. i don't see it listed in adb devices May 03 00:06:02 devslash: maybe adb over network, use bridged networking or host-only network in the image and find out the IP chosen for the device, then adb connect to that. You may have to install some adb-over-wifi widget if android 4 doesn't have the devoption to enable usage of adb over network natively May 03 00:06:07 devslash: it may be listening on a tcp port for adb. see if it has any ports open, and then try adb connect localhost: May 03 00:06:18 ok thanks May 03 00:06:41 did you get the image that has working ethernet May 03 00:07:02 alankila's probably closer to the right track :) May 03 00:07:33 alankila: I was surprised to find that my One X, at least, seems to support adb-over-wifi without any messing around at all May 03 00:07:54 I have the capability to enable adb over all network interfaces too, in settings -> developer options May 03 00:07:54 why surprised? May 03 00:08:08 promptly uninstalled adb over wifi widget May 03 00:08:11 adb over wifi is pretty handy May 03 00:08:14 heh May 03 00:08:14 i dunno how to find out my local ip May 03 00:08:17 Quite handy May 03 00:08:31 ctate: very useful, but I thought it needed an extra widget, or root, or other non-simple stuff in the past May 03 00:08:33 I often use adb over wifi to reach the phone from some virtual machine or such setup May 03 00:09:00 I think it needed root only if you're trying to enable it on the device without plugging it in May 03 00:09:07 and that might be pre-ics May 03 00:09:20 right, ics is still new and exciting :) May 03 00:09:22 and had to do adb tcpip 5555 or whatever May 03 00:09:58 I have no adb settings in my developer options though alankila May 03 00:10:21 yeah maybe it's cyanogenmod stuff May 03 00:11:08 I didn't need to set *anything* - just run "adb wifi 5555" May 03 00:11:23 yea, that doesn't require root May 03 00:11:23 er "adb wifi 5555" May 03 00:11:52 * alankila idly wonders what the adb protocol is like May 03 00:11:58 maybe look through the source some day May 03 00:12:03 simple, I was looking at it this morning May 03 00:12:03 and according to my adb it's adb tcpip 5555 May 03 00:12:15 it's simple, we kill the batman May 03 00:12:56 argh, "adb tcpip 5555", yes... must not type shell commands during breakfast May 03 00:13:03 alankila: there is a nice protocol.txt file in system/core/adb May 03 00:13:09 probably don't even need to read source to understand it May 03 00:13:25 and how are the usb packets wrapping the protocol? May 03 00:15:06 what are people's favorite shell apps for android devices? May 03 00:15:13 that, I have no idea. May 03 00:15:28 busybox, obviously. May 03 00:15:48 iptables is quite useful May 03 00:15:50 I mean... an app to have the shell available on the device, not apps to use May 03 00:15:59 I think I was using shell commander May 03 00:16:03 connectbot and terminal emulator May 03 00:16:09 hmm I imagine on usb they send the same packets May 03 00:16:25 i just never tried working with USB before so I don't have a clue May 03 00:16:40 but yeah, the same I bet. May 03 00:17:13 yeah, connectbot's local terminal is pretty nifty May 03 00:17:52 dumpsys May 03 00:17:55 procrank May 03 00:18:01 oh, not adb shell :) May 03 00:18:15 obvious attention-seeking is obvious May 03 00:18:28 http://jgilfelt.github.com/android-actionbarstylegenerator/ May 03 00:18:35 obvious meme regurgitation is obvious May 03 00:18:53 tautology is tautological May 03 00:19:17 ok i got the connection between eclipse and virtual box but when i run my app it says installing but i get an error: INSTALL_FAILED_MISSING_SHARED_LIBRARY May 03 00:19:35 I'm getting pretty confused here. My app is making 2 notifications, each with different extra data, text, and ID. Yet when I click on the 2nd notification, the extra data that's received is from the 1st notification. May 03 00:19:43 you are hoarding all the libraries to yourself May 03 00:19:54 ? May 03 00:20:16 devslash: what was the build target for your app May 03 00:20:16 devslash: I hid the library May 03 00:20:29 i changed the manifest to minimum 14 May 03 00:20:35 it was 15 previously May 03 00:20:48 if it wasn't broke, why did oyu change it May 03 00:20:51 how did you install the APK? May 03 00:21:08 the virtual box is based on android 4.0.1 (api 14) May 03 00:21:12 with adb, or did you download it to the VM and install it like a user would May 03 00:21:32 i installed it by hitting run in eclipse which copies the app and installs it May 03 00:21:48 try exporting the APK, and downloading to the VM and installing like a user. May 03 00:21:52 just to see what happens May 03 00:21:56 press play on eclipse is my preferred way to get new software on your device. May 03 00:21:59 ok May 03 00:22:01 yea May 03 00:22:08 but yeah if there's NDK stuff there it should be built for x86 also May 03 00:22:10 I'm not gonna bother if i have to do that every time May 03 00:22:20 devslash: it's just an experiment May 03 00:23:22 i tried dab install May 03 00:24:09 *adb May 03 00:25:07 its cool that es file explorer is available to download from the official site. helps me on devices like mine that don't have market May 03 00:26:40 do you often pay for apps? just out of curiosity May 03 00:28:39 how do i erase parts of the paint that i have drawn on a canvas onTouch? May 03 00:28:59 hrm... the local adb client on my ICS tablet doesn't see the tablet itself May 03 00:29:00 draw over them with some other color May 03 00:29:09 during onDraw() May 03 00:29:23 ctate: is that the best way? May 03 00:29:28 s/best/only/ May 03 00:29:35 i see May 03 00:29:41 you may only draw during onDraw() May 03 00:29:42 hence the name May 03 00:30:14 also "parts of the Paint"? a Paint is essentially a brush configuration, not the result of drawing May 03 00:30:16 right but i was thinking there maybe some other way by changing the paint mode May 03 00:30:28 you must walk 50 paces before onDraw is called May 03 00:31:04 you can draw with the Paint, reconfigure it, and then do some more drawing May 03 00:31:15 the second bit of drawing will use the reconfigured settings, the first bit won't May 03 00:31:34 the Paint is what you dip the brush in; it is not the image on the canvas. May 03 00:31:37 or something like that :) May 03 00:33:03 alright thanks May 03 00:35:18 what if i have a picture and i want to draw on it but only want to erase whatever i draw without modifying the picture May 03 00:35:47 So in debugging my problem of why are extras of one notification are replacing the extras of another, I printed the hashCode of the Intent at creation stage and on activity starts getIntent - and they are completely different. So the Intent object is being remade for some reason? May 03 00:37:26 grarhaharhr how can i turn off Eclipse's gratuitous automatic file buffer recycling? May 03 00:38:12 chouman: you're drawing a picture, then drawing on top of it. to undo stuff, you redraw the parts of hte picture that you want to revert to that state. May 03 00:38:16 Or should I not be using intent extras to pass data to the activity from a notification to begin with? May 03 00:51:29 in a page change listener, how can I find what page I'm on in the onPageScrollStateChanged method? May 03 00:52:22 it gets passed to you May 03 00:52:38 the scroll state gets passed to me May 03 00:52:41 not the current page May 03 00:52:49 public abstract void onPageScrollStateChanged (int state) May 03 00:55:40 * readme is on the first page of SERP results for the term: google drive :P May 03 00:56:58 russfrank, use onPageSelected May 03 01:05:27 has anyone used android for virtualbox ? May 03 01:17:05 I'm mildly confused. After downloading the SDK starter and then trying to get things to work in Eclipse, I don't see an "Android" shortcut anywhere. Am I more confused than normal? May 03 01:18:26 did you install the ADT plugin? May 03 01:18:47 wabz, tried, but it failed. May 03 01:19:15 Lemme go try again and get the error. May 03 01:20:06 "Cannot complete the request because one or more required items could not be found." May 03 01:21:21 try unchecking that checkbox down the bottom somewhere that says something about searching all sources May 03 01:21:40 I have some form of java installed and will get the latest JDK to see if that fixes it. May 03 01:21:51 * leitz goes to look for a checkbox May 03 01:23:48 when you go Help -> Install New Software, it's the checkbox that syas "Contact all update sites during install..." May 03 01:23:59 It seems to be balking specifically on the Android Developer Tools May 03 01:24:17 lots of people balk at the ADT ;) May 03 01:24:27 specifically, Trying to install one of the four bits at a time. I did uncheck the checkbox. May 03 01:24:37 Well, I'm a total newb, do I need it? May 03 01:24:43 I had some luck changing the https to http for the google site May 03 01:24:58 sometimes it's just really slow/unavailable :( May 03 01:28:55 Well, the other two items may go in, though it's hanging at the license accept page. May 03 01:29:12 The ADT failed though. May 03 01:35:00 Even onNewIntent's bundle is buggy... this is frustrating. May 03 01:39:19 it is not buggy May 03 01:39:59 Yeah sure. May 03 01:40:40 provide a test case indicating how it is buggy May 03 02:02:36 sure May 03 02:17:39 I have a RelativeLayout wrapping all my content, and on my smaller screen device it fits perfectly, but on my larger screen device it has a little bit of "white space", so is there any way I can vertically allign my RelativeLayout in the center? Like a centerAlignVertically or something May 03 02:23:52 hello all May 03 02:31:01 T-Dub|DlolPics: yes, depending on what kind of ViewGroup the RelativeLayout is in May 03 02:31:36 anyone feel free to comment on my open Birthday App without fancy permissions: https://github.com/rigid/Birthdroid/raw/master/bin/Birthdroid.apk May 03 02:31:39 appamatto, I don't mean a view INSIDE a RelativeLayout, I mean the RelativeLayout itself. May 03 02:31:56 Yes, but you have to center it inside of another container May 03 02:32:54 Or is it the root of your view hierarchy? If so, I'm not sure why it isn't filling the entire view? May 03 02:33:00 Hmm. May 03 02:33:33 It is filling the screen, but due to different screen sizes it doesn't fit nicely. It's doable, but isn't nice. I guess I could wrap it with a relative layout and then center the RelativeLayout May 03 02:33:37 got me a new tmo sim May 03 02:33:53 I mean a linear layout May 03 02:34:07 T-Dub|DlolPics: Hmm, I'm not sure how it can both fill the screen and not fit the screen May 03 02:34:17 One sec May 03 02:35:22 pfn: I've worked it down to PendingIntent affecting which data gets passed. My default of 0 had the first notifications data always, FLAG_UPDATE_CURRENT is giving it the latest. I've got no clue why is a PendingIntent affecting completely separate notifications (separated by #) though. May 03 02:36:29 appamatto: This is on my droid 1(small screen) http://puu.sh/sEMH May 03 02:37:19 i thought droid1 was normal May 03 02:37:21 not small May 03 02:38:48 what are code is SF? 415? May 03 02:39:14 canadiancow: yes May 03 02:39:25 Hi. what's the easiest way to call recognizeSpeech from the scripting layer non blockingly? May 03 02:39:26 Now this is on my droid x2 (bigger screen) http://puu.sh/sEN2 May 03 02:39:27 It still fits just fine, but it isn't nearly as nice looking. So I was thinking if I could just center it on my droid x2 or any other device that has a bigger screen it should help it appear to "fit/look good" May 03 02:39:27 It's a smaller screen then my dx2. May 03 02:39:27 My dx3 is 4.1 my d1 is like 3.7? 3 something May 03 02:39:28 inch May 03 02:39:44 Plan details: $3/Day Unlimited Talk, Text & Web (200 MB per day at up to 4G speed) May 03 02:39:46 sounds reasonable May 03 02:40:00 I can spawn additional threads it appears is there another way besides that May 03 02:40:16 T-Dub|DlolPics: you should be using GridLayout and weights May 03 02:40:23 Yeah, you might do better with a linear layout and setting layout_weight on the elements that you want to expand May 03 02:41:06 GridLayout would be nice if you want to refactor your code May 03 02:41:24 holy balls tmo's site accepts canadian creidt cards now May 03 02:41:25 finally May 03 02:41:37 how do you import projects into eclipse? i'm getting errors at the import android... lines **** ENDING LOGGING AT Thu May 03 03:00:01 2012