**** BEGIN LOGGING AT Sun May 20 02:59:59 2012 May 20 03:33:35 ah crap, atlassian SourceTree is only free for a limited time May 20 03:38:29 Hopefully quick question: If I have a reference to a View, is there a way to get which ViewGroup it is a child of? May 20 03:39:30 you can look at View.getParent May 20 03:39:59 Ah perfect, thanks May 20 03:49:04 why i can not download this file using lftp? May 20 03:49:08 http://iyanwu.com/pastebin/showthread.php?tid=69 May 20 03:50:43 Looks like you've already downloaded it and you need some sort of "overwrite any existing file" flag in your command May 20 03:50:57 "xfer:clobber" perhaps, I don't know May 20 03:56:45 yeah, asynctasks are going to be the death of me. i have two /identical/ pieces of code in two diferent activities. one works, one doesn't. weirdest thing. May 20 03:56:59 i just ran diff between the two activities to be sure. May 20 03:58:31 and by 'doesn't work' i mean, never seems to make it to postexecute May 20 03:58:54 or rather, never seems to make it to postexecute after a configuration change May 20 04:04:56 Hey, how much knowledge of java should i have to start android-dev May 20 04:05:19 b1n0ry: the pain is less the earlier you switch to using a fragment. :) May 20 04:06:27 especially once you're dealing with asynctask + rotation. May 20 04:08:37 specifically, though - it isn't hitting onPostExecute at all? it should at least do that May 20 04:09:07 have you implemented onProgressUpdate? May 20 04:15:45 billjings, yeah, it's weird. doesn't seem to be. onPreExecute, i show a progress dialog. onPostExecute, i dismiss it. when i first enter the activity, all is well. when i change config, the dialog pops up and never goes away. May 20 04:16:02 although, like i said, i have two literally identical activities, and it works just fine on the first one. May 20 04:16:48 just to be sure, i went into the code for the first activity, select all, copy. enter the second. select all paste. change name of class. done, run. first works, second doesn't. May 20 04:17:48 haven't seen anything this weird since i had HP Service Manager once tell me that eval(true and false) = true, once. May 20 04:17:59 heh May 20 04:18:20 so do you know for sure that onpostexecute isn't being called, or is it just that you aren't seeing the progress dialog go away May 20 04:18:44 i guess that's a better assertion. the progress dialog isn't going away. let me throw a log in there May 20 04:20:30 seems you're right. onpostexecte is getting called. dialog just won't go away. May 20 04:21:03 if (pd.isShowing()) dismissDialog(LOADING_DIALOG); <-- that's the line that's doing it. May 20 04:21:19 JavaDog are u familiar with lftp? May 20 04:22:16 going to try taking out the if condition May 20 04:22:16 plain jane dialog, or dialogfragment? May 20 04:22:20 maybe pd is losing its mind somewhere May 20 04:23:11 ugh, i really fucked things up already with git May 20 04:23:13 removing if condition, still there. plain jane dialog. May 20 04:23:45 that's your problem May 20 04:24:05 a dialog is configuration specific - it gets nuked on rotation May 20 04:24:23 if you're using managed dialogs, after rotation, the screen is displaying a new dialog May 20 04:24:40 not in this case, because the dialog should even display until after the rotation. May 20 04:24:46 shouldn't May 20 04:25:14 i'm not rotating the screen during loading. i'm rotating the screen after the loading is complete. when the "reloading" starts, that's the dialog that never goes away. May 20 04:26:48 and like i said also... the previous activity does the exact same behavior, except its dialog disappears just fine. May 20 04:27:39 so each asynctask is specific to just one activity instance? no passing around or anything May 20 04:27:44 nope May 20 04:27:47 and no managed dialogs? May 20 04:27:47 no passing anything May 20 04:28:19 no dialog fragments, if that's what you mean. i haven't written anything to manage them. just using standard showDialog and dismissDialog activity methods. May 20 04:29:08 here, i'll post the code of the two activities... May 20 04:29:44 this is the one that works just fine: http://pastebin.com/FTVTGTcW May 20 04:30:24 this is the one that is not working: http://pastebin.com/D0FHAdzD May 20 04:30:28 that's what I mean by the managed dialogs - showDialog and dismissDialog May 20 04:30:37 oh, ok May 20 04:31:30 those calls do some magic to automatically show the dialog again on rotation May 20 04:32:20 yeah, right now i have a bug in that particular process in both activities - ultimately, i'm going to cache the result and check for the existance of a cache. just trying to work this bug out, first :) May 20 04:34:43 i can't be sure, but i think that might be your problem. i am not sure what happens when showDialog() is called while the dialog is already visible, though. May 20 04:35:00 i'm not calling showDialog while it's already visible. May 20 04:35:38 i'll run you through the scenario... 1) i start the activity 2) loading dialog shows 3) wait for complete, it disappears. 4) rotate screen. 5) loading dialog shows. ... never goes away. May 20 04:36:17 oic May 20 04:36:29 yeah, that doesn't make any sense. May 20 04:36:39 none at all. and only on the second activity. May 20 04:36:52 did you see any differences between the code other than the class name? May 20 04:37:05 in fact, just to be sure, i used the exact same JSON call, layout, view, etc. May 20 04:37:33 so it's useless code that way (normally, in the first one you select a book and the second list is the chapters within the book. right now, you select a book and get back the same list of books, lol) May 20 04:38:21 heh... here's something really funny... May 20 04:38:40 i have good behavior on my motorola droid x phone on BOTH activities. on my ZTE and the emulator, i get the crappy behavior. May 20 04:39:34 b1n0ry: If you want an example of DialogFragments (which will be managed automagically upon orientation change), you can use my thing: https://github.com/culmor30/android-fragments-example May 20 04:40:03 *disclaimer: It probably isn't perfect, but it seems to work May 20 04:40:13 thanks JavaDog, i'll look at it. May 20 04:40:25 Sure :) May 20 04:40:28 i'm thinking switching altogether to using fragments for everything... just need to understand them first May 20 04:40:48 i get the whole "it's a piece of the ui" thing and, basically, a modular code container. May 20 04:40:56 not sure if there's more to it than that. May 20 04:40:58 That's what I did a week or so ago. Managing rotations with normal dialogs is a huge pain compared to the relative easyness of fragments May 20 04:41:14 they're controllers that aren't tied to view objects May 20 04:41:38 an activity and its views… they are like a man, and his fingers and toes May 20 04:42:01 a fragment is like a robot that uses those fingers and toes like a puppet May 20 04:42:38 and can move from person to person with ease May 20 04:43:02 so, in glenn beck terminology, an activity and it's views = barack obama. fragment = cass sunstein. May 20 04:43:42 Can't say that I've watched enough Glenn Beck to know :p May 20 04:43:42 i think i understand ;) May 20 04:44:01 JavaDog, nobody has. fox canned him. though he's still on the radoi. May 20 04:44:03 radio May 20 04:44:16 unless they subscribe to his 'gb.tv' website May 20 04:44:18 Oh, yeah I heard about that May 20 04:44:21 on reddit May 20 04:44:46 i like to listen to him with the same mindset as i listen to art bell/george noorey. May 20 04:45:01 anyway... lol May 20 04:45:11 I watch Fox for entertainment when there's nothing else on. Good comedy May 20 04:45:21 Anyway, android. Yeah. May 20 04:45:39 for good humor.. put on two TVs, one with Fox and one with MSNBC and they sound like a gunfight. May 20 04:45:40 i think that metaphor makes it pretty clear why fragments are the more android-y solution. May 20 04:46:55 yeah, true. cass sunstein is much like an android. so it fits very well. May 20 04:47:30 ok... i need a beer... then on to read about fragments and look at JavaDog's code. May 20 04:49:32 Known problem: hitting home while the progress dialog is up will cause a crash when the asynctask finishes. Easy fix, but I can't update it because I don't know how to use git very well :p May 20 04:50:04 yea May 20 04:50:11 that's kind of a bad part of async task May 20 04:50:18 you can use callback interfaces to prevent that May 20 04:50:31 or cancel your task in onPause May 20 04:50:34 or use a loader May 20 04:50:53 Or just say, "if myDialogReference == null, don't bother trying to dismiss it" May 20 04:50:58 or don't use progress dialogs and use the progress bar in the title/action bar May 20 04:51:00 hacky fix ^ May 20 04:51:21 I would probably cancel the task like t0mless said if I wanted something more legitimate May 20 04:51:45 Hey, I was wondering if anyone would have a good tutorial re. documenting android applications May 20 04:51:59 tutorial for documenting? May 20 04:52:30 http://www.oracle.com/technetwork/java/javase/documentation/index-jsp-135444.html May 20 04:53:05 more like a guidleine re. technical documentation rather than javadocs May 20 04:53:32 not sure what you mean May 20 04:54:14 Do you want a guild for documenting an application or a guide for creating an application? May 20 04:54:18 hah, guild May 20 04:54:19 guide* May 20 04:54:30 I need to quit WoW May 20 04:54:55 Indeed May 20 04:54:59 * t0mless plays Guild Wars instead May 20 04:56:09 Tried the guildwars 2 beta? May 20 04:56:10 JavaDog, documenting an application. May 20 04:56:21 I know that I should include class diagrams, test cases etc. May 20 04:56:32 wasn't available to when the last one was happening May 20 04:56:36 I was wondering if I could learn something new in that aspect though May 20 04:56:37 kg020: Ah, don't really know. Perhaps just use other documents as a reference? May 20 04:57:21 t0mless: I played guildwars back when only the vanilla game was out, and through a couple "expansions" May 20 04:57:43 Level cap being 20 was kind of lame, though May 20 04:57:49 Thing is I'm trying to write a technical document for my course work re. android application, and I never really understood the point of it. As t0mless said, JavaDocs are generally enough for someone to understand May 20 04:57:56 yea, I did the same, just recently bought all 4 games for pretty cheap May 20 04:58:22 kg020 you should ask your instructor for guildlines then May 20 05:01:37 This is killing me... why would this return null? TextView shortName = (TextView) ((LinearLayout) v.getParent()).findViewById(R.id.results_short_name); May 20 05:02:01 There is definitely a child of that LinearLayout with that ID, and the ID is specified in my ids.xml file May 20 05:02:57 v.findViewById without the LinearLayout part doesn't work either... May 20 05:03:49 kg020: technical docs other than javadocs can be awesome for larger projects. May 20 05:04:11 e.g., what would we do without all the android tutorials, guides, etc May 20 05:04:14 in eclipse is there a way to automatically cast something..for example you can automatically import classes by presses CLTR + O ....anything like that for casting? May 20 05:04:24 but for a school project…. ehh. May 20 05:04:56 Usually if there's a type mismatch, Eclipse can suggest a cast for you (hover over the error) May 20 05:05:09 billjings, exactly my thoughts... I was just wondering if I could find something which gives it more meaning (in my eyes) as none of my tutors have previously convinced me of it. May 20 05:05:31 But only if you've imported the package containing the cast type May 20 05:05:37 sounds like something they can just skim through because they otherwise wouldn't understand the code itself. May 20 05:05:41 JavaDog: I know that eclipse can suggest but I'd like to automatically cast May 20 05:05:48 kg020: imagine that your project was open source May 20 05:05:55 and you wanted more people to get involved with it May 20 05:06:53 john_doe_jr: How could eclipse know what type you want to cast to? May 20 05:07:02 JavaDog getParent() doesn't return a View or ViewGroup May 20 05:07:05 it returns a ViewParent May 20 05:07:17 which you cannot cast to either View or ViewGroup May 20 05:07:41 Oh... why not? May 20 05:08:01 Is there any information in the ViewParent I could use to get what I want there? May 20 05:08:01 because it doesn't inherit from either of them May 20 05:08:10 http://developer.android.com/reference/android/view/ViewParent.html May 20 05:08:18 not sure what you're trying to do with the parent May 20 05:08:33 billjings, so you'd say its more about 'selling' it to the reader rather than explaining what it does... May 20 05:08:36 I just need to get another view from the same viewgroup May 20 05:08:42 and get the text out of it May 20 05:09:01 create an instance view object to reference May 20 05:09:04 convincing the reader that the design of the application is the right way to go or something of the sort. May 20 05:09:16 kg020: sort of? it's about presenting the technical side in a way that's easy to understand. May 20 05:09:23 JavaDog if it's in the same layout as what is in your activity, you can just use findViewById() May 20 05:09:24 i don't know exactly what your assignment is, so i can't say. May 20 05:09:35 but that's how and why documentation gets written for FOSS projects May 20 05:10:23 I'm not inside an activity May 20 05:10:24 e.g., just javadocs may not answer questions like, "where do I start with all this?" or "how would I go about doing X?" May 20 05:10:38 Here's the whole thing, for context http://pastebin.com/Hm2JjXdZ May 20 05:10:46 you can probably answer them with javadocs, but a tutorial or a HOWTO would be easier May 20 05:11:01 okay, gotta go sleep May 20 05:11:04 night May 20 05:11:08 billjings, hmm ok thanks a lot May 20 05:11:23 good night May 20 05:11:33 JavaDog is that for your list adapter? May 20 05:11:42 Yeah May 20 05:12:16 There is definitely a better way to do that May 20 05:12:32 but without knowing your objective/code for everything else, I can't explain it May 20 05:12:47 What do you need to see? May 20 05:12:55 probably your adapter's getview May 20 05:12:58 oh wait May 20 05:13:09 you were the one that made your buttons/etc in code May 20 05:13:11 instead of xml May 20 05:13:14 yeah May 20 05:13:29 set your onClickListner's in that code May 20 05:13:48 then you'll have easier access to your textview May 20 05:14:18 This is my getview http://pastebin.com/R8vdc7pf May 20 05:14:23 I set the clicklisteners in here May 20 05:17:52 set the onclick listener inside the SearchResultItem where you build the view May 20 05:18:13 then just make your buttons do whatever you want based on that view May 20 05:19:51 How would I do that? MyOnClickListener is an inner class of my fragment May 20 05:20:13 And I only want one listener, unless they're really cheap on memory May 20 05:20:24 What exactly does an 'add cast' do anyways? May 20 05:21:02 It adds a cast to your command May 20 05:21:24 JavaDog: then what is a cast then? May 20 05:21:50 http://www.javabeginner.com/learn-java/java-object-typecasting May 20 05:21:56 JavaDog just us an anonymous inner class in the Serch whatever view May 20 05:22:17 But then I'll have a bunch of listener objects, one for each view added to the list, right? May 20 05:24:04 I mean, is it *completely impossible* to do this keeping my listener the way it is? May 20 05:24:19 not impossiblew May 20 05:24:22 impossiblew May 20 05:24:24 dammit May 20 05:24:26 just stupid May 20 05:24:35 tv time May 20 05:25:08 How would I do it then? May 20 05:26:20 when you build your buttons in your view May 20 05:27:19 dButton.setOnClickListener(new View.OnClickListner() { public void onClick(View v) { // do whatever you need to here} }); May 20 05:29:39 My list might contain 200+ buttons at a time, depending on the user's search. I feel like that would be inefficient. May 20 05:29:50 * RubenRybnik is away: Down for the night May 20 05:32:48 I'm getting a NPE at the use of a bluetooth adapter, is this simply because the simulator does not support bluetooth or because I have something wrong with my code? Would the simulator say something else if bluetooth is not supported? May 20 05:33:13 Do you have a real device to test with? May 20 05:33:28 yeah, I was just running it to see what happens with the simulator May 20 05:33:55 Ah, I was going to suggest http://developer.sonymobile.com/cws/devworld/technology/borrowaphone if you didn't May 20 05:34:56 i recently added ADT plugin to my eclipse but i am not finding -->new android project button in FILE-->new May 20 05:34:59 cool heh, but I guess shipping to europe would cost as much as a cheap phone here. May 20 05:35:01 Afraid I don't know, though. Perhaps someone else will. May 20 05:35:34 prateekp: Hit File > New > Other... May 20 05:35:41 and then May 20 05:35:42 ? May 20 05:36:01 Should be an "Android" folder in there, containing "Android Project" May 20 05:37:28 thanks JavaDog May 20 05:37:35 Glad I could help :) May 20 06:03:14 hi all May 20 06:12:05 can anyone tell me why when u run android to add a new sdk and tools the downloads keep stalling? May 20 06:12:36 im trying to add the 2.3.3 api and it gets like 1/10 of the way thru the download and never goes any further May 20 06:16:51 how do you get the text selected from a spinner? May 20 06:42:43 john_doe_jr: the http://d.android.com spinner documentation includes a tutorial. May 20 07:02:50 pragma-: is there a way to set the onclickListener up on several buttons all at once w/ out having to type them all out? May 20 07:03:48 store it in a variable and assign the variable to each listener May 20 07:03:59 to each button May 20 07:04:17 the buttons listening for the click May 20 07:05:09 pragma-: I don't understand May 20 07:06:19 pragma-: like, 'Button button12 = (Button) findViewById(R.id.button12); button12.setOnClickListener(this); ' but I got like 20 buttons May 20 07:08:22 You have to type them all out May 20 07:08:27 Or set click listeners from xml May 20 07:08:38 Guess you have to type them all out there as well May 20 07:12:34 Would I add the following to each button? android:onClick="onButtonClick" May 20 07:21:07 for 20 buttons, setting them in XML is not going to be efficient May 20 07:21:36 for each button you put that on, you'll create an extra onClickListeenr, and you're going to reflect the onButtonClick function from your class May 20 07:21:38 also it's not compile-time safe May 20 07:22:26 use a single listener, set it in code, differentiate based on instance, id, and/or tag May 20 07:40:31 could someone explain to me how the hardware acceleration system works? May 20 07:41:15 in the launcher, for example, there is a Workspace that contains child CellLayouts that each contain a CellLayoutChildren May 20 07:41:43 the CellLayoutChildren are set to have hw acceleration even though it is the CellLayouts that are getting animated May 20 07:42:07 so should the CellLayout's also have hw acceleration enabled or is it fine this way? May 20 07:45:00 and what is the difference between View.setFastTranslationX() and View.setTranslationX()? May 20 07:47:43 The first one is faster May 20 07:49:20 I didn't realize there was fast May 20 07:49:24 When I do a specs.setIndicator on a tab it doesn't style the text...how can i get the text styles? May 20 07:49:29 JakeWharton: It's hidden May 20 07:49:41 ah May 20 07:49:46 It assumes the dev knows what he's doing, and skips a few steps May 20 07:49:53 yeah makes sense May 20 07:50:04 Like, it doesn't handle invalidating May 20 07:50:07 most public methods call to internal helpers after certain checks are made May 20 07:50:24 Non-fast methods does May 20 07:50:43 SimonVT: so if I dont use the setFast* methods the view will be invalidated every time? May 20 07:50:56 Among other things May 20 07:51:06 nebkat|beer: if you use setFast* you might be missing some important things May 20 07:51:28 well the views need a lot of transformations May 20 07:51:41 and it would be stupid to redraw for every one of them May 20 07:51:51 If the view uses setFastX, you might as well use setX .. Result will be the same May 20 07:51:59 setX can't necessarily be replaced with setFastX May 20 07:52:29 it won't redraw for each May 20 07:52:31 setFastTranslationX, setFastScaleX, setFastRotationY, etc... May 20 07:52:32 (I assume you're looking at framework apps) May 20 07:52:34 it will invalidate properly however May 20 07:52:57 SimonVT: yes launcher May 20 07:53:02 if you execute them all concurrently on a single thread the redraw won't take place until after the method completes May 20 07:53:18 (overgeneralizing a bit) May 20 07:53:46 hmm why isnt there any setFastRotation(? May 20 07:54:31 there was previously a method that animated all the views to a certain position and it used setFast*, but I need it to use rotation now and there is no setFastRotation method :P May 20 07:54:40 and im afraid it could be causing some lag May 20 07:57:34 JakeWharton: here? May 20 07:57:41 depends May 20 07:57:57 :P May 20 07:58:10 \do you still deal with ActionbarSherlock? May 20 07:58:21 I came from the supprort page May 20 07:59:24 You'll have more success if you ask an actual question May 20 07:59:31 well May 20 07:59:33 :D May 20 07:59:40 he posted on StackOverflow and the mailing list already May 20 07:59:49 the sample project don't generate the R file May 20 07:59:49 http://stackoverflow.com/questions/10671576/actionbarserlock-smaple-project-not-generating-r-file May 20 07:59:53 carpet bombing May 20 07:59:54 this is my question May 20 08:01:23 Protip: Use ant to build May 20 08:01:29 *Maven May 20 08:01:31 Much better error reporting May 20 08:01:38 May 20 08:01:39 Whatevs May 20 08:02:19 [11:01] May 20 08:02:25 is that directed at me? May 20 08:03:56 *snrk* May 20 08:04:08 < JakeWharton > *Maven <-- to this, I guess May 20 08:05:01 JakeWharton: for some reason, the sample project was building on 2.1 instead of 15 May 20 08:05:07 that was so wierd May 20 08:05:16 Yeah Eclipse likes to choose the wrong one May 20 08:05:21 or rather, ADT May 20 08:05:24 I have no idea why May 20 08:06:11 I'll post a full answer May 20 08:06:51 hey JakeWharton May 20 08:06:57 hello May 20 08:07:03 were you the one that linked me to https://github.com/bignerdranch/Roger May 20 08:07:04 ? May 20 08:07:09 nope May 20 08:08:11 damn, i saw a video of it in use, but i cant find the link May 20 08:08:49 Looks useful until you read the FAQ May 20 08:08:59 or the AQ as they call it May 20 08:11:04 I wonder why they didn't notice that you *can* display custom views... ;) May 20 08:11:23 or... I'm skewed due to interacting with lots of weird old stuf May 20 08:11:39 ah ha, found what i was looking for May 20 08:11:40 http://www.youtube.com/watch?v=kOiA9SMO23c May 20 08:11:44 video of it in action May 20 08:11:49 JakeWharton: does this pass your standarts? May 20 08:11:49 http://stackoverflow.com/a/10671845/1056359 May 20 08:14:11 shot in the dark: romainguy here? May 20 08:14:33 thepoosh: works for me May 20 08:14:40 perfect May 20 08:14:45 again, thanks a bunch May 20 08:16:09 JakeWharton: the only remaining problem is that it claims now to be missing dependencies May 20 08:16:12 any thoughts? May 20 08:16:20 Add the dependencies May 20 08:16:23 open libs/ May 20 08:16:26 right click the .jar May 20 08:16:28 build path > add to build path May 20 08:16:45 ADT automatically includes jars in libs/ May 20 08:16:53 Assuming you got the latest May 20 08:16:56 It's smart like that now May 20 08:17:06 I already have the dependencies May 20 08:17:43 it's the sample project May 20 08:17:45 :S May 20 08:18:34 but they're not on the build path May 20 08:19:12 ADT makes sure they are May 20 08:20:03 it didn't pick up on the project.properties for the compilation SDK May 20 08:20:14 i'm willing to bet it didn't pick up the deps May 20 08:20:17 and thus is probably out of date May 20 08:20:24 Help > Check for updates May 20 08:24:52 I don't get it May 20 08:25:07 what am I supposed to add that is not already added?! May 20 08:25:33 I have the compatibility May 20 08:25:37 *jar May 20 08:25:48 I have the com_actionsherlock jar May 20 08:25:55 what else should be there? May 20 08:26:39 SimonVT: JakeWharton ? May 20 08:26:52 what is the error? May 20 08:26:56 ^ May 20 08:27:31 [2012-05-20 11:23:52 - SampleList] Jar mismatch! Fix your dependencies May 20 08:27:58 you can get ABS in a jar? May 20 08:28:04 https://groups.google.com/forum/?fromgroups#!topic/actionbarsherlock/sA-WBi9h6p4 May 20 08:28:09 first google result May 20 08:28:18 t0mless: no May 20 08:28:20 deps May 20 08:28:39 I didn't think so May 20 08:28:47 I was gonna search it but I was already here May 20 08:28:50 sorry May 20 08:37:12 JakeWharton: well, I went to the ABS project and into the build path May 20 08:37:19 no v4 jar May 20 08:37:28 I'm puzzeled May 20 08:40:36 thepoosh: exec android May 20 08:40:47 thepoosh: download support library with it May 20 08:40:54 ? May 20 08:41:01 i have the support library May 20 08:41:15 oh than what is problem? May 20 08:41:30 sorry just wake up read ur last lines, and was "no v4 jar" :D May 20 08:42:25 ixc: [2012-05-20 11:23:52 - SampleList] Jar mismatch! Fix your dependencies May 20 08:42:38 in the actionbarSherlock sample project May 20 08:42:51 adt changed from v17 May 20 08:43:13 u need add it to libs or in eclipse cold dependencies or like this May 20 08:44:36 its the android-support-v4.jar from the ABS file May 20 08:46:11 ixc: ^ May 20 08:46:52 its dont care where is from :) May 20 08:47:15 well, then I'm as puzzled as I was before May 20 08:47:29 what ide u use? May 20 08:48:22 eclipse May 20 08:48:30 on mac osx May 20 08:48:40 god I hate Mac May 20 08:49:57 i more prefer work on it :) May 20 08:50:05 hmmmm May 20 08:50:37 i search a url with many screenshot May 20 08:50:52 where was described changes with adt17 May 20 08:51:44 maybe it was, not sure: http://android.foxykeep.com/dev/how-to-fix-the-classdefnotfounderror-with-adt-17 May 20 08:52:10 the problem that u download made with previously version and changes coming with adt17 May 20 08:52:20 or i think thats is ur problem :) May 20 08:58:52 hello May 20 08:59:34 i am new to android development.. and was self studying this stuff-somehow have a hard time understanding fragments. May 20 08:59:52 any useful links, video? May 20 09:01:12 nothing? May 20 09:02:40 fragments are just containers around a View that manage it May 20 09:03:20 there are tons of samples in the SDK's API Demos and the support library May 20 09:03:30 there are also a bunch of posts on the Android Developer Blog May 20 09:03:52 and I'm sure Reto Meiers new book (as well as other things such as the Commonsware books) cover them quite thoroughyl May 20 09:04:27 @JakeWharton - thanks a lot. shall look up the book reference... May 20 09:04:41 @jakewharton - how to decide to use .. lets say. ImageView or a viewpager (fragment activity etc.) May 20 09:15:20 webtop 3.0 on the moto atrix can anyone help May 20 09:31:44 is it possible to force an acitivity to be a singleton, or something? If I only want the system to be able to spawn one of that activity, and if a new intent for that activity is started it should just re-use the activity May 20 09:35:10 oh, there's launchMode = "singleInstance" May 20 09:42:43 hi May 20 09:43:01 hey t0mless thanks for the help yesterday! i was so stuck! May 20 09:44:28 what's the compatibility library for? May 20 09:45:38 fragments, loaders, and helpers May 20 09:45:41 there's a huge page about it May 20 09:45:44 i suggest you read it May 20 09:47:06 can i use it for using the latest 4.0 action bars? May 20 09:51:46 no May 20 09:51:50 try http://actionbarsherlock.com May 20 09:54:40 i also heard of ActionBarSherlock, is it you that desgined it? May 20 09:54:59 correct May 20 09:55:19 cool i'm a fan! May 20 09:55:28 very nice i'd like to try it May 20 09:55:41 i'd also like to try your scrollable tabs May 20 09:57:36 well try away May 20 09:57:42 i find them quite useful May 20 09:59:31 JakeWharton: do you use the last version of support-v4 in ABS ? May 20 09:59:39 because I get this error May 20 09:59:40 Found 2 versions of android-support-v4.jar in the dependency list, May 20 09:59:45 it uses r7 May 20 10:00:04 ok, so not the last one May 20 10:17:37 JakeWharton can both ABS and ViewPAgeIndicator be used to make scrollable tab bars ? May 20 10:18:24 hello May 20 10:20:30 i have a folder on the external storage that contains images taken with the phone's camera. I also have an Activity that has a gallery meant to show all images in the folder. This is the relevant code from my Adapter class: http://pastebin.com/QPAADjyB May 20 10:21:16 The problem is, after some scrolling around, i get this error: 6291456-byte external allocation too large for this process. May 20 10:23:49 somehow a 6,29 MB allocation is about to happen, which i don't understand, since my images are ~1 MB large May 20 10:24:24 I'm having a little problem.. I am creating a HttpPost request in an asynctask, and adding POST variables to it with postrequest.getParams().setParameter("key", value); however, the parameters are not sent to the server May 20 10:42:23 hi, i wonder... i try to make my first app.. and found a way to use html / css / js.. now i wonder.. is it possible to just open direct from that app like: www.mydomain.ext/myapp/index.html and start continue working there? May 20 10:42:54 i tried: document.write(http://www.test.se/social/social.html); May 20 10:43:08 but i cant think write will be reading :/ May 20 10:46:00 with a meta refresh it works.. but can you see the load bar from what sites it get it from May 20 11:24:14 webtop 3.0 on the moto atrix can anyone help May 20 11:52:12 anyone well versed in the ant compiler here? May 20 11:53:06 ant is not a compiler May 20 11:53:09 :p May 20 11:53:24 okay, I learned a thing already May 20 11:53:26 :p May 20 11:53:41 Ant is for java what make is for * May 20 11:53:42 what would one call it, then? May 20 11:53:58 Ah, I see May 20 11:54:18 iirc it reads the pom.xml and does its magic May 20 11:54:22 and I think a lot of people are familiar with ant here May 20 11:54:27 usually build.xml May 20 11:54:39 pom is maven, I think May 20 11:54:43 ah, yes, true May 20 11:55:02 which is somewhat similar, but at a higher level May 20 11:55:31 it mainly uses build.xml here I think May 20 11:55:41 and it complains that it cannot find a certain target May 20 11:55:58 show the code May 20 11:56:17 hack the world!!! May 20 11:56:20 bye! May 20 11:56:29 :D May 20 11:56:35 quitting with style May 20 11:57:02 it's a sample from the PhysicsEffects Android project (Bullet Physics) May 20 11:57:10 so there's lots of code May 20 11:57:17 both Java and C++ May 20 11:57:19 oh May 20 11:57:28 I meant the build.xml file May 20 11:58:47 k, ant complained that I had to run "android update project" , otherwhise it wouldn't start May 20 11:58:49 and it generated a new build.xml May 20 11:58:59 I'll show the "latest" version May 20 12:00:57 http://pastebin.com/X6dxebLs May 20 12:02:42 hum May 20 12:02:55 missing target help? May 20 12:03:21 it misses target 'compile' May 20 12:03:25 http://pastebin.com/gCTpV4ik May 20 12:03:33 this is the output of "ant compile -v" May 20 12:03:47 use 'ant release' or 'ant debug' May 20 12:04:40 ant debug works, but the app crashes May 20 12:04:58 I doubt it's related to the build May 20 12:05:00 what is the stacktrace May 20 12:05:43 I'll post it here in a sec, ant release seems to work too May 20 12:05:47 k May 20 12:14:05 readme: http://pastebin.com/QGyjjBSx May 20 12:14:13 this is the exception it throws May 20 12:14:47 ok, link problem May 20 12:15:06 http://stackoverflow.com/questions/5108026/android-include-jar-in-ant-compilation May 20 12:19:24 odd May 20 12:19:28 I have a libs dir May 20 12:19:34 which contains a .so May 20 12:19:58 let me check something out May 20 12:20:02 .so is ndk so it will be different May 20 12:21:25 http://code.google.com/p/bullet/downloads/list is the project page btw May 20 12:22:04 it's not libs/armeabi May 20 12:22:06 it's just in libs? May 20 12:22:32 yes May 20 12:22:48 I have a strange bug. I call edit() and commit() on a sharedprefs that works May 20 12:23:03 If I do it a second time the changes are not written to disk May 20 12:23:15 anyone had this strange behaviour? May 20 12:23:21 belgianguy: you have a jni/ dir? whats in there May 20 12:23:59 readme: yes, Android.mk and Application.mk May 20 12:24:18 When set the indicator for a tab using the following code 'specs.setIndicator("Tab 1");' it doesn't style the text...does anyone know how I can style the text? May 20 12:25:49 I'm using NDK r8 btw May 20 12:26:10 there is r8 now? May 20 12:26:50 android-ndk-r8-darwin-x86.tar.bz2 May 20 12:27:40 oh mips support May 20 12:32:06 so dumb, I had to use an environment var with "CYGWIN" In the name to build on unix. May 20 12:32:16 readme: yeah May 20 12:32:22 that took me hours :( May 20 12:32:36 I had to hardcode the dir because it wouldn't find it May 20 12:32:38 you should submit a patch for the readme May 20 12:33:20 and down the line I had to change the android dir in local.properties May 20 12:33:44 it has a Windows dir in it, while I'm on Ubuntu May 20 12:34:43 hmm May 20 12:34:56 yep, it does May 20 12:35:26 I fixed it instead with android update project May 20 12:35:45 yeah, so did I, but then I'm stuck May 20 12:35:52 my target was 2.3.3 May 20 12:36:27 android update project --target 1 --path ../PfxApp_1_Simple May 20 12:36:48 The following error occurred while executing this line: May 20 12:36:48 /home/tom/Tools/android-sdk-linux/tools/ant/pre_setup.xml:4: Your build.xml file is outdated. Delete it and regenerate it with 'android update project' May 20 12:36:51 any idea abotu that May 20 12:37:00 I just ran it... May 20 12:37:03 about* May 20 12:37:32 I deleted build.xml and made android update regenerate it May 20 12:37:57 ok, building now... lets see if I have any better luck than you did May 20 12:38:32 yeah, mine is working May 20 12:38:38 what tools do you use? May 20 12:39:00 same as you, but I set my target to target=Google Inc.:Google APIs:15 May 20 12:39:21 I'm wondering if maybe the NDK is doing funny things with your target May 20 12:39:33 you have r8 as well? May 20 12:39:34 you did of course, run ndk-build in the project directory first before anything as well.. not just in the lib? May 20 12:39:52 yes, I followed the readme May 20 12:39:54 oh nope. I've got r7c May 20 12:40:14 but just to be sure, tell me where you started May 20 12:40:54 I checked out the latest from SVN May 20 12:41:12 found the README android file, compile the library according to instructions and made the CYGWIN var May 20 12:41:20 then I went into the first PfxApp May 20 12:41:38 I ran ndk-build && android update project --target 29 --path . (29 corresponds to api level 15 on my system) May 20 12:41:45 then ant debug May 20 12:41:58 and I installed bin/PfxApp_1_Simple-debug.apk May 20 12:42:00 and it works May 20 12:42:16 how do you install it? May 20 12:42:25 ant debug install? May 20 12:42:29 adb install PfxApp_1_Simple-debug.apk May 20 12:42:32 that's how I did it, anyway. May 20 12:42:47 k, that all seems logical, no idea what I did wrong May 20 12:43:02 perhaps my target is too low? May 20 12:43:12 eg 2.3.3 is not good enough May 20 12:43:18 (API 10) May 20 12:44:59 i think it is worth it to try on a higher target May 20 12:46:10 does it work in the emulator btw? May 20 12:51:23 readme: did you test it on your phone or on the emulator? May 20 12:53:18 Anyone using motodev that cna answer me why *I get this error http://dl.dropbox.com/u/19153690/eclipse.png ? May 20 12:55:06 omg then I remove import android.R; the nit works May 20 12:55:18 * Mech0z dont understand java/eclipse May 20 12:55:29 it is normal java May 20 12:55:48 if you import android.R it overrides the default R which is in your package space May 20 12:56:13 use no import android.R but excplicilty use android.R.xx in your source code May 20 13:01:10 plaisthos it just suggested that I imported it May 20 13:08:20 Did someone use this ? http://simple.sourceforge.net May 20 13:08:37 belgianguy: device. May 20 13:09:05 ah, seems they work on the emulator as well :) May 20 13:09:12 at least in 4.0. May 20 13:09:14 3 May 20 13:10:00 what's the cleanest way now to try and generate one for 2.3.3 without creating clutter? May 20 13:12:22 not sure what you mean May 20 13:12:38 now I want to try and rebuild it for my actual phone May 20 13:12:45 who sadly only runs 2.3.7 May 20 13:12:56 I have no idea May 20 13:13:06 I think you might wanna try, downgrading the ndk May 20 13:13:25 if it were possible to output to different dirs per platform I guess May 20 13:13:30 also building against 4.0 doesn't mean the apk won't run on 2.3 May 20 13:13:53 btw, that patch I should submit, what should it consist of? May 20 13:13:54 just set targetSdkVersion="15" and minSdkVersion="8" May 20 13:14:13 changes to the readme file that address the frustrations we faced when compiling May 20 13:14:19 that Cygwin var? May 20 13:14:22 yeah ;) May 20 13:14:27 up to you May 20 13:14:31 I'm just throwing out ideas. May 20 13:14:39 I will, but I'm not the biggest pro May 20 13:14:47 yeah.. you don't need to be May 20 13:14:47 would not want it to be wrong :p May 20 13:15:18 and revise the instructions on update project and the deprecation of ant compile? May 20 13:15:23 phrase it in a way that doesn't declare that you think you're right May 20 13:15:32 "Here's this patch. I don't know how x works but maybe this is right? May 20 13:16:24 I just realized I don't know how to submit a patch May 20 13:16:31 I was thinking mailing the author May 20 13:16:45 that's about as good May 20 13:17:49 Hi I'm trying to install drivers to test using a devices - it keeps telling me that it cannot find the drivers for the device despite the usb drivers being installed - fix? May 20 13:18:21 readme: how would I submit a patch? just check the file out and edit it and commit it? May 20 13:19:18 I might as well learn how to do it May 20 13:19:43 you can make them with diff file1 fil2 May 20 13:19:50 where file2 is the new version, and file1 is the old May 20 13:20:05 you can also http://ariejan.net/2007/07/03/how-to-create-and-apply-a-patch-with-subversion/ May 20 13:22:06 readme: thanks, I'll try to do that May 20 13:25:13 readme: how did you reference the cygwin var btw? May 20 13:25:25 what is the proper way to do that? (I hardcoded the string) May 20 13:25:41 but I had it set up in my ~/.profile May 20 13:25:53 but for some reason the makefile did not see it May 20 13:25:57 I just set it in my environment May 20 13:25:59 and it was seen May 20 13:26:45 no code change neccessary? May 20 13:26:48 export BULLET_PFX_ROOT_CYGWIN="/home/tom/bullet/bullet-read-only/Extras/PhysicsEffects" May 20 13:26:53 that's what I did May 20 13:26:56 touched nothing else May 20 13:27:04 the main problem here is that it's called "CYGWIN" May 20 13:27:16 true, it's a misnomer May 20 13:27:19 so I expected I didn't need it the first time I tried May 20 13:37:31 test May 20 13:38:22 hello im new with android dev, and im makeing a app for school project, and i have a problem, so please pm me May 20 13:38:45 lolnope.jpg May 20 13:38:45 sNap0000, I think it would be preferred by everyone if you state your question in the channel May 20 13:38:53 okeej May 20 13:38:56 sec May 20 13:39:02 http://stackoverflow.com/questions/8696025/how-to-move-a-image-across-the-screen-on-android May 20 13:39:08 i have the same question... May 20 13:39:39 the answers look like they may be of use May 20 13:43:32 i looked all of them, but cant get it to work, it moves the imageview but it disappears May 20 13:44:01 when does it disappear? show some code? May 20 13:44:14 so i tought it moves it to far away, out of screen, and i put nextInt(10) for random, and its moving slowly May 20 13:44:22 and disappearing too May 20 13:45:13 and im realy new to this+ my english isn't that good so excuse me May 20 13:46:54 wait ill do some screenshots May 20 13:49:43 okeey May 20 13:49:44 http://shrani.si/f/2D/R9/3Ns1wvJc/bla1.jpg May 20 13:50:12 thats the latest code i tryed from a forum i found.. May 20 13:50:15 oh you... May 20 13:54:06 what :?, anyone have some clue? May 20 14:11:27 guys except Andriod 4.0 face recognition are there other build in computer vision capabilities in android sdk? May 20 14:14:24 anyone from slovenia here? May 20 14:17:53 sNap0000: it looks like you only translate the view with positive values. if you want it to shake you should have some negative values in there as well? May 20 14:18:42 sNap0000: and you might want to have some limits on how far you translate it, so it doesn't end up outside the screen May 20 14:21:25 Hi, is this the proper way to define permissions http://pastebin.com/GNKQsyi9? I keep getting 08-21 11:39:16.044: E/AndroidRuntime(1016): java.lang.SecurityException: Need BLUETOOTH_ADMIN permission: Neither user 10048 nor current process has android.permission.BLUETOOTH_ADMIN. May 20 14:22:47 apparently yo need BLUETOOTH_ADMIN May 20 14:23:17 those are different May 20 14:23:21 RTFM May 20 14:23:28 http://developer.android.com/reference/android/bluetooth/package-summary.html May 20 14:26:06 #android-derp May 20 14:29:17 Snuffel, thanks - blonde moment. May 20 14:29:41 readme, ha ha May 20 14:34:38 wtf is derp May 20 14:35:08 herp derp May 20 14:35:39 tors, thanks for that info, but if i try to set -10 it forcecloses my app May 20 14:36:06 and how can i set limits how far can the image go May 20 14:37:26 sNap0000: currentX = currentX + 10; if(currentX > MAX_X) { currentX = MAX_X; }; May 20 14:38:08 I have a string String s = "/mnt/sdcard/abcd.jpg" (This is a filepath as you see). I need to extract the filename "abcd.jpg" from that string. Is there any standard file path string handling methods available in Java? :) May 20 14:39:25 'm sorry what's the plus of using DialogFragments? May 20 14:39:37 napster: http://developer.android.com/reference/java/io/File.html May 20 14:39:58 tors: ty May 20 14:40:15 napster: you may want to check out Context.getFilesDir() and Environment.getExternalStorageDir() et al. May 20 14:40:26 ok May 20 14:43:23 Anyone knows how to hide the "title" from a DialogFragment May 20 14:43:24 ? May 20 14:46:01 guys except Andriod 4.0 face recognition are there other build in computer vision capabilities in android sdk? May 20 15:02:12 hi, how can i use my own dns server to resolve hostnames in an app? May 20 15:05:27 snuy: dnsjava? May 20 15:08:47 readme, http://www.itcsolutions.eu/2010/12/29/tutorial-java-6-4-2-how-to-copy-values-of-an-array-into-another-array/ May 20 15:08:49 but that will circumvent the normal dns workflow of android, right? May 20 15:08:50 i understand now :) May 20 15:10:11 isn't that the point, snuy ? May 20 15:10:17 to avoid using the system DNS servers May 20 15:11:00 i want to avoid using the system dns servers but use the systems dns implementation May 20 15:12:04 that's not possible as far as I'm aware May 20 15:16:54 guys except Andriod 4.0 face recognition are there other build in computer vision capabilities in android sdk? May 20 15:19:04 am I connected? May 20 15:19:10 can anyone see this? May 20 15:19:14 no May 20 15:19:20 kk ty :P May 20 15:19:26 Im having some wierdness May 20 15:19:30 hm? May 20 15:19:47 my IRC client is acting up May 20 15:19:51 ahh May 20 15:20:09 also I'm pretty weird too May 20 16:09:53 I'm creating my first relative layout and I notice that there can be layout settings that are somewhat redunddant...does that sound right? Is there a "best practice" ? should I use the least information I can or be as specific as I can? May 20 16:10:59 let me know if my question is not making sense...im n00b May 20 16:12:53 for example if I say an item is below one thing, should I put that it is above the next thing when that thing already says it's below the other thing May 20 16:13:21 Thing A is above B, B is belowA, B is above C, C is below B May 20 16:14:13 hi there May 20 16:14:22 hi May 20 16:14:49 can anybody give me an example how to use SearchViewCompat from the support v4 library? May 20 16:15:08 * GeeksOnHugs is n00b May 20 16:16:15 I don't know if anyone is aroiund beppo, my question hasn't been answered either May 20 16:16:27 I think I'll try stackoverflow May 20 16:16:48 woohoo, i just learned to be shufflin'... off to the club. catch you guys later. May 20 16:17:50 it is sunday... this may take some time May 20 16:18:12 No, GeeksOnHugs .. Don't do that May 20 16:18:23 hi SimonVT May 20 16:18:39 so do the minimum necessary? May 20 16:19:06 anyone able to help me with installing ics? May 20 16:19:42 or were you saying no don't ask on stack overflow? lol May 20 16:19:47 Your example will probably crash due to circular May 20 16:19:51 dependencies May 20 16:19:53 Oh, OK May 20 16:20:00 so the compiler enforces it May 20 16:20:16 Probably enforced at runtime May 20 16:20:19 Anyway, it's redundant May 20 16:20:21 but am I correct in that there are multiple ways to describe it? Or is there one correct way? May 20 16:20:37 There are however many ways you like May 20 16:20:40 ah kk...run time...that's worse hehe May 20 16:20:44 You usually start with 1 base view May 20 16:20:47 Then build from there May 20 16:21:04 meaning...top down? May 20 16:21:10 If you like May 20 16:21:18 Do what seems the easiest May 20 16:21:45 OK...thank you May 20 16:22:53 the UI design for android seemed very confusing but I'm starting to see the power of doing it this way May 20 16:23:25 It's not that hard May 20 16:24:13 well I've not done much web development ... coming from Delphi it seems foreign, but I'm quickly getting the hang of it May 20 16:25:22 * GeeksOnHugs thanks SimonVT and dives back into his code May 20 16:38:01 can anybody give me an example how to use SearchViewCompat from the support v4 library? May 20 16:39:47 hey guys May 20 16:40:08 hi May 20 16:40:18 how can i put textview or just text in java class May 20 16:40:23 if its possible May 20 16:41:05 before i was using xml files, for menu and i just grab and drop on the screen May 20 16:41:33 now i needed to create a class with extends View, so i could use canvas for moving picture May 20 16:41:50 and i would like to display a score if some click that picture... May 20 16:42:00 or its impossible :D? May 20 17:20:20 sNap0000: TextView text = new TextView(this); text.setText("Hello, World!"); setContentView(text); May 20 17:26:32 readme, does it work without LayoutParams? I think the app will crash this way. May 20 17:27:15 crack3r: it works May 20 17:27:52 oh ok May 20 17:28:05 although I'm now curious of what happens when you don't specify the layout params May 20 17:28:12 if it uses defaults, or something May 20 17:29:26 could be specific to setContentView May 20 17:35:59 hm. apparently not May 20 17:36:11 did you trace it all the way back to where the window is created? May 20 17:36:17 I'm looking in PolicyManager currently May 20 17:36:22 next stop is Policy.java May 20 17:36:41 no, I just tried adding a TextView with addChild, and it worked May 20 17:37:07 ah interesting May 20 17:42:26 Not really :p LayoutParams are required. If none are present, they are generated May 20 17:42:27 yeah I just looked at ViewGroup.java addView(View) May 20 17:42:34 it alls generateDefaultLayoutParams() May 20 17:42:47 guys except Andriod 4.0 face recognition are there other build in computer vision capabilities in android sdk? May 20 17:42:51 In the case of setcontentview, they are forced to match parent even if they are set on the View you pass May 20 17:44:03 Trudko: none that I know of May 20 17:45:08 lesliel hmm I am also counting Color and maybe even Bitmap May 20 17:45:55 I guess it depends what you're looking for it to do May 20 17:49:01 leslie, I am doing more general reseach but BitMap and color has some method which can help with image processing wchich can be take as part of computer vision May 20 17:50:10 you can use them to make something that does computer vision, yeah, but I wouldn't put them in the same league as the face recognition stuff, which does something for you and returns the result. May 20 17:51:32 leslie, but that definition how is it different from Color which take some pixel and returnthe color?(in hsv, rgb value) May 20 17:51:55 face detection is complex, I guess May 20 18:05:08 leslie, heh yeah :) also camera API May 20 18:05:14 could be counted... May 20 18:05:33 hi May 20 18:07:00 ContentProviderSchedule May 20 18:07:05 oops - sorry May 20 18:14:08 any suggestions for a good ICS dev phone? May 20 18:14:39 galaxy nexus May 20 18:16:40 MDijkstra: is it available outside the US? May 20 18:24:53 belgianguy: yes, even more than in USA I'd say May 20 18:29:47 hmm i found this rather nice diagram of Android Camera but it seems that something is missing or I dont really understand the purpose of it any ideas? http://imageshack.us/photo/my-images/585/cameraandroid.png/ May 20 18:30:28 thats like a flow diagram May 20 18:31:13 sequence diagram May 20 18:31:37 http://en.wikipedia.org/wiki/Sequence_diagram May 20 18:32:23 yeah it is but I am more interested about content rather then form May 20 19:04:26 Hey guys, trying to make it so the screen shows a listview of items. I followed the code on the android developers site but have managed to screw it up.. The android app crashes and in the logcat I have: "You must supply a resource ID for a TextView".. My code is here: http://pastebin.com/2vhKMr8x Any ideas? May 20 19:06:06 have you tried providing a resource for a TextView for it to display the data? May 20 19:07:08 within the searchall.xml ? It's only got a listview tag, would the textview resource need to be nested? or separate? May 20 19:07:27 hmm i found this rather nice diagram of Android Camera but it seems that something is missing or I dont really understand the purpose of it any ideas? http://imageshack.us/photo/my-images/585/cameraandroid.png/ May 20 19:08:02 Timmaah1201 wait... you put a listview inside your layout for your listview to display? May 20 19:08:24 ya.. im a massive newbie with this :( May 20 19:08:36 it did seem a bit convoluted May 20 19:08:37 Inception -_- May 20 19:08:47 you did not follow the listview tutorial very well May 20 19:09:03 ah.. ive seen my mistake May 20 19:09:05 right at the top.. May 20 19:09:09 of the tutorial.. :$ May 20 19:09:13 * Timmaah1201 hides in corner May 20 19:11:26 ok.. so ive replaced the lsitview for a textview but its still crashing.. runtimeexception_ unable to start activity componentinfo May 20 19:11:29 is this the channel for mobile droid app development? May 20 19:15:04 Yes May 20 19:15:19 Timmaah1201 did you put your activity in your manifest? May 20 19:15:43 does an App have the permissions to download a class file from the net, or disk, and instanciate it? Like with a Class.forName() ? May 20 19:17:28 That sounds very malware-esque May 20 19:17:33 t0mless, yep. I tested it without trying the listview and it opened the new screen fine. Do I not need to have a listview tag defined somewhere? May 20 19:17:51 not for a listactivity I don't think May 20 19:18:03 it should default to just a listview set to fill parent May 20 19:18:14 Timmaah1201 pastebin your whole exceptoin May 20 19:18:17 exeption May 20 19:19:41 aaah worked May 20 19:19:58 i was putting the list_item.xml stuff in the activeScreen.xml, once I split them it worked May 20 19:19:59 Timmaah1201: do you have a reason for call setContentView on your ListActivity? May 20 19:21:01 thought I needed it, but I'm guessing I don't May 20 19:21:15 you should take the time to learn why May 20 19:21:35 do you know what that method does? May 20 19:21:54 honestly, nope May 20 19:21:57 t0mless, it does sound malwarey. someone asked me about it, and i don't know. May 20 19:22:10 http://stackoverflow.com/questions/3022454/how-to-load-a-java-class-dynamically-on-android-dalvik May 20 19:22:12 Timmaah1201: why not start with a hello world activity instead of a list? May 20 19:22:29 I have done May 20 19:22:44 so you did that, but did actually learn what the code was doing? May 20 19:22:47 didn't May 20 19:23:04 I'll have a look at what it does now, thanks May 20 19:25:43 How come some apps in play do not let me leave a rating or feedback? May 20 19:28:03 not sure I havent been on google play yet is there any options in the developer screen to make it rated? May 20 19:28:27 all apps are rated May 20 19:28:39 but you might not be able to leave a rating if you never installed the app May 20 19:30:15 I did install just to test that theory, there are ratings posted but for some reason for some apps i can only read feedback not leave any May 20 19:31:50 like which app? May 20 19:32:31 Its an airpush app called overclockwidget that is doing this atm, ive seen this lots of times tho with diff apps. No way to rate or leave feedback May 20 19:33:08 https://play.google.com/store/apps/details?id=org.freecoder.widgets.overclock&feature=search_result#?t=W251bGwsMSwxLDEsIm9yZy5mcmVlY29kZXIud2lkZ2V0cy5vdmVyY2xvY2siXQ.. May 20 19:33:10 that one? May 20 19:33:31 I looked at an app i never installed and i had the option to leave feedback for it so i can for some apps May 20 19:33:51 Yes, that one May 20 19:34:33 and what does it say when you click "Write a Review" May 20 19:34:59 There is no click for that anywhere May 20 19:35:15 That field is missing May 20 19:35:56 Really? May 20 19:36:01 should be right there at the top May 20 19:36:09 Description. Whats new. Reviews. No write review May 20 19:36:50 and you installed the app from the Play Store May 20 19:36:51 ? May 20 19:37:50 Installed, scanned, uninstall due to air push. Went to leave -5 stars and a negative review May 20 19:38:33 looks like you can turn off the airpush, but if you don't have it installed it won't let you write a review May 20 19:39:16 I reinstalled later to test that. Even with it installed i cant review. May 20 19:40:38 And option to opt out of air push does not mean it gets a rave review. If it was off and allowed opt in i would still leave negative feedback May 20 19:41:31 perhaps you should contact google support May 20 19:41:45 Notification area is for IMPORTANT shit. Not spam from whore-ware May 20 19:41:47 hiya all, i'm trying to write an OpenGL app, and i've got a basic cube working. my question is the GLSurfaceView.Renderer has callback member functions that pass in a GL10 object. I however want to use the static OpenGL from android.opengl.GLES20 May 20 19:42:02 even without the app installed, the button to write the review should be right there next to the User Reviews title May 20 19:42:10 can i ignore the GL10 object being passed into these callbacks? May 20 19:42:21 Google support never helped me with any of the other a May 20 19:42:35 Play issues i had May 20 19:42:53 also, this is probably a conversation for #android May 20 19:43:01 as it's not app development topic May 20 19:43:16 Like not being able to leave a rating or feedback in play itself May 20 19:43:22 Younos yes May 20 19:43:38 Younos just make sure the device supports open GL2.0 May 20 19:44:21 i'm coding against api 8 which should be the first version that has it, and i'll put something in the manifest to indicate es2.0 May 20 19:44:24 #android is an inqctive channel filled with ppl more clueless than me. This chan is populated by ppl with a clue lol May 20 19:44:36 ty, I440r May 20 19:45:19 I440r doesn't change the fact that it's not an app dev topic May 20 19:46:02 belgianguy: yeah May 20 19:46:06 belgianguy: it is May 20 19:46:53 MDijkstra: yeah, goes for 499 €, but that was to be expected May 20 19:55:28 wait, what -- zuckerberg married an asian? May 20 19:55:34 * pragma- falls down laughing. May 20 19:56:49 ? May 20 19:58:39 wth May 20 19:59:35 Yea May 20 19:59:41 same week facebook went ipo May 20 20:04:25 this code, http://pastie.org/3941475 is running perfectly except for line 159 May 20 20:04:54 I need an architecture advice: I have a bunch of API calls to a web server (REST). Currently every REST method is implemented as an AsyncTask. Since there a terrible problems with configuration changes I've decided to move this to IntentService. My question is: Shall I create one IntentService that dispatches the methods for the whole resource? Or shall I implement a bunch of IntentServices like i did with AsyncTasks? May 20 20:05:15 everything gets output as it should and refreshes (the commands are executed again, fetched and then output to the screen) as it should - everytime, except for that hostname command which sometimes shows up and sometimes doesn't May 20 20:05:33 out of every 5 times I run it (or do refresh) in that activity, hostname output shows 2 times May 20 20:08:56 sebastiandeutsch: intent service May 20 20:09:05 it was demonstrate in google io 2010 May 20 20:09:43 so what if he married an asian May 20 20:09:52 why is he being discussed on IRC even May 20 20:10:28 sebastiandeutsch: http://www.google.com/events/io/2010/sessions/developing-RESTful-android-apps.html May 20 20:10:42 ixc: Ok cool I see, thank you May 20 20:16:12 hello May 20 20:17:59 sebastiandeutsch: but if the data that u fetch only for show in ui, not for store, etc; async task good May 20 20:18:10 but async tasks only alive till activity May 20 20:18:29 ixc: Yeah I've experienced that the hard way ;-( May 20 20:19:20 ixc: I'm now thinking on how to arrange my classes, i.e. 1 IntentService wrapping 10 methods vs. 10 IntentServices. May 20 20:20:41 you can make an asynctask that doesn't suck May 20 20:20:48 using callback interfaces May 20 20:21:09 sebastiandeutsch: your intentservice will serialize all the requests coming into it May 20 20:21:17 This I hope will be very basic for someone. I am reverse engineering a dock port (i'm a hardware/electronics guy, not software), and I need to silence the external speaker on a phone because the dock port audio out is on the same line as the headset jack. Whenever a headset is plugged in, the content of 'state' in /sys/devices/virtual/switch/h2w changes from 0 to 2, and a class com.android.server.HeadsetObserver sends a May 20 20:21:18 broadcast intent that h2w has changed states, and a bunch of other stuff happens that (ultimately) turns off the external speaker May 20 20:21:20 which can be a good or a bad thing depending on your goal May 20 20:21:30 one intentservice will allow you to utilize the queue it has built in sebastiandeutsch May 20 20:21:30 async task is nice, but need use for activity depend things May 20 20:21:37 unless you want more than one call happening at a time May 20 20:21:57 what i want is a basic app to just send that broadcast intent to toggle the external speaker May 20 20:22:19 t0mless: Ahhh that's the hint that I needed May 20 20:22:59 sorry if that's a little convoluted, but i'm not that familiar with android development unfortunately May 20 20:24:26 t0mless: ixc: billjings: thank you May 20 20:24:57 but it seems like it would have to be pretty basic. The intent has some basic info, including the state of h2w and mic (0 or 1 depending on whether the headset has a microphone) May 20 20:25:03 I definitely recommend having a helper class in addition to your intentservice(s), btw May 20 20:25:47 since intentservice will tend to come and go as work is done May 20 20:26:08 that link ixc gave you goes into more detail May 20 20:27:20 anyone able to help with this little project? May 20 20:28:06 billjings: I'm watching it right now, great resource. Do you know any (open source) code that is implementing such a mechanism where I can take a peep? May 20 20:28:46 i don't offhand, sorry. May 20 20:41:47 is there a simple way to provide listview with section headers ? or i need to handle that by myself ? May 20 20:49:10 any reason why this wouldnt work? May 20 20:49:10 super.onDraw(canvas); May 20 20:49:10 long time = System.currentTimeMillis(); May 20 20:49:10 canvas.drawText("A"+Long.toString(1000/(time - mLastUpdateTime)), 0, 0, mPaint); May 20 20:49:10 mLastUpdateTime = time; May 20 20:49:33 (it is meant to draw the fps of the drawing) May 20 20:51:56 for some reason there is no text shoing up at all May 20 20:52:37 nebkat: it might not be in its bounds May 20 20:52:57 aqu: which bounds? May 20 20:53:49 i dunno you'd have to specify the x,y coordinates where you want to draw it maybe? May 20 20:54:36 Younos: I treid 100,100 May 20 20:54:39 still nothing May 20 20:57:03 aqu: check out a few postings on cyril mot tier's blog May 20 20:57:13 Hi!! May 20 20:57:16 ^^ May 20 20:57:32 I have an android (i love it) May 20 20:57:57 aqu: somewhere in here http://android.cyrilmottier.com/ May 20 20:58:01 And i would try to make an "easy" app, how can i do? May 20 20:58:23 DoctorD90 go read the dev guide at d.android.com May 20 20:59:20 DoctorD90: i got started with installling the SDK with eclipse and then following the hello world tutorial. May 20 20:59:43 http://developer.android.com/sdk/installing.html May 20 21:00:44 Younos, i have a mac "in this moment" May 20 21:01:00 With ubuntu virtual machine, i can use it? May 20 21:01:15 you can use eclipse native in os x May 20 21:01:57 Ah...good...but...it is of my dear dad -.-" ...it is secure? May 20 21:02:19 (for this i use vm as "my" host on that pc xP) May 20 21:02:47 wut? May 20 21:03:02 you dad doesn't want you installing stuff or something? May 20 21:03:11 Yea .... May 20 21:03:13 and what do you mean secure? May 20 21:03:16 -.-" May 20 21:03:18 i'm using linux on my laptop and that makes me happy, but if you have vmware fusion? i guess you could do it May 20 21:03:38 eclipse is java based, so it's cross platform May 20 21:03:55 you need a virtual machine that can handle usb so you can use usb debugging to get your app running on the android device May 20 21:04:34 T0m, secure = if i set bad variable for my noob in java thing, i mustnt reinstalling all os May 20 21:04:56 ... May 20 21:05:09 haha May 20 21:05:10 java would *never* screw up your host system o.O May 20 21:05:12 Mac os vm= virtual box oracle...it is free and good May 20 21:05:29 if that's your definition of secure May 20 21:05:33 then yes, it's secure May 20 21:05:37 I repeat: im noob in java, i dont know it May 20 21:05:42 its ok :) May 20 21:06:26 you should go do some java tutorials before trying to tackle android May 20 21:07:01 Ehm....well :( May 20 21:07:08 t0mless: +1 May 20 21:07:10 Thx for information May 20 21:07:34 if (javalearned != 1) May 20 21:07:45 { c.println("Learn java.");} May 20 21:08:15 XD May 20 21:08:19 Ahah May 20 21:08:32 Thx for script xD May 20 21:09:09 lol May 20 21:09:12 it's on console too May 20 21:09:13 =3 May 20 21:09:34 textviews confuzzle me. May 20 21:09:54 (loop :with learned-programming = nil :when (not learned-programming) :do (learn programming)) May 20 21:10:06 I need to "edit" pastebin app to pastebin in another site xP ...so i think it will be "easy" May 20 21:12:17 there are also educational video's on android on the developer site, you might want to watch those May 20 21:13:07 Ah good May 20 21:13:15 and here is a link for total beginners with java itself (and eclispe) May 20 21:13:18 http://eclipsetutorial.sourceforge.net/totalbeginner.html May 20 21:13:21 Im chatting now from android xD May 20 21:13:33 my android is walking my dog May 20 21:13:39 requesting links to said videos about android on dev site May 20 21:14:21 click on 'Videos' at http://developer.android.com/ May 20 21:14:26 i learn much better with videos May 20 21:14:40 yes, video's do that for me too May 20 21:14:40 how did i not see this? I only saw one of the GoogleIO vids for listview on youtube May 20 21:15:00 they're mostly IO videos May 20 21:15:06 it was so obvious that I didn't see it May 20 21:15:06 lol May 20 21:15:11 Im from gps connection, i cant xD i havent a flat, i will wait to use wifi May 20 21:15:16 also, all of I/O videos are hosted by google May 20 21:15:17 today's gonna be a movie day! :) android IO May 20 21:15:31 I think if you do like google.com/io/2011 May 20 21:15:53 oops May 20 21:15:57 google.com/events/io/2011 May 20 21:16:06 or 2010 May 20 21:16:20 or 2009 May 20 21:16:24 or... you get the picture May 20 21:16:54 Sorry for noob about....but...i remember bad, or eclipse is an os 0o May 20 21:17:09 ... May 20 21:17:12 would anyone mind helping me figure out SimonVT's numberpicker? i'm really stuck trying to resize parts of its UI May 20 21:17:17 Where are you from DoctorD90 May 20 21:17:31 i started with the three 2008 I/O talks, found them good and basic May 20 21:17:34 hesperaux why do you think you can resize it? May 20 21:17:42 eheheh. May 20 21:17:52 i think that i can because i want to :P May 20 21:17:52 I'm getting an error in Log but there isn't a corresponding process, I thought about setting a breakpoint but I cannot figure to what vm I should attach May 20 21:17:57 Italy.....SORRY FOR MY VERY^(!n) ENGLISH!!!!! May 20 21:18:00 https://gist.github.com/2759557 and http://d.pr/i/LRrK May 20 21:18:01 i wanna make it good deal smaller May 20 21:18:08 o.O May 20 21:18:17 DoctorD90 Eclipse is an IDE, it's not an OS May 20 21:18:31 DoctorD90: you shouldn't yell anyway May 20 21:18:42 DoctorD90: programming android is not like playing tetris, it takes time and commitment May 20 21:18:47 lol May 20 21:18:57 DoctorD90: your english is very ^(!n) May 20 21:18:58 Ok, i remember bad May 20 21:19:22 so it's like bonsai care, or lake fishing May 20 21:19:41 or raging on a daily basis and pounding your brain against the problem until it is solved May 20 21:19:43 lake fishing is easy with dynamite May 20 21:19:43 hehe May 20 21:19:53 Younos, i love programminh ^^ May 20 21:20:08 what languages do you know already, DoctorD90 ? May 20 21:20:14 blabbering apart, is there a way to inspect that QCvdec Log.e() ? May 20 21:20:14 not english! May 20 21:20:15 I come for tcl/eggdrop experence ^^ May 20 21:20:42 lol May 20 21:20:45 that's not programming May 20 21:20:47 wasn't eggdrop an IRC bot? May 20 21:20:47 that's scripting May 20 21:20:50 yes May 20 21:20:52 lol May 20 21:20:55 IRC script May 20 21:20:58 well that's sstill programming May 20 21:21:03 even LOGO was May 20 21:21:03 i have chmod experience, that why i am teh unix guru ^.^ May 20 21:21:08 Html (yea xD not it xD), batch/dos, eggdrop's tcl...stop xD May 20 21:21:13 t0mless: so, python is not programming? May 20 21:21:23 perl? bash? May 20 21:21:28 Scripting! May 20 21:21:51 javascript? May 20 21:21:54 Scripting! May 20 21:21:55 bf May 20 21:21:59 I am a pro HTML programmer, btw. May 20 21:22:10 * t0mless is a pro Troll May 20 21:22:11 sarcasm ? May 20 21:22:11 html is scripting May 20 21:22:13 Good u.u May 20 21:22:22 haha May 20 21:22:22 DoctorD90: are you good html programmer? May 20 21:22:25 so t0mless :) May 20 21:22:33 how can I make SimonVT's numberpicker smaller :) May 20 21:22:37 I see this is a bad time for questions… May 20 21:22:56 hesperaux rewrite it to draw it smaller? May 20 21:23:07 i have the files May 20 21:23:08 t0mless: quick question. i am trying to upload my first update to an apk in the market. but i see two apks now in the daveloper console. am i suppose to remove the first one ? May 20 21:23:19 but i can't figure out how the view is sized May 20 21:23:34 Soso....i learn making...i start using that fuc*** programing that use graphic interface and then it writes code for me May 20 21:23:41 there is an XML layout for the view, of course, but nothing is there about size May 20 21:24:07 DoctorD90: good very, more making of learning how to make May 20 21:25:15 well anyway you should start with that interactive video tutorial on simply java itself May 20 21:25:17 DoctorD90: it writes code for you making for that fuc*** noodle soup watch out May 20 21:25:23 I learn "tcl" in this way...now i manage a project about eggdrop and making scripts ^^ ...i love program....even if i program from android phone xD May 20 21:25:36 Yes May 20 21:25:52 then when you finished that, you're ready to take on android itself. and my experience is that programming my phone is one of the most fun things to do May 20 21:25:53 g00s wut? May 20 21:26:00
at each lines, dot, rtc xD May 20 21:26:27 t0mless: i had an initial release of an app. i am doing my first update. i uploaded it, but now two apps are listed. is this normal ? May 20 21:26:41 activate one of the apks May 20 21:26:45 two apks, rather May 20 21:26:47 ^ May 20 21:26:59 obviously, the updated one, and don't forget to update the what's new May 20 21:27:12 and make sure you're not updating the what's now for the old version and then going to activate the new version May 20 21:27:23 * pragma- did that twice now. May 20 21:27:39 t0mless: pragma- ok … once i activated it, the old one went away. thanks very much May 20 21:27:39 I *thought* I activated the new apk, and I went and updated the what's new and clicked 'save' May 20 21:27:58 then I realized that my new apk wasn't activated so I went and activated and forgot about the what's new May 20 21:28:13 so the what's new applied to the old apk and the new apk both :( May 20 21:28:14 lol May 20 21:28:16 ouch May 20 21:28:26 * t0mless needs foodstuffs May 20 21:29:12 the what's new box needs to be added somewhere on the upload apk or activate apk page May 20 21:29:16 seriously. May 20 21:30:31 t0mless: by the way, that graphview library I'm using has some whack math for its drawing and scaling -- fixing a bit of it... May 20 21:30:39 also, adding flinging ability! May 20 21:30:56 t0mless: you find a graphing library yet? rolling your own? May 20 21:31:11 Last year, i try to use a google program to make app, but i could not install that on win xP so i close android life...but since i have this phone, i start to love android u.u May 20 21:32:07 android life is never closed; its process hangs around until the runtime kills it May 20 21:32:21 :) May 20 21:33:45 Lol, Sorry, i mean, "my" android life ^^ May 20 21:35:25 can anyone help with my ddms question? May 20 21:36:38 what is it? May 20 21:36:39 i dunno enough about how adb works really May 20 21:38:00 leslie: I'm getting an error in Log but there isn't a corresponding process, I thought about setting a breakpoint but I cannot figure to what vm I should attach. Check https://gist.github.com/2759557 and http://d.pr/i/LRrK May 20 21:39:38 I would root my baby...i have to go in root chan? May 20 21:39:49 yes May 20 21:40:39 Oky! May 20 21:40:53 pragma- I haven't done anything with it yet -_- May 20 21:41:13 I'm going to just use androidplot for my next release I think May 20 21:41:22 It'd be more useful to show all the messages around the errors. In any case, the process is 143 which is about all I can tell you. Aside, nice how "width" is misspelled. May 20 21:41:53 t0mless: their server sucks, apparently. May 20 21:41:57 NDK question May 20 21:42:00 the issue happens when opening an MP4 video with builtin player, almost all videos are fine but I found a couple that aren't May 20 21:42:04 Are C++ exceptions supported at all? May 20 21:42:11 I noticed the width typo May 20 21:42:18 And if they are, is there anything I need to know about using them? May 20 21:42:38 svm_invictvs: only on later NDK versions, afaik May 20 21:42:44 and then there were still some specifics May 20 21:43:00 anddam: what do you mwN May 20 21:43:01  May 20 21:43:12 pragma- it exploded like a month ago May 20 21:43:13 oops. what do you mean by it has no process? May 20 21:43:19 they've been "working on it" ever since May 20 21:43:22 it could be native code May 20 21:43:23 Goodness. May 20 21:43:28 Yea May 20 21:43:35 I want to move away from that library May 20 21:43:36 leslie: check the second link May 20 21:43:58 but I want to finish the rest of this stuff first May 20 21:43:58 pragma-: surrounding log starting from the filemanager from which I launch the video https://gist.github.com/2759651 May 20 21:44:07 not really useful IMHO May 20 21:45:10 i ditched the builtin video player for MX Player May 20 21:45:19 it does mp4 and everything i threw at it so far May 20 21:45:29 leslie: actually it could be native code, the Tag is from a library in ./hardware/qcom/media/mm-video/qdsp6/vdec May 20 21:46:17 Younos: I got another player as well, but I was curious to set a breakpoint and check what parameter was giving "Unsupported profile, level, or widht, height" May 20 21:46:54 that is I'm not asking to play the video, that can be done with another player, I'm asking because I wanted to investigate the issue and found I didn't know how May 20 21:47:10 oh ok, right May 20 21:47:58 I know the IRC trend is to propose a solution for the real problem rather than the purported one, but I'm asking for tha sake of knowledge May 20 21:48:05 s/tha/the/ May 20 21:48:33 hehe you did read the d.android.com page on ddms? May 20 21:49:08 http://developer.android.com/guide/developing/debugging/ddms.html May 20 21:49:22 its all way more than i've ever done with the debugger May 20 21:49:44 btw I noticed I could attach jdb to application even to application in production (e.g. Twitter) that as debuggable:false in manifest, what's the difference in setting it to true or false? May 20 21:49:59 Younos: yes I did May 20 21:50:59 not all manifest parameters are listened to, i read somewhere. appearantly debuggable:false is one of them :) cool :) May 20 21:51:03 actually I think leslie is right, I was assuming all log messages came from Application Framework May 20 21:51:20 \o/ May 20 21:51:38 I didn't think it could just be native code like an supposed hw accelerated library May 20 21:51:43 s/an/a/ May 20 21:53:51 thanks all May 20 22:11:18 Younos do you know a irc client app that allow dcc or ctcp sessions? May 20 22:16:16 pfn, didn't you make an android irc client? May 20 22:17:32 so fragments are little mini self-contained 'activities' living within a host activity and can be reused in multiple hosts -- for lack of a better definition, sound right? May 20 22:17:32 Im using one May 20 22:17:51 hello, is there a way for me to install an SSL certificate using adb? May 20 22:17:59 b1n0ry|shufflin fragments are really just an elaborated ViewGroup May 20 22:18:37 ok... so on to learn what a 'ViewGroup' is... May 20 22:19:06 A collection of views laid out in a specific way May 20 22:20:20 t0mless, why would i need multiple views laid out like that? can't i just use a layout and put everything in that? May 20 22:20:21 really, fragments are meant to provide useful implemntation of a reusable group of views May 20 22:20:31 Yes, you can May 20 22:20:45 is it a preference issue? May 20 22:20:45 but if it's something you're going to reuse, it should be a fragment May 20 22:21:01 like having it be single pane on phones and dual pane on tablets May 20 22:21:03 type of thing May 20 22:21:10 or for tabs May 20 22:21:12 or viewpagers May 20 22:21:54 that single pane dual pane thing confuses me a bit. when i look at the android docs on that, they show a phone with two activites and a tablet with one... May 20 22:22:22 does that mean that the primary activity would have to have duplicate code? to be able to do, functionally, the same thing as the second? May 20 22:22:50 nope May 20 22:22:58 first activity places fragment A in it May 20 22:23:05 second activity places fragment B in it May 20 22:23:14 tablet activity places fragment A next to fragment B May 20 22:23:28 and all of the code is contained within the fragment, except for the obvious layout stuff... May 20 22:23:38 the layout stuff would be in the fragment May 20 22:23:54 not the 'offical' term layout... May 20 22:23:57 really only code needed in that example is the code to place the fragments in the activity May 20 22:24:04 the orientation stuff... May 20 22:24:12 yeah, that's what i meant May 20 22:24:16 yea May 20 22:24:20 i used a loose definition of 'layout' May 20 22:24:37 you could also have your main activity detect if it's dual pane or signle pane May 20 22:24:42 the code that says 'frag a' is on the left half of the screen, frag b is on the right... May 20 22:24:43 Ok I know this is a real newb question but in the layout I can layout my page how do I define other pages? Like say user clicks icon1 on page1 and it goes to page3 or ? May 20 22:24:57 and have it display fragments accorgingly, then if it's single pane, allow it to start the second single pane activity May 20 22:25:21 that way you only have two activities instead of three May 20 22:25:49 Cerrdor first, stop thinking of android as HTML with webpages May 20 22:25:57 i think i somewhat understand. still murky. i'm sure once i start doing it a bit, i'll understand better. May 20 22:25:59 k May 20 22:26:05 but you can layout a "screen" with another layout file May 20 22:26:21 such as a tablet/landscape view May 20 22:26:25 e... layout May 20 22:26:35 and is that how the app will be controlled by referencing the screens with actions? May 20 22:26:46 depends on how you code it May 20 22:26:53 you could have seperate activities for each screen May 20 22:27:02 or you can swap out fragments to replace groups of views May 20 22:27:28 Im basicly tring to work on something like a web app that will access a page and will have icons on it that lead to subpages May 20 22:27:46 am I on the right track with layout / actions or am I totally amiss here lol May 20 22:28:00 ish May 20 22:28:08 sweet May 20 22:28:29 You can have your main page with your layout and have the clicks send Intents to start new activites for your "subpages" May 20 22:28:39 it would be much easier to learn if every time i sat in front of a computer i didn't automatically get sleepy May 20 22:28:52 t0mless, yes May 20 22:28:57 been awake fine all day, sat down... now i'm struggling to not nod off... May 20 22:29:04 t0mless, qicr May 20 22:29:23 does it support dcc? May 20 22:30:19 webview cannot be resolved to a type May 20 22:30:33 why do I get that error everytime I type webview? May 20 22:30:42 because You're not typing WebView? May 20 22:30:56 ohhh May 20 22:34:22 also, none of the advice I gave you applies to WebView May 20 22:34:38 because then your are just making your app a limited webbrowser May 20 22:42:11 i've got a list view under another view in a relativelayout May 20 22:42:26 how can I make the listview start after the elements above it, and fill the remainder of the space? May 20 22:44:07 i tried using layout_alignTop and layout_alignBottom set to "bottom of last element" and "bottom of relativelayout" respectively, but that makes it extremely thin cuz the RelativeLayout's height is related to what's inside of it May 20 22:44:10 android:layout_below="@id/idOfYourHeaderView" android:layout_alignParentBottom="true" May 20 22:44:18 ;O May 20 22:44:31 alignParentBottom, okayy May 20 22:44:33 also make the width fill parent May 20 22:44:39 I think it's alignParentBottom May 20 22:45:13 yea May 20 22:45:26 http://developer.android.com/reference/android/widget/RelativeLayout.LayoutParams.html May 20 22:45:54 do i have to use android:layout_height? May 20 22:46:06 cuz that's been set to wrap_content and that's a problem May 20 22:46:28 (for the listview properties) May 20 22:47:10 sigh...yeah i think i have to use it. it throws if i remove that May 20 22:54:22 you can set it to 0 May 20 22:55:58 ok, and then it'll resize as necessary? May 20 22:56:38 ListView isScrolling by default right? May 20 22:57:02 yes, it is a scrolling container May 20 22:57:33 if the container isn't filled, however, i am unable to scroll it as I might do when bored in the system settings May 20 22:57:54 when bored in the system settings? May 20 22:57:56 what? May 20 22:59:09 lol May 20 22:59:22 i like to grab lists and try to get them really far off screen when i'm bored May 20 22:59:44 and i believe i can even do that when the list isn't filled past its extent May 20 23:08:42 on crappy OEM ROMs where the try to mimic iOS you can May 20 23:08:45 like TouchWiz May 20 23:09:23 hmm May 20 23:10:13 you can set that kind of stuff May 20 23:10:19 I think it's called overScroll May 20 23:10:22 JakeWharton: well, the SGS1 touchwiz did. SGS2 didn't May 20 23:10:46 i have a SGS1 May 20 23:10:52 although I don't use TouchWiz May 20 23:14:16 pretty interesting stuff http://www.computerworld.com/s/article/9227222/Smartphone_security_is_heading_for_apocalypse_ May 20 23:14:43 i bet p_l has a portable basestation :) May 20 23:16:59 nope May 20 23:17:18 but I know a bit on getting really secure May 20 23:17:40 wow May 20 23:17:45 epic fail May 20 23:18:06 also, they have the timeline wrong May 20 23:18:20 A5/1 was real-time cracked since at least ~2000 May 20 23:18:20 is there a way to use SSL encryption for all data transfers on a smart phone? via some proxy? May 20 23:18:26 hesperaux: yes May 20 23:18:44 this is about tapping into GSM stream May 20 23:19:03 if you put up a separate security layer, it will work, but then they can detect you're using it May 20 23:19:25 what do you mean? May 20 23:20:01 hesperaux: it's basically the equivalent of cutting your ethernet cable and putting a sniffer box between you and external network May 20 23:20:11 and while illegal, you can modify the baseband to change BTS selection algorithm and do other nifty tricks May 20 23:20:57 android phones are rather lax in protection from modifying baseband, to the point that I sometimes wonder how they pass certification May 20 23:21:26 i understand little about mobile communications, so most of that goes over my head May 20 23:21:51 hesperaux: the "cell" in "cellphone" comes from how the network is arranged May 20 23:22:03 a cell is the area covered by a base station (BTS) May 20 23:22:37 http://techcrunch.com/2012/05/20/how-android-developers-can-thrive-with-google-play/ May 20 23:22:52 hesperaux: those BTSes are linked through separate network (usually point-to-point microwave, as well as ethernet/atm/MPLS/etc) May 20 23:23:15 microwave? really? interesting May 20 23:23:18 hesperaux: this attack is about setting up an unauthorized cell that gets chosen as "preferred" May 20 23:23:31 over physical wires or air? May 20 23:23:57 hesperaux: depends. microwave connections go over air of course (thin beam). May 20 23:24:20 hmm May 20 23:24:32 so if I have the radio equipment, I would be able to pretend I'm a BTS May 20 23:25:15 hesperaux: yes. The new trick on the block is that the equipement to build a small, barely noticed BTS, especially on a UAV, is nowadays cheap and easy to get May 20 23:25:28 beef May 20 23:25:46 before, there were devices which could "listen" to connection if they were in range May 20 23:25:53 i see May 20 23:26:08 impersonating a BTS let's you manipulate the data May 20 23:27:41 for example, screen calls May 20 23:27:53 p_l: you seem to know quite a bit about this stuff. I was just reading this TrendMicro report; they ranked Android last in enterprise security. I'm sure there is a bit of opportunity in this area May 20 23:28:10 but this isn't my area of expertise May 20 23:28:18 i'm just all around paranoid :) May 20 23:28:24 * g00s grabs tinfoil hat May 20 23:29:15 g00s: the real problem with android enterprise security I guess is the still little-capable standardized remote management tools May 20 23:29:53 you can mod the devices you buy, or you can try dealing with competing systems from different manufacturers May 20 23:30:43 device administrators, encrypted devices etc. are good, but some of that is available only on select devices (yay, back to "Y U NO UPDATE"). May 20 23:31:42 they ranked all the mobile OSs in data protection, device management, security certifications, and a whole bunch of other things. no platform did perfectly of course May 20 23:31:53 example of stuff that exists but isn't available through standard APIs - my friend's SGS2 "disappeared" during TSA check. May 20 23:32:15 O.O May 20 23:32:24 a quick call ensured that the phone was *bricked* May 20 23:32:37 fuck those guys May 20 23:32:39 it was already encrypted May 20 23:32:40 t0mless, no, it doesn't do dcc May 20 23:33:01 g00s: well, that's the closest he could pinpoint May 20 23:33:01 someone was asking and I remembered you had made one May 20 23:33:08 t0mless, it's a feature I don't care to support really, and I've gotten some 1* reviews for it May 20 23:33:13 i was reading about the tsa vipr teams in the us, its terrible May 20 23:33:31 the point is, the phone was remotely destroyed thanks to rather non-standard stuff May 20 23:33:49 (SPL and its config deleted, iirc) May 20 23:34:23 with apropriate tools you can permamently brick most ARM chips, btw May 20 23:34:28 (remotely) May 20 23:34:34 i stepped out May 20 23:34:37 * hesperaux read buffer May 20 23:35:52 g00s: also, I only *look* that knowledgeable May 20 23:36:01 …unfortunately May 20 23:36:28 the unfortunate thing about android and security in the enterprise, as it relates to us, is that there are lots of jobs in writing internal enterprise apps - but if the platform fairs poorly in this regard, and IT depts shun away from it (even with BYOB policies), its not good for android devs May 20 23:37:22 the funniest thing is that one of the better platforms for enterprise deployment got outright killed by its manufacturers May 20 23:37:24 the ranking was BB, iOS, WP7.5, then android May 20 23:37:42 wow May 20 23:37:56 well, BB is designed for enterprise and only later got more available May 20 23:38:23 though I'm pretty pissed that someone agreed to use TripleDES for diplomatic security May 20 23:38:55 aes256 ? May 20 23:39:01 would have been better ? May 20 23:39:04 or 512 ? May 20 23:39:08 or blowfish ? May 20 23:39:18 or serpent ? May 20 23:39:38 homie: AES128 and AES256 are current standards for american "Top Secret" stuff (as well as two other confidential systems) May 20 23:39:59 oh May 20 23:39:59 Blowfish was Rjindael's competitor for AES title May 20 23:40:11 aha May 20 23:40:31 theoretically Triple-DES was considered safe enough even pretty recently May 20 23:40:54 but I really hope that the BBs that are used by diplomatic corps (Poland) have some extras May 20 23:40:55 so my question is what can I do to protect myself as much as is possible? May 20 23:40:58 what does gpg use ? May 20 23:41:22 homie: GPG uses what you configure it to use out of available systems. It does support AES, though May 20 23:41:28 ah ok May 20 23:41:37 does it default to something ? May 20 23:41:46 hesperaux: buy a boomer from Russians and get some ICBMs May 20 23:42:02 lol May 20 23:42:11 you said "as much as possible" May 20 23:42:18 as much as is possible May 20 23:42:29 meaning what, if any, options are there to help myself in this area May 20 23:42:50 being aware of what you do regarding security, and whether you *need* security May 20 23:43:11 also, could android end up using WIFI WPA2 security methods on a different radio frequency? WPA2 is pretty solid right? May 20 23:43:34 just remember, that giving up freedom for security is a sure way to get done in without lube May 20 23:43:42 hahaha May 20 23:43:55 WPA2 depends on exact setup. It's a framework May 20 23:44:21 but it won't help you with GSM/CDMA/UMTS/LTE May 20 23:44:57 i was suggesting something new i guess May 20 23:45:36 so when i am driving and my phone is changing cells, does my phone reauthenticate with the network? how does that work? May 20 23:48:47 no May 20 23:49:11 hesperaux: there's a handoff protocol that ensures you don't drop calls etc. May 20 23:49:24 read the wikipedia, it has quite good overview May 20 23:49:46 for which page? May 20 23:50:53 I suspect that if you start wiki-walking from GSM, SS7 or something similar you'll find a bit May 20 23:51:21 ok May 21 00:16:42 when using android.util.Log, where do logs get put in eclipse? May 21 00:16:49 i don't see anything in LogCat May 21 00:52:29 they go to LogCat May 21 00:52:33 so you're eclipse is messed up May 21 00:52:42 go into ddms and make sure the right device is selected May 21 01:06:56 I'm trying to do HTML5 video from a WebView, and it works fine on 2.x. However on an ICS device the WebView doesn't seem to call onShowCustomView() at all, all i get is a bunch of openGL ES warnings in the console and the audio starts playing in the background May 21 01:11:22 does layout = viewgroup? May 21 01:11:43 i know, fundamental question i'm sure May 21 01:12:38 (this is with hardware acceleration turned off on the activity... if i turn on hardware accel the video plays inline May 21 01:13:52 b1n0ry pretty much... but not really... a layout file can be just one view May 21 01:14:08 LinearLayout, RelativeLayout, etc all extend from ViewGroup May 21 01:14:40 ok, so a layout is kind of like a 'type' of viewgroup May 21 01:14:55 or an 'enhanced'/extended viewgroup May 21 01:15:55 it IS a viewgroup May 21 01:16:11 er May 21 01:16:16 linearlayout, etc May 21 01:16:27 layout xml is just a method to define views in xml May 21 01:16:53 ok, that makes sense. thanks May 21 01:20:05 On configuration change, "Android recreates the running activity (the system calls onDestroy(), then immediately calls onCreate()). This behavior is designed to help your application adapt to new configurations..." and to create unnecessary complexity when an application does not utilize alternative configurations... should be some way to make this 'feature' optional. May 21 01:20:41 my little rant, hehe May 21 01:21:20 There is May 21 01:21:30 handle the configuration changes yourself? May 21 01:21:33 Yup May 21 01:21:51 everyone i've talked to about that says it's poor practice to do that May 21 01:22:12 It should only be done when it's required May 21 01:22:25 b1n0ry: that's because you end up seeing fucked up implementations created because someone prematurely optimized May 21 01:22:32 but... let's say an activity contains nothing more than a webview that loads some content and allows the user to read it. on orientation change, just make the screen wider and add any necessary scrollbars. May 21 01:22:53 no need to reload the page, or manage overriding cache code, etc. May 21 01:24:16 there are situations that would be convenient to just not do anything on config. change. but yeah, i see that most apps take at least some advantage of the feature. May 21 01:24:31 are you sure you know everything about on-the-fly modification of views? I don't. I mostly used it to disable rotation so far May 21 01:24:48 i know very little about anything android/java. May 21 01:25:17 heck, i'm on day 8 May 21 01:25:27 ...learning both android and java May 21 01:27:52 well, till you get better, I'd avoid that feature :) May 21 01:29:16 http://developer.android.com/guide/topics/resources/runtime-changes.html May 21 01:29:22 fun fact: telling a girl to "step up fast and be the first girl to make me throw this cash" doesn't work in real life as a pick-up line... May 21 01:30:41 * p_l shrugs May 21 01:31:00 cool, i'll read that, thanks. May 21 01:31:27 i'm going through reading about fragments and how they relate to activities now. then on to loaders. i hope to be able to implement -some- progress on my app tonight, now that i'm on the 4th rewrite. May 21 01:31:28 p_l, of course WebView is the one thing where the docs tell you that to fully preserve it's state across a config change you have to handle it yourself... May 21 01:33:19 well, this is why i'm a magician and not an android programmer... May 21 01:33:30 spifff: yeah, something I'll have to take care about, I guess May 21 01:37:28 can't figure out if i want to learn about fragments or work on a new card trick... bah, conundrums. May 21 01:37:43 fragments it is for now May 21 01:39:13 I vote fragments May 21 01:39:45 just picked up a new card routine yesterday, though... it's like a new video game just sitting there in the shrink wrap May 21 01:56:03 error: Multiple substitutions specified in non-positional format; did you mean toadd the formatted="false" attribute?- error: Found tag where is expected May 21 01:56:03 May 21 01:56:03 %d result for \"%s\": May 21 01:56:22 this is from the searchabledictionary sample from android May 21 01:58:17 ah, %1$d and %2$s May 21 02:09:37 so here's a question. would it be better to write an app (using fragments) to initially support a handset with each part being a separate activity, or to initially support a tablet, or to try to make it do both at the same time? May 21 02:11:07 and is it ok/acceptable to create subfolders within /src for fragments, activities, general classes, etc.? May 21 02:12:17 is there a better IDE for android dev, yet? (better than eclipse and IDEA) May 21 02:14:35 mheld, define "better" May 21 02:15:27 b1n0ry: one that doesn't make me want to cry out for baby jesus May 21 02:15:34 i would think you can use netbeans, too May 21 02:17:56 eww netbeans May 21 02:18:03 you can use whatever IDE you want May 21 02:18:41 I *might* just end up using emacs May 21 02:18:49 notepad++ May 21 02:19:40 i would like to second b1n0ry's questions^ May 21 02:21:45 bah, rabbit just shot woodchips out all over my floor. going to grab vaccuum... but yeah, questions still stand... May 21 02:26:08 rabbits are stupid pets May 21 02:27:07 b1n0ry you can package your classes however you want, just make sure you're watching out for scope May 21 02:27:42 and if you are going to make a tablet layout etc you should plan for that from the beginning May 21 02:28:47 hey, my rabbit is a nice little girl, and she's also my assistant. i use her in my kid's show. May 21 02:30:23 ok, thanks for the heads up t0mless. May 21 02:43:44 figured out how i'm going to write my app and not have to worry about solving my bug... May 21 02:44:12 don't know why i didn't just think of this before May 21 02:56:05 ‰ May 21 02:57:17 I agree. May 21 02:57:43 true true May 21 02:57:45 so true May 21 02:57:53 plus THEGAME May 21 02:58:00 b1n0ry, i love rabbits May 21 02:58:06 i had a rabbit once May 21 02:58:09 he died :( May 21 02:58:16 :( **** ENDING LOGGING AT Mon May 21 02:59:59 2012